1.0.0-beta87 (latest) 1.0.0-beta86

    public sealed class LLMBasedMetricSpec : IMessage<LLMBasedMetricSpec>, IEquatable<LLMBasedMetricSpec>, IDeepCloneable<LLMBasedMetricSpec>, IBufferMessage, IMessage

Reference documentation and code samples for the Vertex AI v1beta1 API class LLMBasedMetricSpec.

Specification for an LLM based metric.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> LLMBasedMetricSpec

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[LLMBasedMetricSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.LLMBasedMetricSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[LLMBasedMetricSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.LLMBasedMetricSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[LLMBasedMetricSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.LLMBasedMetricSpec), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AIPlatform.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)

## Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

## Constructors

### LLMBasedMetricSpec()

    public LLMBasedMetricSpec()

### LLMBasedMetricSpec(LLMBasedMetricSpec)

    public LLMBasedMetricSpec(LLMBasedMetricSpec other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.LLMBasedMetricSpec` |

## Properties

### AdditionalConfig

    public Struct AdditionalConfig { get; set; }

Optional. Optional additional configuration for the metric.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Struct.html` |   |

### HasMetricPromptTemplate

    public bool HasMetricPromptTemplate { get; }

Gets whether the "metric_prompt_template" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasRubricGroupKey

    public bool HasRubricGroupKey { get; }

Gets whether the "rubric_group_key" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### HasSystemInstruction

    public bool HasSystemInstruction { get; }

Gets whether the "system_instruction" field is set

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.boolean` |   |

### JudgeAutoraterConfig

    public AutoraterConfig JudgeAutoraterConfig { get; set; }

Optional. Optional configuration for the judge LLM (Autorater).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.AutoraterConfig` |   |

### MetricPromptTemplate

    public string MetricPromptTemplate { get; set; }

Required. Template for the prompt sent to the judge model.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### PredefinedRubricGenerationSpec

    public PredefinedMetricSpec PredefinedRubricGenerationSpec { get; set; }

Dynamically generate rubrics using a predefined spec.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PredefinedMetricSpec` |   |

### ResultParserConfig

    public EvaluationParserConfig ResultParserConfig { get; set; }

Optional. The parser config for the metric result.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.EvaluationParserConfig` |   |

### RubricGenerationSpec

    public RubricGenerationSpec RubricGenerationSpec { get; set; }

Dynamically generate rubrics using this specification.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.RubricGenerationSpec` |   |

### RubricGroupKey

    public string RubricGroupKey { get; set; }

Use a pre-defined group of rubrics associated with the input.
Refers to a key in the rubric_groups map of EvaluationInstance.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### RubricsSourceCase

    public LLMBasedMetricSpec.RubricsSourceOneofCase RubricsSourceCase { get; }

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.LLMBasedMetricSpechttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.LLMBasedMetricSpec.RubricsSourceOneofCase` |   |

### SystemInstruction

    public string SystemInstruction { get; set; }

Optional. System instructions for the judge model.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |