Class: OmniAI::OpenAI::Threads
- Inherits:
-
Object
- Object
- OmniAI::OpenAI::Threads
- Defined in:
- lib/omniai/openai/threads.rb
Overview
An OpenAI scope for establishing threads.
Instance Method Summary collapse
- #build(metadata: {}, tool_resources: {}) ⇒ Object
- #destroy!(id:) ⇒ Object
- #find(id:) ⇒ Object
-
#initialize(client:) ⇒ Threads
constructor
A new instance of Threads.
Constructor Details
#initialize(client:) ⇒ Threads
Returns a new instance of Threads.
8 9 10 |
# File 'lib/omniai/openai/threads.rb', line 8 def initialize(client:) @client = client end |
Instance Method Details
#build(metadata: {}, tool_resources: {}) ⇒ Object
24 25 26 |
# File 'lib/omniai/openai/threads.rb', line 24 def build(metadata: {}, tool_resources: {}) Thread.new(metadata:, tool_resources:, client: @client) end |