MCPcopy Index your code
hub / github.com/google/adk-python / get_root_agent

Function get_root_agent

src/google/adk/cli/cli_eval.py:89–93  ·  view source on GitHub ↗

Returns root agent given the agent module.

(agent_module_file_path: str)

Source from the content-addressed store, hash-verified

87
88
89def get_root_agent(agent_module_file_path: str) -> Agent:
90 """Returns root agent given the agent module."""
91 agent_module = _get_agent_module(agent_module_file_path)
92 root_agent = agent_module.agent.root_agent
93 return root_agent
94
95
96def try_get_reset_func(agent_module_file_path: str) -> Any:

Callers 3

cli_evalFunction · 0.85
cli_optimizeFunction · 0.85
cli_generate_eval_casesFunction · 0.85

Calls 1

_get_agent_moduleFunction · 0.85

Tested by

no test coverage detected