diff --git a/generated_types.json b/generated_types.json index f1679229..f9d2933c 100644 --- a/generated_types.json +++ b/generated_types.json @@ -4537,6 +4537,13 @@ ], "additionalProperties": {}, "description": "Partial function definition to merge with the function being invoked. Fields are validated against the function type's schema at runtime. For facets: { preprocessor?, prompt?, model? }. For prompts: { model?, ... }." + }, + "endpoint_name": { + "type": [ + "string", + "null" + ], + "description": "Name of the AI provider secret to pin this invocation to." } } } @@ -7059,6 +7066,12 @@ }, "position": { "type": "string" + }, + "endpoint_name": { + "type": [ + "string", + "null" + ] } } }, @@ -7076,6 +7089,12 @@ }, "position": { "type": "string" + }, + "endpoint_name": { + "type": [ + "string", + "null" + ] } } }, @@ -7757,6 +7776,13 @@ } } } + }, + "endpoint_name": { + "type": [ + "string", + "null" + ], + "description": "Name of the AI provider secret to pin this run to." } }, "required": [ diff --git a/py/src/braintrust/_generated_types.py b/py/src/braintrust/_generated_types.py index 6dcc7a77..d0283207 100644 --- a/py/src/braintrust/_generated_types.py +++ b/py/src/braintrust/_generated_types.py @@ -3256,6 +3256,10 @@ class InvokeFunctionInvokeFunction7(TypedDict): """ Partial function definition to merge with the function being invoked. Fields are validated against the function type's schema at runtime. For facets: { preprocessor?, prompt?, model? }. For prompts: { model?, ... }. """ + endpoint_name: NotRequired[str | None] + """ + Name of the AI provider secret to pin this invocation to. + """ class InvokeFunctionInvokeFunction8( @@ -3527,12 +3531,14 @@ class PromptOptions(TypedDict): model: NotRequired[str | None] params: NotRequired[ModelParams | None] position: NotRequired[str | None] + endpoint_name: NotRequired[str | None] class PromptOptionsNullish(TypedDict): model: NotRequired[str | None] params: NotRequired[ModelParams | None] position: NotRequired[str | None] + endpoint_name: NotRequired[str | None] class ResponseFormatResponseFormat1(TypedDict): @@ -4293,6 +4299,10 @@ class RunEval(TypedDict): Optional tags that will be added to the experiment. """ mcp_auth: NotRequired[Mapping[str, RunEvalMcpAuth] | None] + endpoint_name: NotRequired[str | None] + """ + Name of the AI provider secret to pin this run to. + """ FunctionData: TypeAlias = ( diff --git a/py/src/braintrust/generated_types.py b/py/src/braintrust/generated_types.py index 4ec52af4..d1860551 100644 --- a/py/src/braintrust/generated_types.py +++ b/py/src/braintrust/generated_types.py @@ -1,4 +1,4 @@ -"""Auto-generated file (content hash 57c09ca5a2b45493) -- do not modify""" +"""Auto-generated file (content hash 265d32c75b7526f2) -- do not modify""" from ._generated_types import ( Acl,