mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-10 00:28:31 +00:00
fix tests
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -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"])
|
||||
|
||||
Reference in New Issue
Block a user