Class: OpenAI::Models::Beta::ChatKit::ChatKitThread::Status::Closed

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/openai/models/beta/chatkit/chatkit_thread.rb,
sig/openai/models/beta/chatkit/chatkit_thread.rbs

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, 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, #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

#initializeClosed

Returns a new instance of Closed.

Parameters:

  • reason: (String, nil)
  • type: (:closed)


85
# File 'sig/openai/models/beta/chatkit/chatkit_thread.rbs', line 85

def initialize: (reason: String?, ?type: :closed) -> void

Instance Attribute Details

#reasonString?

Reason that the thread was closed. Defaults to null when no reason is recorded.

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


120
# File 'lib/openai/models/beta/chatkit/chatkit_thread.rb', line 120

required :reason, String, nil?: true

#typeSymbol, :closed

Status discriminator that is always closed.

Parameters:

  • value (:closed)

Returns:

  • (Symbol, :closed)


126
# File 'lib/openai/models/beta/chatkit/chatkit_thread.rb', line 126

required :type, const: :closed

Instance Method Details

#to_hash{ reason: String?, type: :closed }

Returns:

  • ({ reason: String?, type: :closed })


87
# File 'sig/openai/models/beta/chatkit/chatkit_thread.rbs', line 87

def to_hash: -> { reason: String?, type: :closed }