diff --git a/generated_types.json b/generated_types.json index c920eff7..d38a29e1 100644 --- a/generated_types.json +++ b/generated_types.json @@ -1110,6 +1110,9 @@ { "$ref": "#/components/schemas/ChatCompletionContentPartImageWithTitle" }, + { + "$ref": "#/components/schemas/ChatCompletionContentPartInputAudioWithTitle" + }, { "$ref": "#/components/schemas/ChatCompletionContentPartFileWithTitle" } @@ -1244,6 +1247,62 @@ ], "title": "image_url" }, + "ChatCompletionContentPartInputAudioWithTitle": { + "type": "object", + "properties": { + "input_audio": { + "type": "object", + "properties": { + "data": { + "type": "string" + }, + "format": { + "type": "string", + "enum": [ + "wav", + "mp3" + ] + } + }, + "required": [ + "data", + "format" + ] + }, + "type": { + "type": "string", + "enum": [ + "input_audio" + ] + }, + "cache_control": { + "type": "object", + "properties": { + "type": { + "type": "string", + "enum": [ + "ephemeral" + ] + }, + "ttl": { + "type": "string", + "enum": [ + "5m", + "1h" + ] + } + }, + "required": [ + "type" + ] + } + }, + "required": [ + "input_audio", + "type" + ], + "title": "input_audio" + }, "ChatCompletionContentPartText": { "type": "object", "properties": { @@ -6055,6 +6114,21 @@ } ], "description": "The configuration for the automation rule" + }, + "runtime_block": { + "type": "object", + "properties": { + "reason": { + "type": "string" + }, + "model": { + "type": "string" + } + }, + "required": [ + "reason", + "model" + ] } }, "required": [ diff --git a/py/src/braintrust/_generated_types.py b/py/src/braintrust/_generated_types.py index ece0fea1..3c3f2cf5 100644 --- a/py/src/braintrust/_generated_types.py +++ b/py/src/braintrust/_generated_types.py @@ -373,6 +373,22 @@ class ChatCompletionContentPartImageWithTitle(TypedDict): cache_control: NotRequired[ChatCompletionContentPartImageWithTitleCacheControl | None] +class ChatCompletionContentPartInputAudioWithTitleInputAudio(TypedDict): + data: str + format: Literal['wav', 'mp3'] + + +class ChatCompletionContentPartInputAudioWithTitleCacheControl(TypedDict): + type: Literal['ephemeral'] + ttl: NotRequired[Literal['5m', '1h'] | None] + + +class ChatCompletionContentPartInputAudioWithTitle(TypedDict): + input_audio: ChatCompletionContentPartInputAudioWithTitleInputAudio + type: Literal['input_audio'] + cache_control: NotRequired[ChatCompletionContentPartInputAudioWithTitleCacheControl | None] + + class ChatCompletionContentPartTextCacheControl(TypedDict): type: Literal['ephemeral'] ttl: NotRequired[Literal['5m', '1h'] | None] @@ -1861,6 +1877,11 @@ class ProjectAutomationConfig4(TypedDict): """ +class ProjectAutomationRuntimeBlock(TypedDict): + reason: str + model: str + + class ProjectGroup(TypedDict): id: str """ @@ -3300,6 +3321,7 @@ class AttachmentStatus(TypedDict): ChatCompletionContentPart: TypeAlias = ( ChatCompletionContentPartTextWithTitle | ChatCompletionContentPartImageWithTitle + | ChatCompletionContentPartInputAudioWithTitle | ChatCompletionContentPartFileWithTitle ) @@ -4201,6 +4223,7 @@ class ProjectAutomation(TypedDict): """ The configuration for the automation rule """ + runtime_block: NotRequired[ProjectAutomationRuntimeBlock | None] class ProjectLogsEvent(TypedDict): diff --git a/py/src/braintrust/generated_types.py b/py/src/braintrust/generated_types.py index 6a852dd6..685c5853 100644 --- a/py/src/braintrust/generated_types.py +++ b/py/src/braintrust/generated_types.py @@ -1,4 +1,4 @@ -"""Auto-generated file (content hash 71b5715e9b2fb9f0) -- do not modify""" +"""Auto-generated file (content hash 00a5cbc989890b20) -- do not modify""" from ._generated_types import ( Acl, @@ -20,6 +20,7 @@ ChatCompletionContentPartFileFile, ChatCompletionContentPartFileWithTitle, ChatCompletionContentPartImageWithTitle, + ChatCompletionContentPartInputAudioWithTitle, ChatCompletionContentPartText, ChatCompletionContentPartTextWithTitle, ChatCompletionMessageParam, @@ -148,6 +149,7 @@ "ChatCompletionContentPartFileFile", "ChatCompletionContentPartFileWithTitle", "ChatCompletionContentPartImageWithTitle", + "ChatCompletionContentPartInputAudioWithTitle", "ChatCompletionContentPartText", "ChatCompletionContentPartTextWithTitle", "ChatCompletionMessageParam",