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
36 changes: 36 additions & 0 deletions generated_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -3604,6 +3604,22 @@
},
"version": {
"type": "string"
},
"sdk_major_version": {
"anyOf": [
{
"type": "number",
"enum": [
3
]
},
{
"type": "number",
"enum": [
4
]
}
]
}
},
"required": [
Expand Down Expand Up @@ -4118,6 +4134,22 @@
},
"version": {
"type": "string"
},
"sdk_major_version": {
"anyOf": [
{
"type": "number",
"enum": [
3
]
},
{
"type": "number",
"enum": [
4
]
}
]
}
},
"required": [
Expand Down Expand Up @@ -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"
},
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 @@ -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):
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down
2 changes: 1 addition & 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 964080a0169d395d) -- do not modify"""
"""Auto-generated file (content hash 7e06970c443e80d0) -- do not modify"""

from ._generated_types import (
Acl,
Expand Down