@runloop/api-client - v1.4.0
    Preparing search index...

    Interface ScoringFunction

    ScoringFunction specifies a method of scoring a Scenario.

    interface ScoringFunction {
        name: string;
        scorer:
            | AstGrepScoringFunction
            | BashScriptScoringFunction
            | CommandScoringFunction
            | CustomScoringFunction
            | PythonScriptScoringFunction
            | ScoringFunction.TestBasedScoringFunction;
        weight: number;
    }
    Index

    Properties

    Properties

    name: string

    Name of scoring function. Names must only contain [a-zA-Z0-9_-].

    The scoring function to use for evaluating this scenario. The type field determines which built-in function to use.

    weight: number

    Weight to apply to scoring function score. Weights of all scoring functions should sum to 1.0.