class

OpenAI::AssistantMessageItem

Inherits JSON::Serializable < Reference < Object

Assistant-authored message within a thread.

Constructors

new(id : String = "", object : AssistantMessageItemObject = AssistantMessageItemObject::ChatkitThreadItem, created_at : Int64 = 0, thread_id : String = "", type_value : AssistantMessageItemType = AssistantMessageItemType::ChatkitAssistantMessage, content : Array(ResponseOutputText) = [] of ResponseOutputText)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content

Ordered assistant response segments.

Source
content=(content : Array(ResponseOutputText))

Ordered assistant response segments.

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
object

Type discriminator that is always chatkit.thread_item.

Source
object=(object : AssistantMessageItemObject)

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

Type discriminator that is always chatkit.assistant_message.

Source
type_value=(type_value : AssistantMessageItemType)

Type discriminator that is always chatkit.assistant_message.

Source