Files
agent-framework/python/packages
T
Giles Odigwe f696ac9b57 Python: A2AAgent defaults name/description from AgentCard (#4661)
* Python: A2AAgent defaults name/description from AgentCard

When an AgentCard is provided but name/description are not explicitly
set, A2AAgent now falls back to agent_card.name and agent_card.description.
This avoids redundant duplication when constructing A2AAgent instances,
especially in GroupChat orchestrations where name and description are
essential for routing decisions.

Explicit values still take precedence over card values.

Fixes #4630

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

* Use 'is None' checks instead of truthiness for name/description fallback

Ensures explicitly provided empty strings are not overridden by
agent_card values. Adds test for the empty string edge case.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

---------

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
f696ac9b57 ยท 2026-03-13 00:14:23 +00:00
History
..
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00
2026-03-11 18:53:38 +00:00