File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
packages/toolbox-langchain/src/toolbox_langchain Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -38,13 +38,12 @@ def __init__(
38
38
Args:
39
39
core_tool: The underlying core async ToolboxTool instance.
40
40
"""
41
-
42
- self .__core_tool = core_tool
43
41
super ().__init__ (
44
42
name = self .__core_tool .__name__ ,
45
43
description = self .__core_tool .__doc__ ,
46
44
args_schema = self .__core_tool ._ToolboxTool__pydantic_model ,
47
45
)
46
+ self .__core_tool = core_tool
48
47
49
48
def _run (self , ** kwargs : Any ) -> str :
50
49
raise NotImplementedError ("Synchronous methods not supported by async tools." )
Original file line number Diff line number Diff line change @@ -36,13 +36,12 @@ def __init__(
36
36
Args:
37
37
core_sync_tool: The underlying core sync ToolboxTool instance.
38
38
"""
39
-
40
- self .__core_sync_tool = core_sync_tool
41
39
super ().__init__ (
42
40
name = self .__core_sync_tool .__name__ ,
43
41
description = self .__core_sync_tool .__doc__ ,
44
42
args_schema = self .__core_sync_tool ._ToolboxSyncTool__async_tool ._ToolboxTool__pydantic_model ,
45
43
)
44
+ self .__core_sync_tool = core_sync_tool
46
45
47
46
def _run (self , ** kwargs : Any ) -> dict [str , Any ]:
48
47
return self .__core_sync_tool (** kwargs )
You can’t perform that action at this time.
0 commit comments