Package com.google.genai.types
Class ReinforcementTuningCloudRunRewardScorer
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ReinforcementTuningCloudRunRewardScorer
Scores parsed responses by calling a Cloud Run service.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ReinforcementTuningCloudRunRewardScorer. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for ReinforcementTuningCloudRunRewardScorer.URI of the Cloud Run service that will be used to compute the reward.Deserializes a JSON string to a ReinforcementTuningCloudRunRewardScorer object.Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
ReinforcementTuningCloudRunRewardScorer
public ReinforcementTuningCloudRunRewardScorer()
-
-
Method Details
-
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
Deserializes a JSON string to a ReinforcementTuningCloudRunRewardScorer object.
-