Class: OpenAI::Resources::Beta
- Inherits:
-
Object
- Object
- OpenAI::Resources::Beta
- Defined in:
- lib/openai/resources/beta.rb,
lib/openai/resources/beta/threads.rb,
lib/openai/resources/beta/assistants.rb,
lib/openai/resources/beta/threads/runs.rb,
lib/openai/resources/beta/threads/messages.rb,
lib/openai/resources/beta/threads/runs/steps.rb
Defined Under Namespace
Classes: Assistants, Threads
Instance Attribute Summary collapse
- #assistants ⇒ OpenAI::Resources::Beta::Assistants readonly
- #threads ⇒ OpenAI::Resources::Beta::Threads readonly
Instance Method Summary collapse
-
#initialize(client:) ⇒ Beta
constructor
private
A new instance of Beta.
Constructor Details
#initialize(client:) ⇒ Beta
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 Beta.
15 16 17 18 19 |
# File 'lib/openai/resources/beta.rb', line 15 def initialize(client:) @client = client @assistants = OpenAI::Resources::Beta::Assistants.new(client: client) @threads = OpenAI::Resources::Beta::Threads.new(client: client) end |
Instance Attribute Details
#assistants ⇒ OpenAI::Resources::Beta::Assistants (readonly)
7 8 9 |
# File 'lib/openai/resources/beta.rb', line 7 def assistants @assistants end |
#threads ⇒ OpenAI::Resources::Beta::Threads (readonly)
10 11 12 |
# File 'lib/openai/resources/beta.rb', line 10 def threads @threads end |