@aws-sdk/client-bedrock-agent-runtime 3.751.0 → 3.755.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 +75 -6
- package/dist-es/models/models_0.js +24 -0
- package/dist-es/protocols/Aws_restJson1.js +42 -3
- package/dist-types/commands/InvokeAgentCommand.d.ts +21 -0
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +21 -0
- package/dist-types/models/models_0.d.ts +88 -1
- package/dist-types/ts3.4/models/models_0.d.ts +40 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -211,6 +211,9 @@ __export(src_exports, {
|
|
|
211
211
|
QueryTransformationType: () => QueryTransformationType,
|
|
212
212
|
RationaleFilterSensitiveLog: () => RationaleFilterSensitiveLog,
|
|
213
213
|
RawResponseFilterSensitiveLog: () => RawResponseFilterSensitiveLog,
|
|
214
|
+
ReasoningContentBlock: () => ReasoningContentBlock,
|
|
215
|
+
ReasoningContentBlockFilterSensitiveLog: () => ReasoningContentBlockFilterSensitiveLog,
|
|
216
|
+
ReasoningTextBlockFilterSensitiveLog: () => ReasoningTextBlockFilterSensitiveLog,
|
|
214
217
|
RepromptResponseFilterSensitiveLog: () => RepromptResponseFilterSensitiveLog,
|
|
215
218
|
RequireConfirmation: () => RequireConfirmation,
|
|
216
219
|
RerankCommand: () => RerankCommand,
|
|
@@ -1024,6 +1027,16 @@ var PromptType = {
|
|
|
1024
1027
|
PRE_PROCESSING: "PRE_PROCESSING",
|
|
1025
1028
|
ROUTING_CLASSIFIER: "ROUTING_CLASSIFIER"
|
|
1026
1029
|
};
|
|
1030
|
+
var ReasoningContentBlock;
|
|
1031
|
+
((ReasoningContentBlock3) => {
|
|
1032
|
+
ReasoningContentBlock3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1033
|
+
if (value.reasoningText !== void 0)
|
|
1034
|
+
return visitor.reasoningText(value.reasoningText);
|
|
1035
|
+
if (value.redactedContent !== void 0)
|
|
1036
|
+
return visitor.redactedContent(value.redactedContent);
|
|
1037
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1038
|
+
}, "visit");
|
|
1039
|
+
})(ReasoningContentBlock || (ReasoningContentBlock = {}));
|
|
1027
1040
|
var Source = {
|
|
1028
1041
|
ACTION_GROUP: "ACTION_GROUP",
|
|
1029
1042
|
KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
|
|
@@ -1736,10 +1749,22 @@ var MetadataFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1736
1749
|
var RawResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1737
1750
|
...obj
|
|
1738
1751
|
}), "RawResponseFilterSensitiveLog");
|
|
1752
|
+
var ReasoningTextBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1753
|
+
...obj
|
|
1754
|
+
}), "ReasoningTextBlockFilterSensitiveLog");
|
|
1755
|
+
var ReasoningContentBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1756
|
+
if (obj.reasoningText !== void 0)
|
|
1757
|
+
return { reasoningText: import_smithy_client.SENSITIVE_STRING };
|
|
1758
|
+
if (obj.redactedContent !== void 0)
|
|
1759
|
+
return { redactedContent: obj.redactedContent };
|
|
1760
|
+
if (obj.$unknown !== void 0)
|
|
1761
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1762
|
+
}, "ReasoningContentBlockFilterSensitiveLog");
|
|
1739
1763
|
var OrchestrationModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1740
1764
|
...obj,
|
|
1741
1765
|
...obj.rawResponse && { rawResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1742
|
-
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1766
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING },
|
|
1767
|
+
...obj.reasoningContent && { reasoningContent: import_smithy_client.SENSITIVE_STRING }
|
|
1743
1768
|
}), "OrchestrationModelInvocationOutputFilterSensitiveLog");
|
|
1744
1769
|
var FinalResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1745
1770
|
...obj,
|
|
@@ -1797,7 +1822,8 @@ var PostProcessingModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __na
|
|
|
1797
1822
|
...obj,
|
|
1798
1823
|
...obj.parsedResponse && { parsedResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1799
1824
|
...obj.rawResponse && { rawResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1800
|
-
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1825
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING },
|
|
1826
|
+
...obj.reasoningContent && { reasoningContent: import_smithy_client.SENSITIVE_STRING }
|
|
1801
1827
|
}), "PostProcessingModelInvocationOutputFilterSensitiveLog");
|
|
1802
1828
|
var PostProcessingTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1803
1829
|
if (obj.modelInvocationInput !== void 0)
|
|
@@ -1815,7 +1841,8 @@ var PreProcessingModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __nam
|
|
|
1815
1841
|
...obj,
|
|
1816
1842
|
...obj.parsedResponse && { parsedResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1817
1843
|
...obj.rawResponse && { rawResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1818
|
-
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1844
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING },
|
|
1845
|
+
...obj.reasoningContent && { reasoningContent: import_smithy_client.SENSITIVE_STRING }
|
|
1819
1846
|
}), "PreProcessingModelInvocationOutputFilterSensitiveLog");
|
|
1820
1847
|
var PreProcessingTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1821
1848
|
if (obj.modelInvocationInput !== void 0)
|
|
@@ -3932,6 +3959,14 @@ var de_Observation = /* @__PURE__ */ __name((output, context) => {
|
|
|
3932
3959
|
type: import_smithy_client.expectString
|
|
3933
3960
|
});
|
|
3934
3961
|
}, "de_Observation");
|
|
3962
|
+
var de_OrchestrationModelInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
3963
|
+
return (0, import_smithy_client.take)(output, {
|
|
3964
|
+
metadata: import_smithy_client._json,
|
|
3965
|
+
rawResponse: import_smithy_client._json,
|
|
3966
|
+
reasoningContent: (_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context),
|
|
3967
|
+
traceId: import_smithy_client.expectString
|
|
3968
|
+
});
|
|
3969
|
+
}, "de_OrchestrationModelInvocationOutput");
|
|
3935
3970
|
var de_OrchestrationTrace = /* @__PURE__ */ __name((output, context) => {
|
|
3936
3971
|
if (output.invocationInput != null) {
|
|
3937
3972
|
return {
|
|
@@ -3945,7 +3980,7 @@ var de_OrchestrationTrace = /* @__PURE__ */ __name((output, context) => {
|
|
|
3945
3980
|
}
|
|
3946
3981
|
if (output.modelInvocationOutput != null) {
|
|
3947
3982
|
return {
|
|
3948
|
-
modelInvocationOutput: (
|
|
3983
|
+
modelInvocationOutput: de_OrchestrationModelInvocationOutput(output.modelInvocationOutput, context)
|
|
3949
3984
|
};
|
|
3950
3985
|
}
|
|
3951
3986
|
if (output.observation != null) {
|
|
@@ -3979,6 +4014,15 @@ var de_PayloadPart = /* @__PURE__ */ __name((output, context) => {
|
|
|
3979
4014
|
bytes: context.base64Decoder
|
|
3980
4015
|
});
|
|
3981
4016
|
}, "de_PayloadPart");
|
|
4017
|
+
var de_PostProcessingModelInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4018
|
+
return (0, import_smithy_client.take)(output, {
|
|
4019
|
+
metadata: import_smithy_client._json,
|
|
4020
|
+
parsedResponse: import_smithy_client._json,
|
|
4021
|
+
rawResponse: import_smithy_client._json,
|
|
4022
|
+
reasoningContent: (_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context),
|
|
4023
|
+
traceId: import_smithy_client.expectString
|
|
4024
|
+
});
|
|
4025
|
+
}, "de_PostProcessingModelInvocationOutput");
|
|
3982
4026
|
var de_PostProcessingTrace = /* @__PURE__ */ __name((output, context) => {
|
|
3983
4027
|
if (output.modelInvocationInput != null) {
|
|
3984
4028
|
return {
|
|
@@ -3987,11 +4031,20 @@ var de_PostProcessingTrace = /* @__PURE__ */ __name((output, context) => {
|
|
|
3987
4031
|
}
|
|
3988
4032
|
if (output.modelInvocationOutput != null) {
|
|
3989
4033
|
return {
|
|
3990
|
-
modelInvocationOutput: (
|
|
4034
|
+
modelInvocationOutput: de_PostProcessingModelInvocationOutput(output.modelInvocationOutput, context)
|
|
3991
4035
|
};
|
|
3992
4036
|
}
|
|
3993
4037
|
return { $unknown: Object.entries(output)[0] };
|
|
3994
4038
|
}, "de_PostProcessingTrace");
|
|
4039
|
+
var de_PreProcessingModelInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4040
|
+
return (0, import_smithy_client.take)(output, {
|
|
4041
|
+
metadata: import_smithy_client._json,
|
|
4042
|
+
parsedResponse: import_smithy_client._json,
|
|
4043
|
+
rawResponse: import_smithy_client._json,
|
|
4044
|
+
reasoningContent: (_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context),
|
|
4045
|
+
traceId: import_smithy_client.expectString
|
|
4046
|
+
});
|
|
4047
|
+
}, "de_PreProcessingModelInvocationOutput");
|
|
3995
4048
|
var de_PreProcessingTrace = /* @__PURE__ */ __name((output, context) => {
|
|
3996
4049
|
if (output.modelInvocationInput != null) {
|
|
3997
4050
|
return {
|
|
@@ -4000,11 +4053,24 @@ var de_PreProcessingTrace = /* @__PURE__ */ __name((output, context) => {
|
|
|
4000
4053
|
}
|
|
4001
4054
|
if (output.modelInvocationOutput != null) {
|
|
4002
4055
|
return {
|
|
4003
|
-
modelInvocationOutput: (
|
|
4056
|
+
modelInvocationOutput: de_PreProcessingModelInvocationOutput(output.modelInvocationOutput, context)
|
|
4004
4057
|
};
|
|
4005
4058
|
}
|
|
4006
4059
|
return { $unknown: Object.entries(output)[0] };
|
|
4007
4060
|
}, "de_PreProcessingTrace");
|
|
4061
|
+
var de_ReasoningContentBlock = /* @__PURE__ */ __name((output, context) => {
|
|
4062
|
+
if (output.reasoningText != null) {
|
|
4063
|
+
return {
|
|
4064
|
+
reasoningText: (0, import_smithy_client._json)(output.reasoningText)
|
|
4065
|
+
};
|
|
4066
|
+
}
|
|
4067
|
+
if (output.redactedContent != null) {
|
|
4068
|
+
return {
|
|
4069
|
+
redactedContent: context.base64Decoder(output.redactedContent)
|
|
4070
|
+
};
|
|
4071
|
+
}
|
|
4072
|
+
return { $unknown: Object.entries(output)[0] };
|
|
4073
|
+
}, "de_ReasoningContentBlock");
|
|
4008
4074
|
var de_RerankDocument = /* @__PURE__ */ __name((output, context) => {
|
|
4009
4075
|
return (0, import_smithy_client.take)(output, {
|
|
4010
4076
|
jsonDocument: (_) => de_Document(_, context),
|
|
@@ -4461,6 +4527,7 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
4461
4527
|
InvocationType,
|
|
4462
4528
|
CreationMode,
|
|
4463
4529
|
PromptType,
|
|
4530
|
+
ReasoningContentBlock,
|
|
4464
4531
|
Source,
|
|
4465
4532
|
Type,
|
|
4466
4533
|
OrchestrationTrace,
|
|
@@ -4568,6 +4635,8 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
4568
4635
|
UsageFilterSensitiveLog,
|
|
4569
4636
|
MetadataFilterSensitiveLog,
|
|
4570
4637
|
RawResponseFilterSensitiveLog,
|
|
4638
|
+
ReasoningTextBlockFilterSensitiveLog,
|
|
4639
|
+
ReasoningContentBlockFilterSensitiveLog,
|
|
4571
4640
|
OrchestrationModelInvocationOutputFilterSensitiveLog,
|
|
4572
4641
|
FinalResponseFilterSensitiveLog,
|
|
4573
4642
|
KnowledgeBaseLookupOutputFilterSensitiveLog,
|
|
@@ -492,6 +492,16 @@ export const PromptType = {
|
|
|
492
492
|
PRE_PROCESSING: "PRE_PROCESSING",
|
|
493
493
|
ROUTING_CLASSIFIER: "ROUTING_CLASSIFIER",
|
|
494
494
|
};
|
|
495
|
+
export var ReasoningContentBlock;
|
|
496
|
+
(function (ReasoningContentBlock) {
|
|
497
|
+
ReasoningContentBlock.visit = (value, visitor) => {
|
|
498
|
+
if (value.reasoningText !== undefined)
|
|
499
|
+
return visitor.reasoningText(value.reasoningText);
|
|
500
|
+
if (value.redactedContent !== undefined)
|
|
501
|
+
return visitor.redactedContent(value.redactedContent);
|
|
502
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
503
|
+
};
|
|
504
|
+
})(ReasoningContentBlock || (ReasoningContentBlock = {}));
|
|
495
505
|
export const Source = {
|
|
496
506
|
ACTION_GROUP: "ACTION_GROUP",
|
|
497
507
|
KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
|
|
@@ -1196,10 +1206,22 @@ export const MetadataFilterSensitiveLog = (obj) => ({
|
|
|
1196
1206
|
export const RawResponseFilterSensitiveLog = (obj) => ({
|
|
1197
1207
|
...obj,
|
|
1198
1208
|
});
|
|
1209
|
+
export const ReasoningTextBlockFilterSensitiveLog = (obj) => ({
|
|
1210
|
+
...obj,
|
|
1211
|
+
});
|
|
1212
|
+
export const ReasoningContentBlockFilterSensitiveLog = (obj) => {
|
|
1213
|
+
if (obj.reasoningText !== undefined)
|
|
1214
|
+
return { reasoningText: SENSITIVE_STRING };
|
|
1215
|
+
if (obj.redactedContent !== undefined)
|
|
1216
|
+
return { redactedContent: obj.redactedContent };
|
|
1217
|
+
if (obj.$unknown !== undefined)
|
|
1218
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1219
|
+
};
|
|
1199
1220
|
export const OrchestrationModelInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
1200
1221
|
...obj,
|
|
1201
1222
|
...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
|
|
1202
1223
|
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
1224
|
+
...(obj.reasoningContent && { reasoningContent: SENSITIVE_STRING }),
|
|
1203
1225
|
});
|
|
1204
1226
|
export const FinalResponseFilterSensitiveLog = (obj) => ({
|
|
1205
1227
|
...obj,
|
|
@@ -1256,6 +1278,7 @@ export const PostProcessingModelInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
|
1256
1278
|
...(obj.parsedResponse && { parsedResponse: SENSITIVE_STRING }),
|
|
1257
1279
|
...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
|
|
1258
1280
|
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
1281
|
+
...(obj.reasoningContent && { reasoningContent: SENSITIVE_STRING }),
|
|
1259
1282
|
});
|
|
1260
1283
|
export const PostProcessingTraceFilterSensitiveLog = (obj) => {
|
|
1261
1284
|
if (obj.modelInvocationInput !== undefined)
|
|
@@ -1274,6 +1297,7 @@ export const PreProcessingModelInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
|
1274
1297
|
...(obj.parsedResponse && { parsedResponse: SENSITIVE_STRING }),
|
|
1275
1298
|
...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
|
|
1276
1299
|
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
1300
|
+
...(obj.reasoningContent && { reasoningContent: SENSITIVE_STRING }),
|
|
1277
1301
|
});
|
|
1278
1302
|
export const PreProcessingTraceFilterSensitiveLog = (obj) => {
|
|
1279
1303
|
if (obj.modelInvocationInput !== undefined)
|
|
@@ -1604,6 +1604,14 @@ const de_Observation = (output, context) => {
|
|
|
1604
1604
|
type: __expectString,
|
|
1605
1605
|
});
|
|
1606
1606
|
};
|
|
1607
|
+
const de_OrchestrationModelInvocationOutput = (output, context) => {
|
|
1608
|
+
return take(output, {
|
|
1609
|
+
metadata: _json,
|
|
1610
|
+
rawResponse: _json,
|
|
1611
|
+
reasoningContent: (_) => de_ReasoningContentBlock(__expectUnion(_), context),
|
|
1612
|
+
traceId: __expectString,
|
|
1613
|
+
});
|
|
1614
|
+
};
|
|
1607
1615
|
const de_OrchestrationTrace = (output, context) => {
|
|
1608
1616
|
if (output.invocationInput != null) {
|
|
1609
1617
|
return {
|
|
@@ -1617,7 +1625,7 @@ const de_OrchestrationTrace = (output, context) => {
|
|
|
1617
1625
|
}
|
|
1618
1626
|
if (output.modelInvocationOutput != null) {
|
|
1619
1627
|
return {
|
|
1620
|
-
modelInvocationOutput:
|
|
1628
|
+
modelInvocationOutput: de_OrchestrationModelInvocationOutput(output.modelInvocationOutput, context),
|
|
1621
1629
|
};
|
|
1622
1630
|
}
|
|
1623
1631
|
if (output.observation != null) {
|
|
@@ -1653,6 +1661,15 @@ const de_PayloadPart = (output, context) => {
|
|
|
1653
1661
|
bytes: context.base64Decoder,
|
|
1654
1662
|
});
|
|
1655
1663
|
};
|
|
1664
|
+
const de_PostProcessingModelInvocationOutput = (output, context) => {
|
|
1665
|
+
return take(output, {
|
|
1666
|
+
metadata: _json,
|
|
1667
|
+
parsedResponse: _json,
|
|
1668
|
+
rawResponse: _json,
|
|
1669
|
+
reasoningContent: (_) => de_ReasoningContentBlock(__expectUnion(_), context),
|
|
1670
|
+
traceId: __expectString,
|
|
1671
|
+
});
|
|
1672
|
+
};
|
|
1656
1673
|
const de_PostProcessingTrace = (output, context) => {
|
|
1657
1674
|
if (output.modelInvocationInput != null) {
|
|
1658
1675
|
return {
|
|
@@ -1661,11 +1678,20 @@ const de_PostProcessingTrace = (output, context) => {
|
|
|
1661
1678
|
}
|
|
1662
1679
|
if (output.modelInvocationOutput != null) {
|
|
1663
1680
|
return {
|
|
1664
|
-
modelInvocationOutput:
|
|
1681
|
+
modelInvocationOutput: de_PostProcessingModelInvocationOutput(output.modelInvocationOutput, context),
|
|
1665
1682
|
};
|
|
1666
1683
|
}
|
|
1667
1684
|
return { $unknown: Object.entries(output)[0] };
|
|
1668
1685
|
};
|
|
1686
|
+
const de_PreProcessingModelInvocationOutput = (output, context) => {
|
|
1687
|
+
return take(output, {
|
|
1688
|
+
metadata: _json,
|
|
1689
|
+
parsedResponse: _json,
|
|
1690
|
+
rawResponse: _json,
|
|
1691
|
+
reasoningContent: (_) => de_ReasoningContentBlock(__expectUnion(_), context),
|
|
1692
|
+
traceId: __expectString,
|
|
1693
|
+
});
|
|
1694
|
+
};
|
|
1669
1695
|
const de_PreProcessingTrace = (output, context) => {
|
|
1670
1696
|
if (output.modelInvocationInput != null) {
|
|
1671
1697
|
return {
|
|
@@ -1674,7 +1700,20 @@ const de_PreProcessingTrace = (output, context) => {
|
|
|
1674
1700
|
}
|
|
1675
1701
|
if (output.modelInvocationOutput != null) {
|
|
1676
1702
|
return {
|
|
1677
|
-
modelInvocationOutput:
|
|
1703
|
+
modelInvocationOutput: de_PreProcessingModelInvocationOutput(output.modelInvocationOutput, context),
|
|
1704
|
+
};
|
|
1705
|
+
}
|
|
1706
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1707
|
+
};
|
|
1708
|
+
const de_ReasoningContentBlock = (output, context) => {
|
|
1709
|
+
if (output.reasoningText != null) {
|
|
1710
|
+
return {
|
|
1711
|
+
reasoningText: _json(output.reasoningText),
|
|
1712
|
+
};
|
|
1713
|
+
}
|
|
1714
|
+
if (output.redactedContent != null) {
|
|
1715
|
+
return {
|
|
1716
|
+
redactedContent: context.base64Decoder(output.redactedContent),
|
|
1678
1717
|
};
|
|
1679
1718
|
}
|
|
1680
1719
|
return { $unknown: Object.entries(output)[0] };
|
|
@@ -488,6 +488,13 @@ declare const InvokeAgentCommand_base: {
|
|
|
488
488
|
* // outputTokens: Number("int"),
|
|
489
489
|
* // },
|
|
490
490
|
* // },
|
|
491
|
+
* // reasoningContent: { // ReasoningContentBlock Union: only one key present
|
|
492
|
+
* // reasoningText: { // ReasoningTextBlock
|
|
493
|
+
* // text: "STRING_VALUE", // required
|
|
494
|
+
* // signature: "STRING_VALUE",
|
|
495
|
+
* // },
|
|
496
|
+
* // redactedContent: new Uint8Array(),
|
|
497
|
+
* // },
|
|
491
498
|
* // },
|
|
492
499
|
* // },
|
|
493
500
|
* // orchestrationTrace: { // OrchestrationTrace Union: only one key present
|
|
@@ -728,6 +735,13 @@ declare const InvokeAgentCommand_base: {
|
|
|
728
735
|
* // outputTokens: Number("int"),
|
|
729
736
|
* // },
|
|
730
737
|
* // },
|
|
738
|
+
* // reasoningContent: {// Union: only one key present
|
|
739
|
+
* // reasoningText: {
|
|
740
|
+
* // text: "STRING_VALUE", // required
|
|
741
|
+
* // signature: "STRING_VALUE",
|
|
742
|
+
* // },
|
|
743
|
+
* // redactedContent: new Uint8Array(),
|
|
744
|
+
* // },
|
|
731
745
|
* // },
|
|
732
746
|
* // },
|
|
733
747
|
* // postProcessingTrace: { // PostProcessingTrace Union: only one key present
|
|
@@ -763,6 +777,13 @@ declare const InvokeAgentCommand_base: {
|
|
|
763
777
|
* // outputTokens: Number("int"),
|
|
764
778
|
* // },
|
|
765
779
|
* // },
|
|
780
|
+
* // reasoningContent: {// Union: only one key present
|
|
781
|
+
* // reasoningText: {
|
|
782
|
+
* // text: "STRING_VALUE", // required
|
|
783
|
+
* // signature: "STRING_VALUE",
|
|
784
|
+
* // },
|
|
785
|
+
* // redactedContent: new Uint8Array(),
|
|
786
|
+
* // },
|
|
766
787
|
* // },
|
|
767
788
|
* // },
|
|
768
789
|
* // routingClassifierTrace: { // RoutingClassifierTrace Union: only one key present
|
|
@@ -510,6 +510,13 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
510
510
|
* // outputTokens: Number("int"),
|
|
511
511
|
* // },
|
|
512
512
|
* // },
|
|
513
|
+
* // reasoningContent: { // ReasoningContentBlock Union: only one key present
|
|
514
|
+
* // reasoningText: { // ReasoningTextBlock
|
|
515
|
+
* // text: "STRING_VALUE", // required
|
|
516
|
+
* // signature: "STRING_VALUE",
|
|
517
|
+
* // },
|
|
518
|
+
* // redactedContent: new Uint8Array(),
|
|
519
|
+
* // },
|
|
513
520
|
* // },
|
|
514
521
|
* // },
|
|
515
522
|
* // orchestrationTrace: { // OrchestrationTrace Union: only one key present
|
|
@@ -750,6 +757,13 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
750
757
|
* // outputTokens: Number("int"),
|
|
751
758
|
* // },
|
|
752
759
|
* // },
|
|
760
|
+
* // reasoningContent: {// Union: only one key present
|
|
761
|
+
* // reasoningText: {
|
|
762
|
+
* // text: "STRING_VALUE", // required
|
|
763
|
+
* // signature: "STRING_VALUE",
|
|
764
|
+
* // },
|
|
765
|
+
* // redactedContent: new Uint8Array(),
|
|
766
|
+
* // },
|
|
753
767
|
* // },
|
|
754
768
|
* // },
|
|
755
769
|
* // postProcessingTrace: { // PostProcessingTrace Union: only one key present
|
|
@@ -785,6 +799,13 @@ declare const InvokeInlineAgentCommand_base: {
|
|
|
785
799
|
* // outputTokens: Number("int"),
|
|
786
800
|
* // },
|
|
787
801
|
* // },
|
|
802
|
+
* // reasoningContent: {// Union: only one key present
|
|
803
|
+
* // reasoningText: {
|
|
804
|
+
* // text: "STRING_VALUE", // required
|
|
805
|
+
* // signature: "STRING_VALUE",
|
|
806
|
+
* // },
|
|
807
|
+
* // redactedContent: new Uint8Array(),
|
|
808
|
+
* // },
|
|
788
809
|
* // },
|
|
789
810
|
* // },
|
|
790
811
|
* // routingClassifierTrace: { // RoutingClassifierTrace Union: only one key present
|
|
@@ -3701,6 +3701,70 @@ export interface RawResponse {
|
|
|
3701
3701
|
*/
|
|
3702
3702
|
content?: string | undefined;
|
|
3703
3703
|
}
|
|
3704
|
+
/**
|
|
3705
|
+
* <p>Contains information about the reasoning that the model used to return the content in the content block.</p>
|
|
3706
|
+
* @public
|
|
3707
|
+
*/
|
|
3708
|
+
export interface ReasoningTextBlock {
|
|
3709
|
+
/**
|
|
3710
|
+
* <p>Text describing the reasoning that the model used to return the content in the content block.</p>
|
|
3711
|
+
* @public
|
|
3712
|
+
*/
|
|
3713
|
+
text: string | undefined;
|
|
3714
|
+
/**
|
|
3715
|
+
* <p>A hash of all the messages in the conversation to ensure that the content in the
|
|
3716
|
+
* reasoning text block isn't tampered with. You must submit the signature in subsequent
|
|
3717
|
+
* <code>Converse</code> requests, in addition to the previous messages. If the
|
|
3718
|
+
* previous messages are tampered with, the response throws an error.</p>
|
|
3719
|
+
* @public
|
|
3720
|
+
*/
|
|
3721
|
+
signature?: string | undefined;
|
|
3722
|
+
}
|
|
3723
|
+
/**
|
|
3724
|
+
* <p>Contains content regarding the reasoning that the foundation model made with respect
|
|
3725
|
+
* to the content in the content block. Reasoning refers to a Chain of Thought (CoT) that
|
|
3726
|
+
* the model generates to enhance the accuracy of its final response.</p>
|
|
3727
|
+
* @public
|
|
3728
|
+
*/
|
|
3729
|
+
export type ReasoningContentBlock = ReasoningContentBlock.ReasoningTextMember | ReasoningContentBlock.RedactedContentMember | ReasoningContentBlock.$UnknownMember;
|
|
3730
|
+
/**
|
|
3731
|
+
* @public
|
|
3732
|
+
*/
|
|
3733
|
+
export declare namespace ReasoningContentBlock {
|
|
3734
|
+
/**
|
|
3735
|
+
* <p>Contains information about the reasoning that the model used to return the content in
|
|
3736
|
+
* the content block.</p>
|
|
3737
|
+
* @public
|
|
3738
|
+
*/
|
|
3739
|
+
interface ReasoningTextMember {
|
|
3740
|
+
reasoningText: ReasoningTextBlock;
|
|
3741
|
+
redactedContent?: never;
|
|
3742
|
+
$unknown?: never;
|
|
3743
|
+
}
|
|
3744
|
+
/**
|
|
3745
|
+
* <p>The content in the reasoning that was encrypted by the model provider for trust and safety reasons.</p>
|
|
3746
|
+
* @public
|
|
3747
|
+
*/
|
|
3748
|
+
interface RedactedContentMember {
|
|
3749
|
+
reasoningText?: never;
|
|
3750
|
+
redactedContent: Uint8Array;
|
|
3751
|
+
$unknown?: never;
|
|
3752
|
+
}
|
|
3753
|
+
/**
|
|
3754
|
+
* @public
|
|
3755
|
+
*/
|
|
3756
|
+
interface $UnknownMember {
|
|
3757
|
+
reasoningText?: never;
|
|
3758
|
+
redactedContent?: never;
|
|
3759
|
+
$unknown: [string, any];
|
|
3760
|
+
}
|
|
3761
|
+
interface Visitor<T> {
|
|
3762
|
+
reasoningText: (value: ReasoningTextBlock) => T;
|
|
3763
|
+
redactedContent: (value: Uint8Array) => T;
|
|
3764
|
+
_: (name: string, value: any) => T;
|
|
3765
|
+
}
|
|
3766
|
+
const visit: <T>(value: ReasoningContentBlock, visitor: Visitor<T>) => T;
|
|
3767
|
+
}
|
|
3704
3768
|
/**
|
|
3705
3769
|
* <p>The foundation model output from the orchestration step.</p>
|
|
3706
3770
|
* @public
|
|
@@ -3721,6 +3785,11 @@ export interface OrchestrationModelInvocationOutput {
|
|
|
3721
3785
|
* @public
|
|
3722
3786
|
*/
|
|
3723
3787
|
metadata?: Metadata | undefined;
|
|
3788
|
+
/**
|
|
3789
|
+
* <p>Contains content about the reasoning that the model made during the orchestration step. </p>
|
|
3790
|
+
* @public
|
|
3791
|
+
*/
|
|
3792
|
+
reasoningContent?: ReasoningContentBlock | undefined;
|
|
3724
3793
|
}
|
|
3725
3794
|
/**
|
|
3726
3795
|
* <p>Contains the JSON-formatted string returned by the API invoked by the code interpreter.</p>
|
|
@@ -4040,6 +4109,11 @@ export interface PostProcessingModelInvocationOutput {
|
|
|
4040
4109
|
* @public
|
|
4041
4110
|
*/
|
|
4042
4111
|
metadata?: Metadata | undefined;
|
|
4112
|
+
/**
|
|
4113
|
+
* <p>Contains content about the reasoning that the model made during the post-processing step.</p>
|
|
4114
|
+
* @public
|
|
4115
|
+
*/
|
|
4116
|
+
reasoningContent?: ReasoningContentBlock | undefined;
|
|
4043
4117
|
}
|
|
4044
4118
|
/**
|
|
4045
4119
|
* <p>Details about the post-processing step, in which the agent shapes the response.</p>
|
|
@@ -4139,6 +4213,11 @@ export interface PreProcessingModelInvocationOutput {
|
|
|
4139
4213
|
* @public
|
|
4140
4214
|
*/
|
|
4141
4215
|
metadata?: Metadata | undefined;
|
|
4216
|
+
/**
|
|
4217
|
+
* <p>Contains content about the reasoning that the model made during the pre-processing step. </p>
|
|
4218
|
+
* @public
|
|
4219
|
+
*/
|
|
4220
|
+
reasoningContent?: ReasoningContentBlock | undefined;
|
|
4142
4221
|
}
|
|
4143
4222
|
/**
|
|
4144
4223
|
* <p>Details about the pre-processing step, in which the agent contextualizes and categorizes user inputs.</p>
|
|
@@ -4985,7 +5064,7 @@ export interface PromptConfiguration {
|
|
|
4985
5064
|
*/
|
|
4986
5065
|
inferenceConfiguration?: InferenceConfiguration | undefined;
|
|
4987
5066
|
/**
|
|
4988
|
-
* <p>Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the <code>promptType</code>. If you set the field as <code>
|
|
5067
|
+
* <p>Specifies whether to override the default parser Lambda function when parsing the raw foundation model output in the part of the agent sequence defined by the <code>promptType</code>. If you set the field as <code>OVERRIDDEN</code>, the <code>overrideLambda</code> field in the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent_PromptOverrideConfiguration.html">PromptOverrideConfiguration</a> must be specified with the ARN of a Lambda function.</p>
|
|
4989
5068
|
* @public
|
|
4990
5069
|
*/
|
|
4991
5070
|
parserMode?: CreationMode | undefined;
|
|
@@ -8081,6 +8160,14 @@ export declare const MetadataFilterSensitiveLog: (obj: Metadata) => any;
|
|
|
8081
8160
|
* @internal
|
|
8082
8161
|
*/
|
|
8083
8162
|
export declare const RawResponseFilterSensitiveLog: (obj: RawResponse) => any;
|
|
8163
|
+
/**
|
|
8164
|
+
* @internal
|
|
8165
|
+
*/
|
|
8166
|
+
export declare const ReasoningTextBlockFilterSensitiveLog: (obj: ReasoningTextBlock) => any;
|
|
8167
|
+
/**
|
|
8168
|
+
* @internal
|
|
8169
|
+
*/
|
|
8170
|
+
export declare const ReasoningContentBlockFilterSensitiveLog: (obj: ReasoningContentBlock) => any;
|
|
8084
8171
|
/**
|
|
8085
8172
|
* @internal
|
|
8086
8173
|
*/
|
|
@@ -1410,10 +1410,42 @@ export interface Metadata {
|
|
|
1410
1410
|
export interface RawResponse {
|
|
1411
1411
|
content?: string | undefined;
|
|
1412
1412
|
}
|
|
1413
|
+
export interface ReasoningTextBlock {
|
|
1414
|
+
text: string | undefined;
|
|
1415
|
+
signature?: string | undefined;
|
|
1416
|
+
}
|
|
1417
|
+
export type ReasoningContentBlock =
|
|
1418
|
+
| ReasoningContentBlock.ReasoningTextMember
|
|
1419
|
+
| ReasoningContentBlock.RedactedContentMember
|
|
1420
|
+
| ReasoningContentBlock.$UnknownMember;
|
|
1421
|
+
export declare namespace ReasoningContentBlock {
|
|
1422
|
+
interface ReasoningTextMember {
|
|
1423
|
+
reasoningText: ReasoningTextBlock;
|
|
1424
|
+
redactedContent?: never;
|
|
1425
|
+
$unknown?: never;
|
|
1426
|
+
}
|
|
1427
|
+
interface RedactedContentMember {
|
|
1428
|
+
reasoningText?: never;
|
|
1429
|
+
redactedContent: Uint8Array;
|
|
1430
|
+
$unknown?: never;
|
|
1431
|
+
}
|
|
1432
|
+
interface $UnknownMember {
|
|
1433
|
+
reasoningText?: never;
|
|
1434
|
+
redactedContent?: never;
|
|
1435
|
+
$unknown: [string, any];
|
|
1436
|
+
}
|
|
1437
|
+
interface Visitor<T> {
|
|
1438
|
+
reasoningText: (value: ReasoningTextBlock) => T;
|
|
1439
|
+
redactedContent: (value: Uint8Array) => T;
|
|
1440
|
+
_: (name: string, value: any) => T;
|
|
1441
|
+
}
|
|
1442
|
+
const visit: <T>(value: ReasoningContentBlock, visitor: Visitor<T>) => T;
|
|
1443
|
+
}
|
|
1413
1444
|
export interface OrchestrationModelInvocationOutput {
|
|
1414
1445
|
traceId?: string | undefined;
|
|
1415
1446
|
rawResponse?: RawResponse | undefined;
|
|
1416
1447
|
metadata?: Metadata | undefined;
|
|
1448
|
+
reasoningContent?: ReasoningContentBlock | undefined;
|
|
1417
1449
|
}
|
|
1418
1450
|
export interface CodeInterpreterInvocationOutput {
|
|
1419
1451
|
executionOutput?: string | undefined;
|
|
@@ -1536,6 +1568,7 @@ export interface PostProcessingModelInvocationOutput {
|
|
|
1536
1568
|
parsedResponse?: PostProcessingParsedResponse | undefined;
|
|
1537
1569
|
rawResponse?: RawResponse | undefined;
|
|
1538
1570
|
metadata?: Metadata | undefined;
|
|
1571
|
+
reasoningContent?: ReasoningContentBlock | undefined;
|
|
1539
1572
|
}
|
|
1540
1573
|
export type PostProcessingTrace =
|
|
1541
1574
|
| PostProcessingTrace.ModelInvocationInputMember
|
|
@@ -1573,6 +1606,7 @@ export interface PreProcessingModelInvocationOutput {
|
|
|
1573
1606
|
parsedResponse?: PreProcessingParsedResponse | undefined;
|
|
1574
1607
|
rawResponse?: RawResponse | undefined;
|
|
1575
1608
|
metadata?: Metadata | undefined;
|
|
1609
|
+
reasoningContent?: ReasoningContentBlock | undefined;
|
|
1576
1610
|
}
|
|
1577
1611
|
export type PreProcessingTrace =
|
|
1578
1612
|
| PreProcessingTrace.ModelInvocationInputMember
|
|
@@ -3584,6 +3618,12 @@ export declare const ModelInvocationInputFilterSensitiveLog: (
|
|
|
3584
3618
|
export declare const UsageFilterSensitiveLog: (obj: Usage) => any;
|
|
3585
3619
|
export declare const MetadataFilterSensitiveLog: (obj: Metadata) => any;
|
|
3586
3620
|
export declare const RawResponseFilterSensitiveLog: (obj: RawResponse) => any;
|
|
3621
|
+
export declare const ReasoningTextBlockFilterSensitiveLog: (
|
|
3622
|
+
obj: ReasoningTextBlock
|
|
3623
|
+
) => any;
|
|
3624
|
+
export declare const ReasoningContentBlockFilterSensitiveLog: (
|
|
3625
|
+
obj: ReasoningContentBlock
|
|
3626
|
+
) => any;
|
|
3587
3627
|
export declare const OrchestrationModelInvocationOutputFilterSensitiveLog: (
|
|
3588
3628
|
obj: OrchestrationModelInvocationOutput
|
|
3589
3629
|
) => any;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agent-runtime",
|
|
3
3
|
"description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.755.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent-runtime",
|