Skip to content

@gettoor/core v0.1.0


@gettoor/core / binary

Function: binary() ​

binary(input: BinaryInput): Promise<BinaryOutput>

Evaluates a response against a prompt using a language model with score either 0 (failed) or 1 (passed).

Parameters ​

ParameterTypeDescription
inputBinaryInputThe input for the evaluation.

Returns ​

Promise<BinaryOutput>

The output of the evaluation.