llama-stack-client 0.2.15-rc1 → 0.2.16-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.
Files changed (34) hide show
  1. package/package.json +1 -1
  2. package/resources/chat/completions.d.ts +48 -288
  3. package/resources/chat/completions.d.ts.map +1 -1
  4. package/resources/inference.d.ts +6 -0
  5. package/resources/inference.d.ts.map +1 -1
  6. package/resources/inference.js +2 -0
  7. package/resources/inference.js.map +1 -1
  8. package/resources/inference.mjs +2 -0
  9. package/resources/inference.mjs.map +1 -1
  10. package/resources/post-training/job.d.ts +44 -2
  11. package/resources/post-training/job.d.ts.map +1 -1
  12. package/resources/post-training/post-training.d.ts +2 -4
  13. package/resources/post-training/post-training.d.ts.map +1 -1
  14. package/resources/post-training/post-training.js.map +1 -1
  15. package/resources/post-training/post-training.mjs.map +1 -1
  16. package/resources/shared.d.ts +1 -1
  17. package/resources/shared.d.ts.map +1 -1
  18. package/resources/vector-dbs.d.ts +7 -0
  19. package/resources/vector-dbs.d.ts.map +1 -1
  20. package/resources/vector-stores/vector-stores.d.ts +4 -8
  21. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  22. package/resources/vector-stores/vector-stores.js.map +1 -1
  23. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  24. package/src/resources/chat/completions.ts +48 -504
  25. package/src/resources/inference.ts +6 -0
  26. package/src/resources/post-training/job.ts +64 -2
  27. package/src/resources/post-training/post-training.ts +2 -6
  28. package/src/resources/shared.ts +1 -1
  29. package/src/resources/vector-dbs.ts +11 -0
  30. package/src/resources/vector-stores/vector-stores.ts +4 -9
  31. package/src/version.ts +1 -1
  32. package/version.d.ts +1 -1
  33. package/version.js +1 -1
  34. package/version.mjs +1 -1
@@ -117,7 +117,7 @@ export declare namespace CompletionCreateResponse {
117
117
  * they are concatenated. The underlying Llama Stack code may also add other system
118
118
  * messages (for example, for formatting tool definitions).
119
119
  */
120
- content: string | Array<OpenAISystemMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAISystemMessageParam.OpenAIChatCompletionContentPartImageParam>;
120
+ content: string | Array<OpenAISystemMessageParam.UnionMember1>;
121
121
  /**
122
122
  * Must be "system" to identify this as a system message
123
123
  */
@@ -128,20 +128,10 @@ export declare namespace CompletionCreateResponse {
128
128
  name?: string;
129
129
  }
130
130
  namespace OpenAISystemMessageParam {
131
- interface OpenAIChatCompletionContentPartTextParam {
131
+ interface UnionMember1 {
132
132
  text: string;
133
133
  type: 'text';
134
134
  }
135
- interface OpenAIChatCompletionContentPartImageParam {
136
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
137
- type: 'image_url';
138
- }
139
- namespace OpenAIChatCompletionContentPartImageParam {
140
- interface ImageURL {
141
- url: string;
142
- detail?: string;
143
- }
144
- }
145
135
  }
146
136
  /**
147
137
  * A message containing the model's (assistant) response in an OpenAI-compatible
@@ -155,7 +145,7 @@ export declare namespace CompletionCreateResponse {
155
145
  /**
156
146
  * The content of the model's response
157
147
  */
158
- content?: string | Array<OpenAIAssistantMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIAssistantMessageParam.OpenAIChatCompletionContentPartImageParam>;
148
+ content?: string | Array<OpenAIAssistantMessageParam.UnionMember1>;
159
149
  /**
160
150
  * (Optional) The name of the assistant message participant.
161
151
  */
@@ -166,20 +156,10 @@ export declare namespace CompletionCreateResponse {
166
156
  tool_calls?: Array<OpenAIAssistantMessageParam.ToolCall>;
167
157
  }
168
158
  namespace OpenAIAssistantMessageParam {
169
- interface OpenAIChatCompletionContentPartTextParam {
159
+ interface UnionMember1 {
170
160
  text: string;
171
161
  type: 'text';
172
162
  }
173
- interface OpenAIChatCompletionContentPartImageParam {
174
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
175
- type: 'image_url';
176
- }
177
- namespace OpenAIChatCompletionContentPartImageParam {
178
- interface ImageURL {
179
- url: string;
180
- detail?: string;
181
- }
182
- }
183
163
  interface ToolCall {
184
164
  type: 'function';
185
165
  id?: string;
@@ -201,7 +181,7 @@ export declare namespace CompletionCreateResponse {
201
181
  /**
202
182
  * The response content from the tool
203
183
  */
204
- content: string | Array<OpenAIToolMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIToolMessageParam.OpenAIChatCompletionContentPartImageParam>;
184
+ content: string | Array<OpenAIToolMessageParam.UnionMember1>;
205
185
  /**
206
186
  * Must be "tool" to identify this as a tool response
207
187
  */
@@ -212,20 +192,10 @@ export declare namespace CompletionCreateResponse {
212
192
  tool_call_id: string;
213
193
  }
214
194
  namespace OpenAIToolMessageParam {
215
- interface OpenAIChatCompletionContentPartTextParam {
195
+ interface UnionMember1 {
216
196
  text: string;
217
197
  type: 'text';
218
198
  }
219
- interface OpenAIChatCompletionContentPartImageParam {
220
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
221
- type: 'image_url';
222
- }
223
- namespace OpenAIChatCompletionContentPartImageParam {
224
- interface ImageURL {
225
- url: string;
226
- detail?: string;
227
- }
228
- }
229
199
  }
230
200
  /**
231
201
  * A message from the developer in an OpenAI-compatible chat completion request.
@@ -234,7 +204,7 @@ export declare namespace CompletionCreateResponse {
234
204
  /**
235
205
  * The content of the developer message
236
206
  */
237
- content: string | Array<OpenAIDeveloperMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIDeveloperMessageParam.OpenAIChatCompletionContentPartImageParam>;
207
+ content: string | Array<OpenAIDeveloperMessageParam.UnionMember1>;
238
208
  /**
239
209
  * Must be "developer" to identify this as a developer message
240
210
  */
@@ -245,20 +215,10 @@ export declare namespace CompletionCreateResponse {
245
215
  name?: string;
246
216
  }
247
217
  namespace OpenAIDeveloperMessageParam {
248
- interface OpenAIChatCompletionContentPartTextParam {
218
+ interface UnionMember1 {
249
219
  text: string;
250
220
  type: 'text';
251
221
  }
252
- interface OpenAIChatCompletionContentPartImageParam {
253
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
254
- type: 'image_url';
255
- }
256
- namespace OpenAIChatCompletionContentPartImageParam {
257
- interface ImageURL {
258
- url: string;
259
- detail?: string;
260
- }
261
- }
262
222
  }
263
223
  /**
264
224
  * (Optional) The log probabilities for the tokens in the message
@@ -408,7 +368,7 @@ export declare namespace CompletionRetrieveResponse {
408
368
  * they are concatenated. The underlying Llama Stack code may also add other system
409
369
  * messages (for example, for formatting tool definitions).
410
370
  */
411
- content: string | Array<OpenAISystemMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAISystemMessageParam.OpenAIChatCompletionContentPartImageParam>;
371
+ content: string | Array<OpenAISystemMessageParam.UnionMember1>;
412
372
  /**
413
373
  * Must be "system" to identify this as a system message
414
374
  */
@@ -419,20 +379,10 @@ export declare namespace CompletionRetrieveResponse {
419
379
  name?: string;
420
380
  }
421
381
  namespace OpenAISystemMessageParam {
422
- interface OpenAIChatCompletionContentPartTextParam {
382
+ interface UnionMember1 {
423
383
  text: string;
424
384
  type: 'text';
425
385
  }
426
- interface OpenAIChatCompletionContentPartImageParam {
427
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
428
- type: 'image_url';
429
- }
430
- namespace OpenAIChatCompletionContentPartImageParam {
431
- interface ImageURL {
432
- url: string;
433
- detail?: string;
434
- }
435
- }
436
386
  }
437
387
  /**
438
388
  * A message containing the model's (assistant) response in an OpenAI-compatible
@@ -446,7 +396,7 @@ export declare namespace CompletionRetrieveResponse {
446
396
  /**
447
397
  * The content of the model's response
448
398
  */
449
- content?: string | Array<OpenAIAssistantMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIAssistantMessageParam.OpenAIChatCompletionContentPartImageParam>;
399
+ content?: string | Array<OpenAIAssistantMessageParam.UnionMember1>;
450
400
  /**
451
401
  * (Optional) The name of the assistant message participant.
452
402
  */
@@ -457,20 +407,10 @@ export declare namespace CompletionRetrieveResponse {
457
407
  tool_calls?: Array<OpenAIAssistantMessageParam.ToolCall>;
458
408
  }
459
409
  namespace OpenAIAssistantMessageParam {
460
- interface OpenAIChatCompletionContentPartTextParam {
410
+ interface UnionMember1 {
461
411
  text: string;
462
412
  type: 'text';
463
413
  }
464
- interface OpenAIChatCompletionContentPartImageParam {
465
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
466
- type: 'image_url';
467
- }
468
- namespace OpenAIChatCompletionContentPartImageParam {
469
- interface ImageURL {
470
- url: string;
471
- detail?: string;
472
- }
473
- }
474
414
  interface ToolCall {
475
415
  type: 'function';
476
416
  id?: string;
@@ -492,7 +432,7 @@ export declare namespace CompletionRetrieveResponse {
492
432
  /**
493
433
  * The response content from the tool
494
434
  */
495
- content: string | Array<OpenAIToolMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIToolMessageParam.OpenAIChatCompletionContentPartImageParam>;
435
+ content: string | Array<OpenAIToolMessageParam.UnionMember1>;
496
436
  /**
497
437
  * Must be "tool" to identify this as a tool response
498
438
  */
@@ -503,20 +443,10 @@ export declare namespace CompletionRetrieveResponse {
503
443
  tool_call_id: string;
504
444
  }
505
445
  namespace OpenAIToolMessageParam {
506
- interface OpenAIChatCompletionContentPartTextParam {
446
+ interface UnionMember1 {
507
447
  text: string;
508
448
  type: 'text';
509
449
  }
510
- interface OpenAIChatCompletionContentPartImageParam {
511
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
512
- type: 'image_url';
513
- }
514
- namespace OpenAIChatCompletionContentPartImageParam {
515
- interface ImageURL {
516
- url: string;
517
- detail?: string;
518
- }
519
- }
520
450
  }
521
451
  /**
522
452
  * A message from the developer in an OpenAI-compatible chat completion request.
@@ -525,7 +455,7 @@ export declare namespace CompletionRetrieveResponse {
525
455
  /**
526
456
  * The content of the developer message
527
457
  */
528
- content: string | Array<OpenAIDeveloperMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIDeveloperMessageParam.OpenAIChatCompletionContentPartImageParam>;
458
+ content: string | Array<OpenAIDeveloperMessageParam.UnionMember1>;
529
459
  /**
530
460
  * Must be "developer" to identify this as a developer message
531
461
  */
@@ -536,20 +466,10 @@ export declare namespace CompletionRetrieveResponse {
536
466
  name?: string;
537
467
  }
538
468
  namespace OpenAIDeveloperMessageParam {
539
- interface OpenAIChatCompletionContentPartTextParam {
469
+ interface UnionMember1 {
540
470
  text: string;
541
471
  type: 'text';
542
472
  }
543
- interface OpenAIChatCompletionContentPartImageParam {
544
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
545
- type: 'image_url';
546
- }
547
- namespace OpenAIChatCompletionContentPartImageParam {
548
- interface ImageURL {
549
- url: string;
550
- detail?: string;
551
- }
552
- }
553
473
  }
554
474
  /**
555
475
  * (Optional) The log probabilities for the tokens in the message
@@ -651,7 +571,7 @@ export declare namespace CompletionRetrieveResponse {
651
571
  * they are concatenated. The underlying Llama Stack code may also add other system
652
572
  * messages (for example, for formatting tool definitions).
653
573
  */
654
- content: string | Array<OpenAISystemMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAISystemMessageParam.OpenAIChatCompletionContentPartImageParam>;
574
+ content: string | Array<OpenAISystemMessageParam.UnionMember1>;
655
575
  /**
656
576
  * Must be "system" to identify this as a system message
657
577
  */
@@ -662,20 +582,10 @@ export declare namespace CompletionRetrieveResponse {
662
582
  name?: string;
663
583
  }
664
584
  namespace OpenAISystemMessageParam {
665
- interface OpenAIChatCompletionContentPartTextParam {
585
+ interface UnionMember1 {
666
586
  text: string;
667
587
  type: 'text';
668
588
  }
669
- interface OpenAIChatCompletionContentPartImageParam {
670
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
671
- type: 'image_url';
672
- }
673
- namespace OpenAIChatCompletionContentPartImageParam {
674
- interface ImageURL {
675
- url: string;
676
- detail?: string;
677
- }
678
- }
679
589
  }
680
590
  /**
681
591
  * A message containing the model's (assistant) response in an OpenAI-compatible
@@ -689,7 +599,7 @@ export declare namespace CompletionRetrieveResponse {
689
599
  /**
690
600
  * The content of the model's response
691
601
  */
692
- content?: string | Array<OpenAIAssistantMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIAssistantMessageParam.OpenAIChatCompletionContentPartImageParam>;
602
+ content?: string | Array<OpenAIAssistantMessageParam.UnionMember1>;
693
603
  /**
694
604
  * (Optional) The name of the assistant message participant.
695
605
  */
@@ -700,20 +610,10 @@ export declare namespace CompletionRetrieveResponse {
700
610
  tool_calls?: Array<OpenAIAssistantMessageParam.ToolCall>;
701
611
  }
702
612
  namespace OpenAIAssistantMessageParam {
703
- interface OpenAIChatCompletionContentPartTextParam {
613
+ interface UnionMember1 {
704
614
  text: string;
705
615
  type: 'text';
706
616
  }
707
- interface OpenAIChatCompletionContentPartImageParam {
708
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
709
- type: 'image_url';
710
- }
711
- namespace OpenAIChatCompletionContentPartImageParam {
712
- interface ImageURL {
713
- url: string;
714
- detail?: string;
715
- }
716
- }
717
617
  interface ToolCall {
718
618
  type: 'function';
719
619
  id?: string;
@@ -735,7 +635,7 @@ export declare namespace CompletionRetrieveResponse {
735
635
  /**
736
636
  * The response content from the tool
737
637
  */
738
- content: string | Array<OpenAIToolMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIToolMessageParam.OpenAIChatCompletionContentPartImageParam>;
638
+ content: string | Array<OpenAIToolMessageParam.UnionMember1>;
739
639
  /**
740
640
  * Must be "tool" to identify this as a tool response
741
641
  */
@@ -746,20 +646,10 @@ export declare namespace CompletionRetrieveResponse {
746
646
  tool_call_id: string;
747
647
  }
748
648
  namespace OpenAIToolMessageParam {
749
- interface OpenAIChatCompletionContentPartTextParam {
649
+ interface UnionMember1 {
750
650
  text: string;
751
651
  type: 'text';
752
652
  }
753
- interface OpenAIChatCompletionContentPartImageParam {
754
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
755
- type: 'image_url';
756
- }
757
- namespace OpenAIChatCompletionContentPartImageParam {
758
- interface ImageURL {
759
- url: string;
760
- detail?: string;
761
- }
762
- }
763
653
  }
764
654
  /**
765
655
  * A message from the developer in an OpenAI-compatible chat completion request.
@@ -768,7 +658,7 @@ export declare namespace CompletionRetrieveResponse {
768
658
  /**
769
659
  * The content of the developer message
770
660
  */
771
- content: string | Array<OpenAIDeveloperMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIDeveloperMessageParam.OpenAIChatCompletionContentPartImageParam>;
661
+ content: string | Array<OpenAIDeveloperMessageParam.UnionMember1>;
772
662
  /**
773
663
  * Must be "developer" to identify this as a developer message
774
664
  */
@@ -779,20 +669,10 @@ export declare namespace CompletionRetrieveResponse {
779
669
  name?: string;
780
670
  }
781
671
  namespace OpenAIDeveloperMessageParam {
782
- interface OpenAIChatCompletionContentPartTextParam {
672
+ interface UnionMember1 {
783
673
  text: string;
784
674
  type: 'text';
785
675
  }
786
- interface OpenAIChatCompletionContentPartImageParam {
787
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
788
- type: 'image_url';
789
- }
790
- namespace OpenAIChatCompletionContentPartImageParam {
791
- interface ImageURL {
792
- url: string;
793
- detail?: string;
794
- }
795
- }
796
676
  }
797
677
  }
798
678
  export interface CompletionListResponse {
@@ -891,7 +771,7 @@ export declare namespace CompletionListResponse {
891
771
  * they are concatenated. The underlying Llama Stack code may also add other system
892
772
  * messages (for example, for formatting tool definitions).
893
773
  */
894
- content: string | Array<OpenAISystemMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAISystemMessageParam.OpenAIChatCompletionContentPartImageParam>;
774
+ content: string | Array<OpenAISystemMessageParam.UnionMember1>;
895
775
  /**
896
776
  * Must be "system" to identify this as a system message
897
777
  */
@@ -902,20 +782,10 @@ export declare namespace CompletionListResponse {
902
782
  name?: string;
903
783
  }
904
784
  namespace OpenAISystemMessageParam {
905
- interface OpenAIChatCompletionContentPartTextParam {
785
+ interface UnionMember1 {
906
786
  text: string;
907
787
  type: 'text';
908
788
  }
909
- interface OpenAIChatCompletionContentPartImageParam {
910
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
911
- type: 'image_url';
912
- }
913
- namespace OpenAIChatCompletionContentPartImageParam {
914
- interface ImageURL {
915
- url: string;
916
- detail?: string;
917
- }
918
- }
919
789
  }
920
790
  /**
921
791
  * A message containing the model's (assistant) response in an OpenAI-compatible
@@ -929,7 +799,7 @@ export declare namespace CompletionListResponse {
929
799
  /**
930
800
  * The content of the model's response
931
801
  */
932
- content?: string | Array<OpenAIAssistantMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIAssistantMessageParam.OpenAIChatCompletionContentPartImageParam>;
802
+ content?: string | Array<OpenAIAssistantMessageParam.UnionMember1>;
933
803
  /**
934
804
  * (Optional) The name of the assistant message participant.
935
805
  */
@@ -940,20 +810,10 @@ export declare namespace CompletionListResponse {
940
810
  tool_calls?: Array<OpenAIAssistantMessageParam.ToolCall>;
941
811
  }
942
812
  namespace OpenAIAssistantMessageParam {
943
- interface OpenAIChatCompletionContentPartTextParam {
813
+ interface UnionMember1 {
944
814
  text: string;
945
815
  type: 'text';
946
816
  }
947
- interface OpenAIChatCompletionContentPartImageParam {
948
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
949
- type: 'image_url';
950
- }
951
- namespace OpenAIChatCompletionContentPartImageParam {
952
- interface ImageURL {
953
- url: string;
954
- detail?: string;
955
- }
956
- }
957
817
  interface ToolCall {
958
818
  type: 'function';
959
819
  id?: string;
@@ -975,7 +835,7 @@ export declare namespace CompletionListResponse {
975
835
  /**
976
836
  * The response content from the tool
977
837
  */
978
- content: string | Array<OpenAIToolMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIToolMessageParam.OpenAIChatCompletionContentPartImageParam>;
838
+ content: string | Array<OpenAIToolMessageParam.UnionMember1>;
979
839
  /**
980
840
  * Must be "tool" to identify this as a tool response
981
841
  */
@@ -986,20 +846,10 @@ export declare namespace CompletionListResponse {
986
846
  tool_call_id: string;
987
847
  }
988
848
  namespace OpenAIToolMessageParam {
989
- interface OpenAIChatCompletionContentPartTextParam {
849
+ interface UnionMember1 {
990
850
  text: string;
991
851
  type: 'text';
992
852
  }
993
- interface OpenAIChatCompletionContentPartImageParam {
994
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
995
- type: 'image_url';
996
- }
997
- namespace OpenAIChatCompletionContentPartImageParam {
998
- interface ImageURL {
999
- url: string;
1000
- detail?: string;
1001
- }
1002
- }
1003
853
  }
1004
854
  /**
1005
855
  * A message from the developer in an OpenAI-compatible chat completion request.
@@ -1008,7 +858,7 @@ export declare namespace CompletionListResponse {
1008
858
  /**
1009
859
  * The content of the developer message
1010
860
  */
1011
- content: string | Array<OpenAIDeveloperMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIDeveloperMessageParam.OpenAIChatCompletionContentPartImageParam>;
861
+ content: string | Array<OpenAIDeveloperMessageParam.UnionMember1>;
1012
862
  /**
1013
863
  * Must be "developer" to identify this as a developer message
1014
864
  */
@@ -1019,20 +869,10 @@ export declare namespace CompletionListResponse {
1019
869
  name?: string;
1020
870
  }
1021
871
  namespace OpenAIDeveloperMessageParam {
1022
- interface OpenAIChatCompletionContentPartTextParam {
872
+ interface UnionMember1 {
1023
873
  text: string;
1024
874
  type: 'text';
1025
875
  }
1026
- interface OpenAIChatCompletionContentPartImageParam {
1027
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
1028
- type: 'image_url';
1029
- }
1030
- namespace OpenAIChatCompletionContentPartImageParam {
1031
- interface ImageURL {
1032
- url: string;
1033
- detail?: string;
1034
- }
1035
- }
1036
876
  }
1037
877
  /**
1038
878
  * (Optional) The log probabilities for the tokens in the message
@@ -1134,7 +974,7 @@ export declare namespace CompletionListResponse {
1134
974
  * they are concatenated. The underlying Llama Stack code may also add other system
1135
975
  * messages (for example, for formatting tool definitions).
1136
976
  */
1137
- content: string | Array<OpenAISystemMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAISystemMessageParam.OpenAIChatCompletionContentPartImageParam>;
977
+ content: string | Array<OpenAISystemMessageParam.UnionMember1>;
1138
978
  /**
1139
979
  * Must be "system" to identify this as a system message
1140
980
  */
@@ -1145,20 +985,10 @@ export declare namespace CompletionListResponse {
1145
985
  name?: string;
1146
986
  }
1147
987
  namespace OpenAISystemMessageParam {
1148
- interface OpenAIChatCompletionContentPartTextParam {
988
+ interface UnionMember1 {
1149
989
  text: string;
1150
990
  type: 'text';
1151
991
  }
1152
- interface OpenAIChatCompletionContentPartImageParam {
1153
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
1154
- type: 'image_url';
1155
- }
1156
- namespace OpenAIChatCompletionContentPartImageParam {
1157
- interface ImageURL {
1158
- url: string;
1159
- detail?: string;
1160
- }
1161
- }
1162
992
  }
1163
993
  /**
1164
994
  * A message containing the model's (assistant) response in an OpenAI-compatible
@@ -1172,7 +1002,7 @@ export declare namespace CompletionListResponse {
1172
1002
  /**
1173
1003
  * The content of the model's response
1174
1004
  */
1175
- content?: string | Array<OpenAIAssistantMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIAssistantMessageParam.OpenAIChatCompletionContentPartImageParam>;
1005
+ content?: string | Array<OpenAIAssistantMessageParam.UnionMember1>;
1176
1006
  /**
1177
1007
  * (Optional) The name of the assistant message participant.
1178
1008
  */
@@ -1183,20 +1013,10 @@ export declare namespace CompletionListResponse {
1183
1013
  tool_calls?: Array<OpenAIAssistantMessageParam.ToolCall>;
1184
1014
  }
1185
1015
  namespace OpenAIAssistantMessageParam {
1186
- interface OpenAIChatCompletionContentPartTextParam {
1016
+ interface UnionMember1 {
1187
1017
  text: string;
1188
1018
  type: 'text';
1189
1019
  }
1190
- interface OpenAIChatCompletionContentPartImageParam {
1191
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
1192
- type: 'image_url';
1193
- }
1194
- namespace OpenAIChatCompletionContentPartImageParam {
1195
- interface ImageURL {
1196
- url: string;
1197
- detail?: string;
1198
- }
1199
- }
1200
1020
  interface ToolCall {
1201
1021
  type: 'function';
1202
1022
  id?: string;
@@ -1218,7 +1038,7 @@ export declare namespace CompletionListResponse {
1218
1038
  /**
1219
1039
  * The response content from the tool
1220
1040
  */
1221
- content: string | Array<OpenAIToolMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIToolMessageParam.OpenAIChatCompletionContentPartImageParam>;
1041
+ content: string | Array<OpenAIToolMessageParam.UnionMember1>;
1222
1042
  /**
1223
1043
  * Must be "tool" to identify this as a tool response
1224
1044
  */
@@ -1229,20 +1049,10 @@ export declare namespace CompletionListResponse {
1229
1049
  tool_call_id: string;
1230
1050
  }
1231
1051
  namespace OpenAIToolMessageParam {
1232
- interface OpenAIChatCompletionContentPartTextParam {
1052
+ interface UnionMember1 {
1233
1053
  text: string;
1234
1054
  type: 'text';
1235
1055
  }
1236
- interface OpenAIChatCompletionContentPartImageParam {
1237
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
1238
- type: 'image_url';
1239
- }
1240
- namespace OpenAIChatCompletionContentPartImageParam {
1241
- interface ImageURL {
1242
- url: string;
1243
- detail?: string;
1244
- }
1245
- }
1246
1056
  }
1247
1057
  /**
1248
1058
  * A message from the developer in an OpenAI-compatible chat completion request.
@@ -1251,7 +1061,7 @@ export declare namespace CompletionListResponse {
1251
1061
  /**
1252
1062
  * The content of the developer message
1253
1063
  */
1254
- content: string | Array<OpenAIDeveloperMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIDeveloperMessageParam.OpenAIChatCompletionContentPartImageParam>;
1064
+ content: string | Array<OpenAIDeveloperMessageParam.UnionMember1>;
1255
1065
  /**
1256
1066
  * Must be "developer" to identify this as a developer message
1257
1067
  */
@@ -1262,20 +1072,10 @@ export declare namespace CompletionListResponse {
1262
1072
  name?: string;
1263
1073
  }
1264
1074
  namespace OpenAIDeveloperMessageParam {
1265
- interface OpenAIChatCompletionContentPartTextParam {
1075
+ interface UnionMember1 {
1266
1076
  text: string;
1267
1077
  type: 'text';
1268
1078
  }
1269
- interface OpenAIChatCompletionContentPartImageParam {
1270
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
1271
- type: 'image_url';
1272
- }
1273
- namespace OpenAIChatCompletionContentPartImageParam {
1274
- interface ImageURL {
1275
- url: string;
1276
- detail?: string;
1277
- }
1278
- }
1279
1079
  }
1280
1080
  }
1281
1081
  }
@@ -1430,7 +1230,7 @@ export declare namespace CompletionCreateParams {
1430
1230
  * they are concatenated. The underlying Llama Stack code may also add other system
1431
1231
  * messages (for example, for formatting tool definitions).
1432
1232
  */
1433
- content: string | Array<OpenAISystemMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAISystemMessageParam.OpenAIChatCompletionContentPartImageParam>;
1233
+ content: string | Array<OpenAISystemMessageParam.UnionMember1>;
1434
1234
  /**
1435
1235
  * Must be "system" to identify this as a system message
1436
1236
  */
@@ -1441,20 +1241,10 @@ export declare namespace CompletionCreateParams {
1441
1241
  name?: string;
1442
1242
  }
1443
1243
  namespace OpenAISystemMessageParam {
1444
- interface OpenAIChatCompletionContentPartTextParam {
1244
+ interface UnionMember1 {
1445
1245
  text: string;
1446
1246
  type: 'text';
1447
1247
  }
1448
- interface OpenAIChatCompletionContentPartImageParam {
1449
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
1450
- type: 'image_url';
1451
- }
1452
- namespace OpenAIChatCompletionContentPartImageParam {
1453
- interface ImageURL {
1454
- url: string;
1455
- detail?: string;
1456
- }
1457
- }
1458
1248
  }
1459
1249
  /**
1460
1250
  * A message containing the model's (assistant) response in an OpenAI-compatible
@@ -1468,7 +1258,7 @@ export declare namespace CompletionCreateParams {
1468
1258
  /**
1469
1259
  * The content of the model's response
1470
1260
  */
1471
- content?: string | Array<OpenAIAssistantMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIAssistantMessageParam.OpenAIChatCompletionContentPartImageParam>;
1261
+ content?: string | Array<OpenAIAssistantMessageParam.UnionMember1>;
1472
1262
  /**
1473
1263
  * (Optional) The name of the assistant message participant.
1474
1264
  */
@@ -1479,20 +1269,10 @@ export declare namespace CompletionCreateParams {
1479
1269
  tool_calls?: Array<OpenAIAssistantMessageParam.ToolCall>;
1480
1270
  }
1481
1271
  namespace OpenAIAssistantMessageParam {
1482
- interface OpenAIChatCompletionContentPartTextParam {
1272
+ interface UnionMember1 {
1483
1273
  text: string;
1484
1274
  type: 'text';
1485
1275
  }
1486
- interface OpenAIChatCompletionContentPartImageParam {
1487
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
1488
- type: 'image_url';
1489
- }
1490
- namespace OpenAIChatCompletionContentPartImageParam {
1491
- interface ImageURL {
1492
- url: string;
1493
- detail?: string;
1494
- }
1495
- }
1496
1276
  interface ToolCall {
1497
1277
  type: 'function';
1498
1278
  id?: string;
@@ -1514,7 +1294,7 @@ export declare namespace CompletionCreateParams {
1514
1294
  /**
1515
1295
  * The response content from the tool
1516
1296
  */
1517
- content: string | Array<OpenAIToolMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIToolMessageParam.OpenAIChatCompletionContentPartImageParam>;
1297
+ content: string | Array<OpenAIToolMessageParam.UnionMember1>;
1518
1298
  /**
1519
1299
  * Must be "tool" to identify this as a tool response
1520
1300
  */
@@ -1525,20 +1305,10 @@ export declare namespace CompletionCreateParams {
1525
1305
  tool_call_id: string;
1526
1306
  }
1527
1307
  namespace OpenAIToolMessageParam {
1528
- interface OpenAIChatCompletionContentPartTextParam {
1308
+ interface UnionMember1 {
1529
1309
  text: string;
1530
1310
  type: 'text';
1531
1311
  }
1532
- interface OpenAIChatCompletionContentPartImageParam {
1533
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
1534
- type: 'image_url';
1535
- }
1536
- namespace OpenAIChatCompletionContentPartImageParam {
1537
- interface ImageURL {
1538
- url: string;
1539
- detail?: string;
1540
- }
1541
- }
1542
1312
  }
1543
1313
  /**
1544
1314
  * A message from the developer in an OpenAI-compatible chat completion request.
@@ -1547,7 +1317,7 @@ export declare namespace CompletionCreateParams {
1547
1317
  /**
1548
1318
  * The content of the developer message
1549
1319
  */
1550
- content: string | Array<OpenAIDeveloperMessageParam.OpenAIChatCompletionContentPartTextParam | OpenAIDeveloperMessageParam.OpenAIChatCompletionContentPartImageParam>;
1320
+ content: string | Array<OpenAIDeveloperMessageParam.UnionMember1>;
1551
1321
  /**
1552
1322
  * Must be "developer" to identify this as a developer message
1553
1323
  */
@@ -1558,20 +1328,10 @@ export declare namespace CompletionCreateParams {
1558
1328
  name?: string;
1559
1329
  }
1560
1330
  namespace OpenAIDeveloperMessageParam {
1561
- interface OpenAIChatCompletionContentPartTextParam {
1331
+ interface UnionMember1 {
1562
1332
  text: string;
1563
1333
  type: 'text';
1564
1334
  }
1565
- interface OpenAIChatCompletionContentPartImageParam {
1566
- image_url: OpenAIChatCompletionContentPartImageParam.ImageURL;
1567
- type: 'image_url';
1568
- }
1569
- namespace OpenAIChatCompletionContentPartImageParam {
1570
- interface ImageURL {
1571
- url: string;
1572
- detail?: string;
1573
- }
1574
- }
1575
1335
  }
1576
1336
  interface OpenAIResponseFormatText {
1577
1337
  type: 'text';