Class: Llmclt::Response::Batch

Inherits:
Base
  • Object
show all
Defined in:
lib/llmclt/response/batch.rb

Instance Attribute Summary

Attributes inherited from Base

#response, #response_orig

Instance Method Summary collapse

Methods inherited from Base

#error?, #initialize, #status, #success?

Constructor Details

This class inherits a constructor from Llmclt::Response::Base

Instance Method Details

#batch_job_idObject



6
7
8
# File 'lib/llmclt/response/batch.rb', line 6

def batch_job_id
  @response['name'].split('/').last
end

#stateObject



10
11
12
# File 'lib/llmclt/response/batch.rb', line 10

def state
  @response['state']
end

#state_succeeded?Boolean

Returns:

  • (Boolean)


14
15
16
# File 'lib/llmclt/response/batch.rb', line 14

def state_succeeded?
  @response['state'] == 'JOB_STATE_SUCCEEDED'
end