tmc / langchaingo

LangChain for Go, the easiest way to write LLM-based programs in Go
https://tmc.github.io/langchaingo/
MIT License
4.31k stars 593 forks source link

Anthropic streaming functions can't handle tool use blocks #1033

Open lonelycode opened 2 hours ago

lonelycode commented 2 hours ago

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.

lonelycode commented 2 hours ago

I would open a PR, but I have merged all my fixes into my main branch :-/