class

OpenAI::UserMessageItem

Inherits JSON::Serializable < Reference < Object

User-authored messages within a thread.

Constructors

new(id : String = "", object : UserMessageItemObject = UserMessageItemObject::ChatkitThreadItem, created_at : Int64 = 0, thread_id : String = "", type_value : UserMessageItemType = UserMessageItemType::ChatkitUserMessage, content : Array(UserMessageItemContentItem) = [] of UserMessageItemContentItem, attachments : Array(Attachment) = [] of Attachment, inference_options : UserMessageItemInferenceOptions = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

attachments

Attachments associated with the user message. Defaults to an empty list.

Source
attachments=(attachments : Array(Attachment))

Attachments associated with the user message. Defaults to an empty list.

Source
content

Ordered content elements supplied by the user.

Source
content=(content : Array(UserMessageItemContentItem))

Ordered content elements supplied by the user.

Source
created_at

Unix timestamp (in seconds) for when the item was created.

Source
created_at=(created_at : Int64)

Unix timestamp (in seconds) for when the item was created.

Source
id

Identifier of the thread item.

Source
id=(id : String)

Identifier of the thread item.

Source
inference_options
Source
inference_options=(inference_options : UserMessageItemInferenceOptions)
Source
object

Type discriminator that is always chatkit.thread_item.

Source
object=(object : UserMessageItemObject)

Type discriminator that is always chatkit.thread_item.

Source
thread_id

Identifier of the parent thread.

Source
thread_id=(thread_id : String)

Identifier of the parent thread.

Source
type_value
Source
type_value=(type_value : UserMessageItemType)
Source