interface ResponseCreateEvent {
    event_id?: string;
    response?: Partial<{
        instructions: string;
        max_output_tokens: number | "inf";
        modalities: ["text", "audio"] | ["text"];
        output_audio_format: "pcm16";
        temperature: number;
        tool_choice: string;
        tools?: Tool[];
        voice: string;
    }>;
    type: "response.create";
}

Hierarchy

  • BaseClientEvent
    • ResponseCreateEvent

Properties

event_id?: string
response?: Partial<{
    instructions: string;
    max_output_tokens: number | "inf";
    modalities: ["text", "audio"] | ["text"];
    output_audio_format: "pcm16";
    temperature: number;
    tool_choice: string;
    tools?: Tool[];
    voice: string;
}>

Type declaration

  • instructions: string
  • max_output_tokens: number | "inf"
  • modalities: ["text", "audio"] | ["text"]
  • output_audio_format: "pcm16"
  • temperature: number
  • tool_choice: string
  • Optional tools?: Tool[]
  • voice: string
type: "response.create"