We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 28e6899 + ba24ead commit fae2a12Copy full SHA for fae2a12
1 file changed
src/a2a/client/card_resolver.py
@@ -53,7 +53,7 @@ async def get_agent_card(
53
Args:
54
relative_card_path: Optional path to the agent card endpoint,
55
relative to the base URL. If None, uses the default public
56
- agent card path.
+ agent card path. Use `'/'` for an empty path.
57
http_kwargs: Optional dictionary of keyword arguments to pass to the
58
underlying httpx.get request.
59
@@ -65,7 +65,7 @@ async def get_agent_card(
65
A2AClientJSONError: If the response body cannot be decoded as JSON
66
or validated against the AgentCard schema.
67
"""
68
- if relative_card_path is None:
+ if not relative_card_path:
69
# Use the default public agent card path configured during initialization
70
path_segment = self.agent_card_path
71
else:
0 commit comments