Skip to main content
The experiments SDK provides programmatic access to Gentrace experiments. While typically created via the experiment() function, experiments can also be accessed and managed directly through the SDK.

Basic usage

Overview

The SDK is built by Stainless and provides type-safe access to Gentrace entities. The experiments object exposes methods to create, retrieve, update, and list experiments.

Experiment structure

Each experiment contains:
string
required
Unique identifier (UUID)
string
Optional friendly name for the experiment
string
required
UUID of the associated pipeline
object
Optional metadata object for custom data
string
required
Creation timestamp
string
required
Last update timestamp

Resource methods

Create an experiment

Retrieve an experiment

Update an experiment

List with filters

Common usage with experiment()

Experiments are typically created automatically when using the experiment() function:

See also