@aws-sdk/client-bedrock-agent-runtime 3.755.0 → 3.764.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 +1035 -78
- 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 +76 -156
- package/dist-es/models/models_1.js +181 -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 +560 -8
- 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 +3 -1
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +216 -64
- 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 +91 -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 +605 -684
- package/dist-types/models/models_1.d.ts +1055 -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 +48 -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 +250 -374
- package/dist-types/ts3.4/models/models_1.d.ts +441 -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
|
@@ -67,6 +67,11 @@ export var FunctionSchema;
|
|
|
67
67
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
68
68
|
};
|
|
69
69
|
})(FunctionSchema || (FunctionSchema = {}));
|
|
70
|
+
export const AgentCollaboration = {
|
|
71
|
+
DISABLED: "DISABLED",
|
|
72
|
+
SUPERVISOR: "SUPERVISOR",
|
|
73
|
+
SUPERVISOR_ROUTER: "SUPERVISOR_ROUTER",
|
|
74
|
+
};
|
|
70
75
|
export const ConfirmationState = {
|
|
71
76
|
CONFIRM: "CONFIRM",
|
|
72
77
|
DENY: "DENY",
|
|
@@ -619,6 +624,10 @@ export var ResponseStream;
|
|
|
619
624
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
620
625
|
};
|
|
621
626
|
})(ResponseStream || (ResponseStream = {}));
|
|
627
|
+
export const RelayConversationHistory = {
|
|
628
|
+
DISABLED: "DISABLED",
|
|
629
|
+
TO_COLLABORATOR: "TO_COLLABORATOR",
|
|
630
|
+
};
|
|
622
631
|
export const PromptState = {
|
|
623
632
|
DISABLED: "DISABLED",
|
|
624
633
|
ENABLED: "ENABLED",
|
|
@@ -762,38 +771,45 @@ export var RetrieveAndGenerateStreamResponseOutput;
|
|
|
762
771
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
763
772
|
};
|
|
764
773
|
})(RetrieveAndGenerateStreamResponseOutput || (RetrieveAndGenerateStreamResponseOutput = {}));
|
|
765
|
-
export
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
774
|
+
export const SessionStatus = {
|
|
775
|
+
ACTIVE: "ACTIVE",
|
|
776
|
+
ENDED: "ENDED",
|
|
777
|
+
EXPIRED: "EXPIRED",
|
|
778
|
+
};
|
|
779
|
+
export const ImageFormat = {
|
|
780
|
+
GIF: "gif",
|
|
781
|
+
JPEG: "jpeg",
|
|
782
|
+
PNG: "png",
|
|
783
|
+
WEBP: "webp",
|
|
784
|
+
};
|
|
785
|
+
export var ImageSource;
|
|
786
|
+
(function (ImageSource) {
|
|
787
|
+
ImageSource.visit = (value, visitor) => {
|
|
788
|
+
if (value.bytes !== undefined)
|
|
789
|
+
return visitor.bytes(value.bytes);
|
|
790
|
+
if (value.s3Location !== undefined)
|
|
791
|
+
return visitor.s3Location(value.s3Location);
|
|
792
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
793
|
+
};
|
|
794
|
+
})(ImageSource || (ImageSource = {}));
|
|
795
|
+
export var BedrockSessionContentBlock;
|
|
796
|
+
(function (BedrockSessionContentBlock) {
|
|
797
|
+
BedrockSessionContentBlock.visit = (value, visitor) => {
|
|
798
|
+
if (value.text !== undefined)
|
|
799
|
+
return visitor.text(value.text);
|
|
800
|
+
if (value.image !== undefined)
|
|
801
|
+
return visitor.image(value.image);
|
|
802
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
803
|
+
};
|
|
804
|
+
})(BedrockSessionContentBlock || (BedrockSessionContentBlock = {}));
|
|
805
|
+
export var InvocationStepPayload;
|
|
806
|
+
(function (InvocationStepPayload) {
|
|
807
|
+
InvocationStepPayload.visit = (value, visitor) => {
|
|
808
|
+
if (value.contentBlocks !== undefined)
|
|
809
|
+
return visitor.contentBlocks(value.contentBlocks);
|
|
794
810
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
795
811
|
};
|
|
796
|
-
})(
|
|
812
|
+
})(InvocationStepPayload || (InvocationStepPayload = {}));
|
|
797
813
|
export const ActionGroupInvocationInputFilterSensitiveLog = (obj) => ({
|
|
798
814
|
...obj,
|
|
799
815
|
...(obj.actionGroupName && { actionGroupName: SENSITIVE_STRING }),
|
|
@@ -1384,12 +1400,10 @@ export const InvokeAgentResponseFilterSensitiveLog = (obj) => ({
|
|
|
1384
1400
|
...obj,
|
|
1385
1401
|
...(obj.completion && { completion: "STREAMING_CONTENT" }),
|
|
1386
1402
|
});
|
|
1387
|
-
export const
|
|
1403
|
+
export const CollaboratorConfigurationFilterSensitiveLog = (obj) => ({
|
|
1388
1404
|
...obj,
|
|
1389
|
-
...(obj.
|
|
1390
|
-
|
|
1391
|
-
}),
|
|
1392
|
-
...(obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }),
|
|
1405
|
+
...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
|
|
1406
|
+
...(obj.collaboratorInstruction && { collaboratorInstruction: SENSITIVE_STRING }),
|
|
1393
1407
|
});
|
|
1394
1408
|
export const PromptConfigurationFilterSensitiveLog = (obj) => ({
|
|
1395
1409
|
...obj,
|
|
@@ -1401,6 +1415,16 @@ export const PromptOverrideConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
1401
1415
|
promptConfigurations: obj.promptConfigurations.map((item) => PromptConfigurationFilterSensitiveLog(item)),
|
|
1402
1416
|
}),
|
|
1403
1417
|
});
|
|
1418
|
+
export const InlineSessionStateFilterSensitiveLog = (obj) => ({
|
|
1419
|
+
...obj,
|
|
1420
|
+
...(obj.returnControlInvocationResults && {
|
|
1421
|
+
returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => InvocationResultMemberFilterSensitiveLog(item)),
|
|
1422
|
+
}),
|
|
1423
|
+
...(obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }),
|
|
1424
|
+
...(obj.conversationHistory && {
|
|
1425
|
+
conversationHistory: ConversationHistoryFilterSensitiveLog(obj.conversationHistory),
|
|
1426
|
+
}),
|
|
1427
|
+
});
|
|
1404
1428
|
export const InlineAgentPayloadPartFilterSensitiveLog = (obj) => ({
|
|
1405
1429
|
...obj,
|
|
1406
1430
|
...(obj.bytes && { bytes: SENSITIVE_STRING }),
|
|
@@ -1633,133 +1657,29 @@ export const RetrieveResponseFilterSensitiveLog = (obj) => ({
|
|
|
1633
1657
|
...obj,
|
|
1634
1658
|
...(obj.retrievalResults && { retrievalResults: SENSITIVE_STRING }),
|
|
1635
1659
|
});
|
|
1636
|
-
export const
|
|
1637
|
-
if (obj.
|
|
1638
|
-
return {
|
|
1639
|
-
if (obj.
|
|
1640
|
-
return {
|
|
1641
|
-
if (obj.greaterThan !== undefined)
|
|
1642
|
-
return { greaterThan: obj.greaterThan };
|
|
1643
|
-
if (obj.greaterThanOrEquals !== undefined)
|
|
1644
|
-
return { greaterThanOrEquals: obj.greaterThanOrEquals };
|
|
1645
|
-
if (obj.lessThan !== undefined)
|
|
1646
|
-
return { lessThan: obj.lessThan };
|
|
1647
|
-
if (obj.lessThanOrEquals !== undefined)
|
|
1648
|
-
return { lessThanOrEquals: obj.lessThanOrEquals };
|
|
1649
|
-
if (obj.in !== undefined)
|
|
1650
|
-
return { in: obj.in };
|
|
1651
|
-
if (obj.notIn !== undefined)
|
|
1652
|
-
return { notIn: obj.notIn };
|
|
1653
|
-
if (obj.startsWith !== undefined)
|
|
1654
|
-
return { startsWith: obj.startsWith };
|
|
1655
|
-
if (obj.listContains !== undefined)
|
|
1656
|
-
return { listContains: obj.listContains };
|
|
1657
|
-
if (obj.stringContains !== undefined)
|
|
1658
|
-
return { stringContains: obj.stringContains };
|
|
1659
|
-
if (obj.andAll !== undefined)
|
|
1660
|
-
return { andAll: SENSITIVE_STRING };
|
|
1661
|
-
if (obj.orAll !== undefined)
|
|
1662
|
-
return { orAll: SENSITIVE_STRING };
|
|
1660
|
+
export const BedrockSessionContentBlockFilterSensitiveLog = (obj) => {
|
|
1661
|
+
if (obj.text !== undefined)
|
|
1662
|
+
return { text: obj.text };
|
|
1663
|
+
if (obj.image !== undefined)
|
|
1664
|
+
return { image: obj.image };
|
|
1663
1665
|
if (obj.$unknown !== undefined)
|
|
1664
1666
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1665
1667
|
};
|
|
1666
|
-
export const
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
implicitFilterConfiguration: ImplicitFilterConfigurationFilterSensitiveLog(obj.implicitFilterConfiguration),
|
|
1674
|
-
}),
|
|
1675
|
-
});
|
|
1676
|
-
export const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog = (obj) => ({
|
|
1677
|
-
...obj,
|
|
1678
|
-
...(obj.vectorSearchConfiguration && {
|
|
1679
|
-
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog(obj.vectorSearchConfiguration),
|
|
1680
|
-
}),
|
|
1681
|
-
});
|
|
1682
|
-
export const KnowledgeBaseFilterSensitiveLog = (obj) => ({
|
|
1683
|
-
...obj,
|
|
1684
|
-
...(obj.description && { description: SENSITIVE_STRING }),
|
|
1685
|
-
...(obj.retrievalConfiguration && {
|
|
1686
|
-
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
1687
|
-
}),
|
|
1688
|
-
});
|
|
1689
|
-
export const KnowledgeBaseConfigurationFilterSensitiveLog = (obj) => ({
|
|
1690
|
-
...obj,
|
|
1691
|
-
...(obj.retrievalConfiguration && {
|
|
1692
|
-
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
1693
|
-
}),
|
|
1694
|
-
});
|
|
1695
|
-
export const KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
1696
|
-
...obj,
|
|
1697
|
-
...(obj.retrievalConfiguration && {
|
|
1698
|
-
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
1699
|
-
}),
|
|
1700
|
-
...(obj.generationConfiguration && {
|
|
1701
|
-
generationConfiguration: GenerationConfigurationFilterSensitiveLog(obj.generationConfiguration),
|
|
1702
|
-
}),
|
|
1703
|
-
...(obj.orchestrationConfiguration && {
|
|
1704
|
-
orchestrationConfiguration: OrchestrationConfigurationFilterSensitiveLog(obj.orchestrationConfiguration),
|
|
1705
|
-
}),
|
|
1706
|
-
});
|
|
1707
|
-
export const RetrieveRequestFilterSensitiveLog = (obj) => ({
|
|
1708
|
-
...obj,
|
|
1709
|
-
...(obj.retrievalQuery && { retrievalQuery: SENSITIVE_STRING }),
|
|
1710
|
-
...(obj.retrievalConfiguration && {
|
|
1711
|
-
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
1712
|
-
}),
|
|
1713
|
-
});
|
|
1714
|
-
export const RetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
1715
|
-
...obj,
|
|
1716
|
-
...(obj.knowledgeBaseConfiguration && {
|
|
1717
|
-
knowledgeBaseConfiguration: KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog(obj.knowledgeBaseConfiguration),
|
|
1718
|
-
}),
|
|
1719
|
-
...(obj.externalSourcesConfiguration && {
|
|
1720
|
-
externalSourcesConfiguration: ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog(obj.externalSourcesConfiguration),
|
|
1721
|
-
}),
|
|
1722
|
-
});
|
|
1723
|
-
export const InvokeInlineAgentRequestFilterSensitiveLog = (obj) => ({
|
|
1724
|
-
...obj,
|
|
1725
|
-
...(obj.inputText && { inputText: SENSITIVE_STRING }),
|
|
1726
|
-
...(obj.inlineSessionState && { inlineSessionState: InlineSessionStateFilterSensitiveLog(obj.inlineSessionState) }),
|
|
1727
|
-
...(obj.instruction && { instruction: SENSITIVE_STRING }),
|
|
1728
|
-
...(obj.actionGroups && { actionGroups: obj.actionGroups.map((item) => AgentActionGroupFilterSensitiveLog(item)) }),
|
|
1729
|
-
...(obj.knowledgeBases && {
|
|
1730
|
-
knowledgeBases: obj.knowledgeBases.map((item) => KnowledgeBaseFilterSensitiveLog(item)),
|
|
1731
|
-
}),
|
|
1732
|
-
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
|
|
1733
|
-
});
|
|
1734
|
-
export const RetrieveAndGenerateRequestFilterSensitiveLog = (obj) => ({
|
|
1735
|
-
...obj,
|
|
1736
|
-
...(obj.input && { input: SENSITIVE_STRING }),
|
|
1737
|
-
...(obj.retrieveAndGenerateConfiguration && {
|
|
1738
|
-
retrieveAndGenerateConfiguration: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfiguration),
|
|
1739
|
-
}),
|
|
1740
|
-
});
|
|
1741
|
-
export const RetrieveAndGenerateStreamRequestFilterSensitiveLog = (obj) => ({
|
|
1668
|
+
export const InvocationStepPayloadFilterSensitiveLog = (obj) => {
|
|
1669
|
+
if (obj.contentBlocks !== undefined)
|
|
1670
|
+
return { contentBlocks: SENSITIVE_STRING };
|
|
1671
|
+
if (obj.$unknown !== undefined)
|
|
1672
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1673
|
+
};
|
|
1674
|
+
export const InvocationStepFilterSensitiveLog = (obj) => ({
|
|
1742
1675
|
...obj,
|
|
1743
|
-
...(obj.
|
|
1744
|
-
...(obj.retrieveAndGenerateConfiguration && {
|
|
1745
|
-
retrieveAndGenerateConfiguration: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfiguration),
|
|
1746
|
-
}),
|
|
1676
|
+
...(obj.payload && { payload: InvocationStepPayloadFilterSensitiveLog(obj.payload) }),
|
|
1747
1677
|
});
|
|
1748
|
-
export const
|
|
1678
|
+
export const GetInvocationStepResponseFilterSensitiveLog = (obj) => ({
|
|
1749
1679
|
...obj,
|
|
1750
|
-
...(obj.
|
|
1751
|
-
returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => InvocationResultMemberFilterSensitiveLog(item)),
|
|
1752
|
-
}),
|
|
1753
|
-
...(obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }),
|
|
1754
|
-
...(obj.knowledgeBaseConfigurations && {
|
|
1755
|
-
knowledgeBaseConfigurations: obj.knowledgeBaseConfigurations.map((item) => KnowledgeBaseConfigurationFilterSensitiveLog(item)),
|
|
1756
|
-
}),
|
|
1757
|
-
...(obj.conversationHistory && {
|
|
1758
|
-
conversationHistory: ConversationHistoryFilterSensitiveLog(obj.conversationHistory),
|
|
1759
|
-
}),
|
|
1680
|
+
...(obj.invocationStep && { invocationStep: InvocationStepFilterSensitiveLog(obj.invocationStep) }),
|
|
1760
1681
|
});
|
|
1761
|
-
export const
|
|
1682
|
+
export const PutInvocationStepRequestFilterSensitiveLog = (obj) => ({
|
|
1762
1683
|
...obj,
|
|
1763
|
-
...(obj.
|
|
1764
|
-
...(obj.inputText && { inputText: SENSITIVE_STRING }),
|
|
1684
|
+
...(obj.payload && { payload: InvocationStepPayloadFilterSensitiveLog(obj.payload) }),
|
|
1765
1685
|
});
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import { SENSITIVE_STRING } from "@smithy/smithy-client";
|
|
2
|
+
import { AgentActionGroupFilterSensitiveLog, CollaboratorConfigurationFilterSensitiveLog, 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 CollaboratorFilterSensitiveLog = (obj) => ({
|
|
123
|
+
...obj,
|
|
124
|
+
...(obj.instruction && { instruction: SENSITIVE_STRING }),
|
|
125
|
+
...(obj.actionGroups && { actionGroups: obj.actionGroups.map((item) => AgentActionGroupFilterSensitiveLog(item)) }),
|
|
126
|
+
...(obj.knowledgeBases && {
|
|
127
|
+
knowledgeBases: obj.knowledgeBases.map((item) => KnowledgeBaseFilterSensitiveLog(item)),
|
|
128
|
+
}),
|
|
129
|
+
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
|
|
130
|
+
...(obj.collaboratorConfigurations && {
|
|
131
|
+
collaboratorConfigurations: obj.collaboratorConfigurations.map((item) => CollaboratorConfigurationFilterSensitiveLog(item)),
|
|
132
|
+
}),
|
|
133
|
+
...(obj.agentName && { agentName: SENSITIVE_STRING }),
|
|
134
|
+
});
|
|
135
|
+
export const RetrieveAndGenerateRequestFilterSensitiveLog = (obj) => ({
|
|
136
|
+
...obj,
|
|
137
|
+
...(obj.input && { input: SENSITIVE_STRING }),
|
|
138
|
+
...(obj.retrieveAndGenerateConfiguration && {
|
|
139
|
+
retrieveAndGenerateConfiguration: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfiguration),
|
|
140
|
+
}),
|
|
141
|
+
});
|
|
142
|
+
export const RetrieveAndGenerateStreamRequestFilterSensitiveLog = (obj) => ({
|
|
143
|
+
...obj,
|
|
144
|
+
...(obj.input && { input: SENSITIVE_STRING }),
|
|
145
|
+
...(obj.retrieveAndGenerateConfiguration && {
|
|
146
|
+
retrieveAndGenerateConfiguration: RetrieveAndGenerateConfigurationFilterSensitiveLog(obj.retrieveAndGenerateConfiguration),
|
|
147
|
+
}),
|
|
148
|
+
});
|
|
149
|
+
export const SessionStateFilterSensitiveLog = (obj) => ({
|
|
150
|
+
...obj,
|
|
151
|
+
...(obj.returnControlInvocationResults && {
|
|
152
|
+
returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => InvocationResultMemberFilterSensitiveLog(item)),
|
|
153
|
+
}),
|
|
154
|
+
...(obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }),
|
|
155
|
+
...(obj.knowledgeBaseConfigurations && {
|
|
156
|
+
knowledgeBaseConfigurations: obj.knowledgeBaseConfigurations.map((item) => KnowledgeBaseConfigurationFilterSensitiveLog(item)),
|
|
157
|
+
}),
|
|
158
|
+
...(obj.conversationHistory && {
|
|
159
|
+
conversationHistory: ConversationHistoryFilterSensitiveLog(obj.conversationHistory),
|
|
160
|
+
}),
|
|
161
|
+
});
|
|
162
|
+
export const InvokeAgentRequestFilterSensitiveLog = (obj) => ({
|
|
163
|
+
...obj,
|
|
164
|
+
...(obj.sessionState && { sessionState: SessionStateFilterSensitiveLog(obj.sessionState) }),
|
|
165
|
+
...(obj.inputText && { inputText: SENSITIVE_STRING }),
|
|
166
|
+
});
|
|
167
|
+
export const InvokeInlineAgentRequestFilterSensitiveLog = (obj) => ({
|
|
168
|
+
...obj,
|
|
169
|
+
...(obj.instruction && { instruction: SENSITIVE_STRING }),
|
|
170
|
+
...(obj.actionGroups && { actionGroups: obj.actionGroups.map((item) => AgentActionGroupFilterSensitiveLog(item)) }),
|
|
171
|
+
...(obj.knowledgeBases && {
|
|
172
|
+
knowledgeBases: obj.knowledgeBases.map((item) => KnowledgeBaseFilterSensitiveLog(item)),
|
|
173
|
+
}),
|
|
174
|
+
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
|
|
175
|
+
...(obj.collaboratorConfigurations && {
|
|
176
|
+
collaboratorConfigurations: obj.collaboratorConfigurations.map((item) => CollaboratorConfigurationFilterSensitiveLog(item)),
|
|
177
|
+
}),
|
|
178
|
+
...(obj.inputText && { inputText: SENSITIVE_STRING }),
|
|
179
|
+
...(obj.inlineSessionState && { inlineSessionState: InlineSessionStateFilterSensitiveLog(obj.inlineSessionState) }),
|
|
180
|
+
...(obj.collaborators && { collaborators: obj.collaborators.map((item) => CollaboratorFilterSensitiveLog(item)) }),
|
|
181
|
+
});
|
|
@@ -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";
|