Merge branch 'shuguang/main' into salmanap/meetup-agent-demo

This commit is contained in:
Adil Hafeez 2024-12-11 15:29:48 -08:00
commit 7c987a10ae
72 changed files with 2852 additions and 8028 deletions

View file

@ -42,21 +42,18 @@ prompt_guards:
message: Looks like you're curious about my abilities, but I can only provide assistance for weather forecasting.
prompt_targets:
- name: weather_forecast
description: Check weather information for a given city.
- name: get_current_weather
description: Get current weather at a location.
parameters:
- name: city
description: the name of the city
- name: location
description: The location to get the weather for
required: true
type: str
type: string
format: city, state
- name: days
description: the number of days
type: int
description: the number of days for the request
required: true
- name: units
description: the temperature unit, e.g., Celsius and Fahrenheit
type: str
default: Fahrenheit
type: string
endpoint:
name: weather_forecast_service
path: /weather

View file

@ -42,7 +42,7 @@ async def healthz():
class WeatherRequest(BaseModel):
city: str
location: str
days: int = 7
units: str = "Farenheit"
@ -50,7 +50,7 @@ class WeatherRequest(BaseModel):
@app.post("/weather")
async def weather(req: WeatherRequest, res: Response):
weather_forecast = {
"city": req.city,
"location": req.location,
"temperature": [],
"units": req.units,
}