class

OpenAI::OutputMessage

Inherits JSON::Serializable < Reference < Object

An output message from the model.

Constructors

new(id : String = "", type_value : OutputMessageType = OutputMessageType::Message, role : OutputMessageRole = OutputMessageRole::Assistant, content : Array(OutputMessageContent) = [] of OutputMessageContent, status : OutputMessageStatus = OutputMessageStatus::InProgress)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content

The content of the output message.

Source
content=(content : Array(OutputMessageContent))

The content of the output message.

Source
id

The unique ID of the output message.

Source
id=(id : String)

The unique ID of the output message.

Source
role

The role of the output message. Always assistant.

Source
role=(role : OutputMessageRole)

The role of the output message. Always assistant.

Source
status

The status of the message input. One of in_progress, completed, or incomplete. Populated when input items are returned via API.

Source
status=(status : OutputMessageStatus)

The status of the message input. One of in_progress, completed, or incomplete. Populated when input items are returned via API.

Source
type_value

The type of the output message. Always message.

Source
type_value=(type_value : OutputMessageType)

The type of the output message. Always message.

Source