Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2bdc4f8

Browse files
committedMay 28, 2025·
fix: update agent card and catalog endpoints to match RFC 9264
Signed-off-by: Shingo OKAWA <shingo.okawa.g.h.c@gmail.com>
1 parent f16eacd commit 2bdc4f8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎src/a2a/server/apps/starlette_app.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -476,7 +476,7 @@ def __init__(
476476
agent_card: AgentCard,
477477
http_handler: RequestHandler,
478478
extended_agent_card: AgentCard | None = None,
479-
agent_card_path: str = '/.well-known/agent.json',
479+
agent_card_path: str = '/agent.json',
480480
extended_agent_card_path: str = '/agent/authenticatedExtendedCard',
481481
rpc_path: str = '/',
482482
context_builder: CallContextBuilder | None = None,
@@ -861,7 +861,7 @@ async def _handle_get_api_catalog(self, request: Request) -> JSONResponse:
861861
Returns:
862862
A JSONResponse containing the AgentCatalog data.
863863
"""
864-
catalog = AgentCatalog(links=self._catalog_links)
864+
catalog = AgentCatalog(linkset=self._catalog_links)
865865
return JSONResponse(catalog.model_dump(mode='json', exclude_none=True))
866866

867867
def mount(

0 commit comments

Comments
 (0)
Please sign in to comment.