Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/a2a/client/transports/jsonrpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,7 +374,7 @@ async def get_card(
raise A2AClientJSONRPCError(response.root)
self.agent_card = response.root.result
self._needs_extended_card = False
return card
return self.agent_card

async def close(self) -> None:
"""Closes the httpx client."""
Expand Down
2 changes: 1 addition & 1 deletion tests/client/test_jsonrpc_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -773,7 +773,7 @@ async def test_get_card_with_extended_card_support(
mock_send_request.return_value = rpc_response
card = await client.get_card()

assert card == agent_card
assert card == AGENT_CARD_EXTENDED
mock_send_request.assert_called_once()
sent_payload = mock_send_request.call_args.args[0]
assert sent_payload['method'] == 'agent/getAuthenticatedExtendedCard'
Expand Down