Skip to content

Commit 49e5281

Browse files
authored
Merge branch 'main' into client-extensions-get-card
2 parents bbb26ab + 213d9f8 commit 49e5281

File tree

3 files changed

+9
-2
lines changed

3 files changed

+9
-2
lines changed

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Changelog
22

3+
## [0.3.18](https://github.com/a2aproject/a2a-python/compare/v0.3.17...v0.3.18) (2025-11-24)
4+
5+
6+
### Bug Fixes
7+
8+
* return updated `agent_card` in `JsonRpcTransport.get_card()` ([#552](https://github.com/a2aproject/a2a-python/issues/552)) ([0ce239e](https://github.com/a2aproject/a2a-python/commit/0ce239e98f67ccbf154f2edcdbcee43f3b080ead))
9+
310
## [0.3.17](https://github.com/a2aproject/a2a-python/compare/v0.3.16...v0.3.17) (2025-11-24)
411

512

src/a2a/client/transports/jsonrpc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,7 @@ async def get_card(
412412
raise A2AClientJSONRPCError(response.root)
413413
self.agent_card = response.root.result
414414
self._needs_extended_card = False
415-
return card
415+
return self.agent_card
416416

417417
async def close(self) -> None:
418418
"""Closes the httpx client."""

tests/client/transports/test_jsonrpc_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -782,7 +782,7 @@ async def test_get_card_with_extended_card_support(
782782
mock_send_request.return_value = rpc_response
783783
card = await client.get_card()
784784

785-
assert card == agent_card
785+
assert card == AGENT_CARD_EXTENDED
786786
mock_send_request.assert_called_once()
787787
sent_payload = mock_send_request.call_args.args[0]
788788
assert sent_payload['method'] == 'agent/getAuthenticatedExtendedCard'

0 commit comments

Comments
 (0)