From 90fc5f47c77dfe6df06621c715f9dc3e659dff23 Mon Sep 17 00:00:00 2001 From: "braintrust-bot[bot]" <215900051+braintrust-bot[bot]@users.noreply.github.com> Date: Tue, 1 Dec 2026 01:49:09 +0000 Subject: [PATCH] chore: Update platform types --- generated_types.json | 36 +++++++++++++++++++++++++++ py/src/braintrust/_generated_types.py | 8 ++++++ py/src/braintrust/generated_types.py | 2 +- 3 files changed, 45 insertions(+), 1 deletion(-) diff --git a/generated_types.json b/generated_types.json index daf062e6..aa527251 100644 --- a/generated_types.json +++ b/generated_types.json @@ -3604,6 +3604,22 @@ }, "version": { "type": "string" + }, + "sdk_major_version": { + "anyOf": [ + { + "type": "number", + "enum": [ + 3 + ] + }, + { + "type": "number", + "enum": [ + 4 + ] + } + ] } }, "required": [ @@ -4118,6 +4134,22 @@ }, "version": { "type": "string" + }, + "sdk_major_version": { + "anyOf": [ + { + "type": "number", + "enum": [ + 3 + ] + }, + { + "type": "number", + "enum": [ + 4 + ] + } + ] } }, "required": [ @@ -4915,6 +4947,10 @@ "input": { "description": "Argument to the function, which can be any JSON serializable value" }, + "input_is_row": { + "type": "boolean", + "description": "Whether classifier input is a scorer row with input, output, expected, and metadata fields, rather than an arbitrary JSON value." + }, "expected": { "description": "The expected output of the function" }, diff --git a/py/src/braintrust/_generated_types.py b/py/src/braintrust/_generated_types.py index c44cd3f6..820871f1 100644 --- a/py/src/braintrust/_generated_types.py +++ b/py/src/braintrust/_generated_types.py @@ -894,6 +894,7 @@ class Data(CodeBundle): class FunctionDataFunctionData1DataRuntimeContext(TypedDict): runtime: Literal['node', 'python', 'browser', 'quickjs'] version: str + sdk_major_version: NotRequired[Literal[3] | Literal[4] | None] class FunctionDataFunctionData1Data(TypedDict): @@ -1081,6 +1082,7 @@ class FunctionIdFunctionId3(TypedDict): class FunctionIdFunctionId4InlineContext(TypedDict): runtime: Literal['node', 'python', 'browser', 'quickjs'] version: str + sdk_major_version: NotRequired[Literal[3] | Literal[4] | None] FunctionIdRef: TypeAlias = Mapping[str, Any] @@ -1502,6 +1504,7 @@ class InvokeFunctionInvokeFunction3(TypedDict): class InvokeFunctionInvokeFunction4InlineContext(TypedDict): runtime: Literal['node', 'python', 'browser', 'quickjs'] version: str + sdk_major_version: NotRequired[Literal[3] | Literal[4] | None] class InvokeFunctionInvokeFunction4(TypedDict): @@ -2937,6 +2940,7 @@ class TaskTask3(TypedDict): class TaskTask4InlineContext(TypedDict): runtime: Literal['node', 'python', 'browser', 'quickjs'] version: str + sdk_major_version: NotRequired[Literal[3] | Literal[4] | None] class TaskTask4(TypedDict): @@ -4237,6 +4241,10 @@ class InvokeFunctionInvokeFunction7(TypedDict): """ Argument to the function, which can be any JSON serializable value """ + input_is_row: NotRequired[bool | None] + """ + Whether classifier input is a scorer row with input, output, expected, and metadata fields, rather than an arbitrary JSON value. + """ expected: NotRequired[Any | None] """ The expected output of the function diff --git a/py/src/braintrust/generated_types.py b/py/src/braintrust/generated_types.py index 012a6829..3790099d 100644 --- a/py/src/braintrust/generated_types.py +++ b/py/src/braintrust/generated_types.py @@ -1,4 +1,4 @@ -"""Auto-generated file (content hash 964080a0169d395d) -- do not modify""" +"""Auto-generated file (content hash 7e06970c443e80d0) -- do not modify""" from ._generated_types import ( Acl,