Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions generated_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -7733,6 +7733,9 @@
"maximum": 1,
"description": "The sampling rate for topic automation"
},
"facet_model": {
"$ref": "#/components/schemas/TopicAutomationFacetModel"
},
"facet_functions": {
"type": "array",
"items": {
Expand Down Expand Up @@ -7878,6 +7881,18 @@
],
"description": "Optional data scope for topic automation."
},
"TopicAutomationFacetModel": {
"type": [
"string",
"null"
],
"enum": [
"brain-facet-latest",
"brain-facet-1",
"brain-facet-2"
],
"description": "Optional facet model override for topic automation"
},
"TopicMapData": {
"type": "object",
"properties": {
Expand Down
9 changes: 9 additions & 0 deletions py/src/braintrust/_generated_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -2419,6 +2419,14 @@ class TopicAutomationDataScopeTopicAutomationDataScope2(TypedDict):
"""


TopicAutomationFacetModel: TypeAlias = Literal[
'brain-facet-latest', 'brain-facet-1', 'brain-facet-2'
]
"""
Optional facet model override for topic automation
"""


class Function1Function1(TypedDict):
type: Literal['function']
id: str
Expand Down Expand Up @@ -3333,6 +3341,7 @@ class TopicAutomationConfig(TypedDict):
"""
The sampling rate for topic automation
"""
facet_model: NotRequired[TopicAutomationFacetModel | None]
facet_functions: Sequence[SavedFunctionId]
"""
Facet functions used by the topic automation
Expand Down
4 changes: 3 additions & 1 deletion py/src/braintrust/generated_types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""Auto-generated file (content hash 2046371fcb54d28e) -- do not modify"""
"""Auto-generated file (content hash 56952ef4659f447d) -- do not modify"""

from ._generated_types import (
Acl,
Expand Down Expand Up @@ -101,6 +101,7 @@
ToolFunctionDefinition,
TopicAutomationConfig,
TopicAutomationDataScope,
TopicAutomationFacetModel,
TopicMapData,
TopicMapFunctionAutomation,
TopicMapGenerationSettings,
Expand Down Expand Up @@ -216,6 +217,7 @@
"ToolFunctionDefinition",
"TopicAutomationConfig",
"TopicAutomationDataScope",
"TopicAutomationFacetModel",
"TopicMapData",
"TopicMapFunctionAutomation",
"TopicMapGenerationSettings",
Expand Down
Loading