Module: OpenAI::Models::Beta::ChatKit::ChatKitThread::Status

Extended by:
Internal::Type::Union
Defined in:
lib/openai/models/beta/chatkit/chatkit_thread.rb

Overview

Current status for the thread. Defaults to ‘active` for newly created threads.

See Also:

Defined Under Namespace

Classes: Active, Closed, Locked

Instance Method Summary collapse

Methods included from Internal::Type::Union

==, ===, coerce, dump, hash, inspect, to_sorbet_type, variants

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Instance Method Details

#initialize(reason:, type: :locked) ⇒ Object

Indicates that a thread is locked and cannot accept new input.

Parameters:

  • reason (String, nil)

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

  • type (Symbol, :locked) (defaults to: :locked)

    Status discriminator that is always ‘locked`.



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