Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit ec57989

Browse files
author
星橙
committed
feat: update test
1 parent d90dcf8 commit ec57989

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/weather/my_agents/ding_agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,5 @@ async def send_DING_message(weather_request: WeatherRequest) -> bool:
2727
instructions=INSTRUCTIONS,
2828
model="gpt-4o",
2929
tools=[send_DING_message],
30-
model_settings=ModelSettings(tool_choice="required"),
30+
model_settings=ModelSettings(tool_choice="auto"),
3131
)

examples/weather/weather_manager.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@ async def run(self, query: str) -> None:
1515
trace_id = gen_trace_id()
1616
print(f"\n\n traceId = {trace_id}")
1717
with trace("Research trace", trace_id=trace_id):
18-
result = await Runner.run(weather_search_agent, query)
19-
print(f"\n\nresult = {result}")
18+
result = await Runner.run(my_main_agent, query)
19+
print(f"\n\nresult = {result.final_output}")

0 commit comments

Comments
 (0)