diff --git a/pyproject.toml b/pyproject.toml index 2dbc00e24..bac31842c 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -9,7 +9,6 @@ authors = [ ] dependencies = [ "pydantic>=2.4.2", - "langchain>=0.2.16", "openai>=1.13.3", "opentelemetry-api>=1.22.0", "opentelemetry-sdk>=1.22.0", diff --git a/src/crewai/tools/structured_tool.py b/src/crewai/tools/structured_tool.py index ec51eb7eb..1d1a921f9 100644 --- a/src/crewai/tools/structured_tool.py +++ b/src/crewai/tools/structured_tool.py @@ -2,7 +2,7 @@ from __future__ import annotations import inspect import textwrap -from typing import Any, Callable, Optional, Union +from typing import Any, Callable, Optional, Union, get_type_hints from pydantic import BaseModel, Field, create_model @@ -118,7 +118,7 @@ class CrewStructuredTool: sig = inspect.signature(func) # Get type hints - type_hints = inspect.get_type_hints(func) + type_hints = get_type_hints(func) # Create field definitions fields = {} diff --git a/uv.lock b/uv.lock index a4b545d07..667d609a6 100644 --- a/uv.lock +++ b/uv.lock @@ -619,7 +619,6 @@ dependencies = [ { name = "instructor" }, { name = "json-repair" }, { name = "jsonref" }, - { name = "langchain" }, { name = "litellm" }, { name = "openai" }, { name = "opentelemetry-api" }, @@ -641,6 +640,9 @@ agentops = [ fastembed = [ { name = "fastembed" }, ] +mem0 = [ + { name = "mem0ai" }, +] openpyxl = [ { name = "openpyxl" }, ] @@ -650,9 +652,6 @@ pandas = [ pdfplumber = [ { name = "pdfplumber" }, ] -mem0 = [ - { name = "mem0ai" }, -] tools = [ { name = "crewai-tools" }, ] @@ -690,7 +689,6 @@ requires-dist = [ { name = "instructor", specifier = ">=1.3.3" }, { name = "json-repair", specifier = ">=0.25.2" }, { name = "jsonref", specifier = ">=1.1.0" }, - { name = "langchain", specifier = ">=0.2.16" }, { name = "litellm", specifier = ">=1.44.22" }, { name = "mem0ai", marker = "extra == 'mem0'", specifier = ">=0.1.29" }, { name = "openai", specifier = ">=1.13.3" }, @@ -952,7 +950,6 @@ wheels = [ { url = "https://files.pythonhosted.org/packages/c1/8b/5fe2cc11fee489817272089c4203e679c63b570a5aaeb18d852ae3cbba6a/et_xmlfile-2.0.0-py3-none-any.whl", hash = "sha256:7a91720bc756843502c3b7504c77b8fe44217c85c537d85037f0f536151b2caa", size = 18059 }, ] - [[package]] name = "exceptiongroup" version = "1.2.2"