mirror of
https://github.com/encounter/adk-python.git
synced 2026-07-09 18:19:28 -07:00
chore: expose an endpoint for detailed app info
Co-authored-by: Yifan Wang <wanyif@google.com> PiperOrigin-RevId: 869375052
This commit is contained in:
committed by
Copybara-Service
parent
d85932faa3
commit
9562cd664b
@@ -794,6 +794,11 @@ class AdkWebServer:
|
||||
raise HTTPException(status_code=404, detail="Trace not found")
|
||||
return event_dict
|
||||
|
||||
@app.get("/apps/{app_name}")
|
||||
async def get_app_info(app_name: str) -> Any:
|
||||
runner = await self.get_runner_async(app_name)
|
||||
return runner.app
|
||||
|
||||
@app.get("/debug/trace/session/{session_id}", tags=[TAG_DEBUG])
|
||||
async def get_session_trace(session_id: str) -> Any:
|
||||
spans = memory_exporter.get_finished_spans(session_id)
|
||||
|
||||
Reference in New Issue
Block a user