Skip to content

Commit 9562cd6

Browse files
wyf7107copybara-github
authored andcommitted
chore: expose an endpoint for detailed app info
Co-authored-by: Yifan Wang <wanyif@google.com> PiperOrigin-RevId: 869375052
1 parent d85932f commit 9562cd6

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/google/adk/cli/adk_web_server.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -794,6 +794,11 @@ async def get_trace_dict(event_id: str) -> Any:
794794
raise HTTPException(status_code=404, detail="Trace not found")
795795
return event_dict
796796

797+
@app.get("/apps/{app_name}")
798+
async def get_app_info(app_name: str) -> Any:
799+
runner = await self.get_runner_async(app_name)
800+
return runner.app
801+
797802
@app.get("/debug/trace/session/{session_id}", tags=[TAG_DEBUG])
798803
async def get_session_trace(session_id: str) -> Any:
799804
spans = memory_exporter.get_finished_spans(session_id)

0 commit comments

Comments
 (0)