AgentEvaluationResults.AssertDimensionScoreAtLeast Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Asserts that every item's score for the given rubric dimension is at least
minScore.
public void AssertDimensionScoreAtLeast(string dimensionId, double minScore, string? evaluator = default, bool requireApplicable = false, string? message = default);
member this.AssertDimensionScoreAtLeast : string * double * string * bool * string -> unit
Public Sub AssertDimensionScoreAtLeast (dimensionId As String, minScore As Double, Optional evaluator As String = Nothing, Optional requireApplicable As Boolean = false, Optional message As String = Nothing)
Parameters
- dimensionId
- String
Dimension id — matches the rubric definition.
- minScore
- Double
Minimum acceptable dimension score (inclusive).
- requireApplicable
- Boolean
When true, items with no applicable score for the dimension also fail
the assertion. Defaults to false (skip).
- message
- String
Optional custom failure message.
Exceptions
Thrown when the dimension fails the threshold on any item.
Remarks
Walks Dimensions across DetailedItems (and any SubResults) looking for the named dimension. Non-applicable dimensions are skipped by default; pass requireApplicable=true to fail when no applicable score is produced for an item. If dimension data exists but the requested dimensionId is never present, the assertion fails to surface likely typos or evaluator mismatches.