Skip to content

Commit 327bb7e

Browse files
committed
some fixes
1 parent a0e1c32 commit 327bb7e

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

src/content/changelog/agents/2025-09-03-agents-sdk-beta-v5.mdx

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,20 @@
11
---
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
33
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.
44
products:
55
- agents
66
- workers
7-
date: 2025-09-04
7+
date: 2025-09-09
88
---
99

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

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

1414
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.
1515

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+
1618
#### useAgentChat(options)
1719

1820
Creates a new chat interface with enhanced v5 capabilities.
@@ -195,13 +197,6 @@ import { useAgentChat } from "agents/ai-react";
195197
const model = createWorkersAI({
196198
binding: env.AI,
197199
})("@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-
});
205200
```
206201

207202
#### Enhanced File and Image Support
@@ -261,6 +256,7 @@ import { useChat } from "@ai-sdk/react";
261256

262257
- [Migration Guide](https://github.com/cloudflare/agents/blob/main/docs/migration-to-ai-sdk-v5.md) - Comprehensive migration documentation
263258
- [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]()
264260
- [GitHub Issues](https://github.com/cloudflare/agents/issues) - Report bugs or request features
265261

266262
## Feedback Welcome

0 commit comments

Comments
 (0)