Class: RobotLab::To::Evals::Context

Inherits:
Data
  • Object
show all
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

Instance Attribute Details

#iterationObject (readonly)

Returns the value of attribute iteration

Returns:

  • (Object)

    the current value of iteration



14
15
16
# File 'lib/robot_lab/to/evals/context.rb', line 14

def iteration
  @iteration
end

#objectiveObject (readonly)

Returns the value of attribute objective

Returns:

  • (Object)

    the current value of objective



14
15
16
# File 'lib/robot_lab/to/evals/context.rb', line 14

def objective
  @objective
end

#previous_refObject (readonly)

Returns the value of attribute previous_ref

Returns:

  • (Object)

    the current value of previous_ref



14
15
16
# File 'lib/robot_lab/to/evals/context.rb', line 14

def previous_ref
  @previous_ref
end

#previous_valueObject (readonly)

Returns the value of attribute previous_value

Returns:

  • (Object)

    the current value of previous_value



14
15
16
# File 'lib/robot_lab/to/evals/context.rb', line 14

def previous_value
  @previous_value
end

#work_dirObject (readonly)

Returns the value of attribute work_dir

Returns:

  • (Object)

    the current value of work_dir



14
15
16
# File 'lib/robot_lab/to/evals/context.rb', line 14

def work_dir
  @work_dir
end