Class: RobotLab::LlmGenerationHookContext
- Inherits:
-
RunHookContext
- Object
- HookContext
- RunHookContext
- RobotLab::LlmGenerationHookContext
- Defined in:
- lib/robot_lab/hook_context.rb
Instance Attribute Summary collapse
-
#generation_response ⇒ Object
Returns the value of attribute generation_response.
-
#iteration ⇒ Object
readonly
Returns the value of attribute iteration.
Attributes inherited from RunHookContext
#config, #error, #memory, #network, #request, #response, #robot, #task
Attributes inherited from HookContext
Instance Method Summary collapse
-
#initialize(iteration: 0, generation_response: nil) ⇒ LlmGenerationHookContext
constructor
A new instance of LlmGenerationHookContext.
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_response ⇒ Object
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 |
#iteration ⇒ Object (readonly)
Returns the value of attribute iteration.
63 64 65 |
# File 'lib/robot_lab/hook_context.rb', line 63 def iteration @iteration end |