diff --git a/pyproject.toml b/pyproject.toml index d7920c7b0f..56fdee20df 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "crewai" -version = "0.74.2" +version = "0.75.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." readme = "README.md" requires-python = ">=3.10,<=3.13" diff --git a/src/crewai/__init__.py b/src/crewai/__init__.py index a41e3827f2..1a1439d578 100644 --- a/src/crewai/__init__.py +++ b/src/crewai/__init__.py @@ -14,5 +14,5 @@ category=UserWarning, module="pydantic.main", ) -__version__ = "0.74.2" +__version__ = "0.75.1" __all__ = ["Agent", "Crew", "Process", "Task", "Pipeline", "Router", "LLM", "Flow"] diff --git a/src/crewai/cli/cli.py b/src/crewai/cli/cli.py index 6c52633456..ae2cac143e 100644 --- a/src/crewai/cli/cli.py +++ b/src/crewai/cli/cli.py @@ -32,10 +32,11 @@ def crewai(): @crewai.command() @click.argument("type", type=click.Choice(["crew", "pipeline", "flow"])) @click.argument("name") -def create(type, name): +@click.option("--provider", type=str, help="The provider to use for the crew") +def create(type, name, provider): """Create a new crew, pipeline, or flow.""" if type == "crew": - create_crew(name) + create_crew(name, provider) elif type == "pipeline": create_pipeline(name) elif type == "flow": diff --git a/src/crewai/cli/create_crew.py b/src/crewai/cli/create_crew.py index f74331a23e..f3a50f5f4d 100644 --- a/src/crewai/cli/create_crew.py +++ b/src/crewai/cli/create_crew.py @@ -70,18 +70,19 @@ def copy_template_files(folder_path, name, class_name, parent_folder): copy_template(src_file, dst_file, name, class_name, folder_path.name) -def create_crew(name, parent_folder=None): +def create_crew(name, provider=None, parent_folder=None): folder_path, folder_name, class_name = create_folder_structure(name, parent_folder) env_vars = load_env_vars(folder_path) - provider_models = get_provider_data() - if not provider_models: - return + if not provider: + provider_models = get_provider_data() + if not provider_models: + return - selected_provider = select_provider(provider_models) - if not selected_provider: - return - provider = selected_provider + selected_provider = select_provider(provider_models) + if not selected_provider: + return + provider = selected_provider # selected_model = select_model(provider, provider_models) # if not selected_model: diff --git a/src/crewai/cli/templates/crew/pyproject.toml b/src/crewai/cli/templates/crew/pyproject.toml index 36ba1548c9..a33e4bfcee 100644 --- a/src/crewai/cli/templates/crew/pyproject.toml +++ b/src/crewai/cli/templates/crew/pyproject.toml @@ -5,7 +5,7 @@ description = "{{name}} using crewAI" authors = [{ name = "Your Name", email = "you@example.com" }] requires-python = ">=3.10,<=3.13" dependencies = [ - "crewai[tools]>=0.74.2,<1.0.0" + "crewai[tools]>=0.75.1,<1.0.0" ] [project.scripts] diff --git a/src/crewai/cli/templates/flow/pyproject.toml b/src/crewai/cli/templates/flow/pyproject.toml index f933907413..d0ef633773 100644 --- a/src/crewai/cli/templates/flow/pyproject.toml +++ b/src/crewai/cli/templates/flow/pyproject.toml @@ -5,7 +5,7 @@ description = "{{name}} using crewAI" authors = [{ name = "Your Name", email = "you@example.com" }] requires-python = ">=3.10,<=3.13" dependencies = [ - "crewai[tools]>=0.74.2,<1.0.0", + "crewai[tools]>=0.75.1,<1.0.0", ] [project.scripts] diff --git a/src/crewai/cli/templates/pipeline/pyproject.toml b/src/crewai/cli/templates/pipeline/pyproject.toml index 517c2a4d15..62a69f3a7d 100644 --- a/src/crewai/cli/templates/pipeline/pyproject.toml +++ b/src/crewai/cli/templates/pipeline/pyproject.toml @@ -6,7 +6,7 @@ authors = ["Your Name "] [tool.poetry.dependencies] python = ">=3.10,<=3.13" -crewai = { extras = ["tools"], version = ">=0.74.2,<1.0.0" } +crewai = { extras = ["tools"], version = ">=0.75.1,<1.0.0" } asyncio = "*" [tool.poetry.scripts] diff --git a/src/crewai/cli/templates/pipeline_router/pyproject.toml b/src/crewai/cli/templates/pipeline_router/pyproject.toml index b349e4ddae..20b3a7c076 100644 --- a/src/crewai/cli/templates/pipeline_router/pyproject.toml +++ b/src/crewai/cli/templates/pipeline_router/pyproject.toml @@ -5,7 +5,7 @@ description = "{{name}} using crewAI" authors = ["Your Name "] requires-python = ">=3.10,<=3.13" dependencies = [ - "crewai[tools]>=0.74.2,<1.0.0" + "crewai[tools]>=0.75.1,<1.0.0" ] [project.scripts] diff --git a/src/crewai/cli/templates/tool/pyproject.toml b/src/crewai/cli/templates/tool/pyproject.toml index bd1df942ff..c5d6a47e7c 100644 --- a/src/crewai/cli/templates/tool/pyproject.toml +++ b/src/crewai/cli/templates/tool/pyproject.toml @@ -5,6 +5,6 @@ description = "Power up your crews with {{folder_name}}" readme = "README.md" requires-python = ">=3.10,<=3.13" dependencies = [ - "crewai[tools]>=0.74.2" + "crewai[tools]>=0.75.1" ] diff --git a/uv.lock b/uv.lock index 5d4d5b0b71..ddd57b3136 100644 --- a/uv.lock +++ b/uv.lock @@ -627,7 +627,7 @@ wheels = [ [[package]] name = "crewai" -version = "0.74.2" +version = "0.75.1" source = { editable = "." } dependencies = [ { name = "appdirs" },