TOOL WIKI · EVALUATION & TESTING

Giskard

Helps evaluate and red-team AI agents and model-based applications.

Download example files Code + setup + checks in a ZIP
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.

Official reference · Giskard

WHAT IT ISEvaluation and testing platform
WHERE IT FITSEvaluation & testing
SEE HOW THE SYSTEM FITS TOGETHERSELECT A COMPONENT
executeobservationsresultsreviewimproveRepresentative datasetNormal + boundary casesCandidate systemPinned configurationGiskardEvaluation and testingplatformFailure examplesConcrete observationsRelease gateQuality + cost limitsProduction feedbackNew regression cases
  1. Keep fixtures and expected outcomes separate from candidate inputs.

  2. Record code, prompts, model settings, and tool schemas for this run.

    observationsTo 03 · Giskard
  3. Finding failures and tracking quality in realistic application tasks. Separate discovered examples from the broader coverage you still need.

  4. Inspect the failing task and trace rather than relying only on an aggregate score.

  5. Block a release on critical permission failures and unacceptable task regression.

    Result or stopping point
  6. Convert confirmed production failures into reviewed, versioned fixtures.

Giskard

Finding failures and tracking quality in realistic application tasks. Separate discovered examples from the broader coverage you still need.

Follow the arrows, then select a component to inspect its responsibility. On mobile, downward arrows connect the next step; bent arrows identify branches and return paths. Select a destination to jump to that component.

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.
Shell
python3 -m venv .venv
source .venv/bin/activate
pip install giskard

Try a small integration

scenario.py

Python · 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

Shell
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

AI agent evaluation: frameworks, tools and an exampleAn evaluation gate for agent releases

Explore the same layer

promptfoogarakRagasDeepEval

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.