@aws-sdk/client-bedrock-runtime 3.934.0 → 3.936.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.
@@ -177,6 +177,10 @@ const _SCB = "SystemContentBlocks";
177
177
  const _SCBy = "SystemContentBlock";
178
178
  const _SL = "S3Location";
179
179
  const _SQEE = "ServiceQuotaExceededException";
180
+ const _SRB = "SearchResultBlock";
181
+ const _SRCB = "SearchResultContentBlock";
182
+ const _SRCBe = "SearchResultContentBlocks";
183
+ const _SRL = "SearchResultLocation";
180
184
  const _ST = "ServiceTier";
181
185
  const _STC = "SpecificToolChoice";
182
186
  const _STy = "SystemTool";
@@ -367,6 +371,9 @@ const _sO = "sortOrder";
367
371
  const _sODC = "s3OutputDataConfig";
368
372
  const _sPM = "streamProcessingMode";
369
373
  const _sR = "stopReason";
374
+ const _sRI = "searchResultIndex";
375
+ const _sRL = "searchResultLocation";
376
+ const _sRe = "searchResult";
370
377
  const _sRu = "supportingRules";
371
378
  const _sS = "stopSequences";
372
379
  const _sT = "submitTime";
@@ -429,7 +436,7 @@ const _wPU = "wordPolicyUnits";
429
436
  const n0 = "com.amazonaws.bedrockruntime";
430
437
  import { TypeRegistry } from "@smithy/core/schema";
431
438
  import { BedrockRuntimeServiceException as __BedrockRuntimeServiceException } from "../models/BedrockRuntimeServiceException";
432
- import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ModelErrorException as __ModelErrorException, ModelNotReadyException as __ModelNotReadyException, ModelStreamErrorException as __ModelStreamErrorException, ModelTimeoutException as __ModelTimeoutException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ServiceUnavailableException as __ServiceUnavailableException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/index";
439
+ import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, ModelErrorException as __ModelErrorException, ModelNotReadyException as __ModelNotReadyException, ModelStreamErrorException as __ModelStreamErrorException, ModelTimeoutException as __ModelTimeoutException, ResourceNotFoundException as __ResourceNotFoundException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ServiceUnavailableException as __ServiceUnavailableException, ThrottlingException as __ThrottlingException, ValidationException as __ValidationException, } from "../models/errors";
433
440
  export var AsyncInvokeMessage = [0, n0, _AIM, 8, 0];
434
441
  export var Body = [0, n0, _B, 8, 21];
435
442
  export var GuardrailAutomatedReasoningStatementLogicContent = [0, n0, _GARSLC, 8, 0];
@@ -490,8 +497,8 @@ export var Citation = [
490
497
  n0,
491
498
  _C,
492
499
  0,
493
- [_ti, _sC, _l],
494
- [0, () => CitationSourceContentList, () => CitationLocation],
500
+ [_ti, _s, _sC, _l],
501
+ [0, 0, () => CitationSourceContentList, () => CitationLocation],
495
502
  ];
496
503
  export var CitationsConfig = [3, n0, _CC, 0, [_en], [2]];
497
504
  export var CitationsContentBlock = [
@@ -507,8 +514,8 @@ export var CitationsDelta = [
507
514
  n0,
508
515
  _CD,
509
516
  0,
510
- [_ti, _sC, _l],
511
- [0, () => CitationSourceContentListDelta, () => CitationLocation],
517
+ [_ti, _s, _sC, _l],
518
+ [0, 0, () => CitationSourceContentListDelta, () => CitationLocation],
512
519
  ];
513
520
  export var CitationSourceContentDelta = [3, n0, _CSCD, 0, [_te], [0]];
514
521
  export var ConflictException = [
@@ -1256,6 +1263,16 @@ export var ResourceNotFoundException = [
1256
1263
  ];
1257
1264
  TypeRegistry.for(n0).registerError(ResourceNotFoundException, __ResourceNotFoundException);
1258
1265
  export var S3Location = [3, n0, _SL, 0, [_ur, _bO], [0, 0]];
1266
+ export var SearchResultBlock = [
1267
+ 3,
1268
+ n0,
1269
+ _SRB,
1270
+ 0,
1271
+ [_s, _ti, _co, _ci],
1272
+ [0, 0, () => SearchResultContentBlocks, () => CitationsConfig],
1273
+ ];
1274
+ export var SearchResultContentBlock = [3, n0, _SRCB, 0, [_te], [0]];
1275
+ export var SearchResultLocation = [3, n0, _SRL, 0, [_sRI, _sta, _end], [1, 1, 1]];
1259
1276
  export var ServiceQuotaExceededException = [
1260
1277
  -3,
1261
1278
  n0,
@@ -1415,6 +1432,7 @@ export var GuardrailTopicList = [1, n0, _GTL, 0, () => GuardrailTopic];
1415
1432
  export var Messages = [1, n0, _Me, 0, [() => Message, 0]];
1416
1433
  export var ModelOutputs = 64 | 0;
1417
1434
  export var NonEmptyStringList = 64 | 0;
1435
+ export var SearchResultContentBlocks = [1, n0, _SRCBe, 0, () => SearchResultContentBlock];
1418
1436
  export var SystemContentBlocks = [1, n0, _SCB, 0, [() => SystemContentBlock, 0]];
1419
1437
  export var TagList = [1, n0, _TL, 0, () => Tag];
1420
1438
  export var ToolResultBlocksDelta = [1, n0, _TRBD, 0, () => ToolResultBlockDelta];
@@ -1438,8 +1456,14 @@ export var CitationLocation = [
1438
1456
  n0,
1439
1457
  _CL,
1440
1458
  0,
1441
- [_w, _dC, _dP, _dCo],
1442
- [() => WebLocation, () => DocumentCharLocation, () => DocumentPageLocation, () => DocumentChunkLocation],
1459
+ [_w, _dC, _dP, _dCo, _sRL],
1460
+ [
1461
+ () => WebLocation,
1462
+ () => DocumentCharLocation,
1463
+ () => DocumentPageLocation,
1464
+ () => DocumentChunkLocation,
1465
+ () => SearchResultLocation,
1466
+ ],
1443
1467
  ];
1444
1468
  export var CitationSourceContent = [3, n0, _CSC, 0, [_te], [0]];
1445
1469
  export var ContentBlock = [
@@ -1447,7 +1471,7 @@ export var ContentBlock = [
1447
1471
  n0,
1448
1472
  _CBo,
1449
1473
  0,
1450
- [_te, _ima, _doc, _vi, _tU, _tR, _gCua, _cPa, _rC, _cC],
1474
+ [_te, _ima, _doc, _vi, _tU, _tR, _gCua, _cPa, _rC, _cC, _sRe],
1451
1475
  [
1452
1476
  0,
1453
1477
  () => ImageBlock,
@@ -1459,6 +1483,7 @@ export var ContentBlock = [
1459
1483
  () => CachePointBlock,
1460
1484
  [() => ReasoningContentBlock, 0],
1461
1485
  () => CitationsContentBlock,
1486
+ () => SearchResultBlock,
1462
1487
  ],
1463
1488
  ];
1464
1489
  export var ContentBlockDelta = [
@@ -1648,8 +1673,8 @@ export var ToolResultContentBlock = [
1648
1673
  n0,
1649
1674
  _TRCBo,
1650
1675
  0,
1651
- [_j, _te, _ima, _doc, _vi],
1652
- [15, 0, () => ImageBlock, () => DocumentBlock, () => VideoBlock],
1676
+ [_j, _te, _ima, _doc, _vi, _sRe],
1677
+ [15, 0, () => ImageBlock, () => DocumentBlock, () => VideoBlock, () => SearchResultBlock],
1653
1678
  ];
1654
1679
  export var VideoSource = [3, n0, _VS, 0, [_b, _sL], [21, () => S3Location]];
1655
1680
  export var ApplyGuardrail = [
@@ -135,6 +135,18 @@ declare const ConverseCommand_base: {
135
135
  * s3Location: "<S3Location>",
136
136
  * },
137
137
  * },
138
+ * searchResult: { // SearchResultBlock
139
+ * source: "STRING_VALUE", // required
140
+ * title: "STRING_VALUE", // required
141
+ * content: [ // SearchResultContentBlocks // required
142
+ * { // SearchResultContentBlock
143
+ * text: "STRING_VALUE", // required
144
+ * },
145
+ * ],
146
+ * citations: {
147
+ * enabled: true || false, // required
148
+ * },
149
+ * },
138
150
  * },
139
151
  * ],
140
152
  * status: "success" || "error",
@@ -173,6 +185,7 @@ declare const ConverseCommand_base: {
173
185
  * citations: [ // Citations
174
186
  * { // Citation
175
187
  * title: "STRING_VALUE",
188
+ * source: "STRING_VALUE",
176
189
  * sourceContent: [ // CitationSourceContentList
177
190
  * { // CitationSourceContent Union: only one key present
178
191
  * text: "STRING_VALUE",
@@ -198,10 +211,27 @@ declare const ConverseCommand_base: {
198
211
  * start: Number("int"),
199
212
  * end: Number("int"),
200
213
  * },
214
+ * searchResultLocation: { // SearchResultLocation
215
+ * searchResultIndex: Number("int"),
216
+ * start: Number("int"),
217
+ * end: Number("int"),
218
+ * },
201
219
  * },
202
220
  * },
203
221
  * ],
204
222
  * },
223
+ * searchResult: {
224
+ * source: "STRING_VALUE", // required
225
+ * title: "STRING_VALUE", // required
226
+ * content: [ // required
227
+ * {
228
+ * text: "STRING_VALUE", // required
229
+ * },
230
+ * ],
231
+ * citations: {
232
+ * enabled: true || false, // required
233
+ * },
234
+ * },
205
235
  * },
206
236
  * ],
207
237
  * },
@@ -384,6 +414,18 @@ declare const ConverseCommand_base: {
384
414
  * // s3Location: "<S3Location>",
385
415
  * // },
386
416
  * // },
417
+ * // searchResult: { // SearchResultBlock
418
+ * // source: "STRING_VALUE", // required
419
+ * // title: "STRING_VALUE", // required
420
+ * // content: [ // SearchResultContentBlocks // required
421
+ * // { // SearchResultContentBlock
422
+ * // text: "STRING_VALUE", // required
423
+ * // },
424
+ * // ],
425
+ * // citations: {
426
+ * // enabled: true || false, // required
427
+ * // },
428
+ * // },
387
429
  * // },
388
430
  * // ],
389
431
  * // status: "success" || "error",
@@ -422,6 +464,7 @@ declare const ConverseCommand_base: {
422
464
  * // citations: [ // Citations
423
465
  * // { // Citation
424
466
  * // title: "STRING_VALUE",
467
+ * // source: "STRING_VALUE",
425
468
  * // sourceContent: [ // CitationSourceContentList
426
469
  * // { // CitationSourceContent Union: only one key present
427
470
  * // text: "STRING_VALUE",
@@ -447,10 +490,27 @@ declare const ConverseCommand_base: {
447
490
  * // start: Number("int"),
448
491
  * // end: Number("int"),
449
492
  * // },
493
+ * // searchResultLocation: { // SearchResultLocation
494
+ * // searchResultIndex: Number("int"),
495
+ * // start: Number("int"),
496
+ * // end: Number("int"),
497
+ * // },
450
498
  * // },
451
499
  * // },
452
500
  * // ],
453
501
  * // },
502
+ * // searchResult: {
503
+ * // source: "STRING_VALUE", // required
504
+ * // title: "STRING_VALUE", // required
505
+ * // content: [ // required
506
+ * // {
507
+ * // text: "STRING_VALUE", // required
508
+ * // },
509
+ * // ],
510
+ * // citations: {
511
+ * // enabled: true || false, // required
512
+ * // },
513
+ * // },
454
514
  * // },
455
515
  * // ],
456
516
  * // },
@@ -135,6 +135,18 @@ declare const ConverseStreamCommand_base: {
135
135
  * s3Location: "<S3Location>",
136
136
  * },
137
137
  * },
138
+ * searchResult: { // SearchResultBlock
139
+ * source: "STRING_VALUE", // required
140
+ * title: "STRING_VALUE", // required
141
+ * content: [ // SearchResultContentBlocks // required
142
+ * { // SearchResultContentBlock
143
+ * text: "STRING_VALUE", // required
144
+ * },
145
+ * ],
146
+ * citations: {
147
+ * enabled: true || false, // required
148
+ * },
149
+ * },
138
150
  * },
139
151
  * ],
140
152
  * status: "success" || "error",
@@ -173,6 +185,7 @@ declare const ConverseStreamCommand_base: {
173
185
  * citations: [ // Citations
174
186
  * { // Citation
175
187
  * title: "STRING_VALUE",
188
+ * source: "STRING_VALUE",
176
189
  * sourceContent: [ // CitationSourceContentList
177
190
  * { // CitationSourceContent Union: only one key present
178
191
  * text: "STRING_VALUE",
@@ -198,10 +211,27 @@ declare const ConverseStreamCommand_base: {
198
211
  * start: Number("int"),
199
212
  * end: Number("int"),
200
213
  * },
214
+ * searchResultLocation: { // SearchResultLocation
215
+ * searchResultIndex: Number("int"),
216
+ * start: Number("int"),
217
+ * end: Number("int"),
218
+ * },
201
219
  * },
202
220
  * },
203
221
  * ],
204
222
  * },
223
+ * searchResult: {
224
+ * source: "STRING_VALUE", // required
225
+ * title: "STRING_VALUE", // required
226
+ * content: [ // required
227
+ * {
228
+ * text: "STRING_VALUE", // required
229
+ * },
230
+ * ],
231
+ * citations: {
232
+ * enabled: true || false, // required
233
+ * },
234
+ * },
205
235
  * },
206
236
  * ],
207
237
  * },
@@ -325,6 +355,7 @@ declare const ConverseStreamCommand_base: {
325
355
  * // },
326
356
  * // citation: { // CitationsDelta
327
357
  * // title: "STRING_VALUE",
358
+ * // source: "STRING_VALUE",
328
359
  * // sourceContent: [ // CitationSourceContentListDelta
329
360
  * // { // CitationSourceContentDelta
330
361
  * // text: "STRING_VALUE",
@@ -350,6 +381,11 @@ declare const ConverseStreamCommand_base: {
350
381
  * // start: Number("int"),
351
382
  * // end: Number("int"),
352
383
  * // },
384
+ * // searchResultLocation: { // SearchResultLocation
385
+ * // searchResultIndex: Number("int"),
386
+ * // start: Number("int"),
387
+ * // end: Number("int"),
388
+ * // },
353
389
  * // },
354
390
  * // },
355
391
  * // },
@@ -140,6 +140,18 @@ declare const CountTokensCommand_base: {
140
140
  * s3Location: "<S3Location>",
141
141
  * },
142
142
  * },
143
+ * searchResult: { // SearchResultBlock
144
+ * source: "STRING_VALUE", // required
145
+ * title: "STRING_VALUE", // required
146
+ * content: [ // SearchResultContentBlocks // required
147
+ * { // SearchResultContentBlock
148
+ * text: "STRING_VALUE", // required
149
+ * },
150
+ * ],
151
+ * citations: {
152
+ * enabled: true || false, // required
153
+ * },
154
+ * },
143
155
  * },
144
156
  * ],
145
157
  * status: "success" || "error",
@@ -178,6 +190,7 @@ declare const CountTokensCommand_base: {
178
190
  * citations: [ // Citations
179
191
  * { // Citation
180
192
  * title: "STRING_VALUE",
193
+ * source: "STRING_VALUE",
181
194
  * sourceContent: [ // CitationSourceContentList
182
195
  * { // CitationSourceContent Union: only one key present
183
196
  * text: "STRING_VALUE",
@@ -203,10 +216,27 @@ declare const CountTokensCommand_base: {
203
216
  * start: Number("int"),
204
217
  * end: Number("int"),
205
218
  * },
219
+ * searchResultLocation: { // SearchResultLocation
220
+ * searchResultIndex: Number("int"),
221
+ * start: Number("int"),
222
+ * end: Number("int"),
223
+ * },
206
224
  * },
207
225
  * },
208
226
  * ],
209
227
  * },
228
+ * searchResult: {
229
+ * source: "STRING_VALUE", // required
230
+ * title: "STRING_VALUE", // required
231
+ * content: [ // required
232
+ * {
233
+ * text: "STRING_VALUE", // required
234
+ * },
235
+ * ],
236
+ * citations: {
237
+ * enabled: true || false, // required
238
+ * },
239
+ * },
210
240
  * },
211
241
  * ],
212
242
  * },
@@ -10,5 +10,7 @@ export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { BedrockRuntimeExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
12
  export * from "./pagination";
13
- export * from "./models";
13
+ export * from "./models/enums";
14
+ export * from "./models/errors";
15
+ export type * from "./models/models_0";
14
16
  export { BedrockRuntimeServiceException } from "./models/BedrockRuntimeServiceException";