RubricCriterion(String, String, Int32) Constructor

Definition

Initializes a new instance of RubricCriterion.

public RubricCriterion(string rubricId, string description, int weight);
new Azure.AI.Projects.RubricCriterion : string * string * int -> Azure.AI.Projects.RubricCriterion
Public Sub New (rubricId As String, description As String, weight As Integer)

Parameters

rubricId
String

Stable identifier for this rubric criterion (snake_case, e.g., correct_resolution). Required. Provided by the user when manually creating a rubric evaluator or during human-in-the-loop review of a generated catalog; the generation pipeline produces an initial value the user can edit. Editable when saving new versions.

description
String

What this criterion measures (e.g., 'Correctly identifies the user's reservation intent and pursues the appropriate workflow').

weight
Int32

Relative weight of this criterion (1-10). The generation pipeline assigns exactly one criterion weight 8-10; all others use 1-6. User edits are not constrained by this heuristic.

Exceptions

rubricId or description is null.

Applies to