@aws-sdk/client-bedrock-runtime 3.1100.0 → 3.1102.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.
- package/dist-cjs/index.js +38 -13
- package/dist-es/schemas/schemas_0.js +34 -12
- package/dist-types/commands/ConverseCommand.d.ts +29 -0
- package/dist-types/commands/ConverseStreamCommand.d.ts +15 -0
- package/dist-types/commands/CountTokensCommand.d.ts +14 -0
- package/dist-types/models/models_0.d.ts +119 -1
- package/dist-types/schemas/schemas_0.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +76 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +3 -0
- package/package.json +5 -5
package/dist-cjs/index.js
CHANGED
|
@@ -90,7 +90,7 @@ const commonParams = {
|
|
|
90
90
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
var version = "3.
|
|
93
|
+
var version = "3.1101.0";
|
|
94
94
|
var packageInfo = {
|
|
95
95
|
version: version};
|
|
96
96
|
|
|
@@ -546,15 +546,18 @@ const _STC = "SpecificToolChoice";
|
|
|
546
546
|
const _STy = "SystemTool";
|
|
547
547
|
const _SUE = "ServiceUnavailableException";
|
|
548
548
|
const _T = "Tag";
|
|
549
|
+
const _TAB = "ToolAdditionBlock";
|
|
549
550
|
const _TC = "ToolConfiguration";
|
|
550
551
|
const _TCo = "ToolChoice";
|
|
551
552
|
const _TE = "ThrottlingException";
|
|
552
553
|
const _TIS = "ToolInputSchema";
|
|
553
554
|
const _TL = "TagList";
|
|
554
|
-
const
|
|
555
|
+
const _TR = "ToolReference";
|
|
556
|
+
const _TRB = "ToolRemovalBlock";
|
|
555
557
|
const _TRBD = "ToolResultBlocksDelta";
|
|
556
558
|
const _TRBDo = "ToolResultBlockDelta";
|
|
557
559
|
const _TRBS = "ToolResultBlockStart";
|
|
560
|
+
const _TRBo = "ToolResultBlock";
|
|
558
561
|
const _TRCB = "ToolResultContentBlocks";
|
|
559
562
|
const _TRCBo = "ToolResultContentBlock";
|
|
560
563
|
const _TS = "ToolSpecification";
|
|
@@ -643,6 +646,7 @@ const _doc = "document";
|
|
|
643
646
|
const _e = "error";
|
|
644
647
|
const _eO = "endOffset";
|
|
645
648
|
const _eT = "endTime";
|
|
649
|
+
const _ef = "effort";
|
|
646
650
|
const _en = "enabled";
|
|
647
651
|
const _end = "end";
|
|
648
652
|
const _ent = "entities";
|
|
@@ -750,6 +754,7 @@ const _sIP = "sensitiveInformationPolicy";
|
|
|
750
754
|
const _sIPFU = "sensitiveInformationPolicyFreeUnits";
|
|
751
755
|
const _sIPU = "sensitiveInformationPolicyUnits";
|
|
752
756
|
const _sL = "s3Location";
|
|
757
|
+
const _sN = "serverName";
|
|
753
758
|
const _sO = "sortOrder";
|
|
754
759
|
const _sODC = "s3OutputDataConfig";
|
|
755
760
|
const _sPM = "streamProcessingMode";
|
|
@@ -782,7 +787,8 @@ const _stri = "strict";
|
|
|
782
787
|
const _stru = "structure";
|
|
783
788
|
const _sy = "system";
|
|
784
789
|
const _t = "ttl";
|
|
785
|
-
const _tA = "
|
|
790
|
+
const _tA = "toolAddition";
|
|
791
|
+
const _tAr = "translationAmbiguous";
|
|
786
792
|
const _tC = "toolConfig";
|
|
787
793
|
const _tCe = "textCharacters";
|
|
788
794
|
const _tCo = "toolChoice";
|
|
@@ -793,6 +799,7 @@ const _tP = "topicPolicy";
|
|
|
793
799
|
const _tPU = "topicPolicyUnits";
|
|
794
800
|
const _tPo = "topP";
|
|
795
801
|
const _tR = "toolResult";
|
|
802
|
+
const _tRo = "toolRemoval";
|
|
796
803
|
const _tS = "toolSpec";
|
|
797
804
|
const _tT = "totalTokens";
|
|
798
805
|
const _tU = "textUnits";
|
|
@@ -804,8 +811,8 @@ const _tem = "temperature";
|
|
|
804
811
|
const _th = "threshold";
|
|
805
812
|
const _ti = "title";
|
|
806
813
|
const _to = "total";
|
|
807
|
-
const _too = "
|
|
808
|
-
const _tool = "
|
|
814
|
+
const _too = "tool";
|
|
815
|
+
const _tool = "tools";
|
|
809
816
|
const _top = "topics";
|
|
810
817
|
const _tr = "trace";
|
|
811
818
|
const _tra = "translation";
|
|
@@ -1505,8 +1512,8 @@ var MessageStopEvent$ = [3, n0, _MSEe,
|
|
|
1505
1512
|
];
|
|
1506
1513
|
var OutputConfig$ = [3, n0, _OC,
|
|
1507
1514
|
0,
|
|
1508
|
-
[_tF],
|
|
1509
|
-
[[() => OutputFormat$, 0]]
|
|
1515
|
+
[_tF, _ef],
|
|
1516
|
+
[[() => OutputFormat$, 0], 0]
|
|
1510
1517
|
];
|
|
1511
1518
|
var OutputFormat$ = [3, n0, _OF,
|
|
1512
1519
|
0,
|
|
@@ -1588,12 +1595,27 @@ var TokenUsage$ = [3, n0, _TU,
|
|
|
1588
1595
|
[_iT, _oT, _tT, _cRIT, _cWIT, _cD],
|
|
1589
1596
|
[1, 1, 1, 1, 1, () => CacheDetailsList], 3
|
|
1590
1597
|
];
|
|
1598
|
+
var ToolAdditionBlock$ = [3, n0, _TAB,
|
|
1599
|
+
0,
|
|
1600
|
+
[_too],
|
|
1601
|
+
[() => ToolReference$], 1
|
|
1602
|
+
];
|
|
1591
1603
|
var ToolConfiguration$ = [3, n0, _TC,
|
|
1592
1604
|
0,
|
|
1593
|
-
[
|
|
1605
|
+
[_tool, _tCo],
|
|
1594
1606
|
[() => Tools, () => ToolChoice$], 1
|
|
1595
1607
|
];
|
|
1596
|
-
var
|
|
1608
|
+
var ToolReference$ = [3, n0, _TR,
|
|
1609
|
+
0,
|
|
1610
|
+
[_ty, _n, _sN],
|
|
1611
|
+
[0, 0, 0]
|
|
1612
|
+
];
|
|
1613
|
+
var ToolRemovalBlock$ = [3, n0, _TRB,
|
|
1614
|
+
0,
|
|
1615
|
+
[_too],
|
|
1616
|
+
[() => ToolReference$], 1
|
|
1617
|
+
];
|
|
1618
|
+
var ToolResultBlock$ = [3, n0, _TRBo,
|
|
1597
1619
|
0,
|
|
1598
1620
|
[_tUI, _co, _st, _ty],
|
|
1599
1621
|
[0, [() => ToolResultContentBlocks, 0], 0, 0], 2
|
|
@@ -1813,8 +1835,8 @@ var CitationSourceContent$ = [4, n0, _CSC,
|
|
|
1813
1835
|
];
|
|
1814
1836
|
var ContentBlock$ = [4, n0, _CBo,
|
|
1815
1837
|
0,
|
|
1816
|
-
[_te, _ima, _doc, _vi, _au, _tUo, _tR, _gCua, _cPa, _rC, _cC, _sRe],
|
|
1817
|
-
[0, [() => ImageBlock$, 0], () => DocumentBlock$, () => VideoBlock$, [() => AudioBlock$, 0], () => ToolUseBlock$, [() => ToolResultBlock$, 0], [() => GuardrailConverseContentBlock$, 0], () => CachePointBlock$, [() => ReasoningContentBlock$, 0], () => CitationsContentBlock$, () => SearchResultBlock$]
|
|
1838
|
+
[_te, _ima, _doc, _vi, _au, _tUo, _tR, _gCua, _cPa, _rC, _cC, _sRe, _tA, _tRo],
|
|
1839
|
+
[0, [() => ImageBlock$, 0], () => DocumentBlock$, () => VideoBlock$, [() => AudioBlock$, 0], () => ToolUseBlock$, [() => ToolResultBlock$, 0], [() => GuardrailConverseContentBlock$, 0], () => CachePointBlock$, [() => ReasoningContentBlock$, 0], () => CitationsContentBlock$, () => SearchResultBlock$, () => ToolAdditionBlock$, () => ToolRemovalBlock$]
|
|
1818
1840
|
];
|
|
1819
1841
|
var ContentBlockDelta$ = [4, n0, _CBD,
|
|
1820
1842
|
0,
|
|
@@ -1853,7 +1875,7 @@ var DocumentSource$ = [4, n0, _DS,
|
|
|
1853
1875
|
];
|
|
1854
1876
|
var GuardrailAutomatedReasoningFinding$ = [4, n0, _GARF,
|
|
1855
1877
|
0,
|
|
1856
|
-
[_va, _in, _sa, _imp,
|
|
1878
|
+
[_va, _in, _sa, _imp, _tAr, _tCoo, _nTo],
|
|
1857
1879
|
[[() => GuardrailAutomatedReasoningValidFinding$, 0], [() => GuardrailAutomatedReasoningInvalidFinding$, 0], [() => GuardrailAutomatedReasoningSatisfiableFinding$, 0], [() => GuardrailAutomatedReasoningImpossibleFinding$, 0], [() => GuardrailAutomatedReasoningTranslationAmbiguousFinding$, 0], () => GuardrailAutomatedReasoningTooComplexFinding$, () => GuardrailAutomatedReasoningNoTranslationsFinding$]
|
|
1858
1880
|
];
|
|
1859
1881
|
var GuardrailChecksContentBlock$ = [4, n0, _GCCB,
|
|
@@ -1933,7 +1955,7 @@ var Tool$ = [4, n0, _Too,
|
|
|
1933
1955
|
];
|
|
1934
1956
|
var ToolChoice$ = [4, n0, _TCo,
|
|
1935
1957
|
0,
|
|
1936
|
-
[_aut, _an,
|
|
1958
|
+
[_aut, _an, _too],
|
|
1937
1959
|
[() => AutoToolChoice$, () => AnyToolChoice$, () => SpecificToolChoice$]
|
|
1938
1960
|
];
|
|
1939
1961
|
var ToolInputSchema$ = [4, n0, _TIS,
|
|
@@ -2788,9 +2810,12 @@ exports.ThrottlingException = ThrottlingException;
|
|
|
2788
2810
|
exports.ThrottlingException$ = ThrottlingException$;
|
|
2789
2811
|
exports.TokenUsage$ = TokenUsage$;
|
|
2790
2812
|
exports.Tool$ = Tool$;
|
|
2813
|
+
exports.ToolAdditionBlock$ = ToolAdditionBlock$;
|
|
2791
2814
|
exports.ToolChoice$ = ToolChoice$;
|
|
2792
2815
|
exports.ToolConfiguration$ = ToolConfiguration$;
|
|
2793
2816
|
exports.ToolInputSchema$ = ToolInputSchema$;
|
|
2817
|
+
exports.ToolReference$ = ToolReference$;
|
|
2818
|
+
exports.ToolRemovalBlock$ = ToolRemovalBlock$;
|
|
2794
2819
|
exports.ToolResultBlock$ = ToolResultBlock$;
|
|
2795
2820
|
exports.ToolResultBlockDelta$ = ToolResultBlockDelta$;
|
|
2796
2821
|
exports.ToolResultBlockStart$ = ToolResultBlockStart$;
|
|
@@ -231,15 +231,18 @@ const _STC = "SpecificToolChoice";
|
|
|
231
231
|
const _STy = "SystemTool";
|
|
232
232
|
const _SUE = "ServiceUnavailableException";
|
|
233
233
|
const _T = "Tag";
|
|
234
|
+
const _TAB = "ToolAdditionBlock";
|
|
234
235
|
const _TC = "ToolConfiguration";
|
|
235
236
|
const _TCo = "ToolChoice";
|
|
236
237
|
const _TE = "ThrottlingException";
|
|
237
238
|
const _TIS = "ToolInputSchema";
|
|
238
239
|
const _TL = "TagList";
|
|
239
|
-
const
|
|
240
|
+
const _TR = "ToolReference";
|
|
241
|
+
const _TRB = "ToolRemovalBlock";
|
|
240
242
|
const _TRBD = "ToolResultBlocksDelta";
|
|
241
243
|
const _TRBDo = "ToolResultBlockDelta";
|
|
242
244
|
const _TRBS = "ToolResultBlockStart";
|
|
245
|
+
const _TRBo = "ToolResultBlock";
|
|
243
246
|
const _TRCB = "ToolResultContentBlocks";
|
|
244
247
|
const _TRCBo = "ToolResultContentBlock";
|
|
245
248
|
const _TS = "ToolSpecification";
|
|
@@ -328,6 +331,7 @@ const _doc = "document";
|
|
|
328
331
|
const _e = "error";
|
|
329
332
|
const _eO = "endOffset";
|
|
330
333
|
const _eT = "endTime";
|
|
334
|
+
const _ef = "effort";
|
|
331
335
|
const _en = "enabled";
|
|
332
336
|
const _end = "end";
|
|
333
337
|
const _ent = "entities";
|
|
@@ -435,6 +439,7 @@ const _sIP = "sensitiveInformationPolicy";
|
|
|
435
439
|
const _sIPFU = "sensitiveInformationPolicyFreeUnits";
|
|
436
440
|
const _sIPU = "sensitiveInformationPolicyUnits";
|
|
437
441
|
const _sL = "s3Location";
|
|
442
|
+
const _sN = "serverName";
|
|
438
443
|
const _sO = "sortOrder";
|
|
439
444
|
const _sODC = "s3OutputDataConfig";
|
|
440
445
|
const _sPM = "streamProcessingMode";
|
|
@@ -467,7 +472,8 @@ const _stri = "strict";
|
|
|
467
472
|
const _stru = "structure";
|
|
468
473
|
const _sy = "system";
|
|
469
474
|
const _t = "ttl";
|
|
470
|
-
const _tA = "
|
|
475
|
+
const _tA = "toolAddition";
|
|
476
|
+
const _tAr = "translationAmbiguous";
|
|
471
477
|
const _tC = "toolConfig";
|
|
472
478
|
const _tCe = "textCharacters";
|
|
473
479
|
const _tCo = "toolChoice";
|
|
@@ -478,6 +484,7 @@ const _tP = "topicPolicy";
|
|
|
478
484
|
const _tPU = "topicPolicyUnits";
|
|
479
485
|
const _tPo = "topP";
|
|
480
486
|
const _tR = "toolResult";
|
|
487
|
+
const _tRo = "toolRemoval";
|
|
481
488
|
const _tS = "toolSpec";
|
|
482
489
|
const _tT = "totalTokens";
|
|
483
490
|
const _tU = "textUnits";
|
|
@@ -489,8 +496,8 @@ const _tem = "temperature";
|
|
|
489
496
|
const _th = "threshold";
|
|
490
497
|
const _ti = "title";
|
|
491
498
|
const _to = "total";
|
|
492
|
-
const _too = "
|
|
493
|
-
const _tool = "
|
|
499
|
+
const _too = "tool";
|
|
500
|
+
const _tool = "tools";
|
|
494
501
|
const _top = "topics";
|
|
495
502
|
const _tr = "trace";
|
|
496
503
|
const _tra = "translation";
|
|
@@ -1193,8 +1200,8 @@ export var MessageStopEvent$ = [3, n0, _MSEe,
|
|
|
1193
1200
|
];
|
|
1194
1201
|
export var OutputConfig$ = [3, n0, _OC,
|
|
1195
1202
|
0,
|
|
1196
|
-
[_tF],
|
|
1197
|
-
[[() => OutputFormat$, 0]]
|
|
1203
|
+
[_tF, _ef],
|
|
1204
|
+
[[() => OutputFormat$, 0], 0]
|
|
1198
1205
|
];
|
|
1199
1206
|
export var OutputFormat$ = [3, n0, _OF,
|
|
1200
1207
|
0,
|
|
@@ -1276,12 +1283,27 @@ export var TokenUsage$ = [3, n0, _TU,
|
|
|
1276
1283
|
[_iT, _oT, _tT, _cRIT, _cWIT, _cD],
|
|
1277
1284
|
[1, 1, 1, 1, 1, () => CacheDetailsList], 3
|
|
1278
1285
|
];
|
|
1286
|
+
export var ToolAdditionBlock$ = [3, n0, _TAB,
|
|
1287
|
+
0,
|
|
1288
|
+
[_too],
|
|
1289
|
+
[() => ToolReference$], 1
|
|
1290
|
+
];
|
|
1279
1291
|
export var ToolConfiguration$ = [3, n0, _TC,
|
|
1280
1292
|
0,
|
|
1281
|
-
[
|
|
1293
|
+
[_tool, _tCo],
|
|
1282
1294
|
[() => Tools, () => ToolChoice$], 1
|
|
1283
1295
|
];
|
|
1284
|
-
export var
|
|
1296
|
+
export var ToolReference$ = [3, n0, _TR,
|
|
1297
|
+
0,
|
|
1298
|
+
[_ty, _n, _sN],
|
|
1299
|
+
[0, 0, 0]
|
|
1300
|
+
];
|
|
1301
|
+
export var ToolRemovalBlock$ = [3, n0, _TRB,
|
|
1302
|
+
0,
|
|
1303
|
+
[_too],
|
|
1304
|
+
[() => ToolReference$], 1
|
|
1305
|
+
];
|
|
1306
|
+
export var ToolResultBlock$ = [3, n0, _TRBo,
|
|
1285
1307
|
0,
|
|
1286
1308
|
[_tUI, _co, _st, _ty],
|
|
1287
1309
|
[0, [() => ToolResultContentBlocks, 0], 0, 0], 2
|
|
@@ -1507,8 +1529,8 @@ export var CitationSourceContent$ = [4, n0, _CSC,
|
|
|
1507
1529
|
];
|
|
1508
1530
|
export var ContentBlock$ = [4, n0, _CBo,
|
|
1509
1531
|
0,
|
|
1510
|
-
[_te, _ima, _doc, _vi, _au, _tUo, _tR, _gCua, _cPa, _rC, _cC, _sRe],
|
|
1511
|
-
[0, [() => ImageBlock$, 0], () => DocumentBlock$, () => VideoBlock$, [() => AudioBlock$, 0], () => ToolUseBlock$, [() => ToolResultBlock$, 0], [() => GuardrailConverseContentBlock$, 0], () => CachePointBlock$, [() => ReasoningContentBlock$, 0], () => CitationsContentBlock$, () => SearchResultBlock$]
|
|
1532
|
+
[_te, _ima, _doc, _vi, _au, _tUo, _tR, _gCua, _cPa, _rC, _cC, _sRe, _tA, _tRo],
|
|
1533
|
+
[0, [() => ImageBlock$, 0], () => DocumentBlock$, () => VideoBlock$, [() => AudioBlock$, 0], () => ToolUseBlock$, [() => ToolResultBlock$, 0], [() => GuardrailConverseContentBlock$, 0], () => CachePointBlock$, [() => ReasoningContentBlock$, 0], () => CitationsContentBlock$, () => SearchResultBlock$, () => ToolAdditionBlock$, () => ToolRemovalBlock$]
|
|
1512
1534
|
];
|
|
1513
1535
|
export var ContentBlockDelta$ = [4, n0, _CBD,
|
|
1514
1536
|
0,
|
|
@@ -1547,7 +1569,7 @@ export var DocumentSource$ = [4, n0, _DS,
|
|
|
1547
1569
|
];
|
|
1548
1570
|
export var GuardrailAutomatedReasoningFinding$ = [4, n0, _GARF,
|
|
1549
1571
|
0,
|
|
1550
|
-
[_va, _in, _sa, _imp,
|
|
1572
|
+
[_va, _in, _sa, _imp, _tAr, _tCoo, _nTo],
|
|
1551
1573
|
[[() => GuardrailAutomatedReasoningValidFinding$, 0], [() => GuardrailAutomatedReasoningInvalidFinding$, 0], [() => GuardrailAutomatedReasoningSatisfiableFinding$, 0], [() => GuardrailAutomatedReasoningImpossibleFinding$, 0], [() => GuardrailAutomatedReasoningTranslationAmbiguousFinding$, 0], () => GuardrailAutomatedReasoningTooComplexFinding$, () => GuardrailAutomatedReasoningNoTranslationsFinding$]
|
|
1552
1574
|
];
|
|
1553
1575
|
export var GuardrailChecksContentBlock$ = [4, n0, _GCCB,
|
|
@@ -1627,7 +1649,7 @@ export var Tool$ = [4, n0, _Too,
|
|
|
1627
1649
|
];
|
|
1628
1650
|
export var ToolChoice$ = [4, n0, _TCo,
|
|
1629
1651
|
0,
|
|
1630
|
-
[_aut, _an,
|
|
1652
|
+
[_aut, _an, _too],
|
|
1631
1653
|
[() => AutoToolChoice$, () => AnyToolChoice$, () => SpecificToolChoice$]
|
|
1632
1654
|
];
|
|
1633
1655
|
export var ToolInputSchema$ = [4, n0, _TIS,
|
|
@@ -246,6 +246,20 @@ declare const ConverseCommand_base: {
|
|
|
246
246
|
* enabled: true || false, // required
|
|
247
247
|
* },
|
|
248
248
|
* },
|
|
249
|
+
* toolAddition: { // ToolAdditionBlock
|
|
250
|
+
* tool: { // ToolReference
|
|
251
|
+
* type: "STRING_VALUE",
|
|
252
|
+
* name: "STRING_VALUE",
|
|
253
|
+
* serverName: "STRING_VALUE",
|
|
254
|
+
* },
|
|
255
|
+
* },
|
|
256
|
+
* toolRemoval: { // ToolRemovalBlock
|
|
257
|
+
* tool: {
|
|
258
|
+
* type: "STRING_VALUE",
|
|
259
|
+
* name: "STRING_VALUE",
|
|
260
|
+
* serverName: "STRING_VALUE",
|
|
261
|
+
* },
|
|
262
|
+
* },
|
|
249
263
|
* },
|
|
250
264
|
* ],
|
|
251
265
|
* },
|
|
@@ -340,6 +354,7 @@ declare const ConverseCommand_base: {
|
|
|
340
354
|
* },
|
|
341
355
|
* },
|
|
342
356
|
* },
|
|
357
|
+
* effort: "STRING_VALUE",
|
|
343
358
|
* },
|
|
344
359
|
* };
|
|
345
360
|
* const command = new ConverseCommand(input);
|
|
@@ -556,6 +571,20 @@ declare const ConverseCommand_base: {
|
|
|
556
571
|
* // enabled: true || false, // required
|
|
557
572
|
* // },
|
|
558
573
|
* // },
|
|
574
|
+
* // toolAddition: { // ToolAdditionBlock
|
|
575
|
+
* // tool: { // ToolReference
|
|
576
|
+
* // type: "STRING_VALUE",
|
|
577
|
+
* // name: "STRING_VALUE",
|
|
578
|
+
* // serverName: "STRING_VALUE",
|
|
579
|
+
* // },
|
|
580
|
+
* // },
|
|
581
|
+
* // toolRemoval: { // ToolRemovalBlock
|
|
582
|
+
* // tool: {
|
|
583
|
+
* // type: "STRING_VALUE",
|
|
584
|
+
* // name: "STRING_VALUE",
|
|
585
|
+
* // serverName: "STRING_VALUE",
|
|
586
|
+
* // },
|
|
587
|
+
* // },
|
|
559
588
|
* // },
|
|
560
589
|
* // ],
|
|
561
590
|
* // },
|
|
@@ -246,6 +246,20 @@ declare const ConverseStreamCommand_base: {
|
|
|
246
246
|
* enabled: true || false, // required
|
|
247
247
|
* },
|
|
248
248
|
* },
|
|
249
|
+
* toolAddition: { // ToolAdditionBlock
|
|
250
|
+
* tool: { // ToolReference
|
|
251
|
+
* type: "STRING_VALUE",
|
|
252
|
+
* name: "STRING_VALUE",
|
|
253
|
+
* serverName: "STRING_VALUE",
|
|
254
|
+
* },
|
|
255
|
+
* },
|
|
256
|
+
* toolRemoval: { // ToolRemovalBlock
|
|
257
|
+
* tool: {
|
|
258
|
+
* type: "STRING_VALUE",
|
|
259
|
+
* name: "STRING_VALUE",
|
|
260
|
+
* serverName: "STRING_VALUE",
|
|
261
|
+
* },
|
|
262
|
+
* },
|
|
249
263
|
* },
|
|
250
264
|
* ],
|
|
251
265
|
* },
|
|
@@ -341,6 +355,7 @@ declare const ConverseStreamCommand_base: {
|
|
|
341
355
|
* },
|
|
342
356
|
* },
|
|
343
357
|
* },
|
|
358
|
+
* effort: "STRING_VALUE",
|
|
344
359
|
* },
|
|
345
360
|
* };
|
|
346
361
|
* const command = new ConverseStreamCommand(input);
|
|
@@ -251,6 +251,20 @@ declare const CountTokensCommand_base: {
|
|
|
251
251
|
* enabled: true || false, // required
|
|
252
252
|
* },
|
|
253
253
|
* },
|
|
254
|
+
* toolAddition: { // ToolAdditionBlock
|
|
255
|
+
* tool: { // ToolReference
|
|
256
|
+
* type: "STRING_VALUE",
|
|
257
|
+
* name: "STRING_VALUE",
|
|
258
|
+
* serverName: "STRING_VALUE",
|
|
259
|
+
* },
|
|
260
|
+
* },
|
|
261
|
+
* toolRemoval: { // ToolRemovalBlock
|
|
262
|
+
* tool: {
|
|
263
|
+
* type: "STRING_VALUE",
|
|
264
|
+
* name: "STRING_VALUE",
|
|
265
|
+
* serverName: "STRING_VALUE",
|
|
266
|
+
* },
|
|
267
|
+
* },
|
|
254
268
|
* },
|
|
255
269
|
* ],
|
|
256
270
|
* },
|
|
@@ -2530,6 +2530,49 @@ export interface SearchResultBlock {
|
|
|
2530
2530
|
*/
|
|
2531
2531
|
citations?: CitationsConfig | undefined;
|
|
2532
2532
|
}
|
|
2533
|
+
/**
|
|
2534
|
+
* <p>A reference to a tool in the tool configuration. Used with <code>ToolAdditionBlock</code> and <code>ToolRemovalBlock</code> to identify which tool to add or remove mid-conversation.</p>
|
|
2535
|
+
* @public
|
|
2536
|
+
*/
|
|
2537
|
+
export interface ToolReference {
|
|
2538
|
+
/**
|
|
2539
|
+
* <p>The type of tool reference.</p>
|
|
2540
|
+
* @public
|
|
2541
|
+
*/
|
|
2542
|
+
type?: string | undefined;
|
|
2543
|
+
/**
|
|
2544
|
+
* <p>The name of the tool. Must match the name of a tool declared in the top-level tool configuration.</p>
|
|
2545
|
+
* @public
|
|
2546
|
+
*/
|
|
2547
|
+
name?: string | undefined;
|
|
2548
|
+
/**
|
|
2549
|
+
* <p>The name of the MCP server that provides the tool. Required when referencing an MCP tool.</p>
|
|
2550
|
+
* @public
|
|
2551
|
+
*/
|
|
2552
|
+
serverName?: string | undefined;
|
|
2553
|
+
}
|
|
2554
|
+
/**
|
|
2555
|
+
* <p>A content block for adding a tool to the available tool set mid-conversation. Each block references a single tool via its <code>tool</code> field. Use within a <code>system</code> role message to make a tool available without re-sending the full tool configuration.</p>
|
|
2556
|
+
* @public
|
|
2557
|
+
*/
|
|
2558
|
+
export interface ToolAdditionBlock {
|
|
2559
|
+
/**
|
|
2560
|
+
* <p>A reference to the tool to add to the available tool set.</p>
|
|
2561
|
+
* @public
|
|
2562
|
+
*/
|
|
2563
|
+
tool: ToolReference | undefined;
|
|
2564
|
+
}
|
|
2565
|
+
/**
|
|
2566
|
+
* <p>A content block for removing a tool from the available tool set mid-conversation. Each block references a single tool via its <code>tool</code> field. Use within a <code>system</code> role message to remove a tool without re-sending the full tool configuration.</p>
|
|
2567
|
+
* @public
|
|
2568
|
+
*/
|
|
2569
|
+
export interface ToolRemovalBlock {
|
|
2570
|
+
/**
|
|
2571
|
+
* <p>A reference to the tool to remove from the available tool set.</p>
|
|
2572
|
+
* @public
|
|
2573
|
+
*/
|
|
2574
|
+
tool: ToolReference | undefined;
|
|
2575
|
+
}
|
|
2533
2576
|
/**
|
|
2534
2577
|
* <p>A video source. You can upload a smaller video as a base64-encoded string as long as the encoded file is less than 25MB. You can also transfer videos up to 1GB in size from an S3 bucket.</p>
|
|
2535
2578
|
* @public
|
|
@@ -2760,7 +2803,7 @@ export interface ToolUseBlock {
|
|
|
2760
2803
|
* <p>A block of content for a message that you pass to, or receive from, a model with the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html">Converse</a> or <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html">ConverseStream</a> API operations.</p>
|
|
2761
2804
|
* @public
|
|
2762
2805
|
*/
|
|
2763
|
-
export type ContentBlock = ContentBlock.AudioMember | ContentBlock.CachePointMember | ContentBlock.CitationsContentMember | ContentBlock.DocumentMember | ContentBlock.GuardContentMember | ContentBlock.ImageMember | ContentBlock.ReasoningContentMember | ContentBlock.SearchResultMember | ContentBlock.TextMember | ContentBlock.ToolResultMember | ContentBlock.ToolUseMember | ContentBlock.VideoMember | ContentBlock.$UnknownMember;
|
|
2806
|
+
export type ContentBlock = ContentBlock.AudioMember | ContentBlock.CachePointMember | ContentBlock.CitationsContentMember | ContentBlock.DocumentMember | ContentBlock.GuardContentMember | ContentBlock.ImageMember | ContentBlock.ReasoningContentMember | ContentBlock.SearchResultMember | ContentBlock.TextMember | ContentBlock.ToolAdditionMember | ContentBlock.ToolRemovalMember | ContentBlock.ToolResultMember | ContentBlock.ToolUseMember | ContentBlock.VideoMember | ContentBlock.$UnknownMember;
|
|
2764
2807
|
/**
|
|
2765
2808
|
* @public
|
|
2766
2809
|
*/
|
|
@@ -2782,6 +2825,8 @@ export declare namespace ContentBlock {
|
|
|
2782
2825
|
reasoningContent?: never;
|
|
2783
2826
|
citationsContent?: never;
|
|
2784
2827
|
searchResult?: never;
|
|
2828
|
+
toolAddition?: never;
|
|
2829
|
+
toolRemoval?: never;
|
|
2785
2830
|
$unknown?: never;
|
|
2786
2831
|
}
|
|
2787
2832
|
/**
|
|
@@ -2801,6 +2846,8 @@ export declare namespace ContentBlock {
|
|
|
2801
2846
|
reasoningContent?: never;
|
|
2802
2847
|
citationsContent?: never;
|
|
2803
2848
|
searchResult?: never;
|
|
2849
|
+
toolAddition?: never;
|
|
2850
|
+
toolRemoval?: never;
|
|
2804
2851
|
$unknown?: never;
|
|
2805
2852
|
}
|
|
2806
2853
|
/**
|
|
@@ -2820,6 +2867,8 @@ export declare namespace ContentBlock {
|
|
|
2820
2867
|
reasoningContent?: never;
|
|
2821
2868
|
citationsContent?: never;
|
|
2822
2869
|
searchResult?: never;
|
|
2870
|
+
toolAddition?: never;
|
|
2871
|
+
toolRemoval?: never;
|
|
2823
2872
|
$unknown?: never;
|
|
2824
2873
|
}
|
|
2825
2874
|
/**
|
|
@@ -2839,6 +2888,8 @@ export declare namespace ContentBlock {
|
|
|
2839
2888
|
reasoningContent?: never;
|
|
2840
2889
|
citationsContent?: never;
|
|
2841
2890
|
searchResult?: never;
|
|
2891
|
+
toolAddition?: never;
|
|
2892
|
+
toolRemoval?: never;
|
|
2842
2893
|
$unknown?: never;
|
|
2843
2894
|
}
|
|
2844
2895
|
/**
|
|
@@ -2858,6 +2909,8 @@ export declare namespace ContentBlock {
|
|
|
2858
2909
|
reasoningContent?: never;
|
|
2859
2910
|
citationsContent?: never;
|
|
2860
2911
|
searchResult?: never;
|
|
2912
|
+
toolAddition?: never;
|
|
2913
|
+
toolRemoval?: never;
|
|
2861
2914
|
$unknown?: never;
|
|
2862
2915
|
}
|
|
2863
2916
|
/**
|
|
@@ -2877,6 +2930,8 @@ export declare namespace ContentBlock {
|
|
|
2877
2930
|
reasoningContent?: never;
|
|
2878
2931
|
citationsContent?: never;
|
|
2879
2932
|
searchResult?: never;
|
|
2933
|
+
toolAddition?: never;
|
|
2934
|
+
toolRemoval?: never;
|
|
2880
2935
|
$unknown?: never;
|
|
2881
2936
|
}
|
|
2882
2937
|
/**
|
|
@@ -2896,6 +2951,8 @@ export declare namespace ContentBlock {
|
|
|
2896
2951
|
reasoningContent?: never;
|
|
2897
2952
|
citationsContent?: never;
|
|
2898
2953
|
searchResult?: never;
|
|
2954
|
+
toolAddition?: never;
|
|
2955
|
+
toolRemoval?: never;
|
|
2899
2956
|
$unknown?: never;
|
|
2900
2957
|
}
|
|
2901
2958
|
/**
|
|
@@ -2915,6 +2972,8 @@ export declare namespace ContentBlock {
|
|
|
2915
2972
|
reasoningContent?: never;
|
|
2916
2973
|
citationsContent?: never;
|
|
2917
2974
|
searchResult?: never;
|
|
2975
|
+
toolAddition?: never;
|
|
2976
|
+
toolRemoval?: never;
|
|
2918
2977
|
$unknown?: never;
|
|
2919
2978
|
}
|
|
2920
2979
|
/**
|
|
@@ -2934,6 +2993,8 @@ export declare namespace ContentBlock {
|
|
|
2934
2993
|
reasoningContent?: never;
|
|
2935
2994
|
citationsContent?: never;
|
|
2936
2995
|
searchResult?: never;
|
|
2996
|
+
toolAddition?: never;
|
|
2997
|
+
toolRemoval?: never;
|
|
2937
2998
|
$unknown?: never;
|
|
2938
2999
|
}
|
|
2939
3000
|
/**
|
|
@@ -2953,6 +3014,8 @@ export declare namespace ContentBlock {
|
|
|
2953
3014
|
reasoningContent: ReasoningContentBlock;
|
|
2954
3015
|
citationsContent?: never;
|
|
2955
3016
|
searchResult?: never;
|
|
3017
|
+
toolAddition?: never;
|
|
3018
|
+
toolRemoval?: never;
|
|
2956
3019
|
$unknown?: never;
|
|
2957
3020
|
}
|
|
2958
3021
|
/**
|
|
@@ -2972,6 +3035,8 @@ export declare namespace ContentBlock {
|
|
|
2972
3035
|
reasoningContent?: never;
|
|
2973
3036
|
citationsContent: CitationsContentBlock;
|
|
2974
3037
|
searchResult?: never;
|
|
3038
|
+
toolAddition?: never;
|
|
3039
|
+
toolRemoval?: never;
|
|
2975
3040
|
$unknown?: never;
|
|
2976
3041
|
}
|
|
2977
3042
|
/**
|
|
@@ -2991,6 +3056,50 @@ export declare namespace ContentBlock {
|
|
|
2991
3056
|
reasoningContent?: never;
|
|
2992
3057
|
citationsContent?: never;
|
|
2993
3058
|
searchResult: SearchResultBlock;
|
|
3059
|
+
toolAddition?: never;
|
|
3060
|
+
toolRemoval?: never;
|
|
3061
|
+
$unknown?: never;
|
|
3062
|
+
}
|
|
3063
|
+
/**
|
|
3064
|
+
* <p>A content block for adding a tool to the available tool set mid-conversation. Each block references a single tool via its <code>tool</code> field. Use within a <code>system</code> role message to make a tool available without re-sending the full tool configuration.</p>
|
|
3065
|
+
* @public
|
|
3066
|
+
*/
|
|
3067
|
+
interface ToolAdditionMember {
|
|
3068
|
+
text?: never;
|
|
3069
|
+
image?: never;
|
|
3070
|
+
document?: never;
|
|
3071
|
+
video?: never;
|
|
3072
|
+
audio?: never;
|
|
3073
|
+
toolUse?: never;
|
|
3074
|
+
toolResult?: never;
|
|
3075
|
+
guardContent?: never;
|
|
3076
|
+
cachePoint?: never;
|
|
3077
|
+
reasoningContent?: never;
|
|
3078
|
+
citationsContent?: never;
|
|
3079
|
+
searchResult?: never;
|
|
3080
|
+
toolAddition: ToolAdditionBlock;
|
|
3081
|
+
toolRemoval?: never;
|
|
3082
|
+
$unknown?: never;
|
|
3083
|
+
}
|
|
3084
|
+
/**
|
|
3085
|
+
* <p>A content block for removing a tool from the available tool set mid-conversation. Each block references a single tool via its <code>tool</code> field. Use within a <code>system</code> role message to remove a tool without re-sending the full tool configuration.</p>
|
|
3086
|
+
* @public
|
|
3087
|
+
*/
|
|
3088
|
+
interface ToolRemovalMember {
|
|
3089
|
+
text?: never;
|
|
3090
|
+
image?: never;
|
|
3091
|
+
document?: never;
|
|
3092
|
+
video?: never;
|
|
3093
|
+
audio?: never;
|
|
3094
|
+
toolUse?: never;
|
|
3095
|
+
toolResult?: never;
|
|
3096
|
+
guardContent?: never;
|
|
3097
|
+
cachePoint?: never;
|
|
3098
|
+
reasoningContent?: never;
|
|
3099
|
+
citationsContent?: never;
|
|
3100
|
+
searchResult?: never;
|
|
3101
|
+
toolAddition?: never;
|
|
3102
|
+
toolRemoval: ToolRemovalBlock;
|
|
2994
3103
|
$unknown?: never;
|
|
2995
3104
|
}
|
|
2996
3105
|
/**
|
|
@@ -3009,6 +3118,8 @@ export declare namespace ContentBlock {
|
|
|
3009
3118
|
reasoningContent?: never;
|
|
3010
3119
|
citationsContent?: never;
|
|
3011
3120
|
searchResult?: never;
|
|
3121
|
+
toolAddition?: never;
|
|
3122
|
+
toolRemoval?: never;
|
|
3012
3123
|
$unknown: [string, any];
|
|
3013
3124
|
}
|
|
3014
3125
|
/**
|
|
@@ -3028,6 +3139,8 @@ export declare namespace ContentBlock {
|
|
|
3028
3139
|
reasoningContent: (value: ReasoningContentBlock) => T;
|
|
3029
3140
|
citationsContent: (value: CitationsContentBlock) => T;
|
|
3030
3141
|
searchResult: (value: SearchResultBlock) => T;
|
|
3142
|
+
toolAddition: (value: ToolAdditionBlock) => T;
|
|
3143
|
+
toolRemoval: (value: ToolRemovalBlock) => T;
|
|
3031
3144
|
_: (name: string, value: any) => T;
|
|
3032
3145
|
}
|
|
3033
3146
|
}
|
|
@@ -3127,6 +3240,11 @@ export interface OutputConfig {
|
|
|
3127
3240
|
* @public
|
|
3128
3241
|
*/
|
|
3129
3242
|
textFormat?: OutputFormat | undefined;
|
|
3243
|
+
/**
|
|
3244
|
+
* <p>The effort level for the model to use when generating a response. Higher effort levels allow the model to spend more time reasoning before responding. Supported values are <code>low</code>, <code>medium</code>, <code>high</code>, <code>xhigh</code>, and <code>max</code>.</p> <note> <p>When extended thinking is disabled, the effort level is capped at <code>high</code>. Use effort <code>high</code> or below, or enable thinking to use higher effort levels.</p> </note>
|
|
3245
|
+
* @public
|
|
3246
|
+
*/
|
|
3247
|
+
effort?: string | undefined;
|
|
3130
3248
|
}
|
|
3131
3249
|
/**
|
|
3132
3250
|
* <p>Performance settings for a model.</p>
|
|
@@ -154,7 +154,10 @@ export declare var StartAsyncInvokeResponse$: StaticStructureSchema;
|
|
|
154
154
|
export declare var SystemTool$: StaticStructureSchema;
|
|
155
155
|
export declare var Tag$: StaticStructureSchema;
|
|
156
156
|
export declare var TokenUsage$: StaticStructureSchema;
|
|
157
|
+
export declare var ToolAdditionBlock$: StaticStructureSchema;
|
|
157
158
|
export declare var ToolConfiguration$: StaticStructureSchema;
|
|
159
|
+
export declare var ToolReference$: StaticStructureSchema;
|
|
160
|
+
export declare var ToolRemovalBlock$: StaticStructureSchema;
|
|
158
161
|
export declare var ToolResultBlock$: StaticStructureSchema;
|
|
159
162
|
export declare var ToolResultBlockStart$: StaticStructureSchema;
|
|
160
163
|
export declare var ToolSpecification$: StaticStructureSchema;
|
|
@@ -945,6 +945,17 @@ export interface SearchResultBlock {
|
|
|
945
945
|
content: SearchResultContentBlock[] | undefined;
|
|
946
946
|
citations?: CitationsConfig | undefined;
|
|
947
947
|
}
|
|
948
|
+
export interface ToolReference {
|
|
949
|
+
type?: string | undefined;
|
|
950
|
+
name?: string | undefined;
|
|
951
|
+
serverName?: string | undefined;
|
|
952
|
+
}
|
|
953
|
+
export interface ToolAdditionBlock {
|
|
954
|
+
tool: ToolReference | undefined;
|
|
955
|
+
}
|
|
956
|
+
export interface ToolRemovalBlock {
|
|
957
|
+
tool: ToolReference | undefined;
|
|
958
|
+
}
|
|
948
959
|
export type VideoSource =
|
|
949
960
|
| VideoSource.BytesMember
|
|
950
961
|
| VideoSource.S3LocationMember
|
|
@@ -1079,6 +1090,8 @@ export type ContentBlock =
|
|
|
1079
1090
|
| ContentBlock.ReasoningContentMember
|
|
1080
1091
|
| ContentBlock.SearchResultMember
|
|
1081
1092
|
| ContentBlock.TextMember
|
|
1093
|
+
| ContentBlock.ToolAdditionMember
|
|
1094
|
+
| ContentBlock.ToolRemovalMember
|
|
1082
1095
|
| ContentBlock.ToolResultMember
|
|
1083
1096
|
| ContentBlock.ToolUseMember
|
|
1084
1097
|
| ContentBlock.VideoMember
|
|
@@ -1097,6 +1110,8 @@ export declare namespace ContentBlock {
|
|
|
1097
1110
|
reasoningContent?: never;
|
|
1098
1111
|
citationsContent?: never;
|
|
1099
1112
|
searchResult?: never;
|
|
1113
|
+
toolAddition?: never;
|
|
1114
|
+
toolRemoval?: never;
|
|
1100
1115
|
$unknown?: never;
|
|
1101
1116
|
}
|
|
1102
1117
|
interface ImageMember {
|
|
@@ -1112,6 +1127,8 @@ export declare namespace ContentBlock {
|
|
|
1112
1127
|
reasoningContent?: never;
|
|
1113
1128
|
citationsContent?: never;
|
|
1114
1129
|
searchResult?: never;
|
|
1130
|
+
toolAddition?: never;
|
|
1131
|
+
toolRemoval?: never;
|
|
1115
1132
|
$unknown?: never;
|
|
1116
1133
|
}
|
|
1117
1134
|
interface DocumentMember {
|
|
@@ -1127,6 +1144,8 @@ export declare namespace ContentBlock {
|
|
|
1127
1144
|
reasoningContent?: never;
|
|
1128
1145
|
citationsContent?: never;
|
|
1129
1146
|
searchResult?: never;
|
|
1147
|
+
toolAddition?: never;
|
|
1148
|
+
toolRemoval?: never;
|
|
1130
1149
|
$unknown?: never;
|
|
1131
1150
|
}
|
|
1132
1151
|
interface VideoMember {
|
|
@@ -1142,6 +1161,8 @@ export declare namespace ContentBlock {
|
|
|
1142
1161
|
reasoningContent?: never;
|
|
1143
1162
|
citationsContent?: never;
|
|
1144
1163
|
searchResult?: never;
|
|
1164
|
+
toolAddition?: never;
|
|
1165
|
+
toolRemoval?: never;
|
|
1145
1166
|
$unknown?: never;
|
|
1146
1167
|
}
|
|
1147
1168
|
interface AudioMember {
|
|
@@ -1157,6 +1178,8 @@ export declare namespace ContentBlock {
|
|
|
1157
1178
|
reasoningContent?: never;
|
|
1158
1179
|
citationsContent?: never;
|
|
1159
1180
|
searchResult?: never;
|
|
1181
|
+
toolAddition?: never;
|
|
1182
|
+
toolRemoval?: never;
|
|
1160
1183
|
$unknown?: never;
|
|
1161
1184
|
}
|
|
1162
1185
|
interface ToolUseMember {
|
|
@@ -1172,6 +1195,8 @@ export declare namespace ContentBlock {
|
|
|
1172
1195
|
reasoningContent?: never;
|
|
1173
1196
|
citationsContent?: never;
|
|
1174
1197
|
searchResult?: never;
|
|
1198
|
+
toolAddition?: never;
|
|
1199
|
+
toolRemoval?: never;
|
|
1175
1200
|
$unknown?: never;
|
|
1176
1201
|
}
|
|
1177
1202
|
interface ToolResultMember {
|
|
@@ -1187,6 +1212,8 @@ export declare namespace ContentBlock {
|
|
|
1187
1212
|
reasoningContent?: never;
|
|
1188
1213
|
citationsContent?: never;
|
|
1189
1214
|
searchResult?: never;
|
|
1215
|
+
toolAddition?: never;
|
|
1216
|
+
toolRemoval?: never;
|
|
1190
1217
|
$unknown?: never;
|
|
1191
1218
|
}
|
|
1192
1219
|
interface GuardContentMember {
|
|
@@ -1202,6 +1229,8 @@ export declare namespace ContentBlock {
|
|
|
1202
1229
|
reasoningContent?: never;
|
|
1203
1230
|
citationsContent?: never;
|
|
1204
1231
|
searchResult?: never;
|
|
1232
|
+
toolAddition?: never;
|
|
1233
|
+
toolRemoval?: never;
|
|
1205
1234
|
$unknown?: never;
|
|
1206
1235
|
}
|
|
1207
1236
|
interface CachePointMember {
|
|
@@ -1217,6 +1246,8 @@ export declare namespace ContentBlock {
|
|
|
1217
1246
|
reasoningContent?: never;
|
|
1218
1247
|
citationsContent?: never;
|
|
1219
1248
|
searchResult?: never;
|
|
1249
|
+
toolAddition?: never;
|
|
1250
|
+
toolRemoval?: never;
|
|
1220
1251
|
$unknown?: never;
|
|
1221
1252
|
}
|
|
1222
1253
|
interface ReasoningContentMember {
|
|
@@ -1232,6 +1263,8 @@ export declare namespace ContentBlock {
|
|
|
1232
1263
|
reasoningContent: ReasoningContentBlock;
|
|
1233
1264
|
citationsContent?: never;
|
|
1234
1265
|
searchResult?: never;
|
|
1266
|
+
toolAddition?: never;
|
|
1267
|
+
toolRemoval?: never;
|
|
1235
1268
|
$unknown?: never;
|
|
1236
1269
|
}
|
|
1237
1270
|
interface CitationsContentMember {
|
|
@@ -1247,6 +1280,8 @@ export declare namespace ContentBlock {
|
|
|
1247
1280
|
reasoningContent?: never;
|
|
1248
1281
|
citationsContent: CitationsContentBlock;
|
|
1249
1282
|
searchResult?: never;
|
|
1283
|
+
toolAddition?: never;
|
|
1284
|
+
toolRemoval?: never;
|
|
1250
1285
|
$unknown?: never;
|
|
1251
1286
|
}
|
|
1252
1287
|
interface SearchResultMember {
|
|
@@ -1262,6 +1297,42 @@ export declare namespace ContentBlock {
|
|
|
1262
1297
|
reasoningContent?: never;
|
|
1263
1298
|
citationsContent?: never;
|
|
1264
1299
|
searchResult: SearchResultBlock;
|
|
1300
|
+
toolAddition?: never;
|
|
1301
|
+
toolRemoval?: never;
|
|
1302
|
+
$unknown?: never;
|
|
1303
|
+
}
|
|
1304
|
+
interface ToolAdditionMember {
|
|
1305
|
+
text?: never;
|
|
1306
|
+
image?: never;
|
|
1307
|
+
document?: never;
|
|
1308
|
+
video?: never;
|
|
1309
|
+
audio?: never;
|
|
1310
|
+
toolUse?: never;
|
|
1311
|
+
toolResult?: never;
|
|
1312
|
+
guardContent?: never;
|
|
1313
|
+
cachePoint?: never;
|
|
1314
|
+
reasoningContent?: never;
|
|
1315
|
+
citationsContent?: never;
|
|
1316
|
+
searchResult?: never;
|
|
1317
|
+
toolAddition: ToolAdditionBlock;
|
|
1318
|
+
toolRemoval?: never;
|
|
1319
|
+
$unknown?: never;
|
|
1320
|
+
}
|
|
1321
|
+
interface ToolRemovalMember {
|
|
1322
|
+
text?: never;
|
|
1323
|
+
image?: never;
|
|
1324
|
+
document?: never;
|
|
1325
|
+
video?: never;
|
|
1326
|
+
audio?: never;
|
|
1327
|
+
toolUse?: never;
|
|
1328
|
+
toolResult?: never;
|
|
1329
|
+
guardContent?: never;
|
|
1330
|
+
cachePoint?: never;
|
|
1331
|
+
reasoningContent?: never;
|
|
1332
|
+
citationsContent?: never;
|
|
1333
|
+
searchResult?: never;
|
|
1334
|
+
toolAddition?: never;
|
|
1335
|
+
toolRemoval: ToolRemovalBlock;
|
|
1265
1336
|
$unknown?: never;
|
|
1266
1337
|
}
|
|
1267
1338
|
interface $UnknownMember {
|
|
@@ -1277,6 +1348,8 @@ export declare namespace ContentBlock {
|
|
|
1277
1348
|
reasoningContent?: never;
|
|
1278
1349
|
citationsContent?: never;
|
|
1279
1350
|
searchResult?: never;
|
|
1351
|
+
toolAddition?: never;
|
|
1352
|
+
toolRemoval?: never;
|
|
1280
1353
|
$unknown: [string, any];
|
|
1281
1354
|
}
|
|
1282
1355
|
interface Visitor<T> {
|
|
@@ -1292,6 +1365,8 @@ export declare namespace ContentBlock {
|
|
|
1292
1365
|
reasoningContent: (value: ReasoningContentBlock) => T;
|
|
1293
1366
|
citationsContent: (value: CitationsContentBlock) => T;
|
|
1294
1367
|
searchResult: (value: SearchResultBlock) => T;
|
|
1368
|
+
toolAddition: (value: ToolAdditionBlock) => T;
|
|
1369
|
+
toolRemoval: (value: ToolRemovalBlock) => T;
|
|
1295
1370
|
_: (name: string, value: any) => T;
|
|
1296
1371
|
}
|
|
1297
1372
|
}
|
|
@@ -1327,6 +1402,7 @@ export interface OutputFormat {
|
|
|
1327
1402
|
}
|
|
1328
1403
|
export interface OutputConfig {
|
|
1329
1404
|
textFormat?: OutputFormat | undefined;
|
|
1405
|
+
effort?: string | undefined;
|
|
1330
1406
|
}
|
|
1331
1407
|
export interface PerformanceConfiguration {
|
|
1332
1408
|
latency?: PerformanceConfigLatency | undefined;
|
|
@@ -154,7 +154,10 @@ export declare var StartAsyncInvokeResponse$: StaticStructureSchema;
|
|
|
154
154
|
export declare var SystemTool$: StaticStructureSchema;
|
|
155
155
|
export declare var Tag$: StaticStructureSchema;
|
|
156
156
|
export declare var TokenUsage$: StaticStructureSchema;
|
|
157
|
+
export declare var ToolAdditionBlock$: StaticStructureSchema;
|
|
157
158
|
export declare var ToolConfiguration$: StaticStructureSchema;
|
|
159
|
+
export declare var ToolReference$: StaticStructureSchema;
|
|
160
|
+
export declare var ToolRemovalBlock$: StaticStructureSchema;
|
|
158
161
|
export declare var ToolResultBlock$: StaticStructureSchema;
|
|
159
162
|
export declare var ToolResultBlockStart$: StaticStructureSchema;
|
|
160
163
|
export declare var ToolSpecification$: StaticStructureSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-runtime",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1102.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Bedrock Runtime Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-runtime",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -54,12 +54,12 @@
|
|
|
54
54
|
"test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
|
|
55
55
|
},
|
|
56
56
|
"dependencies": {
|
|
57
|
-
"@aws-sdk/core": "^3.977.
|
|
58
|
-
"@aws-sdk/credential-provider-node": "^3.972.
|
|
57
|
+
"@aws-sdk/core": "^3.977.5",
|
|
58
|
+
"@aws-sdk/credential-provider-node": "^3.972.77",
|
|
59
59
|
"@aws-sdk/eventstream-handler-node": "^3.972.31",
|
|
60
60
|
"@aws-sdk/middleware-eventstream": "^3.972.26",
|
|
61
|
-
"@aws-sdk/middleware-websocket": "^3.972.
|
|
62
|
-
"@aws-sdk/token-providers": "3.
|
|
61
|
+
"@aws-sdk/middleware-websocket": "^3.972.48",
|
|
62
|
+
"@aws-sdk/token-providers": "3.1102.0",
|
|
63
63
|
"@aws-sdk/types": "^3.974.2",
|
|
64
64
|
"@smithy/core": "^3.31.1",
|
|
65
65
|
"@smithy/fetch-http-handler": "^5.6.13",
|