Skip to content

Commit b7192dd

Browse files
committed
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
1 parent 051ab20 commit b7192dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/a2a/client/card_resolver.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ async def get_agent_card(
6565
A2AClientJSONError: If the response body cannot be decoded as JSON
6666
or validated against the AgentCard schema.
6767
"""
68-
if relative_card_path is None:
68+
if not relative_card_path:
6969
# Use the default public agent card path configured during initialization
7070
path_segment = self.agent_card_path
7171
else:

0 commit comments

Comments
 (0)