mirror of
https://github.com/katanemo/plano.git
synced 2026-06-29 15:49:40 +02:00
Merge branch 'shuguang/main' into salmanap/meetup-agent-demo
This commit is contained in:
commit
7c987a10ae
72 changed files with 2852 additions and 8028 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue