Skip to content

Conversation

@agents-git-bot
Copy link
Contributor

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

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

@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
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
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
Copy link
Contributor

github-actions bot commented Dec 22, 2025

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
Copy link
Contributor

github-actions bot commented Dec 22, 2025

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>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants