feat: remove langchain, update uv.lock and fix type_hint

This commit is contained in:
Eduardo Chiarotti
2024-11-25 15:30:29 -03:00
parent aaec3e1713
commit 6e492e90e4
3 changed files with 5 additions and 9 deletions

View File

@@ -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",

View File

@@ -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 = {}

9
uv.lock generated
View File

@@ -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"