Class AgentEvaluationSuite
- Namespace
- LMKit.Agents.Evaluation
- Assembly
- LM-Kit.NET.dll
A regression suite for an agent: the cases an agent change must keep passing. Stored and moved as JSON (ToJson(), FromJson(string)), the same file an LM-Kit server runs, so a suite written once gates the agent in process and on the server alike.
public sealed class AgentEvaluationSuite
- Inheritance
-
AgentEvaluationSuite
- Inherited Members
Examples
var suite = AgentEvaluationSuite.FromJson(File.ReadAllText("support.suite.json"));
AgentEvaluationReport report = await AgentEvaluator.RunAsync(suite, () => CreateSupportConversation());
Console.WriteLine($"{report.Passed}/{report.Total} cases pass");
Properties
- Cases
Gets or sets the cases.
- Description
Gets or sets what the suite covers.
- Name
Gets or sets the suite's name.
Methods
- FromJson(string)
Reads a suite from its JSON form.
- ToJson()
The suite's JSON form (snake_case properties, indented).
- Validate()
Why the suite cannot run as it is (a case without an id or a turn, an id used twice), or null when it can.