Class: OpenAI::Models::Beta::ChatKit::ChatKitThread

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

Overview

Defined Under Namespace

Modules: Status

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

#initialize(id:, created_at:, status:, title:, user:, object: :"chatkit.thread") ⇒ Object

Some parameter documentations has been truncated, see OpenAI::Models::Beta::ChatKit::ChatKitThread for more details.

Represents a ChatKit thread and its current status.

Parameters:



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


Instance Attribute Details

#created_atInteger

Unix timestamp (in seconds) for when the thread was created.

Returns:

  • (Integer)


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

required :created_at, Integer

#idString

Identifier of the thread.

Returns:

  • (String)


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

required :id, String

#objectSymbol, :"chatkit.thread"

Type discriminator that is always ‘chatkit.thread`.

Returns:

  • (Symbol, :"chatkit.thread")


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

required :object, const: :"chatkit.thread"

#statusOpenAI::Models::Beta::ChatKit::ChatKitThread::Status::Active, ...

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



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

required :status, union: -> { OpenAI::Beta::ChatKit::ChatKitThread::Status }

#titleString?

Optional human-readable title for the thread. Defaults to null when no title has been generated.

Returns:

  • (String, nil)


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

required :title, String, nil?: true

#userString

Free-form string that identifies your end user who owns the thread.

Returns:

  • (String)


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

required :user, String