@aws-sdk/client-bedrock-agent 3.685.0 → 3.687.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.
Files changed (68) hide show
  1. package/README.md +8 -0
  2. package/dist-cjs/index.js +516 -49
  3. package/dist-es/BedrockAgent.js +2 -0
  4. package/dist-es/commands/CreatePromptCommand.js +1 -1
  5. package/dist-es/commands/CreatePromptVersionCommand.js +1 -1
  6. package/dist-es/commands/GetAgentVersionCommand.js +1 -1
  7. package/dist-es/commands/GetPromptCommand.js +1 -1
  8. package/dist-es/commands/UpdatePromptCommand.js +1 -1
  9. package/dist-es/commands/ValidateFlowDefinitionCommand.js +23 -0
  10. package/dist-es/commands/index.js +1 -0
  11. package/dist-es/models/index.js +1 -0
  12. package/dist-es/models/models_0.js +239 -41
  13. package/dist-es/models/models_1.js +69 -0
  14. package/dist-es/protocols/Aws_restJson1.js +141 -5
  15. package/dist-types/BedrockAgent.d.ts +7 -0
  16. package/dist-types/BedrockAgentClient.d.ts +3 -2
  17. package/dist-types/commands/CreateFlowCommand.d.ts +102 -2
  18. package/dist-types/commands/CreateFlowVersionCommand.d.ts +51 -1
  19. package/dist-types/commands/CreatePromptCommand.d.ts +97 -3
  20. package/dist-types/commands/CreatePromptVersionCommand.d.ts +49 -2
  21. package/dist-types/commands/DeleteAgentVersionCommand.d.ts +1 -1
  22. package/dist-types/commands/DeletePromptCommand.d.ts +1 -1
  23. package/dist-types/commands/GetAgentVersionCommand.d.ts +1 -1
  24. package/dist-types/commands/GetFlowCommand.d.ts +137 -1
  25. package/dist-types/commands/GetFlowVersionCommand.d.ts +51 -1
  26. package/dist-types/commands/GetPromptCommand.d.ts +49 -2
  27. package/dist-types/commands/ListAgentKnowledgeBasesCommand.d.ts +1 -1
  28. package/dist-types/commands/ListAgentVersionsCommand.d.ts +1 -1
  29. package/dist-types/commands/ListKnowledgeBasesCommand.d.ts +1 -1
  30. package/dist-types/commands/ListPromptsCommand.d.ts +1 -1
  31. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  32. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  33. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  34. package/dist-types/commands/UpdateAgentKnowledgeBaseCommand.d.ts +1 -1
  35. package/dist-types/commands/UpdateFlowCommand.d.ts +102 -2
  36. package/dist-types/commands/UpdateKnowledgeBaseCommand.d.ts +1 -1
  37. package/dist-types/commands/UpdatePromptCommand.d.ts +97 -3
  38. package/dist-types/commands/ValidateFlowDefinitionCommand.d.ts +335 -0
  39. package/dist-types/commands/index.d.ts +1 -0
  40. package/dist-types/models/index.d.ts +1 -0
  41. package/dist-types/models/models_0.d.ts +2060 -1356
  42. package/dist-types/models/models_1.d.ts +974 -0
  43. package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
  44. package/dist-types/ts3.4/BedrockAgent.d.ts +17 -0
  45. package/dist-types/ts3.4/BedrockAgentClient.d.ts +8 -2
  46. package/dist-types/ts3.4/commands/CreatePromptCommand.d.ts +1 -1
  47. package/dist-types/ts3.4/commands/CreatePromptVersionCommand.d.ts +1 -1
  48. package/dist-types/ts3.4/commands/DeleteAgentVersionCommand.d.ts +1 -1
  49. package/dist-types/ts3.4/commands/DeletePromptCommand.d.ts +1 -1
  50. package/dist-types/ts3.4/commands/GetAgentVersionCommand.d.ts +1 -1
  51. package/dist-types/ts3.4/commands/GetPromptCommand.d.ts +1 -1
  52. package/dist-types/ts3.4/commands/ListAgentKnowledgeBasesCommand.d.ts +1 -1
  53. package/dist-types/ts3.4/commands/ListAgentVersionsCommand.d.ts +1 -1
  54. package/dist-types/ts3.4/commands/ListKnowledgeBasesCommand.d.ts +1 -1
  55. package/dist-types/ts3.4/commands/ListPromptsCommand.d.ts +1 -1
  56. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
  57. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
  58. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
  59. package/dist-types/ts3.4/commands/UpdateAgentKnowledgeBaseCommand.d.ts +1 -1
  60. package/dist-types/ts3.4/commands/UpdateKnowledgeBaseCommand.d.ts +1 -1
  61. package/dist-types/ts3.4/commands/UpdatePromptCommand.d.ts +1 -1
  62. package/dist-types/ts3.4/commands/ValidateFlowDefinitionCommand.d.ts +51 -0
  63. package/dist-types/ts3.4/commands/index.d.ts +1 -0
  64. package/dist-types/ts3.4/models/index.d.ts +1 -0
  65. package/dist-types/ts3.4/models/models_0.d.ts +1109 -229
  66. package/dist-types/ts3.4/models/models_1.d.ts +287 -0
  67. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
  68. package/package.json +35 -35
package/dist-cjs/index.js CHANGED
@@ -36,6 +36,7 @@ __export(src_exports, {
36
36
  BedrockAgent: () => BedrockAgent,
37
37
  BedrockAgentClient: () => BedrockAgentClient,
38
38
  BedrockAgentServiceException: () => BedrockAgentServiceException,
39
+ ChatPromptTemplateConfigurationFilterSensitiveLog: () => ChatPromptTemplateConfigurationFilterSensitiveLog,
39
40
  ChunkingStrategy: () => ChunkingStrategy,
40
41
  ConditionFlowNodeConfigurationFilterSensitiveLog: () => ConditionFlowNodeConfigurationFilterSensitiveLog,
41
42
  ConflictException: () => ConflictException,
@@ -43,6 +44,9 @@ __export(src_exports, {
43
44
  ConfluenceCrawlerConfigurationFilterSensitiveLog: () => ConfluenceCrawlerConfigurationFilterSensitiveLog,
44
45
  ConfluenceDataSourceConfigurationFilterSensitiveLog: () => ConfluenceDataSourceConfigurationFilterSensitiveLog,
45
46
  ConfluenceHostType: () => ConfluenceHostType,
47
+ ContentBlock: () => ContentBlock,
48
+ ContentBlockFilterSensitiveLog: () => ContentBlockFilterSensitiveLog,
49
+ ConversationRole: () => ConversationRole,
46
50
  CrawlFilterConfigurationFilterSensitiveLog: () => CrawlFilterConfigurationFilterSensitiveLog,
47
51
  CrawlFilterConfigurationType: () => CrawlFilterConfigurationType,
48
52
  CreateAgentActionGroupCommand: () => CreateAgentActionGroupCommand,
@@ -85,6 +89,7 @@ __export(src_exports, {
85
89
  DeleteKnowledgeBaseCommand: () => DeleteKnowledgeBaseCommand,
86
90
  DeletePromptCommand: () => DeletePromptCommand,
87
91
  DisassociateAgentKnowledgeBaseCommand: () => DisassociateAgentKnowledgeBaseCommand,
92
+ DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog: () => DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog,
88
93
  FlowConditionFilterSensitiveLog: () => FlowConditionFilterSensitiveLog,
89
94
  FlowConnectionConfiguration: () => FlowConnectionConfiguration,
90
95
  FlowConnectionType: () => FlowConnectionType,
@@ -96,7 +101,11 @@ __export(src_exports, {
96
101
  FlowNodeInputFilterSensitiveLog: () => FlowNodeInputFilterSensitiveLog,
97
102
  FlowNodeType: () => FlowNodeType,
98
103
  FlowStatus: () => FlowStatus,
104
+ FlowValidationDetails: () => FlowValidationDetails,
105
+ FlowValidationDetailsFilterSensitiveLog: () => FlowValidationDetailsFilterSensitiveLog,
106
+ FlowValidationFilterSensitiveLog: () => FlowValidationFilterSensitiveLog,
99
107
  FlowValidationSeverity: () => FlowValidationSeverity,
108
+ FlowValidationType: () => FlowValidationType,
100
109
  FunctionSchema: () => FunctionSchema,
101
110
  GetAgentActionGroupCommand: () => GetAgentActionGroupCommand,
102
111
  GetAgentActionGroupResponseFilterSensitiveLog: () => GetAgentActionGroupResponseFilterSensitiveLog,
@@ -140,16 +149,20 @@ __export(src_exports, {
140
149
  ListPromptsCommand: () => ListPromptsCommand,
141
150
  ListTagsForResourceCommand: () => ListTagsForResourceCommand,
142
151
  MemoryType: () => MemoryType,
152
+ MessageFilterSensitiveLog: () => MessageFilterSensitiveLog,
143
153
  ParsingStrategy: () => ParsingStrategy,
144
154
  PatternObjectFilterConfigurationFilterSensitiveLog: () => PatternObjectFilterConfigurationFilterSensitiveLog,
145
155
  PatternObjectFilterFilterSensitiveLog: () => PatternObjectFilterFilterSensitiveLog,
146
156
  PrepareAgentCommand: () => PrepareAgentCommand,
147
157
  PrepareFlowCommand: () => PrepareFlowCommand,
158
+ PromptAgentResourceFilterSensitiveLog: () => PromptAgentResourceFilterSensitiveLog,
148
159
  PromptConfigurationFilterSensitiveLog: () => PromptConfigurationFilterSensitiveLog,
149
160
  PromptFlowNodeConfigurationFilterSensitiveLog: () => PromptFlowNodeConfigurationFilterSensitiveLog,
150
161
  PromptFlowNodeInlineConfigurationFilterSensitiveLog: () => PromptFlowNodeInlineConfigurationFilterSensitiveLog,
151
162
  PromptFlowNodeSourceConfiguration: () => PromptFlowNodeSourceConfiguration,
152
163
  PromptFlowNodeSourceConfigurationFilterSensitiveLog: () => PromptFlowNodeSourceConfigurationFilterSensitiveLog,
164
+ PromptGenAiResource: () => PromptGenAiResource,
165
+ PromptGenAiResourceFilterSensitiveLog: () => PromptGenAiResourceFilterSensitiveLog,
153
166
  PromptInferenceConfiguration: () => PromptInferenceConfiguration,
154
167
  PromptMetadataEntryFilterSensitiveLog: () => PromptMetadataEntryFilterSensitiveLog,
155
168
  PromptOverrideConfigurationFilterSensitiveLog: () => PromptOverrideConfigurationFilterSensitiveLog,
@@ -176,9 +189,16 @@ __export(src_exports, {
176
189
  StepType: () => StepType,
177
190
  StopIngestionJobCommand: () => StopIngestionJobCommand,
178
191
  StorageFlowNodeServiceConfiguration: () => StorageFlowNodeServiceConfiguration,
192
+ SystemContentBlock: () => SystemContentBlock,
193
+ SystemContentBlockFilterSensitiveLog: () => SystemContentBlockFilterSensitiveLog,
179
194
  TagResourceCommand: () => TagResourceCommand,
180
195
  TextPromptTemplateConfigurationFilterSensitiveLog: () => TextPromptTemplateConfigurationFilterSensitiveLog,
181
196
  ThrottlingException: () => ThrottlingException,
197
+ Tool: () => Tool,
198
+ ToolChoice: () => ToolChoice,
199
+ ToolChoiceFilterSensitiveLog: () => ToolChoiceFilterSensitiveLog,
200
+ ToolConfigurationFilterSensitiveLog: () => ToolConfigurationFilterSensitiveLog,
201
+ ToolInputSchema: () => ToolInputSchema,
182
202
  Type: () => Type,
183
203
  UntagResourceCommand: () => UntagResourceCommand,
184
204
  UpdateAgentActionGroupCommand: () => UpdateAgentActionGroupCommand,
@@ -200,6 +220,9 @@ __export(src_exports, {
200
220
  UpdatePromptCommand: () => UpdatePromptCommand,
201
221
  UpdatePromptRequestFilterSensitiveLog: () => UpdatePromptRequestFilterSensitiveLog,
202
222
  UpdatePromptResponseFilterSensitiveLog: () => UpdatePromptResponseFilterSensitiveLog,
223
+ ValidateFlowDefinitionCommand: () => ValidateFlowDefinitionCommand,
224
+ ValidateFlowDefinitionRequestFilterSensitiveLog: () => ValidateFlowDefinitionRequestFilterSensitiveLog,
225
+ ValidateFlowDefinitionResponseFilterSensitiveLog: () => ValidateFlowDefinitionResponseFilterSensitiveLog,
203
226
  ValidationException: () => ValidationException,
204
227
  WebCrawlerConfigurationFilterSensitiveLog: () => WebCrawlerConfigurationFilterSensitiveLog,
205
228
  WebDataSourceConfigurationFilterSensitiveLog: () => WebDataSourceConfigurationFilterSensitiveLog,
@@ -661,22 +684,73 @@ var FlowConnectionType = {
661
684
  DATA: "Data"
662
685
  };
663
686
  var PromptInferenceConfiguration;
664
- ((PromptInferenceConfiguration2) => {
665
- PromptInferenceConfiguration2.visit = /* @__PURE__ */ __name((value, visitor) => {
687
+ ((PromptInferenceConfiguration3) => {
688
+ PromptInferenceConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
666
689
  if (value.text !== void 0)
667
690
  return visitor.text(value.text);
668
691
  return visitor._(value.$unknown[0], value.$unknown[1]);
669
692
  }, "visit");
670
693
  })(PromptInferenceConfiguration || (PromptInferenceConfiguration = {}));
694
+ var ContentBlock;
695
+ ((ContentBlock3) => {
696
+ ContentBlock3.visit = /* @__PURE__ */ __name((value, visitor) => {
697
+ if (value.text !== void 0)
698
+ return visitor.text(value.text);
699
+ return visitor._(value.$unknown[0], value.$unknown[1]);
700
+ }, "visit");
701
+ })(ContentBlock || (ContentBlock = {}));
702
+ var ConversationRole = {
703
+ ASSISTANT: "assistant",
704
+ USER: "user"
705
+ };
706
+ var SystemContentBlock;
707
+ ((SystemContentBlock3) => {
708
+ SystemContentBlock3.visit = /* @__PURE__ */ __name((value, visitor) => {
709
+ if (value.text !== void 0)
710
+ return visitor.text(value.text);
711
+ return visitor._(value.$unknown[0], value.$unknown[1]);
712
+ }, "visit");
713
+ })(SystemContentBlock || (SystemContentBlock = {}));
714
+ var ToolChoice;
715
+ ((ToolChoice3) => {
716
+ ToolChoice3.visit = /* @__PURE__ */ __name((value, visitor) => {
717
+ if (value.auto !== void 0)
718
+ return visitor.auto(value.auto);
719
+ if (value.any !== void 0)
720
+ return visitor.any(value.any);
721
+ if (value.tool !== void 0)
722
+ return visitor.tool(value.tool);
723
+ return visitor._(value.$unknown[0], value.$unknown[1]);
724
+ }, "visit");
725
+ })(ToolChoice || (ToolChoice = {}));
726
+ var ToolInputSchema;
727
+ ((ToolInputSchema2) => {
728
+ ToolInputSchema2.visit = /* @__PURE__ */ __name((value, visitor) => {
729
+ if (value.json !== void 0)
730
+ return visitor.json(value.json);
731
+ return visitor._(value.$unknown[0], value.$unknown[1]);
732
+ }, "visit");
733
+ })(ToolInputSchema || (ToolInputSchema = {}));
734
+ var Tool;
735
+ ((Tool2) => {
736
+ Tool2.visit = /* @__PURE__ */ __name((value, visitor) => {
737
+ if (value.toolSpec !== void 0)
738
+ return visitor.toolSpec(value.toolSpec);
739
+ return visitor._(value.$unknown[0], value.$unknown[1]);
740
+ }, "visit");
741
+ })(Tool || (Tool = {}));
671
742
  var PromptTemplateConfiguration;
672
743
  ((PromptTemplateConfiguration3) => {
673
744
  PromptTemplateConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
674
745
  if (value.text !== void 0)
675
746
  return visitor.text(value.text);
747
+ if (value.chat !== void 0)
748
+ return visitor.chat(value.chat);
676
749
  return visitor._(value.$unknown[0], value.$unknown[1]);
677
750
  }, "visit");
678
751
  })(PromptTemplateConfiguration || (PromptTemplateConfiguration = {}));
679
752
  var PromptTemplateType = {
753
+ CHAT: "CHAT",
680
754
  TEXT: "TEXT"
681
755
  };
682
756
  var PromptFlowNodeSourceConfiguration;
@@ -762,10 +836,93 @@ var FlowStatus = {
762
836
  PREPARED: "Prepared",
763
837
  PREPARING: "Preparing"
764
838
  };
839
+ var FlowValidationDetails;
840
+ ((FlowValidationDetails2) => {
841
+ FlowValidationDetails2.visit = /* @__PURE__ */ __name((value, visitor) => {
842
+ if (value.cyclicConnection !== void 0)
843
+ return visitor.cyclicConnection(value.cyclicConnection);
844
+ if (value.duplicateConnections !== void 0)
845
+ return visitor.duplicateConnections(value.duplicateConnections);
846
+ if (value.duplicateConditionExpression !== void 0)
847
+ return visitor.duplicateConditionExpression(value.duplicateConditionExpression);
848
+ if (value.unreachableNode !== void 0)
849
+ return visitor.unreachableNode(value.unreachableNode);
850
+ if (value.unknownConnectionSource !== void 0)
851
+ return visitor.unknownConnectionSource(value.unknownConnectionSource);
852
+ if (value.unknownConnectionSourceOutput !== void 0)
853
+ return visitor.unknownConnectionSourceOutput(value.unknownConnectionSourceOutput);
854
+ if (value.unknownConnectionTarget !== void 0)
855
+ return visitor.unknownConnectionTarget(value.unknownConnectionTarget);
856
+ if (value.unknownConnectionTargetInput !== void 0)
857
+ return visitor.unknownConnectionTargetInput(value.unknownConnectionTargetInput);
858
+ if (value.unknownConnectionCondition !== void 0)
859
+ return visitor.unknownConnectionCondition(value.unknownConnectionCondition);
860
+ if (value.malformedConditionExpression !== void 0)
861
+ return visitor.malformedConditionExpression(value.malformedConditionExpression);
862
+ if (value.malformedNodeInputExpression !== void 0)
863
+ return visitor.malformedNodeInputExpression(value.malformedNodeInputExpression);
864
+ if (value.mismatchedNodeInputType !== void 0)
865
+ return visitor.mismatchedNodeInputType(value.mismatchedNodeInputType);
866
+ if (value.mismatchedNodeOutputType !== void 0)
867
+ return visitor.mismatchedNodeOutputType(value.mismatchedNodeOutputType);
868
+ if (value.incompatibleConnectionDataType !== void 0)
869
+ return visitor.incompatibleConnectionDataType(value.incompatibleConnectionDataType);
870
+ if (value.missingConnectionConfiguration !== void 0)
871
+ return visitor.missingConnectionConfiguration(value.missingConnectionConfiguration);
872
+ if (value.missingDefaultCondition !== void 0)
873
+ return visitor.missingDefaultCondition(value.missingDefaultCondition);
874
+ if (value.missingEndingNodes !== void 0)
875
+ return visitor.missingEndingNodes(value.missingEndingNodes);
876
+ if (value.missingNodeConfiguration !== void 0)
877
+ return visitor.missingNodeConfiguration(value.missingNodeConfiguration);
878
+ if (value.missingNodeInput !== void 0)
879
+ return visitor.missingNodeInput(value.missingNodeInput);
880
+ if (value.missingNodeOutput !== void 0)
881
+ return visitor.missingNodeOutput(value.missingNodeOutput);
882
+ if (value.missingStartingNodes !== void 0)
883
+ return visitor.missingStartingNodes(value.missingStartingNodes);
884
+ if (value.multipleNodeInputConnections !== void 0)
885
+ return visitor.multipleNodeInputConnections(value.multipleNodeInputConnections);
886
+ if (value.unfulfilledNodeInput !== void 0)
887
+ return visitor.unfulfilledNodeInput(value.unfulfilledNodeInput);
888
+ if (value.unsatisfiedConnectionConditions !== void 0)
889
+ return visitor.unsatisfiedConnectionConditions(value.unsatisfiedConnectionConditions);
890
+ if (value.unspecified !== void 0)
891
+ return visitor.unspecified(value.unspecified);
892
+ return visitor._(value.$unknown[0], value.$unknown[1]);
893
+ }, "visit");
894
+ })(FlowValidationDetails || (FlowValidationDetails = {}));
765
895
  var FlowValidationSeverity = {
766
896
  ERROR: "Error",
767
897
  WARNING: "Warning"
768
898
  };
899
+ var FlowValidationType = {
900
+ CYCLIC_CONNECTION: "CyclicConnection",
901
+ DUPLICATE_CONDITION_EXPRESSION: "DuplicateConditionExpression",
902
+ DUPLICATE_CONNECTIONS: "DuplicateConnections",
903
+ INCOMPATIBLE_CONNECTION_DATA_TYPE: "IncompatibleConnectionDataType",
904
+ MALFORMED_CONDITION_EXPRESSION: "MalformedConditionExpression",
905
+ MALFORMED_NODE_INPUT_EXPRESSION: "MalformedNodeInputExpression",
906
+ MISMATCHED_NODE_INPUT_TYPE: "MismatchedNodeInputType",
907
+ MISMATCHED_NODE_OUTPUT_TYPE: "MismatchedNodeOutputType",
908
+ MISSING_CONNECTION_CONFIGURATION: "MissingConnectionConfiguration",
909
+ MISSING_DEFAULT_CONDITION: "MissingDefaultCondition",
910
+ MISSING_ENDING_NODES: "MissingEndingNodes",
911
+ MISSING_NODE_CONFIGURATION: "MissingNodeConfiguration",
912
+ MISSING_NODE_INPUT: "MissingNodeInput",
913
+ MISSING_NODE_OUTPUT: "MissingNodeOutput",
914
+ MISSING_STARTING_NODES: "MissingStartingNodes",
915
+ MULTIPLE_NODE_INPUT_CONNECTIONS: "MultipleNodeInputConnections",
916
+ UNFULFILLED_NODE_INPUT: "UnfulfilledNodeInput",
917
+ UNKNOWN_CONNECTION_CONDITION: "UnknownConnectionCondition",
918
+ UNKNOWN_CONNECTION_SOURCE: "UnknownConnectionSource",
919
+ UNKNOWN_CONNECTION_SOURCE_OUTPUT: "UnknownConnectionSourceOutput",
920
+ UNKNOWN_CONNECTION_TARGET: "UnknownConnectionTarget",
921
+ UNKNOWN_CONNECTION_TARGET_INPUT: "UnknownConnectionTargetInput",
922
+ UNREACHABLE_NODE: "UnreachableNode",
923
+ UNSATISFIED_CONNECTION_CONDITIONS: "UnsatisfiedConnectionConditions",
924
+ UNSPECIFIED: "Unspecified"
925
+ };
769
926
  var IngestionJobStatus = {
770
927
  COMPLETE: "COMPLETE",
771
928
  FAILED: "FAILED",
@@ -1005,6 +1162,44 @@ var ConditionFlowNodeConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((o
1005
1162
  ...obj,
1006
1163
  ...obj.conditions && { conditions: obj.conditions.map((item) => FlowConditionFilterSensitiveLog(item)) }
1007
1164
  }), "ConditionFlowNodeConfigurationFilterSensitiveLog");
1165
+ var ContentBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1166
+ if (obj.text !== void 0)
1167
+ return { text: obj.text };
1168
+ if (obj.$unknown !== void 0)
1169
+ return { [obj.$unknown[0]]: "UNKNOWN" };
1170
+ }, "ContentBlockFilterSensitiveLog");
1171
+ var MessageFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1172
+ ...obj,
1173
+ ...obj.content && { content: import_smithy_client.SENSITIVE_STRING }
1174
+ }), "MessageFilterSensitiveLog");
1175
+ var SystemContentBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1176
+ if (obj.text !== void 0)
1177
+ return { text: obj.text };
1178
+ if (obj.$unknown !== void 0)
1179
+ return { [obj.$unknown[0]]: "UNKNOWN" };
1180
+ }, "SystemContentBlockFilterSensitiveLog");
1181
+ var ToolChoiceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1182
+ if (obj.auto !== void 0)
1183
+ return { auto: obj.auto };
1184
+ if (obj.any !== void 0)
1185
+ return { any: obj.any };
1186
+ if (obj.tool !== void 0)
1187
+ return { tool: obj.tool };
1188
+ if (obj.$unknown !== void 0)
1189
+ return { [obj.$unknown[0]]: "UNKNOWN" };
1190
+ }, "ToolChoiceFilterSensitiveLog");
1191
+ var ToolConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1192
+ ...obj,
1193
+ ...obj.tools && { tools: import_smithy_client.SENSITIVE_STRING },
1194
+ ...obj.toolChoice && { toolChoice: import_smithy_client.SENSITIVE_STRING }
1195
+ }), "ToolConfigurationFilterSensitiveLog");
1196
+ var ChatPromptTemplateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1197
+ ...obj,
1198
+ ...obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) },
1199
+ ...obj.system && { system: import_smithy_client.SENSITIVE_STRING },
1200
+ ...obj.inputVariables && { inputVariables: import_smithy_client.SENSITIVE_STRING },
1201
+ ...obj.toolConfiguration && { toolConfiguration: ToolConfigurationFilterSensitiveLog(obj.toolConfiguration) }
1202
+ }), "ChatPromptTemplateConfigurationFilterSensitiveLog");
1008
1203
  var TextPromptTemplateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1009
1204
  ...obj,
1010
1205
  ...obj.text && { text: import_smithy_client.SENSITIVE_STRING },
@@ -1013,6 +1208,8 @@ var TextPromptTemplateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((
1013
1208
  var PromptTemplateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1014
1209
  if (obj.text !== void 0)
1015
1210
  return { text: import_smithy_client.SENSITIVE_STRING };
1211
+ if (obj.chat !== void 0)
1212
+ return { chat: import_smithy_client.SENSITIVE_STRING };
1016
1213
  if (obj.$unknown !== void 0)
1017
1214
  return { [obj.$unknown[0]]: "UNKNOWN" };
1018
1215
  }, "PromptTemplateConfigurationFilterSensitiveLog");
@@ -1095,9 +1292,76 @@ var GetFlowVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => (
1095
1292
  ...obj,
1096
1293
  ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1097
1294
  }), "GetFlowVersionResponseFilterSensitiveLog");
1295
+ var DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1296
+ ...obj,
1297
+ ...obj.expression && { expression: import_smithy_client.SENSITIVE_STRING }
1298
+ }), "DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog");
1299
+ var FlowValidationDetailsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1300
+ if (obj.cyclicConnection !== void 0)
1301
+ return { cyclicConnection: obj.cyclicConnection };
1302
+ if (obj.duplicateConnections !== void 0)
1303
+ return { duplicateConnections: obj.duplicateConnections };
1304
+ if (obj.duplicateConditionExpression !== void 0)
1305
+ return {
1306
+ duplicateConditionExpression: DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog(
1307
+ obj.duplicateConditionExpression
1308
+ )
1309
+ };
1310
+ if (obj.unreachableNode !== void 0)
1311
+ return { unreachableNode: obj.unreachableNode };
1312
+ if (obj.unknownConnectionSource !== void 0)
1313
+ return { unknownConnectionSource: obj.unknownConnectionSource };
1314
+ if (obj.unknownConnectionSourceOutput !== void 0)
1315
+ return { unknownConnectionSourceOutput: obj.unknownConnectionSourceOutput };
1316
+ if (obj.unknownConnectionTarget !== void 0)
1317
+ return { unknownConnectionTarget: obj.unknownConnectionTarget };
1318
+ if (obj.unknownConnectionTargetInput !== void 0)
1319
+ return { unknownConnectionTargetInput: obj.unknownConnectionTargetInput };
1320
+ if (obj.unknownConnectionCondition !== void 0)
1321
+ return { unknownConnectionCondition: obj.unknownConnectionCondition };
1322
+ if (obj.malformedConditionExpression !== void 0)
1323
+ return { malformedConditionExpression: obj.malformedConditionExpression };
1324
+ if (obj.malformedNodeInputExpression !== void 0)
1325
+ return { malformedNodeInputExpression: obj.malformedNodeInputExpression };
1326
+ if (obj.mismatchedNodeInputType !== void 0)
1327
+ return { mismatchedNodeInputType: obj.mismatchedNodeInputType };
1328
+ if (obj.mismatchedNodeOutputType !== void 0)
1329
+ return { mismatchedNodeOutputType: obj.mismatchedNodeOutputType };
1330
+ if (obj.incompatibleConnectionDataType !== void 0)
1331
+ return { incompatibleConnectionDataType: obj.incompatibleConnectionDataType };
1332
+ if (obj.missingConnectionConfiguration !== void 0)
1333
+ return { missingConnectionConfiguration: obj.missingConnectionConfiguration };
1334
+ if (obj.missingDefaultCondition !== void 0)
1335
+ return { missingDefaultCondition: obj.missingDefaultCondition };
1336
+ if (obj.missingEndingNodes !== void 0)
1337
+ return { missingEndingNodes: obj.missingEndingNodes };
1338
+ if (obj.missingNodeConfiguration !== void 0)
1339
+ return { missingNodeConfiguration: obj.missingNodeConfiguration };
1340
+ if (obj.missingNodeInput !== void 0)
1341
+ return { missingNodeInput: obj.missingNodeInput };
1342
+ if (obj.missingNodeOutput !== void 0)
1343
+ return { missingNodeOutput: obj.missingNodeOutput };
1344
+ if (obj.missingStartingNodes !== void 0)
1345
+ return { missingStartingNodes: obj.missingStartingNodes };
1346
+ if (obj.multipleNodeInputConnections !== void 0)
1347
+ return { multipleNodeInputConnections: obj.multipleNodeInputConnections };
1348
+ if (obj.unfulfilledNodeInput !== void 0)
1349
+ return { unfulfilledNodeInput: obj.unfulfilledNodeInput };
1350
+ if (obj.unsatisfiedConnectionConditions !== void 0)
1351
+ return { unsatisfiedConnectionConditions: obj.unsatisfiedConnectionConditions };
1352
+ if (obj.unspecified !== void 0)
1353
+ return { unspecified: obj.unspecified };
1354
+ if (obj.$unknown !== void 0)
1355
+ return { [obj.$unknown[0]]: "UNKNOWN" };
1356
+ }, "FlowValidationDetailsFilterSensitiveLog");
1357
+ var FlowValidationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1358
+ ...obj,
1359
+ ...obj.details && { details: FlowValidationDetailsFilterSensitiveLog(obj.details) }
1360
+ }), "FlowValidationFilterSensitiveLog");
1098
1361
  var GetFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1099
1362
  ...obj,
1100
- ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1363
+ ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING },
1364
+ ...obj.validations && { validations: obj.validations.map((item) => FlowValidationFilterSensitiveLog(item)) }
1101
1365
  }), "GetFlowResponseFilterSensitiveLog");
1102
1366
  var UpdateFlowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1103
1367
  ...obj,
@@ -1107,47 +1371,6 @@ var UpdateFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1107
1371
  ...obj,
1108
1372
  ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
1109
1373
  }), "UpdateFlowResponseFilterSensitiveLog");
1110
- var PromptMetadataEntryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1111
- ...obj,
1112
- ...obj.key && { key: import_smithy_client.SENSITIVE_STRING },
1113
- ...obj.value && { value: import_smithy_client.SENSITIVE_STRING }
1114
- }), "PromptMetadataEntryFilterSensitiveLog");
1115
- var PromptVariantFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1116
- ...obj,
1117
- ...obj.templateConfiguration && {
1118
- templateConfiguration: PromptTemplateConfigurationFilterSensitiveLog(obj.templateConfiguration)
1119
- },
1120
- ...obj.inferenceConfiguration && { inferenceConfiguration: obj.inferenceConfiguration },
1121
- ...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
1122
- }), "PromptVariantFilterSensitiveLog");
1123
- var CreatePromptRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1124
- ...obj,
1125
- ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
1126
- }), "CreatePromptRequestFilterSensitiveLog");
1127
- var CreatePromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1128
- ...obj,
1129
- ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
1130
- }), "CreatePromptResponseFilterSensitiveLog");
1131
- var CreatePromptVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1132
- ...obj,
1133
- ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
1134
- }), "CreatePromptVersionResponseFilterSensitiveLog");
1135
- var GetPromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1136
- ...obj,
1137
- ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
1138
- }), "GetPromptResponseFilterSensitiveLog");
1139
- var UpdatePromptRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1140
- ...obj,
1141
- ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
1142
- }), "UpdatePromptRequestFilterSensitiveLog");
1143
- var UpdatePromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1144
- ...obj,
1145
- ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
1146
- }), "UpdatePromptResponseFilterSensitiveLog");
1147
- var GetAgentVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1148
- ...obj,
1149
- ...obj.agentVersion && { agentVersion: AgentVersionFilterSensitiveLog(obj.agentVersion) }
1150
- }), "GetAgentVersionResponseFilterSensitiveLog");
1151
1374
 
1152
1375
  // src/protocols/Aws_restJson1.ts
1153
1376
  var se_AssociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (input, context) => {
@@ -2089,6 +2312,21 @@ var se_UpdatePromptCommand = /* @__PURE__ */ __name(async (input, context) => {
2089
2312
  b.m("PUT").h(headers).b(body);
2090
2313
  return b.build();
2091
2314
  }, "se_UpdatePromptCommand");
2315
+ var se_ValidateFlowDefinitionCommand = /* @__PURE__ */ __name(async (input, context) => {
2316
+ const b = (0, import_core.requestBuilder)(input, context);
2317
+ const headers = {
2318
+ "content-type": "application/json"
2319
+ };
2320
+ b.bp("/flows/validate-definition");
2321
+ let body;
2322
+ body = JSON.stringify(
2323
+ (0, import_smithy_client.take)(input, {
2324
+ definition: (_) => se_FlowDefinition(_, context)
2325
+ })
2326
+ );
2327
+ b.m("POST").h(headers).b(body);
2328
+ return b.build();
2329
+ }, "se_ValidateFlowDefinitionCommand");
2092
2330
  var de_AssociateAgentKnowledgeBaseCommand = /* @__PURE__ */ __name(async (output, context) => {
2093
2331
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2094
2332
  return de_CommandError(output, context);
@@ -3074,6 +3312,20 @@ var de_UpdatePromptCommand = /* @__PURE__ */ __name(async (output, context) => {
3074
3312
  Object.assign(contents, doc);
3075
3313
  return contents;
3076
3314
  }, "de_UpdatePromptCommand");
3315
+ var de_ValidateFlowDefinitionCommand = /* @__PURE__ */ __name(async (output, context) => {
3316
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
3317
+ return de_CommandError(output, context);
3318
+ }
3319
+ const contents = (0, import_smithy_client.map)({
3320
+ $metadata: deserializeMetadata(output)
3321
+ });
3322
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
3323
+ const doc = (0, import_smithy_client.take)(data, {
3324
+ validations: import_smithy_client._json
3325
+ });
3326
+ Object.assign(contents, doc);
3327
+ return contents;
3328
+ }, "de_ValidateFlowDefinitionCommand");
3077
3329
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
3078
3330
  const parsedOutput = {
3079
3331
  ...output,
@@ -3204,6 +3456,14 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
3204
3456
  });
3205
3457
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
3206
3458
  }, "de_ValidationExceptionRes");
3459
+ var se_ChatPromptTemplateConfiguration = /* @__PURE__ */ __name((input, context) => {
3460
+ return (0, import_smithy_client.take)(input, {
3461
+ inputVariables: import_smithy_client._json,
3462
+ messages: import_smithy_client._json,
3463
+ system: import_smithy_client._json,
3464
+ toolConfiguration: (_) => se_ToolConfiguration(_, context)
3465
+ });
3466
+ }, "se_ChatPromptTemplateConfiguration");
3207
3467
  var se_FlowDefinition = /* @__PURE__ */ __name((input, context) => {
3208
3468
  return (0, import_smithy_client.take)(input, {
3209
3469
  connections: import_smithy_client._json,
@@ -3267,6 +3527,7 @@ var se_PromptConfigurations = /* @__PURE__ */ __name((input, context) => {
3267
3527
  }, "se_PromptConfigurations");
3268
3528
  var se_PromptFlowNodeConfiguration = /* @__PURE__ */ __name((input, context) => {
3269
3529
  return (0, import_smithy_client.take)(input, {
3530
+ guardrailConfiguration: import_smithy_client._json,
3270
3531
  sourceConfiguration: (_) => se_PromptFlowNodeSourceConfiguration(_, context)
3271
3532
  });
3272
3533
  }, "se_PromptFlowNodeConfiguration");
@@ -3275,7 +3536,7 @@ var se_PromptFlowNodeInlineConfiguration = /* @__PURE__ */ __name((input, contex
3275
3536
  additionalModelRequestFields: (_) => se_Document(_, context),
3276
3537
  inferenceConfiguration: (_) => se_PromptInferenceConfiguration(_, context),
3277
3538
  modelId: [],
3278
- templateConfiguration: import_smithy_client._json,
3539
+ templateConfiguration: (_) => se_PromptTemplateConfiguration(_, context),
3279
3540
  templateType: []
3280
3541
  });
3281
3542
  }, "se_PromptFlowNodeInlineConfiguration");
@@ -3306,14 +3567,22 @@ var se_PromptOverrideConfiguration = /* @__PURE__ */ __name((input, context) =>
3306
3567
  promptConfigurations: (_) => se_PromptConfigurations(_, context)
3307
3568
  });
3308
3569
  }, "se_PromptOverrideConfiguration");
3570
+ var se_PromptTemplateConfiguration = /* @__PURE__ */ __name((input, context) => {
3571
+ return PromptTemplateConfiguration.visit(input, {
3572
+ chat: (value) => ({ chat: se_ChatPromptTemplateConfiguration(value, context) }),
3573
+ text: (value) => ({ text: (0, import_smithy_client._json)(value) }),
3574
+ _: (name, value) => ({ name: value })
3575
+ });
3576
+ }, "se_PromptTemplateConfiguration");
3309
3577
  var se_PromptVariant = /* @__PURE__ */ __name((input, context) => {
3310
3578
  return (0, import_smithy_client.take)(input, {
3311
3579
  additionalModelRequestFields: (_) => se_Document(_, context),
3580
+ genAiResource: import_smithy_client._json,
3312
3581
  inferenceConfiguration: (_) => se_PromptInferenceConfiguration(_, context),
3313
3582
  metadata: import_smithy_client._json,
3314
3583
  modelId: [],
3315
3584
  name: [],
3316
- templateConfiguration: import_smithy_client._json,
3585
+ templateConfiguration: (_) => se_PromptTemplateConfiguration(_, context),
3317
3586
  templateType: []
3318
3587
  });
3319
3588
  }, "se_PromptVariant");
@@ -3322,6 +3591,36 @@ var se_PromptVariantList = /* @__PURE__ */ __name((input, context) => {
3322
3591
  return se_PromptVariant(entry, context);
3323
3592
  });
3324
3593
  }, "se_PromptVariantList");
3594
+ var se_Tool = /* @__PURE__ */ __name((input, context) => {
3595
+ return Tool.visit(input, {
3596
+ toolSpec: (value) => ({ toolSpec: se_ToolSpecification(value, context) }),
3597
+ _: (name, value) => ({ name: value })
3598
+ });
3599
+ }, "se_Tool");
3600
+ var se_ToolConfiguration = /* @__PURE__ */ __name((input, context) => {
3601
+ return (0, import_smithy_client.take)(input, {
3602
+ toolChoice: import_smithy_client._json,
3603
+ tools: (_) => se_Tools(_, context)
3604
+ });
3605
+ }, "se_ToolConfiguration");
3606
+ var se_ToolInputSchema = /* @__PURE__ */ __name((input, context) => {
3607
+ return ToolInputSchema.visit(input, {
3608
+ json: (value) => ({ json: se_Document(value, context) }),
3609
+ _: (name, value) => ({ name: value })
3610
+ });
3611
+ }, "se_ToolInputSchema");
3612
+ var se_Tools = /* @__PURE__ */ __name((input, context) => {
3613
+ return input.filter((e) => e != null).map((entry) => {
3614
+ return se_Tool(entry, context);
3615
+ });
3616
+ }, "se_Tools");
3617
+ var se_ToolSpecification = /* @__PURE__ */ __name((input, context) => {
3618
+ return (0, import_smithy_client.take)(input, {
3619
+ description: [],
3620
+ inputSchema: (_) => se_ToolInputSchema(_, context),
3621
+ name: []
3622
+ });
3623
+ }, "se_ToolSpecification");
3325
3624
  var se_Document = /* @__PURE__ */ __name((input, context) => {
3326
3625
  return input;
3327
3626
  }, "se_Document");
@@ -3508,6 +3807,14 @@ var de_AgentVersionSummary = /* @__PURE__ */ __name((output, context) => {
3508
3807
  updatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
3509
3808
  });
3510
3809
  }, "de_AgentVersionSummary");
3810
+ var de_ChatPromptTemplateConfiguration = /* @__PURE__ */ __name((output, context) => {
3811
+ return (0, import_smithy_client.take)(output, {
3812
+ inputVariables: import_smithy_client._json,
3813
+ messages: import_smithy_client._json,
3814
+ system: import_smithy_client._json,
3815
+ toolConfiguration: (_) => de_ToolConfiguration(_, context)
3816
+ });
3817
+ }, "de_ChatPromptTemplateConfiguration");
3511
3818
  var de_DataSource = /* @__PURE__ */ __name((output, context) => {
3512
3819
  return (0, import_smithy_client.take)(output, {
3513
3820
  createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
@@ -3763,6 +4070,7 @@ var de_PromptConfigurations = /* @__PURE__ */ __name((output, context) => {
3763
4070
  }, "de_PromptConfigurations");
3764
4071
  var de_PromptFlowNodeConfiguration = /* @__PURE__ */ __name((output, context) => {
3765
4072
  return (0, import_smithy_client.take)(output, {
4073
+ guardrailConfiguration: import_smithy_client._json,
3766
4074
  sourceConfiguration: (_) => de_PromptFlowNodeSourceConfiguration((0, import_core2.awsExpectUnion)(_), context)
3767
4075
  });
3768
4076
  }, "de_PromptFlowNodeConfiguration");
@@ -3771,7 +4079,7 @@ var de_PromptFlowNodeInlineConfiguration = /* @__PURE__ */ __name((output, conte
3771
4079
  additionalModelRequestFields: (_) => de_Document(_, context),
3772
4080
  inferenceConfiguration: (_) => de_PromptInferenceConfiguration((0, import_core2.awsExpectUnion)(_), context),
3773
4081
  modelId: import_smithy_client.expectString,
3774
- templateConfiguration: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
4082
+ templateConfiguration: (_) => de_PromptTemplateConfiguration((0, import_core2.awsExpectUnion)(_), context),
3775
4083
  templateType: import_smithy_client.expectString
3776
4084
  });
3777
4085
  }, "de_PromptFlowNodeInlineConfiguration");
@@ -3827,14 +4135,28 @@ var de_PromptSummary = /* @__PURE__ */ __name((output, context) => {
3827
4135
  version: import_smithy_client.expectString
3828
4136
  });
3829
4137
  }, "de_PromptSummary");
4138
+ var de_PromptTemplateConfiguration = /* @__PURE__ */ __name((output, context) => {
4139
+ if (output.chat != null) {
4140
+ return {
4141
+ chat: de_ChatPromptTemplateConfiguration(output.chat, context)
4142
+ };
4143
+ }
4144
+ if (output.text != null) {
4145
+ return {
4146
+ text: (0, import_smithy_client._json)(output.text)
4147
+ };
4148
+ }
4149
+ return { $unknown: Object.entries(output)[0] };
4150
+ }, "de_PromptTemplateConfiguration");
3830
4151
  var de_PromptVariant = /* @__PURE__ */ __name((output, context) => {
3831
4152
  return (0, import_smithy_client.take)(output, {
3832
4153
  additionalModelRequestFields: (_) => de_Document(_, context),
4154
+ genAiResource: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
3833
4155
  inferenceConfiguration: (_) => de_PromptInferenceConfiguration((0, import_core2.awsExpectUnion)(_), context),
3834
4156
  metadata: import_smithy_client._json,
3835
4157
  modelId: import_smithy_client.expectString,
3836
4158
  name: import_smithy_client.expectString,
3837
- templateConfiguration: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
4159
+ templateConfiguration: (_) => de_PromptTemplateConfiguration((0, import_core2.awsExpectUnion)(_), context),
3838
4160
  templateType: import_smithy_client.expectString
3839
4161
  });
3840
4162
  }, "de_PromptVariant");
@@ -3844,6 +4166,41 @@ var de_PromptVariantList = /* @__PURE__ */ __name((output, context) => {
3844
4166
  });
3845
4167
  return retVal;
3846
4168
  }, "de_PromptVariantList");
4169
+ var de_Tool = /* @__PURE__ */ __name((output, context) => {
4170
+ if (output.toolSpec != null) {
4171
+ return {
4172
+ toolSpec: de_ToolSpecification(output.toolSpec, context)
4173
+ };
4174
+ }
4175
+ return { $unknown: Object.entries(output)[0] };
4176
+ }, "de_Tool");
4177
+ var de_ToolConfiguration = /* @__PURE__ */ __name((output, context) => {
4178
+ return (0, import_smithy_client.take)(output, {
4179
+ toolChoice: (_) => (0, import_smithy_client._json)((0, import_core2.awsExpectUnion)(_)),
4180
+ tools: (_) => de_Tools(_, context)
4181
+ });
4182
+ }, "de_ToolConfiguration");
4183
+ var de_ToolInputSchema = /* @__PURE__ */ __name((output, context) => {
4184
+ if (output.json != null) {
4185
+ return {
4186
+ json: de_Document(output.json, context)
4187
+ };
4188
+ }
4189
+ return { $unknown: Object.entries(output)[0] };
4190
+ }, "de_ToolInputSchema");
4191
+ var de_Tools = /* @__PURE__ */ __name((output, context) => {
4192
+ const retVal = (output || []).filter((e) => e != null).map((entry) => {
4193
+ return de_Tool((0, import_core2.awsExpectUnion)(entry), context);
4194
+ });
4195
+ return retVal;
4196
+ }, "de_Tools");
4197
+ var de_ToolSpecification = /* @__PURE__ */ __name((output, context) => {
4198
+ return (0, import_smithy_client.take)(output, {
4199
+ description: import_smithy_client.expectString,
4200
+ inputSchema: (_) => de_ToolInputSchema((0, import_core2.awsExpectUnion)(_), context),
4201
+ name: import_smithy_client.expectString
4202
+ });
4203
+ }, "de_ToolSpecification");
3847
4204
  var de_Document = /* @__PURE__ */ __name((output, context) => {
3848
4205
  return output;
3849
4206
  }, "de_Document");
@@ -3987,6 +4344,78 @@ var CreateKnowledgeBaseCommand = _CreateKnowledgeBaseCommand;
3987
4344
 
3988
4345
 
3989
4346
 
4347
+
4348
+ // src/models/models_1.ts
4349
+
4350
+ var PromptGenAiResource;
4351
+ ((PromptGenAiResource2) => {
4352
+ PromptGenAiResource2.visit = /* @__PURE__ */ __name((value, visitor) => {
4353
+ if (value.agent !== void 0)
4354
+ return visitor.agent(value.agent);
4355
+ return visitor._(value.$unknown[0], value.$unknown[1]);
4356
+ }, "visit");
4357
+ })(PromptGenAiResource || (PromptGenAiResource = {}));
4358
+ var PromptAgentResourceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4359
+ ...obj
4360
+ }), "PromptAgentResourceFilterSensitiveLog");
4361
+ var PromptGenAiResourceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
4362
+ if (obj.agent !== void 0)
4363
+ return { agent: import_smithy_client.SENSITIVE_STRING };
4364
+ if (obj.$unknown !== void 0)
4365
+ return { [obj.$unknown[0]]: "UNKNOWN" };
4366
+ }, "PromptGenAiResourceFilterSensitiveLog");
4367
+ var PromptMetadataEntryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4368
+ ...obj,
4369
+ ...obj.key && { key: import_smithy_client.SENSITIVE_STRING },
4370
+ ...obj.value && { value: import_smithy_client.SENSITIVE_STRING }
4371
+ }), "PromptMetadataEntryFilterSensitiveLog");
4372
+ var PromptVariantFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4373
+ ...obj,
4374
+ ...obj.templateConfiguration && {
4375
+ templateConfiguration: PromptTemplateConfigurationFilterSensitiveLog(obj.templateConfiguration)
4376
+ },
4377
+ ...obj.inferenceConfiguration && { inferenceConfiguration: obj.inferenceConfiguration },
4378
+ ...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING },
4379
+ ...obj.genAiResource && { genAiResource: import_smithy_client.SENSITIVE_STRING }
4380
+ }), "PromptVariantFilterSensitiveLog");
4381
+ var CreatePromptRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4382
+ ...obj,
4383
+ ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
4384
+ }), "CreatePromptRequestFilterSensitiveLog");
4385
+ var CreatePromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4386
+ ...obj,
4387
+ ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
4388
+ }), "CreatePromptResponseFilterSensitiveLog");
4389
+ var CreatePromptVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4390
+ ...obj,
4391
+ ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
4392
+ }), "CreatePromptVersionResponseFilterSensitiveLog");
4393
+ var GetPromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4394
+ ...obj,
4395
+ ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
4396
+ }), "GetPromptResponseFilterSensitiveLog");
4397
+ var UpdatePromptRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4398
+ ...obj,
4399
+ ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
4400
+ }), "UpdatePromptRequestFilterSensitiveLog");
4401
+ var UpdatePromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4402
+ ...obj,
4403
+ ...obj.variants && { variants: import_smithy_client.SENSITIVE_STRING }
4404
+ }), "UpdatePromptResponseFilterSensitiveLog");
4405
+ var ValidateFlowDefinitionRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4406
+ ...obj,
4407
+ ...obj.definition && { definition: import_smithy_client.SENSITIVE_STRING }
4408
+ }), "ValidateFlowDefinitionRequestFilterSensitiveLog");
4409
+ var ValidateFlowDefinitionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4410
+ ...obj,
4411
+ ...obj.validations && { validations: obj.validations.map((item) => FlowValidationFilterSensitiveLog(item)) }
4412
+ }), "ValidateFlowDefinitionResponseFilterSensitiveLog");
4413
+ var GetAgentVersionResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
4414
+ ...obj,
4415
+ ...obj.agentVersion && { agentVersion: AgentVersionFilterSensitiveLog(obj.agentVersion) }
4416
+ }), "GetAgentVersionResponseFilterSensitiveLog");
4417
+
4418
+ // src/commands/CreatePromptCommand.ts
3990
4419
  var _CreatePromptCommand = class _CreatePromptCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
3991
4420
  return [
3992
4421
  (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
@@ -4725,6 +5154,20 @@ var _UpdatePromptCommand = class _UpdatePromptCommand extends import_smithy_clie
4725
5154
  __name(_UpdatePromptCommand, "UpdatePromptCommand");
4726
5155
  var UpdatePromptCommand = _UpdatePromptCommand;
4727
5156
 
5157
+ // src/commands/ValidateFlowDefinitionCommand.ts
5158
+
5159
+
5160
+
5161
+ var _ValidateFlowDefinitionCommand = class _ValidateFlowDefinitionCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
5162
+ return [
5163
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
5164
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
5165
+ ];
5166
+ }).s("AmazonBedrockAgentBuildTimeLambda", "ValidateFlowDefinition", {}).n("BedrockAgentClient", "ValidateFlowDefinitionCommand").f(ValidateFlowDefinitionRequestFilterSensitiveLog, ValidateFlowDefinitionResponseFilterSensitiveLog).ser(se_ValidateFlowDefinitionCommand).de(de_ValidateFlowDefinitionCommand).build() {
5167
+ };
5168
+ __name(_ValidateFlowDefinitionCommand, "ValidateFlowDefinitionCommand");
5169
+ var ValidateFlowDefinitionCommand = _ValidateFlowDefinitionCommand;
5170
+
4728
5171
  // src/BedrockAgent.ts
4729
5172
  var commands = {
4730
5173
  AssociateAgentKnowledgeBaseCommand,
@@ -4788,7 +5231,8 @@ var commands = {
4788
5231
  UpdateFlowCommand,
4789
5232
  UpdateFlowAliasCommand,
4790
5233
  UpdateKnowledgeBaseCommand,
4791
- UpdatePromptCommand
5234
+ UpdatePromptCommand,
5235
+ ValidateFlowDefinitionCommand
4792
5236
  };
4793
5237
  var _BedrockAgent = class _BedrockAgent extends BedrockAgentClient {
4794
5238
  };
@@ -4913,6 +5357,7 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
4913
5357
  UpdateFlowCommand,
4914
5358
  UpdateKnowledgeBaseCommand,
4915
5359
  UpdatePromptCommand,
5360
+ ValidateFlowDefinitionCommand,
4916
5361
  paginateListAgentActionGroups,
4917
5362
  paginateListAgentAliases,
4918
5363
  paginateListAgentKnowledgeBases,
@@ -4963,6 +5408,12 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
4963
5408
  FlowConnectionConfiguration,
4964
5409
  FlowConnectionType,
4965
5410
  PromptInferenceConfiguration,
5411
+ ContentBlock,
5412
+ ConversationRole,
5413
+ SystemContentBlock,
5414
+ ToolChoice,
5415
+ ToolInputSchema,
5416
+ Tool,
4966
5417
  PromptTemplateConfiguration,
4967
5418
  PromptTemplateType,
4968
5419
  PromptFlowNodeSourceConfiguration,
@@ -4972,7 +5423,9 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
4972
5423
  FlowNodeIODataType,
4973
5424
  FlowNodeType,
4974
5425
  FlowStatus,
5426
+ FlowValidationDetails,
4975
5427
  FlowValidationSeverity,
5428
+ FlowValidationType,
4976
5429
  IngestionJobStatus,
4977
5430
  IngestionJobFilterAttribute,
4978
5431
  IngestionJobFilterOperator,
@@ -5018,6 +5471,12 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
5018
5471
  UpdateDataSourceResponseFilterSensitiveLog,
5019
5472
  FlowConditionFilterSensitiveLog,
5020
5473
  ConditionFlowNodeConfigurationFilterSensitiveLog,
5474
+ ContentBlockFilterSensitiveLog,
5475
+ MessageFilterSensitiveLog,
5476
+ SystemContentBlockFilterSensitiveLog,
5477
+ ToolChoiceFilterSensitiveLog,
5478
+ ToolConfigurationFilterSensitiveLog,
5479
+ ChatPromptTemplateConfigurationFilterSensitiveLog,
5021
5480
  TextPromptTemplateConfigurationFilterSensitiveLog,
5022
5481
  PromptTemplateConfigurationFilterSensitiveLog,
5023
5482
  PromptFlowNodeInlineConfigurationFilterSensitiveLog,
@@ -5031,9 +5490,15 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
5031
5490
  CreateFlowResponseFilterSensitiveLog,
5032
5491
  CreateFlowVersionResponseFilterSensitiveLog,
5033
5492
  GetFlowVersionResponseFilterSensitiveLog,
5493
+ DuplicateConditionExpressionFlowValidationDetailsFilterSensitiveLog,
5494
+ FlowValidationDetailsFilterSensitiveLog,
5495
+ FlowValidationFilterSensitiveLog,
5034
5496
  GetFlowResponseFilterSensitiveLog,
5035
5497
  UpdateFlowRequestFilterSensitiveLog,
5036
5498
  UpdateFlowResponseFilterSensitiveLog,
5499
+ PromptGenAiResource,
5500
+ PromptAgentResourceFilterSensitiveLog,
5501
+ PromptGenAiResourceFilterSensitiveLog,
5037
5502
  PromptMetadataEntryFilterSensitiveLog,
5038
5503
  PromptVariantFilterSensitiveLog,
5039
5504
  CreatePromptRequestFilterSensitiveLog,
@@ -5042,6 +5507,8 @@ var paginateListPrompts = (0, import_core.createPaginator)(BedrockAgentClient, L
5042
5507
  GetPromptResponseFilterSensitiveLog,
5043
5508
  UpdatePromptRequestFilterSensitiveLog,
5044
5509
  UpdatePromptResponseFilterSensitiveLog,
5510
+ ValidateFlowDefinitionRequestFilterSensitiveLog,
5511
+ ValidateFlowDefinitionResponseFilterSensitiveLog,
5045
5512
  GetAgentVersionResponseFilterSensitiveLog
5046
5513
  });
5047
5514