Intelligence · function
createRealtimeSession
Open a realtime session, or refuse before connecting.
Explained in Agents and behaviour.
function createRealtimeSession(provider: AiProvider, options: RealtimeOptions): RealtimeResultimport { createRealtimeSession } from '@driftengine/ai';Parameters
| Parameter | Type | Description |
|---|---|---|
provider | AiProvider | |
options | RealtimeOptions |
In depth
Refused before any transport is opened, in the shape §32 requires of every other provider decision: a socket opened against a provider that cannot hold a realtime conversation is a socket that fails later and more expensively than a string comparison.