Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions src/content/docs/agents/api-reference/agents-api.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ The Agents SDK exposes two main APIs:
* 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.
* 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.

:::note

Agents require [Cloudflare Durable Objects](/durable-objects), see [Configuration](/agents/configuration) to learn how to add the required bindings to your project.

:::


You can also find more specific usage examples for each API in the [Agents API Reference](/agents/api-reference/).

<TypeScriptExample>
Expand Down
Loading