Skip to content

Commit d15b197

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

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
@@ -488,7 +488,7 @@ def __init__(
488488
agent_card: AgentCard,
489489
http_handler: RequestHandler,
490490
extended_agent_card: AgentCard | None = None,
491-
agent_card_path: str = '/.well-known/agent.json',
491+
agent_card_path: str = '/agent.json',
492492
extended_agent_card_path: str = '/agent/authenticatedExtendedCard',
493493
rpc_path: str = '/',
494494
context_builder: CallContextBuilder | None = None,
@@ -873,7 +873,7 @@ async def _handle_get_api_catalog(self, request: Request) -> JSONResponse:
873873
Returns:
874874
A JSONResponse containing the AgentCatalog data.
875875
"""
876-
catalog = AgentCatalog(links=self._catalog_links)
876+
catalog = AgentCatalog(linkset=self._catalog_links)
877877
return JSONResponse(catalog.model_dump(mode='json', exclude_none=True))
878878

879879
def mount(

0 commit comments

Comments
 (0)