feat: add debug print statement in task execution and simplify return message in agent tool

This commit is contained in:
Vardaan Grover
2025-01-25 20:06:59 +05:30
parent 963368a3d7
commit cf9b6e1212
2 changed files with 2 additions and 2 deletions

View File

@@ -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

View File

@@ -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,