The datasets SDK provides programmatic access to Gentrace datasets. Datasets organize test cases and are associated with pipelines for evaluation purposes.Documentation Index
Fetch the complete documentation index at: https://next.gentrace.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Basic usage
Overview
The SDK is built by Stainless and provides type-safe access to Gentrace entities. Thedatasets object exposes methods to create, retrieve, update, and list datasets.
Dataset structure
Each dataset contains:Unique identifier (UUID)
Human-readable name for the dataset
Optional description of the dataset’s purpose
UUID of the associated pipeline
Timestamp when archived (null if active)
Creation timestamp
Last update timestamp
Resource methods
Create a dataset
Retrieve a dataset
Update a dataset
List with filters
Relationship with test cases
Datasets contain test cases. To work with test cases within a dataset, use the test cases SDK:See also
- Test Cases - Working with test cases within datasets
- Pipelines - Managing pipelines that contain datasets
evalDataset()- Running evaluations against datasets