mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-05-06 09:42:39 +00:00
feat: add debug print statement in task execution and simplify return message in agent tool
This commit is contained in:
@@ -707,7 +707,7 @@ class Crew(BaseModel):
|
||||
Returns:
|
||||
CrewOutput: Final output of the crew
|
||||
"""
|
||||
|
||||
print("DEBUG: EXECUTE TASKS CALLED")
|
||||
task_outputs: List[TaskOutput] = []
|
||||
futures: List[Tuple[Task, Future[TaskOutput], int]] = []
|
||||
last_sync_output: Optional[TaskOutput] = None
|
||||
|
||||
@@ -90,7 +90,7 @@ class BaseAgentTool(BaseTool):
|
||||
result = target_agent.execute_task(new_task, context, tools)
|
||||
print("\n=== Delegation Complete ===")
|
||||
|
||||
return f"Task delegated to and completed by {target_agent.role}. Result: {result}"
|
||||
return result
|
||||
except Exception as e:
|
||||
return self.i18n.errors("agent_tool_execution_error").format(
|
||||
agent_role=sanitized_name,
|
||||
|
||||
Reference in New Issue
Block a user