Class: Braintrust::Eval::Case
- Inherits:
-
Struct
- Object
- Struct
- Braintrust::Eval::Case
- Defined in:
- lib/braintrust/eval/case.rb
Overview
Case represents a single test case in an evaluation
Instance Attribute Summary collapse
-
#expected ⇒ Object?
The expected output (optional).
-
#input ⇒ Object
The input to the task.
-
#metadata ⇒ Hash?
Optional metadata for the case.
-
#origin ⇒ Hash?
Origin pointer for cases from remote sources (e.g., datasets).
-
#tags ⇒ Array<String>?
Optional tags for filtering/grouping.
Instance Attribute Details
#expected ⇒ Object?
The expected output (optional)
12 13 14 |
# File 'lib/braintrust/eval/case.rb', line 12 def expected @expected end |
#input ⇒ Object
The input to the task
12 13 14 |
# File 'lib/braintrust/eval/case.rb', line 12 def input @input end |
#metadata ⇒ Hash?
Optional metadata for the case
12 13 14 |
# File 'lib/braintrust/eval/case.rb', line 12 def @metadata end |
#origin ⇒ Hash?
Origin pointer for cases from remote sources (e.g., datasets). Contains: object_type, object_id, id, _xact_id, created
12 13 14 |
# File 'lib/braintrust/eval/case.rb', line 12 def origin @origin end |
#tags ⇒ Array<String>?
Optional tags for filtering/grouping
12 13 14 |
# File 'lib/braintrust/eval/case.rb', line 12 def @tags end |