fix tests

This commit is contained in:
Brandon Hancock
2025-03-14 09:35:13 -04:00
parent 0a6098fb50
commit 4b6498de8b
2 changed files with 2 additions and 1 deletions

View File

@@ -227,6 +227,7 @@ class Agent(BaseAgent):
task_prompt += crew_knowledge_context
tools = tools or self.tools or []
print(f"tools: {tools}")
self.create_agent_executor(tools=tools, task=task)
if self.crew and self.crew._train:

View File

@@ -1597,7 +1597,7 @@ def test_crew_function_calling_llm():
result = crew.kickoff()
assert result.raw == "Howdy!"
assert agent1.tools is not None
assert len(agent1.tools) == 0
assert len(agent1.tools) == 1
@pytest.mark.vcr(filter_headers=["authorization"])