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
26 changes: 26 additions & 0 deletions generated_types.json
Original file line number Diff line number Diff line change
Expand Up @@ -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."
}
}
}
Expand Down Expand Up @@ -7059,6 +7066,12 @@
},
"position": {
"type": "string"
},
"endpoint_name": {
"type": [
"string",
"null"
]
}
}
},
Expand All @@ -7076,6 +7089,12 @@
},
"position": {
"type": "string"
},
"endpoint_name": {
"type": [
"string",
"null"
]
}
}
},
Expand Down Expand Up @@ -7757,6 +7776,13 @@
}
}
}
},
"endpoint_name": {
"type": [
"string",
"null"
],
"description": "Name of the AI provider secret to pin this run to."
}
},
"required": [
Expand Down
10 changes: 10 additions & 0 deletions py/src/braintrust/_generated_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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 = (
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 57c09ca5a2b45493) -- do not modify"""
"""Auto-generated file (content hash 265d32c75b7526f2) -- do not modify"""

from ._generated_types import (
Acl,
Expand Down