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
14 changes: 14 additions & 0 deletions generated_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,14 @@
"upload_status"
]
},
"AutomationStatus": {
"type": "string",
"enum": [
"active",
"paused"
],
"description": "Whether the automation is active or paused."
},
"BatchedFacetData": {
"type": "object",
"properties": {
Expand Down Expand Up @@ -5290,6 +5298,9 @@
],
"description": "The type of automation."
},
"status": {
"$ref": "#/components/schemas/AutomationStatus"
},
"export_definition": {
"oneOf": [
{
Expand Down Expand Up @@ -7762,6 +7773,9 @@
],
"description": "The type of automation."
},
"status": {
"$ref": "#/components/schemas/AutomationStatus"
},
"sampling_rate": {
"type": "number",
"minimum": 0,
Expand Down
8 changes: 8 additions & 0 deletions py/src/braintrust/_generated_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,12 @@ class AsyncScoringStateAsyncScoringState1(TypedDict):
)


AutomationStatus: TypeAlias = Literal['active', 'paused']
"""
Whether the automation is active or paused.
"""


class PreprocessorPreprocessor(TypedDict):
type: Literal['function']
id: str
Expand Down Expand Up @@ -3224,6 +3230,7 @@ class ProjectAutomationConfig1(TypedDict):
"""
The type of automation.
"""
status: NotRequired[AutomationStatus | None]
export_definition: (
ProjectAutomationConfig1ExportDefinition
| ProjectAutomationConfig1ExportDefinition1
Expand Down Expand Up @@ -3345,6 +3352,7 @@ class TopicAutomationConfig(TypedDict):
"""
The type of automation.
"""
status: NotRequired[AutomationStatus | None]
sampling_rate: float
"""
The sampling rate for 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 70ebf7ccf0df48b3) -- do not modify"""
"""Auto-generated file (content hash 811e3cfdd0deebaf) -- do not modify"""

from ._generated_types import (
Acl,
Expand All @@ -10,6 +10,7 @@
AsyncScoringState,
AttachmentReference,
AttachmentStatus,
AutomationStatus,
BatchedFacetData,
BraintrustAttachmentReference,
BraintrustModelParams,
Expand Down Expand Up @@ -126,6 +127,7 @@
"AsyncScoringState",
"AttachmentReference",
"AttachmentStatus",
"AutomationStatus",
"BatchedFacetData",
"BraintrustAttachmentReference",
"BraintrustModelParams",
Expand Down
Loading