Reinforcement Tuning String Match Reward Scorer Json Match Expression
@Serializable
JsonMatchExpression supports converting the parsed responses to JSON format, finding the value in the JSON response that matches the key_name in the first level, and performing StringMatchExpression operation on the matched JSON value. This data type is not supported in Gemini API.
Constructors
Link copied to clipboard
constructor(keyName: String? = null, valueStringMatchExpression: ReinforcementTuningStringMatchRewardScorerStringMatchExpression? = null)
Properties
Link copied to clipboard
val valueStringMatchExpression: ReinforcementTuningStringMatchRewardScorerStringMatchExpression? = null
String match expression to match against the extracted value from the JSON representation of the parsed response.