Skip to content

Commit 4336e94

Browse files
authored
chore: update dependencies and version for CrewAI (#3497)
- Updated `crewai-tools` dependency from version 0.69.0 to 0.71.0 in `pyproject.toml`. - Bumped CrewAI version from 0.177.0 to 0.186.0 in `__init__.py`. - Updated dependency versions in CLI templates for crew, flow, and tool to reflect the new CrewAI version.
1 parent 75b916c commit 4336e94

File tree

6 files changed

+3147
-3151
lines changed

6 files changed

+3147
-3151
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Documentation = "https://docs.crewai.com"
4848
Repository = "https://github.com/crewAIInc/crewAI"
4949

5050
[project.optional-dependencies]
51-
tools = ["crewai-tools~=0.69.0"]
51+
tools = ["crewai-tools~=0.71.0"]
5252
embeddings = [
5353
"tiktoken~=0.8.0"
5454
]

src/crewai/__init__.py

Lines changed: 27 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,21 @@
1+
import threading
2+
import urllib.request
13
import warnings
24
from typing import Any
35

6+
from crewai.agent import Agent
7+
from crewai.crew import Crew
8+
from crewai.crews.crew_output import CrewOutput
9+
from crewai.flow.flow import Flow
10+
from crewai.knowledge.knowledge import Knowledge
11+
from crewai.llm import LLM
12+
from crewai.llms.base_llm import BaseLLM
13+
from crewai.process import Process
14+
from crewai.task import Task
15+
from crewai.tasks.llm_guardrail import LLMGuardrail
16+
from crewai.tasks.task_output import TaskOutput
17+
from crewai.telemetry.telemetry import Telemetry
18+
419

520
def _suppress_pydantic_deprecation_warnings() -> None:
621
"""Suppress Pydantic deprecation warnings using targeted monkey patch."""
@@ -20,26 +35,11 @@ def filtered_warn(
2035
return None
2136
return original_warn(message, category, stacklevel + 1, source)
2237

23-
setattr(warnings, "warn", filtered_warn)
38+
warnings.warn = filtered_warn # type: ignore[assignment]
2439

2540

2641
_suppress_pydantic_deprecation_warnings()
2742

28-
import threading
29-
import urllib.request
30-
31-
from crewai.agent import Agent
32-
from crewai.crew import Crew
33-
from crewai.crews.crew_output import CrewOutput
34-
from crewai.flow.flow import Flow
35-
from crewai.knowledge.knowledge import Knowledge
36-
from crewai.llm import LLM
37-
from crewai.llms.base_llm import BaseLLM
38-
from crewai.process import Process
39-
from crewai.task import Task
40-
from crewai.tasks.llm_guardrail import LLMGuardrail
41-
from crewai.tasks.task_output import TaskOutput
42-
from crewai.telemetry.telemetry import Telemetry
4343

4444
_telemetry_submitted = False
4545

@@ -51,17 +51,13 @@ def _track_install() -> None:
5151
if _telemetry_submitted or Telemetry._is_telemetry_disabled():
5252
return
5353

54-
try:
55-
pixel_url = "https://api.scarf.sh/v2/packages/CrewAI/crewai/docs/00f2dad1-8334-4a39-934e-003b2e1146db"
56-
57-
req = urllib.request.Request(pixel_url)
58-
req.add_header("User-Agent", f"CrewAI-Python/{__version__}")
54+
pixel_url = "https://api.scarf.sh/v2/packages/CrewAI/crewai/docs/00f2dad1-8334-4a39-934e-003b2e1146db"
5955

60-
with urllib.request.urlopen(req, timeout=2): # nosec B310
61-
_telemetry_submitted = True
56+
req = urllib.request.Request(pixel_url) # noqa: S310
57+
req.add_header("User-Agent", f"CrewAI-Python/{__version__}")
6258

63-
except Exception:
64-
pass
59+
with urllib.request.urlopen(req, timeout=2): # noqa: S310
60+
_telemetry_submitted = True
6561

6662

6763
def _track_install_async() -> None:
@@ -73,18 +69,18 @@ def _track_install_async() -> None:
7369

7470
_track_install_async()
7571

76-
__version__ = "0.177.0"
72+
__version__ = "0.186.0"
7773
__all__ = [
74+
"LLM",
7875
"Agent",
76+
"BaseLLM",
7977
"Crew",
8078
"CrewOutput",
81-
"Process",
82-
"Task",
83-
"LLM",
84-
"BaseLLM",
8579
"Flow",
8680
"Knowledge",
87-
"TaskOutput",
8881
"LLMGuardrail",
82+
"Process",
83+
"Task",
84+
"TaskOutput",
8985
"__version__",
9086
]

src/crewai/cli/templates/crew/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "{{name}} using crewAI"
55
authors = [{ name = "Your Name", email = "you@example.com" }]
66
requires-python = ">=3.10,<3.14"
77
dependencies = [
8-
"crewai[tools]>=0.177.0,<1.0.0"
8+
"crewai[tools]>=0.186.0,<1.0.0"
99
]
1010

1111
[project.scripts]

src/crewai/cli/templates/flow/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "{{name}} using crewAI"
55
authors = [{ name = "Your Name", email = "you@example.com" }]
66
requires-python = ">=3.10,<3.14"
77
dependencies = [
8-
"crewai[tools]>=0.177.0,<1.0.0",
8+
"crewai[tools]>=0.186.0,<1.0.0",
99
]
1010

1111
[project.scripts]

src/crewai/cli/templates/tool/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ description = "Power up your crews with {{folder_name}}"
55
readme = "README.md"
66
requires-python = ">=3.10,<3.14"
77
dependencies = [
8-
"crewai[tools]>=0.177.0"
8+
"crewai[tools]>=0.186.0"
99
]
1010

1111
[tool.crewai]

0 commit comments

Comments
 (0)