mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
Cutting new version with tool ussage bug fix
This commit is contained in:
@@ -125,6 +125,8 @@ def test_logging_tool_usage():
|
||||
|
||||
assert agent.tools_handler.last_used_tool == {}
|
||||
task = Task(description="What is 3 times 4?", agent=agent)
|
||||
# force cleaning cache
|
||||
agent.tools_handler.cache = CacheHandler()
|
||||
output = agent.execute_task(task)
|
||||
tool_usage = InstructorToolCalling(
|
||||
tool_name=multiplier.name, arguments={"first_number": 3, "second_number": 4}
|
||||
@@ -255,6 +257,8 @@ def test_agent_repeated_tool_usage(capsys):
|
||||
task = Task(
|
||||
description="The final answer is 42. But don't give it yet, instead keep using the `get_final_answer` tool."
|
||||
)
|
||||
# force cleaning cache
|
||||
agent.tools_handler.cache = CacheHandler()
|
||||
agent.execute_task(
|
||||
task=task,
|
||||
tools=[get_final_answer],
|
||||
|
||||
Reference in New Issue
Block a user