Skip to content

Commit eae95c6

Browse files
committed
fix: pass modifier to handler
1 parent 4fc5be1 commit eae95c6

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def add_routes_to_app(
6464

6565
if agent_card_url == AGENT_CARD_WELL_KNOWN_PATH:
6666
# For backward compatibility, serve the agent card at the deprecated path as well.
67+
# TODO: remove in a future release
6768
app.get(PREV_AGENT_CARD_WELL_KNOWN_PATH)(
6869
self._handle_get_agent_card
6970
)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,7 @@ def __init__( # noqa: PLR0913
160160
agent_card=agent_card,
161161
request_handler=http_handler,
162162
extended_agent_card=extended_agent_card,
163+
extended_card_modifier=extended_card_modifier,
163164
)
164165
if (
165166
self.agent_card.supports_authenticated_extended_card

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,8 @@ def routes(
5959
]
6060

6161
if agent_card_url == AGENT_CARD_WELL_KNOWN_PATH:
62+
# For backward compatibility, serve the agent card at the deprecated path as well.
63+
# TODO: remove in a future release
6264
app_routes.append(
6365
Route(
6466
PREV_AGENT_CARD_WELL_KNOWN_PATH,

0 commit comments

Comments
 (0)