Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6f9ae7 commit d90dcf8Copy full SHA for d90dcf8
examples/weather/my_agents/weather_agent.py
@@ -17,8 +17,7 @@ async def fetch_weather(weather_request: WeatherRequest) -> str:
17
"""Check the weather conditions at a certain time and place
18
19
Args:
20
- location: Query location or city name
21
- date: Date of inquiry
+ weather_request: request for fetching weather
22
"""
23
24
data = {"data": "明天杭州的天气预报是晴天,气温约为22度,湿度为65%,风向为东南风。"}
@@ -30,5 +29,5 @@ async def fetch_weather(weather_request: WeatherRequest) -> str:
30
29
instructions=INSTRUCTIONS,
31
model="gpt-4o",
32
tools=[fetch_weather],
33
- model_settings=ModelSettings(tool_choice="required"),
+ model_settings=ModelSettings(tool_choice="auto"),
34
)
0 commit comments