Overview
Complete API documentation for Giskard Checks β a comprehensive testing framework for AI applications.
API Modules
Section titled βAPI Modulesβ Core Base classes and fundamental types: Check, Trace, Interaction, Scenario, TestCase
Checks Ready-to-use validation checks: string matching, comparisons, LLM-based checks
Scenarios Multi-step workflow testing with scenario builders and runners
Testing Utilities Testing utilities: test runners, spies, and debugging helpers
Generators Input generators for creating dynamic test data and scenarios
Utilities Helper functions for normalization, value providers, and parameter injection
Quick reference
Section titled βQuick referenceβfrom giskard.checks import ( # Core types Check, CheckResult, CheckStatus, Interaction, Trace, InteractionSpec, Scenario, TestCase, # Built-in checks FnCheck, StringMatching, Equals, NotEquals, LesserThan, GreaterThan, LesserThanEquals, GreaterEquals, # Configuration set_default_generator, get_default_generator,)
# LLM-based checksfrom giskard.checks import ( BaseLLMCheck, LLMCheckResult, Groundedness, Conformity, LLMJudge, SemanticSimilarity,)Package structure
Section titled βPackage structureβgiskard.checks/βββ core/ # Base classes and fundamental typesβ βββ check.py # Check base classβ βββ result.py # CheckResult, CheckStatusβ βββ scenario.py # Scenarioβ βββ testcase.py # TestCaseβ βββ extraction.py # Extractorsβ βββ interaction/ # Interaction typesβββ builtin/ # Ready-to-use checksβ βββ fn.py # FnCheckβ βββ text_matching.py # StringMatching, RegexMatchingβ βββ comparison.py # Equals, NotEquals, etc.β βββ semantic_similarity.pyβββ judges/ # LLM-based checksβ βββ base.py # BaseLLMCheck, LLMCheckResultβ βββ groundedness.py # Groundednessβ βββ conformity.py # Conformityβ βββ judge.py # LLMJudgeβββ scenarios/ # Multi-step workflowsβ βββ builder.py # Scenario builderβ βββ runner.py # ScenarioRunnerβ βββ suite.py # Suiteβββ testing/ # Testing utilitiesβ βββ runner.py # TestCaseRunnerβ βββ spy.py # WithSpyβββ generators/ # Input generatorsβ βββ user.py # UserSimulatorβββ utils/ # Helper utilities βββ normalization.py βββ value_provider.py βββ parameter_injection.py βββ generator.py