Skip to content

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

fix: add 'tool' section migration when running crewai update (#3341)

Heitor Carvalho95e3d6db7a76
diff --git a/src/crewai/cli/update_crew.py b/src/crewai/cli/update_crew.py
index e7ed69aa1..979fb950e 100644
--- a/src/crewai/cli/update_crew.py
+++ b/src/crewai/cli/update_crew.py
@@ -44,8 +44,9 @@ def migrate_pyproject(input_file, output_file):
]
new_pyproject["project"]["requires-python"] = poetry_data.get("python")
else:
- # If it's already in the new format, just copy the project section
+ # If it's already in the new format, just copy the project and tool sections
new_pyproject["project"] = pyproject_data.get("project", {})
+ new_pyproject["tool"] = pyproject_data.get("tool", {})
# Migrate or copy dependencies
if "dependencies" in new_pyproject["project"]: