Skip to content

Commit c8a0ab1

Browse files
chore: Update platform types
1 parent bc5a7d3 commit c8a0ab1

3 files changed

Lines changed: 52 additions & 5 deletions

File tree

‎generated_types.json‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8473,7 +8473,7 @@
84738473
"type": "null"
84748474
}
84758475
],
8476-
"description": "Execution scope for topic automation. Defaults to span-level execution."
8476+
"description": "Execution scope for topic automation."
84778477
},
84788478
"data_scope": {
84798479
"$ref": "#/components/schemas/TopicAutomationDataScope"
@@ -8689,7 +8689,17 @@
86898689
},
86908690
"source_facet": {
86918691
"type": "string",
8692-
"description": "The facet field name to use as input for classification"
8692+
"description": "Materialized facet field name used when source_facet_function is absent"
8693+
},
8694+
"source_facet_function": {
8695+
"allOf": [
8696+
{
8697+
"$ref": "#/components/schemas/SavedFunctionId"
8698+
},
8699+
{
8700+
"description": "The stable function reference for the source facet"
8701+
}
8702+
]
86938703
},
86948704
"embedding_model": {
86958705
"type": "string",

‎py/src/braintrust/_generated_types.py‎

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2680,6 +2680,42 @@ class TopicDigestAutomationConfig(TypedDict):
26802680
"""
26812681

26822682

2683+
class SourceFacetFunctionSourceFacetFunction(TypedDict):
2684+
type: Literal['function']
2685+
id: str
2686+
version: NotRequired[str | None]
2687+
"""
2688+
The version of the function
2689+
"""
2690+
2691+
2692+
class SourceFacetFunctionSourceFacetFunction1(TypedDict):
2693+
type: Literal['global']
2694+
name: str
2695+
function_type: NotRequired[FunctionTypeEnum | None]
2696+
2697+
2698+
class SourceFacetFunctionSourceFacetFunction2(TypedDict):
2699+
pass
2700+
2701+
2702+
class SourceFacetFunctionSourceFacetFunction3(
2703+
SourceFacetFunctionSourceFacetFunction, SourceFacetFunctionSourceFacetFunction2
2704+
):
2705+
pass
2706+
2707+
2708+
class SourceFacetFunctionSourceFacetFunction4(
2709+
SourceFacetFunctionSourceFacetFunction1, SourceFacetFunctionSourceFacetFunction2
2710+
):
2711+
pass
2712+
2713+
2714+
SourceFacetFunction: TypeAlias = (
2715+
SourceFacetFunctionSourceFacetFunction3 | SourceFacetFunctionSourceFacetFunction4
2716+
)
2717+
2718+
26832719
class Function1Function1(TypedDict):
26842720
type: Literal['function']
26852721
id: str
@@ -3812,7 +3848,7 @@ class TopicAutomationConfig(TypedDict):
38123848
"""
38133849
scope: NotRequired[SpanScope | TraceScope | GroupScope | None]
38143850
"""
3815-
Execution scope for topic automation. Defaults to span-level execution.
3851+
Execution scope for topic automation.
38163852
"""
38173853
data_scope: NotRequired[TopicAutomationDataScope | None]
38183854
btql_filter: NotRequired[str | None]
@@ -3839,8 +3875,9 @@ class TopicMapData(TypedDict):
38393875
type: Literal['topic_map']
38403876
source_facet: str
38413877
"""
3842-
The facet field name to use as input for classification
3878+
Materialized facet field name used when source_facet_function is absent
38433879
"""
3880+
source_facet_function: NotRequired[SourceFacetFunction | None]
38443881
embedding_model: str
38453882
"""
38463883
The embedding model to use for embedding facet values

‎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 267ce67890c684fe) -- do not modify"""
1+
"""Auto-generated file (content hash a530347bf79cb618) -- do not modify"""
22

33
from ._generated_types import (
44
Acl,

0 commit comments

Comments
 (0)