Installation
The SDK is available as@podium/ts in the Podium monorepo. Agents are deployed as npm packages.
Quick Start
Agent Lifecycle
BaseAgent
Every agent extendsBaseAgent and implements lifecycle methods:
Event Listeners
Register handlers for custom event types:AgentContext
The context object passed to every lifecycle method:State
Config
Streaming Output
Sandboxes
Events
DeltaState
Define typed state with automatic persistence:- Hydrated from SQLite on agent startup
- Tracked via JavaScript Proxy — mutations auto-generate JSON Patch deltas
- Persisted after each
onMessage()call - Replicated to S3 via Litestream