LiveServerEventLiveDecisionEvent interface

A Decision API event for a Live delegation or transcript trigger. For a trigger, source_event_id identifies the transcript delta that caused this evaluation.

Extends

Properties

delegation_id

The associated delegation ID, or null when the evaluation is not associated with a delegation.

event

The completed Decision evaluation, including its response and token usage.

event_id

The unique ID of this Live server event.

source_event_id

The ID of the transcript event that triggered this evaluation, or null when no source event applies.

source_event_type

The transcript event type that triggered this evaluation, or null when no source event applies.

trigger_id

The ID of the trigger that initiated this evaluation, or null when no trigger applies.

type

The event type. Always decision.event.

Property Details

delegation_id

The associated delegation ID, or null when the evaluation is not associated with a delegation.

delegation_id: string | null

Property Value

string | null

event

The completed Decision evaluation, including its response and token usage.

event: LiveDecisionCompleted

Property Value

event_id

The unique ID of this Live server event.

event_id: string

Property Value

string

source_event_id

The ID of the transcript event that triggered this evaluation, or null when no source event applies.

source_event_id: string | null

Property Value

string | null

source_event_type

The transcript event type that triggered this evaluation, or null when no source event applies.

source_event_type: "session.input_transcript.delta" | "session.output_transcript.delta" | null

Property Value

"session.input_transcript.delta" | "session.output_transcript.delta" | null

trigger_id

The ID of the trigger that initiated this evaluation, or null when no trigger applies.

trigger_id: string | null

Property Value

string | null

type

The event type. Always decision.event.

type: "decision.event"

Property Value

"decision.event"