Skip to content

Commit 72c5952

Browse files
ankrgyllforst
andauthored
Dataset pipeline follow ups (#2055)
Co-authored-by: Luca Forstner <luca.forstner@gmail.com>
1 parent a1ec65f commit 72c5952

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

.changeset/good-loops-end.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"braintrust": minor
3+
---
4+
5+
feat: Include span id in dataset pipeline argument

js/src/dataset-pipeline.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ type DatasetPipelineDefinition<Scope extends "span" | "trace"> = {
4343
transform: (
4444
transformInput: Scope extends "span"
4545
? {
46+
id: string;
4647
input: unknown;
4748
output: unknown;
4849
expected: unknown;
@@ -83,6 +84,7 @@ type DatasetPipelineBtDefinition = {
8384
transform: (
8485
transformInput:
8586
| {
87+
id: string;
8688
input: unknown;
8789
output: unknown;
8890
expected: unknown;

0 commit comments

Comments
 (0)