The pipelines SDK provides programmatic access to Gentrace pipelines. Pipelines are the top-level organizational unit that contains datasets, experiments, and traces.
The SDK is built by Stainless and provides type-safe access to Gentrace entities. The pipelines object exposes methods to create, retrieve, update, and list pipelines.
// Filter by folder or slugconst pipelineList = await pipelines.list({ folderId: 'folder-id', slug: 'customer-support', // exact match or use advanced filters});
Pipelines are used throughout Gentrace to organize your AI workflows:
Copy
Ask AI
// Use pipeline ID with interaction()const tracedFunction = interaction('My AI Function', myAIFunction, { pipelineId: pipeline.id,});// Use pipeline ID with experiment()experiment(pipeline.id, async () => { // Your experiment code});