Class: OpenAI::Models::Beta::ChatKit::ChatKitThread::Status::Closed
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- OpenAI::Models::Beta::ChatKit::ChatKitThread::Status::Closed
- Defined in:
- lib/openai/models/beta/chatkit/chatkit_thread.rb,
sig/openai/models/beta/chatkit/chatkit_thread.rbs
Instance Attribute Summary collapse
-
#reason ⇒ String?
Reason that the thread was closed.
-
#type ⇒ Symbol, :closed
Status discriminator that is always
closed.
Instance Method Summary collapse
-
#initialize ⇒ Closed
constructor
A new instance of Closed.
- #to_hash ⇒ { reason: String?, type: :closed }
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
#initialize ⇒ Closed
Returns a new instance of Closed.
85 |
# File 'sig/openai/models/beta/chatkit/chatkit_thread.rbs', line 85
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.
120 |
# File 'lib/openai/models/beta/chatkit/chatkit_thread.rb', line 120 required :reason, String, nil?: true |
#type ⇒ Symbol, :closed
Status discriminator that is always 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 }
87 |
# File 'sig/openai/models/beta/chatkit/chatkit_thread.rbs', line 87
def to_hash: -> { reason: String?, type: :closed }
|