EvalRun
EvalRun<
TInput,TOutput,THarness> = (input) =>Promise<EvalHarnessRun<TInput,TOutput,THarness>>
Explicit harness execution primitive exposed to each eval test.
Type Parameters
Section titled “Type Parameters”TInput
Section titled “TInput”TInput = unknown
TOutput
Section titled “TOutput”TOutput extends JsonValue | undefined = JsonValue | undefined
THarness
Section titled “THarness”THarness extends Harness<TInput, TOutput> = Harness<TInput, TOutput>
Parameters
Section titled “Parameters”TInput
Returns
Section titled “Returns”Promise<EvalHarnessRun<TInput, TOutput, THarness>>
Example
Section titled “Example”const result = await run("Refund invoice inv_123");