Skip to content

Commit 126ba4c

Browse files
chore: generated SDK types (#526)
Automated regeneration of SDK types. Co-authored-by: braintrust-bot[bot] <215900051+braintrust-bot[bot]@users.noreply.github.com>
1 parent c5b15e3 commit 126ba4c

3 files changed

Lines changed: 48 additions & 1 deletion

File tree

generated_types.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6162,6 +6162,38 @@
61626162
],
61636163
"description": "For categorical-type project scores, defines a single category"
61646164
},
6165+
"ProjectScoreCondition": {
6166+
"type": [
6167+
"object",
6168+
"null"
6169+
],
6170+
"properties": {
6171+
"when": {
6172+
"type": "object",
6173+
"properties": {
6174+
"clauses": {
6175+
"type": "array",
6176+
"items": {
6177+
"type": "string"
6178+
}
6179+
}
6180+
},
6181+
"required": [
6182+
"clauses"
6183+
]
6184+
},
6185+
"behavior": {
6186+
"type": "string",
6187+
"enum": [
6188+
"hidden"
6189+
],
6190+
"default": "hidden"
6191+
}
6192+
},
6193+
"required": [
6194+
"when"
6195+
]
6196+
},
61656197
"ProjectScoreConfig": {
61666198
"type": [
61676199
"object",
@@ -6208,6 +6240,9 @@
62086240
},
62096241
"online": {
62106242
"$ref": "#/components/schemas/OnlineScoreConfig"
6243+
},
6244+
"condition": {
6245+
"$ref": "#/components/schemas/ProjectScoreCondition"
62116246
}
62126247
}
62136248
},

py/src/braintrust/_generated_types.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1844,6 +1844,15 @@ class ProjectScoreCategory(TypedDict):
18441844
"""
18451845

18461846

1847+
class ProjectScoreConditionWhen(TypedDict):
1848+
clauses: Sequence[str]
1849+
1850+
1851+
class ProjectScoreCondition(TypedDict):
1852+
when: ProjectScoreConditionWhen
1853+
behavior: NotRequired[Literal['hidden'] | None]
1854+
1855+
18471856
class ProjectScoreConfigVisibility(TypedDict):
18481857
users: NotRequired[Sequence[str] | None]
18491858
groups: NotRequired[Sequence[str] | None]
@@ -3360,6 +3369,7 @@ class ProjectScoreConfig(TypedDict):
33603369
destination: NotRequired[str | None]
33613370
visibility: NotRequired[ProjectScoreConfigVisibility | None]
33623371
online: NotRequired[OnlineScoreConfig | None]
3372+
condition: NotRequired[ProjectScoreCondition | None]
33633373

33643374

33653375
class PromptBlockDataPromptBlockData(TypedDict):

py/src/braintrust/generated_types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
"""Auto-generated file (content hash e03e600b282a3442) -- do not modify"""
1+
"""Auto-generated file (content hash 532ae559f06cabd6) -- do not modify"""
22

33
from ._generated_types import (
44
Acl,
@@ -71,6 +71,7 @@
7171
ProjectScore,
7272
ProjectScoreCategories,
7373
ProjectScoreCategory,
74+
ProjectScoreCondition,
7475
ProjectScoreConfig,
7576
ProjectScoreType,
7677
ProjectSettings,
@@ -189,6 +190,7 @@
189190
"ProjectScore",
190191
"ProjectScoreCategories",
191192
"ProjectScoreCategory",
193+
"ProjectScoreCondition",
192194
"ProjectScoreConfig",
193195
"ProjectScoreType",
194196
"ProjectSettings",

0 commit comments

Comments
 (0)