Detect prompt regression
detect_prompt_regressionDetect prompt regressions by comparing baseline and candidate outputs against golden-set deterministic checks before shipping prompt or model changes.
Instructions
Run a golden set's deterministic checks (exact, regex, contains, JSON Schema, length) against baseline and candidate outputs. A regression is a case that passes on baseline and fails on candidate. An LLM judge can be enabled per call for a second opinion; the verdict only depends on the checks. Use it before shipping a prompt or model change.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"golden": "<golden>",
"baseline": "<baseline>",
"candidate": "<candidate>"
},
"name": "detect_prompt_regression"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| judge | No | Optional pairwise LLM judge on the server's configured OpenAI-compatible endpoint (e.g. Ollama). Off by default; it never changes the verdict. | |
| golden | Yes | Golden cases with deterministic checks. | |
| baseline | Yes | Outputs of the current prompt/model, keyed by case id. | |
| candidate | Yes | Outputs of the proposed prompt/model, keyed by case id. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cases | Yes | ||
| judge | No | ||
| perCase | Yes | ||
| summary | Yes | ||
| verdict | Yes | ||
| regressions | Yes | Cases that pass on baseline and fail on candidate. | |
| improvements | Yes | Cases that fail on baseline and pass on candidate. | |
| baselinePassRate | Yes | ||
| candidatePassRate | Yes |