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

Method get_app_info

src/google/adk/cli/dev_server.py:492–513  ·  view source on GitHub ↗
(app_name: str)

Source from the content-addressed store, hash-verified

490 # TODO: remove this endpoint once build_graph_image is completed
491 @app.get("/dev/apps/{app_name}/build_graph")
492 async def get_app_info(app_name: str) -> Any:
493 runner = await self.get_runner_async(app_name)
494
495 if not runner.app:
496 raise HTTPException(
497 status_code=404, detail=f"App not found: {app_name}"
498 )
499
500 # Read README.md if it exists
501 readme_content = None
502 if self.agents_dir:
503 import os
504
505 readme_path = os.path.join(self.agents_dir, app_name, "README.md")
506 if os.path.exists(readme_path):
507 try:
508 with open(readme_path, "r", encoding="utf-8") as f:
509 readme_content = f.read()
510 except Exception as e:
511 print(f"Error reading README.md: {e}")
512
513 return serialize_app_info(runner.app, readme_content)
514
515 @app.get("/dev/apps/{app_name}/build_graph_image")
516 async def get_app_info_image(

Callers

nothing calls this directly

Calls 6

openFunction · 0.85
serialize_app_infoFunction · 0.85
get_runner_asyncMethod · 0.80
joinMethod · 0.45
existsMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected