-
Notifications
You must be signed in to change notification settings - Fork 11.2k
migration to AI SDK v6 #27166
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
base: production
Are you sure you want to change the base?
migration to AI SDK v6 #27166
Conversation
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
|
Updated to include comprehensive AI SDK v6 migration guide at The guide includes:
Ready for review. |
1e1a77b to
b7a9845
Compare
|
Preview URL: https://6c0fffa6.preview.developers.cloudflare.com Files with changes (up to 15)
|
b7a9845 to
c4b41e3
Compare
Synced from cloudflare/agents PR #733 - Add comprehensive migration guide for upgrading from AI SDK v5 to v6 - Document breaking changes including unified tool pattern - Include code examples for before/after migration patterns - Cover new v6 features: Agent abstraction, tool approval, structured output - Provide complete migration checklist for developers 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
6c0fffa to
e884dd8
Compare
|
CI run failed: build logs |
- Add comprehensive migration guide for upgrading from AI SDK v5 to v6 - Document breaking changes: unified tool pattern, async convertToModelMessages, CoreMessage removal - Include before/after code examples for all breaking changes - Document deprecated APIs and their replacements - Add new v6 features: agent abstraction, tool approval, structured output, reranking - Create reference section for migration and reference documentation - Follow Cloudflare docs style guide with TypeScriptExample and PackageManagers components Related to cloudflare/agents PR #733 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
Summary
This PR syncs documentation changes from cloudflare/agents#733 which migrates the Agents SDK to AI SDK v6 beta with the unified tool pattern.
Changes
/agents/reference/migrate-to-ai-sdk-v6/reference/section for migration and reference documentationAITool,toolsRequiringConfirmation, etc.)convertToModelMessages()is now asyncCoreMessagetype removed (useModelMessage)isToolUIPartandgetToolNamebehavior changesgenerateObjectmode option removedToolLoopAgentneedsApprovalTypeScriptExampleandPackageManagerscomponentsTesting
🤖 Generated with Claude Code
Source PR: cloudflare/agents#733