Skip to content

[Agents] Document AI SDK v6 and v7 support#32245

Merged
cjol merged 2 commits into
productionfrom
docs/think-ai-sdk-v6-v7-compat
Jul 23, 2026
Merged

[Agents] Document AI SDK v6 and v7 support#32245
cjol merged 2 commits into
productionfrom
docs/think-ai-sdk-v6-v7-compat

Conversation

@cjol

@cjol cjol commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Summary

This PR documents dual AI SDK v6 and v7 support across the Agents SDK packages. It adds compatible peer-major guidance to Think and an Agents changelog entry.

Related: cloudflare/agents#1922

Screenshots (optional)

Documentation checklist

@github-actions github-actions Bot added product:changelog product:agents Build and deploy AI-powered Agents on Cloudflare that can act autonomously. size/s labels Jul 22, 2026
@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/changelog/ @cloudflare/pm-changelogs, @cloudflare/product-owners
/src/content/docs/agents/ @irvinebroque, @rita3ko, @elithrar, @cloudflare/product-owners, @cloudflare/ai-agents, @cloudflare/dev-plat-leads

@cjol
cjol marked this pull request as ready for review July 22, 2026 16:14
@cjol
cjol requested review from a team, elithrar, irvinebroque and rita3ko as code owners July 22, 2026 16:14
@cloudflare-docs-bot

cloudflare-docs-bot Bot commented Jul 22, 2026

Copy link
Copy Markdown
Contributor

Review

⚠️ 1 warning found in commit 554c83b.

👉 Fix in your agent 👈
Fix the following review findings in PR #32245 (https://github.com/cloudflare/cloudflare-docs/pull/32245).

Before making changes, review each finding and present a brief summary table:
- For each finding, state whether you agree, disagree, or need clarification
- If you disagree (e.g. the fix requires disproportionate effort for minimal benefit,
  or the finding is factually incorrect), explain why
- If you need clarification before deciding, ask those questions
- Then share your plan for which issues to tackle and in what order

After triaging, follow this order:
1. Post a comment on this PR for any findings you are skipping, with the finding ID and your reasoning.
2. Then commit the fixes for the legitimate findings.

The comment must come before the commit — the bot reads PR comments when a new
push triggers a review, so skip comments posted after the push will be missed.

---

## Code Review

### Warnings (1)

#### CR-6ea664fa4a89 · Incomplete install command
- **File:** `src/content/docs/agents/harnesses/think/index.mdx` line 35
- **Issue:** The PackageManagers command lists `@cloudflare/think @cloudflare/ai-chat agents ai @cloudflare/shell zod workers-ai-provider` but does not include `@ai-sdk/react`, while line 37 instructs users to keep `ai` and `@ai-sdk/react` on matching major versions. A reader running the shown command will not install the `@ai-sdk/react` package that the compatibility guidance says is required.
- **Fix:** Add `@ai-sdk/react` to the install command with an appropriate version constraint, or split into separate v6/v7 PackageManagers examples showing the exact compatible package combinations.

Code Review

This code review is in beta and may not always be helpful — use your judgment.

Warnings (1)
File Issue
agents/harnesses/think/index.mdx line 35 Incomplete install command — The PackageManagers command lists @cloudflare/think @cloudflare/ai-chat agents ai @cloudflare/shell zod workers-ai-provider but does not include @ai-sdk/react, while line 37 instructs users to keep ai and @ai-sdk/react on matching major versions. A reader running the shown command will not install the @ai-sdk/react package that the compatibility guidance says is required. Fix: Add @ai-sdk/react to the install command with an appropriate version constraint, or split into separate v6/v7 PackageManagers examples showing the exact compatible package combinations.

Conventions

No convention issues found.

Style Guide Review

No style-guide issues found.

Commands

Only codeowners can run commands. Post a comment with the command to trigger it.

Command Description
/review Runs a review now. Incremental if a prior review exists, full if not.
/full-review Re-reviews the entire PR diff from scratch, ignoring incremental history. Useful after a rebase, when you want a fresh review, or if the bot gets out of sync and reports issues that no longer exist.
/ignore-review-limit Permanently lifts the 2-review automatic limit for this PR. Future pushes will trigger reviews as normal.
/disable-auto-review Stops automatic reviews from triggering on future pushes to this PR. Codeowners can still run /review or /full-review manually.
/rebase Rebases the PR branch against production. On conflict, attempts to resolve automatically using AI. Stops with an explanation if confidence is not high enough.

Comment thread src/content/changelog/agents/2026-07-22-ai-sdk-v6-v7-support.mdx Outdated
@mattzcarey
mattzcarey enabled auto-merge (squash) July 23, 2026 14:48
@mattzcarey
mattzcarey disabled auto-merge July 23, 2026 14:48
@cjol
cjol force-pushed the docs/think-ai-sdk-v6-v7-compat branch from 6a3b6cc to 554c83b Compare July 23, 2026 14:51
@cjol
cjol enabled auto-merge (squash) July 23, 2026 14:54
@cjol
cjol merged commit 3047a0e into production Jul 23, 2026
13 checks passed
@cjol
cjol deleted the docs/think-ai-sdk-v6-v7-compat branch July 23, 2026 15:54
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. product:changelog size/s

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants