Change StructuredTool's ainvoke to await (#10300)

Fixes #10080. StructuredTool's `ainvoke` doesn't `await`.
This commit is contained in:
stopdropandrew 2023-09-07 19:54:53 -07:00 committed by GitHub
parent fdba711d28
commit 28de8d132c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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 ---