-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
anthropic[minor]: Implement actual anthropic tool call streaming #6056
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
…to brace/anthropic-tool-streaming
langchain-core/src/messages/base.ts
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ignore this file, this is merged from #6057
This exact feature is also missing from ChatGroq and ChatVertexAI. When ever we call the models with tools they don't stream. |
Thanks for flagging - can you open an issue? I think when we initially implemented these integration packages, streaming tool calls weren't supported, but if they are now we should support. |
This is now broken when using |
Still having streaming issues with ChatAnthropic using streamEvents and v2 in particular. I saw an open issue in the langgraph repo so I posted there. This may be involve More details: |
Depends on #6057 merging & releasing
Adds proper streaming tool call support to
ChatAnthropic
. Now it willtool_calls
in the final message with the tool callsFor backcompat:
content
field withtype: "tool_use"
JSON.parse()
s the tool call input args inside thecontent
block and only yield the final chunk so theinput
field contains valid JSON