langchaingo
langchaingo copied to clipboard
Anthropic streaming functions can't handle tool use blocks
The anthropic streaming processing does not handle the set of blocks that send tool use and input data, and the handler fails if it tries.
I would open a PR, but I have merged all my fixes into my main branch :-/
You can still create a branch from your local main and use that to create a PR :)
I picked up the work from @lonelycode and made an PR out of this: https://github.com/tmc/langchaingo/pull/1193