mirror of
https://github.com/katanemo/plano.git
synced 2026-05-08 23:32:43 +02:00
Use intent model from archfc to pick prompt gateway (#328)
This commit is contained in:
parent
67b8fd635e
commit
ba7279becb
151 changed files with 8642 additions and 10932 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: int
|
||||
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,
|
||||
}
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@
|
|||
name = "api-server"
|
||||
version = "0.1.0"
|
||||
description = ""
|
||||
authors = ["Adil Hafeez <adil@katanemo.com>"]
|
||||
authors = ["Adil Hafeez <info@katanemo.com>"]
|
||||
readme = "README.md"
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue