From 8a1577f199966334ed1cdc3e3c1985a14ccf2dd5 Mon Sep 17 00:00:00 2001 From: Krishna Vadakattu Date: Thu, 1 Jan 2026 20:08:04 +0000 Subject: [PATCH] Update A2A Agent Card path to expected name --- src/google/adk/cli/fast_api.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/google/adk/cli/fast_api.py b/src/google/adk/cli/fast_api.py index 131213ec07..5becac325c 100644 --- a/src/google/adk/cli/fast_api.py +++ b/src/google/adk/cli/fast_api.py @@ -344,12 +344,12 @@ async def _get_a2a_runner_async() -> Runner: return _get_a2a_runner_async for p in base_path.iterdir(): - # only folders with an agent.json file representing agent card are valid + # only folders with an agent-card.json file representing agent card are valid # a2a agents if ( p.is_file() or p.name.startswith((".", "__pycache__")) - or not (p / "agent.json").is_file() + or not (p / "agent-card.json").is_file() ): continue @@ -365,7 +365,7 @@ async def _get_a2a_runner_async() -> Runner: agent_executor=agent_executor, task_store=a2a_task_store ) - with (p / "agent.json").open("r", encoding="utf-8") as f: + with (p / "agent-card.json").open("r", encoding="utf-8") as f: data = json.load(f) agent_card = AgentCard(**data)