From 6943eb44637cd2b9bc840c7d644e21f008c29703 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Mon, 1 Jul 2024 03:34:33 -0700 Subject: [PATCH] small formatting details --- .gitignore | 3 ++- src/crewai/crew.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) 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