ReinforcementTuningStringMatchRewardScorerJsonMatchExpression

@Serializable
data class ReinforcementTuningStringMatchRewardScorerJsonMatchExpression(val keyName: String? = null, val valueStringMatchExpression: ReinforcementTuningStringMatchRewardScorerStringMatchExpression? = null)

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

constructor(keyName: String? = null, valueStringMatchExpression: ReinforcementTuningStringMatchRewardScorerStringMatchExpression? = null)

Properties

Link copied to clipboard
val keyName: String? = null

The key name to find the value in the parsed response that's in JSON format. Only first-level key matching is supported.

Link copied to clipboard

String match expression to match against the extracted value from the JSON representation of the parsed response.