Skip to content

Commit 9edb079

Browse files
committed
Add model_dump changes from server
1 parent 2f13479 commit 9edb079

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,7 +375,10 @@ async def _handle_get_agent_card(self, request: Request) -> JSONResponse:
375375
# The public agent card is a direct serialization of the agent_card
376376
# provided at initialization.
377377
return JSONResponse(
378-
self.agent_card.model_dump(mode='json', exclude_none=True)
378+
self.agent_card.model_dump(
379+
exclude_none=True,
380+
by_alias=True,
381+
)
379382
)
380383

381384
async def _handle_get_authenticated_extended_agent_card(
@@ -392,7 +395,8 @@ async def _handle_get_authenticated_extended_agent_card(
392395
if self.extended_agent_card:
393396
return JSONResponse(
394397
self.extended_agent_card.model_dump(
395-
mode='json', exclude_none=True
398+
exclude_none=True,
399+
by_alias=True,
396400
)
397401
)
398402
# If supportsAuthenticatedExtendedCard is true, but no specific

0 commit comments

Comments
 (0)