Table of Contents

Class ReinforcementTuningCloudRunRewardScorer

Namespace
Google.GenAI.Types
Assembly
Google.GenAI.dll

Scores parsed responses by calling a Cloud Run service.

public record ReinforcementTuningCloudRunRewardScorer : IEquatable<ReinforcementTuningCloudRunRewardScorer>
Inheritance
ReinforcementTuningCloudRunRewardScorer
Implements
Inherited Members

Properties

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.

[JsonPropertyName("cloudRunUri")]
[JsonIgnore(Condition = JsonIgnoreCondition.WhenWritingNull)]
public string? CloudRunUri { get; set; }

Property Value

string

Methods

FromJson(string, JsonSerializerOptions?)

Deserializes a JSON string to a ReinforcementTuningCloudRunRewardScorer object.

public static ReinforcementTuningCloudRunRewardScorer? FromJson(string jsonString, JsonSerializerOptions? options = null)

Parameters

jsonString string

The JSON string to deserialize.

options JsonSerializerOptions

Optional JsonSerializerOptions.

Returns

ReinforcementTuningCloudRunRewardScorer

The deserialized ReinforcementTuningCloudRunRewardScorer object, or null if deserialization fails.