mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-03 12:07:36 +00:00
Change StructuredTool's ainvoke to await (#10300)
Fixes #10080. StructuredTool's `ainvoke` doesn't `await`.
This commit is contained in:
@@ -592,7 +592,7 @@ class StructuredTool(BaseTool):
|
|||||||
None, partial(self.invoke, input, config, **kwargs)
|
None, partial(self.invoke, input, config, **kwargs)
|
||||||
)
|
)
|
||||||
|
|
||||||
return super().ainvoke(input, config, **kwargs)
|
return await super().ainvoke(input, config, **kwargs)
|
||||||
|
|
||||||
# --- Tool ---
|
# --- Tool ---
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user