Skip to content

Commit 4df2727

Browse files
committed
Change AgentCard to use by_alias
1 parent da2855c commit 4df2727

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/a2a/client/client.py

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

0 commit comments

Comments
 (0)