Skip to content

bodhi-realtime-agent / GeminiLiveTranscribeLifecycleEvent

Type Alias: GeminiLiveTranscribeLifecycleEvent ​

GeminiLiveTranscribeLifecycleEvent = { connectionId: number; meta?: unknown; phase: "dial"; } | { connectionId: number; meta?: unknown; phase: "setup-ok"; } | { code?: number; connectionId: number; failure?: ConnectFailure; meta?: unknown; phase: "closed"; reason?: string; setupDone: boolean; }

Defined in: src/transport/gemini-live-transcribe-stt-provider.ts:125

One connection of a GeminiLiveTranscribeSTTProvider: dial when its socket is created, setup-ok at setupComplete, and closed once it is gone, whether it failed before setup, was retired after a handover, expired, or was stopped. Every connection ends with one closed (once its socket reports the close), including one whose credential never came. meta is the credential's meta (credentialProvider only), once the provider returned it.

Union Members ​

Type Literal ​

{ connectionId: number; meta?: unknown; phase: "dial"; }


Type Literal ​

{ connectionId: number; meta?: unknown; phase: "setup-ok"; }


Type Literal ​

{ code?: number; connectionId: number; failure?: ConnectFailure; meta?: unknown; phase: "closed"; reason?: string; setupDone: boolean; }

code? ​

optional code?: number

WebSocket close code and reason, when its socket closed.

connectionId ​

connectionId: number

failure? ​

optional failure?: ConnectFailure

Why it failed before setupComplete; absent once it was set up.

meta? ​

optional meta?: unknown

phase ​

phase: "closed"

reason? ​

optional reason?: string

setupDone ​

setupDone: boolean

Whether it reached setupComplete.

Built with VitePress