View Source ExOpenAI.Components.OutputMessage (ex_openai.ex v2.0.0-beta2)
An output message from the model.
Fields
:content- required -[ExOpenAI.Components.OutputMessageContent.t()]
The content of the output message.:id- required -String.t()
The unique ID of the output message.:phase- optional -ExOpenAI.Components.MessagePhase.t() | any():role- required -:assistant
The role of the output message. Alwaysassistant.
Allowed values:"assistant":status- required -:in_progress | :completed | :incomplete
The status of the message input. One ofin_progress,completed, orincomplete. Populated when input items are returned via API.
Allowed values:"in_progress","completed","incomplete":type- required -:message
The type of the output message. Alwaysmessage.
Allowed values:"message"
Summary
Types
@type t() :: %ExOpenAI.Components.OutputMessage{ content: [ExOpenAI.Components.OutputMessageContent.t()], id: String.t(), phase: (ExOpenAI.Components.MessagePhase.t() | any()) | nil, role: :assistant, status: (:in_progress | :completed) | :incomplete, type: :message }