Create a grader
Open Graders in your project and select Create custom grader. Define a single rule with a clear pass and fail boundary. For an appointment agent, use:
Choose Language model from the supported options. Under Scope, select
Grades simulations and All simulations, or
choose the test suites and tests that book appointments. Select Create grader.
Egma saves the instructions as the first definition version and adds the
grader to this project’s active graders with the chosen settings.
Write a check the evidence can settle
State what to inspect and what each result means. Include the case where the conversation never reaches the behavior being checked. For example, a rule about an appointment recap should say what happens when the caller asks only about opening hours. Without that detail, the grader can interpret the rule in different ways and return different results. Avoid instructions such as “be helpful” without a concrete test. Split independent concerns into separate graders so the result tells you what failed.Check the grader
- Run a test where the agent follows the rule and one where it breaks the rule.
- Read the grader’s rationale and cited evidence in each simulation’s Results.
- Check cases where the relevant action does not occur, the caller declines, or evidence is missing.
- Set the scope and pass threshold for future conversations once the grader gives useful results.
Read the score
A check of one instruction returns1 when met or 0 when not met. A prompt
that checks each supplied expected behavior can return a fractional score:
the number of met behaviors divided by the total. Egma computes this score
from the decisions; the model does not choose an arbitrary numeric score.
If the model cannot determine a result, the grade has no score. An incomplete
or invalid response also produces a grading error. Read the rationale and
citations before changing your threshold. See Scores and thresholds.