Class: RobotLab::LlmGenerationHookContext

Inherits:
RunHookContext show all
Defined in:
lib/robot_lab/hook_context.rb

Instance Attribute Summary collapse

Attributes inherited from RunHookContext

#config, #error, #memory, #network, #request, #response, #robot, #task

Attributes inherited from HookContext

#event, #metadata

Instance Method Summary collapse

Methods inherited from HookContext

#ext, #local, #to_h, #with_namespace

Constructor Details

#initialize(iteration: 0, generation_response: nil) ⇒ LlmGenerationHookContext

Returns a new instance of LlmGenerationHookContext.



66
67
68
69
70
# File 'lib/robot_lab/hook_context.rb', line 66

def initialize(iteration: 0, generation_response: nil, **)
  super(**)
  @iteration = iteration
  @generation_response = generation_response
end

Instance Attribute Details

#generation_responseObject

Returns the value of attribute generation_response.



64
65
66
# File 'lib/robot_lab/hook_context.rb', line 64

def generation_response
  @generation_response
end

#iterationObject (readonly)

Returns the value of attribute iteration.



63
64
65
# File 'lib/robot_lab/hook_context.rb', line 63

def iteration
  @iteration
end