From b7192dd90d98c06becdd4e95d6a022a33e27f1f7 Mon Sep 17 00:00:00 2001 From: Holt Skinner <13262395+holtskinner@users.noreply.github.com> Date: Wed, 15 Oct 2025 12:10:57 -0500 Subject: [PATCH 1/2] fix(client): `A2ACardResolver.get_agent_card` will auto-populate with `agent_card_path` when `relative_card_path` is empty - Previously, it would only override with the default path when `relative_card_path` is None --- src/a2a/client/card_resolver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/a2a/client/card_resolver.py b/src/a2a/client/card_resolver.py index 9df55152..233ab365 100644 --- a/src/a2a/client/card_resolver.py +++ b/src/a2a/client/card_resolver.py @@ -65,7 +65,7 @@ async def get_agent_card( A2AClientJSONError: If the response body cannot be decoded as JSON or validated against the AgentCard schema. """ - if relative_card_path is None: + if not relative_card_path: # Use the default public agent card path configured during initialization path_segment = self.agent_card_path else: From df233f5796da9cbe3d9e03317efd51cc69db1dfa Mon Sep 17 00:00:00 2001 From: Holt Skinner <13262395+holtskinner@users.noreply.github.com> Date: Wed, 15 Oct 2025 12:25:23 -0500 Subject: [PATCH 2/2] Update docstring --- src/a2a/client/card_resolver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/a2a/client/card_resolver.py b/src/a2a/client/card_resolver.py index 233ab365..f13fe3ab 100644 --- a/src/a2a/client/card_resolver.py +++ b/src/a2a/client/card_resolver.py @@ -53,7 +53,7 @@ async def get_agent_card( Args: relative_card_path: Optional path to the agent card endpoint, relative to the base URL. If None, uses the default public - agent card path. + agent card path. Use `'/'` for an empty path. http_kwargs: Optional dictionary of keyword arguments to pass to the underlying httpx.get request.