Skip to content

@langchain/aws ChatBedrockConverse throws error when used in streaming mode with tool calling #7987

Answered by dosubot bot
tusharm asked this question in Q&A
Discussion options

You must be logged in to vote

Hello @tusharm! I'm Dosu, here to help you solve bugs, answer questions, and support your journey as a contributor while we wait for a human maintainer. Let's tackle this together! 🚀

I found a similar unsolved discussion regarding streaming issues with tool binding: ChatAnthropic streamEvents not working with bindTools [1]. This might be relevant to your situation, as it also involves streaming and tool binding.

Additionally, there is a documented workaround for handling tool calls in streaming mode with the ChatBedrockConverse model. The solution involves modifying the stream handling code to check for tool calls in the stream chunks, invoke the tool when a tool call is detected, and pr…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tusharm
Comment options

@dosubot
Comment options

Answer selected by tusharm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant