ValidateRewardResponse

@Serializable
data class ValidateRewardResponse(val sdkHttpResponse: HttpResponse? = null, val overallReward: Double? = null, val error: String? = null, val rewardInfoDetails: Map<String, ReinforcementTuningRewardInfo>? = null)

Response for the validate_reward method.

Contains the computed reward for a reinforcement tuning reward configuration.

Constructors

Link copied to clipboard
constructor(sdkHttpResponse: HttpResponse? = null, overallReward: Double? = null, error: String? = null, rewardInfoDetails: Map<String, ReinforcementTuningRewardInfo>? = null)

Properties

Link copied to clipboard
val error: String? = null

Output only. In case of an error, this field will be populated with a detailed error message to help with debugging.

Link copied to clipboard
val overallReward: Double? = null

Output only. The overall weighted reward. For a CompositeReinforcementTuningRewardConfig, this is the weighted average of all rewards. For a SingleReinforcementTuningRewardConfig, this will be the value of the single reward.

Link copied to clipboard

A map from reward name to reward info.

Link copied to clipboard

Used to retain the full HTTP response.