Class: Llmclt::Response::Batch
- Inherits:
-
Base
- Object
- Base
- Llmclt::Response::Batch
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?
Instance Method Details
#batch_job_id ⇒ Object
6
7
8
|
# File 'lib/llmclt/response/batch.rb', line 6
def batch_job_id
@response['name'].split('/').last
end
|
#state ⇒ Object
10
11
12
|
# File 'lib/llmclt/response/batch.rb', line 10
def state
@response['state']
end
|
#state_succeeded? ⇒ Boolean
14
15
16
|
# File 'lib/llmclt/response/batch.rb', line 14
def state_succeeded?
@response['state'] == 'JOB_STATE_SUCCEEDED'
end
|