Skip to content

Commit

Permalink
preparing new verison
Browse files Browse the repository at this point in the history
  • Loading branch information
joaomdmoura committed Oct 23, 2024
1 parent 9cd4ff0 commit b8a3c29
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 18 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"]
5 changes: 3 additions & 2 deletions src/crewai/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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":
Expand Down
17 changes: 9 additions & 8 deletions src/crewai/cli/create_crew.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/cli/templates/crew/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "{{name}} using crewAI"
authors = [{ name = "Your Name", email = "[email protected]" }]
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]
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/cli/templates/flow/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "{{name}} using crewAI"
authors = [{ name = "Your Name", email = "[email protected]" }]
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]
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/cli/templates/pipeline/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Your Name <[email protected]>"]

[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]
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/cli/templates/pipeline_router/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description = "{{name}} using crewAI"
authors = ["Your Name <[email protected]>"]
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]
Expand Down
2 changes: 1 addition & 1 deletion src/crewai/cli/templates/tool/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]

2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b8a3c29

Please sign in to comment.