TOOL WIKI · EVALUATION & TESTING
Giskard
Helps evaluate and red-team AI agents and model-based applications.
Jump to a section 10 sections
EXAMPLE USE CASE
Turn a business function’s outcomes into regression scenarios
A developer needs repeatable cases and explicit grading before changing a prompt, model or agent implementation.
- Input
- Known and absent order fixtures with explicit expected statuses.
- Expected output
- Per-scenario pass/fail results from Equals checks.
- Success check: Both scenarios pass without a model or judge.
- Try a failure: Change an expected status and inspect the descriptive mismatch before connecting a live agent.
Example scope: Actual local Checks integration without a model. The evaluation guide expands this into six cases and a CI gate.
Keep fixtures and expected outcomes separate from candidate inputs.
executeTo 02 · Candidate systemRecord code, prompts, model settings, and tool schemas for this run.
observationsTo 03 · GiskardFinding failures and tracking quality in realistic application tasks. Separate discovered examples from the broader coverage you still need.
resultsTo 04 · Failure examplesInspect the failing task and trace rather than relying only on an aggregate score.
reviewTo 05 · Release gateBlock a release on critical permission failures and unacceptable task regression.
Result or stopping pointConvert confirmed production failures into reviewed, versioned fixtures.
Finding failures and tracking quality in realistic application tasks. Separate discovered examples from the broader coverage you still need.
When to consider it
- Finding failures and tracking quality in realistic application tasks.
A design decision to make
- Separate discovered examples from the broader coverage you still need.
Prerequisites and setup
- Python 3.12+ with Giskard v3 Checks. Older v2 giskard.Model/scan snippets use a different API.
python3 -m venv .venv
source .venv/bin/activate
pip install giskardTry a small integration
scenario.py
import asyncio
from giskard.checks import Scenario, Equals
def lookup(order):
return {"A104":"packed"}.get(order,"not_found")
async def main():
for order, expected in [("A104","packed"),("A999","not_found")]:
scenario = Scenario("status-"+order).interact(inputs=order, outputs=lambda inputs:lookup(inputs)).check(
Equals(name="authoritative status", target_key="trace.last.outputs", expected_value=expected))
result = await scenario.run()
result.print_report()
asyncio.run(main())Run and check the result
python scenario.py- Both scenarios pass without a model or judge.
- Change the expected status to see a descriptive failure; later replace the local lookup with your application adapter.
Common failures
- A passing score on one fixture is not evidence of general reliability; include missing-data, permission and adversarial cases.
- A judge timeout or parser error must be reported separately from a low-quality answer.
Production decisions
- Version the dataset, prompt, model, tool schema and scorer together; keep a held-out set separate from tuning examples.
- Gate releases on critical failures as well as aggregate quality, latency and cost. Review false positives and grader disagreement.
Keep exploring
Explore the same layer
Compare candidates on your own workload. This entry describes a product’s role; it is not a claim that products in the category are interchangeable.