Skip to content

Commit c727add

Browse files
coffee-mugfurrypetkodster28
authored andcommitted
Agents - Mention that Cloudflare Durable Objects bindings are required for Agents to work (#20956)
* Agents - mention the need of DO bindings in API reference intro * Agents - mention the need of DO bindings in API reference intro * Link update * Update src/content/docs/agents/api-reference/agents-api.mdx --------- Co-authored-by: Lucas Kostka <[email protected]> Co-authored-by: Kody Jackson <[email protected]>
1 parent a34fd50 commit c727add

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/content/docs/agents/api-reference/agents-api.mdx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,13 @@ The Agents SDK exposes two main APIs:
1414
* The server-side `Agent` class. An Agent encapsulates all of the logic for an Agent, including how clients can connect to it, how it stores state, the methods it exposes, how to call AI models, and any error handling.
1515
* The client-side `AgentClient` class, which allows you to connect to an Agent instance from a client-side application. The client APIs also include React hooks, including `useAgent` and `useAgentChat`, and allow you to automatically synchronize state between each unique Agent (running server-side) and your client applications.
1616

17+
:::note
18+
19+
Agents require [Cloudflare Durable Objects](/durable-objects/), see [Configuration](/agents/getting-started/testing-your-agent/#add-the-agent-configuration) to learn how to add the required bindings to your project.
20+
21+
:::
22+
23+
1724
You can also find more specific usage examples for each API in the [Agents API Reference](/agents/api-reference/).
1825

1926
<TypeScriptExample>

0 commit comments

Comments
 (0)