Class: Braintrust::Eval::Runner::CaseContext

Inherits:
Struct
  • Object
show all
Defined in:
lib/braintrust/eval/runner.rb

Overview

Per-case mutable accumulator. Built from Case, populated by task and scoring stages.

Instance Attribute Summary collapse

Instance Attribute Details

#expectedObject

Returns the value of attribute expected

Returns:

  • (Object)

    the current value of expected



23
24
25
# File 'lib/braintrust/eval/runner.rb', line 23

def expected
  @expected
end

#inputObject

Returns the value of attribute input

Returns:

  • (Object)

    the current value of input



23
24
25
# File 'lib/braintrust/eval/runner.rb', line 23

def input
  @input
end

#metadataObject

Returns the value of attribute metadata

Returns:

  • (Object)

    the current value of metadata



23
24
25
# File 'lib/braintrust/eval/runner.rb', line 23

def 
  @metadata
end

#originObject

Returns the value of attribute origin

Returns:

  • (Object)

    the current value of origin



23
24
25
# File 'lib/braintrust/eval/runner.rb', line 23

def origin
  @origin
end

#outputObject

Returns the value of attribute output

Returns:

  • (Object)

    the current value of output



23
24
25
# File 'lib/braintrust/eval/runner.rb', line 23

def output
  @output
end

#tagsObject

Returns the value of attribute tags

Returns:

  • (Object)

    the current value of tags



23
24
25
# File 'lib/braintrust/eval/runner.rb', line 23

def tags
  @tags
end

#traceObject

Returns the value of attribute trace

Returns:

  • (Object)

    the current value of trace



23
24
25
# File 'lib/braintrust/eval/runner.rb', line 23

def trace
  @trace
end