You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If you've already been building with the Agents SDK, you can update your dependencies to use the new package name, and replace references to `agents-sdk` with `agents`:
21
+
22
+
```sh
23
+
# Remove the old (deprecated) package
24
+
npm uninstall agents-sdk
25
+
26
+
# Install the new package
27
+
npm i agents
28
+
29
+
# Find instances of the old package name in your codebase
30
+
grep -r 'agents-sdk'.
31
+
# Replace instances of the old package name with the new one
32
+
# (or use find-replace in your editor)
33
+
sed -i 's/agents-sdk/agents/g'$(grep -rl 'agents-sdk' .)
34
+
```
35
+
36
+
Future updates will be pushed to the new `agents` package, and the older package will be marked as deprecated.
14
37
15
38
#### Multi-Agent applications and RPC <Badgetext="New"variant="tip"size="small" />
16
39
@@ -22,44 +45,79 @@ We've added a number of big new features to the Agents SDK over the past few wee
22
45
- TODO: useAgentChat bug fixes for passing headers/credentials, properly clearing cache on unmount, etc
23
46
- TODO: experiemental /schedule module with a prompt/schema for adding scheduling to your app (with evals!)
24
47
25
-
We've also fixed a nubmer of bugs with state synchronization and the React hooks.
48
+
We've also fixed a number of bugs with state synchronization and the React hooks.
26
49
27
-
#### Call Agent methods from your client code <Badgetext="New"variant="tip"size="small" />
50
+
<TypeScriptExample>
28
51
29
-
We've added a new [`@callable` decorator](/agents/api-reference/client-api/) for defining methods that can be called directly from clients. This allows you call methods from within your client code: you can call methods (with arguments) and get native JavaScript objects back.
We've also renamed the Agents package to just `agents` (it's cleaner). If you've already been building with the Agents SDK, you can update your dependencies to use the new package name:
58
+
```
59
+
</TypeScriptExample>
34
60
35
-
```sh
36
-
# Remove the old (deprecated) package
37
-
npm uninstall agents-sdk
61
+
#### Call Agent methods from your client code <Badgetext="New"variant="tip"size="small" />
38
62
39
-
# Install the new package
40
-
npm i agents
63
+
We've added a new [`@callable()`](/agents/api-reference/client-api/) decorator for defining methods that can be called directly from clients. This allows you call methods from within your client code: you can call methods (with arguments) and get native JavaScript objects back.
The [`agents-starter`](https://github.com/cloudflare/agents-starter) project — a real-time, chat-based example application with tool-calling & human-in-the-loop built using the Agents SDK — has seen the following updates:
52
101
53
102
- TODO
54
103
- Upgraded to use the latest [wrangler v4](/changelog/2025-03-13-wrangler-v4/) release.
55
104
-[Workers AI](/workers-ai/) is now the default AI provider in the [`agents-starter`](https://github.com/cloudflare/agents-starter) project: this uses the new [structured outputs](/changelog/2025-02-25-json-mode/) (or "JSON mode") support now in Workers AI and the [`workers-ai-provider`](https://sdk.vercel.ai/providers/community-providers/cloudflare-workers-ai#generateobject).
56
105
57
-
#### More documentation
106
+
If you're new to Agents, you can install and run the `agents-starter` project in two commands:
#### More documentation <Badgetext="Updated"variant="tip"size="small" />
58
116
59
117
We've contined to build out the Agents SDK documentation, including:
60
118
61
119
- Expanded [API reference documentation](/agents/api-reference/), covering the methods and properties exposed by the Agents SDK, as well as more usage examples.
62
-
- A new [Client API](/agents/api-reference/client-api/) reference that documents `useAgent`, `useAgentChat` and the new `@callable` decorator exposed by the SDK.
63
-
- New documentation on how to [call agents](/agents/api-refererence/calling-agents/) and authenticate clients, using [Server-Sent Events (SSE)](/agents/api-refererence/http-sse/).
120
+
- A new [Client API](/agents/api-reference/client-api/) reference that documents `useAgent`, `useAgentChat` and the new `@callable`RPC decorator exposed by the SDK.
121
+
- New documentation on how to [call agents](/agents/api-refererence/calling-agents/) and (optionally) authenticate clients before they connect to your Agents.
64
122
65
123
If you're still wondering what Agents are, [read our blog on building AI Agents on Cloudflare](https://blog.cloudflare.com/build-ai-agents-on-cloudflare/) and/or visit the [Agents documentation](/agents/) to learn more.
0 commit comments