Commit c1a9134
feat(invoke): expose overrides field on invoke()
The /function/invoke REST endpoint accepts an `overrides` field that
deep-merges into the resolved function data server-side, but `invoke()`
does not pass it through. The SDK builds the request body from a
whitelist, so the parameter was dropped before reaching the wire.
Adds `overrides` to the two `@overload` signatures and the main `invoke`
signature, and threads it through the request dict. Purely additive — no
schema or server changes.
Documents the prompt-function limitation: overrides deep-merge into
function_data only, so prompt parameters (which live on prompt_data) are
not affected by this path.
Pylon: braintrustdata/braintrust#17344
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 0d6c87d commit c1a9134
1 file changed
Lines changed: 9 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
53 | 53 | | |
54 | 54 | | |
55 | 55 | | |
| 56 | + | |
56 | 57 | | |
57 | 58 | | |
58 | 59 | | |
| |||
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
108 | 110 | | |
109 | 111 | | |
110 | 112 | | |
| 113 | + | |
111 | 114 | | |
112 | 115 | | |
113 | 116 | | |
| |||
136 | 139 | | |
137 | 140 | | |
138 | 141 | | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
139 | 146 | | |
140 | 147 | | |
141 | 148 | | |
| |||
198 | 205 | | |
199 | 206 | | |
200 | 207 | | |
| 208 | + | |
| 209 | + | |
201 | 210 | | |
202 | 211 | | |
203 | 212 | | |
| |||
0 commit comments