-
Couldn't load subscription status.
- Fork 3.2k
docs(anthropic): add structured outputs and tool input streaming section #9229
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
Merged
lgrammel
merged 4 commits into
vercel:main
from
dhofheinz:docs/anthropic-structured-outputs
Oct 17, 2025
Merged
docs(anthropic): add structured outputs and tool input streaming section #9229
lgrammel
merged 4 commits into
vercel:main
from
dhofheinz:docs/anthropic-structured-outputs
Oct 17, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nicoalbanese
reviewed
Oct 7, 2025
|
@dhofheinz thanks for this! left one comment then this is good to go! |
nicoalbanese
approved these changes
Oct 7, 2025
lgrammel
reviewed
Oct 7, 2025
lgrammel
reviewed
Oct 7, 2025
Co-authored-by: Nico Albanese <[email protected]>
lgrammel
approved these changes
Oct 17, 2025
vercel-ai-sdk bot
pushed a commit
that referenced
this pull request
Oct 17, 2025
…ion (#9229) ## Summary Adds a new documentation section explaining how to enable incremental streaming for structured outputs and tool inputs when using the Anthropic provider. The new section includes: - Explanation of the `anthropic-beta: fine-grained-tool-streaming-2025-05-14` header - Complete code example for `streamObject` with structured outputs - Complete code example for `streamText` with tool input streaming - Clear description of the default behavior vs. incremental streaming Replaces the previous Note about tool call delays with comprehensive documentation. ## Related Issues Fixes #8915 Follow-up to #8914 --------- Co-authored-by: Nico Albanese <[email protected]> Co-authored-by: Lars Grammel <[email protected]>
|
✅ Backport PR created: #9604 |
vercel-ai-sdk bot
added a commit
that referenced
this pull request
Oct 17, 2025
…aming section (#9604) This is an automated backport of #9229 to the release-v5.0 branch. Co-authored-by: Daniel Hofheinz <[email protected]> Co-authored-by: Nico Albanese <[email protected]> Co-authored-by: Lars Grammel <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new documentation section explaining how to enable incremental streaming for structured outputs and tool inputs when using the Anthropic provider.
The new section includes:
anthropic-beta: fine-grained-tool-streaming-2025-05-14headerstreamObjectwith structured outputsstreamTextwith tool input streamingReplaces the previous Note about tool call delays with comprehensive documentation.
Related Issues
Fixes #8915
Follow-up to #8914