llama-stack-client 0.2.10 → 0.2.11-rc1
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/index.d.mts +9 -0
- package/index.d.ts +9 -0
- package/index.d.ts.map +1 -1
- package/index.js +9 -0
- package/index.js.map +1 -1
- package/index.mjs +9 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resource.d.ts +1 -1
- package/resource.d.ts.map +1 -1
- package/resource.js.map +1 -1
- package/resource.mjs.map +1 -1
- package/resources/completions.d.ts +4 -0
- package/resources/completions.d.ts.map +1 -1
- package/resources/datasets.d.ts +4 -0
- package/resources/datasets.d.ts.map +1 -1
- package/resources/embeddings.d.ts +94 -0
- package/resources/embeddings.d.ts.map +1 -0
- package/resources/embeddings.js +16 -0
- package/resources/embeddings.js.map +1 -0
- package/resources/embeddings.mjs +12 -0
- package/resources/embeddings.mjs.map +1 -0
- package/resources/files.d.ts +130 -0
- package/resources/files.d.ts.map +1 -0
- package/resources/files.js +68 -0
- package/resources/files.js.map +1 -0
- package/resources/files.mjs +41 -0
- package/resources/files.mjs.map +1 -0
- package/resources/index.d.ts +3 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/responses/input-items.d.ts +8 -1
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/responses.d.ts +391 -6
- 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/shared.d.ts +37 -1
- package/resources/shared.d.ts.map +1 -1
- package/resources/vector-io.d.ts +29 -3
- package/resources/vector-io.d.ts.map +1 -1
- package/resources/vector-stores/files.d.ts +74 -0
- package/resources/vector-stores/files.d.ts.map +1 -0
- package/resources/vector-stores/files.js +15 -0
- package/resources/vector-stores/files.js.map +1 -0
- package/resources/vector-stores/files.mjs +11 -0
- package/resources/vector-stores/files.mjs.map +1 -0
- package/resources/vector-stores/index.d.ts +3 -0
- package/resources/vector-stores/index.d.ts.map +1 -0
- package/resources/vector-stores/index.js +9 -0
- package/resources/vector-stores/index.js.map +1 -0
- package/resources/vector-stores/index.mjs +4 -0
- package/resources/vector-stores/index.mjs.map +1 -0
- package/resources/vector-stores/vector-stores.d.ts +198 -0
- package/resources/vector-stores/vector-stores.d.ts.map +1 -0
- package/resources/vector-stores/vector-stores.js +77 -0
- package/resources/vector-stores/vector-stores.js.map +1 -0
- package/resources/vector-stores/vector-stores.mjs +50 -0
- package/resources/vector-stores/vector-stores.mjs.map +1 -0
- package/resources/vector-stores.d.ts +2 -0
- package/resources/vector-stores.d.ts.map +1 -0
- package/resources/vector-stores.js +19 -0
- package/resources/vector-stores.js.map +1 -0
- package/resources/vector-stores.mjs +3 -0
- package/resources/vector-stores.mjs.map +1 -0
- package/src/index.ts +55 -0
- package/src/resource.ts +1 -1
- package/src/resources/completions.ts +5 -0
- package/src/resources/datasets.ts +5 -0
- package/src/resources/embeddings.ts +119 -0
- package/src/resources/files.ts +184 -0
- package/src/resources/index.ts +21 -0
- package/src/resources/responses/input-items.ts +13 -0
- package/src/resources/responses/responses.ts +616 -1
- package/src/resources/shared.ts +42 -1
- package/src/resources/vector-io.ts +31 -3
- package/src/resources/vector-stores/files.ts +111 -0
- package/src/resources/vector-stores/index.ts +14 -0
- package/src/resources/vector-stores/vector-stores.ts +306 -0
- package/src/resources/vector-stores.ts +3 -0
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -70,6 +70,7 @@ export interface ResponseObject {
|
|
|
70
70
|
output: Array<
|
|
71
71
|
| ResponseObject.OpenAIResponseMessage
|
|
72
72
|
| ResponseObject.OpenAIResponseOutputMessageWebSearchToolCall
|
|
73
|
+
| ResponseObject.OpenAIResponseOutputMessageFileSearchToolCall
|
|
73
74
|
| ResponseObject.OpenAIResponseOutputMessageFunctionToolCall
|
|
74
75
|
| ResponseObject.OpenAIResponseOutputMessageMcpCall
|
|
75
76
|
| ResponseObject.OpenAIResponseOutputMessageMcpListTools
|
|
@@ -79,6 +80,8 @@ export interface ResponseObject {
|
|
|
79
80
|
|
|
80
81
|
status: string;
|
|
81
82
|
|
|
83
|
+
text: ResponseObject.Text;
|
|
84
|
+
|
|
82
85
|
error?: ResponseObject.Error;
|
|
83
86
|
|
|
84
87
|
previous_response_id?: string;
|
|
@@ -146,6 +149,18 @@ export namespace ResponseObject {
|
|
|
146
149
|
type: 'web_search_call';
|
|
147
150
|
}
|
|
148
151
|
|
|
152
|
+
export interface OpenAIResponseOutputMessageFileSearchToolCall {
|
|
153
|
+
id: string;
|
|
154
|
+
|
|
155
|
+
queries: Array<string>;
|
|
156
|
+
|
|
157
|
+
status: string;
|
|
158
|
+
|
|
159
|
+
type: 'file_search_call';
|
|
160
|
+
|
|
161
|
+
results?: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
162
|
+
}
|
|
163
|
+
|
|
149
164
|
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
150
165
|
arguments: string;
|
|
151
166
|
|
|
@@ -196,6 +211,47 @@ export namespace ResponseObject {
|
|
|
196
211
|
}
|
|
197
212
|
}
|
|
198
213
|
|
|
214
|
+
export interface Text {
|
|
215
|
+
/**
|
|
216
|
+
* Configuration for Responses API text format.
|
|
217
|
+
*/
|
|
218
|
+
format?: Text.Format;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export namespace Text {
|
|
222
|
+
/**
|
|
223
|
+
* Configuration for Responses API text format.
|
|
224
|
+
*/
|
|
225
|
+
export interface Format {
|
|
226
|
+
/**
|
|
227
|
+
* Must be "text", "json_schema", or "json_object" to identify the format type
|
|
228
|
+
*/
|
|
229
|
+
type: 'text' | 'json_schema' | 'json_object';
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* (Optional) A description of the response format. Only used for json_schema.
|
|
233
|
+
*/
|
|
234
|
+
description?: string;
|
|
235
|
+
|
|
236
|
+
/**
|
|
237
|
+
* The name of the response format. Only used for json_schema.
|
|
238
|
+
*/
|
|
239
|
+
name?: string;
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* The JSON schema the response should conform to. In a Python SDK, this is often a
|
|
243
|
+
* `pydantic` model. Only used for json_schema.
|
|
244
|
+
*/
|
|
245
|
+
schema?: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
246
|
+
|
|
247
|
+
/**
|
|
248
|
+
* (Optional) Whether to strictly enforce the JSON schema. If true, the response
|
|
249
|
+
* must match the schema exactly. Only used for json_schema.
|
|
250
|
+
*/
|
|
251
|
+
strict?: boolean;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
199
255
|
export interface Error {
|
|
200
256
|
code: string;
|
|
201
257
|
|
|
@@ -205,7 +261,23 @@ export namespace ResponseObject {
|
|
|
205
261
|
|
|
206
262
|
export type ResponseObjectStream =
|
|
207
263
|
| ResponseObjectStream.OpenAIResponseObjectStreamResponseCreated
|
|
264
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseOutputItemAdded
|
|
265
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseOutputItemDone
|
|
208
266
|
| ResponseObjectStream.OpenAIResponseObjectStreamResponseOutputTextDelta
|
|
267
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseOutputTextDone
|
|
268
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseFunctionCallArgumentsDelta
|
|
269
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseFunctionCallArgumentsDone
|
|
270
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseWebSearchCallInProgress
|
|
271
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseWebSearchCallSearching
|
|
272
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseWebSearchCallCompleted
|
|
273
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseMcpListToolsInProgress
|
|
274
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseMcpListToolsFailed
|
|
275
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseMcpListToolsCompleted
|
|
276
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseMcpCallArgumentsDelta
|
|
277
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseMcpCallArgumentsDone
|
|
278
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseMcpCallInProgress
|
|
279
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseMcpCallFailed
|
|
280
|
+
| ResponseObjectStream.OpenAIResponseObjectStreamResponseMcpCallCompleted
|
|
209
281
|
| ResponseObjectStream.OpenAIResponseObjectStreamResponseCompleted;
|
|
210
282
|
|
|
211
283
|
export namespace ResponseObjectStream {
|
|
@@ -215,6 +287,286 @@ export namespace ResponseObjectStream {
|
|
|
215
287
|
type: 'response.created';
|
|
216
288
|
}
|
|
217
289
|
|
|
290
|
+
export interface OpenAIResponseObjectStreamResponseOutputItemAdded {
|
|
291
|
+
/**
|
|
292
|
+
* Corresponds to the various Message types in the Responses API. They are all
|
|
293
|
+
* under one type because the Responses API gives them all the same "type" value,
|
|
294
|
+
* and there is no way to tell them apart in certain scenarios.
|
|
295
|
+
*/
|
|
296
|
+
item:
|
|
297
|
+
| OpenAIResponseObjectStreamResponseOutputItemAdded.OpenAIResponseMessage
|
|
298
|
+
| OpenAIResponseObjectStreamResponseOutputItemAdded.OpenAIResponseOutputMessageWebSearchToolCall
|
|
299
|
+
| OpenAIResponseObjectStreamResponseOutputItemAdded.OpenAIResponseOutputMessageFileSearchToolCall
|
|
300
|
+
| OpenAIResponseObjectStreamResponseOutputItemAdded.OpenAIResponseOutputMessageFunctionToolCall
|
|
301
|
+
| OpenAIResponseObjectStreamResponseOutputItemAdded.OpenAIResponseOutputMessageMcpCall
|
|
302
|
+
| OpenAIResponseObjectStreamResponseOutputItemAdded.OpenAIResponseOutputMessageMcpListTools;
|
|
303
|
+
|
|
304
|
+
output_index: number;
|
|
305
|
+
|
|
306
|
+
response_id: string;
|
|
307
|
+
|
|
308
|
+
sequence_number: number;
|
|
309
|
+
|
|
310
|
+
type: 'response.output_item.added';
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
export namespace OpenAIResponseObjectStreamResponseOutputItemAdded {
|
|
314
|
+
/**
|
|
315
|
+
* Corresponds to the various Message types in the Responses API. They are all
|
|
316
|
+
* under one type because the Responses API gives them all the same "type" value,
|
|
317
|
+
* and there is no way to tell them apart in certain scenarios.
|
|
318
|
+
*/
|
|
319
|
+
export interface OpenAIResponseMessage {
|
|
320
|
+
content:
|
|
321
|
+
| string
|
|
322
|
+
| Array<
|
|
323
|
+
| OpenAIResponseMessage.OpenAIResponseInputMessageContentText
|
|
324
|
+
| OpenAIResponseMessage.OpenAIResponseInputMessageContentImage
|
|
325
|
+
>
|
|
326
|
+
| Array<OpenAIResponseMessage.UnionMember2>;
|
|
327
|
+
|
|
328
|
+
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
329
|
+
|
|
330
|
+
type: 'message';
|
|
331
|
+
|
|
332
|
+
id?: string;
|
|
333
|
+
|
|
334
|
+
status?: string;
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
export namespace OpenAIResponseMessage {
|
|
338
|
+
export interface OpenAIResponseInputMessageContentText {
|
|
339
|
+
text: string;
|
|
340
|
+
|
|
341
|
+
type: 'input_text';
|
|
342
|
+
}
|
|
343
|
+
|
|
344
|
+
export interface OpenAIResponseInputMessageContentImage {
|
|
345
|
+
detail: 'low' | 'high' | 'auto';
|
|
346
|
+
|
|
347
|
+
type: 'input_image';
|
|
348
|
+
|
|
349
|
+
image_url?: string;
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
export interface UnionMember2 {
|
|
353
|
+
text: string;
|
|
354
|
+
|
|
355
|
+
type: 'output_text';
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
export interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
360
|
+
id: string;
|
|
361
|
+
|
|
362
|
+
status: string;
|
|
363
|
+
|
|
364
|
+
type: 'web_search_call';
|
|
365
|
+
}
|
|
366
|
+
|
|
367
|
+
export interface OpenAIResponseOutputMessageFileSearchToolCall {
|
|
368
|
+
id: string;
|
|
369
|
+
|
|
370
|
+
queries: Array<string>;
|
|
371
|
+
|
|
372
|
+
status: string;
|
|
373
|
+
|
|
374
|
+
type: 'file_search_call';
|
|
375
|
+
|
|
376
|
+
results?: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
380
|
+
arguments: string;
|
|
381
|
+
|
|
382
|
+
call_id: string;
|
|
383
|
+
|
|
384
|
+
name: string;
|
|
385
|
+
|
|
386
|
+
type: 'function_call';
|
|
387
|
+
|
|
388
|
+
id?: string;
|
|
389
|
+
|
|
390
|
+
status?: string;
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
export interface OpenAIResponseOutputMessageMcpCall {
|
|
394
|
+
id: string;
|
|
395
|
+
|
|
396
|
+
arguments: string;
|
|
397
|
+
|
|
398
|
+
name: string;
|
|
399
|
+
|
|
400
|
+
server_label: string;
|
|
401
|
+
|
|
402
|
+
type: 'mcp_call';
|
|
403
|
+
|
|
404
|
+
error?: string;
|
|
405
|
+
|
|
406
|
+
output?: string;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
export interface OpenAIResponseOutputMessageMcpListTools {
|
|
410
|
+
id: string;
|
|
411
|
+
|
|
412
|
+
server_label: string;
|
|
413
|
+
|
|
414
|
+
tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
|
|
415
|
+
|
|
416
|
+
type: 'mcp_list_tools';
|
|
417
|
+
}
|
|
418
|
+
|
|
419
|
+
export namespace OpenAIResponseOutputMessageMcpListTools {
|
|
420
|
+
export interface Tool {
|
|
421
|
+
input_schema: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
422
|
+
|
|
423
|
+
name: string;
|
|
424
|
+
|
|
425
|
+
description?: string;
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
|
|
430
|
+
export interface OpenAIResponseObjectStreamResponseOutputItemDone {
|
|
431
|
+
/**
|
|
432
|
+
* Corresponds to the various Message types in the Responses API. They are all
|
|
433
|
+
* under one type because the Responses API gives them all the same "type" value,
|
|
434
|
+
* and there is no way to tell them apart in certain scenarios.
|
|
435
|
+
*/
|
|
436
|
+
item:
|
|
437
|
+
| OpenAIResponseObjectStreamResponseOutputItemDone.OpenAIResponseMessage
|
|
438
|
+
| OpenAIResponseObjectStreamResponseOutputItemDone.OpenAIResponseOutputMessageWebSearchToolCall
|
|
439
|
+
| OpenAIResponseObjectStreamResponseOutputItemDone.OpenAIResponseOutputMessageFileSearchToolCall
|
|
440
|
+
| OpenAIResponseObjectStreamResponseOutputItemDone.OpenAIResponseOutputMessageFunctionToolCall
|
|
441
|
+
| OpenAIResponseObjectStreamResponseOutputItemDone.OpenAIResponseOutputMessageMcpCall
|
|
442
|
+
| OpenAIResponseObjectStreamResponseOutputItemDone.OpenAIResponseOutputMessageMcpListTools;
|
|
443
|
+
|
|
444
|
+
output_index: number;
|
|
445
|
+
|
|
446
|
+
response_id: string;
|
|
447
|
+
|
|
448
|
+
sequence_number: number;
|
|
449
|
+
|
|
450
|
+
type: 'response.output_item.done';
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
export namespace OpenAIResponseObjectStreamResponseOutputItemDone {
|
|
454
|
+
/**
|
|
455
|
+
* Corresponds to the various Message types in the Responses API. They are all
|
|
456
|
+
* under one type because the Responses API gives them all the same "type" value,
|
|
457
|
+
* and there is no way to tell them apart in certain scenarios.
|
|
458
|
+
*/
|
|
459
|
+
export interface OpenAIResponseMessage {
|
|
460
|
+
content:
|
|
461
|
+
| string
|
|
462
|
+
| Array<
|
|
463
|
+
| OpenAIResponseMessage.OpenAIResponseInputMessageContentText
|
|
464
|
+
| OpenAIResponseMessage.OpenAIResponseInputMessageContentImage
|
|
465
|
+
>
|
|
466
|
+
| Array<OpenAIResponseMessage.UnionMember2>;
|
|
467
|
+
|
|
468
|
+
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
469
|
+
|
|
470
|
+
type: 'message';
|
|
471
|
+
|
|
472
|
+
id?: string;
|
|
473
|
+
|
|
474
|
+
status?: string;
|
|
475
|
+
}
|
|
476
|
+
|
|
477
|
+
export namespace OpenAIResponseMessage {
|
|
478
|
+
export interface OpenAIResponseInputMessageContentText {
|
|
479
|
+
text: string;
|
|
480
|
+
|
|
481
|
+
type: 'input_text';
|
|
482
|
+
}
|
|
483
|
+
|
|
484
|
+
export interface OpenAIResponseInputMessageContentImage {
|
|
485
|
+
detail: 'low' | 'high' | 'auto';
|
|
486
|
+
|
|
487
|
+
type: 'input_image';
|
|
488
|
+
|
|
489
|
+
image_url?: string;
|
|
490
|
+
}
|
|
491
|
+
|
|
492
|
+
export interface UnionMember2 {
|
|
493
|
+
text: string;
|
|
494
|
+
|
|
495
|
+
type: 'output_text';
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
export interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
500
|
+
id: string;
|
|
501
|
+
|
|
502
|
+
status: string;
|
|
503
|
+
|
|
504
|
+
type: 'web_search_call';
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
export interface OpenAIResponseOutputMessageFileSearchToolCall {
|
|
508
|
+
id: string;
|
|
509
|
+
|
|
510
|
+
queries: Array<string>;
|
|
511
|
+
|
|
512
|
+
status: string;
|
|
513
|
+
|
|
514
|
+
type: 'file_search_call';
|
|
515
|
+
|
|
516
|
+
results?: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
520
|
+
arguments: string;
|
|
521
|
+
|
|
522
|
+
call_id: string;
|
|
523
|
+
|
|
524
|
+
name: string;
|
|
525
|
+
|
|
526
|
+
type: 'function_call';
|
|
527
|
+
|
|
528
|
+
id?: string;
|
|
529
|
+
|
|
530
|
+
status?: string;
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
export interface OpenAIResponseOutputMessageMcpCall {
|
|
534
|
+
id: string;
|
|
535
|
+
|
|
536
|
+
arguments: string;
|
|
537
|
+
|
|
538
|
+
name: string;
|
|
539
|
+
|
|
540
|
+
server_label: string;
|
|
541
|
+
|
|
542
|
+
type: 'mcp_call';
|
|
543
|
+
|
|
544
|
+
error?: string;
|
|
545
|
+
|
|
546
|
+
output?: string;
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
export interface OpenAIResponseOutputMessageMcpListTools {
|
|
550
|
+
id: string;
|
|
551
|
+
|
|
552
|
+
server_label: string;
|
|
553
|
+
|
|
554
|
+
tools: Array<OpenAIResponseOutputMessageMcpListTools.Tool>;
|
|
555
|
+
|
|
556
|
+
type: 'mcp_list_tools';
|
|
557
|
+
}
|
|
558
|
+
|
|
559
|
+
export namespace OpenAIResponseOutputMessageMcpListTools {
|
|
560
|
+
export interface Tool {
|
|
561
|
+
input_schema: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
562
|
+
|
|
563
|
+
name: string;
|
|
564
|
+
|
|
565
|
+
description?: string;
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
|
|
218
570
|
export interface OpenAIResponseObjectStreamResponseOutputTextDelta {
|
|
219
571
|
content_index: number;
|
|
220
572
|
|
|
@@ -229,6 +581,138 @@ export namespace ResponseObjectStream {
|
|
|
229
581
|
type: 'response.output_text.delta';
|
|
230
582
|
}
|
|
231
583
|
|
|
584
|
+
export interface OpenAIResponseObjectStreamResponseOutputTextDone {
|
|
585
|
+
content_index: number;
|
|
586
|
+
|
|
587
|
+
item_id: string;
|
|
588
|
+
|
|
589
|
+
output_index: number;
|
|
590
|
+
|
|
591
|
+
sequence_number: number;
|
|
592
|
+
|
|
593
|
+
text: string;
|
|
594
|
+
|
|
595
|
+
type: 'response.output_text.done';
|
|
596
|
+
}
|
|
597
|
+
|
|
598
|
+
export interface OpenAIResponseObjectStreamResponseFunctionCallArgumentsDelta {
|
|
599
|
+
delta: string;
|
|
600
|
+
|
|
601
|
+
item_id: string;
|
|
602
|
+
|
|
603
|
+
output_index: number;
|
|
604
|
+
|
|
605
|
+
sequence_number: number;
|
|
606
|
+
|
|
607
|
+
type: 'response.function_call_arguments.delta';
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
export interface OpenAIResponseObjectStreamResponseFunctionCallArgumentsDone {
|
|
611
|
+
arguments: string;
|
|
612
|
+
|
|
613
|
+
item_id: string;
|
|
614
|
+
|
|
615
|
+
output_index: number;
|
|
616
|
+
|
|
617
|
+
sequence_number: number;
|
|
618
|
+
|
|
619
|
+
type: 'response.function_call_arguments.done';
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export interface OpenAIResponseObjectStreamResponseWebSearchCallInProgress {
|
|
623
|
+
item_id: string;
|
|
624
|
+
|
|
625
|
+
output_index: number;
|
|
626
|
+
|
|
627
|
+
sequence_number: number;
|
|
628
|
+
|
|
629
|
+
type: 'response.web_search_call.in_progress';
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
export interface OpenAIResponseObjectStreamResponseWebSearchCallSearching {
|
|
633
|
+
item_id: string;
|
|
634
|
+
|
|
635
|
+
output_index: number;
|
|
636
|
+
|
|
637
|
+
sequence_number: number;
|
|
638
|
+
|
|
639
|
+
type: 'response.web_search_call.searching';
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
export interface OpenAIResponseObjectStreamResponseWebSearchCallCompleted {
|
|
643
|
+
item_id: string;
|
|
644
|
+
|
|
645
|
+
output_index: number;
|
|
646
|
+
|
|
647
|
+
sequence_number: number;
|
|
648
|
+
|
|
649
|
+
type: 'response.web_search_call.completed';
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
export interface OpenAIResponseObjectStreamResponseMcpListToolsInProgress {
|
|
653
|
+
sequence_number: number;
|
|
654
|
+
|
|
655
|
+
type: 'response.mcp_list_tools.in_progress';
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
export interface OpenAIResponseObjectStreamResponseMcpListToolsFailed {
|
|
659
|
+
sequence_number: number;
|
|
660
|
+
|
|
661
|
+
type: 'response.mcp_list_tools.failed';
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
export interface OpenAIResponseObjectStreamResponseMcpListToolsCompleted {
|
|
665
|
+
sequence_number: number;
|
|
666
|
+
|
|
667
|
+
type: 'response.mcp_list_tools.completed';
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
export interface OpenAIResponseObjectStreamResponseMcpCallArgumentsDelta {
|
|
671
|
+
delta: string;
|
|
672
|
+
|
|
673
|
+
item_id: string;
|
|
674
|
+
|
|
675
|
+
output_index: number;
|
|
676
|
+
|
|
677
|
+
sequence_number: number;
|
|
678
|
+
|
|
679
|
+
type: 'response.mcp_call.arguments.delta';
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
export interface OpenAIResponseObjectStreamResponseMcpCallArgumentsDone {
|
|
683
|
+
arguments: string;
|
|
684
|
+
|
|
685
|
+
item_id: string;
|
|
686
|
+
|
|
687
|
+
output_index: number;
|
|
688
|
+
|
|
689
|
+
sequence_number: number;
|
|
690
|
+
|
|
691
|
+
type: 'response.mcp_call.arguments.done';
|
|
692
|
+
}
|
|
693
|
+
|
|
694
|
+
export interface OpenAIResponseObjectStreamResponseMcpCallInProgress {
|
|
695
|
+
item_id: string;
|
|
696
|
+
|
|
697
|
+
output_index: number;
|
|
698
|
+
|
|
699
|
+
sequence_number: number;
|
|
700
|
+
|
|
701
|
+
type: 'response.mcp_call.in_progress';
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
export interface OpenAIResponseObjectStreamResponseMcpCallFailed {
|
|
705
|
+
sequence_number: number;
|
|
706
|
+
|
|
707
|
+
type: 'response.mcp_call.failed';
|
|
708
|
+
}
|
|
709
|
+
|
|
710
|
+
export interface OpenAIResponseObjectStreamResponseMcpCallCompleted {
|
|
711
|
+
sequence_number: number;
|
|
712
|
+
|
|
713
|
+
type: 'response.mcp_call.completed';
|
|
714
|
+
}
|
|
715
|
+
|
|
232
716
|
export interface OpenAIResponseObjectStreamResponseCompleted {
|
|
233
717
|
response: ResponsesAPI.ResponseObject;
|
|
234
718
|
|
|
@@ -256,6 +740,7 @@ export namespace ResponseListResponse {
|
|
|
256
740
|
|
|
257
741
|
input: Array<
|
|
258
742
|
| Data.OpenAIResponseOutputMessageWebSearchToolCall
|
|
743
|
+
| Data.OpenAIResponseOutputMessageFileSearchToolCall
|
|
259
744
|
| Data.OpenAIResponseOutputMessageFunctionToolCall
|
|
260
745
|
| Data.OpenAIResponseInputFunctionToolCallOutput
|
|
261
746
|
| Data.OpenAIResponseMessage
|
|
@@ -268,6 +753,7 @@ export namespace ResponseListResponse {
|
|
|
268
753
|
output: Array<
|
|
269
754
|
| Data.OpenAIResponseMessage
|
|
270
755
|
| Data.OpenAIResponseOutputMessageWebSearchToolCall
|
|
756
|
+
| Data.OpenAIResponseOutputMessageFileSearchToolCall
|
|
271
757
|
| Data.OpenAIResponseOutputMessageFunctionToolCall
|
|
272
758
|
| Data.OpenAIResponseOutputMessageMcpCall
|
|
273
759
|
| Data.OpenAIResponseOutputMessageMcpListTools
|
|
@@ -277,6 +763,8 @@ export namespace ResponseListResponse {
|
|
|
277
763
|
|
|
278
764
|
status: string;
|
|
279
765
|
|
|
766
|
+
text: Data.Text;
|
|
767
|
+
|
|
280
768
|
error?: Data.Error;
|
|
281
769
|
|
|
282
770
|
previous_response_id?: string;
|
|
@@ -299,6 +787,18 @@ export namespace ResponseListResponse {
|
|
|
299
787
|
type: 'web_search_call';
|
|
300
788
|
}
|
|
301
789
|
|
|
790
|
+
export interface OpenAIResponseOutputMessageFileSearchToolCall {
|
|
791
|
+
id: string;
|
|
792
|
+
|
|
793
|
+
queries: Array<string>;
|
|
794
|
+
|
|
795
|
+
status: string;
|
|
796
|
+
|
|
797
|
+
type: 'file_search_call';
|
|
798
|
+
|
|
799
|
+
results?: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
800
|
+
}
|
|
801
|
+
|
|
302
802
|
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
303
803
|
arguments: string;
|
|
304
804
|
|
|
@@ -427,6 +927,18 @@ export namespace ResponseListResponse {
|
|
|
427
927
|
type: 'web_search_call';
|
|
428
928
|
}
|
|
429
929
|
|
|
930
|
+
export interface OpenAIResponseOutputMessageFileSearchToolCall {
|
|
931
|
+
id: string;
|
|
932
|
+
|
|
933
|
+
queries: Array<string>;
|
|
934
|
+
|
|
935
|
+
status: string;
|
|
936
|
+
|
|
937
|
+
type: 'file_search_call';
|
|
938
|
+
|
|
939
|
+
results?: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
940
|
+
}
|
|
941
|
+
|
|
430
942
|
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
431
943
|
arguments: string;
|
|
432
944
|
|
|
@@ -477,6 +989,47 @@ export namespace ResponseListResponse {
|
|
|
477
989
|
}
|
|
478
990
|
}
|
|
479
991
|
|
|
992
|
+
export interface Text {
|
|
993
|
+
/**
|
|
994
|
+
* Configuration for Responses API text format.
|
|
995
|
+
*/
|
|
996
|
+
format?: Text.Format;
|
|
997
|
+
}
|
|
998
|
+
|
|
999
|
+
export namespace Text {
|
|
1000
|
+
/**
|
|
1001
|
+
* Configuration for Responses API text format.
|
|
1002
|
+
*/
|
|
1003
|
+
export interface Format {
|
|
1004
|
+
/**
|
|
1005
|
+
* Must be "text", "json_schema", or "json_object" to identify the format type
|
|
1006
|
+
*/
|
|
1007
|
+
type: 'text' | 'json_schema' | 'json_object';
|
|
1008
|
+
|
|
1009
|
+
/**
|
|
1010
|
+
* (Optional) A description of the response format. Only used for json_schema.
|
|
1011
|
+
*/
|
|
1012
|
+
description?: string;
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* The name of the response format. Only used for json_schema.
|
|
1016
|
+
*/
|
|
1017
|
+
name?: string;
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* The JSON schema the response should conform to. In a Python SDK, this is often a
|
|
1021
|
+
* `pydantic` model. Only used for json_schema.
|
|
1022
|
+
*/
|
|
1023
|
+
schema?: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
1024
|
+
|
|
1025
|
+
/**
|
|
1026
|
+
* (Optional) Whether to strictly enforce the JSON schema. If true, the response
|
|
1027
|
+
* must match the schema exactly. Only used for json_schema.
|
|
1028
|
+
*/
|
|
1029
|
+
strict?: boolean;
|
|
1030
|
+
}
|
|
1031
|
+
}
|
|
1032
|
+
|
|
480
1033
|
export interface Error {
|
|
481
1034
|
code: string;
|
|
482
1035
|
|
|
@@ -495,6 +1048,7 @@ export interface ResponseCreateParamsBase {
|
|
|
495
1048
|
| string
|
|
496
1049
|
| Array<
|
|
497
1050
|
| ResponseCreateParams.OpenAIResponseOutputMessageWebSearchToolCall
|
|
1051
|
+
| ResponseCreateParams.OpenAIResponseOutputMessageFileSearchToolCall
|
|
498
1052
|
| ResponseCreateParams.OpenAIResponseOutputMessageFunctionToolCall
|
|
499
1053
|
| ResponseCreateParams.OpenAIResponseInputFunctionToolCallOutput
|
|
500
1054
|
| ResponseCreateParams.OpenAIResponseMessage
|
|
@@ -507,6 +1061,8 @@ export interface ResponseCreateParamsBase {
|
|
|
507
1061
|
|
|
508
1062
|
instructions?: string;
|
|
509
1063
|
|
|
1064
|
+
max_infer_iters?: number;
|
|
1065
|
+
|
|
510
1066
|
/**
|
|
511
1067
|
* (Optional) if specified, the new response will be a continuation of the previous
|
|
512
1068
|
* response. This can be used to easily fork-off new responses from existing
|
|
@@ -520,6 +1076,8 @@ export interface ResponseCreateParamsBase {
|
|
|
520
1076
|
|
|
521
1077
|
temperature?: number;
|
|
522
1078
|
|
|
1079
|
+
text?: ResponseCreateParams.Text;
|
|
1080
|
+
|
|
523
1081
|
tools?: Array<
|
|
524
1082
|
| ResponseCreateParams.OpenAIResponseInputToolWebSearch
|
|
525
1083
|
| ResponseCreateParams.OpenAIResponseInputToolFileSearch
|
|
@@ -537,6 +1095,18 @@ export namespace ResponseCreateParams {
|
|
|
537
1095
|
type: 'web_search_call';
|
|
538
1096
|
}
|
|
539
1097
|
|
|
1098
|
+
export interface OpenAIResponseOutputMessageFileSearchToolCall {
|
|
1099
|
+
id: string;
|
|
1100
|
+
|
|
1101
|
+
queries: Array<string>;
|
|
1102
|
+
|
|
1103
|
+
status: string;
|
|
1104
|
+
|
|
1105
|
+
type: 'file_search_call';
|
|
1106
|
+
|
|
1107
|
+
results?: Array<Record<string, boolean | number | string | Array<unknown> | unknown | null>>;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
540
1110
|
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
541
1111
|
arguments: string;
|
|
542
1112
|
|
|
@@ -612,6 +1182,47 @@ export namespace ResponseCreateParams {
|
|
|
612
1182
|
}
|
|
613
1183
|
}
|
|
614
1184
|
|
|
1185
|
+
export interface Text {
|
|
1186
|
+
/**
|
|
1187
|
+
* Configuration for Responses API text format.
|
|
1188
|
+
*/
|
|
1189
|
+
format?: Text.Format;
|
|
1190
|
+
}
|
|
1191
|
+
|
|
1192
|
+
export namespace Text {
|
|
1193
|
+
/**
|
|
1194
|
+
* Configuration for Responses API text format.
|
|
1195
|
+
*/
|
|
1196
|
+
export interface Format {
|
|
1197
|
+
/**
|
|
1198
|
+
* Must be "text", "json_schema", or "json_object" to identify the format type
|
|
1199
|
+
*/
|
|
1200
|
+
type: 'text' | 'json_schema' | 'json_object';
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* (Optional) A description of the response format. Only used for json_schema.
|
|
1204
|
+
*/
|
|
1205
|
+
description?: string;
|
|
1206
|
+
|
|
1207
|
+
/**
|
|
1208
|
+
* The name of the response format. Only used for json_schema.
|
|
1209
|
+
*/
|
|
1210
|
+
name?: string;
|
|
1211
|
+
|
|
1212
|
+
/**
|
|
1213
|
+
* The JSON schema the response should conform to. In a Python SDK, this is often a
|
|
1214
|
+
* `pydantic` model. Only used for json_schema.
|
|
1215
|
+
*/
|
|
1216
|
+
schema?: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
1217
|
+
|
|
1218
|
+
/**
|
|
1219
|
+
* (Optional) Whether to strictly enforce the JSON schema. If true, the response
|
|
1220
|
+
* must match the schema exactly. Only used for json_schema.
|
|
1221
|
+
*/
|
|
1222
|
+
strict?: boolean;
|
|
1223
|
+
}
|
|
1224
|
+
}
|
|
1225
|
+
|
|
615
1226
|
export interface OpenAIResponseInputToolWebSearch {
|
|
616
1227
|
type: 'web_search' | 'web_search_preview_2025_03_11';
|
|
617
1228
|
|
|
@@ -621,7 +1232,11 @@ export namespace ResponseCreateParams {
|
|
|
621
1232
|
export interface OpenAIResponseInputToolFileSearch {
|
|
622
1233
|
type: 'file_search';
|
|
623
1234
|
|
|
624
|
-
|
|
1235
|
+
vector_store_ids: Array<string>;
|
|
1236
|
+
|
|
1237
|
+
filters?: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
1238
|
+
|
|
1239
|
+
max_num_results?: number;
|
|
625
1240
|
|
|
626
1241
|
ranking_options?: OpenAIResponseInputToolFileSearch.RankingOptions;
|
|
627
1242
|
}
|