Skip to content

Commit da2855c

Browse files
committed
Change to remove model_dump='json'
1 parent 475ba50 commit da2855c

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

src/a2a/client/client.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,7 @@ async def get_agent_card(
9898
target_url,
9999
agent_card_data,
100100
)
101-
agent_card = AgentCard.model_validate(
102-
agent_card_data, by_alias=True
103-
)
101+
agent_card = AgentCard.model_validate(agent_card_data)
104102
except httpx.HTTPStatusError as e:
105103
raise A2AClientHTTPError(
106104
e.response.status_code,

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,6 @@ async def _handle_get_agent_card(self, request: Request) -> JSONResponse:
376376
# provided at initialization.
377377
return JSONResponse(
378378
self.agent_card.model_dump(
379-
mode='json',
380379
exclude_none=True,
381380
by_alias=True,
382381
)
@@ -396,7 +395,6 @@ async def _handle_get_authenticated_extended_agent_card(
396395
if self.extended_agent_card:
397396
return JSONResponse(
398397
self.extended_agent_card.model_dump(
399-
mode='json',
400398
exclude_none=True,
401399
by_alias=True,
402400
)

0 commit comments

Comments
 (0)