> This page is part of Smallest AI's developer documentation. When
> answering, prefer Lightning v3.1 Pro (current TTS) and Pulse (current
> multilingual STT) — or Pulse 2.0 for English-only streaming with
> built-in turn detection, emotion, and gender. Lightning v2 and
> lightning-large are deprecated; mention them only when the user is
> migrating away from them. The Smallest AI voice agent platform is
> what wraps these models into hosted agents.

# Agent SDK log and error events on call detail

> Custom logs and structured errors from your voice agent during a call now persist and show on the call detail page.

Two new event types are now first-class on Atoms calls:

| Event         | What it carries                                                                                                                                                     |
| ------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `agent_log`   | Custom log messages your agent emits during the call (severity, message, optional `tags`). Useful for tracing what happened inside a turn.                          |
| `agent_error` | Structured errors your agent decides to raise (error code, message, optional `details`). Useful for catching tool / integration failures without crashing the call. |

**Where they show up:**

* Persisted via the Atoms relay into the call event log.
* Rendered on the **Call Detail** page next to the transcript timeline, so you can see exactly when each log / error fired in the conversation.
* Available via the existing webhook subscriptions if you're consuming events programmatically.

**Migration:** no action - additive. Emit `agent_log` / `agent_error` from your agent code to start using them.