Class ReinforcementTuningStringMatchRewardScorerStringMatchExpression
Evaluates parsed response using match type against expression.
public record ReinforcementTuningStringMatchRewardScorerStringMatchExpression : IEquatable<ReinforcementTuningStringMatchRewardScorerStringMatchExpression>
- Inheritance
-
ReinforcementTuningStringMatchRewardScorerStringMatchExpression
- Implements
- Inherited Members
Properties
Expression
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).
[JsonPropertyName("expression")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? Expression { get; set; }
Property Value
MatchOperation
Match operation to use for evaluation.
[JsonPropertyName("matchOperation")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public MatchOperation? MatchOperation { get; set; }
Property Value
Methods
FromJson(string, JsonSerializerOptions?)
Deserializes a JSON string to a ReinforcementTuningStringMatchRewardScorerStringMatchExpression object.
public static ReinforcementTuningStringMatchRewardScorerStringMatchExpression? FromJson(string jsonString, JsonSerializerOptions? options = null)
Parameters
jsonStringstringThe JSON string to deserialize.
optionsJsonSerializerOptionsOptional JsonSerializerOptions.
Returns
- ReinforcementTuningStringMatchRewardScorerStringMatchExpression
The deserialized ReinforcementTuningStringMatchRewardScorerStringMatchExpression object, or null if deserialization fails.