Class AgentEvaluationChecks
- Namespace
- LMKit.Agents.Evaluation
- Assembly
- LM-Kit.NET.dll
What one evaluation case requires, as mechanical checks that pass or fail without a judge: what the final answer must and must not say, which tools must and must not be called, whether the answer must cite its evidence or abstain, and which properties a structured answer must carry. A check left null is not applied.
public sealed class AgentEvaluationChecks
- Inheritance
-
AgentEvaluationChecks
- Inherited Members
Remarks
These checks are absolute: a case fails when any of them fails. A citation's presence proves only that the answer points at a passage it was shown; whether a claim is supported is labelled by a person, as SupportedFacts: each fact the answer must state, and that the passage it cites must say.
Properties
- Contains
Gets or sets text the final answer must contain (case-insensitive), every entry.
- Grounding
Gets or sets the grounding verdicts the final answer may end with, any one of them (for instance
retrieval_failedfor a case whose source is down,no_evidencefor a caller without access to the collection that holds the answer). Pair it with NotContains to require that nothing of a source the caller may not read appears: a title, a snippet.
- JsonProperties
Gets or sets the properties the final answer must carry as a JSON object (a structured answer).
- JsonValues
Gets or sets properties of the structured answer and the value each must hold, written as the JSON renders it (
true,3, or a string without its quotes), compared case-insensitively: for instanceneeds_human=true.
- MaxToolCalls
Gets or sets the most tool calls the whole case may make.
- MustAbstain
Gets or sets whether the final answer must abstain: it presents no evidence, because the knowledge sources held nothing on the question (
no_evidence), could not be searched (retrieval_failed), or because the answer cited none of the passages it was shown (uncited), and it cites nothing. Pair it with NotContains to require that a fact the sources must not reveal never appears.
- MustCite
Gets or sets whether the final answer must cite the evidence presented (a grounded verdict).
- NotContains
Gets or sets text the final answer must not contain (case-insensitive), any entry.
- SupportedFacts
Gets or sets the facts, labelled by a person, that the final answer must state and that a passage the answer cites must say (case-insensitive): a claim supported by its citation. A fact stated without a cited passage that says it fails, as does a fact not stated.
- ToolsCalled
Gets or sets the tools the case must call, at least once each, over all its turns.
- ToolsNotCalled
Gets or sets the tools the case must never call.