Submit a turn and consume its lifecycle and model events as a ReadableStream.
Only install what you need. Plugins, runners, and storage adapters keep optional capabilities outside the core runtime.
Model calls, tools, steps, and streaming events are powered by xsAI and work with any OpenAI-compatible endpoint.
Every turn forks the input log, runs on a working copy, and merges only successful episodes back.
Optional tree-shaped durable history with checkout, fork, and rebase via @apeira/session.
Cancel individual turns, interrupt active work while preserving context, or reset the agent to a clean baseline.