add_test_cases
Adds test cases to the end of a Dataset from recorded Sessions or explicit inputs, skipping Sessions the Dataset already contains.
Instructions
Adds test cases to the end of a Dataset. Replays nothing and costs nothing.
Each test case is either a recorded Session (session_id) or inputs, never both. A
Session needs pipeline_name. A Session the Dataset already holds is skipped. To reuse test
cases from another Dataset use copy_test_cases.
:param dataset_id: The Dataset's id.
:param test_cases: The test cases to add, in order.
:param pipeline_name: The pipeline the Sessions were recorded on; required when a test case has a session_id.
:returns: The Dataset with all its test cases, or an error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dataset_id | Yes | ||
| test_cases | Yes | ||
| pipeline_name | No |