class

OpenAI::TaskItem

Inherits JSON::Serializable < Reference < Object

Task emitted by the workflow to show progress and status updates.

Constructors

new(id : String = "", object : TaskItemObject = TaskItemObject::ChatkitThreadItem, created_at : Int64 = 0, thread_id : String = "", type_value : TaskItemType = TaskItemType::ChatkitTask, task_type : TaskType = TaskType::Custom, heading : TaskItemHeading = nil, summary : TaskItemSummary = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

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
heading
Source
heading=(heading : TaskItemHeading)
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 : TaskItemObject)

Type discriminator that is always chatkit.thread_item.

Source
summary
Source
summary=(summary : TaskItemSummary)
Source
task_type

Subtype for the task.

Source
task_type=(task_type : TaskType)

Subtype for the task.

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.task.

Source
type_value=(type_value : TaskItemType)

Type discriminator that is always chatkit.task.

Source