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.
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 and explanation fields in the
corresponding metric result will be empty.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ePointwiseMetricSpec\u003c/code\u003e class, part of the Vertex AI v1beta1 API, defines specifications for pointwise metrics within the \u003ccode\u003eGoogle.Cloud.AIPlatform.V1Beta1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThis class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class, with inherited members such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003ePointwiseMetricSpec\u003c/code\u003e objects can be constructed using either a default constructor or one that takes another \u003ccode\u003ePointwiseMetricSpec\u003c/code\u003e as a parameter.\u003c/p\u003e\n"],["\u003cp\u003eThe class provides properties like \u003ccode\u003eHasMetricPromptTemplate\u003c/code\u003e, \u003ccode\u003eHasSystemInstruction\u003c/code\u003e, \u003ccode\u003eMetricPromptTemplate\u003c/code\u003e (required), and \u003ccode\u003eSystemInstruction\u003c/code\u003e (optional) for configuring the metric's behavior.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available for this class is \u003ccode\u003e1.0.0-beta21\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Vertex AI v1beta1 API - Class PointwiseMetricSpec (1.0.0-beta47)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta47 (latest)](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PointwiseMetricSpec)\n- [1.0.0-beta46](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/1.0.0-beta46/Google.Cloud.AIPlatform.V1Beta1.PointwiseMetricSpec) \n\n public sealed class PointwiseMetricSpec : IMessage\u003cPointwiseMetricSpec\u003e, IEquatable\u003cPointwiseMetricSpec\u003e, IDeepCloneable\u003cPointwiseMetricSpec\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Vertex AI v1beta1 API class PointwiseMetricSpec.\n\nSpec for pointwise metric. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PointwiseMetricSpec \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PointwiseMetricSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PointwiseMetricSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PointwiseMetricSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PointwiseMetricSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PointwiseMetricSpec](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.PointwiseMetricSpec), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AIPlatform.V1Beta1](/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)\n\nAssembly\n--------\n\nGoogle.Cloud.AIPlatform.V1Beta1.dll\n\nConstructors\n------------\n\n### PointwiseMetricSpec()\n\n public PointwiseMetricSpec()\n\n### PointwiseMetricSpec(PointwiseMetricSpec)\n\n public PointwiseMetricSpec(PointwiseMetricSpec other)\n\nProperties\n----------\n\n### CustomOutputFormatConfig\n\n public CustomOutputFormatConfig CustomOutputFormatConfig { get; set; }\n\nOptional. CustomOutputFormatConfig allows customization of metric output.\nBy default, metrics return a score and explanation.\nWhen this config is set, the default output is replaced with either:\n\n- The raw output string.\n- A parsed output based on a user-defined schema. If a custom format is chosen, the `score` and `explanation` fields in the corresponding metric result will be empty.\n\n### HasMetricPromptTemplate\n\n public bool HasMetricPromptTemplate { get; }\n\nGets whether the \"metric_prompt_template\" field is set\n\n### HasSystemInstruction\n\n public bool HasSystemInstruction { get; }\n\nGets whether the \"system_instruction\" field is set\n\n### MetricPromptTemplate\n\n public string MetricPromptTemplate { get; set; }\n\nRequired. Metric prompt template for pointwise metric.\n\n### SystemInstruction\n\n public string SystemInstruction { get; set; }\n\nOptional. System instructions for pointwise metric."]]