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

Method _get_root_agent

src/google/adk/cli/api_server.py:744–748  ·  view source on GitHub ↗

Extract root agent from either a BaseAgent or App object.

(self, agent_or_app: BaseAgent | App)

Source from the content-addressed store, hash-verified

742 return runner
743
744 def _get_root_agent(self, agent_or_app: BaseAgent | App) -> BaseAgent:
745 """Extract root agent from either a BaseAgent or App object."""
746 if isinstance(agent_or_app, App):
747 return agent_or_app.root_agent
748 return agent_or_app
749
750 def _create_runner(self, agentic_app: App) -> Runner:
751 """Create a runner with common services."""

Callers 5

get_adk_app_infoMethod · 0.95
run_evalMethod · 0.80
get_app_graph_dotMethod · 0.80
get_event_graphMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected