diff --git a/01_ai_agents_first/16_advanced_handoffs/handsoff_masterclass/04_is_enabled.py b/01_ai_agents_first/16_advanced_handoffs/handsoff_masterclass/04_is_enabled.py index e47af2ee..18b50bb9 100644 --- a/01_ai_agents_first/16_advanced_handoffs/handsoff_masterclass/04_is_enabled.py +++ b/01_ai_agents_first/16_advanced_handoffs/handsoff_masterclass/04_is_enabled.py @@ -59,7 +59,7 @@ def is_news_allowed(ctx: RunContextWrapper, agent: Agent) -> bool: name="WeatherAgent", instructions=f"You are weather expert - share weather updates as I travel a lot. For all Tech and News let the NewsAgent handle that part by delegation. {RECOMMENDED_PROMPT_PREFIX}", model=llm_model, - handoffs=[handoff(agent=news_agent, is_enabled=news_region("us-east-1")), planner_agent] + handoffs=[handoff(agent=news_agent, is_enabled=news_region("us-east-1"))] ) res = Runner.run_sync(weather_agent, @@ -71,4 +71,4 @@ def is_news_allowed(ctx: RunContextWrapper, agent: Agent) -> bool: print("\n[RESPONSE:]", res.final_output) print("\n[NEW_ITEMS:]", res.new_items) -# Now check the trace in \ No newline at end of file +# Now check the trace in