Sha256: c3272a9ee3f52ba5d949ba0bb5259bb319dec076212c7a2c80728e09c18de948

Contents?: true

Size: 364 Bytes

Versions: 2

Compression:

Stored size: 364 Bytes

Contents

module OpenAI
  class RunSteps
    def initialize(client:)
      @client = client.beta(assistants: "v2")
    end

    def list(thread_id:, run_id:)
      @client.get(path: "/threads/#{thread_id}/runs/#{run_id}/steps")
    end

    def retrieve(thread_id:, run_id:, id:)
      @client.get(path: "/threads/#{thread_id}/runs/#{run_id}/steps/#{id}")
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ruby-openai-transitory-v2-6.5.3 lib/openai/run_steps.rb
ruby-openai-transitory-v2-6.5.2 lib/openai/run_steps.rb