mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +00:00
* chore: update crewai-tools dependency to version 0.60.0 - Updated the `pyproject.toml` and `uv.lock` files to reflect the new version of `crewai-tools`. - This change ensures compatibility with the latest features and improvements in the tools package. * chore: bump CrewAI version to 0.157.0 - Updated the version in `__init__.py` to reflect the new release. - Adjusted dependency versions in `pyproject.toml` files for crew, flow, and tool templates to ensure compatibility with the latest features and improvements in CrewAI. - This change maintains consistency across the project and prepares for upcoming enhancements.
72 lines
1.7 KiB
Python
72 lines
1.7 KiB
Python
import warnings
|
|
import threading
|
|
import urllib.request
|
|
|
|
from crewai.agent import Agent
|
|
from crewai.crew import Crew
|
|
from crewai.crews.crew_output import CrewOutput
|
|
from crewai.flow.flow import Flow
|
|
from crewai.knowledge.knowledge import Knowledge
|
|
from crewai.llm import LLM
|
|
from crewai.llms.base_llm import BaseLLM
|
|
from crewai.process import Process
|
|
from crewai.task import Task
|
|
from crewai.tasks.llm_guardrail import LLMGuardrail
|
|
from crewai.tasks.task_output import TaskOutput
|
|
from crewai.telemetry.telemetry import Telemetry
|
|
|
|
warnings.filterwarnings(
|
|
"ignore",
|
|
message="Pydantic serializer warnings:",
|
|
category=UserWarning,
|
|
module="pydantic.main",
|
|
)
|
|
|
|
_telemetry_submitted = False
|
|
|
|
|
|
def _track_install():
|
|
"""Track package installation/first-use via Scarf analytics."""
|
|
global _telemetry_submitted
|
|
|
|
if _telemetry_submitted or Telemetry._is_telemetry_disabled():
|
|
return
|
|
|
|
try:
|
|
pixel_url = "https://api.scarf.sh/v2/packages/CrewAI/crewai/docs/00f2dad1-8334-4a39-934e-003b2e1146db"
|
|
|
|
req = urllib.request.Request(pixel_url)
|
|
req.add_header('User-Agent', f'CrewAI-Python/{__version__}')
|
|
|
|
with urllib.request.urlopen(req, timeout=2): # nosec B310
|
|
_telemetry_submitted = True
|
|
|
|
except Exception:
|
|
pass
|
|
|
|
|
|
def _track_install_async():
|
|
"""Track installation in background thread to avoid blocking imports."""
|
|
if not Telemetry._is_telemetry_disabled():
|
|
thread = threading.Thread(target=_track_install, daemon=True)
|
|
thread.start()
|
|
|
|
|
|
_track_install_async()
|
|
|
|
__version__ = "0.157.0"
|
|
__all__ = [
|
|
"Agent",
|
|
"Crew",
|
|
"CrewOutput",
|
|
"Process",
|
|
"Task",
|
|
"LLM",
|
|
"BaseLLM",
|
|
"Flow",
|
|
"Knowledge",
|
|
"TaskOutput",
|
|
"LLMGuardrail",
|
|
"__version__",
|
|
]
|