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(
472
472
yield event
473
473
474
474
def _get_agent_to_run (
475
- self , invocation_context : InvocationContext , transfer_to_agent
475
+ self , invocation_context : InvocationContext , agent_name : str
476
476
) -> BaseAgent :
477
477
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 )
479
479
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.' )
483
481
return agent_to_run
484
482
485
483
async def _call_llm_async (
You can’t perform that action at this time.
0 commit comments