@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
| Parameter | Type | Description |
|---|---|---|
input | BinaryInput | The input for the evaluation. |
Returns
Promise<BinaryOutput>
The output of the evaluation.