interface SessionUpdateEvent {
    event_id?: string;
    session: Partial<{
        input_audio_format: "pcm16";
        input_audio_transcription: null | InputAudioTranscription;
        instructions: string;
        max_response_output_tokens?: number | "inf";
        modalities: ["text", "audio"] | ["text"];
        output_audio_format: "pcm16";
        temperature: number;
        tool_choice: string;
        tools: Tool[];
        turn_detection: null | TurnDetectionType;
        voice: string;
    }>;
    type: "session.update";
}

Hierarchy

  • BaseClientEvent
    • SessionUpdateEvent

Properties

event_id?: string
session: Partial<{
    input_audio_format: "pcm16";
    input_audio_transcription: null | InputAudioTranscription;
    instructions: string;
    max_response_output_tokens?: number | "inf";
    modalities: ["text", "audio"] | ["text"];
    output_audio_format: "pcm16";
    temperature: number;
    tool_choice: string;
    tools: Tool[];
    turn_detection: null | TurnDetectionType;
    voice: string;
}>

Type declaration

  • input_audio_format: "pcm16"
  • input_audio_transcription: null | InputAudioTranscription
  • instructions: string
  • Optional max_response_output_tokens?: number | "inf"
  • modalities: ["text", "audio"] | ["text"]
  • output_audio_format: "pcm16"
  • temperature: number
  • tool_choice: string
  • tools: Tool[]
  • turn_detection: null | TurnDetectionType
  • voice: string
type: "session.update"