Skip to content

Commit 45ba8f7

Browse files
committed
chore: Fix types
1 parent 427ec7e commit 45ba8f7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

packages/toolbox-langchain/src/toolbox_langchain/async_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(
4343
super().__init__(
4444
name=core_tool.__name__,
4545
description=core_tool.__doc__,
46-
args_schema=core_tool._ToolboxTool__pydantic_model,
46+
args_schema=core_tool._pydantic_model,
4747
)
4848
self.__core_tool = core_tool
4949

packages/toolbox-langchain/src/toolbox_langchain/tools.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ def __init__(
4545
)
4646
self.__core_sync_tool = core_sync_tool
4747

48-
def _run(self, **kwargs: Any) -> dict[str, Any]:
48+
def _run(self, **kwargs: Any) -> str:
4949
return self.__core_sync_tool(**kwargs)
5050

51-
async def _arun(self, **kwargs: Any) -> dict[str, Any]:
51+
async def _arun(self, **kwargs: Any) -> str:
5252
coro = self.__core_sync_tool._async_tool(**kwargs)
5353

5454
# If a loop has not been provided, attempt to run in current thread.

0 commit comments

Comments
 (0)