Skip to content

Conversation

@dhofheinz
Copy link
Contributor

@dhofheinz dhofheinz commented Oct 7, 2025

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

@nicoalbanese
Copy link
Collaborator

@dhofheinz thanks for this! left one comment then this is good to go!

@dhofheinz
Copy link
Contributor Author

@lgrammel Updated both subsections to use h4 headings instead of bold text in 00bba08. Thanks for the feedback.

@lgrammel lgrammel merged commit 4f609c0 into vercel:main Oct 17, 2025
16 of 17 checks passed
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]>
@vercel-ai-sdk vercel-ai-sdk bot removed the backport label Oct 17, 2025
@vercel-ai-sdk
Copy link
Contributor

vercel-ai-sdk bot commented Oct 17, 2025

✅ 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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Anthropic: add section to docs about structured outputs and tool inputs

3 participants