diff --git a/.gitignore b/.gitignore index 83de9d100..2aaa1342a 100644 --- a/.gitignore +++ b/.gitignore @@ -12,4 +12,5 @@ old_en.json db/ test.py rc-tests/* -*.pkl \ No newline at end of file +*.pkl +temp/* \ No newline at end of file diff --git a/src/crewai/crew.py b/src/crewai/crew.py index f0c3bab63..e2f927616 100644 --- a/src/crewai/crew.py +++ b/src/crewai/crew.py @@ -299,8 +299,10 @@ class Crew(BaseModel): and not agent.function_calling_llm ): agent.function_calling_llm = self.function_calling_llm + if hasattr(agent, "allow_code_execution") and agent.allow_code_execution: agent.tools += agent.get_code_execution_tools() + if hasattr(agent, "step_callback") and not agent.step_callback: agent.step_callback = self.step_callback