|
1 | 1 | --- |
2 | | -title: Agents SDK v0.1.0-beta and workers-ai-provider v2.0.0 add AI SDK v5 support |
| 2 | +title: Agents SDK v0.1.0 and workers-ai-provider v2.0.0 with AI SDK v5 support |
3 | 3 | description: The latest release updates the Agents SDK with full AI SDK v5 compatibility, updated workers-ai-provider v2.0.0 with enhanced streaming and tool support, seamless legacy message migration, tool confirmation detection, and React hooks for building production-ready AI chat interfaces. |
4 | 4 | products: |
5 | 5 | - agents |
6 | 6 | - workers |
7 | | -date: 2025-09-04 |
| 7 | +date: 2025-09-09 |
8 | 8 | --- |
9 | 9 |
|
10 | | -We've shipped a major release for the [Agents SDK](https://github.com/cloudflare/agents) and [workers-ai-provider](https://github.com/cloudflare/ai), bringing full compatibility with [AI SDK v5](https://ai-sdk.dev/docs/introduction) and introducing automatic message migration that handles all legacy formats transparently. |
| 10 | +We've shipped a new release for the [Agents SDK](https://github.com/cloudflare/agents) bringing full compatibility with [AI SDK v5](https://ai-sdk.dev/docs/introduction) and introducing automatic message migration that handles all legacy formats transparently. |
11 | 11 |
|
12 | | -This update includes workers-ai-provider v2.0.0 with improved streaming and tool support, tool confirmation detection, enhanced React hooks with automatic tool resolution, improved error handling for streaming responses, and seamless migration utilities that work behind the scenes. |
| 12 | +This release includes improved streaming and tool support, tool confirmation detection (for "human in the loop" systems), enhanced React hooks with automatic tool resolution, improved error handling for streaming responses, and seamless migration utilities that work behind the scenes. |
13 | 13 |
|
14 | 14 | This makes it ideal for building production AI chat interfaces with Cloudflare Workers AI models, agent workflows, human-in-the-loop systems, or any application requiring reliable message handling across SDK versions — all while maintaining backward compatibility. |
15 | 15 |
|
| 16 | +Additionally, we've updated workers-ai-provider v2.0.0, the official provider for Cloudflare Workers AI models, to be compatible with AI SDK v5. |
| 17 | + |
16 | 18 | #### useAgentChat(options) |
17 | 19 |
|
18 | 20 | Creates a new chat interface with enhanced v5 capabilities. |
@@ -195,13 +197,6 @@ import { useAgentChat } from "agents/ai-react"; |
195 | 197 | const model = createWorkersAI({ |
196 | 198 | binding: env.AI, |
197 | 199 | })("@cf/meta/llama-3.2-3b-instruct"); |
198 | | - |
199 | | -// Use with agent chat |
200 | | -const { messages, sendMessage } = useAgentChat({ |
201 | | - agent, |
202 | | - experimental_automaticToolResolution: true, |
203 | | - tools, |
204 | | -}); |
205 | 200 | ``` |
206 | 201 |
|
207 | 202 | #### Enhanced File and Image Support |
@@ -261,6 +256,7 @@ import { useChat } from "@ai-sdk/react"; |
261 | 256 |
|
262 | 257 | - [Migration Guide](https://github.com/cloudflare/agents/blob/main/docs/migration-to-ai-sdk-v5.md) - Comprehensive migration documentation |
263 | 258 | - [AI SDK v5 Documentation](https://ai-sdk.dev/docs/migration-guides/migration-guide-5-0) - Official AI SDK migration guide |
| 259 | +- Example PR showing the migration from AI SDK v4 to v5: [# TODO with agents starter PR]() |
264 | 260 | - [GitHub Issues](https://github.com/cloudflare/agents/issues) - Report bugs or request features |
265 | 261 |
|
266 | 262 | ## Feedback Welcome |
|
0 commit comments