What problem does it solve?
The Agents SDK empowers developers to build advanced AI applications on Cloudflare Workers. It simplifies the creation of stateful agents, durable workflows, real-time WebSocket apps, scheduled tasks, MCP servers, chat applications, voice agents, and browser automation.
Core Features & Use Cases
- Stateful Agents: Create agents with persistent state and callable RPC.
- Durable Workflows: Run multi-step background tasks that survive evictions.
- Real-Time Apps: Build real-time WebSocket applications with message persistence and resumable streams.
- Chat Agents: Develop chat applications with AIChatAgent and persistent messaging.
- Voice Agents: Create voice agents for speech-to-text and text-to-speech.
- Browser Automation: Automate web browsing tasks using the CDP browser tools.
- Use Case: Imagine you want to build a chatbot that can handle customer inquiries and respond in real-time. The Agents SDK allows you to create a stateful chat agent that can handle complex conversations and maintain user state across sessions.
Quick Start
To install the Agents SDK, run the following command:
npm install agents