diff --git a/src/content/changelog/agents/2026-07-23-ai-sdk-v6-v7-support.mdx b/src/content/changelog/agents/2026-07-23-ai-sdk-v6-v7-support.mdx new file mode 100644 index 00000000000..24804c19737 --- /dev/null +++ b/src/content/changelog/agents/2026-07-23-ai-sdk-v6-v7-support.mdx @@ -0,0 +1,21 @@ +--- +title: Agents SDK packages support AI SDK v6 and v7 +description: Agents SDK packages now support AI SDK v6 and v7, so applications can update without a forced AI SDK migration. +products: + - agents +date: 2026-07-23 +--- + +import { PackageManagers } from "~/components"; + +The `agents`, `@cloudflare/ai-chat`, `@cloudflare/codemode`, and `@cloudflare/think` packages now support AI SDK v6 and v7. Existing applications can remain on v6 when updating these packages. Applications can also adopt v7 without changing the Cloudflare Agents APIs they use. + +The supported peer ranges are `ai@^6 || ^7` and `@ai-sdk/react@^3 || ^4`. Use matching major versions: pair AI SDK v6 with `@ai-sdk/react` v3, or pair AI SDK v7 with `@ai-sdk/react` v4. + +To install the latest packages with AI SDK v7: + + + +Think normalizes streaming, tool completion events, and telemetry across both AI SDK versions. Existing v6 applications do not need to migrate these integrations before updating Think. + +For setup and usage details, refer to the [Think documentation](/agents/harnesses/think/). diff --git a/src/content/docs/agents/harnesses/think/index.mdx b/src/content/docs/agents/harnesses/think/index.mdx index dae797e8032..53dd5f391d8 100644 --- a/src/content/docs/agents/harnesses/think/index.mdx +++ b/src/content/docs/agents/harnesses/think/index.mdx @@ -15,6 +15,7 @@ products: import { TypeScriptExample, WranglerConfig, + PackageManagers, LinkCard, CardGrid, } from "~/components"; @@ -31,9 +32,9 @@ If this is your first agent, start with the [Getting started tutorial](/agents/h ### Install -```sh -npm install @cloudflare/think @cloudflare/ai-chat agents ai @cloudflare/shell zod workers-ai-provider -``` + + +Think supports AI SDK v6 and v7. Use `ai@^6` with `@ai-sdk/react@^3`, or use `ai@^7` with `@ai-sdk/react@^4`. Keep the AI SDK packages on matching major versions throughout your project. ### Server