mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 16:18:30 +00:00
preparing new verison 0.55.1
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "crewai"
|
name = "crewai"
|
||||||
version = "0.55.0"
|
version = "0.55.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."
|
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 <joao@crewai.com>"]
|
authors = ["Joao Moura <joao@crewai.com>"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ class CrewAPI:
|
|||||||
"User-Agent": f"CrewAI-CLI/{get_crewai_version()}",
|
"User-Agent": f"CrewAI-CLI/{get_crewai_version()}",
|
||||||
}
|
}
|
||||||
self.base_url = getenv(
|
self.base_url = getenv(
|
||||||
"CREWAI_BASE_URL", "https://dev.crewai.com/crewai_plus/api/v1/crews"
|
"CREWAI_BASE_URL", "https://crewai.com/crewai_plus/api/v1/crews"
|
||||||
)
|
)
|
||||||
|
|
||||||
def _make_request(self, method: str, endpoint: str, **kwargs) -> requests.Response:
|
def _make_request(self, method: str, endpoint: str, **kwargs) -> requests.Response:
|
||||||
|
|||||||
@@ -28,9 +28,7 @@ class DeployCommand:
|
|||||||
self._telemetry.set_tracer()
|
self._telemetry.set_tracer()
|
||||||
access_token = get_auth_token()
|
access_token = get_auth_token()
|
||||||
except Exception:
|
except Exception:
|
||||||
self._deploy_signup_error_span = self._telemetry.deploy_signup_error_span(
|
self._deploy_signup_error_span = self._telemetry.deploy_signup_error_span()
|
||||||
self
|
|
||||||
)
|
|
||||||
console.print(
|
console.print(
|
||||||
"Please sign up/login to CrewAI+ before using the CLI.",
|
"Please sign up/login to CrewAI+ before using the CLI.",
|
||||||
style="bold red",
|
style="bold red",
|
||||||
@@ -40,7 +38,10 @@ class DeployCommand:
|
|||||||
|
|
||||||
self.project_name = get_project_name()
|
self.project_name = get_project_name()
|
||||||
if self.project_name is None:
|
if self.project_name is None:
|
||||||
console.print("No project name found. Please ensure your project has a valid pyproject.toml file.", style="bold red")
|
console.print(
|
||||||
|
"No project name found. Please ensure your project has a valid pyproject.toml file.",
|
||||||
|
style="bold red",
|
||||||
|
)
|
||||||
raise SystemExit
|
raise SystemExit
|
||||||
|
|
||||||
self.client = CrewAPI(api_key=access_token)
|
self.client = CrewAPI(api_key=access_token)
|
||||||
@@ -100,7 +101,7 @@ class DeployCommand:
|
|||||||
Args:
|
Args:
|
||||||
uuid (Optional[str]): The UUID of the crew to deploy.
|
uuid (Optional[str]): The UUID of the crew to deploy.
|
||||||
"""
|
"""
|
||||||
self._start_deployment_span = self._telemetry.start_deployment_span(self, uuid)
|
self._start_deployment_span = self._telemetry.start_deployment_span(uuid)
|
||||||
console.print("Starting deployment...", style="bold blue")
|
console.print("Starting deployment...", style="bold blue")
|
||||||
if uuid:
|
if uuid:
|
||||||
response = self.client.deploy_by_uuid(uuid)
|
response = self.client.deploy_by_uuid(uuid)
|
||||||
@@ -120,8 +121,8 @@ class DeployCommand:
|
|||||||
"""
|
"""
|
||||||
Create a new crew deployment.
|
Create a new crew deployment.
|
||||||
"""
|
"""
|
||||||
self._create_crew_deployment_span = self._telemetry.create_crew_deployment_span(
|
self._create_crew_deployment_span = (
|
||||||
self
|
self._telemetry.create_crew_deployment_span()
|
||||||
)
|
)
|
||||||
console.print("Creating deployment...", style="bold blue")
|
console.print("Creating deployment...", style="bold blue")
|
||||||
env_vars = fetch_and_json_env_file()
|
env_vars = fetch_and_json_env_file()
|
||||||
@@ -129,7 +130,10 @@ class DeployCommand:
|
|||||||
|
|
||||||
if remote_repo_url is None:
|
if remote_repo_url is None:
|
||||||
console.print("No remote repository URL found.", style="bold red")
|
console.print("No remote repository URL found.", style="bold red")
|
||||||
console.print("Please ensure your project has a valid remote repository.", style="yellow")
|
console.print(
|
||||||
|
"Please ensure your project has a valid remote repository.",
|
||||||
|
style="yellow",
|
||||||
|
)
|
||||||
return
|
return
|
||||||
|
|
||||||
self._confirm_input(env_vars, remote_repo_url)
|
self._confirm_input(env_vars, remote_repo_url)
|
||||||
@@ -266,9 +270,7 @@ class DeployCommand:
|
|||||||
uuid (Optional[str]): The UUID of the crew to get logs for.
|
uuid (Optional[str]): The UUID of the crew to get logs for.
|
||||||
log_type (str): The type of logs to retrieve (default: "deployment").
|
log_type (str): The type of logs to retrieve (default: "deployment").
|
||||||
"""
|
"""
|
||||||
self._get_crew_logs_span = self._telemetry.get_crew_logs_span(
|
self._get_crew_logs_span = self._telemetry.get_crew_logs_span(uuid, log_type)
|
||||||
self, uuid, log_type
|
|
||||||
)
|
|
||||||
console.print(f"Fetching {log_type} logs...", style="bold blue")
|
console.print(f"Fetching {log_type} logs...", style="bold blue")
|
||||||
|
|
||||||
if uuid:
|
if uuid:
|
||||||
@@ -291,7 +293,7 @@ class DeployCommand:
|
|||||||
Args:
|
Args:
|
||||||
uuid (Optional[str]): The UUID of the crew to remove.
|
uuid (Optional[str]): The UUID of the crew to remove.
|
||||||
"""
|
"""
|
||||||
self._remove_crew_span = self._telemetry.remove_crew_span(self, uuid)
|
self._remove_crew_span = self._telemetry.remove_crew_span(uuid)
|
||||||
console.print("Removing deployment...", style="bold blue")
|
console.print("Removing deployment...", style="bold blue")
|
||||||
|
|
||||||
if uuid:
|
if uuid:
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ authors = ["Your Name <you@example.com>"]
|
|||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.10,<=3.13"
|
python = ">=3.10,<=3.13"
|
||||||
crewai = { extras = ["tools"], version = ">=0.55.0,<1.0.0" }
|
crewai = { extras = ["tools"], version = ">=0.55.1,<1.0.0" }
|
||||||
|
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ authors = ["Your Name <you@example.com>"]
|
|||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.10,<=3.13"
|
python = ">=3.10,<=3.13"
|
||||||
crewai = { extras = ["tools"], version = ">=0.55.0,<1.0.0" }
|
crewai = { extras = ["tools"], version = ">=0.55.1,<1.0.0" }
|
||||||
asyncio = "*"
|
asyncio = "*"
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ authors = ["Your Name <you@example.com>"]
|
|||||||
|
|
||||||
[tool.poetry.dependencies]
|
[tool.poetry.dependencies]
|
||||||
python = ">=3.10,<=3.13"
|
python = ">=3.10,<=3.13"
|
||||||
crewai = { extras = ["tools"], version = ">=0.55.0,<1.0.0" }
|
crewai = { extras = ["tools"], version = ">=0.55.1,<1.0.0" }
|
||||||
|
|
||||||
|
|
||||||
[tool.poetry.scripts]
|
[tool.poetry.scripts]
|
||||||
|
|||||||
Reference in New Issue
Block a user