You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Python: A2AAgent should default name/description from AgentCard when not explicitly provided #4630
When constructing an A2AAgent with an agent_card, the name and description parameters must be explicitly passed even though the AgentCard already contains this information. This creates unnecessary duplication:
In A2AAgent.__init__(), name and description default to None and are passed directly to BaseAgent.__init__(). The agent_card is only used for transport setup (creating the HTTP client). If name/description are not explicitly provided, they remain None on the agent instance - even though the card has them.
Proposed Change
When agent_card is provided and name/description are not explicitly set, A2AAgent.__init__() should fall back to agent_card.name and agent_card.description:
This is backward compatible - explicit values still take precedence.
Motivation
When using A2AAgent as a participant in GroupChat orchestrations, the agent's name and description are essential for routing decisions. It's natural to expect that passing an AgentCard (which already carries these fields) would be sufficient.
changed the title [-]A2AAgent should default name/description from AgentCard when not explicitly provided[/-][+]Python: A2AAgent should default name/description from AgentCard when not explicitly provided[/+]on Mar 11, 2026
Activity
[-]A2AAgent should default name/description from AgentCard when not explicitly provided[/-][+]Python: A2AAgent should default name/description from AgentCard when not explicitly provided[/+]Python: A2AAgent defaults name/description from AgentCard
Python: A2AAgent defaults name/description from AgentCard (#4661)