Skip to content

Commit bb43056

Browse files
author
SentienceDEV
committed
updated trace schema
1 parent 69ad24a commit bb43056

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

sentience/schemas/trace_v1.json

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,12 @@
3737
},
3838
"step_id": {
3939
"type": ["string", "null"],
40-
"pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$",
41-
"description": "UUID for the step (present for step-scoped events)"
40+
"description": "Step identifier in 'step-N' format where N is the step index (present for step-scoped events)"
41+
},
42+
"step_index": {
43+
"type": ["integer", "null"],
44+
"minimum": 0,
45+
"description": "Step index (0-based), present for step-scoped events"
4246
},
4347
"data": {
4448
"type": "object",
@@ -67,6 +71,7 @@
6771
"description": "snapshot or snapshot_taken data",
6872
"properties": {
6973
"step_id": {"type": ["string", "null"]},
74+
"step_index": {"type": ["integer", "null"], "minimum": 0, "description": "Step index for Studio compatibility"},
7075
"snapshot_id": {"type": ["string", "null"]},
7176
"snapshot_digest": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"},
7277
"snapshot_digest_loose": {"type": "string", "pattern": "^sha256:[0-9a-f]{64}$"},

0 commit comments

Comments
 (0)