Class: OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTaskGroup

Inherits:
Internal::Type::BaseModel show all
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

Classes: Task

Instance Attribute Summary collapse

Attributes inherited from Internal::Type::BaseModel

#last_response

Instance Method Summary collapse

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 ⇒ Object

Parameters:

  • id —

    Identifier of the thread item.

  • created_at —

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

  • tasks —

    Tasks included in the group.

  • thread_id —

    Identifier of the parent thread.

  • object —

    Type discriminator that is always chatkit.thread_item.

  • type —

    Type discriminator that is always chatkit.task_group.



302
# File 'sig/openai/models/beta/chatkit/chatkit_thread_item_list.rbs', line 302

def initialize: (

Instance Attribute Details

#created_at ⇒ Integer

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

Returns:

  • (Integer)


303
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 303

required :created_at, Integer

#id ⇒ String

Identifier of the thread item.

Returns:

  • (String)


297
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 297

required :id, String

#object ⇒ :"chatkit.thread_item"

Type discriminator that is always chatkit.thread_item.

Returns:

  • (:"chatkit.thread_item")


309
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 309

required :object, const: :"chatkit.thread_item"

#tasks ⇒ ::Array[OpenAI::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTaskGroup::Task]

Tasks included in the group.

Returns:

  • (::Array[OpenAI::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTaskGroup::Task])


315
316
317
318
319
320
321
322
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 315

required(
  :tasks,
  -> {
    OpenAI::Internal::Type::ArrayOf[
      OpenAI::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTaskGroup::Task
    ]
  }
)

#thread_id ⇒ String

Identifier of the parent thread.

Returns:

  • (String)


328
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 328

required :thread_id, String

#type ⇒ :"chatkit.task_group"

Type discriminator that is always chatkit.task_group.

Returns:

  • (:"chatkit.task_group")


334
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 334

required :type, const: :"chatkit.task_group"

Instance Method Details

#to_hash ⇒ {

Returns:

  • ({)


311
# File 'sig/openai/models/beta/chatkit/chatkit_thread_item_list.rbs', line 311

def to_hash: -> {