Skip to content

Commit

Permalink
Change StructuredTool's ainvoke to await (langchain-ai#10300)
Browse files Browse the repository at this point in the history
Fixes langchain-ai#10080. StructuredTool's `ainvoke` doesn't `await`.
  • Loading branch information
stopdropandrew authored Sep 8, 2023
1 parent fdba711 commit 28de8d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/langchain/langchain/tools/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ async def ainvoke(
None, partial(self.invoke, input, config, **kwargs)
)

return super().ainvoke(input, config, **kwargs)
return await super().ainvoke(input, config, **kwargs)

# --- Tool ---

Expand Down

0 comments on commit 28de8d1

Please sign in to comment.