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

Method get_adk_app_info

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

Returns the detailed info for a given ADK app.

(app_name: str)

Source from the content-addressed store, hash-verified

1068 @experimental
1069 @app.get("/apps/{app_name}/app-info", response_model_exclude_none=True)
1070 async def get_adk_app_info(app_name: str) -> AppInfo:
1071 """Returns the detailed info for a given ADK app."""
1072 agent_or_app = self.agent_loader.load_agent(app_name)
1073 root_agent = self._get_root_agent(agent_or_app)
1074 if isinstance(root_agent, LlmAgent):
1075 return AppInfo(
1076 name=app_name,
1077 root_agent_name=root_agent.name,
1078 description=root_agent.description,
1079 language="python",
1080 agents=await get_agents_dict(root_agent),
1081 )
1082 else:
1083 raise HTTPException(
1084 status_code=400, detail="Root agent is not an LlmAgent"
1085 )
1086
1087 @app.get(
1088 "/apps/{app_name}/users/{user_id}/sessions/{session_id}",

Callers

nothing calls this directly

Calls 4

_get_root_agentMethod · 0.95
AppInfoClass · 0.85
get_agents_dictFunction · 0.85
load_agentMethod · 0.45

Tested by

no test coverage detected