Codex.Realtime.Config.TurnDetectionConfig (Codex SDK v0.7.2)

Copy Markdown View Source

Configuration for voice activity detection and turn-taking.

Summary

Functions

Convert to JSON-compatible map.

Types

t()

@type t() :: %Codex.Realtime.Config.TurnDetectionConfig{
  create_response: boolean() | nil,
  eagerness: Codex.Realtime.Config.eagerness() | nil,
  idle_timeout_ms: non_neg_integer() | nil,
  interrupt_response: boolean() | nil,
  prefix_padding_ms: non_neg_integer() | nil,
  silence_duration_ms: non_neg_integer() | nil,
  threshold: float() | nil,
  type: Codex.Realtime.Config.turn_detection_type() | nil
}

Functions

to_json(config)

@spec to_json(t()) :: map()

Convert to JSON-compatible map.