Class: OpenAI::RunSteps
- Inherits:
-
Object
- Object
- OpenAI::RunSteps
- Defined in:
- lib/openai/run_steps.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ RunSteps
constructor
A new instance of RunSteps.
- #list(thread_id:, run_id:, parameters: {}) ⇒ Object
- #retrieve(thread_id:, run_id:, id:, parameters: {}) ⇒ Object
Constructor Details
#initialize(client:) ⇒ RunSteps
Returns a new instance of RunSteps.
3 4 5 |
# File 'lib/openai/run_steps.rb', line 3 def initialize(client:) @client = client.beta(assistants: OpenAI::Assistants::BETA_VERSION) end |
Instance Method Details
#list(thread_id:, run_id:, parameters: {}) ⇒ Object
7 8 9 |
# File 'lib/openai/run_steps.rb', line 7 def list(thread_id:, run_id:, parameters: {}) @client.get(path: "/threads/#{thread_id}/runs/#{run_id}/steps", parameters: parameters) end |
#retrieve(thread_id:, run_id:, id:, parameters: {}) ⇒ Object
11 12 13 |
# File 'lib/openai/run_steps.rb', line 11 def retrieve(thread_id:, run_id:, id:, parameters: {}) @client.get(path: "/threads/#{thread_id}/runs/#{run_id}/steps/#{id}", parameters: parameters) end |