Skip to content

migration to AI SDK v6#27166

Closed
agents-git-bot[bot] wants to merge 2 commits into
productionfrom
sync-docs-pr-733
Closed

migration to AI SDK v6#27166
agents-git-bot[bot] wants to merge 2 commits into
productionfrom
sync-docs-pr-733

Conversation

@agents-git-bot

@agents-git-bot agents-git-bot Bot commented Dec 16, 2025

Copy link
Copy Markdown
Contributor

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

  • Added comprehensive migration guide at /agents/reference/migrate-to-ai-sdk-v6/
  • Created new reference/ section for migration and reference documentation
  • Documented all breaking changes with before/after code examples:
    • Unified tool pattern (replaces AITool, toolsRequiringConfirmation, etc.)
    • convertToModelMessages() is now async
    • CoreMessage type removed (use ModelMessage)
    • isToolUIPart and getToolName behavior changes
    • generateObject mode option removed
  • Documented deprecated APIs and their replacements
  • Added new AI SDK v6 features:
    • Agent abstraction with ToolLoopAgent
    • Tool execution approval with needsApproval
    • Structured output with tool calling
    • Reranking support
  • Follows Cloudflare docs style guide with TypeScriptExample and PackageManagers components

Testing

  • Verified markdown syntax and frontmatter
  • Used appropriate Cloudflare documentation components
  • Included migration checklist for developers
  • Added links to official AI SDK v6 documentation

🤖 Generated with Claude Code

Source PR: cloudflare/agents#733

@agents-git-bot
agents-git-bot Bot requested a review from a team December 16, 2025 14:29
@agents-git-bot
agents-git-bot Bot requested a review from a team as a code owner December 16, 2025 14:29
@github-actions github-actions Bot added the product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. label Dec 16, 2025
@github-actions

Copy link
Copy Markdown
Contributor

This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:

Pattern Owners
/src/content/docs/agents/ @irvinebroque, @rita3ko, @elithrar, @thomasgauvin, @threepointone, @whoiskatrin, @cloudflare/pcx-technical-writing, @cloudflare/ai-agents

@agents-git-bot

Copy link
Copy Markdown
Contributor Author

Updated to include comprehensive AI SDK v6 migration guide at /agents/guides/migrate-to-ai-sdk-v6/.

The guide includes:

  • Step-by-step migration instructions for all breaking changes
  • Before/after code examples using TypeScript components
  • Complete deprecation table with replacements
  • New v6 features: Agent abstraction, tool approval, structured output, reranking
  • Migration checklist for package updates and code changes
  • Adapted for Cloudflare docs style (PackageManagers and TypeScriptExample components)

Ready for review.

@agents-git-bot
agents-git-bot Bot force-pushed the sync-docs-pr-733 branch 2 times, most recently from 1e1a77b to b7a9845 Compare December 22, 2025 11:20
@github-actions

github-actions Bot commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

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>
@github-actions

github-actions Bot commented Dec 22, 2025

Copy link
Copy Markdown
Contributor

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>
@github-actions

Copy link
Copy Markdown
Contributor

Hey there, we've marked this pull request as stale because there's no recent activity on it. This label is helps us identify PRs that might need updates (or to be closed out by our team if no longer relevant).

@github-actions
github-actions Bot deleted the sync-docs-pr-733 branch March 19, 2026 17:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. size/m stale

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants