Class: OxAiWorkers::StateBatch

Inherits:
ModuleRequest show all
Extended by:
StateMachines::MacroMethods
Includes:
StateHelper
Defined in:
lib/oxaiworkers/state_batch.rb

Direct Known Subclasses

DelayedRequest

Instance Attribute Summary collapse

Attributes inherited from ModuleRequest

#client, #custom_id, #errors, #max_tokens, #messages, #model, #result, #temperature, #tool_calls, #tool_calls_raw, #tools

Instance Method Summary collapse

Methods included from StateHelper

#log_me

Methods inherited from ModuleRequest

#append, #initialize_requests, #not_found_is_ok, #params, #parse_choices

Instance Attribute Details

#batch_idObject

Returns the value of attribute batch_id.



11
12
13
# File 'lib/oxaiworkers/state_batch.rb', line 11

def batch_id
  @batch_id
end

#file_idObject

Returns the value of attribute file_id.



11
12
13
# File 'lib/oxaiworkers/state_batch.rb', line 11

def file_id
  @file_id
end

Instance Method Details

#cleanupObject



54
55
56
57
58
# File 'lib/oxaiworkers/state_batch.rb', line 54

def cleanup
  @file_id = nil
  @batch_id = nil
  super()
end