From 9768e4518fe910564fd45a220b60a76f2c4c6f4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Wed, 28 Feb 2024 09:09:37 -0300 Subject: [PATCH] Fixing bug preparing new version --- pyproject.toml | 2 +- src/crewai/agent.py | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/pyproject.toml b/pyproject.toml index 3caf4c7fb..f21524c68 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [tool.poetry] name = "crewai" -version = "0.16.0" +version = "0.16.1" description = "Cutting-edge framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks." authors = ["Joao Moura "] readme = "README.md" diff --git a/src/crewai/agent.py b/src/crewai/agent.py index 13870cd49..82b03cf17 100644 --- a/src/crewai/agent.py +++ b/src/crewai/agent.py @@ -290,7 +290,8 @@ class Agent(BaseModel): else: tools_list.append(tool) except ModuleNotFoundError: - tools_list.append(tool) + for tool in tools: + tools_list.append(tool) return tools_list @staticmethod