output-sdk
    Preparing search index...

    Type Alias EvaluatorFunctionWrapper<EvaluatorFunction>

    EvaluatorFunctionWrapper: Parameters<EvaluatorFunction> extends [infer Input]
        ? (input: Input) => ReturnType<EvaluatorFunction>
        : () => ReturnType<EvaluatorFunction>

    A wrapper around the user defined fn handler function.

    It has the same signature and returns the same value, calling the user function inside.

    It adds input validation based on the inputSchema.

    Type Parameters

    • EvaluatorFunction