Returns the detailed info for a given ADK app.
(app_name: str)
| 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}", |
nothing calls this directly
no test coverage detected