Class: OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTask
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTask
- Defined in:
- lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb,
sig/openai/models/beta/chatkit/chatkit_thread_item_list.rbs
Defined Under Namespace
Modules: TaskType
Instance Attribute Summary collapse
-
#created_at ⇒ Integer
Unix timestamp (in seconds) for when the item was created.
-
#heading ⇒ String?
Optional heading for the task.
-
#id ⇒ String
Identifier of the thread item.
-
#object ⇒ :"chatkit.thread_item"
Type discriminator that is always
chatkit.thread_item. -
#summary ⇒ String?
Optional summary that describes the task.
-
#task_type ⇒ OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTask::task_type
Subtype for the task.
-
#thread_id ⇒ String
Identifier of the parent thread.
-
#type ⇒ :"chatkit.task"
Type discriminator that is always
chatkit.task.
Attributes inherited from Internal::Type::BaseModel
Instance Method Summary collapse
- #initialize(id:, created_at:, heading:, summary:, task_type:, thread_id:, object: :"chatkit.thread_item", type: :"chatkit.task") ⇒ Object constructor
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], #_request_id, #_set_last_response, coerce, #deconstruct_keys, #deep_to_h, dump, #encode_with, fields, hash, #hash, inherited, #inspect, inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, coerce_with_error, dump, #dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id:, created_at:, heading:, summary:, task_type:, thread_id:, object: :"chatkit.thread_item", type: :"chatkit.task") ⇒ Object
|
|
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 251
|
Instance Attribute Details
#created_at ⇒ Integer
Unix timestamp (in seconds) for when the item was created.
210 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 210 required :created_at, Integer |
#heading ⇒ String?
Optional heading for the task. Defaults to null when not provided.
216 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 216 required :heading, String, nil?: true |
#id ⇒ String
Identifier of the thread item.
204 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 204 required :id, String |
#object ⇒ :"chatkit.thread_item"
Type discriminator that is always chatkit.thread_item.
222 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 222 required :object, const: :"chatkit.thread_item" |
#summary ⇒ String?
Optional summary that describes the task. Defaults to null when omitted.
228 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 228 required :summary, String, nil?: true |
#task_type ⇒ OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTask::task_type
Subtype for the task.
234 235 236 237 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 234 required( :task_type, enum: -> { OpenAI::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTask::TaskType } ) |
#thread_id ⇒ String
Identifier of the parent thread.
243 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 243 required :thread_id, String |
#type ⇒ :"chatkit.task"
Type discriminator that is always chatkit.task.
249 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 249 required :type, const: :"chatkit.task" |
Instance Method Details
#to_hash ⇒ {
238 |
# File 'sig/openai/models/beta/chatkit/chatkit_thread_item_list.rbs', line 238
def to_hash: -> {
|