Optional options: RealtimeSessionOptionsOptional instructions: stringOptional chatCtx: ChatContextOptional tools: ToolContext<unknown>toolChoice and tools apply only to this response. Models without
RealtimeCapabilities.perResponseToolChoice ignore them.
Optional instructions: stringOptional signal?: AbortSignalOptional toolOptional tools?: ToolContext<unknown>RealtimeError on Timeout
RealtimeError on Timeout
Optional tool
A session for the OpenAI Realtime API.
This class is used to interact with the OpenAI Realtime API. It is responsible for sending events to the OpenAI Realtime API and receiving events from it.
It exposes two more events: