public sealed class PointwiseMetricSpec : IMessage<PointwiseMetricSpec>, IEquatable<PointwiseMetricSpec>, IDeepCloneable<PointwiseMetricSpec>, IBufferMessage, IMessage
Reference documentation and code samples for the Vertex AI v1beta1 API class PointwiseMetricSpec.
Spec for pointwise metric.
Implements
IMessagePointwiseMetricSpec, IEquatablePointwiseMetricSpec, IDeepCloneablePointwiseMetricSpec, IBufferMessage, IMessageNamespace
Google.Cloud.AIPlatform.V1Beta1Assembly
Google.Cloud.AIPlatform.V1Beta1.dll
Constructors
PointwiseMetricSpec()
public PointwiseMetricSpec()
PointwiseMetricSpec(PointwiseMetricSpec)
public PointwiseMetricSpec(PointwiseMetricSpec other)
Parameter | |
---|---|
Name | Description |
other |
PointwiseMetricSpec |
Properties
CustomOutputFormatConfig
public CustomOutputFormatConfig CustomOutputFormatConfig { get; set; }
Optional. CustomOutputFormatConfig allows customization of metric output. By default, metrics return a score and explanation. When this config is set, the default output is replaced with either:
- The raw output string.
- A parsed output based on a user-defined schema.
If a custom format is chosen, the
score
andexplanation
fields in the corresponding metric result will be empty.
Property Value | |
---|---|
Type | Description |
CustomOutputFormatConfig |
HasMetricPromptTemplate
public bool HasMetricPromptTemplate { get; }
Gets whether the "metric_prompt_template" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasSystemInstruction
public bool HasSystemInstruction { get; }
Gets whether the "system_instruction" field is set
Property Value | |
---|---|
Type | Description |
bool |
MetricPromptTemplate
public string MetricPromptTemplate { get; set; }
Required. Metric prompt template for pointwise metric.
Property Value | |
---|---|
Type | Description |
string |
SystemInstruction
public string SystemInstruction { get; set; }
Optional. System instructions for pointwise metric.
Property Value | |
---|---|
Type | Description |
string |