Skip to content

Commit 2aa4a5c

Browse files
committed
fix: update agent card and catalog endpoints to match RFC 9264
Signed-off-by: Shingo OKAWA <[email protected]>
1 parent 0f0f931 commit 2aa4a5c

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
@@ -461,7 +461,7 @@ def __init__(
461461
agent_card: AgentCard,
462462
http_handler: RequestHandler,
463463
extended_agent_card: AgentCard | None = None,
464-
agent_card_path: str = '/.well-known/agent.json',
464+
agent_card_path: str = '/agent.json',
465465
extended_agent_card_path: str = '/agent/authenticatedExtendedCard',
466466
rpc_path: str = '/',
467467
context_builder: CallContextBuilder | None = None,
@@ -846,7 +846,7 @@ async def _handle_get_api_catalog(self, request: Request) -> JSONResponse:
846846
Returns:
847847
A JSONResponse containing the AgentCatalog data.
848848
"""
849-
catalog = AgentCatalog(links=self._catalog_links)
849+
catalog = AgentCatalog(linkset=self._catalog_links)
850850
return JSONResponse(catalog.model_dump(mode='json', exclude_none=True))
851851

852852
def mount(

0 commit comments

Comments
 (0)