1 type derived from EvaluationMetric
Microsoft.Extensions.AI.Evaluation (1)
EvaluationMetric{T}.cs (1)
11public class EvaluationMetric<T> : EvaluationMetric
5 instantiations of EvaluationMetric
Microsoft.Extensions.AI.Evaluation (1)
CompositeEvaluator.cs (1)
156var metric = new EvaluationMetric(metricName);
Microsoft.Extensions.AI.Evaluation.Integration.Tests (2)
ResultsTests.cs (2)
436var metric3 = new EvaluationMetric("Metric with error diagnostics only"); 489var metric3 = new EvaluationMetric("Metric with error diagnostics only");
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (2)
ScenarioRunResultTests.cs (2)
58var metricWithNoValue = new EvaluationMetric("none", reason: "reason2"); 150var metricWithNoValue = new EvaluationMetric("none", reason: "reason2");
256 references to EvaluationMetric
Microsoft.Extensions.AI.Evaluation (155)
BooleanMetric.cs (1)
7/// An <see cref="EvaluationMetric"/> containing a <see cref="bool"/> value that can be used to represent an outcome
CompositeEvaluator.cs (8)
21/// Gets the <see cref="EvaluationMetric.Name"/>s of all the <see cref="EvaluationMetric"/>s produced by the 72/// containing one or more <see cref="EvaluationMetric"/>s. 76/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned 99/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns> 107var metrics = new List<EvaluationMetric>(); 156var metric = new EvaluationMetric(metricName);
EvaluationContext.cs (8)
33/// that it used, in the <see cref="EvaluationMetric.Context"/> property of each <see cref="EvaluationMetric"/> that it 34/// produces. When <see cref="EvaluationMetric"/>s are serialized (for example, as part of the result storage and 36/// <see cref="EvaluationContext"/>s recorded within the <see cref="EvaluationMetric.Context"/> will also be 75/// <see cref="EvaluationContext"/>s that it used, in the <see cref="EvaluationMetric.Context"/> property of each 76/// <see cref="EvaluationMetric"/> that it produces. When <see cref="EvaluationMetric"/>s are serialized (for 79/// within the <see cref="EvaluationMetric.Context"/> will also be serialized. However, for each such
EvaluationDiagnostic.cs (1)
8/// in an <see cref="EvaluationMetric"/>.
EvaluationMetric.cs (9)
12/// <param name="name">The name of the <see cref="EvaluationMetric"/>.</param> 15/// <see cref="EvaluationMetric"/>. 20[JsonDerivedType(typeof(EvaluationMetric), "none")] 24/// Gets or sets the name of the <see cref="EvaluationMetric"/>. 30/// this <see cref="EvaluationMetric"/>. 36/// evaluation represented by the current <see cref="EvaluationMetric"/> is considered good or bad, passed or 43/// of the evaluation that produced the current <see cref="EvaluationMetric"/>. 49/// <see cref="EvaluationMetric"/>. 55/// <see cref="EvaluationMetric"/>.
EvaluationMetricExtensions.cs (26)
13/// Extension methods for <see cref="EvaluationMetric"/>. 19/// <see cref="EvaluationMetric.Context"/> dictionary. 21/// <param name="metric">The <see cref="EvaluationMetric"/>.</param> 23public static void AddOrUpdateContext(this EvaluationMetric metric, IEnumerable<EvaluationContext> context) 41/// <see cref="EvaluationMetric.Context"/> dictionary. 43/// <param name="metric">The <see cref="EvaluationMetric"/>.</param> 45public static void AddOrUpdateContext(this EvaluationMetric metric, params EvaluationContext[] context) 52/// <param name="metric">The <see cref="EvaluationMetric"/> that is to be inspected.</param> 63this EvaluationMetric metric, 76/// Adds the supplied <see cref="EvaluationDiagnostic"/>s to the supplied <see cref="EvaluationMetric"/>'s 77/// <see cref="EvaluationMetric.Diagnostics"/> collection. 79/// <param name="metric">The <see cref="EvaluationMetric"/>.</param> 81public static void AddDiagnostics(this EvaluationMetric metric, IEnumerable<EvaluationDiagnostic> diagnostics) 98/// Adds the supplied <see cref="EvaluationDiagnostic"/>s to the supplied <see cref="EvaluationMetric"/>'s 99/// <see cref="EvaluationMetric.Diagnostics"/> collection. 101/// <param name="metric">The <see cref="EvaluationMetric"/>.</param> 103public static void AddDiagnostics(this EvaluationMetric metric, params EvaluationDiagnostic[] diagnostics) 108/// supplied <paramref name="metric"/>'s <see cref="EvaluationMetric.Metadata"/> dictionary. 110/// <param name="metric">The <see cref="EvaluationMetric"/>.</param> 113public static void AddOrUpdateMetadata(this EvaluationMetric metric, string name, string value) 123/// <see cref="EvaluationMetric.Metadata"/> dictionary. 125/// <param name="metric">The <see cref="EvaluationMetric"/>.</param> 127public static void AddOrUpdateMetadata(this EvaluationMetric metric, IDictionary<string, string> metadata) 140/// model, in the supplied <paramref name="metric"/>'s <see cref="EvaluationMetric.Metadata"/> dictionary. 142/// <param name="metric">The <see cref="EvaluationMetric"/>.</param> 149this EvaluationMetric metric,
EvaluationMetricInterpretation.cs (6)
7/// Specifies how the result represented in an associated <see cref="EvaluationMetric"/> should be interpreted. 11/// <see cref="EvaluationMetric"/> is considered. 14/// <see langword="true"/> if the result represented in the associated <see cref="EvaluationMetric"/> is considered a 28/// associated <see cref="EvaluationMetric"/> is considered. 33/// Gets or sets a value indicating whether the result represented in the associated <see cref="EvaluationMetric"/> 37/// <see langword="true"/> if the result represented in the associated <see cref="EvaluationMetric"/> is considered
EvaluationRating.cs (1)
7/// An enumeration that identifies the set of possible ways in which an <see cref="EvaluationMetric"/> can be
EvaluationResult.cs (34)
12/// A collection of one or more <see cref="EvaluationMetric"/>s that represent the result of an evaluation. 20/// Gets or sets a collection of one or more <see cref="EvaluationMetric"/>s that represent the result of an 23public IDictionary<string, EvaluationMetric> Metrics { get; set; } 30/// A dictionary containing one or more <see cref="EvaluationMetric"/>s that represent the result of an evaluation. 33/// The dictionary is keyed on the <see cref="EvaluationMetric.Name"/>s of the contained 34/// <see cref="EvaluationMetric"/>s. 38public EvaluationResult(IDictionary<string, EvaluationMetric> metrics) 47/// An enumeration of <see cref="EvaluationMetric"/>s that represent the result of an evaluation. 49public EvaluationResult(IEnumerable<EvaluationMetric> metrics) 53var metricsDictionary = new Dictionary<string, EvaluationMetric>(); 55foreach (EvaluationMetric metric in metrics) 79/// An array of <see cref="EvaluationMetric"/>s that represent the result of an evaluation. 81public EvaluationResult(params EvaluationMetric[] metrics) 82: this(metrics as IEnumerable<EvaluationMetric>) 87/// Returns an <see cref="EvaluationMetric"/> with type <typeparamref name="T"/> and with the 88/// <see cref="EvaluationMetric.Name"/> specified via <paramref name="metricName"/> if it exists in 91/// <typeparam name="T">The type of the <see cref="EvaluationMetric"/> to be returned.</typeparam> 93/// The <see cref="EvaluationMetric.Name"/> of the <see cref="EvaluationMetric"/> to be returned. 96/// An <see cref="EvaluationMetric"/> with type <typeparamref name="T"/> and with the 97/// <see cref="EvaluationMetric.Name"/> specified via <paramref name="metricName"/> if it exists in 105where T : EvaluationMetric 107if (Metrics.TryGetValue(metricName, out EvaluationMetric? m) && m is T metric) 118/// Returns an <see cref="EvaluationMetric"/> with type <typeparamref name="T"/> and with the 119/// <see cref="EvaluationMetric.Name"/> specified via <paramref name="metricName"/> if it exists in 122/// <typeparam name="T">The type of the <see cref="EvaluationMetric"/> to be returned.</typeparam> 124/// The <see cref="EvaluationMetric.Name"/> of the <see cref="EvaluationMetric"/> to be returned. 127/// An <see cref="EvaluationMetric"/> with type <typeparamref name="T"/> and with the 128/// <see cref="EvaluationMetric.Name"/> specified via <paramref name="metricName"/> if it exists in 132/// An <see cref="EvaluationMetric"/> with type <typeparamref name="T"/> and with the 133/// <see cref="EvaluationMetric.Name"/> specified via <paramref name="metricName"/> does not exist in 137where T : EvaluationMetric 139if (Metrics.TryGetValue(metricName, out EvaluationMetric? m) && m is T metric)
EvaluationResultExtensions.cs (27)
17/// Adds or updates the supplied <paramref name="context"/> objects in all <see cref="EvaluationMetric"/>s 21/// The <see cref="EvaluationResult"/> containing the <see cref="EvaluationMetric"/>s that are to be altered. 30foreach (EvaluationMetric metric in result.Metrics.Values) 37/// Adds or updates the supplied <paramref name="context"/> objects in all <see cref="EvaluationMetric"/>s 41/// The <see cref="EvaluationResult"/> containing the <see cref="EvaluationMetric"/>s that are to be altered. 48/// Adds the supplied <paramref name="diagnostics"/> to all <see cref="EvaluationMetric"/>s contained in the 52/// The <see cref="EvaluationResult"/> containing the <see cref="EvaluationMetric"/>s that are to be altered. 59foreach (EvaluationMetric metric in result.Metrics.Values) 66/// Adds the supplied <paramref name="diagnostics"/> to all <see cref="EvaluationMetric"/>s contained in the 70/// The <see cref="EvaluationResult"/> containing the <see cref="EvaluationMetric"/>s that are to be altered. 77/// Returns <see langword="true"/> if any <see cref="EvaluationMetric"/> contained in the supplied 87/// <see langword="true"/> if any <see cref="EvaluationMetric"/> contained in the supplied 101/// Applies <see cref="EvaluationMetricInterpretation"/>s to one or more <see cref="EvaluationMetric"/>s contained 105/// The <see cref="EvaluationResult"/> containing the <see cref="EvaluationMetric"/>s that are to be interpreted. 109/// supplied <see cref="EvaluationMetric"/>, or <see langword="null"/> if the 110/// <see cref="EvaluationMetric.Interpretation"/> should be left unchanged.</param> 113Func<EvaluationMetric, EvaluationMetricInterpretation?> interpretationProvider) 118foreach (EvaluationMetric metric in result.Metrics.Values) 129/// <see cref="EvaluationMetric"/>s contained in the supplied <paramref name="result"/>. 132/// The <see cref="EvaluationResult"/> containing the <see cref="EvaluationMetric"/>s that are to be altered. 140foreach (EvaluationMetric metric in result.Metrics.Values) 147/// Adds or updates the supplied <paramref name="metadata"/> in all <see cref="EvaluationMetric"/>s contained in 151/// The <see cref="EvaluationResult"/> containing the <see cref="EvaluationMetric"/>s that are to be altered. 160foreach (EvaluationMetric metric in result.Metrics.Values) 168/// model, in all <see cref="EvaluationMetric"/>s contained in the supplied <paramref name="result"/>. 171/// The <see cref="EvaluationResult"/> containing the <see cref="EvaluationMetric"/>s that are to be altered. 185foreach (EvaluationMetric metric in result.Metrics.Values)
EvaluatorExtensions.cs (24)
18/// containing one or more <see cref="EvaluationMetric"/>s. 22/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned 43/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns> 58/// containing one or more <see cref="EvaluationMetric"/>s. 62/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned 86/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns> 103/// containing one or more <see cref="EvaluationMetric"/>s. 107/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned 128/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns> 143/// containing one or more <see cref="EvaluationMetric"/>s. 147/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned 168/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns> 188/// containing one or more <see cref="EvaluationMetric"/>s. 192/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned 216/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns> 233/// containing one or more <see cref="EvaluationMetric"/>s. 237/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned 261/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns>
IEvaluator.cs (6)
19/// Gets the <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s produced by this 26/// containing one or more <see cref="EvaluationMetric"/>s. 30/// The <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s contained in the returned 53/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns>
NumericMetric.cs (1)
7/// An <see cref="EvaluationMetric"/> containing a numeric value.
StringMetric.cs (1)
7/// An <see cref="EvaluationMetric"/> containing a <see cref="string"/> value.
Utilities\BuiltInEvaluatorUtilities.cs (2)
10internal static void MarkAsBuiltIn(this EvaluationMetric metric) => 13internal static bool IsBuiltIn(this EvaluationMetric metric) =>
Microsoft.Extensions.AI.Evaluation.Console (2)
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\BuiltInEvaluatorUtilities.cs (2)
10internal static void MarkAsBuiltIn(this EvaluationMetric metric) => 13internal static bool IsBuiltIn(this EvaluationMetric metric) =>
Microsoft.Extensions.AI.Evaluation.Integration.Tests (7)
ResultsTests.cs (6)
41private static EvaluationMetricInterpretation? FailIfValueIsTrue(EvaluationMetric m) 67private static EvaluationMetricInterpretation? FailIfValueIsLessThan4(EvaluationMetric m) 108private static EvaluationMetricInterpretation? FailIfValueIsMissing(EvaluationMetric m) => 128private static EvaluationMetricInterpretation? FailIfNotImperialOrUSCustomary(EvaluationMetric m) 436var metric3 = new EvaluationMetric("Metric with error diagnostics only"); 489var metric3 = new EvaluationMetric("Metric with error diagnostics only");
TestEvaluator.cs (1)
14public IReadOnlyList<EvaluationMetric> TestMetrics { get; set; } = [];
Microsoft.Extensions.AI.Evaluation.NLP (5)
BLEUEvaluator.cs (1)
33/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
F1Evaluator.cs (1)
33/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
GLEUEvaluator.cs (1)
33/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\BuiltInEvaluatorUtilities.cs (2)
10internal static void MarkAsBuiltIn(this EvaluationMetric metric) => 13internal static bool IsBuiltIn(this EvaluationMetric metric) =>
Microsoft.Extensions.AI.Evaluation.Quality (15)
CoherenceEvaluator.cs (1)
47/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
CompletenessEvaluator.cs (1)
43/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
EquivalenceEvaluator.cs (1)
43/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
FluencyEvaluator.cs (1)
41/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
GroundednessEvaluator.cs (1)
42/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
IntentResolutionEvaluator.cs (1)
55/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
RelevanceEvaluator.cs (1)
45/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
RelevanceTruthAndCompletenessEvaluator.cs (3)
49/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by 55/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by 61/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
RetrievalEvaluator.cs (1)
51/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\BuiltInEvaluatorUtilities.cs (2)
10internal static void MarkAsBuiltIn(this EvaluationMetric metric) => 13internal static bool IsBuiltIn(this EvaluationMetric metric) =>
TaskAdherenceEvaluator.cs (1)
54/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
ToolCallAccuracyEvaluator.cs (1)
56/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by
Microsoft.Extensions.AI.Evaluation.Reporting (35)
Formats\Html\HtmlReportWriter.cs (1)
18/// <see cref="EvaluationMetric"/>s present in the supplied <see cref="ScenarioRunResult"/>s and writes it to the
Formats\Json\JsonReportWriter.cs (1)
17/// <see cref="EvaluationMetric"/>s present in the supplied <see cref="ScenarioRunResult"/>s and writes it to the
IEvaluationReportWriter.cs (2)
11/// Generates a report containing all the <see cref="EvaluationMetric"/>s present in the supplied 17/// Writes a report containing all the <see cref="EvaluationMetric"/>s present in the supplied
ReportingConfiguration.cs (8)
83/// <see cref="EvaluationMetric"/>s returned from evaluations that use this <see cref="ReportingConfiguration"/>. 87/// <see cref="EvaluationMetric"/> that is supplied to it, or return <see langword="null"/> if the 88/// <see cref="EvaluationMetric.Interpretation"/> should be left unchanged. 90public Func<EvaluationMetric, EvaluationMetricInterpretation?>? EvaluationMetricInterpreter { get; } 126/// <see cref="EvaluationMetric"/>s returned from evaluations that use this <see cref="ReportingConfiguration"/>. 128/// <see cref="EvaluationMetric"/> that is supplied to it, or return <see langword="null"/> if the 129/// <see cref="EvaluationMetric.Interpretation"/> should be left unchanged. 142Func<EvaluationMetric, EvaluationMetricInterpretation?>? evaluationMetricInterpreter = null,
ScenarioRun.cs (5)
74/// across these different executions to track how the <see cref="EvaluationMetric"/>s for each scenario and 97private readonly Func<EvaluationMetric, EvaluationMetricInterpretation?>? _evaluationMetricInterpreter; 110Func<EvaluationMetric, EvaluationMetricInterpretation?>? evaluationMetricInterpreter = null, 128/// containing one or more <see cref="EvaluationMetric"/>s. 142/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns>
ScenarioRunExtensions.cs (12)
18/// containing one or more <see cref="EvaluationMetric"/>s. 29/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns> 42/// containing one or more <see cref="EvaluationMetric"/>s. 57/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns> 72/// containing one or more <see cref="EvaluationMetric"/>s. 83/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns> 96/// containing one or more <see cref="EvaluationMetric"/>s. 107/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns> 125/// containing one or more <see cref="EvaluationMetric"/>s. 140/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns> 155/// containing one or more <see cref="EvaluationMetric"/>s. 170/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns>
ScenarioRunResultExtensions.cs (2)
15/// Returns <see langword="true"/> if any <see cref="EvaluationMetric"/> contained in the supplied 25/// <see langword="true"/> if any <see cref="EvaluationMetric"/> contained in the supplied
Storage\DiskBasedReportingConfiguration.cs (4)
49/// <see cref="EvaluationMetric"/>s returned from evaluations that use the returned 51/// <see cref="EvaluationMetricInterpretation"/> for any <see cref="EvaluationMetric"/> that is supplied to it, or 52/// return <see langword="null"/> if the <see cref="EvaluationMetric.Interpretation"/> should be left unchanged. 77Func<EvaluationMetric, EvaluationMetricInterpretation?>? evaluationMetricInterpreter = null,
Microsoft.Extensions.AI.Evaluation.Reporting.Azure (4)
Storage\AzureStorageReportingConfiguration.cs (4)
49/// <see cref="EvaluationMetric"/>s returned from evaluations that use the returned 51/// <see cref="EvaluationMetricInterpretation"/> for any <see cref="EvaluationMetric"/> that is supplied to it, or 52/// return <see langword="null"/> if the <see cref="EvaluationMetric.Interpretation"/> should be left unchanged. 77Func<EvaluationMetric, EvaluationMetricInterpretation?>? evaluationMetricInterpreter = null,
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (8)
ScenarioRunResultTests.cs (8)
58var metricWithNoValue = new EvaluationMetric("none", reason: "reason2"); 150var metricWithNoValue = new EvaluationMetric("none", reason: "reason2"); 250EvaluationMetric metricWithNoValue = first.Get<EvaluationMetric>("none"); 251EvaluationMetric deserializedMetricWithNoValue = second.Get<EvaluationMetric>("none"); 255private static void ValidateEquivalence(EvaluationMetric metric, EvaluationMetric deserializedMetric)
Microsoft.Extensions.AI.Evaluation.Safety (25)
CodeVulnerabilityEvaluator.cs (1)
40/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by
ContentHarmEvaluator.cs (2)
25/// with the Azure AI Foundry Evaluation service, to the <see cref="EvaluationMetric.Name"/>s of the 26/// <see cref="EvaluationMetric"/>s returned by this <see cref="IEvaluator"/>.
ContentSafetyEvaluator.cs (5)
25/// AI Foundry Evaluation service, to the <see cref="EvaluationMetric.Name"/>s of the <see cref="EvaluationMetric"/>s 55/// returns an <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s. 80/// <returns>An <see cref="EvaluationResult"/> containing one or more <see cref="EvaluationMetric"/>s.</returns> 152foreach (EvaluationMetric metric in result.Metrics.Values)
ContentSafetyService.cs (1)
77EvaluationMetric metric;
EvaluationMetricExtensions.cs (2)
79internal static void LogJsonData(this EvaluationMetric metric, string data) 97internal static void LogJsonData(this EvaluationMetric metric, JsonNode data)
GroundednessProEvaluator.cs (1)
41/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
HateAndUnfairnessEvaluator.cs (1)
28/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
IndirectAttackEvaluator.cs (1)
51/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by
ProtectedMaterialEvaluator.cs (5)
42/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by 48/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by 54/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by 60/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by 102foreach (EvaluationMetric imageMetric in imageResult.Metrics.Values)
SelfHarmEvaluator.cs (1)
27/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
SexualEvaluator.cs (1)
27/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by
src\Libraries\Microsoft.Extensions.AI.Evaluation\Utilities\BuiltInEvaluatorUtilities.cs (2)
10internal static void MarkAsBuiltIn(this EvaluationMetric metric) => 13internal static bool IsBuiltIn(this EvaluationMetric metric) =>
UngroundedAttributesEvaluator.cs (1)
45/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="BooleanMetric"/> returned by
ViolenceEvaluator.cs (1)
27/// Gets the <see cref="EvaluationMetric.Name"/> of the <see cref="NumericMetric"/> returned by