LiveSessionCreateParams interface

Initial configuration for a Live session, including its model, conversation instructions, audio, and delegated task handling.

Properties

audio

Startup audio configuration. Only primary WebSockets accept audio.format; WebRTC and SIP negotiate their media format. Voice and format are immutable after startup.

client

Startup-only capabilities for an untrusted frontend attached to a unified WebRTC session. Trusted sideband connections are unaffected.

delegation

The owner and backend settings for tasks delegated by the Live model.

input

Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and a configured rendered-token limit (8,192 by default).

instructions

Instructions that guide the Live model's behavior during the session.

model

The Live model used to process audio and generate spoken responses.

store

Whether to store the session for later forking and recording download. Defaults to false for new sessions.

triggers

At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers.

Property Details

audio

Startup audio configuration. Only primary WebSockets accept audio.format; WebRTC and SIP negotiate their media format. Voice and format are immutable after startup.

audio?: LiveInitialSessionAudioParam

Property Value

client

Startup-only capabilities for an untrusted frontend attached to a unified WebRTC session. Trusted sideband connections are unaffected.

client?: LiveClientConfigParam

Property Value

delegation

The owner and backend settings for tasks delegated by the Live model.

delegation?: LiveSessionCreateParamsDelegationUnion

Property Value

input

Ordered text-only history supplied before startup. Supports developer, user, and assistant messages with one text part each; at most 128 messages and a configured rendered-token limit (8,192 by default).

input?: LiveInitialItemUnion[]

Property Value

instructions

Instructions that guide the Live model's behavior during the session.

instructions?: string

Property Value

string

model

The Live model used to process audio and generate spoken responses.

model: "gpt-live-1"

Property Value

"gpt-live-1"

store

Whether to store the session for later forking and recording download. Defaults to false for new sessions.

store?: boolean

Property Value

boolean

triggers

At most one Decisions trigger per transcript event type. Triggers run independently of delegation. On update, omit triggers to keep the current configuration, send a list to replace it, or send an empty list to disable triggers.

triggers?: LiveDecisionTriggerInputParam[]

Property Value