Overview of Cloudflare Agents SDK
mainCloudflare Agents SDK is designed for building stateful, globally distributed AI agents on Durable Objects. It provides built-in support for persistent memory, real-time WebSocket connections, scheduled tasks, async workflows, and SQL integration.
Use this SDK when your agent requires:
- Persistent state and memory.
- Real-time WebSocket connections.
- Long-running workflows (minutes or hours).
- Chat interfaces with AI models.
- Scheduled or recurring tasks that maintain state.
- Database queries that depend on agent state.