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

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