Interface ReinforcementTuningStringMatchRewardScorerStringMatchExpression

Evaluates parsed response using match type against expression.

interface ReinforcementTuningStringMatchRewardScorerStringMatchExpression {
    expression?: string;
    matchOperation?: MatchOperation;
}

Properties

expression?: string

String or regular expression to match against. Customer can also provide a references map (key/value pairs) whose value will be substituted into the expression by referencing references.key_name (wrapped in double curly braces).

matchOperation?: MatchOperation

Match operation to use for evaluation.