20 instantiations of BooleanMetric
Microsoft.Extensions.AI.Evaluation.Integration.Tests (15)
ResultsTests.cs (15)
159var metricA = new BooleanMetric("Metric with value false", false); 160var metricB = new BooleanMetric("Metric with value true", true); 161var metricC = new BooleanMetric("Metric without value"); 162var metricD = new BooleanMetric("Metric with reason", false, reason: "The reason"); 187var metricA = new BooleanMetric("Metric with value false", false); 188var metricB = new BooleanMetric("Metric with value true", true); 189var metricC = new BooleanMetric("Metric without value"); 190var metricD = new BooleanMetric("Metric with reason", false, reason: "The reason"); 421var metric1 = new BooleanMetric("Metric with all diagnostic severities"); 429var metric2 = new BooleanMetric("Metric with warning and informational diagnostics"); 474var metric1 = new BooleanMetric("Metric with all diagnostic severities"); 482var metric2 = new BooleanMetric("Metric with warning and informational diagnostics"); 533var metric1 = new BooleanMetric("Metric with all diagnostic severities", value: true); 541var metric2 = new BooleanMetric("Metric with warning and informational diagnostics", value: true); 592var metric = new BooleanMetric("Condition", true);
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (3)
ResultStoreTester.cs (1)
22BooleanMetric booleanMetric = new BooleanMetric("boolean", value: true);
ScenarioRunResultTests.cs (2)
20var booleanMetric = new BooleanMetric("boolean", value: true); 84var booleanMetric = new BooleanMetric("boolean", value: true);
Microsoft.Extensions.AI.Evaluation.Safety (2)
ContentSafetyService.cs (2)
90metric = new BooleanMetric(metricName, booleanValue, reason); 101metric = new BooleanMetric(metricName, booleanValue, reason);
34 references to BooleanMetric
Microsoft.Extensions.AI.Evaluation (4)
BooleanMetric.cs (3)
10/// <param name="name">The name of the <see cref="BooleanMetric"/>.</param> 11/// <param name="value">The value of the <see cref="BooleanMetric"/>.</param> 14/// <see cref="BooleanMetric"/>.
EvaluationMetric.cs (1)
23[JsonDerivedType(typeof(BooleanMetric), "boolean")]
Microsoft.Extensions.AI.Evaluation.Integration.Tests (17)
ResultsTests.cs (17)
46case BooleanMetric booleanMetric: 109(m is BooleanMetric b && b.Value is not null) || 159var metricA = new BooleanMetric("Metric with value false", false); 160var metricB = new BooleanMetric("Metric with value true", true); 161var metricC = new BooleanMetric("Metric without value"); 162var metricD = new BooleanMetric("Metric with reason", false, reason: "The reason"); 187var metricA = new BooleanMetric("Metric with value false", false); 188var metricB = new BooleanMetric("Metric with value true", true); 189var metricC = new BooleanMetric("Metric without value"); 190var metricD = new BooleanMetric("Metric with reason", false, reason: "The reason"); 421var metric1 = new BooleanMetric("Metric with all diagnostic severities"); 429var metric2 = new BooleanMetric("Metric with warning and informational diagnostics"); 474var metric1 = new BooleanMetric("Metric with all diagnostic severities"); 482var metric2 = new BooleanMetric("Metric with warning and informational diagnostics"); 533var metric1 = new BooleanMetric("Metric with all diagnostic severities", value: true); 541var metric2 = new BooleanMetric("Metric with warning and informational diagnostics", value: true); 592var metric = new BooleanMetric("Condition", true);
Microsoft.Extensions.AI.Evaluation.Reporting.Tests (7)
ResultStoreTester.cs (1)
22BooleanMetric booleanMetric = new BooleanMetric("boolean", value: true);
ScenarioRunResultTests.cs (6)
20var booleanMetric = new BooleanMetric("boolean", value: true); 84var booleanMetric = new BooleanMetric("boolean", value: true); 176BooleanMetric booleanMetric = first.Get<BooleanMetric>("boolean"); 177BooleanMetric deserializedBooleanMetric = second.Get<BooleanMetric>("boolean");
Microsoft.Extensions.AI.Evaluation.Safety (6)
CodeVulnerabilityEvaluator.cs (1)
22/// <see cref="CodeVulnerabilityEvaluator"/> returns a <see cref="BooleanMetric"/> with a value of
ContentSafetyEvaluator.cs (1)
188BooleanMetric booleanMetric => booleanMetric.InterpretContentSafetyScore(),
EvaluationMetricExtensions.cs (1)
61this BooleanMetric metric,
IndirectAttackEvaluator.cs (1)
36/// <see cref="IndirectAttackEvaluator"/> returns a <see cref="BooleanMetric"/> with a value of <see langword="true"/>
ProtectedMaterialEvaluator.cs (1)
24/// <see cref="ProtectedMaterialEvaluator"/> returns a <see cref="BooleanMetric"/> with a value of
UngroundedAttributesEvaluator.cs (1)
22/// information about the protected class or emotional state of a person. It returns a <see cref="BooleanMetric"/>