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
Add comprehensive documentation explaining the Agent class architecture and how it extends Durable Objects through PartyKit's Server class. This document demystifies the three-layer architecture (DurableObject → Server → Agent) and covers all major Agent features including:
- State management with this.state and this.setState()
- SQL template tag for database queries
- RPC and callable methods via WebSockets
- Built-in task queue with this.queue
- Scheduled execution with this.schedule
- MCP client integration
- Email handling capabilities
- Context management with AsyncLocalStorage
- Error handling and cleanup methods
Synced from cloudflare/agents PR #636
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
0 commit comments