From da73865f258b0e28192ff252baf028dfa69872af Mon Sep 17 00:00:00 2001 From: Vini Brasil Date: Fri, 20 Dec 2024 10:36:18 -0300 Subject: [PATCH] Add `tool.crewai.type` pyproject attribute in templates (#1789) --- src/crewai/cli/templates/crew/pyproject.toml | 3 +++ src/crewai/cli/templates/flow/pyproject.toml | 3 +++ src/crewai/cli/templates/tool/pyproject.toml | 2 ++ 3 files changed, 8 insertions(+) diff --git a/src/crewai/cli/templates/crew/pyproject.toml b/src/crewai/cli/templates/crew/pyproject.toml index 5c306e62d..5ea8194c8 100644 --- a/src/crewai/cli/templates/crew/pyproject.toml +++ b/src/crewai/cli/templates/crew/pyproject.toml @@ -18,3 +18,6 @@ test = "{{folder_name}}.main:test" [build-system] requires = ["hatchling"] build-backend = "hatchling.build" + +[tool.crewai] +type = "crew" diff --git a/src/crewai/cli/templates/flow/pyproject.toml b/src/crewai/cli/templates/flow/pyproject.toml index e55744ff3..8a523d2ed 100644 --- a/src/crewai/cli/templates/flow/pyproject.toml +++ b/src/crewai/cli/templates/flow/pyproject.toml @@ -15,3 +15,6 @@ plot = "{{folder_name}}.main:plot" [build-system] requires = ["hatchling"] build-backend = "hatchling.build" + +[tool.crewai] +type = "flow" diff --git a/src/crewai/cli/templates/tool/pyproject.toml b/src/crewai/cli/templates/tool/pyproject.toml index e6e08a389..69b8d355f 100644 --- a/src/crewai/cli/templates/tool/pyproject.toml +++ b/src/crewai/cli/templates/tool/pyproject.toml @@ -8,3 +8,5 @@ dependencies = [ "crewai[tools]>=0.86.0" ] +[tool.crewai] +type = "tool"