Skip to content

AdapterDiagnosticResponse

AdapterDiagnosticResponse = { id: string; phase: "started" | "observed"; } | { id: string; outcome?: "succeeded" | "failed" | "cancelled" | "incomplete"; phase: "finished"; }

Defined in: packages/realtime/src/lib/realtime-session/provider-adapter.types.ts:263

Provider-reported response identity and lifecycle, independent of native event names.

{ id: string; phase: "started" | "observed"; }

readonly id: string

Opaque response identity within the provider lifetime and generation.

readonly phase: "started" | "observed"

Start or intermediate evidence; neither establishes a terminal outcome.


{ id: string; outcome?: "succeeded" | "failed" | "cancelled" | "incomplete"; phase: "finished"; }

readonly id: string

Opaque response identity within the provider lifetime and generation.

readonly optional outcome?: "succeeded" | "failed" | "cancelled" | "incomplete"

Reported terminal outcome; omission preserves an unknown result.

readonly phase: "finished"

Provider response processing ended; audio completion remains independent.