diff --git a/src/crewai/agent.py b/src/crewai/agent.py index c037164a8..7e150c016 100644 --- a/src/crewai/agent.py +++ b/src/crewai/agent.py @@ -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: diff --git a/tests/crew_test.py b/tests/crew_test.py index 692eba39f..6e98d664a 100644 --- a/tests/crew_test.py +++ b/tests/crew_test.py @@ -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"])