| File: BooleanMetric.cs | Web Access |
| Project: src\src\Libraries\Microsoft.Extensions.AI.Evaluation\Microsoft.Extensions.AI.Evaluation.csproj (Microsoft.Extensions.AI.Evaluation) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.Extensions.AI.Evaluation; /// <summary> /// An <see cref="EvaluationMetric"/> containing a <see cref="bool"/> value that can be used to represent an outcome /// that can have one of two possible values (such as yes v/s no, or pass v/s fail). /// </summary> /// <param name="name">The name of the <see cref="BooleanMetric"/>.</param> /// <param name="value">The value of the <see cref="BooleanMetric"/>.</param> /// <param name="reason"> /// An optional string that can be used to provide some commentary around the result represented by this /// <see cref="BooleanMetric"/>. /// </param> public sealed class BooleanMetric(string name, bool? value = null, string? reason = null) : EvaluationMetric<bool?>(name, value, reason);