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

@@ -310,7 +310,7 @@ def test_output_json_to_another_task():
crew = Crew(agents=[scorer], tasks=[task1, task2])
result = crew.kickoff()
assert '{\n "score": 3\n}' == result
assert '{\n "score": 5\n}' == result
@pytest.mark.vcr(filter_headers=["authorization"])