GeneratedEvaluatorRef(String, String, String) Constructor

Definition

A reference to a generated rubric evaluator that already exists in the provider's registry.

public GeneratedEvaluatorRef(string Name, string? Version = default, string? DisplayName = default);
new Microsoft.Agents.AI.GeneratedEvaluatorRef : string * string * string -> Microsoft.Agents.AI.GeneratedEvaluatorRef
Public Sub New (Name As String, Optional Version As String = Nothing, Optional DisplayName As String = Nothing)

Parameters

Name
String

Evaluator name as stored in the provider's registry (for example "reservation-policy-rubric"). Distinct from built-in evaluators such as "relevance".

Version
String

Pinned evaluator version. null means "latest" — this is discouraged for reproducible runs and consumers may emit a warning when used.

DisplayName
String

Optional human-readable name used in result summaries. Defaults to Name when unset.

Remarks

Pass instances of this class to a batch evaluator (for example Microsoft.Agents.AI.Foundry.FoundryEvals) to score items with a pre-existing rubric evaluator that was authored in the provider's portal or via the provider's dedicated SDK. Agent Framework is a consumer here: it does not create or modify the evaluator definition; it only references the persisted version by name.

Pinning Version is strongly recommended so evaluation runs are reproducible. A nullVersion resolves to whichever version is current at execution time; consuming evaluators are expected to emit a warning when a versionless reference is used. CI gates should always pass a concrete version.

Applies to