Skip to content

Commit 5787b74

Browse files
revert to Optional[str]
1 parent 4d066d1 commit 5787b74

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/litai/llm.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131

3232
if TYPE_CHECKING:
3333
from langchain_core.tools import StructuredTool
34-
from pydantic import BaseModel
3534

3635
CLOUDY_MODELS = {
3736
"openai/gpt-4o",
@@ -359,7 +358,7 @@ def chat( # noqa: D417
359358
@staticmethod
360359
def call_tool(
361360
response: Union[List[dict], dict, str], tools: Optional[Sequence[Union[LitTool, "StructuredTool"]]] = None
362-
) -> Optional[Union[str, "BaseModel", list["BaseModel"]]]:
361+
) -> Optional[str]:
363362
"""Calls a tool with the given response."""
364363
if tools is None:
365364
raise ValueError("No tools provided")

0 commit comments

Comments
 (0)