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

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

Returns a new instance of Closed.

Parameters:

  • reason —

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

  • type —

    Status discriminator that is always closed.

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


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

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

Instance Attribute Details

#reason ⇒ String?

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

Returns:

  • (String, nil)


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

required :reason, String, nil?: true

#type ⇒ :closed

Status discriminator that is always closed.

Returns:

  • (:closed)


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

required :type, const: :closed

Instance Method Details

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

Returns:

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


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

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