Files
crewAI/lib/crewai/tests
Devin AI fa67887ac2 fix: preserve task constraints during multi-agent delegation (#5476)
When agents delegate work to other agents, structured constraints
(domain scope, quality requirements, temporal/geographic limits) were
silently lost because only the natural language task description was
passed to the delegated task.

Changes:
- Add 'constraints' field to Task model (list[str], default empty)
- Include constraints in Task.prompt() output when present
- Add 'original_task' field to BaseAgentTool to track the source task
- Propagate constraints from original task to delegated task in
  BaseAgentTool._execute() - both as structured field and in context
- Update AgentTools, Agent.get_delegation_tools(), and Crew delegation
  methods to thread the task through the delegation chain
- Update OpenAI and LangGraph adapter get_delegation_tools signatures
- Add info logging when constraints are propagated
- All changes are backward compatible (task parameter is optional)

Co-Authored-By: João <joao@crewai.com>
2026-04-15 19:38:19 +00:00
..
2025-10-20 14:10:19 -07:00
2025-12-04 16:53:19 -05:00
2025-10-20 14:10:19 -07:00
2026-03-24 19:03:35 +08:00
2026-02-13 21:34:37 -03:00
2025-12-04 13:34:29 -08:00
2025-10-20 14:10:19 -07:00
2025-12-01 18:56:56 -05:00
2025-10-20 14:10:19 -07:00
2025-10-20 14:10:19 -07:00