[Agents] Document AI SDK v6 and v7 support#32245
Merged
Merged
Conversation
Contributor
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
Contributor
cjol
marked this pull request as ready for review
July 22, 2026 16:14
cjol
requested review from
a team,
elithrar,
irvinebroque and
rita3ko
as code owners
July 22, 2026 16:14
Contributor
Review
👉 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 ReviewThis code review is in beta and may not always be helpful — use your judgment. Warnings (1)
ConventionsNo convention issues found. Style Guide ReviewNo style-guide issues found. CommandsOnly codeowners can run commands. Post a comment with the command to trigger it.
|
mattzcarey
reviewed
Jul 23, 2026
mattzcarey
approved these changes
Jul 23, 2026
mattzcarey
enabled auto-merge (squash)
July 23, 2026 14:48
mattzcarey
disabled auto-merge
July 23, 2026 14:48
cjol
force-pushed
the
docs/think-ai-sdk-v6-v7-compat
branch
from
July 23, 2026 14:51
6a3b6cc to
554c83b
Compare
cjol
enabled auto-merge (squash)
July 23, 2026 14:54
MattieTK
approved these changes
Jul 23, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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