Class: RobotLab::To::Evals::Context
- Inherits:
-
Data
- Object
- Data
- RobotLab::To::Evals::Context
- Defined in:
- lib/robot_lab/to/evals/context.rb
Overview
What the orchestrator hands an Eval each iteration. One value object so new fields can be added without breaking custom evals.
work_dir - the working tree holding the robot's uncommitted changes
previous_ref - git ref of the last committed state (HEAD before this iter)
previous_value - last committed score value (nil until tracked; Phase 2)
objective - the run objective
iteration - 1-based iteration number
Instance Attribute Summary collapse
-
#iteration ⇒ Object
readonly
Returns the value of attribute iteration.
-
#objective ⇒ Object
readonly
Returns the value of attribute objective.
-
#previous_ref ⇒ Object
readonly
Returns the value of attribute previous_ref.
-
#previous_value ⇒ Object
readonly
Returns the value of attribute previous_value.
-
#work_dir ⇒ Object
readonly
Returns the value of attribute work_dir.
Instance Attribute Details
#iteration ⇒ Object (readonly)
Returns the value of attribute iteration
14 15 16 |
# File 'lib/robot_lab/to/evals/context.rb', line 14 def iteration @iteration end |
#objective ⇒ Object (readonly)
Returns the value of attribute objective
14 15 16 |
# File 'lib/robot_lab/to/evals/context.rb', line 14 def objective @objective end |
#previous_ref ⇒ Object (readonly)
Returns the value of attribute previous_ref
14 15 16 |
# File 'lib/robot_lab/to/evals/context.rb', line 14 def previous_ref @previous_ref end |
#previous_value ⇒ Object (readonly)
Returns the value of attribute previous_value
14 15 16 |
# File 'lib/robot_lab/to/evals/context.rb', line 14 def previous_value @previous_value end |
#work_dir ⇒ Object (readonly)
Returns the value of attribute work_dir
14 15 16 |
# File 'lib/robot_lab/to/evals/context.rb', line 14 def work_dir @work_dir end |