Class ReinforcementTuningCloudRunRewardScorer

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ReinforcementTuningCloudRunRewardScorer

public abstract class ReinforcementTuningCloudRunRewardScorer extends JsonSerializable
Scores parsed responses by calling a Cloud Run service.
  • Constructor Details

    • ReinforcementTuningCloudRunRewardScorer

      public ReinforcementTuningCloudRunRewardScorer()
  • Method Details

    • cloudRunUri

      public abstract Optional<String> cloudRunUri()
      URI of the Cloud Run service that will be used to compute the reward. The Vertex AI Secure Fine Tuning Service Agent (`service-PROJECT_NUMBER@gcp-sa-vertex-tune.iam.gserviceaccount.com`, where `PROJECT_NUMBER` is the numeric project number) must be granted the permission (e.g. by granting `roles/run.invoker` in IAM) to invoke the Cloud Run service.
    • builder

      Instantiates a builder for ReinforcementTuningCloudRunRewardScorer.
    • toBuilder

      Creates a builder with the same values as this instance.
    • fromJson

      public static ReinforcementTuningCloudRunRewardScorer fromJson(String jsonString)
      Deserializes a JSON string to a ReinforcementTuningCloudRunRewardScorer object.