View Source ExOpenAI.Components.RealtimeSessionCreateResponse (ex_openai.ex v1.8.0)

Schema representing a RealtimeSessionCreateResponse within the OpenAI API

Summary

Types

@type t() :: %ExOpenAI.Components.RealtimeSessionCreateResponse{
  client_secret: %{expires_at: integer(), value: String.t()},
  input_audio_format: String.t() | nil,
  input_audio_transcription: %{model: String.t()} | nil,
  instructions: String.t() | nil,
  max_response_output_tokens: (:inf | integer()) | nil,
  modalities: [:audio | :text] | nil,
  output_audio_format: String.t() | nil,
  temperature: float() | nil,
  tool_choice: String.t() | nil,
  tools:
    [
      %{
        description: String.t(),
        name: String.t(),
        parameters: map(),
        type: :function
      }
    ]
    | nil,
  turn_detection:
    %{
      prefix_padding_ms: integer(),
      silence_duration_ms: integer(),
      threshold: float(),
      type: String.t()
    }
    | nil,
  voice:
    (:verse | :shimmer | :sage | :echo | :coral | :ballad | :ash | :alloy) | nil
}