Class: OpenAI::Resources::Beta::ChatKit
- Inherits:
-
Object
- Object
- OpenAI::Resources::Beta::ChatKit
- Defined in:
- lib/openai/resources/beta/chatkit.rb,
lib/openai/resources/beta/chatkit/threads.rb,
lib/openai/resources/beta/chatkit/sessions.rb
Defined Under Namespace
Instance Attribute Summary collapse
- #sessions ⇒ OpenAI::Resources::Beta::ChatKit::Sessions readonly
- #threads ⇒ OpenAI::Resources::Beta::ChatKit::Threads readonly
Instance Method Summary collapse
-
#initialize(client:) ⇒ ChatKit
constructor
private
A new instance of ChatKit.
Constructor Details
#initialize(client:) ⇒ ChatKit
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of ChatKit.
16 17 18 19 20 |
# File 'lib/openai/resources/beta/chatkit.rb', line 16 def initialize(client:) @client = client @sessions = OpenAI::Resources::Beta::ChatKit::Sessions.new(client: client) @threads = OpenAI::Resources::Beta::ChatKit::Threads.new(client: client) end |
Instance Attribute Details
#sessions ⇒ OpenAI::Resources::Beta::ChatKit::Sessions (readonly)
8 9 10 |
# File 'lib/openai/resources/beta/chatkit.rb', line 8 def sessions @sessions end |
#threads ⇒ OpenAI::Resources::Beta::ChatKit::Threads (readonly)
11 12 13 |
# File 'lib/openai/resources/beta/chatkit.rb', line 11 def threads @threads end |