Full name: projects.locations.tuningJobs.validateReinforcementTuningReward
Validates a reward on a given example.
Endpoint
posthttps://{service-endpoint}/v1beta1/{parent}/tuningJobs:validateReinforcementTuningReward
Where {service-endpoint} is one of the supported service endpoints.
Path parameters
parentstring
Required. The resource name of the Location to validate the reward in Format: projects/{project}/locations/{location}
Request body
The request body contains data with the following structure:
Required. The sample response for validating the reward configuration.
Required. The example to validate the reward configuration.
reward_configUnion type
reward_config can be only one of the following:Optional. Single Reward function configuration for reinforcement tuning.
Optional. Composite reward function configuration for reinforcement tuning.
Response body
Response message for GenAiTuningService.ValidateReinforcementTuningReward.
If successful, the response body contains data with the following structure:
rewardDetails
(deprecated)map (key: string, value: number)
Output only. Deprecated: Use rewardInfoDetails instead. A map from reward name to the calculated reward for the reward function. This field will only be populated when a CompositeReinforcementTuningRewardConfig is provided in the request. It will not be set for a SingleReinforcementTuningRewardConfig.
A map from reward name to reward info.
overallRewardnumber
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.
errorstring
Output only. In case of an error, this field will be populated with a detailed error message to help with debugging.
| JSON representation |
|---|
{
"rewardDetails": {
string: number,
...
},
"rewardInfoDetails": {
string: {
object ( |
ReinforcementTuningRewardInfo
The reward info for a reward function.
userRequestedAuxInfostring
Output only. The user-requested auxiliary info for the reward function. This field is set only if the Cloud Run reward function configured by user returns a "user_requested_aux_info". Refer to ReinforcementTuningCloudRunRewardScorer for more details.
rewardnumber
Output only. The calculated reward for the reward function.
| JSON representation |
|---|
{ "userRequestedAuxInfo": string, "reward": number } |