RaisedEvent interface

A raised event — the unified shape shared by generative (onLLMResponse.toolCalls) and live (onEvent) evaluation. Fields are decoded native values, validated against the declared event schema; mismatches are surfaced in warnings, never dropped.

Signature:

export interface RaisedEvent

Properties

Property Type Description

fields

Record<string, unknown>

id

string

Provider call-id where available, else generated.

name

string

ptsSecs

number

Media time (seconds) of the frame that produced the event (0 when unknown, e.g. live sessions).

warnings

string[]

Schema validation warnings (undeclared event, missing/unknown fields, type mismatches, enum out of range).