Agent-readable docs index: /docs/llms.txt. Full docs in one file: /docs/llms-full.txt. Download /docs/docs.zip to grep all markdown files locally.

Errors and recovery

Listen for connection, limit, and error events. Treat all terminal connection states as reasons to reset the local voice UI.
ts
session.on("connection", ({ state, detail }) => { if (state === "closed" || state === "error") resetVoiceUI(detail); }); session.on("limit", ({ reason }) => showUpgrade(reason)); session.on("error", ({ code, message }) => reportRuntimeError(code, message));
Tool failures are emitted through tool.result and are also returned to the voice runtime so the conversation can recover.