Files
crewAI/lib
Devin AI 416c2665a7 fix: Rebuild AgentResponse model in multi-turn A2A flows to support skill IDs
In multi-turn A2A conversations, the AgentResponse model was only rebuilt
in _execute_task_with_a2a() but not in subsequent turns handled by
_handle_agent_response_and_continue(). This meant that if the LLM returned
a skill ID on a later turn, it would fail validation.

This commit rebuilds the model in _handle_agent_response_and_continue()
using extract_agent_identifiers_from_cards() to include both endpoints
and skill IDs, ensuring all turns support skill ID resolution.

Co-Authored-By: João <joao@crewai.com>
2025-11-12 18:02:58 +00:00
..