OpenAI::UserMessageItem
Inherits JSON::Serializable < Reference < Object
User-authored messages within a thread.
Constructors
new(pull : JSON::PullParser)
Sourcenew(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)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
Attachments associated with the user message. Defaults to an empty list.
Ordered content elements supplied by the user.
inference_options
Sourceinference_options=(inference_options : UserMessageItemInferenceOptions)
Sourceobject=(object : UserMessageItemObject)
Type discriminator that is always chatkit.thread_item.
type_value
Sourcetype_value=(type_value : UserMessageItemType)
Source