Intelligence · interface
RealtimeOptions
A realtime transport, emitting the same events every other session emits.
Explained in Agents and behaviour.
interface RealtimeOptionsimport type { RealtimeOptions } from '@driftengine/ai';In depth
Additive. Nothing downstream branches on transport: the buffered loop, the floor,
the admission guards and the command log all see the same AiEvent union they
already see. A session with realtime configured still has exactly one request in
flight, because the state machine does not know what a transport is.
Audio stays bridged, not coupled. This module imports nothing from
@driftengine/audio, and the package declares no dependency on it. A consumer wires
its own microphone and speaker to whatever this yields, because the moment an AI
package owned an audio graph it would be an AI package that knew what a mix was.
Properties
| Name | Type | Description |
|---|---|---|
modelreadonly | string | |
inputreadonlyoptional | AsyncIterable<string> | Frames a consumer pushes in. Text here, because audio is the consumer's to carry. |