Del via


EvaluationMetric<T>(String, T, String) Constructor

Definition

Initializes a new instance of the EvaluationMetric<T> class.

protected EvaluationMetric(string name, T? value, string? reason = default);
new Microsoft.Extensions.AI.Evaluation.EvaluationMetric<'T> : string * 'T * string -> Microsoft.Extensions.AI.Evaluation.EvaluationMetric<'T>
Protected Sub New (name As String, value As T, Optional reason As String = Nothing)

Parameters

name
String

The name of the EvaluationMetric<T>.

value
T

The value of the EvaluationMetric<T>.

reason
String

An optional string that can be used to provide some commentary around the result represented by this EvaluationMetric<T>.

Applies to