docs: improve documentation and test assertions as per PR review

Co-Authored-By: Joe Moura <joao@crewai.com>
This commit is contained in:
Devin AI
2025-05-06 22:51:29 +00:00
parent 6fb4438e52
commit 17efd214fb
2 changed files with 16 additions and 2 deletions

View File

@@ -14,7 +14,12 @@ class DelegateWorkToolSchema(BaseModel):
class DelegateWorkTool(BaseAgentTool):
"""Tool for delegating work to coworkers"""
"""Tool for delegating work to other agents in the crew.
Attributes:
result_as_answer (bool): When True, returns the delegated agent's result
as the final answer instead of metadata about delegation.
"""
name: str = "Delegate work to coworker"
args_schema: type[BaseModel] = DelegateWorkToolSchema