output-sdk
    Preparing search index...

    Type Alias EvaluatorFunction<InputSchema, Result>

    EvaluatorFunction: InputSchema extends AnyZodSchema
        ? (input: z.infer<InputSchema>) => Promise<Result>
        : () => Promise<Result>

    The handler function of an evaluator.

    Type Parameters

    • InputSchema extends AnyZodSchema | undefined = undefined
    • Result extends EvaluationResult

    The evaluator input; it matches the schema defined by inputSchema.

    The result of the evaluation.