Skip to content

Commit 38727a5

Browse files
chore: generated SDK types (#457)
Automated regeneration of SDK types. Co-authored-by: braintrust-bot[bot] <215900051+braintrust-bot[bot]@users.noreply.github.com>
1 parent 65ca6c4 commit 38727a5

3 files changed

Lines changed: 34 additions & 2 deletions

File tree

generated_types.json

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4261,14 +4261,34 @@
42614261
"type": "string",
42624262
"description": "Field path to group by, e.g. metadata.session_id"
42634263
},
4264+
"interval_seconds": {
4265+
"type": "number",
4266+
"minimum": 1,
4267+
"description": "Maximum time range to include when constructing a group"
4268+
},
4269+
"max_traces": {
4270+
"type": "integer",
4271+
"minimum": 1,
4272+
"maximum": 64,
4273+
"description": "Maximum number of traces to include when constructing a group (default/max: 64)"
4274+
},
4275+
"placement": {
4276+
"type": "string",
4277+
"enum": [
4278+
"first",
4279+
"each"
4280+
],
4281+
"description": "Which trace or traces to write grouped scorer results to"
4282+
},
42644283
"idle_seconds": {
42654284
"type": "number",
42664285
"description": "Optional: trigger after this many seconds of inactivity"
42674286
}
42684287
},
42694288
"required": [
42704289
"type",
4271-
"group_by"
4290+
"group_by",
4291+
"placement"
42724292
],
42734293
"description": "Process spans/traces grouped by a field (e.g., session_id)"
42744294
},

py/src/braintrust/_generated_types.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1228,6 +1228,18 @@ class GroupScope(TypedDict):
12281228
"""
12291229
Field path to group by, e.g. metadata.session_id
12301230
"""
1231+
interval_seconds: NotRequired[float | None]
1232+
"""
1233+
Maximum time range to include when constructing a group
1234+
"""
1235+
max_traces: NotRequired[int | None]
1236+
"""
1237+
Maximum number of traces to include when constructing a group (default/max: 64)
1238+
"""
1239+
placement: Literal['first', 'each']
1240+
"""
1241+
Which trace or traces to write grouped scorer results to
1242+
"""
12311243
idle_seconds: NotRequired[float | None]
12321244
"""
12331245
Optional: trigger after this many seconds of inactivity

py/src/braintrust/generated_types.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Auto-generated file (content hash a9097876f2d66816) -- do not modify"""
1+
"""Auto-generated file (content hash 4767a23fab45ae89) -- do not modify"""
22

33
from ._generated_types import (
44
Acl,

0 commit comments

Comments
 (0)