aws-sdk 2.1629.0 → 2.1631.0

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.
@@ -12,6 +12,262 @@
12
12
  "uid": "bedrock-runtime-2023-09-30"
13
13
  },
14
14
  "operations": {
15
+ "Converse": {
16
+ "http": {
17
+ "requestUri": "/model/{modelId}/converse",
18
+ "responseCode": 200
19
+ },
20
+ "input": {
21
+ "type": "structure",
22
+ "required": [
23
+ "modelId",
24
+ "messages"
25
+ ],
26
+ "members": {
27
+ "modelId": {
28
+ "location": "uri",
29
+ "locationName": "modelId"
30
+ },
31
+ "messages": {
32
+ "shape": "S3"
33
+ },
34
+ "system": {
35
+ "shape": "Sl"
36
+ },
37
+ "inferenceConfig": {
38
+ "shape": "So"
39
+ },
40
+ "toolConfig": {
41
+ "shape": "St"
42
+ },
43
+ "additionalModelRequestFields": {
44
+ "shape": "Sg"
45
+ },
46
+ "additionalModelResponseFieldPaths": {
47
+ "type": "list",
48
+ "member": {}
49
+ }
50
+ }
51
+ },
52
+ "output": {
53
+ "type": "structure",
54
+ "required": [
55
+ "output",
56
+ "stopReason",
57
+ "usage",
58
+ "metrics"
59
+ ],
60
+ "members": {
61
+ "output": {
62
+ "type": "structure",
63
+ "members": {
64
+ "message": {
65
+ "shape": "S4"
66
+ }
67
+ },
68
+ "union": true
69
+ },
70
+ "stopReason": {},
71
+ "usage": {
72
+ "shape": "S17"
73
+ },
74
+ "metrics": {
75
+ "type": "structure",
76
+ "required": [
77
+ "latencyMs"
78
+ ],
79
+ "members": {
80
+ "latencyMs": {
81
+ "type": "long"
82
+ }
83
+ }
84
+ },
85
+ "additionalModelResponseFields": {
86
+ "shape": "Sg"
87
+ }
88
+ }
89
+ }
90
+ },
91
+ "ConverseStream": {
92
+ "http": {
93
+ "requestUri": "/model/{modelId}/converse-stream",
94
+ "responseCode": 200
95
+ },
96
+ "input": {
97
+ "type": "structure",
98
+ "required": [
99
+ "modelId",
100
+ "messages"
101
+ ],
102
+ "members": {
103
+ "modelId": {
104
+ "location": "uri",
105
+ "locationName": "modelId"
106
+ },
107
+ "messages": {
108
+ "shape": "S3"
109
+ },
110
+ "system": {
111
+ "shape": "Sl"
112
+ },
113
+ "inferenceConfig": {
114
+ "shape": "So"
115
+ },
116
+ "toolConfig": {
117
+ "shape": "St"
118
+ },
119
+ "additionalModelRequestFields": {
120
+ "shape": "Sg"
121
+ },
122
+ "additionalModelResponseFieldPaths": {
123
+ "type": "list",
124
+ "member": {}
125
+ }
126
+ }
127
+ },
128
+ "output": {
129
+ "type": "structure",
130
+ "members": {
131
+ "stream": {
132
+ "type": "structure",
133
+ "members": {
134
+ "messageStart": {
135
+ "type": "structure",
136
+ "required": [
137
+ "role"
138
+ ],
139
+ "members": {
140
+ "role": {}
141
+ },
142
+ "event": true
143
+ },
144
+ "contentBlockStart": {
145
+ "type": "structure",
146
+ "required": [
147
+ "start",
148
+ "contentBlockIndex"
149
+ ],
150
+ "members": {
151
+ "start": {
152
+ "type": "structure",
153
+ "members": {
154
+ "toolUse": {
155
+ "type": "structure",
156
+ "required": [
157
+ "toolUseId",
158
+ "name"
159
+ ],
160
+ "members": {
161
+ "toolUseId": {},
162
+ "name": {}
163
+ }
164
+ }
165
+ },
166
+ "union": true
167
+ },
168
+ "contentBlockIndex": {
169
+ "type": "integer"
170
+ }
171
+ },
172
+ "event": true
173
+ },
174
+ "contentBlockDelta": {
175
+ "type": "structure",
176
+ "required": [
177
+ "delta",
178
+ "contentBlockIndex"
179
+ ],
180
+ "members": {
181
+ "delta": {
182
+ "type": "structure",
183
+ "members": {
184
+ "text": {},
185
+ "toolUse": {
186
+ "type": "structure",
187
+ "required": [
188
+ "input"
189
+ ],
190
+ "members": {
191
+ "input": {}
192
+ }
193
+ }
194
+ },
195
+ "union": true
196
+ },
197
+ "contentBlockIndex": {
198
+ "type": "integer"
199
+ }
200
+ },
201
+ "event": true
202
+ },
203
+ "contentBlockStop": {
204
+ "type": "structure",
205
+ "required": [
206
+ "contentBlockIndex"
207
+ ],
208
+ "members": {
209
+ "contentBlockIndex": {
210
+ "type": "integer"
211
+ }
212
+ },
213
+ "event": true
214
+ },
215
+ "messageStop": {
216
+ "type": "structure",
217
+ "required": [
218
+ "stopReason"
219
+ ],
220
+ "members": {
221
+ "stopReason": {},
222
+ "additionalModelResponseFields": {
223
+ "shape": "Sg"
224
+ }
225
+ },
226
+ "event": true
227
+ },
228
+ "metadata": {
229
+ "type": "structure",
230
+ "required": [
231
+ "usage",
232
+ "metrics"
233
+ ],
234
+ "members": {
235
+ "usage": {
236
+ "shape": "S17"
237
+ },
238
+ "metrics": {
239
+ "type": "structure",
240
+ "required": [
241
+ "latencyMs"
242
+ ],
243
+ "members": {
244
+ "latencyMs": {
245
+ "type": "long"
246
+ }
247
+ }
248
+ }
249
+ },
250
+ "event": true
251
+ },
252
+ "internalServerException": {
253
+ "shape": "S1u"
254
+ },
255
+ "modelStreamErrorException": {
256
+ "shape": "S1w"
257
+ },
258
+ "validationException": {
259
+ "shape": "S1y"
260
+ },
261
+ "throttlingException": {
262
+ "shape": "S1z"
263
+ }
264
+ },
265
+ "eventstream": true
266
+ }
267
+ },
268
+ "payload": "stream"
269
+ }
270
+ },
15
271
  "InvokeModel": {
16
272
  "http": {
17
273
  "requestUri": "/model/{modelId}/invoke",
@@ -25,7 +281,7 @@
25
281
  ],
26
282
  "members": {
27
283
  "body": {
28
- "shape": "S2"
284
+ "shape": "S21"
29
285
  },
30
286
  "contentType": {
31
287
  "location": "header",
@@ -62,7 +318,7 @@
62
318
  ],
63
319
  "members": {
64
320
  "body": {
65
- "shape": "S2"
321
+ "shape": "S21"
66
322
  },
67
323
  "contentType": {
68
324
  "location": "header",
@@ -85,7 +341,7 @@
85
341
  ],
86
342
  "members": {
87
343
  "body": {
88
- "shape": "S2"
344
+ "shape": "S21"
89
345
  },
90
346
  "contentType": {
91
347
  "location": "header",
@@ -136,52 +392,16 @@
136
392
  "sensitive": true
137
393
  },
138
394
  "internalServerException": {
139
- "type": "structure",
140
- "members": {
141
- "message": {}
142
- },
143
- "error": {
144
- "httpStatusCode": 500
145
- },
146
- "exception": true,
147
- "fault": true
395
+ "shape": "S1u"
148
396
  },
149
397
  "modelStreamErrorException": {
150
- "type": "structure",
151
- "members": {
152
- "message": {},
153
- "originalStatusCode": {
154
- "type": "integer"
155
- },
156
- "originalMessage": {}
157
- },
158
- "error": {
159
- "httpStatusCode": 424,
160
- "senderFault": true
161
- },
162
- "exception": true
398
+ "shape": "S1w"
163
399
  },
164
400
  "validationException": {
165
- "type": "structure",
166
- "members": {
167
- "message": {}
168
- },
169
- "error": {
170
- "httpStatusCode": 400,
171
- "senderFault": true
172
- },
173
- "exception": true
401
+ "shape": "S1y"
174
402
  },
175
403
  "throttlingException": {
176
- "type": "structure",
177
- "members": {
178
- "message": {}
179
- },
180
- "error": {
181
- "httpStatusCode": 429,
182
- "senderFault": true
183
- },
184
- "exception": true
404
+ "shape": "S1z"
185
405
  },
186
406
  "modelTimeoutException": {
187
407
  "type": "structure",
@@ -207,7 +427,257 @@
207
427
  }
208
428
  },
209
429
  "shapes": {
210
- "S2": {
430
+ "S3": {
431
+ "type": "list",
432
+ "member": {
433
+ "shape": "S4"
434
+ }
435
+ },
436
+ "S4": {
437
+ "type": "structure",
438
+ "required": [
439
+ "role",
440
+ "content"
441
+ ],
442
+ "members": {
443
+ "role": {},
444
+ "content": {
445
+ "type": "list",
446
+ "member": {
447
+ "type": "structure",
448
+ "members": {
449
+ "text": {},
450
+ "image": {
451
+ "shape": "S9"
452
+ },
453
+ "toolUse": {
454
+ "type": "structure",
455
+ "required": [
456
+ "toolUseId",
457
+ "name",
458
+ "input"
459
+ ],
460
+ "members": {
461
+ "toolUseId": {},
462
+ "name": {},
463
+ "input": {
464
+ "shape": "Sg"
465
+ }
466
+ }
467
+ },
468
+ "toolResult": {
469
+ "type": "structure",
470
+ "required": [
471
+ "toolUseId",
472
+ "content"
473
+ ],
474
+ "members": {
475
+ "toolUseId": {},
476
+ "content": {
477
+ "type": "list",
478
+ "member": {
479
+ "type": "structure",
480
+ "members": {
481
+ "json": {
482
+ "shape": "Sg"
483
+ },
484
+ "text": {},
485
+ "image": {
486
+ "shape": "S9"
487
+ }
488
+ },
489
+ "union": true
490
+ }
491
+ },
492
+ "status": {}
493
+ }
494
+ }
495
+ },
496
+ "union": true
497
+ }
498
+ }
499
+ }
500
+ },
501
+ "S9": {
502
+ "type": "structure",
503
+ "required": [
504
+ "format",
505
+ "source"
506
+ ],
507
+ "members": {
508
+ "format": {},
509
+ "source": {
510
+ "type": "structure",
511
+ "members": {
512
+ "bytes": {
513
+ "type": "blob"
514
+ }
515
+ },
516
+ "union": true
517
+ }
518
+ }
519
+ },
520
+ "Sg": {
521
+ "type": "structure",
522
+ "members": {},
523
+ "document": true
524
+ },
525
+ "Sl": {
526
+ "type": "list",
527
+ "member": {
528
+ "type": "structure",
529
+ "members": {
530
+ "text": {}
531
+ },
532
+ "union": true
533
+ }
534
+ },
535
+ "So": {
536
+ "type": "structure",
537
+ "members": {
538
+ "maxTokens": {
539
+ "type": "integer"
540
+ },
541
+ "temperature": {
542
+ "type": "float"
543
+ },
544
+ "topP": {
545
+ "type": "float"
546
+ },
547
+ "stopSequences": {
548
+ "type": "list",
549
+ "member": {}
550
+ }
551
+ }
552
+ },
553
+ "St": {
554
+ "type": "structure",
555
+ "required": [
556
+ "tools"
557
+ ],
558
+ "members": {
559
+ "tools": {
560
+ "type": "list",
561
+ "member": {
562
+ "type": "structure",
563
+ "members": {
564
+ "toolSpec": {
565
+ "type": "structure",
566
+ "required": [
567
+ "name",
568
+ "inputSchema"
569
+ ],
570
+ "members": {
571
+ "name": {},
572
+ "description": {},
573
+ "inputSchema": {
574
+ "type": "structure",
575
+ "members": {
576
+ "json": {
577
+ "shape": "Sg"
578
+ }
579
+ },
580
+ "union": true
581
+ }
582
+ }
583
+ }
584
+ },
585
+ "union": true
586
+ }
587
+ },
588
+ "toolChoice": {
589
+ "type": "structure",
590
+ "members": {
591
+ "auto": {
592
+ "type": "structure",
593
+ "members": {}
594
+ },
595
+ "any": {
596
+ "type": "structure",
597
+ "members": {}
598
+ },
599
+ "tool": {
600
+ "type": "structure",
601
+ "required": [
602
+ "name"
603
+ ],
604
+ "members": {
605
+ "name": {}
606
+ }
607
+ }
608
+ },
609
+ "union": true
610
+ }
611
+ }
612
+ },
613
+ "S17": {
614
+ "type": "structure",
615
+ "required": [
616
+ "inputTokens",
617
+ "outputTokens",
618
+ "totalTokens"
619
+ ],
620
+ "members": {
621
+ "inputTokens": {
622
+ "type": "integer"
623
+ },
624
+ "outputTokens": {
625
+ "type": "integer"
626
+ },
627
+ "totalTokens": {
628
+ "type": "integer"
629
+ }
630
+ }
631
+ },
632
+ "S1u": {
633
+ "type": "structure",
634
+ "members": {
635
+ "message": {}
636
+ },
637
+ "error": {
638
+ "httpStatusCode": 500
639
+ },
640
+ "exception": true,
641
+ "fault": true
642
+ },
643
+ "S1w": {
644
+ "type": "structure",
645
+ "members": {
646
+ "message": {},
647
+ "originalStatusCode": {
648
+ "type": "integer"
649
+ },
650
+ "originalMessage": {}
651
+ },
652
+ "error": {
653
+ "httpStatusCode": 424,
654
+ "senderFault": true
655
+ },
656
+ "exception": true
657
+ },
658
+ "S1y": {
659
+ "type": "structure",
660
+ "members": {
661
+ "message": {}
662
+ },
663
+ "error": {
664
+ "httpStatusCode": 400,
665
+ "senderFault": true
666
+ },
667
+ "exception": true
668
+ },
669
+ "S1z": {
670
+ "type": "structure",
671
+ "members": {
672
+ "message": {}
673
+ },
674
+ "error": {
675
+ "httpStatusCode": 429,
676
+ "senderFault": true
677
+ },
678
+ "exception": true
679
+ },
680
+ "S21": {
211
681
  "type": "blob",
212
682
  "sensitive": true
213
683
  }