Skip to content

Commit 8a1bf6c

Browse files
committed
Update ordering of routes() to match build()
1 parent 685098b commit 8a1bf6c

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def __init__(
5353
def routes(
5454
self,
5555
agent_card_url: str = '/.well-known/agent.json',
56-
extended_agent_card_url: str = '/agent/authenticatedExtendedCard',
5756
rpc_url: str = '/',
57+
extended_agent_card_url: str = '/agent/authenticatedExtendedCard',
5858
) -> list[Route]:
5959
"""Returns the Starlette Routes for handling A2A requests.
6060
@@ -111,7 +111,9 @@ def build(
111111
A configured Starlette application instance.
112112
"""
113113
app_routes = self.routes(
114-
agent_card_url, extended_agent_card_url, rpc_url
114+
agent_card_url=agent_card_url,
115+
rpc_url=rpc_url,
116+
extended_agent_card_url=extended_agent_card_url,
115117
)
116118
if 'routes' in kwargs:
117119
kwargs['routes'].extend(app_routes)

0 commit comments

Comments
 (0)