fix tool async (#11689)

This commit is contained in:
Harrison Chase
2023-10-11 16:40:23 -07:00
committed by GitHub
parent 9beb03e771
commit 18ebce2032

View File

@@ -653,7 +653,6 @@ class StructuredTool(BaseTool):
)
return await asyncio.get_running_loop().run_in_executor(
None,
self._run,
partial(self._run, run_manager=run_manager, **kwargs),
*args,
)