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

An assistant message item in a Realtime conversation.

Fields

  • :content - required - [{:%{}, [], [{{:optional, [], [:audio]}, {{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}}, {{:optional, [], [:text]}, {{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}}, {{:optional, [], [:transcript]}, {{:., [], [{:__aliases__, [alias: false], [:String]}, :t]}, [], []}}, {{:optional, [], [:type]}, {:|, [], [:output_text, :output_audio]}}]}]
    The content of the message.

  • :id - optional - String.t()
    The unique ID of the item. This may be provided by the client or generated by the server.

  • :object - optional - :"realtime.item"
    Identifier for the API object being returned - always realtime.item. Optional when creating a new item.
    Allowed values: "realtime.item"

  • :role - required - :assistant
    The role of the message sender. Always assistant.
    Allowed values: "assistant"

  • :status - optional - :completed | :incomplete | :in_progress
    The status of the item. Has no effect on the conversation.
    Allowed values: "completed", "incomplete", "in_progress"

  • :type - required - :message
    The type of the item. Always message.
    Allowed values: "message"

Summary

Types

@type t() :: %ExOpenAI.Components.RealtimeConversationItemMessageAssistant{
  content: [
    %{
      optional(:audio) => String.t(),
      optional(:text) => String.t(),
      optional(:transcript) => String.t(),
      optional(:type) => :output_text | :output_audio
    }
  ],
  id: String.t() | nil,
  object: :"realtime.item" | nil,
  role: :assistant,
  status: ((:completed | :incomplete) | :in_progress) | nil,
  type: :message
}