llama-stack-client 0.4.0-rc1 → 0.4.0-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +33 -22
- package/index.d.mts +12 -6
- package/index.d.ts +12 -6
- package/index.d.ts.map +1 -1
- package/index.js.map +1 -1
- package/index.mjs.map +1 -1
- package/package.json +7 -1
- package/resources/alpha/admin.d.ts +41 -0
- package/resources/alpha/admin.d.ts.map +1 -0
- package/resources/alpha/admin.js +46 -0
- package/resources/alpha/admin.js.map +1 -0
- package/resources/alpha/admin.mjs +42 -0
- package/resources/alpha/admin.mjs.map +1 -0
- package/resources/alpha/alpha.d.ts +6 -2
- package/resources/alpha/alpha.d.ts.map +1 -1
- package/resources/alpha/alpha.js +4 -0
- package/resources/alpha/alpha.js.map +1 -1
- package/resources/alpha/alpha.mjs +4 -0
- package/resources/alpha/alpha.mjs.map +1 -1
- package/resources/alpha/benchmarks.d.ts +37 -1
- package/resources/alpha/benchmarks.d.ts.map +1 -1
- package/resources/alpha/index.d.ts +2 -1
- package/resources/alpha/index.d.ts.map +1 -1
- package/resources/alpha/index.js +3 -1
- package/resources/alpha/index.js.map +1 -1
- package/resources/alpha/index.mjs +1 -0
- package/resources/alpha/index.mjs.map +1 -1
- package/resources/alpha/post-training/index.d.ts +2 -2
- package/resources/alpha/post-training/index.d.ts.map +1 -1
- package/resources/alpha/post-training/index.js.map +1 -1
- package/resources/alpha/post-training/index.mjs.map +1 -1
- package/resources/alpha/post-training/job.d.ts +1 -4
- package/resources/alpha/post-training/job.d.ts.map +1 -1
- package/resources/alpha/post-training/post-training.d.ts +6 -3
- package/resources/alpha/post-training/post-training.d.ts.map +1 -1
- package/resources/alpha/post-training/post-training.js.map +1 -1
- package/resources/alpha/post-training/post-training.mjs.map +1 -1
- package/resources/beta/datasets.d.ts +89 -8
- package/resources/beta/datasets.d.ts.map +1 -1
- package/resources/chat/chat.d.ts +2 -2
- package/resources/chat/chat.d.ts.map +1 -1
- package/resources/chat/completions.d.ts +6 -6
- package/resources/chat/completions.d.ts.map +1 -1
- package/resources/completions.d.ts +2 -2
- package/resources/completions.d.ts.map +1 -1
- package/resources/conversations/conversations.d.ts +32 -4
- package/resources/conversations/conversations.d.ts.map +1 -1
- package/resources/conversations/conversations.js.map +1 -1
- package/resources/conversations/conversations.mjs.map +1 -1
- package/resources/conversations/items.d.ts +124 -12
- package/resources/conversations/items.d.ts.map +1 -1
- package/resources/conversations/items.js.map +1 -1
- package/resources/conversations/items.mjs.map +1 -1
- package/resources/index.d.ts +3 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/inspect.d.ts +3 -45
- package/resources/inspect.d.ts.map +1 -1
- package/resources/inspect.js +0 -4
- package/resources/inspect.js.map +1 -1
- package/resources/inspect.mjs +0 -4
- package/resources/inspect.mjs.map +1 -1
- package/resources/providers.d.ts +5 -12
- package/resources/providers.d.ts.map +1 -1
- package/resources/providers.js +0 -4
- package/resources/providers.js.map +1 -1
- package/resources/providers.mjs +0 -4
- package/resources/providers.mjs.map +1 -1
- package/resources/responses/input-items.d.ts +64 -8
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/responses.d.ts +479 -31
- package/resources/responses/responses.d.ts.map +1 -1
- package/resources/responses/responses.js.map +1 -1
- package/resources/responses/responses.mjs.map +1 -1
- package/resources/routes.d.ts +10 -9
- package/resources/routes.d.ts.map +1 -1
- package/resources/routes.js.map +1 -1
- package/resources/routes.mjs.map +1 -1
- package/resources/shared.d.ts +86 -0
- package/resources/shared.d.ts.map +1 -1
- package/src/index.ts +11 -16
- package/src/resources/alpha/admin.ts +84 -0
- package/src/resources/alpha/alpha.ts +8 -0
- package/src/resources/alpha/benchmarks.ts +37 -1
- package/src/resources/alpha/index.ts +2 -0
- package/src/resources/alpha/post-training/index.ts +1 -1
- package/src/resources/alpha/post-training/job.ts +0 -5
- package/src/resources/alpha/post-training/post-training.ts +5 -2
- package/src/resources/beta/datasets.ts +89 -8
- package/src/resources/chat/chat.ts +4 -4
- package/src/resources/chat/completions.ts +12 -12
- package/src/resources/completions.ts +4 -4
- package/src/resources/conversations/conversations.ts +43 -7
- package/src/resources/conversations/items.ts +165 -21
- package/src/resources/index.ts +3 -3
- package/src/resources/inspect.ts +3 -57
- package/src/resources/providers.ts +5 -16
- package/src/resources/responses/input-items.ts +86 -14
- package/src/resources/responses/responses.ts +654 -45
- package/src/resources/routes.ts +10 -14
- package/src/resources/shared.ts +95 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -131,6 +131,21 @@ export interface ResponseObject {
|
|
|
131
131
|
*/
|
|
132
132
|
text?: ResponseObject.Text;
|
|
133
133
|
|
|
134
|
+
/**
|
|
135
|
+
* Constrains the tools available to the model to a pre-defined set.
|
|
136
|
+
*/
|
|
137
|
+
tool_choice?:
|
|
138
|
+
| 'auto'
|
|
139
|
+
| 'required'
|
|
140
|
+
| 'none'
|
|
141
|
+
| ResponseObject.OpenAIResponseInputToolChoiceAllowedTools
|
|
142
|
+
| ResponseObject.OpenAIResponseInputToolChoiceFileSearch
|
|
143
|
+
| ResponseObject.OpenAIResponseInputToolChoiceWebSearch
|
|
144
|
+
| ResponseObject.OpenAIResponseInputToolChoiceFunctionTool
|
|
145
|
+
| ResponseObject.OpenAIResponseInputToolChoiceMcpTool
|
|
146
|
+
| ResponseObject.OpenAIResponseInputToolChoiceCustomTool
|
|
147
|
+
| null;
|
|
148
|
+
|
|
134
149
|
tools?: Array<
|
|
135
150
|
| ResponseObject.OpenAIResponseInputToolWebSearch
|
|
136
151
|
| ResponseObject.OpenAIResponseInputToolFileSearch
|
|
@@ -163,7 +178,7 @@ export namespace ResponseObject {
|
|
|
163
178
|
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile
|
|
164
179
|
>
|
|
165
180
|
| Array<
|
|
166
|
-
| OpenAIResponseMessageOutput.
|
|
181
|
+
| OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput
|
|
167
182
|
| OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal
|
|
168
183
|
>;
|
|
169
184
|
|
|
@@ -214,20 +229,22 @@ export namespace ResponseObject {
|
|
|
214
229
|
type?: 'input_file';
|
|
215
230
|
}
|
|
216
231
|
|
|
217
|
-
export interface
|
|
232
|
+
export interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
218
233
|
text: string;
|
|
219
234
|
|
|
220
235
|
annotations?: Array<
|
|
221
|
-
|
|
|
222
|
-
|
|
|
223
|
-
|
|
|
224
|
-
|
|
|
236
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation
|
|
237
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation
|
|
238
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation
|
|
239
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath
|
|
225
240
|
>;
|
|
226
241
|
|
|
242
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
|
|
243
|
+
|
|
227
244
|
type?: 'output_text';
|
|
228
245
|
}
|
|
229
246
|
|
|
230
|
-
export namespace
|
|
247
|
+
export namespace OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
231
248
|
/**
|
|
232
249
|
* File citation annotation for referencing specific files in response content.
|
|
233
250
|
*/
|
|
@@ -277,6 +294,40 @@ export namespace ResponseObject {
|
|
|
277
294
|
|
|
278
295
|
type?: 'file_path';
|
|
279
296
|
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
300
|
+
* response.
|
|
301
|
+
*
|
|
302
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
303
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
304
|
+
*/
|
|
305
|
+
export interface Logprob {
|
|
306
|
+
token: string;
|
|
307
|
+
|
|
308
|
+
logprob: number;
|
|
309
|
+
|
|
310
|
+
bytes?: Array<number> | null;
|
|
311
|
+
|
|
312
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
export namespace Logprob {
|
|
316
|
+
/**
|
|
317
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
318
|
+
* response.
|
|
319
|
+
*
|
|
320
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
321
|
+
* probability of the token
|
|
322
|
+
*/
|
|
323
|
+
export interface TopLogprob {
|
|
324
|
+
token: string;
|
|
325
|
+
|
|
326
|
+
logprob: number;
|
|
327
|
+
|
|
328
|
+
bytes?: Array<number> | null;
|
|
329
|
+
}
|
|
330
|
+
}
|
|
280
331
|
}
|
|
281
332
|
|
|
282
333
|
/**
|
|
@@ -500,6 +551,60 @@ export namespace ResponseObject {
|
|
|
500
551
|
}
|
|
501
552
|
}
|
|
502
553
|
|
|
554
|
+
/**
|
|
555
|
+
* Constrains the tools available to the model to a pre-defined set.
|
|
556
|
+
*/
|
|
557
|
+
export interface OpenAIResponseInputToolChoiceAllowedTools {
|
|
558
|
+
tools: Array<{ [key: string]: string }>;
|
|
559
|
+
|
|
560
|
+
mode?: 'auto' | 'required';
|
|
561
|
+
|
|
562
|
+
type?: 'allowed_tools';
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Indicates that the model should use file search to generate a response.
|
|
567
|
+
*/
|
|
568
|
+
export interface OpenAIResponseInputToolChoiceFileSearch {
|
|
569
|
+
type?: 'file_search';
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
/**
|
|
573
|
+
* Indicates that the model should use web search to generate a response
|
|
574
|
+
*/
|
|
575
|
+
export interface OpenAIResponseInputToolChoiceWebSearch {
|
|
576
|
+
type?: 'web_search' | 'web_search_preview' | 'web_search_preview_2025_03_11' | 'web_search_2025_08_26';
|
|
577
|
+
}
|
|
578
|
+
|
|
579
|
+
/**
|
|
580
|
+
* Forces the model to call a specific function.
|
|
581
|
+
*/
|
|
582
|
+
export interface OpenAIResponseInputToolChoiceFunctionTool {
|
|
583
|
+
name: string;
|
|
584
|
+
|
|
585
|
+
type?: 'function';
|
|
586
|
+
}
|
|
587
|
+
|
|
588
|
+
/**
|
|
589
|
+
* Forces the model to call a specific tool on a remote MCP server
|
|
590
|
+
*/
|
|
591
|
+
export interface OpenAIResponseInputToolChoiceMcpTool {
|
|
592
|
+
server_label: string;
|
|
593
|
+
|
|
594
|
+
name?: string | null;
|
|
595
|
+
|
|
596
|
+
type?: 'mcp';
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
/**
|
|
600
|
+
* Forces the model to call a custom tool.
|
|
601
|
+
*/
|
|
602
|
+
export interface OpenAIResponseInputToolChoiceCustomTool {
|
|
603
|
+
name: string;
|
|
604
|
+
|
|
605
|
+
type?: 'custom';
|
|
606
|
+
}
|
|
607
|
+
|
|
503
608
|
/**
|
|
504
609
|
* Web search tool configuration for OpenAI response inputs.
|
|
505
610
|
*/
|
|
@@ -785,6 +890,8 @@ export namespace ResponseObjectStream {
|
|
|
785
890
|
| OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFilePath
|
|
786
891
|
>;
|
|
787
892
|
|
|
893
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputText.Logprob> | null;
|
|
894
|
+
|
|
788
895
|
type?: 'output_text';
|
|
789
896
|
}
|
|
790
897
|
|
|
@@ -838,6 +945,40 @@ export namespace ResponseObjectStream {
|
|
|
838
945
|
|
|
839
946
|
type?: 'file_path';
|
|
840
947
|
}
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
951
|
+
* response.
|
|
952
|
+
*
|
|
953
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
954
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
955
|
+
*/
|
|
956
|
+
export interface Logprob {
|
|
957
|
+
token: string;
|
|
958
|
+
|
|
959
|
+
logprob: number;
|
|
960
|
+
|
|
961
|
+
bytes?: Array<number> | null;
|
|
962
|
+
|
|
963
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
export namespace Logprob {
|
|
967
|
+
/**
|
|
968
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
969
|
+
* response.
|
|
970
|
+
*
|
|
971
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
972
|
+
* probability of the token
|
|
973
|
+
*/
|
|
974
|
+
export interface TopLogprob {
|
|
975
|
+
token: string;
|
|
976
|
+
|
|
977
|
+
logprob: number;
|
|
978
|
+
|
|
979
|
+
bytes?: Array<number> | null;
|
|
980
|
+
}
|
|
981
|
+
}
|
|
841
982
|
}
|
|
842
983
|
|
|
843
984
|
/**
|
|
@@ -1074,6 +1215,8 @@ export namespace ResponseObjectStream {
|
|
|
1074
1215
|
| OpenAIResponseOutputMessageContentOutputText.OpenAIResponseAnnotationFilePath
|
|
1075
1216
|
>;
|
|
1076
1217
|
|
|
1218
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputText.Logprob> | null;
|
|
1219
|
+
|
|
1077
1220
|
type?: 'output_text';
|
|
1078
1221
|
}
|
|
1079
1222
|
|
|
@@ -1127,6 +1270,40 @@ export namespace ResponseObjectStream {
|
|
|
1127
1270
|
|
|
1128
1271
|
type?: 'file_path';
|
|
1129
1272
|
}
|
|
1273
|
+
|
|
1274
|
+
/**
|
|
1275
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
1276
|
+
* response.
|
|
1277
|
+
*
|
|
1278
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1279
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
1280
|
+
*/
|
|
1281
|
+
export interface Logprob {
|
|
1282
|
+
token: string;
|
|
1283
|
+
|
|
1284
|
+
logprob: number;
|
|
1285
|
+
|
|
1286
|
+
bytes?: Array<number> | null;
|
|
1287
|
+
|
|
1288
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
export namespace Logprob {
|
|
1292
|
+
/**
|
|
1293
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
1294
|
+
* response.
|
|
1295
|
+
*
|
|
1296
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1297
|
+
* probability of the token
|
|
1298
|
+
*/
|
|
1299
|
+
export interface TopLogprob {
|
|
1300
|
+
token: string;
|
|
1301
|
+
|
|
1302
|
+
logprob: number;
|
|
1303
|
+
|
|
1304
|
+
bytes?: Array<number> | null;
|
|
1305
|
+
}
|
|
1306
|
+
}
|
|
1130
1307
|
}
|
|
1131
1308
|
|
|
1132
1309
|
/**
|
|
@@ -1274,9 +1451,47 @@ export namespace ResponseObjectStream {
|
|
|
1274
1451
|
|
|
1275
1452
|
sequence_number: number;
|
|
1276
1453
|
|
|
1454
|
+
logprobs?: Array<OpenAIResponseObjectStreamResponseOutputTextDelta.Logprob> | null;
|
|
1455
|
+
|
|
1277
1456
|
type?: 'response.output_text.delta';
|
|
1278
1457
|
}
|
|
1279
1458
|
|
|
1459
|
+
export namespace OpenAIResponseObjectStreamResponseOutputTextDelta {
|
|
1460
|
+
/**
|
|
1461
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
1462
|
+
* response.
|
|
1463
|
+
*
|
|
1464
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1465
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
1466
|
+
*/
|
|
1467
|
+
export interface Logprob {
|
|
1468
|
+
token: string;
|
|
1469
|
+
|
|
1470
|
+
logprob: number;
|
|
1471
|
+
|
|
1472
|
+
bytes?: Array<number> | null;
|
|
1473
|
+
|
|
1474
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
export namespace Logprob {
|
|
1478
|
+
/**
|
|
1479
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
1480
|
+
* response.
|
|
1481
|
+
*
|
|
1482
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1483
|
+
* probability of the token
|
|
1484
|
+
*/
|
|
1485
|
+
export interface TopLogprob {
|
|
1486
|
+
token: string;
|
|
1487
|
+
|
|
1488
|
+
logprob: number;
|
|
1489
|
+
|
|
1490
|
+
bytes?: Array<number> | null;
|
|
1491
|
+
}
|
|
1492
|
+
}
|
|
1493
|
+
}
|
|
1494
|
+
|
|
1280
1495
|
/**
|
|
1281
1496
|
* Streaming event for when text output is completed.
|
|
1282
1497
|
*/
|
|
@@ -1472,7 +1687,7 @@ export namespace ResponseObjectStream {
|
|
|
1472
1687
|
| OpenAIResponseContentPartOutputText.OpenAIResponseAnnotationFilePath
|
|
1473
1688
|
>;
|
|
1474
1689
|
|
|
1475
|
-
logprobs?: Array<
|
|
1690
|
+
logprobs?: Array<OpenAIResponseContentPartOutputText.Logprob> | null;
|
|
1476
1691
|
|
|
1477
1692
|
type?: 'output_text';
|
|
1478
1693
|
}
|
|
@@ -1527,6 +1742,40 @@ export namespace ResponseObjectStream {
|
|
|
1527
1742
|
|
|
1528
1743
|
type?: 'file_path';
|
|
1529
1744
|
}
|
|
1745
|
+
|
|
1746
|
+
/**
|
|
1747
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
1748
|
+
* response.
|
|
1749
|
+
*
|
|
1750
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1751
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
1752
|
+
*/
|
|
1753
|
+
export interface Logprob {
|
|
1754
|
+
token: string;
|
|
1755
|
+
|
|
1756
|
+
logprob: number;
|
|
1757
|
+
|
|
1758
|
+
bytes?: Array<number> | null;
|
|
1759
|
+
|
|
1760
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
export namespace Logprob {
|
|
1764
|
+
/**
|
|
1765
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
1766
|
+
* response.
|
|
1767
|
+
*
|
|
1768
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1769
|
+
* probability of the token
|
|
1770
|
+
*/
|
|
1771
|
+
export interface TopLogprob {
|
|
1772
|
+
token: string;
|
|
1773
|
+
|
|
1774
|
+
logprob: number;
|
|
1775
|
+
|
|
1776
|
+
bytes?: Array<number> | null;
|
|
1777
|
+
}
|
|
1778
|
+
}
|
|
1530
1779
|
}
|
|
1531
1780
|
|
|
1532
1781
|
/**
|
|
@@ -1587,7 +1836,7 @@ export namespace ResponseObjectStream {
|
|
|
1587
1836
|
| OpenAIResponseContentPartOutputText.OpenAIResponseAnnotationFilePath
|
|
1588
1837
|
>;
|
|
1589
1838
|
|
|
1590
|
-
logprobs?: Array<
|
|
1839
|
+
logprobs?: Array<OpenAIResponseContentPartOutputText.Logprob> | null;
|
|
1591
1840
|
|
|
1592
1841
|
type?: 'output_text';
|
|
1593
1842
|
}
|
|
@@ -1642,6 +1891,40 @@ export namespace ResponseObjectStream {
|
|
|
1642
1891
|
|
|
1643
1892
|
type?: 'file_path';
|
|
1644
1893
|
}
|
|
1894
|
+
|
|
1895
|
+
/**
|
|
1896
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
1897
|
+
* response.
|
|
1898
|
+
*
|
|
1899
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1900
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
1901
|
+
*/
|
|
1902
|
+
export interface Logprob {
|
|
1903
|
+
token: string;
|
|
1904
|
+
|
|
1905
|
+
logprob: number;
|
|
1906
|
+
|
|
1907
|
+
bytes?: Array<number> | null;
|
|
1908
|
+
|
|
1909
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
1910
|
+
}
|
|
1911
|
+
|
|
1912
|
+
export namespace Logprob {
|
|
1913
|
+
/**
|
|
1914
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
1915
|
+
* response.
|
|
1916
|
+
*
|
|
1917
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
1918
|
+
* probability of the token
|
|
1919
|
+
*/
|
|
1920
|
+
export interface TopLogprob {
|
|
1921
|
+
token: string;
|
|
1922
|
+
|
|
1923
|
+
logprob: number;
|
|
1924
|
+
|
|
1925
|
+
bytes?: Array<number> | null;
|
|
1926
|
+
}
|
|
1927
|
+
}
|
|
1645
1928
|
}
|
|
1646
1929
|
|
|
1647
1930
|
/**
|
|
@@ -2049,6 +2332,21 @@ export interface ResponseListResponse {
|
|
|
2049
2332
|
*/
|
|
2050
2333
|
text?: ResponseListResponse.Text;
|
|
2051
2334
|
|
|
2335
|
+
/**
|
|
2336
|
+
* Constrains the tools available to the model to a pre-defined set.
|
|
2337
|
+
*/
|
|
2338
|
+
tool_choice?:
|
|
2339
|
+
| 'auto'
|
|
2340
|
+
| 'required'
|
|
2341
|
+
| 'none'
|
|
2342
|
+
| ResponseListResponse.OpenAIResponseInputToolChoiceAllowedTools
|
|
2343
|
+
| ResponseListResponse.OpenAIResponseInputToolChoiceFileSearch
|
|
2344
|
+
| ResponseListResponse.OpenAIResponseInputToolChoiceWebSearch
|
|
2345
|
+
| ResponseListResponse.OpenAIResponseInputToolChoiceFunctionTool
|
|
2346
|
+
| ResponseListResponse.OpenAIResponseInputToolChoiceMcpTool
|
|
2347
|
+
| ResponseListResponse.OpenAIResponseInputToolChoiceCustomTool
|
|
2348
|
+
| null;
|
|
2349
|
+
|
|
2052
2350
|
tools?: Array<
|
|
2053
2351
|
| ResponseListResponse.OpenAIResponseInputToolWebSearch
|
|
2054
2352
|
| ResponseListResponse.OpenAIResponseInputToolFileSearch
|
|
@@ -2081,7 +2379,7 @@ export namespace ResponseListResponse {
|
|
|
2081
2379
|
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile
|
|
2082
2380
|
>
|
|
2083
2381
|
| Array<
|
|
2084
|
-
| OpenAIResponseMessageOutput.
|
|
2382
|
+
| OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput
|
|
2085
2383
|
| OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal
|
|
2086
2384
|
>;
|
|
2087
2385
|
|
|
@@ -2132,20 +2430,22 @@ export namespace ResponseListResponse {
|
|
|
2132
2430
|
type?: 'input_file';
|
|
2133
2431
|
}
|
|
2134
2432
|
|
|
2135
|
-
export interface
|
|
2433
|
+
export interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
2136
2434
|
text: string;
|
|
2137
2435
|
|
|
2138
2436
|
annotations?: Array<
|
|
2139
|
-
|
|
|
2140
|
-
|
|
|
2141
|
-
|
|
|
2142
|
-
|
|
|
2437
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation
|
|
2438
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation
|
|
2439
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation
|
|
2440
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath
|
|
2143
2441
|
>;
|
|
2144
2442
|
|
|
2443
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
|
|
2444
|
+
|
|
2145
2445
|
type?: 'output_text';
|
|
2146
2446
|
}
|
|
2147
2447
|
|
|
2148
|
-
export namespace
|
|
2448
|
+
export namespace OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
2149
2449
|
/**
|
|
2150
2450
|
* File citation annotation for referencing specific files in response content.
|
|
2151
2451
|
*/
|
|
@@ -2195,6 +2495,40 @@ export namespace ResponseListResponse {
|
|
|
2195
2495
|
|
|
2196
2496
|
type?: 'file_path';
|
|
2197
2497
|
}
|
|
2498
|
+
|
|
2499
|
+
/**
|
|
2500
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
2501
|
+
* response.
|
|
2502
|
+
*
|
|
2503
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
2504
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
2505
|
+
*/
|
|
2506
|
+
export interface Logprob {
|
|
2507
|
+
token: string;
|
|
2508
|
+
|
|
2509
|
+
logprob: number;
|
|
2510
|
+
|
|
2511
|
+
bytes?: Array<number> | null;
|
|
2512
|
+
|
|
2513
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
2514
|
+
}
|
|
2515
|
+
|
|
2516
|
+
export namespace Logprob {
|
|
2517
|
+
/**
|
|
2518
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
2519
|
+
* response.
|
|
2520
|
+
*
|
|
2521
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
2522
|
+
* probability of the token
|
|
2523
|
+
*/
|
|
2524
|
+
export interface TopLogprob {
|
|
2525
|
+
token: string;
|
|
2526
|
+
|
|
2527
|
+
logprob: number;
|
|
2528
|
+
|
|
2529
|
+
bytes?: Array<number> | null;
|
|
2530
|
+
}
|
|
2531
|
+
}
|
|
2198
2532
|
}
|
|
2199
2533
|
|
|
2200
2534
|
/**
|
|
@@ -2372,7 +2706,7 @@ export namespace ResponseListResponse {
|
|
|
2372
2706
|
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile
|
|
2373
2707
|
>
|
|
2374
2708
|
| Array<
|
|
2375
|
-
| OpenAIResponseMessageOutput.
|
|
2709
|
+
| OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput
|
|
2376
2710
|
| OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal
|
|
2377
2711
|
>;
|
|
2378
2712
|
|
|
@@ -2423,20 +2757,22 @@ export namespace ResponseListResponse {
|
|
|
2423
2757
|
type?: 'input_file';
|
|
2424
2758
|
}
|
|
2425
2759
|
|
|
2426
|
-
export interface
|
|
2760
|
+
export interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
2427
2761
|
text: string;
|
|
2428
2762
|
|
|
2429
2763
|
annotations?: Array<
|
|
2430
|
-
|
|
|
2431
|
-
|
|
|
2432
|
-
|
|
|
2433
|
-
|
|
|
2764
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation
|
|
2765
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation
|
|
2766
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation
|
|
2767
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath
|
|
2434
2768
|
>;
|
|
2435
2769
|
|
|
2770
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
|
|
2771
|
+
|
|
2436
2772
|
type?: 'output_text';
|
|
2437
2773
|
}
|
|
2438
2774
|
|
|
2439
|
-
export namespace
|
|
2775
|
+
export namespace OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
2440
2776
|
/**
|
|
2441
2777
|
* File citation annotation for referencing specific files in response content.
|
|
2442
2778
|
*/
|
|
@@ -2486,6 +2822,40 @@ export namespace ResponseListResponse {
|
|
|
2486
2822
|
|
|
2487
2823
|
type?: 'file_path';
|
|
2488
2824
|
}
|
|
2825
|
+
|
|
2826
|
+
/**
|
|
2827
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
2828
|
+
* response.
|
|
2829
|
+
*
|
|
2830
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
2831
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
2832
|
+
*/
|
|
2833
|
+
export interface Logprob {
|
|
2834
|
+
token: string;
|
|
2835
|
+
|
|
2836
|
+
logprob: number;
|
|
2837
|
+
|
|
2838
|
+
bytes?: Array<number> | null;
|
|
2839
|
+
|
|
2840
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
export namespace Logprob {
|
|
2844
|
+
/**
|
|
2845
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
2846
|
+
* response.
|
|
2847
|
+
*
|
|
2848
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
2849
|
+
* probability of the token
|
|
2850
|
+
*/
|
|
2851
|
+
export interface TopLogprob {
|
|
2852
|
+
token: string;
|
|
2853
|
+
|
|
2854
|
+
logprob: number;
|
|
2855
|
+
|
|
2856
|
+
bytes?: Array<number> | null;
|
|
2857
|
+
}
|
|
2858
|
+
}
|
|
2489
2859
|
}
|
|
2490
2860
|
|
|
2491
2861
|
/**
|
|
@@ -2512,7 +2882,7 @@ export namespace ResponseListResponse {
|
|
|
2512
2882
|
| OpenAIResponseMessageOutput.OpenAIResponseInputMessageContentFile
|
|
2513
2883
|
>
|
|
2514
2884
|
| Array<
|
|
2515
|
-
| OpenAIResponseMessageOutput.
|
|
2885
|
+
| OpenAIResponseMessageOutput.OpenAIResponseOutputMessageContentOutputTextOutput
|
|
2516
2886
|
| OpenAIResponseMessageOutput.OpenAIResponseContentPartRefusal
|
|
2517
2887
|
>;
|
|
2518
2888
|
|
|
@@ -2563,20 +2933,22 @@ export namespace ResponseListResponse {
|
|
|
2563
2933
|
type?: 'input_file';
|
|
2564
2934
|
}
|
|
2565
2935
|
|
|
2566
|
-
export interface
|
|
2936
|
+
export interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
2567
2937
|
text: string;
|
|
2568
2938
|
|
|
2569
2939
|
annotations?: Array<
|
|
2570
|
-
|
|
|
2571
|
-
|
|
|
2572
|
-
|
|
|
2573
|
-
|
|
|
2940
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFileCitation
|
|
2941
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationCitation
|
|
2942
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationContainerFileCitation
|
|
2943
|
+
| OpenAIResponseOutputMessageContentOutputTextOutput.OpenAIResponseAnnotationFilePath
|
|
2574
2944
|
>;
|
|
2575
2945
|
|
|
2946
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextOutput.Logprob> | null;
|
|
2947
|
+
|
|
2576
2948
|
type?: 'output_text';
|
|
2577
2949
|
}
|
|
2578
2950
|
|
|
2579
|
-
export namespace
|
|
2951
|
+
export namespace OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
2580
2952
|
/**
|
|
2581
2953
|
* File citation annotation for referencing specific files in response content.
|
|
2582
2954
|
*/
|
|
@@ -2626,6 +2998,40 @@ export namespace ResponseListResponse {
|
|
|
2626
2998
|
|
|
2627
2999
|
type?: 'file_path';
|
|
2628
3000
|
}
|
|
3001
|
+
|
|
3002
|
+
/**
|
|
3003
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
3004
|
+
* response.
|
|
3005
|
+
*
|
|
3006
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
3007
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
3008
|
+
*/
|
|
3009
|
+
export interface Logprob {
|
|
3010
|
+
token: string;
|
|
3011
|
+
|
|
3012
|
+
logprob: number;
|
|
3013
|
+
|
|
3014
|
+
bytes?: Array<number> | null;
|
|
3015
|
+
|
|
3016
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
3017
|
+
}
|
|
3018
|
+
|
|
3019
|
+
export namespace Logprob {
|
|
3020
|
+
/**
|
|
3021
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
3022
|
+
* response.
|
|
3023
|
+
*
|
|
3024
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
3025
|
+
* probability of the token
|
|
3026
|
+
*/
|
|
3027
|
+
export interface TopLogprob {
|
|
3028
|
+
token: string;
|
|
3029
|
+
|
|
3030
|
+
logprob: number;
|
|
3031
|
+
|
|
3032
|
+
bytes?: Array<number> | null;
|
|
3033
|
+
}
|
|
3034
|
+
}
|
|
2629
3035
|
}
|
|
2630
3036
|
|
|
2631
3037
|
/**
|
|
@@ -2849,6 +3255,60 @@ export namespace ResponseListResponse {
|
|
|
2849
3255
|
}
|
|
2850
3256
|
}
|
|
2851
3257
|
|
|
3258
|
+
/**
|
|
3259
|
+
* Constrains the tools available to the model to a pre-defined set.
|
|
3260
|
+
*/
|
|
3261
|
+
export interface OpenAIResponseInputToolChoiceAllowedTools {
|
|
3262
|
+
tools: Array<{ [key: string]: string }>;
|
|
3263
|
+
|
|
3264
|
+
mode?: 'auto' | 'required';
|
|
3265
|
+
|
|
3266
|
+
type?: 'allowed_tools';
|
|
3267
|
+
}
|
|
3268
|
+
|
|
3269
|
+
/**
|
|
3270
|
+
* Indicates that the model should use file search to generate a response.
|
|
3271
|
+
*/
|
|
3272
|
+
export interface OpenAIResponseInputToolChoiceFileSearch {
|
|
3273
|
+
type?: 'file_search';
|
|
3274
|
+
}
|
|
3275
|
+
|
|
3276
|
+
/**
|
|
3277
|
+
* Indicates that the model should use web search to generate a response
|
|
3278
|
+
*/
|
|
3279
|
+
export interface OpenAIResponseInputToolChoiceWebSearch {
|
|
3280
|
+
type?: 'web_search' | 'web_search_preview' | 'web_search_preview_2025_03_11' | 'web_search_2025_08_26';
|
|
3281
|
+
}
|
|
3282
|
+
|
|
3283
|
+
/**
|
|
3284
|
+
* Forces the model to call a specific function.
|
|
3285
|
+
*/
|
|
3286
|
+
export interface OpenAIResponseInputToolChoiceFunctionTool {
|
|
3287
|
+
name: string;
|
|
3288
|
+
|
|
3289
|
+
type?: 'function';
|
|
3290
|
+
}
|
|
3291
|
+
|
|
3292
|
+
/**
|
|
3293
|
+
* Forces the model to call a specific tool on a remote MCP server
|
|
3294
|
+
*/
|
|
3295
|
+
export interface OpenAIResponseInputToolChoiceMcpTool {
|
|
3296
|
+
server_label: string;
|
|
3297
|
+
|
|
3298
|
+
name?: string | null;
|
|
3299
|
+
|
|
3300
|
+
type?: 'mcp';
|
|
3301
|
+
}
|
|
3302
|
+
|
|
3303
|
+
/**
|
|
3304
|
+
* Forces the model to call a custom tool.
|
|
3305
|
+
*/
|
|
3306
|
+
export interface OpenAIResponseInputToolChoiceCustomTool {
|
|
3307
|
+
name: string;
|
|
3308
|
+
|
|
3309
|
+
type?: 'custom';
|
|
3310
|
+
}
|
|
3311
|
+
|
|
2852
3312
|
/**
|
|
2853
3313
|
* Web search tool configuration for OpenAI response inputs.
|
|
2854
3314
|
*/
|
|
@@ -2996,7 +3456,15 @@ export interface ResponseCreateParamsBase {
|
|
|
2996
3456
|
|
|
2997
3457
|
conversation?: string | null;
|
|
2998
3458
|
|
|
2999
|
-
include?: Array<
|
|
3459
|
+
include?: Array<
|
|
3460
|
+
| 'web_search_call.action.sources'
|
|
3461
|
+
| 'code_interpreter_call.outputs'
|
|
3462
|
+
| 'computer_call_output.output.image_url'
|
|
3463
|
+
| 'file_search_call.results'
|
|
3464
|
+
| 'message.input_image.image_url'
|
|
3465
|
+
| 'message.output_text.logprobs'
|
|
3466
|
+
| 'reasoning.encrypted_content'
|
|
3467
|
+
> | null;
|
|
3000
3468
|
|
|
3001
3469
|
instructions?: string | null;
|
|
3002
3470
|
|
|
@@ -3026,6 +3494,21 @@ export interface ResponseCreateParamsBase {
|
|
|
3026
3494
|
*/
|
|
3027
3495
|
text?: ResponseCreateParams.Text | null;
|
|
3028
3496
|
|
|
3497
|
+
/**
|
|
3498
|
+
* Constrains the tools available to the model to a pre-defined set.
|
|
3499
|
+
*/
|
|
3500
|
+
tool_choice?:
|
|
3501
|
+
| 'auto'
|
|
3502
|
+
| 'required'
|
|
3503
|
+
| 'none'
|
|
3504
|
+
| ResponseCreateParams.OpenAIResponseInputToolChoiceAllowedTools
|
|
3505
|
+
| ResponseCreateParams.OpenAIResponseInputToolChoiceFileSearch
|
|
3506
|
+
| ResponseCreateParams.OpenAIResponseInputToolChoiceWebSearch
|
|
3507
|
+
| ResponseCreateParams.OpenAIResponseInputToolChoiceFunctionTool
|
|
3508
|
+
| ResponseCreateParams.OpenAIResponseInputToolChoiceMcpTool
|
|
3509
|
+
| ResponseCreateParams.OpenAIResponseInputToolChoiceCustomTool
|
|
3510
|
+
| null;
|
|
3511
|
+
|
|
3029
3512
|
tools?: Array<
|
|
3030
3513
|
| ResponseCreateParams.OpenAIResponseInputToolWebSearch
|
|
3031
3514
|
| ResponseCreateParams.OpenAIResponseInputToolFileSearch
|
|
@@ -3049,7 +3532,7 @@ export namespace ResponseCreateParams {
|
|
|
3049
3532
|
| OpenAIResponseMessageInput.OpenAIResponseInputMessageContentFile
|
|
3050
3533
|
>
|
|
3051
3534
|
| Array<
|
|
3052
|
-
| OpenAIResponseMessageInput.
|
|
3535
|
+
| OpenAIResponseMessageInput.OpenAIResponseOutputMessageContentOutputTextInput
|
|
3053
3536
|
| OpenAIResponseMessageInput.OpenAIResponseContentPartRefusal
|
|
3054
3537
|
>;
|
|
3055
3538
|
|
|
@@ -3100,20 +3583,22 @@ export namespace ResponseCreateParams {
|
|
|
3100
3583
|
type?: 'input_file';
|
|
3101
3584
|
}
|
|
3102
3585
|
|
|
3103
|
-
export interface
|
|
3586
|
+
export interface OpenAIResponseOutputMessageContentOutputTextInput {
|
|
3104
3587
|
text: string;
|
|
3105
3588
|
|
|
3106
3589
|
annotations?: Array<
|
|
3107
|
-
|
|
|
3108
|
-
|
|
|
3109
|
-
|
|
|
3110
|
-
|
|
|
3590
|
+
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationFileCitation
|
|
3591
|
+
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationCitation
|
|
3592
|
+
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationContainerFileCitation
|
|
3593
|
+
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationFilePath
|
|
3111
3594
|
>;
|
|
3112
3595
|
|
|
3596
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextInput.Logprob> | null;
|
|
3597
|
+
|
|
3113
3598
|
type?: 'output_text';
|
|
3114
3599
|
}
|
|
3115
3600
|
|
|
3116
|
-
export namespace
|
|
3601
|
+
export namespace OpenAIResponseOutputMessageContentOutputTextInput {
|
|
3117
3602
|
/**
|
|
3118
3603
|
* File citation annotation for referencing specific files in response content.
|
|
3119
3604
|
*/
|
|
@@ -3163,6 +3648,40 @@ export namespace ResponseCreateParams {
|
|
|
3163
3648
|
|
|
3164
3649
|
type?: 'file_path';
|
|
3165
3650
|
}
|
|
3651
|
+
|
|
3652
|
+
/**
|
|
3653
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
3654
|
+
* response.
|
|
3655
|
+
*
|
|
3656
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
3657
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
3658
|
+
*/
|
|
3659
|
+
export interface Logprob {
|
|
3660
|
+
token: string;
|
|
3661
|
+
|
|
3662
|
+
logprob: number;
|
|
3663
|
+
|
|
3664
|
+
bytes?: Array<number> | null;
|
|
3665
|
+
|
|
3666
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
3667
|
+
}
|
|
3668
|
+
|
|
3669
|
+
export namespace Logprob {
|
|
3670
|
+
/**
|
|
3671
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
3672
|
+
* response.
|
|
3673
|
+
*
|
|
3674
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
3675
|
+
* probability of the token
|
|
3676
|
+
*/
|
|
3677
|
+
export interface TopLogprob {
|
|
3678
|
+
token: string;
|
|
3679
|
+
|
|
3680
|
+
logprob: number;
|
|
3681
|
+
|
|
3682
|
+
bytes?: Array<number> | null;
|
|
3683
|
+
}
|
|
3684
|
+
}
|
|
3166
3685
|
}
|
|
3167
3686
|
|
|
3168
3687
|
/**
|
|
@@ -3340,7 +3859,7 @@ export namespace ResponseCreateParams {
|
|
|
3340
3859
|
| OpenAIResponseMessageInput.OpenAIResponseInputMessageContentFile
|
|
3341
3860
|
>
|
|
3342
3861
|
| Array<
|
|
3343
|
-
| OpenAIResponseMessageInput.
|
|
3862
|
+
| OpenAIResponseMessageInput.OpenAIResponseOutputMessageContentOutputTextInput
|
|
3344
3863
|
| OpenAIResponseMessageInput.OpenAIResponseContentPartRefusal
|
|
3345
3864
|
>;
|
|
3346
3865
|
|
|
@@ -3391,20 +3910,22 @@ export namespace ResponseCreateParams {
|
|
|
3391
3910
|
type?: 'input_file';
|
|
3392
3911
|
}
|
|
3393
3912
|
|
|
3394
|
-
export interface
|
|
3913
|
+
export interface OpenAIResponseOutputMessageContentOutputTextInput {
|
|
3395
3914
|
text: string;
|
|
3396
3915
|
|
|
3397
3916
|
annotations?: Array<
|
|
3398
|
-
|
|
|
3399
|
-
|
|
|
3400
|
-
|
|
|
3401
|
-
|
|
|
3917
|
+
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationFileCitation
|
|
3918
|
+
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationCitation
|
|
3919
|
+
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationContainerFileCitation
|
|
3920
|
+
| OpenAIResponseOutputMessageContentOutputTextInput.OpenAIResponseAnnotationFilePath
|
|
3402
3921
|
>;
|
|
3403
3922
|
|
|
3923
|
+
logprobs?: Array<OpenAIResponseOutputMessageContentOutputTextInput.Logprob> | null;
|
|
3924
|
+
|
|
3404
3925
|
type?: 'output_text';
|
|
3405
3926
|
}
|
|
3406
3927
|
|
|
3407
|
-
export namespace
|
|
3928
|
+
export namespace OpenAIResponseOutputMessageContentOutputTextInput {
|
|
3408
3929
|
/**
|
|
3409
3930
|
* File citation annotation for referencing specific files in response content.
|
|
3410
3931
|
*/
|
|
@@ -3454,6 +3975,40 @@ export namespace ResponseCreateParams {
|
|
|
3454
3975
|
|
|
3455
3976
|
type?: 'file_path';
|
|
3456
3977
|
}
|
|
3978
|
+
|
|
3979
|
+
/**
|
|
3980
|
+
* The log probability for a token from an OpenAI-compatible chat completion
|
|
3981
|
+
* response.
|
|
3982
|
+
*
|
|
3983
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
3984
|
+
* probability of the token :top_logprobs: The top log probabilities for the token
|
|
3985
|
+
*/
|
|
3986
|
+
export interface Logprob {
|
|
3987
|
+
token: string;
|
|
3988
|
+
|
|
3989
|
+
logprob: number;
|
|
3990
|
+
|
|
3991
|
+
bytes?: Array<number> | null;
|
|
3992
|
+
|
|
3993
|
+
top_logprobs?: Array<Logprob.TopLogprob> | null;
|
|
3994
|
+
}
|
|
3995
|
+
|
|
3996
|
+
export namespace Logprob {
|
|
3997
|
+
/**
|
|
3998
|
+
* The top log probability for a token from an OpenAI-compatible chat completion
|
|
3999
|
+
* response.
|
|
4000
|
+
*
|
|
4001
|
+
* :token: The token :bytes: (Optional) The bytes for the token :logprob: The log
|
|
4002
|
+
* probability of the token
|
|
4003
|
+
*/
|
|
4004
|
+
export interface TopLogprob {
|
|
4005
|
+
token: string;
|
|
4006
|
+
|
|
4007
|
+
logprob: number;
|
|
4008
|
+
|
|
4009
|
+
bytes?: Array<number> | null;
|
|
4010
|
+
}
|
|
4011
|
+
}
|
|
3457
4012
|
}
|
|
3458
4013
|
|
|
3459
4014
|
/**
|
|
@@ -3548,6 +4103,60 @@ export namespace ResponseCreateParams {
|
|
|
3548
4103
|
}
|
|
3549
4104
|
}
|
|
3550
4105
|
|
|
4106
|
+
/**
|
|
4107
|
+
* Constrains the tools available to the model to a pre-defined set.
|
|
4108
|
+
*/
|
|
4109
|
+
export interface OpenAIResponseInputToolChoiceAllowedTools {
|
|
4110
|
+
tools: Array<{ [key: string]: string }>;
|
|
4111
|
+
|
|
4112
|
+
mode?: 'auto' | 'required';
|
|
4113
|
+
|
|
4114
|
+
type?: 'allowed_tools';
|
|
4115
|
+
}
|
|
4116
|
+
|
|
4117
|
+
/**
|
|
4118
|
+
* Indicates that the model should use file search to generate a response.
|
|
4119
|
+
*/
|
|
4120
|
+
export interface OpenAIResponseInputToolChoiceFileSearch {
|
|
4121
|
+
type?: 'file_search';
|
|
4122
|
+
}
|
|
4123
|
+
|
|
4124
|
+
/**
|
|
4125
|
+
* Indicates that the model should use web search to generate a response
|
|
4126
|
+
*/
|
|
4127
|
+
export interface OpenAIResponseInputToolChoiceWebSearch {
|
|
4128
|
+
type?: 'web_search' | 'web_search_preview' | 'web_search_preview_2025_03_11' | 'web_search_2025_08_26';
|
|
4129
|
+
}
|
|
4130
|
+
|
|
4131
|
+
/**
|
|
4132
|
+
* Forces the model to call a specific function.
|
|
4133
|
+
*/
|
|
4134
|
+
export interface OpenAIResponseInputToolChoiceFunctionTool {
|
|
4135
|
+
name: string;
|
|
4136
|
+
|
|
4137
|
+
type?: 'function';
|
|
4138
|
+
}
|
|
4139
|
+
|
|
4140
|
+
/**
|
|
4141
|
+
* Forces the model to call a specific tool on a remote MCP server
|
|
4142
|
+
*/
|
|
4143
|
+
export interface OpenAIResponseInputToolChoiceMcpTool {
|
|
4144
|
+
server_label: string;
|
|
4145
|
+
|
|
4146
|
+
name?: string | null;
|
|
4147
|
+
|
|
4148
|
+
type?: 'mcp';
|
|
4149
|
+
}
|
|
4150
|
+
|
|
4151
|
+
/**
|
|
4152
|
+
* Forces the model to call a custom tool.
|
|
4153
|
+
*/
|
|
4154
|
+
export interface OpenAIResponseInputToolChoiceCustomTool {
|
|
4155
|
+
name: string;
|
|
4156
|
+
|
|
4157
|
+
type?: 'custom';
|
|
4158
|
+
}
|
|
4159
|
+
|
|
3551
4160
|
/**
|
|
3552
4161
|
* Web search tool configuration for OpenAI response inputs.
|
|
3553
4162
|
*/
|