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 53a779d commit 7b13f20Copy full SHA for 7b13f20
packages/toolbox-langchain/src/toolbox_langchain/async_tools.py
@@ -16,6 +16,7 @@
16
17
from langchain_core.tools import BaseTool
18
from toolbox_core.tool import ToolboxTool as ToolboxCoreTool
19
+from toolbox_core.utils import params_to_pydantic_model
20
21
22
# This class is an internal implementation detail and is not exposed to the
@@ -43,7 +44,7 @@ def __init__(
43
44
super().__init__(
45
name=core_tool.__name__,
46
description=core_tool.__doc__,
- args_schema=core_tool._pydantic_model,
47
+ args_schema=params_to_pydantic_model(core_tool._name, core_tool._params),
48
)
49
self.__core_tool = core_tool
50
0 commit comments