Learn how to force tool output as the result in an Agent’s task in CrewAI.
result_as_answer
parameter to True
when adding a tool to the agent.
This parameter ensures that the tool output is captured and returned as the task result, without any modifications by the agent.
Here’s an example of how to force the tool output as the result of an agent’s task:
Task Execution
Tool Output
Agent Interaction
Result Return