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
38 changes: 37 additions & 1 deletion generated_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -3532,6 +3532,16 @@
"type": "string",
"description": "The inline code to execute"
},
"function_type": {
"allOf": [
{
"$ref": "#/components/schemas/FunctionTypeEnum"
},
{
"description": "The function type for inline code. Required when invoking inline preprocessors."
}
]
},
"name": {
"type": [
"string",
Expand Down Expand Up @@ -7680,6 +7690,32 @@
"null"
],
"description": "Optional BTQL filter applied before topic automation."
},
"backfill_time_range": {
"anyOf": [
{
"type": "string"
},
{
"type": "object",
"properties": {
"from": {
"type": "string"
},
"to": {
"type": "string"
}
},
"required": [
"from",
"to"
]
},
{
"type": "null"
}
],
"description": "Optional default time range for backfill operations."
}
},
"required": [
Expand Down Expand Up @@ -8455,7 +8491,7 @@
"license": {
"name": "Apache 2.0"
},
"x-internal-git-sha": "7cc4507a2a809d3d0bcaea7cb53cb89c1bde1a91"
"x-internal-git-sha": "f461ffe3b4488dc9e8b7ff5a441d75cab0c822ff"
},
"paths": {},
"webhooks": {}
Expand Down
40 changes: 28 additions & 12 deletions py/src/braintrust/_generated_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -849,18 +849,6 @@ class FunctionIdFunctionId4InlineContext(TypedDict):
version: str


class FunctionIdFunctionId4(TypedDict):
inline_context: FunctionIdFunctionId4InlineContext
code: str
"""
The inline code to execute
"""
name: NotRequired[str | None]
"""
The name of the inline code function
"""


FunctionIdRef: TypeAlias = Mapping[str, Any]


Expand Down Expand Up @@ -1274,6 +1262,7 @@ class InvokeFunctionInvokeFunction4(TypedDict):
"""
The inline code to execute
"""
function_type: NotRequired[FunctionTypeEnum | None]
name: NotRequired[str | None]
"""
The name of the inline code function
Expand Down Expand Up @@ -2108,6 +2097,7 @@ class TaskTask4(TypedDict):
"""
The inline code to execute
"""
function_type: NotRequired[FunctionTypeEnum | None]
name: NotRequired[str | None]
"""
The name of the inline code function
Expand Down Expand Up @@ -2325,6 +2315,15 @@ class ToolFunctionDefinition(TypedDict):
function: ToolFunctionDefinitionFunction


TopicAutomationConfigBackfillTimeRange = TypedDict(
'TopicAutomationConfigBackfillTimeRange',
{
'from': str,
'to': str,
},
)


class TopicAutomationDataScopeTopicAutomationDataScope(TypedDict):
type: Literal['project_logs']

Expand Down Expand Up @@ -2988,6 +2987,19 @@ class FunctionIdFunctionId2(TypedDict):
function_type: NotRequired[FunctionTypeEnum | None]


class FunctionIdFunctionId4(TypedDict):
inline_context: FunctionIdFunctionId4InlineContext
code: str
"""
The inline code to execute
"""
function_type: NotRequired[FunctionTypeEnum | None]
name: NotRequired[str | None]
"""
The name of the inline code function
"""


class InvokeFunctionInvokeFunction7(TypedDict):
input: NotRequired[Any | None]
"""
Expand Down Expand Up @@ -3242,6 +3254,10 @@ class TopicAutomationConfig(TypedDict):
"""
Optional BTQL filter applied before topic automation.
"""
backfill_time_range: NotRequired[str | TopicAutomationConfigBackfillTimeRange | None]
"""
Optional default time range for backfill operations.
"""


class ViewData(TypedDict):
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 (internal git SHA 7cc4507a2a809d3d0bcaea7cb53cb89c1bde1a91) -- do not modify"""
"""Auto-generated file (internal git SHA f461ffe3b4488dc9e8b7ff5a441d75cab0c822ff) -- do not modify"""

from ._generated_types import (
Acl,
Expand Down
Loading