View Source ExOpenAI.Components.RealtimeTurnDetection (ex_openai.ex v2.0.0-beta2)
Module for representing the OpenAI schema RealtimeTurnDetection.
Type
{:%{}, [], [{{:optional, [], [:create_response]}, {:boolean, [], []}}, {{:optional, [], [:idle_timeout_ms]}, {:|, [], [{:integer, [], []}, {:any, [], []}]}}, {{:optional, [], [:interrupt_response]}, {:boolean, [], []}}, {{:optional, [], [:prefix_padding_ms]}, {:integer, [], []}}, {{:optional, [], [:silence_duration_ms]}, {:integer, [], []}}, {{:optional, [], [:threshold]}, {:number, [], []}}, {{:required, [], [:type]}, {{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}}]} | {:%{}, [], [{{:optional, [], [:create_response]}, {:boolean, [], []}}, {{:optional, [], [:eagerness]}, {:|, [], [{:|, [], [{:|, [], [:low, :medium]}, :high]}, :auto]}}, {{:optional, [], [:interrupt_response]}, {:boolean, [], []}}, {{:required, [], [:type]}, {{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}}]} | any()
Summary
Types
@type t() :: (%{ optional(:create_response) => boolean(), optional(:idle_timeout_ms) => integer() | any(), optional(:interrupt_response) => boolean(), optional(:prefix_padding_ms) => integer(), optional(:silence_duration_ms) => integer(), optional(:threshold) => number(), type: String.t() } | %{ optional(:create_response) => boolean(), optional(:eagerness) => ((:low | :medium) | :high) | :auto, optional(:interrupt_response) => boolean(), type: String.t() }) | any()