add_test_cases
Add test cases to a workspace to build or replace a regression test suite. Each case requires a query and optionally a target answer for scoring model responses.
Instructions
Add test cases to this workspace.
Set replace: true to clear the existing suite and load a fresh one. Set replace: false (default) to append to the existing suite.
Each test case needs at least a query. targetAnswer is required for scoring. Omit targetAnswer only for exploratory runs where you score manually.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| workspaceId | Yes | ||
| testCases | Yes | Test cases to run | |
| replace | No | Replace all existing test cases. Default false (append). |