File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
src/google/adk/flows/llm_flows Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -472,14 +472,12 @@ async def _postprocess_handle_function_calls_async(
472472 yield event
473473
474474 def _get_agent_to_run (
475- self , invocation_context : InvocationContext , transfer_to_agent
475+ self , invocation_context : InvocationContext , agent_name : str
476476 ) -> BaseAgent :
477477 root_agent = invocation_context .agent .root_agent
478- agent_to_run = root_agent .find_agent (transfer_to_agent )
478+ agent_to_run = root_agent .find_agent (agent_name )
479479 if not agent_to_run :
480- raise ValueError (
481- f'Agent { transfer_to_agent } not found in the agent tree.'
482- )
480+ raise ValueError (f'Agent { agent_name } not found in the agent tree.' )
483481 return agent_to_run
484482
485483 async def _call_llm_async (
You can’t perform that action at this time.
0 commit comments