Skip to content

Commit 615fd91

Browse files
committed
fix: Fix using correct object for fetching loop
1 parent dae4cac commit 615fd91

File tree

1 file changed

+2
-2
lines changed
  • packages/toolbox-langchain/src/toolbox_langchain

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,12 @@ async def _arun(self, **kwargs: Any) -> dict[str, Any]:
5353
coro = self.__core_sync_tool._ToolboxSyncTool__async_tool(**kwargs)
5454

5555
# If a loop has not been provided, attempt to run in current thread.
56-
if not self.__core_sync_client._ToolboxSyncClient__loop:
56+
if not self.__core_sync_tool._ToolboxSyncTool__loop:
5757
return await coro
5858

5959
# Otherwise, run in the background thread.
6060
await asyncio.wrap_future(
61-
asyncio.run_coroutine_threadsafe(coro, self.__core_sync_client._ToolboxSyncTool__loop)
61+
asyncio.run_coroutine_threadsafe(coro, self.__core_sync_tool._ToolboxSyncTool__loop)
6262
)
6363

6464

0 commit comments

Comments
 (0)