From b20e7841e55643bcec77d9816b45c5e68fd4035b Mon Sep 17 00:00:00 2001 From: "braintrust-bot[bot]" <215900051+braintrust-bot[bot]@users.noreply.github.com> Date: Tue, 20 Oct 2026 01:21:15 +0000 Subject: [PATCH] chore: Update platform types --- generated_types.json | 33 ++++++++++++++++++++++++++- py/src/braintrust/_generated_types.py | 11 ++++++++- py/src/braintrust/generated_types.py | 2 +- 3 files changed, 43 insertions(+), 3 deletions(-) diff --git a/generated_types.json b/generated_types.json index f1721dac..da095413 100644 --- a/generated_types.json +++ b/generated_types.json @@ -10130,7 +10130,8 @@ "null" ], "enum": [ - "patterns" + "patterns", + "dashboard" ], "description": "The product surface that created and manages the automation" }, @@ -10397,6 +10398,36 @@ "xhigh", "max" ] + }, + "target": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "dashboard" + ] + }, + "id": { + "anyOf": [ + { + "type": "string", + "format": "uuid" + }, + { + "type": "string", + "enum": [ + "overview" + ] + } + ] + } + }, + "required": [ + "type", + "id" + ], + "description": "The object this automation writes to or maintains" } }, "required": [ diff --git a/py/src/braintrust/_generated_types.py b/py/src/braintrust/_generated_types.py index 9b1dba3e..ad20aaae 100644 --- a/py/src/braintrust/_generated_types.py +++ b/py/src/braintrust/_generated_types.py @@ -3288,6 +3288,11 @@ class WindowedAutomationConfigWindow(TypedDict): """ +class WindowedAutomationConfigLoopTarget(TypedDict): + type: Literal['dashboard'] + id: str | Literal['overview'] + + class WindowedAutomationConfigLoop(TypedDict): prompt: str """ @@ -3317,6 +3322,10 @@ class WindowedAutomationConfigLoop(TypedDict): reasoning_effort: NotRequired[ Literal['none', 'minimal', 'low', 'medium', 'high', 'xhigh', 'max'] ] + target: NotRequired[WindowedAutomationConfigLoopTarget | None] + """ + The object this automation writes to or maintains + """ class WindowedAutomationConfigActions(TypedDict): @@ -3389,7 +3398,7 @@ class WindowedAutomationConfig(TypedDict): """ The type of automation. """ - product_origin: NotRequired[Literal['patterns'] | None] + product_origin: NotRequired[Literal['patterns', 'dashboard'] | None] """ The product surface that created and manages the automation """ diff --git a/py/src/braintrust/generated_types.py b/py/src/braintrust/generated_types.py index 6a3999ce..3a7e6f36 100644 --- a/py/src/braintrust/generated_types.py +++ b/py/src/braintrust/generated_types.py @@ -1,4 +1,4 @@ -"""Auto-generated file (content hash 4c7189b4e4362aae) -- do not modify""" +"""Auto-generated file (content hash d62d072d8da8415e) -- do not modify""" from ._generated_types import ( Acl,