Adding support to force a tool return to be the final answer.

This will at the end of the execution return the tool output.
It will return the output of the latest tool with the flag
This commit is contained in:
João Moura
2024-07-04 06:32:27 -04:00
parent 4bcd1df6bb
commit 01f31d7830
16 changed files with 207777 additions and 6651 deletions

View File

@@ -243,6 +243,7 @@ class CrewAgentExecutor(AgentExecutor, CrewAgentExecutorMixin):
tools_names=self.tools_names,
function_calling_llm=self.function_calling_llm,
task=self.task,
agent=self.crew_agent,
action=agent_action,
)
tool_calling = tool_usage.parse(agent_action.log)