AdapterConnectOptions
Defined in: packages/realtime/src/lib/realtime-session/provider-adapter.types.ts:26
Options a RealtimeSession hands an adapter on connect.
Properties
Section titled “Properties”backendInstructions?
Section titled “backendInstructions?”
readonlyoptionalbackendInstructions?:string
Defined in: packages/realtime/src/lib/realtime-session/provider-adapter.types.ts:30
Tool-routing instructions for a separate managed backend. Adapters without one ignore this field; managed adapters fall back to instructions when omitted.
conversationInstructions?
Section titled “conversationInstructions?”
readonlyoptionalconversationInstructions?:string
Defined in: packages/realtime/src/lib/realtime-session/provider-adapter.types.ts:37
Conversation-only instructions for providers with a separate conversational
frontend. backendInstructions (or instructions when absent) and tools
configure their managed tool backend.
Legacy adapters may ignore this field and keep their existing instruction path.
getInitialGrounding?
Section titled “getInitialGrounding?”
readonlyoptionalgetInitialGrounding?: () =>string
Defined in: packages/realtime/src/lib/realtime-session/provider-adapter.types.ts:39
Concise observed UI data for adapters that seed grounding when ready; never behavioral instructions.
Returns
Section titled “Returns”string
getRecoveryContext?
Section titled “getRecoveryContext?”
readonlyoptionalgetRecoveryContext?: () =>VoiceRecoverySnapshot
Defined in: packages/realtime/src/lib/realtime-session/provider-adapter.types.ts:41
Lazy bounded application evidence for startup recovery; never provider commands or authoritative final turns.
Returns
Section titled “Returns”instructions
Section titled “instructions”
readonlyinstructions:string
Defined in: packages/realtime/src/lib/realtime-session/provider-adapter.types.ts:28
prepareGreeting?
Section titled “prepareGreeting?”
readonlyoptionalprepareGreeting?:boolean
Defined in: packages/realtime/src/lib/realtime-session/provider-adapter.types.ts:48
Whether this connection may present the configured fixed greeting.
Defaults to true for direct adapter callers. RealtimeSession always sets
this explicitly so reconnects with terminal greeting proof can skip
greeting-only microphone preparation.
readonlytools: readonlyRealtimeToolSpec<string>[]
Defined in: packages/realtime/src/lib/realtime-session/provider-adapter.types.ts:27