User input or instruction captured in the trace.
- content
- string
- metadata
- #/definitions/voice_message_metadata
Event schema
16 event typesThe Python TypedDict schema is the source of truth and the console mirrors it in zod. Unknown envelope fields pass through, but ordering and idempotency are enforced.
packages/promptetheus/promptetheus/schema.py mirrors into apps/console/src/lib/schema.ts. Order by (session_id, seq), never by timestamp.
| Field | Type | Required | Notes |
|---|---|---|---|
| type | EventType | required | One of the event types exported by schema.py and mirrored in the console schema. |
| session_id | string | required | Trace session id. The SDK generates one when callers do not provide one. |
| timestamp | ISO 8601 string | required | Client clock timestamp. Informational only; ordering uses seq. |
| seq | integer >= 0 | required | Monotonic per-session sequence number assigned before enqueue. |
| idempotency_key | string | required | Stable retry key, normally <session_id>:<instance_nonce>:<seq>. |
| payload | object | required | Event-specific payload object. |
| metadata | object | optional | Optional metadata object. SDK helpers take metadata explicitly, not open kwargs. |
| span_id | string | optional | Optional run-tree span id for events emitted inside a Session.span block. |
| parent_id | string | null | optional | Optional enclosing span id. Timeline order still uses seq. |
User input or instruction captured in the trace.
Agent response or claim, including terminal success claims.
Tool invocation with tool_name, arguments, and optional call_id.
Tool result or tool error associated with a call_id.
Retrieval query plus returned document metadata.
Browser click, fill, navigation, submit, or related UI action.
Observed browser state, visible text, selected values, and warnings.
Screenshot artifact reference or staged screenshot source.
Replay artifact identity and event time map for private storage.
Explicit user-goal verdict emitted by the agent or test harness.
Named state transition, including span_start and span_end markers.
Terminal session status event used as the canonical status transition.
Reserved event type for future LLM framework adapters.
Human or automated score attached to the session.
Captured exception or handled error richer than a tool_result error string.
Numeric metric emitted during the run.