Learn how to organize test cases for offline evaluation of AI agents
data
(e.g. a specific customer query) used to evaluate the agent. An online scenario however defines a set of Precondition
that qualifies a scenario and activates the pathconditions
and postconditions
in the contract
.
name
- Name of the scenariodata
- Input data to the scenario (ONLY used for offline verification)contracts
- Set of requirements to verify or certify againstmetadata
- Information about the test caseprecondition
serves different purposes:
data
field of an offline contract should contain the input data that drives your test scenario. This can be any JSON structure that matches your system’s requirements:
data
can contain any information required to generate the dynamic inputs (e.g. initiation data used for simulation)
Precondition
is required in Contract
to qualify the scenario.