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

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

Modules: Type

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(heading:, summary:, type:) ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTaskGroup::Task for more details.

Task entry that appears within a TaskGroup.

Parameters:



331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 331

class Task < OpenAI::Internal::Type::BaseModel
  # @!attribute heading
  #   Optional heading for the grouped task. Defaults to null when not provided.
  #
  #   @return [String, nil]
  required :heading, String, nil?: true

  # @!attribute summary
  #   Optional summary that describes the grouped task. Defaults to null when omitted.
  #
  #   @return [String, nil]
  required :summary, String, nil?: true

  # @!attribute type
  #   Subtype for the grouped task.
  #
  #   @return [Symbol, OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTaskGroup::Task::Type]
  required(
    :type,
    enum: -> { OpenAI::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTaskGroup::Task::Type }
  )

  # @!method initialize(heading:, summary:, type:)
  #   Some parameter documentations has been truncated, see
  #   {OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTaskGroup::Task}
  #   for more details.
  #
  #   Task entry that appears within a TaskGroup.
  #
  #   @param heading [String, nil] Optional heading for the grouped task. Defaults to null when not provided.
  #
  #   @param summary [String, nil] Optional summary that describes the grouped task. Defaults to null when omitted.
  #
  #   @param type [Symbol, OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTaskGroup::Task::Type] Subtype for the grouped task.

  # Subtype for the grouped task.
  #
  # @see OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTaskGroup::Task#type
  module Type
    extend OpenAI::Internal::Type::Enum

    CUSTOM = :custom
    THOUGHT = :thought

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#headingString?

Optional heading for the grouped task. Defaults to null when not provided.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :heading, String, nil?: true

#summaryString?

Optional summary that describes the grouped task. Defaults to null when omitted.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


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

required :summary, String, nil?: true

#typeSymbol, OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTaskGroup::Task::Type

Subtype for the grouped task.

Parameters:

  • value (OpenAI::Models::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTaskGroup::Task::type_)

Returns:



348
349
350
351
# File 'lib/openai/models/beta/chatkit/chatkit_thread_item_list.rb', line 348

required(
  :type,
  enum: -> { OpenAI::Beta::ChatKit::ChatKitThreadItemList::Data::ChatKitTaskGroup::Task::Type }
)

Instance Method Details

#to_hash{

Returns:

  • ({)


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

def to_hash: -> {