View Source ExOpenAI.Components.WebhookRealtimeCallIncoming (ex_openai.ex v2.0.0-beta2)

Sent when Realtime API Receives a incoming SIP call.

Fields

  • :created_at - required - integer()
    The Unix timestamp (in seconds) of when the model response was completed.

  • :data - required - {:%{}, [], [{{:required, [], [:call_id]}, {{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}}, {{:required, [], [:sip_headers]}, {:list, [], [{:%{}, [], [{{:required, [], [:name]}, {{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}}, {{:required, [], [:value]}, {{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}}]}]}}]}
    Event data payload.

  • :id - required - String.t()
    The unique ID of the event.

  • :object - optional - :event
    The object of the event. Always event.
    Allowed values: "event"

  • :type - required - :"realtime.call.incoming"
    The type of the event. Always realtime.call.incoming.
    Allowed values: "realtime.call.incoming"

Summary

Types

@type t() :: %ExOpenAI.Components.WebhookRealtimeCallIncoming{
  created_at: integer(),
  data: %{
    call_id: String.t(),
    sip_headers: [%{name: String.t(), value: String.t()}]
  },
  id: String.t(),
  object: :event | nil,
  type: :"realtime.call.incoming"
}