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