We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 956591d commit 674cceeCopy full SHA for 674ccee
src/toolbox_langchain_sdk/client.py
@@ -1,5 +1,5 @@
1
import asyncio
2
-from typing import Optional
+from typing import Optional, Type
3
4
from aiohttp import ClientSession
5
from langchain_core.tools import StructuredTool
@@ -92,7 +92,7 @@ def _generate_tool(
92
The generated tool.
93
"""
94
tool_schema = manifest.tools[tool_name]
95
- tool_model: BaseModel = _schema_to_model(
+ tool_model: Type[BaseModel] = _schema_to_model(
96
model_name=tool_name, schema=tool_schema.parameters
97
)
98
0 commit comments