EvalCheckRegistry
AgentPrism.Core.dllConverts the declarative check definitions in EvalSuite.Checks
into AI.EvalCheck instances.
public sealed class EvalCheckRegistryInheritance
Section titled “Inheritance”Inherited Members
Section titled “Inherited Members”object.GetType(), object.ToString(), object.Equals(object?), object.Equals(object?, object?), object.ReferenceEquals(object?, object?), object.GetHashCode()
Remarks
Section titled “Remarks”The six built-in check kinds map directly to
Microsoft.Agents.AI.EvalChecks factories: nonEmpty,
containsExpected, keywords, toolCalled,
toolCallsPresent, hasImageContent. Any other kind name is
looked up among the custom checks registered with
IAgentPrismBuilder.AddEvalCheck(...); if not found there either, an
AgentPrismException is thrown (the code-only tools rule - checks are declarative,
never silently ignored).
toolCallArgsMatch is intentionally not supported: EvalCase
only carries the expected tool names, not the expected arguments
needed for a full argument match.
Constructors
Section titled “Constructors”EvalCheckRegistry(IEnumerable<AgentPrismEvalCheckRegistration>)
Section titled “ EvalCheckRegistry(IEnumerable<AgentPrismEvalCheckRegistration>)”Creates a new registry from a set of registrations.
public EvalCheckRegistry(IEnumerable<AgentPrismEvalCheckRegistration> registrations)Parameters
Section titled “Parameters”registrations IEnumerable<AgentPrismEvalCheckRegistration>
Custom check registrations.
Exceptions
Section titled “Exceptions”registrations is null.
The same kind name is registered more than once.
Methods
Section titled “Methods”BuildChecks(JsonElement)
Section titled “ BuildChecks(JsonElement)”Converts a suite’s EvalSuite.Checks field into an array of
AI.EvalCheck instances.
public IReadOnlyList<EvalCheck> BuildChecks(JsonElement checks)Parameters
Section titled “Parameters”checks JsonElement
JSON array carrying the check definitions.
Returns
Section titled “Returns”IReadOnlyList<EvalCheck>
The ordered list of checks. Returns an empty list when the payload is undefined or empty.
Exceptions
Section titled “Exceptions”A definition does not carry a kind field, or points to an unknown kind name.