readCases
Call Signature
Section titled “Call Signature”function readCases(raw): EvalCase<unknown>[];Defined in: agents/src/evals/journal.ts:478
Validates data only; a dataset file cannot supply functions, drivers or scorer names. Supply validateExpected to read typed expected values, including each turn’s expectation.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
raw |
unknown |
Returns
Section titled “Returns”EvalCase<unknown>[]
Call Signature
Section titled “Call Signature”function readCases<E>(raw, validateExpected): EvalCase<E>[];Defined in: agents/src/evals/journal.ts:479
Validates data only; a dataset file cannot supply functions, drivers or scorer names. Supply validateExpected to read typed expected values, including each turn’s expectation.
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
E |
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
raw |
unknown |
validateExpected |
(value) => E |
Returns
Section titled “Returns”EvalCase<E>[]