fix: set result_as_answer=True in DelegateWorkTool to fix incomplete final answers in hierarchical process mode (#2768)

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-05-06 22:46:21 +00:00
parent cac06adc6c
commit 6fb4438e52
2 changed files with 47 additions and 0 deletions

View File

@@ -18,6 +18,7 @@ class DelegateWorkTool(BaseAgentTool):
name: str = "Delegate work to coworker"
args_schema: type[BaseModel] = DelegateWorkToolSchema
result_as_answer: bool = True
def _run(
self,