Skip to content
GitHubDiscord

Overview

Complete API documentation for Giskard Checks - a comprehensive testing framework for AI applications.

Explore the Giskard Checks API organized by functionality:

Most Common Imports

from giskard.checks import (
# Core types
Check,
CheckResult,
CheckStatus,
Interaction,
Trace,
# Interaction specs
InteractionSpec,
BaseInteractionSpec,
# Scenarios
Scenario,
TestCase,
# Built-in checks
from_fn,
StringMatching,
Equals,
NotEquals,
LesserThan,
GreaterThan,
LesserThanEquals,
GreaterEquals,
# Configuration
set_default_generator,
get_default_generator,
)
# LLM-based checks
from giskard.checks import (
BaseLLMCheck,
LLMCheckResult,
Groundedness,
Conformity,
LLMJudge,
SemanticSimilarity,
)
giskard.checks/
├── core/ # Base classes and fundamental types
│ ├── check.py # Check base class
│ ├── trace.py # Trace and Interaction
│ ├── interaction.py # InteractionSpec, BaseInteractionSpec
│ ├── result.py # CheckResult, CheckStatus
│ ├── scenario.py # Scenario
│ ├── testcase.py # TestCase
│ └── extraction.py # Extractors
├── builtin/ # Ready-to-use checks
│ ├── fn.py # from_fn, FnCheck
│ ├── string_matching.py # StringMatching
│ ├── comparison.py # Equals, NotEquals, etc.
│ └── semantic_similarity.py # SemanticSimilarity
├── judges/ # LLM-based checks
│ ├── base.py # BaseLLMCheck, LLMCheckResult
│ ├── groundedness.py # Groundedness check
│ ├── conformity.py # Conformity check
│ └── judge.py # LLMJudge
├── scenarios/ # Multi-step workflows
│ ├── builder.py # Scenario builder
│ └── runner.py # ScenarioRunner
├── testing/ # Testing utilities
│ ├── runner.py # TestCaseRunner
│ └── spy.py # WithSpy
├── generators/ # Input generators
│ └── user.py # User input generators
├── interaction/ # Interaction specifications
│ └── __init__.py # InteractionSpec
└── utils/ # Helper utilities
├── generator.py # Generator utilities
├── normalization.py # Value normalization
├── parameter_injection.py # Parameter injection
└── value_provider.py # Value providers