@aws-sdk/client-bedrock-agent-runtime 3.751.0 → 3.758.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/README.md +119 -7
- package/dist-cjs/index.js +1009 -55
- package/dist-es/BedrockAgentRuntime.js +28 -0
- package/dist-es/commands/CreateInvocationCommand.js +22 -0
- package/dist-es/commands/CreateSessionCommand.js +22 -0
- package/dist-es/commands/DeleteSessionCommand.js +22 -0
- package/dist-es/commands/EndSessionCommand.js +22 -0
- package/dist-es/commands/GetInvocationStepCommand.js +23 -0
- package/dist-es/commands/GetSessionCommand.js +22 -0
- package/dist-es/commands/InvokeAgentCommand.js +2 -1
- package/dist-es/commands/InvokeInlineAgentCommand.js +2 -1
- package/dist-es/commands/ListInvocationStepsCommand.js +22 -0
- package/dist-es/commands/ListInvocationsCommand.js +22 -0
- package/dist-es/commands/ListSessionsCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/PutInvocationStepCommand.js +23 -0
- package/dist-es/commands/RetrieveAndGenerateCommand.js +2 -1
- package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +2 -1
- package/dist-es/commands/RetrieveCommand.js +2 -1
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/UpdateSessionCommand.js +22 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +78 -151
- package/dist-es/models/models_1.js +164 -0
- package/dist-es/pagination/ListInvocationStepsPaginator.js +4 -0
- package/dist-es/pagination/ListInvocationsPaginator.js +4 -0
- package/dist-es/pagination/ListSessionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +574 -11
- package/dist-types/BedrockAgentRuntime.d.ts +100 -0
- package/dist-types/BedrockAgentRuntimeClient.d.ts +16 -2
- package/dist-types/commands/CreateInvocationCommand.d.ts +115 -0
- package/dist-types/commands/CreateSessionCommand.d.ts +133 -0
- package/dist-types/commands/DeleteSessionCommand.d.ts +89 -0
- package/dist-types/commands/EndSessionCommand.d.ts +93 -0
- package/dist-types/commands/GetInvocationStepCommand.d.ts +109 -0
- package/dist-types/commands/GetSessionCommand.d.ts +94 -0
- package/dist-types/commands/InvokeAgentCommand.d.ts +23 -1
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +23 -1
- package/dist-types/commands/ListInvocationStepsCommand.d.ts +97 -0
- package/dist-types/commands/ListInvocationsCommand.d.ts +95 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +93 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
- package/dist-types/commands/PutInvocationStepCommand.d.ts +134 -0
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +2 -1
- package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -1
- package/dist-types/commands/RetrieveCommand.d.ts +2 -1
- package/dist-types/commands/TagResourceCommand.d.ts +90 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
- package/dist-types/commands/UpdateSessionCommand.d.ts +96 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +582 -635
- package/dist-types/models/models_1.d.ts +919 -0
- package/dist-types/pagination/ListInvocationStepsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListInvocationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
- package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +240 -0
- package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +86 -2
- package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +262 -365
- package/dist-types/ts3.4/models/models_1.d.ts +416 -0
- package/dist-types/ts3.4/pagination/ListInvocationStepsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListInvocationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
- package/package.json +12 -12
|
@@ -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",
|
|
@@ -752,38 +762,45 @@ export var RetrieveAndGenerateStreamResponseOutput;
|
|
|
752
762
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
753
763
|
};
|
|
754
764
|
})(RetrieveAndGenerateStreamResponseOutput || (RetrieveAndGenerateStreamResponseOutput = {}));
|
|
755
|
-
export
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
765
|
+
export const SessionStatus = {
|
|
766
|
+
ACTIVE: "ACTIVE",
|
|
767
|
+
ENDED: "ENDED",
|
|
768
|
+
EXPIRED: "EXPIRED",
|
|
769
|
+
};
|
|
770
|
+
export const ImageFormat = {
|
|
771
|
+
GIF: "gif",
|
|
772
|
+
JPEG: "jpeg",
|
|
773
|
+
PNG: "png",
|
|
774
|
+
WEBP: "webp",
|
|
775
|
+
};
|
|
776
|
+
export var ImageSource;
|
|
777
|
+
(function (ImageSource) {
|
|
778
|
+
ImageSource.visit = (value, visitor) => {
|
|
779
|
+
if (value.bytes !== undefined)
|
|
780
|
+
return visitor.bytes(value.bytes);
|
|
781
|
+
if (value.s3Location !== undefined)
|
|
782
|
+
return visitor.s3Location(value.s3Location);
|
|
783
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
784
|
+
};
|
|
785
|
+
})(ImageSource || (ImageSource = {}));
|
|
786
|
+
export var BedrockSessionContentBlock;
|
|
787
|
+
(function (BedrockSessionContentBlock) {
|
|
788
|
+
BedrockSessionContentBlock.visit = (value, visitor) => {
|
|
789
|
+
if (value.text !== undefined)
|
|
790
|
+
return visitor.text(value.text);
|
|
791
|
+
if (value.image !== undefined)
|
|
792
|
+
return visitor.image(value.image);
|
|
793
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
794
|
+
};
|
|
795
|
+
})(BedrockSessionContentBlock || (BedrockSessionContentBlock = {}));
|
|
796
|
+
export var InvocationStepPayload;
|
|
797
|
+
(function (InvocationStepPayload) {
|
|
798
|
+
InvocationStepPayload.visit = (value, visitor) => {
|
|
799
|
+
if (value.contentBlocks !== undefined)
|
|
800
|
+
return visitor.contentBlocks(value.contentBlocks);
|
|
784
801
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
785
802
|
};
|
|
786
|
-
})(
|
|
803
|
+
})(InvocationStepPayload || (InvocationStepPayload = {}));
|
|
787
804
|
export const ActionGroupInvocationInputFilterSensitiveLog = (obj) => ({
|
|
788
805
|
...obj,
|
|
789
806
|
...(obj.actionGroupName && { actionGroupName: SENSITIVE_STRING }),
|
|
@@ -1196,10 +1213,22 @@ export const MetadataFilterSensitiveLog = (obj) => ({
|
|
|
1196
1213
|
export const RawResponseFilterSensitiveLog = (obj) => ({
|
|
1197
1214
|
...obj,
|
|
1198
1215
|
});
|
|
1216
|
+
export const ReasoningTextBlockFilterSensitiveLog = (obj) => ({
|
|
1217
|
+
...obj,
|
|
1218
|
+
});
|
|
1219
|
+
export const ReasoningContentBlockFilterSensitiveLog = (obj) => {
|
|
1220
|
+
if (obj.reasoningText !== undefined)
|
|
1221
|
+
return { reasoningText: SENSITIVE_STRING };
|
|
1222
|
+
if (obj.redactedContent !== undefined)
|
|
1223
|
+
return { redactedContent: obj.redactedContent };
|
|
1224
|
+
if (obj.$unknown !== undefined)
|
|
1225
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1226
|
+
};
|
|
1199
1227
|
export const OrchestrationModelInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
1200
1228
|
...obj,
|
|
1201
1229
|
...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
|
|
1202
1230
|
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
1231
|
+
...(obj.reasoningContent && { reasoningContent: SENSITIVE_STRING }),
|
|
1203
1232
|
});
|
|
1204
1233
|
export const FinalResponseFilterSensitiveLog = (obj) => ({
|
|
1205
1234
|
...obj,
|
|
@@ -1256,6 +1285,7 @@ export const PostProcessingModelInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
|
1256
1285
|
...(obj.parsedResponse && { parsedResponse: SENSITIVE_STRING }),
|
|
1257
1286
|
...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
|
|
1258
1287
|
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
1288
|
+
...(obj.reasoningContent && { reasoningContent: SENSITIVE_STRING }),
|
|
1259
1289
|
});
|
|
1260
1290
|
export const PostProcessingTraceFilterSensitiveLog = (obj) => {
|
|
1261
1291
|
if (obj.modelInvocationInput !== undefined)
|
|
@@ -1274,6 +1304,7 @@ export const PreProcessingModelInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
|
1274
1304
|
...(obj.parsedResponse && { parsedResponse: SENSITIVE_STRING }),
|
|
1275
1305
|
...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
|
|
1276
1306
|
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
1307
|
+
...(obj.reasoningContent && { reasoningContent: SENSITIVE_STRING }),
|
|
1277
1308
|
});
|
|
1278
1309
|
export const PreProcessingTraceFilterSensitiveLog = (obj) => {
|
|
1279
1310
|
if (obj.modelInvocationInput !== undefined)
|
|
@@ -1609,133 +1640,29 @@ export const RetrieveResponseFilterSensitiveLog = (obj) => ({
|
|
|
1609
1640
|
...obj,
|
|
1610
1641
|
...(obj.retrievalResults && { retrievalResults: SENSITIVE_STRING }),
|
|
1611
1642
|
});
|
|
1612
|
-
export const
|
|
1613
|
-
if (obj.
|
|
1614
|
-
return {
|
|
1615
|
-
if (obj.
|
|
1616
|
-
return {
|
|
1617
|
-
if (obj.greaterThan !== undefined)
|
|
1618
|
-
return { greaterThan: obj.greaterThan };
|
|
1619
|
-
if (obj.greaterThanOrEquals !== undefined)
|
|
1620
|
-
return { greaterThanOrEquals: obj.greaterThanOrEquals };
|
|
1621
|
-
if (obj.lessThan !== undefined)
|
|
1622
|
-
return { lessThan: obj.lessThan };
|
|
1623
|
-
if (obj.lessThanOrEquals !== undefined)
|
|
1624
|
-
return { lessThanOrEquals: obj.lessThanOrEquals };
|
|
1625
|
-
if (obj.in !== undefined)
|
|
1626
|
-
return { in: obj.in };
|
|
1627
|
-
if (obj.notIn !== undefined)
|
|
1628
|
-
return { notIn: obj.notIn };
|
|
1629
|
-
if (obj.startsWith !== undefined)
|
|
1630
|
-
return { startsWith: obj.startsWith };
|
|
1631
|
-
if (obj.listContains !== undefined)
|
|
1632
|
-
return { listContains: obj.listContains };
|
|
1633
|
-
if (obj.stringContains !== undefined)
|
|
1634
|
-
return { stringContains: obj.stringContains };
|
|
1635
|
-
if (obj.andAll !== undefined)
|
|
1636
|
-
return { andAll: SENSITIVE_STRING };
|
|
1637
|
-
if (obj.orAll !== undefined)
|
|
1638
|
-
return { orAll: SENSITIVE_STRING };
|
|
1643
|
+
export const BedrockSessionContentBlockFilterSensitiveLog = (obj) => {
|
|
1644
|
+
if (obj.text !== undefined)
|
|
1645
|
+
return { text: obj.text };
|
|
1646
|
+
if (obj.image !== undefined)
|
|
1647
|
+
return { image: obj.image };
|
|
1639
1648
|
if (obj.$unknown !== undefined)
|
|
1640
1649
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1641
1650
|
};
|
|
1642
|
-
export const
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
implicitFilterConfiguration: ImplicitFilterConfigurationFilterSensitiveLog(obj.implicitFilterConfiguration),
|
|
1650
|
-
}),
|
|
1651
|
-
});
|
|
1652
|
-
export const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog = (obj) => ({
|
|
1653
|
-
...obj,
|
|
1654
|
-
...(obj.vectorSearchConfiguration && {
|
|
1655
|
-
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog(obj.vectorSearchConfiguration),
|
|
1656
|
-
}),
|
|
1657
|
-
});
|
|
1658
|
-
export const KnowledgeBaseFilterSensitiveLog = (obj) => ({
|
|
1659
|
-
...obj,
|
|
1660
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
1661
|
-
...(obj.retrievalConfiguration && {
|
|
1662
|
-
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
1663
|
-
}),
|
|
1664
|
-
});
|
|
1665
|
-
export const KnowledgeBaseConfigurationFilterSensitiveLog = (obj) => ({
|
|
1666
|
-
...obj,
|
|
1667
|
-
...(obj.retrievalConfiguration && {
|
|
1668
|
-
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
1669
|
-
}),
|
|
1670
|
-
});
|
|
1671
|
-
export const KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
1672
|
-
...obj,
|
|
1673
|
-
...(obj.retrievalConfiguration && {
|
|
1674
|
-
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
1675
|
-
}),
|
|
1676
|
-
...(obj.generationConfiguration && {
|
|
1677
|
-
generationConfiguration: GenerationConfigurationFilterSensitiveLog(obj.generationConfiguration),
|
|
1678
|
-
}),
|
|
1679
|
-
...(obj.orchestrationConfiguration && {
|
|
1680
|
-
orchestrationConfiguration: OrchestrationConfigurationFilterSensitiveLog(obj.orchestrationConfiguration),
|
|
1681
|
-
}),
|
|
1682
|
-
});
|
|
1683
|
-
export const RetrieveRequestFilterSensitiveLog = (obj) => ({
|
|
1684
|
-
...obj,
|
|
1685
|
-
...(obj.retrievalQuery && { retrievalQuery: SENSITIVE_STRING }),
|
|
1686
|
-
...(obj.retrievalConfiguration && {
|
|
1687
|
-
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
1688
|
-
}),
|
|
1689
|
-
});
|
|
1690
|
-
export const RetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
1691
|
-
...obj,
|
|
1692
|
-
...(obj.knowledgeBaseConfiguration && {
|
|
1693
|
-
knowledgeBaseConfiguration: KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration),
|
|
1694
|
-
}),
|
|
1695
|
-
...(obj.externalSourcesConfiguration && {
|
|
1696
|
-
externalSourcesConfiguration: ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog(obj.externalSourcesConfiguration),
|
|
1697
|
-
}),
|
|
1698
|
-
});
|
|
1699
|
-
export const InvokeInlineAgentRequestFilterSensitiveLog = (obj) => ({
|
|
1700
|
-
...obj,
|
|
1701
|
-
...(obj.inputText && { inputText: SENSITIVE_STRING }),
|
|
1702
|
-
...(obj.inlineSessionState && { inlineSessionState: InlineSessionStateFilterSensitiveLog(obj.inlineSessionState) }),
|
|
1703
|
-
...(obj.instruction && { instruction: SENSITIVE_STRING }),
|
|
1704
|
-
...(obj.actionGroups && { actionGroups: obj.actionGroups.map((item) => AgentActionGroupFilterSensitiveLog(item)) }),
|
|
1705
|
-
...(obj.knowledgeBases && {
|
|
1706
|
-
knowledgeBases: obj.knowledgeBases.map((item) => KnowledgeBaseFilterSensitiveLog(item)),
|
|
1707
|
-
}),
|
|
1708
|
-
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
|
|
1709
|
-
});
|
|
1710
|
-
export const RetrieveAndGenerateRequestFilterSensitiveLog = (obj) => ({
|
|
1711
|
-
...obj,
|
|
1712
|
-
...(obj.input && { input: SENSITIVE_STRING }),
|
|
1713
|
-
...(obj.retrieveAndGenerateConfiguration && {
|
|
1714
|
-
retrieveAndGenerateConfiguration: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfiguration),
|
|
1715
|
-
}),
|
|
1716
|
-
});
|
|
1717
|
-
export const RetrieveAndGenerateStreamRequestFilterSensitiveLog = (obj) => ({
|
|
1651
|
+
export const InvocationStepPayloadFilterSensitiveLog = (obj) => {
|
|
1652
|
+
if (obj.contentBlocks !== undefined)
|
|
1653
|
+
return { contentBlocks: SENSITIVE_STRING };
|
|
1654
|
+
if (obj.$unknown !== undefined)
|
|
1655
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1656
|
+
};
|
|
1657
|
+
export const InvocationStepFilterSensitiveLog = (obj) => ({
|
|
1718
1658
|
...obj,
|
|
1719
|
-
...(obj.
|
|
1720
|
-
...(obj.retrieveAndGenerateConfiguration && {
|
|
1721
|
-
retrieveAndGenerateConfiguration: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfiguration),
|
|
1722
|
-
}),
|
|
1659
|
+
...(obj.payload && { payload: InvocationStepPayloadFilterSensitiveLog(obj.payload) }),
|
|
1723
1660
|
});
|
|
1724
|
-
export const
|
|
1661
|
+
export const GetInvocationStepResponseFilterSensitiveLog = (obj) => ({
|
|
1725
1662
|
...obj,
|
|
1726
|
-
...(obj.
|
|
1727
|
-
returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => InvocationResultMemberFilterSensitiveLog(item)),
|
|
1728
|
-
}),
|
|
1729
|
-
...(obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }),
|
|
1730
|
-
...(obj.knowledgeBaseConfigurations && {
|
|
1731
|
-
knowledgeBaseConfigurations: obj.knowledgeBaseConfigurations.map((item) => KnowledgeBaseConfigurationFilterSensitiveLog(item)),
|
|
1732
|
-
}),
|
|
1733
|
-
...(obj.conversationHistory && {
|
|
1734
|
-
conversationHistory: ConversationHistoryFilterSensitiveLog(obj.conversationHistory),
|
|
1735
|
-
}),
|
|
1663
|
+
...(obj.invocationStep && { invocationStep: InvocationStepFilterSensitiveLog(obj.invocationStep) }),
|
|
1736
1664
|
});
|
|
1737
|
-
export const
|
|
1665
|
+
export const PutInvocationStepRequestFilterSensitiveLog = (obj) => ({
|
|
1738
1666
|
...obj,
|
|
1739
|
-
...(obj.
|
|
1740
|
-
...(obj.inputText && { inputText: SENSITIVE_STRING }),
|
|
1667
|
+
...(obj.payload && { payload: InvocationStepPayloadFilterSensitiveLog(obj.payload) }),
|
|
1741
1668
|
});
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
+
import { AgentActionGroupFilterSensitiveLog, ConversationHistoryFilterSensitiveLog, ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog, GenerationConfigurationFilterSensitiveLog, ImplicitFilterConfigurationFilterSensitiveLog, InlineSessionStateFilterSensitiveLog, InputFileFilterSensitiveLog, InvocationResultMemberFilterSensitiveLog, OrchestrationConfigurationFilterSensitiveLog, VectorSearchRerankingConfigurationFilterSensitiveLog, } from "./models_0";
|
|
3
|
+
export var RetrievalFilter;
|
|
4
|
+
(function (RetrievalFilter) {
|
|
5
|
+
RetrievalFilter.visit = (value, visitor) => {
|
|
6
|
+
if (value.equals !== undefined)
|
|
7
|
+
return visitor.equals(value.equals);
|
|
8
|
+
if (value.notEquals !== undefined)
|
|
9
|
+
return visitor.notEquals(value.notEquals);
|
|
10
|
+
if (value.greaterThan !== undefined)
|
|
11
|
+
return visitor.greaterThan(value.greaterThan);
|
|
12
|
+
if (value.greaterThanOrEquals !== undefined)
|
|
13
|
+
return visitor.greaterThanOrEquals(value.greaterThanOrEquals);
|
|
14
|
+
if (value.lessThan !== undefined)
|
|
15
|
+
return visitor.lessThan(value.lessThan);
|
|
16
|
+
if (value.lessThanOrEquals !== undefined)
|
|
17
|
+
return visitor.lessThanOrEquals(value.lessThanOrEquals);
|
|
18
|
+
if (value.in !== undefined)
|
|
19
|
+
return visitor.in(value.in);
|
|
20
|
+
if (value.notIn !== undefined)
|
|
21
|
+
return visitor.notIn(value.notIn);
|
|
22
|
+
if (value.startsWith !== undefined)
|
|
23
|
+
return visitor.startsWith(value.startsWith);
|
|
24
|
+
if (value.listContains !== undefined)
|
|
25
|
+
return visitor.listContains(value.listContains);
|
|
26
|
+
if (value.stringContains !== undefined)
|
|
27
|
+
return visitor.stringContains(value.stringContains);
|
|
28
|
+
if (value.andAll !== undefined)
|
|
29
|
+
return visitor.andAll(value.andAll);
|
|
30
|
+
if (value.orAll !== undefined)
|
|
31
|
+
return visitor.orAll(value.orAll);
|
|
32
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
33
|
+
};
|
|
34
|
+
})(RetrievalFilter || (RetrievalFilter = {}));
|
|
35
|
+
export const RetrievalFilterFilterSensitiveLog = (obj) => {
|
|
36
|
+
if (obj.equals !== undefined)
|
|
37
|
+
return { equals: obj.equals };
|
|
38
|
+
if (obj.notEquals !== undefined)
|
|
39
|
+
return { notEquals: obj.notEquals };
|
|
40
|
+
if (obj.greaterThan !== undefined)
|
|
41
|
+
return { greaterThan: obj.greaterThan };
|
|
42
|
+
if (obj.greaterThanOrEquals !== undefined)
|
|
43
|
+
return { greaterThanOrEquals: obj.greaterThanOrEquals };
|
|
44
|
+
if (obj.lessThan !== undefined)
|
|
45
|
+
return { lessThan: obj.lessThan };
|
|
46
|
+
if (obj.lessThanOrEquals !== undefined)
|
|
47
|
+
return { lessThanOrEquals: obj.lessThanOrEquals };
|
|
48
|
+
if (obj.in !== undefined)
|
|
49
|
+
return { in: obj.in };
|
|
50
|
+
if (obj.notIn !== undefined)
|
|
51
|
+
return { notIn: obj.notIn };
|
|
52
|
+
if (obj.startsWith !== undefined)
|
|
53
|
+
return { startsWith: obj.startsWith };
|
|
54
|
+
if (obj.listContains !== undefined)
|
|
55
|
+
return { listContains: obj.listContains };
|
|
56
|
+
if (obj.stringContains !== undefined)
|
|
57
|
+
return { stringContains: obj.stringContains };
|
|
58
|
+
if (obj.andAll !== undefined)
|
|
59
|
+
return { andAll: SENSITIVE_STRING };
|
|
60
|
+
if (obj.orAll !== undefined)
|
|
61
|
+
return { orAll: SENSITIVE_STRING };
|
|
62
|
+
if (obj.$unknown !== undefined)
|
|
63
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
64
|
+
};
|
|
65
|
+
export const KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog = (obj) => ({
|
|
66
|
+
...obj,
|
|
67
|
+
...(obj.filter && { filter: SENSITIVE_STRING }),
|
|
68
|
+
...(obj.rerankingConfiguration && {
|
|
69
|
+
rerankingConfiguration: VectorSearchRerankingConfigurationFilterSensitiveLog(obj.rerankingConfiguration),
|
|
70
|
+
}),
|
|
71
|
+
...(obj.implicitFilterConfiguration && {
|
|
72
|
+
implicitFilterConfiguration: ImplicitFilterConfigurationFilterSensitiveLog(obj.implicitFilterConfiguration),
|
|
73
|
+
}),
|
|
74
|
+
});
|
|
75
|
+
export const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog = (obj) => ({
|
|
76
|
+
...obj,
|
|
77
|
+
...(obj.vectorSearchConfiguration && {
|
|
78
|
+
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog(obj.vectorSearchConfiguration),
|
|
79
|
+
}),
|
|
80
|
+
});
|
|
81
|
+
export const KnowledgeBaseFilterSensitiveLog = (obj) => ({
|
|
82
|
+
...obj,
|
|
83
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
84
|
+
...(obj.retrievalConfiguration && {
|
|
85
|
+
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
86
|
+
}),
|
|
87
|
+
});
|
|
88
|
+
export const KnowledgeBaseConfigurationFilterSensitiveLog = (obj) => ({
|
|
89
|
+
...obj,
|
|
90
|
+
...(obj.retrievalConfiguration && {
|
|
91
|
+
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
92
|
+
}),
|
|
93
|
+
});
|
|
94
|
+
export const KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
95
|
+
...obj,
|
|
96
|
+
...(obj.retrievalConfiguration && {
|
|
97
|
+
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
98
|
+
}),
|
|
99
|
+
...(obj.generationConfiguration && {
|
|
100
|
+
generationConfiguration: GenerationConfigurationFilterSensitiveLog(obj.generationConfiguration),
|
|
101
|
+
}),
|
|
102
|
+
...(obj.orchestrationConfiguration && {
|
|
103
|
+
orchestrationConfiguration: OrchestrationConfigurationFilterSensitiveLog(obj.orchestrationConfiguration),
|
|
104
|
+
}),
|
|
105
|
+
});
|
|
106
|
+
export const RetrieveRequestFilterSensitiveLog = (obj) => ({
|
|
107
|
+
...obj,
|
|
108
|
+
...(obj.retrievalQuery && { retrievalQuery: SENSITIVE_STRING }),
|
|
109
|
+
...(obj.retrievalConfiguration && {
|
|
110
|
+
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
111
|
+
}),
|
|
112
|
+
});
|
|
113
|
+
export const RetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
114
|
+
...obj,
|
|
115
|
+
...(obj.knowledgeBaseConfiguration && {
|
|
116
|
+
knowledgeBaseConfiguration: KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration),
|
|
117
|
+
}),
|
|
118
|
+
...(obj.externalSourcesConfiguration && {
|
|
119
|
+
externalSourcesConfiguration: ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog(obj.externalSourcesConfiguration),
|
|
120
|
+
}),
|
|
121
|
+
});
|
|
122
|
+
export const InvokeInlineAgentRequestFilterSensitiveLog = (obj) => ({
|
|
123
|
+
...obj,
|
|
124
|
+
...(obj.inputText && { inputText: SENSITIVE_STRING }),
|
|
125
|
+
...(obj.inlineSessionState && { inlineSessionState: InlineSessionStateFilterSensitiveLog(obj.inlineSessionState) }),
|
|
126
|
+
...(obj.instruction && { instruction: SENSITIVE_STRING }),
|
|
127
|
+
...(obj.actionGroups && { actionGroups: obj.actionGroups.map((item) => AgentActionGroupFilterSensitiveLog(item)) }),
|
|
128
|
+
...(obj.knowledgeBases && {
|
|
129
|
+
knowledgeBases: obj.knowledgeBases.map((item) => KnowledgeBaseFilterSensitiveLog(item)),
|
|
130
|
+
}),
|
|
131
|
+
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
|
|
132
|
+
});
|
|
133
|
+
export const RetrieveAndGenerateRequestFilterSensitiveLog = (obj) => ({
|
|
134
|
+
...obj,
|
|
135
|
+
...(obj.input && { input: SENSITIVE_STRING }),
|
|
136
|
+
...(obj.retrieveAndGenerateConfiguration && {
|
|
137
|
+
retrieveAndGenerateConfiguration: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfiguration),
|
|
138
|
+
}),
|
|
139
|
+
});
|
|
140
|
+
export const RetrieveAndGenerateStreamRequestFilterSensitiveLog = (obj) => ({
|
|
141
|
+
...obj,
|
|
142
|
+
...(obj.input && { input: SENSITIVE_STRING }),
|
|
143
|
+
...(obj.retrieveAndGenerateConfiguration && {
|
|
144
|
+
retrieveAndGenerateConfiguration: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfiguration),
|
|
145
|
+
}),
|
|
146
|
+
});
|
|
147
|
+
export const SessionStateFilterSensitiveLog = (obj) => ({
|
|
148
|
+
...obj,
|
|
149
|
+
...(obj.returnControlInvocationResults && {
|
|
150
|
+
returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => InvocationResultMemberFilterSensitiveLog(item)),
|
|
151
|
+
}),
|
|
152
|
+
...(obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }),
|
|
153
|
+
...(obj.knowledgeBaseConfigurations && {
|
|
154
|
+
knowledgeBaseConfigurations: obj.knowledgeBaseConfigurations.map((item) => KnowledgeBaseConfigurationFilterSensitiveLog(item)),
|
|
155
|
+
}),
|
|
156
|
+
...(obj.conversationHistory && {
|
|
157
|
+
conversationHistory: ConversationHistoryFilterSensitiveLog(obj.conversationHistory),
|
|
158
|
+
}),
|
|
159
|
+
});
|
|
160
|
+
export const InvokeAgentRequestFilterSensitiveLog = (obj) => ({
|
|
161
|
+
...obj,
|
|
162
|
+
...(obj.sessionState && { sessionState: SessionStateFilterSensitiveLog(obj.sessionState) }),
|
|
163
|
+
...(obj.inputText && { inputText: SENSITIVE_STRING }),
|
|
164
|
+
});
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockAgentRuntimeClient } from "../BedrockAgentRuntimeClient";
|
|
3
|
+
import { ListInvocationStepsCommand, } from "../commands/ListInvocationStepsCommand";
|
|
4
|
+
export const paginateListInvocationSteps = createPaginator(BedrockAgentRuntimeClient, ListInvocationStepsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockAgentRuntimeClient } from "../BedrockAgentRuntimeClient";
|
|
3
|
+
import { ListInvocationsCommand, } from "../commands/ListInvocationsCommand";
|
|
4
|
+
export const paginateListInvocations = createPaginator(BedrockAgentRuntimeClient, ListInvocationsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { createPaginator } from "@smithy/core";
|
|
2
|
+
import { BedrockAgentRuntimeClient } from "../BedrockAgentRuntimeClient";
|
|
3
|
+
import { ListSessionsCommand, } from "../commands/ListSessionsCommand";
|
|
4
|
+
export const paginateListSessions = createPaginator(BedrockAgentRuntimeClient, ListSessionsCommand, "nextToken", "nextToken", "maxResults");
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from "./GetAgentMemoryPaginator";
|
|
2
2
|
export * from "./Interfaces";
|
|
3
|
+
export * from "./ListInvocationStepsPaginator";
|
|
4
|
+
export * from "./ListInvocationsPaginator";
|
|
5
|
+
export * from "./ListSessionsPaginator";
|
|
3
6
|
export * from "./RerankPaginator";
|
|
4
7
|
export * from "./RetrievePaginator";
|