llama-stack-client 0.2.13 → 0.2.14-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/LICENSE +201 -22
- package/README.md +67 -48
- package/_shims/web-runtime.js +1 -1
- package/_shims/web-runtime.js.map +1 -1
- package/_shims/web-runtime.mjs +1 -1
- package/_shims/web-runtime.mjs.map +1 -1
- package/core.js +1 -1
- package/core.js.map +1 -1
- package/core.mjs +1 -1
- package/core.mjs.map +1 -1
- package/index.d.mts +10 -8
- package/index.d.ts +10 -8
- package/index.d.ts.map +1 -1
- package/index.js +3 -3
- package/index.js.map +1 -1
- package/index.mjs +3 -3
- package/index.mjs.map +1 -1
- package/package.json +4 -5
- package/resources/agents/agents.d.ts +52 -4
- package/resources/agents/agents.d.ts.map +1 -1
- package/resources/agents/agents.js +13 -0
- package/resources/agents/agents.js.map +1 -1
- package/resources/agents/agents.mjs +13 -0
- package/resources/agents/agents.mjs.map +1 -1
- package/resources/agents/index.d.ts +2 -2
- package/resources/agents/index.d.ts.map +1 -1
- package/resources/agents/index.js.map +1 -1
- package/resources/agents/index.mjs.map +1 -1
- package/resources/agents/session.d.ts +35 -1
- package/resources/agents/session.d.ts.map +1 -1
- package/resources/agents/session.js +6 -0
- package/resources/agents/session.js.map +1 -1
- package/resources/agents/session.mjs +6 -0
- package/resources/agents/session.mjs.map +1 -1
- package/resources/agents/turn.d.ts +6 -2
- package/resources/agents/turn.d.ts.map +1 -1
- package/resources/benchmarks.d.ts +6 -2
- package/resources/benchmarks.d.ts.map +1 -1
- package/resources/chat/completions.d.ts +21 -7
- package/resources/chat/completions.d.ts.map +1 -1
- package/resources/completions.d.ts +6 -2
- package/resources/completions.d.ts.map +1 -1
- package/resources/datasets.d.ts +40 -10
- package/resources/datasets.d.ts.map +1 -1
- package/resources/datasets.js +10 -0
- package/resources/datasets.js.map +1 -1
- package/resources/datasets.mjs +10 -0
- package/resources/datasets.mjs.map +1 -1
- package/resources/eval/eval.d.ts +15 -5
- package/resources/eval/eval.d.ts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/inference.d.ts +9 -3
- package/resources/inference.d.ts.map +1 -1
- package/resources/inspect.d.ts +6 -2
- package/resources/inspect.d.ts.map +1 -1
- package/resources/models.d.ts +6 -2
- package/resources/models.d.ts.map +1 -1
- package/resources/post-training/job.d.ts +3 -1
- package/resources/post-training/job.d.ts.map +1 -1
- package/resources/post-training/job.js.map +1 -1
- package/resources/post-training/job.mjs.map +1 -1
- package/resources/post-training/post-training.d.ts +12 -4
- package/resources/post-training/post-training.d.ts.map +1 -1
- package/resources/responses/input-items.d.ts +32 -1
- package/resources/responses/input-items.d.ts.map +1 -1
- package/resources/responses/responses.d.ts +223 -17
- 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/safety.d.ts +3 -1
- package/resources/safety.d.ts.map +1 -1
- package/resources/scoring-functions.d.ts +3 -1
- package/resources/scoring-functions.d.ts.map +1 -1
- package/resources/scoring.d.ts +15 -5
- package/resources/scoring.d.ts.map +1 -1
- package/resources/shared.d.ts +29 -9
- package/resources/shared.d.ts.map +1 -1
- package/resources/shields.d.ts +6 -2
- package/resources/shields.d.ts.map +1 -1
- package/resources/synthetic-data-generation.d.ts +6 -2
- package/resources/synthetic-data-generation.d.ts.map +1 -1
- package/resources/telemetry.d.ts +21 -7
- package/resources/telemetry.d.ts.map +1 -1
- package/resources/tool-runtime/tool-runtime.d.ts +9 -3
- package/resources/tool-runtime/tool-runtime.d.ts.map +1 -1
- package/resources/toolgroups.d.ts +6 -2
- package/resources/toolgroups.d.ts.map +1 -1
- package/resources/tools.d.ts +3 -1
- package/resources/tools.d.ts.map +1 -1
- package/resources/vector-io.d.ts +139 -7
- package/resources/vector-io.d.ts.map +1 -1
- package/resources/vector-stores/files.d.ts +78 -3
- package/resources/vector-stores/files.d.ts.map +1 -1
- package/resources/vector-stores/files.js +34 -0
- package/resources/vector-stores/files.js.map +1 -1
- package/resources/vector-stores/files.mjs +34 -0
- package/resources/vector-stores/files.mjs.map +1 -1
- package/resources/vector-stores/index.d.ts +1 -1
- package/resources/vector-stores/index.d.ts.map +1 -1
- package/resources/vector-stores/index.js.map +1 -1
- package/resources/vector-stores/index.mjs +1 -1
- package/resources/vector-stores/index.mjs.map +1 -1
- package/resources/vector-stores/vector-stores.d.ts +33 -11
- package/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/resources/vector-stores/vector-stores.js.map +1 -1
- package/resources/vector-stores/vector-stores.mjs +1 -1
- package/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/src/_shims/web-runtime.ts +1 -1
- package/src/core.ts +1 -1
- package/src/index.ts +16 -6
- package/src/resources/agents/agents.ts +74 -1
- package/src/resources/agents/index.ts +5 -0
- package/src/resources/agents/session.ts +54 -0
- package/src/resources/agents/turn.ts +2 -2
- package/src/resources/benchmarks.ts +2 -2
- package/src/resources/chat/completions.ts +7 -7
- package/src/resources/completions.ts +2 -2
- package/src/resources/datasets.ts +32 -9
- package/src/resources/eval/eval.ts +5 -5
- package/src/resources/index.ts +4 -0
- package/src/resources/inference.ts +3 -3
- package/src/resources/inspect.ts +2 -2
- package/src/resources/models.ts +2 -2
- package/src/resources/post-training/job.ts +1 -2
- package/src/resources/post-training/post-training.ts +4 -4
- package/src/resources/responses/input-items.ts +54 -1
- package/src/resources/responses/responses.ts +335 -17
- package/src/resources/safety.ts +1 -1
- package/src/resources/scoring-functions.ts +1 -1
- package/src/resources/scoring.ts +5 -5
- package/src/resources/shared.ts +17 -17
- package/src/resources/shields.ts +2 -2
- package/src/resources/synthetic-data-generation.ts +2 -2
- package/src/resources/telemetry.ts +7 -7
- package/src/resources/tool-runtime/tool-runtime.ts +3 -3
- package/src/resources/toolgroups.ts +2 -2
- package/src/resources/tools.ts +1 -1
- package/src/resources/vector-io.ts +159 -7
- package/src/resources/vector-stores/files.ts +146 -3
- package/src/resources/vector-stores/index.ts +10 -1
- package/src/resources/vector-stores/vector-stores.ts +29 -10
- 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
|
@@ -56,7 +56,7 @@ export namespace InputItemListResponse {
|
|
|
56
56
|
|
|
57
57
|
type: 'file_search_call';
|
|
58
58
|
|
|
59
|
-
results?: Array<
|
|
59
|
+
results?: Array<{ [key: string]: boolean | number | string | Array<unknown> | unknown | null }>;
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
@@ -128,10 +128,63 @@ export namespace InputItemListResponse {
|
|
|
128
128
|
}
|
|
129
129
|
|
|
130
130
|
export interface UnionMember2 {
|
|
131
|
+
annotations: Array<
|
|
132
|
+
| UnionMember2.OpenAIResponseAnnotationFileCitation
|
|
133
|
+
| UnionMember2.OpenAIResponseAnnotationCitation
|
|
134
|
+
| UnionMember2.OpenAIResponseAnnotationContainerFileCitation
|
|
135
|
+
| UnionMember2.OpenAIResponseAnnotationFilePath
|
|
136
|
+
>;
|
|
137
|
+
|
|
131
138
|
text: string;
|
|
132
139
|
|
|
133
140
|
type: 'output_text';
|
|
134
141
|
}
|
|
142
|
+
|
|
143
|
+
export namespace UnionMember2 {
|
|
144
|
+
export interface OpenAIResponseAnnotationFileCitation {
|
|
145
|
+
file_id: string;
|
|
146
|
+
|
|
147
|
+
filename: string;
|
|
148
|
+
|
|
149
|
+
index: number;
|
|
150
|
+
|
|
151
|
+
type: 'file_citation';
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export interface OpenAIResponseAnnotationCitation {
|
|
155
|
+
end_index: number;
|
|
156
|
+
|
|
157
|
+
start_index: number;
|
|
158
|
+
|
|
159
|
+
title: string;
|
|
160
|
+
|
|
161
|
+
type: 'url_citation';
|
|
162
|
+
|
|
163
|
+
url: string;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
export interface OpenAIResponseAnnotationContainerFileCitation {
|
|
167
|
+
container_id: string;
|
|
168
|
+
|
|
169
|
+
end_index: number;
|
|
170
|
+
|
|
171
|
+
file_id: string;
|
|
172
|
+
|
|
173
|
+
filename: string;
|
|
174
|
+
|
|
175
|
+
start_index: number;
|
|
176
|
+
|
|
177
|
+
type: 'container_file_citation';
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export interface OpenAIResponseAnnotationFilePath {
|
|
181
|
+
file_id: string;
|
|
182
|
+
|
|
183
|
+
index: number;
|
|
184
|
+
|
|
185
|
+
type: 'file_path';
|
|
186
|
+
}
|
|
187
|
+
}
|
|
135
188
|
}
|
|
136
189
|
}
|
|
137
190
|
|
|
@@ -135,10 +135,63 @@ export namespace ResponseObject {
|
|
|
135
135
|
}
|
|
136
136
|
|
|
137
137
|
export interface UnionMember2 {
|
|
138
|
+
annotations: Array<
|
|
139
|
+
| UnionMember2.OpenAIResponseAnnotationFileCitation
|
|
140
|
+
| UnionMember2.OpenAIResponseAnnotationCitation
|
|
141
|
+
| UnionMember2.OpenAIResponseAnnotationContainerFileCitation
|
|
142
|
+
| UnionMember2.OpenAIResponseAnnotationFilePath
|
|
143
|
+
>;
|
|
144
|
+
|
|
138
145
|
text: string;
|
|
139
146
|
|
|
140
147
|
type: 'output_text';
|
|
141
148
|
}
|
|
149
|
+
|
|
150
|
+
export namespace UnionMember2 {
|
|
151
|
+
export interface OpenAIResponseAnnotationFileCitation {
|
|
152
|
+
file_id: string;
|
|
153
|
+
|
|
154
|
+
filename: string;
|
|
155
|
+
|
|
156
|
+
index: number;
|
|
157
|
+
|
|
158
|
+
type: 'file_citation';
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export interface OpenAIResponseAnnotationCitation {
|
|
162
|
+
end_index: number;
|
|
163
|
+
|
|
164
|
+
start_index: number;
|
|
165
|
+
|
|
166
|
+
title: string;
|
|
167
|
+
|
|
168
|
+
type: 'url_citation';
|
|
169
|
+
|
|
170
|
+
url: string;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
export interface OpenAIResponseAnnotationContainerFileCitation {
|
|
174
|
+
container_id: string;
|
|
175
|
+
|
|
176
|
+
end_index: number;
|
|
177
|
+
|
|
178
|
+
file_id: string;
|
|
179
|
+
|
|
180
|
+
filename: string;
|
|
181
|
+
|
|
182
|
+
start_index: number;
|
|
183
|
+
|
|
184
|
+
type: 'container_file_citation';
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export interface OpenAIResponseAnnotationFilePath {
|
|
188
|
+
file_id: string;
|
|
189
|
+
|
|
190
|
+
index: number;
|
|
191
|
+
|
|
192
|
+
type: 'file_path';
|
|
193
|
+
}
|
|
194
|
+
}
|
|
142
195
|
}
|
|
143
196
|
|
|
144
197
|
export interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
@@ -158,7 +211,7 @@ export namespace ResponseObject {
|
|
|
158
211
|
|
|
159
212
|
type: 'file_search_call';
|
|
160
213
|
|
|
161
|
-
results?: Array<
|
|
214
|
+
results?: Array<{ [key: string]: boolean | number | string | Array<unknown> | unknown | null }>;
|
|
162
215
|
}
|
|
163
216
|
|
|
164
217
|
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
@@ -203,7 +256,7 @@ export namespace ResponseObject {
|
|
|
203
256
|
|
|
204
257
|
export namespace OpenAIResponseOutputMessageMcpListTools {
|
|
205
258
|
export interface Tool {
|
|
206
|
-
input_schema:
|
|
259
|
+
input_schema: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
207
260
|
|
|
208
261
|
name: string;
|
|
209
262
|
|
|
@@ -242,7 +295,7 @@ export namespace ResponseObject {
|
|
|
242
295
|
* The JSON schema the response should conform to. In a Python SDK, this is often a
|
|
243
296
|
* `pydantic` model. Only used for json_schema.
|
|
244
297
|
*/
|
|
245
|
-
schema?:
|
|
298
|
+
schema?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
246
299
|
|
|
247
300
|
/**
|
|
248
301
|
* (Optional) Whether to strictly enforce the JSON schema. If true, the response
|
|
@@ -350,10 +403,63 @@ export namespace ResponseObjectStream {
|
|
|
350
403
|
}
|
|
351
404
|
|
|
352
405
|
export interface UnionMember2 {
|
|
406
|
+
annotations: Array<
|
|
407
|
+
| UnionMember2.OpenAIResponseAnnotationFileCitation
|
|
408
|
+
| UnionMember2.OpenAIResponseAnnotationCitation
|
|
409
|
+
| UnionMember2.OpenAIResponseAnnotationContainerFileCitation
|
|
410
|
+
| UnionMember2.OpenAIResponseAnnotationFilePath
|
|
411
|
+
>;
|
|
412
|
+
|
|
353
413
|
text: string;
|
|
354
414
|
|
|
355
415
|
type: 'output_text';
|
|
356
416
|
}
|
|
417
|
+
|
|
418
|
+
export namespace UnionMember2 {
|
|
419
|
+
export interface OpenAIResponseAnnotationFileCitation {
|
|
420
|
+
file_id: string;
|
|
421
|
+
|
|
422
|
+
filename: string;
|
|
423
|
+
|
|
424
|
+
index: number;
|
|
425
|
+
|
|
426
|
+
type: 'file_citation';
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
export interface OpenAIResponseAnnotationCitation {
|
|
430
|
+
end_index: number;
|
|
431
|
+
|
|
432
|
+
start_index: number;
|
|
433
|
+
|
|
434
|
+
title: string;
|
|
435
|
+
|
|
436
|
+
type: 'url_citation';
|
|
437
|
+
|
|
438
|
+
url: string;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
export interface OpenAIResponseAnnotationContainerFileCitation {
|
|
442
|
+
container_id: string;
|
|
443
|
+
|
|
444
|
+
end_index: number;
|
|
445
|
+
|
|
446
|
+
file_id: string;
|
|
447
|
+
|
|
448
|
+
filename: string;
|
|
449
|
+
|
|
450
|
+
start_index: number;
|
|
451
|
+
|
|
452
|
+
type: 'container_file_citation';
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
export interface OpenAIResponseAnnotationFilePath {
|
|
456
|
+
file_id: string;
|
|
457
|
+
|
|
458
|
+
index: number;
|
|
459
|
+
|
|
460
|
+
type: 'file_path';
|
|
461
|
+
}
|
|
462
|
+
}
|
|
357
463
|
}
|
|
358
464
|
|
|
359
465
|
export interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
@@ -373,7 +479,7 @@ export namespace ResponseObjectStream {
|
|
|
373
479
|
|
|
374
480
|
type: 'file_search_call';
|
|
375
481
|
|
|
376
|
-
results?: Array<
|
|
482
|
+
results?: Array<{ [key: string]: boolean | number | string | Array<unknown> | unknown | null }>;
|
|
377
483
|
}
|
|
378
484
|
|
|
379
485
|
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
@@ -418,7 +524,7 @@ export namespace ResponseObjectStream {
|
|
|
418
524
|
|
|
419
525
|
export namespace OpenAIResponseOutputMessageMcpListTools {
|
|
420
526
|
export interface Tool {
|
|
421
|
-
input_schema:
|
|
527
|
+
input_schema: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
422
528
|
|
|
423
529
|
name: string;
|
|
424
530
|
|
|
@@ -490,10 +596,63 @@ export namespace ResponseObjectStream {
|
|
|
490
596
|
}
|
|
491
597
|
|
|
492
598
|
export interface UnionMember2 {
|
|
599
|
+
annotations: Array<
|
|
600
|
+
| UnionMember2.OpenAIResponseAnnotationFileCitation
|
|
601
|
+
| UnionMember2.OpenAIResponseAnnotationCitation
|
|
602
|
+
| UnionMember2.OpenAIResponseAnnotationContainerFileCitation
|
|
603
|
+
| UnionMember2.OpenAIResponseAnnotationFilePath
|
|
604
|
+
>;
|
|
605
|
+
|
|
493
606
|
text: string;
|
|
494
607
|
|
|
495
608
|
type: 'output_text';
|
|
496
609
|
}
|
|
610
|
+
|
|
611
|
+
export namespace UnionMember2 {
|
|
612
|
+
export interface OpenAIResponseAnnotationFileCitation {
|
|
613
|
+
file_id: string;
|
|
614
|
+
|
|
615
|
+
filename: string;
|
|
616
|
+
|
|
617
|
+
index: number;
|
|
618
|
+
|
|
619
|
+
type: 'file_citation';
|
|
620
|
+
}
|
|
621
|
+
|
|
622
|
+
export interface OpenAIResponseAnnotationCitation {
|
|
623
|
+
end_index: number;
|
|
624
|
+
|
|
625
|
+
start_index: number;
|
|
626
|
+
|
|
627
|
+
title: string;
|
|
628
|
+
|
|
629
|
+
type: 'url_citation';
|
|
630
|
+
|
|
631
|
+
url: string;
|
|
632
|
+
}
|
|
633
|
+
|
|
634
|
+
export interface OpenAIResponseAnnotationContainerFileCitation {
|
|
635
|
+
container_id: string;
|
|
636
|
+
|
|
637
|
+
end_index: number;
|
|
638
|
+
|
|
639
|
+
file_id: string;
|
|
640
|
+
|
|
641
|
+
filename: string;
|
|
642
|
+
|
|
643
|
+
start_index: number;
|
|
644
|
+
|
|
645
|
+
type: 'container_file_citation';
|
|
646
|
+
}
|
|
647
|
+
|
|
648
|
+
export interface OpenAIResponseAnnotationFilePath {
|
|
649
|
+
file_id: string;
|
|
650
|
+
|
|
651
|
+
index: number;
|
|
652
|
+
|
|
653
|
+
type: 'file_path';
|
|
654
|
+
}
|
|
655
|
+
}
|
|
497
656
|
}
|
|
498
657
|
|
|
499
658
|
export interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
@@ -513,7 +672,7 @@ export namespace ResponseObjectStream {
|
|
|
513
672
|
|
|
514
673
|
type: 'file_search_call';
|
|
515
674
|
|
|
516
|
-
results?: Array<
|
|
675
|
+
results?: Array<{ [key: string]: boolean | number | string | Array<unknown> | unknown | null }>;
|
|
517
676
|
}
|
|
518
677
|
|
|
519
678
|
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
@@ -558,7 +717,7 @@ export namespace ResponseObjectStream {
|
|
|
558
717
|
|
|
559
718
|
export namespace OpenAIResponseOutputMessageMcpListTools {
|
|
560
719
|
export interface Tool {
|
|
561
|
-
input_schema:
|
|
720
|
+
input_schema: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
562
721
|
|
|
563
722
|
name: string;
|
|
564
723
|
|
|
@@ -796,7 +955,7 @@ export namespace ResponseListResponse {
|
|
|
796
955
|
|
|
797
956
|
type: 'file_search_call';
|
|
798
957
|
|
|
799
|
-
results?: Array<
|
|
958
|
+
results?: Array<{ [key: string]: boolean | number | string | Array<unknown> | unknown | null }>;
|
|
800
959
|
}
|
|
801
960
|
|
|
802
961
|
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
@@ -868,10 +1027,63 @@ export namespace ResponseListResponse {
|
|
|
868
1027
|
}
|
|
869
1028
|
|
|
870
1029
|
export interface UnionMember2 {
|
|
1030
|
+
annotations: Array<
|
|
1031
|
+
| UnionMember2.OpenAIResponseAnnotationFileCitation
|
|
1032
|
+
| UnionMember2.OpenAIResponseAnnotationCitation
|
|
1033
|
+
| UnionMember2.OpenAIResponseAnnotationContainerFileCitation
|
|
1034
|
+
| UnionMember2.OpenAIResponseAnnotationFilePath
|
|
1035
|
+
>;
|
|
1036
|
+
|
|
871
1037
|
text: string;
|
|
872
1038
|
|
|
873
1039
|
type: 'output_text';
|
|
874
1040
|
}
|
|
1041
|
+
|
|
1042
|
+
export namespace UnionMember2 {
|
|
1043
|
+
export interface OpenAIResponseAnnotationFileCitation {
|
|
1044
|
+
file_id: string;
|
|
1045
|
+
|
|
1046
|
+
filename: string;
|
|
1047
|
+
|
|
1048
|
+
index: number;
|
|
1049
|
+
|
|
1050
|
+
type: 'file_citation';
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
export interface OpenAIResponseAnnotationCitation {
|
|
1054
|
+
end_index: number;
|
|
1055
|
+
|
|
1056
|
+
start_index: number;
|
|
1057
|
+
|
|
1058
|
+
title: string;
|
|
1059
|
+
|
|
1060
|
+
type: 'url_citation';
|
|
1061
|
+
|
|
1062
|
+
url: string;
|
|
1063
|
+
}
|
|
1064
|
+
|
|
1065
|
+
export interface OpenAIResponseAnnotationContainerFileCitation {
|
|
1066
|
+
container_id: string;
|
|
1067
|
+
|
|
1068
|
+
end_index: number;
|
|
1069
|
+
|
|
1070
|
+
file_id: string;
|
|
1071
|
+
|
|
1072
|
+
filename: string;
|
|
1073
|
+
|
|
1074
|
+
start_index: number;
|
|
1075
|
+
|
|
1076
|
+
type: 'container_file_citation';
|
|
1077
|
+
}
|
|
1078
|
+
|
|
1079
|
+
export interface OpenAIResponseAnnotationFilePath {
|
|
1080
|
+
file_id: string;
|
|
1081
|
+
|
|
1082
|
+
index: number;
|
|
1083
|
+
|
|
1084
|
+
type: 'file_path';
|
|
1085
|
+
}
|
|
1086
|
+
}
|
|
875
1087
|
}
|
|
876
1088
|
|
|
877
1089
|
/**
|
|
@@ -913,10 +1125,63 @@ export namespace ResponseListResponse {
|
|
|
913
1125
|
}
|
|
914
1126
|
|
|
915
1127
|
export interface UnionMember2 {
|
|
1128
|
+
annotations: Array<
|
|
1129
|
+
| UnionMember2.OpenAIResponseAnnotationFileCitation
|
|
1130
|
+
| UnionMember2.OpenAIResponseAnnotationCitation
|
|
1131
|
+
| UnionMember2.OpenAIResponseAnnotationContainerFileCitation
|
|
1132
|
+
| UnionMember2.OpenAIResponseAnnotationFilePath
|
|
1133
|
+
>;
|
|
1134
|
+
|
|
916
1135
|
text: string;
|
|
917
1136
|
|
|
918
1137
|
type: 'output_text';
|
|
919
1138
|
}
|
|
1139
|
+
|
|
1140
|
+
export namespace UnionMember2 {
|
|
1141
|
+
export interface OpenAIResponseAnnotationFileCitation {
|
|
1142
|
+
file_id: string;
|
|
1143
|
+
|
|
1144
|
+
filename: string;
|
|
1145
|
+
|
|
1146
|
+
index: number;
|
|
1147
|
+
|
|
1148
|
+
type: 'file_citation';
|
|
1149
|
+
}
|
|
1150
|
+
|
|
1151
|
+
export interface OpenAIResponseAnnotationCitation {
|
|
1152
|
+
end_index: number;
|
|
1153
|
+
|
|
1154
|
+
start_index: number;
|
|
1155
|
+
|
|
1156
|
+
title: string;
|
|
1157
|
+
|
|
1158
|
+
type: 'url_citation';
|
|
1159
|
+
|
|
1160
|
+
url: string;
|
|
1161
|
+
}
|
|
1162
|
+
|
|
1163
|
+
export interface OpenAIResponseAnnotationContainerFileCitation {
|
|
1164
|
+
container_id: string;
|
|
1165
|
+
|
|
1166
|
+
end_index: number;
|
|
1167
|
+
|
|
1168
|
+
file_id: string;
|
|
1169
|
+
|
|
1170
|
+
filename: string;
|
|
1171
|
+
|
|
1172
|
+
start_index: number;
|
|
1173
|
+
|
|
1174
|
+
type: 'container_file_citation';
|
|
1175
|
+
}
|
|
1176
|
+
|
|
1177
|
+
export interface OpenAIResponseAnnotationFilePath {
|
|
1178
|
+
file_id: string;
|
|
1179
|
+
|
|
1180
|
+
index: number;
|
|
1181
|
+
|
|
1182
|
+
type: 'file_path';
|
|
1183
|
+
}
|
|
1184
|
+
}
|
|
920
1185
|
}
|
|
921
1186
|
|
|
922
1187
|
export interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
@@ -936,7 +1201,7 @@ export namespace ResponseListResponse {
|
|
|
936
1201
|
|
|
937
1202
|
type: 'file_search_call';
|
|
938
1203
|
|
|
939
|
-
results?: Array<
|
|
1204
|
+
results?: Array<{ [key: string]: boolean | number | string | Array<unknown> | unknown | null }>;
|
|
940
1205
|
}
|
|
941
1206
|
|
|
942
1207
|
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
@@ -981,7 +1246,7 @@ export namespace ResponseListResponse {
|
|
|
981
1246
|
|
|
982
1247
|
export namespace OpenAIResponseOutputMessageMcpListTools {
|
|
983
1248
|
export interface Tool {
|
|
984
|
-
input_schema:
|
|
1249
|
+
input_schema: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
985
1250
|
|
|
986
1251
|
name: string;
|
|
987
1252
|
|
|
@@ -1020,7 +1285,7 @@ export namespace ResponseListResponse {
|
|
|
1020
1285
|
* The JSON schema the response should conform to. In a Python SDK, this is often a
|
|
1021
1286
|
* `pydantic` model. Only used for json_schema.
|
|
1022
1287
|
*/
|
|
1023
|
-
schema?:
|
|
1288
|
+
schema?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
1024
1289
|
|
|
1025
1290
|
/**
|
|
1026
1291
|
* (Optional) Whether to strictly enforce the JSON schema. If true, the response
|
|
@@ -1104,7 +1369,7 @@ export namespace ResponseCreateParams {
|
|
|
1104
1369
|
|
|
1105
1370
|
type: 'file_search_call';
|
|
1106
1371
|
|
|
1107
|
-
results?: Array<
|
|
1372
|
+
results?: Array<{ [key: string]: boolean | number | string | Array<unknown> | unknown | null }>;
|
|
1108
1373
|
}
|
|
1109
1374
|
|
|
1110
1375
|
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
@@ -1176,10 +1441,63 @@ export namespace ResponseCreateParams {
|
|
|
1176
1441
|
}
|
|
1177
1442
|
|
|
1178
1443
|
export interface UnionMember2 {
|
|
1444
|
+
annotations: Array<
|
|
1445
|
+
| UnionMember2.OpenAIResponseAnnotationFileCitation
|
|
1446
|
+
| UnionMember2.OpenAIResponseAnnotationCitation
|
|
1447
|
+
| UnionMember2.OpenAIResponseAnnotationContainerFileCitation
|
|
1448
|
+
| UnionMember2.OpenAIResponseAnnotationFilePath
|
|
1449
|
+
>;
|
|
1450
|
+
|
|
1179
1451
|
text: string;
|
|
1180
1452
|
|
|
1181
1453
|
type: 'output_text';
|
|
1182
1454
|
}
|
|
1455
|
+
|
|
1456
|
+
export namespace UnionMember2 {
|
|
1457
|
+
export interface OpenAIResponseAnnotationFileCitation {
|
|
1458
|
+
file_id: string;
|
|
1459
|
+
|
|
1460
|
+
filename: string;
|
|
1461
|
+
|
|
1462
|
+
index: number;
|
|
1463
|
+
|
|
1464
|
+
type: 'file_citation';
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
export interface OpenAIResponseAnnotationCitation {
|
|
1468
|
+
end_index: number;
|
|
1469
|
+
|
|
1470
|
+
start_index: number;
|
|
1471
|
+
|
|
1472
|
+
title: string;
|
|
1473
|
+
|
|
1474
|
+
type: 'url_citation';
|
|
1475
|
+
|
|
1476
|
+
url: string;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
export interface OpenAIResponseAnnotationContainerFileCitation {
|
|
1480
|
+
container_id: string;
|
|
1481
|
+
|
|
1482
|
+
end_index: number;
|
|
1483
|
+
|
|
1484
|
+
file_id: string;
|
|
1485
|
+
|
|
1486
|
+
filename: string;
|
|
1487
|
+
|
|
1488
|
+
start_index: number;
|
|
1489
|
+
|
|
1490
|
+
type: 'container_file_citation';
|
|
1491
|
+
}
|
|
1492
|
+
|
|
1493
|
+
export interface OpenAIResponseAnnotationFilePath {
|
|
1494
|
+
file_id: string;
|
|
1495
|
+
|
|
1496
|
+
index: number;
|
|
1497
|
+
|
|
1498
|
+
type: 'file_path';
|
|
1499
|
+
}
|
|
1500
|
+
}
|
|
1183
1501
|
}
|
|
1184
1502
|
|
|
1185
1503
|
export interface Text {
|
|
@@ -1213,7 +1531,7 @@ export namespace ResponseCreateParams {
|
|
|
1213
1531
|
* The JSON schema the response should conform to. In a Python SDK, this is often a
|
|
1214
1532
|
* `pydantic` model. Only used for json_schema.
|
|
1215
1533
|
*/
|
|
1216
|
-
schema?:
|
|
1534
|
+
schema?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
1217
1535
|
|
|
1218
1536
|
/**
|
|
1219
1537
|
* (Optional) Whether to strictly enforce the JSON schema. If true, the response
|
|
@@ -1224,7 +1542,7 @@ export namespace ResponseCreateParams {
|
|
|
1224
1542
|
}
|
|
1225
1543
|
|
|
1226
1544
|
export interface OpenAIResponseInputToolWebSearch {
|
|
1227
|
-
type: 'web_search' | 'web_search_preview_2025_03_11';
|
|
1545
|
+
type: 'web_search' | 'web_search_preview' | 'web_search_preview_2025_03_11';
|
|
1228
1546
|
|
|
1229
1547
|
search_context_size?: string;
|
|
1230
1548
|
}
|
|
@@ -1234,7 +1552,7 @@ export namespace ResponseCreateParams {
|
|
|
1234
1552
|
|
|
1235
1553
|
vector_store_ids: Array<string>;
|
|
1236
1554
|
|
|
1237
|
-
filters?:
|
|
1555
|
+
filters?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
1238
1556
|
|
|
1239
1557
|
max_num_results?: number;
|
|
1240
1558
|
|
|
@@ -1256,7 +1574,7 @@ export namespace ResponseCreateParams {
|
|
|
1256
1574
|
|
|
1257
1575
|
description?: string;
|
|
1258
1576
|
|
|
1259
|
-
parameters?:
|
|
1577
|
+
parameters?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
1260
1578
|
|
|
1261
1579
|
strict?: boolean;
|
|
1262
1580
|
}
|
|
@@ -1272,7 +1590,7 @@ export namespace ResponseCreateParams {
|
|
|
1272
1590
|
|
|
1273
1591
|
allowed_tools?: Array<string> | OpenAIResponseInputToolMcp.AllowedToolsFilter;
|
|
1274
1592
|
|
|
1275
|
-
headers?:
|
|
1593
|
+
headers?: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
1276
1594
|
}
|
|
1277
1595
|
|
|
1278
1596
|
export namespace OpenAIResponseInputToolMcp {
|
package/src/resources/safety.ts
CHANGED
|
@@ -26,7 +26,7 @@ export interface SafetyRunShieldParams {
|
|
|
26
26
|
/**
|
|
27
27
|
* The parameters of the shield.
|
|
28
28
|
*/
|
|
29
|
-
params:
|
|
29
|
+
params: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
30
30
|
|
|
31
31
|
/**
|
|
32
32
|
* The identifier of the shield to run.
|
|
@@ -42,7 +42,7 @@ export interface ListScoringFunctionsResponse {
|
|
|
42
42
|
export interface ScoringFn {
|
|
43
43
|
identifier: string;
|
|
44
44
|
|
|
45
|
-
metadata:
|
|
45
|
+
metadata: { [key: string]: boolean | number | string | Array<unknown> | unknown | null };
|
|
46
46
|
|
|
47
47
|
provider_id: string;
|
|
48
48
|
|
package/src/resources/scoring.ts
CHANGED
|
@@ -31,11 +31,11 @@ export interface ScoringScoreResponse {
|
|
|
31
31
|
/**
|
|
32
32
|
* A map of scoring function name to ScoringResult.
|
|
33
33
|
*/
|
|
34
|
-
results:
|
|
34
|
+
results: { [key: string]: Shared.ScoringResult };
|
|
35
35
|
}
|
|
36
36
|
|
|
37
37
|
export interface ScoringScoreBatchResponse {
|
|
38
|
-
results:
|
|
38
|
+
results: { [key: string]: Shared.ScoringResult };
|
|
39
39
|
|
|
40
40
|
dataset_id?: string;
|
|
41
41
|
}
|
|
@@ -44,12 +44,12 @@ export interface ScoringScoreParams {
|
|
|
44
44
|
/**
|
|
45
45
|
* The rows to score.
|
|
46
46
|
*/
|
|
47
|
-
input_rows: Array<
|
|
47
|
+
input_rows: Array<{ [key: string]: boolean | number | string | Array<unknown> | unknown | null }>;
|
|
48
48
|
|
|
49
49
|
/**
|
|
50
50
|
* The scoring functions to use for the scoring.
|
|
51
51
|
*/
|
|
52
|
-
scoring_functions:
|
|
52
|
+
scoring_functions: { [key: string]: ScoringFunctionsAPI.ScoringFnParams | null };
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
export interface ScoringScoreBatchParams {
|
|
@@ -66,7 +66,7 @@ export interface ScoringScoreBatchParams {
|
|
|
66
66
|
/**
|
|
67
67
|
* The scoring functions to use for the scoring.
|
|
68
68
|
*/
|
|
69
|
-
scoring_functions:
|
|
69
|
+
scoring_functions: { [key: string]: ScoringFunctionsAPI.ScoringFnParams | null };
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
export declare namespace Scoring {
|