@aws-sdk/client-bedrock-agent-runtime 3.927.0 → 3.929.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 (58) hide show
  1. package/dist-cjs/index.js +3454 -4732
  2. package/dist-cjs/runtimeConfig.shared.js +2 -0
  3. package/dist-es/BedrockAgentRuntimeClient.js +2 -0
  4. package/dist-es/commands/CreateInvocationCommand.js +3 -9
  5. package/dist-es/commands/CreateSessionCommand.js +3 -9
  6. package/dist-es/commands/DeleteAgentMemoryCommand.js +3 -9
  7. package/dist-es/commands/DeleteSessionCommand.js +3 -9
  8. package/dist-es/commands/EndSessionCommand.js +3 -9
  9. package/dist-es/commands/GenerateQueryCommand.js +3 -10
  10. package/dist-es/commands/GetAgentMemoryCommand.js +3 -9
  11. package/dist-es/commands/GetExecutionFlowSnapshotCommand.js +3 -9
  12. package/dist-es/commands/GetFlowExecutionCommand.js +3 -9
  13. package/dist-es/commands/GetInvocationStepCommand.js +3 -10
  14. package/dist-es/commands/GetSessionCommand.js +3 -9
  15. package/dist-es/commands/InvokeAgentCommand.js +3 -11
  16. package/dist-es/commands/InvokeFlowCommand.js +3 -10
  17. package/dist-es/commands/InvokeInlineAgentCommand.js +3 -11
  18. package/dist-es/commands/ListFlowExecutionEventsCommand.js +3 -10
  19. package/dist-es/commands/ListFlowExecutionsCommand.js +3 -9
  20. package/dist-es/commands/ListInvocationStepsCommand.js +3 -9
  21. package/dist-es/commands/ListInvocationsCommand.js +3 -9
  22. package/dist-es/commands/ListSessionsCommand.js +3 -9
  23. package/dist-es/commands/ListTagsForResourceCommand.js +3 -9
  24. package/dist-es/commands/OptimizePromptCommand.js +3 -10
  25. package/dist-es/commands/PutInvocationStepCommand.js +3 -10
  26. package/dist-es/commands/RerankCommand.js +3 -10
  27. package/dist-es/commands/RetrieveAndGenerateCommand.js +3 -10
  28. package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +3 -10
  29. package/dist-es/commands/RetrieveCommand.js +3 -10
  30. package/dist-es/commands/StartFlowExecutionCommand.js +3 -10
  31. package/dist-es/commands/StopFlowExecutionCommand.js +3 -9
  32. package/dist-es/commands/TagResourceCommand.js +3 -9
  33. package/dist-es/commands/UntagResourceCommand.js +3 -9
  34. package/dist-es/commands/UpdateSessionCommand.js +3 -9
  35. package/dist-es/models/models_0.js +0 -922
  36. package/dist-es/models/models_1.js +0 -262
  37. package/dist-es/runtimeConfig.shared.js +2 -0
  38. package/dist-es/schemas/schemas_0.js +3380 -0
  39. package/dist-types/BedrockAgentRuntimeClient.d.ts +10 -1
  40. package/dist-types/models/models_0.d.ts +0 -644
  41. package/dist-types/models/models_1.d.ts +0 -128
  42. package/dist-types/runtimeConfig.browser.d.ts +1 -0
  43. package/dist-types/runtimeConfig.d.ts +1 -0
  44. package/dist-types/runtimeConfig.native.d.ts +1 -0
  45. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  46. package/dist-types/schemas/schemas_0.d.ts +445 -0
  47. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +4 -0
  48. package/dist-types/ts3.4/models/models_0.d.ts +0 -431
  49. package/dist-types/ts3.4/models/models_1.d.ts +0 -92
  50. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
  51. package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
  52. package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
  53. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
  54. package/dist-types/ts3.4/schemas/schemas_0.d.ts +452 -0
  55. package/package.json +5 -5
  56. package/dist-es/protocols/Aws_restJson1.js +0 -3122
  57. package/dist-types/protocols/Aws_restJson1.d.ts +0 -281
  58. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -380
@@ -1,4 +1,3 @@
1
- import { SENSITIVE_STRING } from "@smithy/smithy-client";
2
1
  import { BedrockAgentRuntimeServiceException as __BaseException } from "./BedrockAgentRuntimeServiceException";
3
2
  export class AccessDeniedException extends __BaseException {
4
3
  name = "AccessDeniedException";
@@ -856,924 +855,3 @@ export const RerankDocumentType = {
856
855
  export const RerankSourceType = {
857
856
  INLINE: "INLINE",
858
857
  };
859
- export const ActionGroupInvocationInputFilterSensitiveLog = (obj) => ({
860
- ...obj,
861
- ...(obj.actionGroupName && { actionGroupName: SENSITIVE_STRING }),
862
- ...(obj.verb && { verb: SENSITIVE_STRING }),
863
- ...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
864
- ...(obj.function && { function: SENSITIVE_STRING }),
865
- });
866
- export const UsageFilterSensitiveLog = (obj) => ({
867
- ...obj,
868
- });
869
- export const MetadataFilterSensitiveLog = (obj) => ({
870
- ...obj,
871
- ...(obj.usage && { usage: SENSITIVE_STRING }),
872
- });
873
- export const ActionGroupInvocationOutputFilterSensitiveLog = (obj) => ({
874
- ...obj,
875
- ...(obj.text && { text: SENSITIVE_STRING }),
876
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
877
- });
878
- export const APISchemaFilterSensitiveLog = (obj) => {
879
- if (obj.s3 !== undefined)
880
- return { s3: obj.s3 };
881
- if (obj.payload !== undefined)
882
- return { payload: SENSITIVE_STRING };
883
- if (obj.$unknown !== undefined)
884
- return { [obj.$unknown[0]]: "UNKNOWN" };
885
- };
886
- export const FunctionDefinitionFilterSensitiveLog = (obj) => ({
887
- ...obj,
888
- ...(obj.name && { name: SENSITIVE_STRING }),
889
- });
890
- export const FunctionSchemaFilterSensitiveLog = (obj) => {
891
- if (obj.functions !== undefined)
892
- return { functions: obj.functions.map((item) => FunctionDefinitionFilterSensitiveLog(item)) };
893
- if (obj.$unknown !== undefined)
894
- return { [obj.$unknown[0]]: "UNKNOWN" };
895
- };
896
- export const AgentActionGroupFilterSensitiveLog = (obj) => ({
897
- ...obj,
898
- ...(obj.actionGroupName && { actionGroupName: SENSITIVE_STRING }),
899
- ...(obj.description && { description: SENSITIVE_STRING }),
900
- ...(obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor }),
901
- ...(obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }),
902
- ...(obj.functionSchema && { functionSchema: FunctionSchemaFilterSensitiveLog(obj.functionSchema) }),
903
- });
904
- export const ApiResultFilterSensitiveLog = (obj) => ({
905
- ...obj,
906
- ...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
907
- ...(obj.responseBody && {
908
- responseBody: Object.entries(obj.responseBody).reduce((acc, [key, value]) => ((acc[key] = value), acc), {}),
909
- }),
910
- });
911
- export const InvocationResultMemberFilterSensitiveLog = (obj) => {
912
- if (obj.apiResult !== undefined)
913
- return { apiResult: ApiResultFilterSensitiveLog(obj.apiResult) };
914
- if (obj.functionResult !== undefined)
915
- return { functionResult: obj.functionResult };
916
- if (obj.$unknown !== undefined)
917
- return { [obj.$unknown[0]]: "UNKNOWN" };
918
- };
919
- export const ReturnControlResultsFilterSensitiveLog = (obj) => ({
920
- ...obj,
921
- ...(obj.returnControlInvocationResults && {
922
- returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => InvocationResultMemberFilterSensitiveLog(item)),
923
- }),
924
- });
925
- export const AgentCollaboratorInputPayloadFilterSensitiveLog = (obj) => ({
926
- ...obj,
927
- ...(obj.text && { text: SENSITIVE_STRING }),
928
- ...(obj.returnControlResults && {
929
- returnControlResults: ReturnControlResultsFilterSensitiveLog(obj.returnControlResults),
930
- }),
931
- });
932
- export const AgentCollaboratorInvocationInputFilterSensitiveLog = (obj) => ({
933
- ...obj,
934
- ...(obj.input && { input: AgentCollaboratorInputPayloadFilterSensitiveLog(obj.input) }),
935
- });
936
- export const ApiInvocationInputFilterSensitiveLog = (obj) => ({
937
- ...obj,
938
- ...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
939
- ...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
940
- });
941
- export const FunctionInvocationInputFilterSensitiveLog = (obj) => ({
942
- ...obj,
943
- ...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
944
- });
945
- export const InvocationInputMemberFilterSensitiveLog = (obj) => {
946
- if (obj.apiInvocationInput !== undefined)
947
- return { apiInvocationInput: ApiInvocationInputFilterSensitiveLog(obj.apiInvocationInput) };
948
- if (obj.functionInvocationInput !== undefined)
949
- return { functionInvocationInput: FunctionInvocationInputFilterSensitiveLog(obj.functionInvocationInput) };
950
- if (obj.$unknown !== undefined)
951
- return { [obj.$unknown[0]]: "UNKNOWN" };
952
- };
953
- export const ReturnControlPayloadFilterSensitiveLog = (obj) => ({
954
- ...obj,
955
- ...(obj.invocationInputs && {
956
- invocationInputs: obj.invocationInputs.map((item) => InvocationInputMemberFilterSensitiveLog(item)),
957
- }),
958
- });
959
- export const AgentCollaboratorOutputPayloadFilterSensitiveLog = (obj) => ({
960
- ...obj,
961
- ...(obj.text && { text: SENSITIVE_STRING }),
962
- ...(obj.returnControlPayload && { returnControlPayload: SENSITIVE_STRING }),
963
- });
964
- export const AgentCollaboratorInvocationOutputFilterSensitiveLog = (obj) => ({
965
- ...obj,
966
- ...(obj.output && { output: AgentCollaboratorOutputPayloadFilterSensitiveLog(obj.output) }),
967
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
968
- });
969
- export const CustomOrchestrationTraceEventFilterSensitiveLog = (obj) => ({
970
- ...obj,
971
- });
972
- export const CustomOrchestrationTraceFilterSensitiveLog = (obj) => ({
973
- ...obj,
974
- ...(obj.event && { event: SENSITIVE_STRING }),
975
- });
976
- export const FailureTraceFilterSensitiveLog = (obj) => ({
977
- ...obj,
978
- ...(obj.failureReason && { failureReason: SENSITIVE_STRING }),
979
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
980
- });
981
- export const GuardrailContentFilterFilterSensitiveLog = (obj) => ({
982
- ...obj,
983
- });
984
- export const GuardrailContentPolicyAssessmentFilterSensitiveLog = (obj) => ({
985
- ...obj,
986
- ...(obj.filters && { filters: SENSITIVE_STRING }),
987
- });
988
- export const GuardrailPiiEntityFilterFilterSensitiveLog = (obj) => ({
989
- ...obj,
990
- });
991
- export const GuardrailRegexFilterFilterSensitiveLog = (obj) => ({
992
- ...obj,
993
- });
994
- export const GuardrailSensitiveInformationPolicyAssessmentFilterSensitiveLog = (obj) => ({
995
- ...obj,
996
- ...(obj.piiEntities && { piiEntities: SENSITIVE_STRING }),
997
- ...(obj.regexes && { regexes: SENSITIVE_STRING }),
998
- });
999
- export const GuardrailTopicFilterSensitiveLog = (obj) => ({
1000
- ...obj,
1001
- });
1002
- export const GuardrailTopicPolicyAssessmentFilterSensitiveLog = (obj) => ({
1003
- ...obj,
1004
- ...(obj.topics && { topics: SENSITIVE_STRING }),
1005
- });
1006
- export const GuardrailCustomWordFilterSensitiveLog = (obj) => ({
1007
- ...obj,
1008
- });
1009
- export const GuardrailManagedWordFilterSensitiveLog = (obj) => ({
1010
- ...obj,
1011
- });
1012
- export const GuardrailWordPolicyAssessmentFilterSensitiveLog = (obj) => ({
1013
- ...obj,
1014
- ...(obj.customWords && { customWords: SENSITIVE_STRING }),
1015
- ...(obj.managedWordLists && { managedWordLists: SENSITIVE_STRING }),
1016
- });
1017
- export const GuardrailAssessmentFilterSensitiveLog = (obj) => ({
1018
- ...obj,
1019
- ...(obj.topicPolicy && { topicPolicy: SENSITIVE_STRING }),
1020
- ...(obj.contentPolicy && { contentPolicy: SENSITIVE_STRING }),
1021
- ...(obj.wordPolicy && { wordPolicy: SENSITIVE_STRING }),
1022
- ...(obj.sensitiveInformationPolicy && { sensitiveInformationPolicy: SENSITIVE_STRING }),
1023
- });
1024
- export const GuardrailTraceFilterSensitiveLog = (obj) => ({
1025
- ...obj,
1026
- ...(obj.inputAssessments && { inputAssessments: SENSITIVE_STRING }),
1027
- ...(obj.outputAssessments && { outputAssessments: SENSITIVE_STRING }),
1028
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1029
- });
1030
- export const KnowledgeBaseLookupInputFilterSensitiveLog = (obj) => ({
1031
- ...obj,
1032
- ...(obj.text && { text: SENSITIVE_STRING }),
1033
- ...(obj.knowledgeBaseId && { knowledgeBaseId: SENSITIVE_STRING }),
1034
- });
1035
- export const InvocationInputFilterSensitiveLog = (obj) => ({
1036
- ...obj,
1037
- ...(obj.actionGroupInvocationInput && {
1038
- actionGroupInvocationInput: ActionGroupInvocationInputFilterSensitiveLog(obj.actionGroupInvocationInput),
1039
- }),
1040
- ...(obj.knowledgeBaseLookupInput && {
1041
- knowledgeBaseLookupInput: KnowledgeBaseLookupInputFilterSensitiveLog(obj.knowledgeBaseLookupInput),
1042
- }),
1043
- ...(obj.agentCollaboratorInvocationInput && {
1044
- agentCollaboratorInvocationInput: AgentCollaboratorInvocationInputFilterSensitiveLog(obj.agentCollaboratorInvocationInput),
1045
- }),
1046
- });
1047
- export const ModelInvocationInputFilterSensitiveLog = (obj) => ({
1048
- ...obj,
1049
- ...(obj.text && { text: SENSITIVE_STRING }),
1050
- });
1051
- export const RawResponseFilterSensitiveLog = (obj) => ({
1052
- ...obj,
1053
- });
1054
- export const ReasoningTextBlockFilterSensitiveLog = (obj) => ({
1055
- ...obj,
1056
- });
1057
- export const ReasoningContentBlockFilterSensitiveLog = (obj) => {
1058
- if (obj.reasoningText !== undefined)
1059
- return { reasoningText: SENSITIVE_STRING };
1060
- if (obj.redactedContent !== undefined)
1061
- return { redactedContent: obj.redactedContent };
1062
- if (obj.$unknown !== undefined)
1063
- return { [obj.$unknown[0]]: "UNKNOWN" };
1064
- };
1065
- export const OrchestrationModelInvocationOutputFilterSensitiveLog = (obj) => ({
1066
- ...obj,
1067
- ...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
1068
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1069
- ...(obj.reasoningContent && { reasoningContent: SENSITIVE_STRING }),
1070
- });
1071
- export const CodeInterpreterInvocationOutputFilterSensitiveLog = (obj) => ({
1072
- ...obj,
1073
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1074
- });
1075
- export const FinalResponseFilterSensitiveLog = (obj) => ({
1076
- ...obj,
1077
- ...(obj.text && { text: SENSITIVE_STRING }),
1078
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1079
- });
1080
- export const RetrievalResultContentColumnFilterSensitiveLog = (obj) => ({
1081
- ...obj,
1082
- });
1083
- export const RetrievalResultContentFilterSensitiveLog = (obj) => ({
1084
- ...obj,
1085
- ...(obj.row && { row: SENSITIVE_STRING }),
1086
- });
1087
- export const RetrievalResultLocationFilterSensitiveLog = (obj) => ({
1088
- ...obj,
1089
- });
1090
- export const RetrievedReferenceFilterSensitiveLog = (obj) => ({
1091
- ...obj,
1092
- ...(obj.content && { content: SENSITIVE_STRING }),
1093
- ...(obj.location && { location: SENSITIVE_STRING }),
1094
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1095
- });
1096
- export const KnowledgeBaseLookupOutputFilterSensitiveLog = (obj) => ({
1097
- ...obj,
1098
- ...(obj.retrievedReferences && {
1099
- retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item)),
1100
- }),
1101
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1102
- });
1103
- export const RepromptResponseFilterSensitiveLog = (obj) => ({
1104
- ...obj,
1105
- ...(obj.source && { source: SENSITIVE_STRING }),
1106
- });
1107
- export const ObservationFilterSensitiveLog = (obj) => ({
1108
- ...obj,
1109
- ...(obj.actionGroupInvocationOutput && {
1110
- actionGroupInvocationOutput: ActionGroupInvocationOutputFilterSensitiveLog(obj.actionGroupInvocationOutput),
1111
- }),
1112
- ...(obj.agentCollaboratorInvocationOutput && {
1113
- agentCollaboratorInvocationOutput: AgentCollaboratorInvocationOutputFilterSensitiveLog(obj.agentCollaboratorInvocationOutput),
1114
- }),
1115
- ...(obj.knowledgeBaseLookupOutput && {
1116
- knowledgeBaseLookupOutput: KnowledgeBaseLookupOutputFilterSensitiveLog(obj.knowledgeBaseLookupOutput),
1117
- }),
1118
- ...(obj.finalResponse && { finalResponse: FinalResponseFilterSensitiveLog(obj.finalResponse) }),
1119
- ...(obj.repromptResponse && { repromptResponse: SENSITIVE_STRING }),
1120
- ...(obj.codeInterpreterInvocationOutput && {
1121
- codeInterpreterInvocationOutput: CodeInterpreterInvocationOutputFilterSensitiveLog(obj.codeInterpreterInvocationOutput),
1122
- }),
1123
- });
1124
- export const RationaleFilterSensitiveLog = (obj) => ({
1125
- ...obj,
1126
- ...(obj.text && { text: SENSITIVE_STRING }),
1127
- });
1128
- export const OrchestrationTraceFilterSensitiveLog = (obj) => {
1129
- if (obj.rationale !== undefined)
1130
- return { rationale: SENSITIVE_STRING };
1131
- if (obj.invocationInput !== undefined)
1132
- return { invocationInput: SENSITIVE_STRING };
1133
- if (obj.observation !== undefined)
1134
- return { observation: SENSITIVE_STRING };
1135
- if (obj.modelInvocationInput !== undefined)
1136
- return { modelInvocationInput: SENSITIVE_STRING };
1137
- if (obj.modelInvocationOutput !== undefined)
1138
- return { modelInvocationOutput: SENSITIVE_STRING };
1139
- if (obj.$unknown !== undefined)
1140
- return { [obj.$unknown[0]]: "UNKNOWN" };
1141
- };
1142
- export const PostProcessingParsedResponseFilterSensitiveLog = (obj) => ({
1143
- ...obj,
1144
- ...(obj.text && { text: SENSITIVE_STRING }),
1145
- });
1146
- export const PostProcessingModelInvocationOutputFilterSensitiveLog = (obj) => ({
1147
- ...obj,
1148
- ...(obj.parsedResponse && { parsedResponse: SENSITIVE_STRING }),
1149
- ...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
1150
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1151
- ...(obj.reasoningContent && { reasoningContent: SENSITIVE_STRING }),
1152
- });
1153
- export const PostProcessingTraceFilterSensitiveLog = (obj) => {
1154
- if (obj.modelInvocationInput !== undefined)
1155
- return { modelInvocationInput: SENSITIVE_STRING };
1156
- if (obj.modelInvocationOutput !== undefined)
1157
- return { modelInvocationOutput: SENSITIVE_STRING };
1158
- if (obj.$unknown !== undefined)
1159
- return { [obj.$unknown[0]]: "UNKNOWN" };
1160
- };
1161
- export const PreProcessingParsedResponseFilterSensitiveLog = (obj) => ({
1162
- ...obj,
1163
- ...(obj.rationale && { rationale: SENSITIVE_STRING }),
1164
- });
1165
- export const PreProcessingModelInvocationOutputFilterSensitiveLog = (obj) => ({
1166
- ...obj,
1167
- ...(obj.parsedResponse && { parsedResponse: SENSITIVE_STRING }),
1168
- ...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
1169
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1170
- ...(obj.reasoningContent && { reasoningContent: SENSITIVE_STRING }),
1171
- });
1172
- export const PreProcessingTraceFilterSensitiveLog = (obj) => {
1173
- if (obj.modelInvocationInput !== undefined)
1174
- return { modelInvocationInput: SENSITIVE_STRING };
1175
- if (obj.modelInvocationOutput !== undefined)
1176
- return { modelInvocationOutput: SENSITIVE_STRING };
1177
- if (obj.$unknown !== undefined)
1178
- return { [obj.$unknown[0]]: "UNKNOWN" };
1179
- };
1180
- export const RoutingClassifierModelInvocationOutputFilterSensitiveLog = (obj) => ({
1181
- ...obj,
1182
- ...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
1183
- ...(obj.metadata && { metadata: SENSITIVE_STRING }),
1184
- });
1185
- export const RoutingClassifierTraceFilterSensitiveLog = (obj) => {
1186
- if (obj.invocationInput !== undefined)
1187
- return { invocationInput: SENSITIVE_STRING };
1188
- if (obj.observation !== undefined)
1189
- return { observation: SENSITIVE_STRING };
1190
- if (obj.modelInvocationInput !== undefined)
1191
- return { modelInvocationInput: SENSITIVE_STRING };
1192
- if (obj.modelInvocationOutput !== undefined)
1193
- return { modelInvocationOutput: SENSITIVE_STRING };
1194
- if (obj.$unknown !== undefined)
1195
- return { [obj.$unknown[0]]: "UNKNOWN" };
1196
- };
1197
- export const TraceFilterSensitiveLog = (obj) => {
1198
- if (obj.guardrailTrace !== undefined)
1199
- return { guardrailTrace: SENSITIVE_STRING };
1200
- if (obj.preProcessingTrace !== undefined)
1201
- return { preProcessingTrace: SENSITIVE_STRING };
1202
- if (obj.orchestrationTrace !== undefined)
1203
- return { orchestrationTrace: SENSITIVE_STRING };
1204
- if (obj.postProcessingTrace !== undefined)
1205
- return { postProcessingTrace: SENSITIVE_STRING };
1206
- if (obj.routingClassifierTrace !== undefined)
1207
- return { routingClassifierTrace: SENSITIVE_STRING };
1208
- if (obj.failureTrace !== undefined)
1209
- return { failureTrace: SENSITIVE_STRING };
1210
- if (obj.customOrchestrationTrace !== undefined)
1211
- return { customOrchestrationTrace: SENSITIVE_STRING };
1212
- if (obj.$unknown !== undefined)
1213
- return { [obj.$unknown[0]]: "UNKNOWN" };
1214
- };
1215
- export const TracePartFilterSensitiveLog = (obj) => ({
1216
- ...obj,
1217
- ...(obj.trace && { trace: SENSITIVE_STRING }),
1218
- ...(obj.callerChain && { callerChain: obj.callerChain.map((item) => item) }),
1219
- ...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
1220
- });
1221
- export const SatisfiedConditionFilterSensitiveLog = (obj) => ({
1222
- ...obj,
1223
- });
1224
- export const ConditionResultEventFilterSensitiveLog = (obj) => ({
1225
- ...obj,
1226
- ...(obj.satisfiedConditions && { satisfiedConditions: SENSITIVE_STRING }),
1227
- });
1228
- export const FlowFailureEventFilterSensitiveLog = (obj) => ({
1229
- ...obj,
1230
- });
1231
- export const FlowExecutionContentFilterSensitiveLog = (obj) => {
1232
- if (obj.document !== undefined)
1233
- return { document: obj.document };
1234
- if (obj.$unknown !== undefined)
1235
- return { [obj.$unknown[0]]: "UNKNOWN" };
1236
- };
1237
- export const FlowInputFieldFilterSensitiveLog = (obj) => ({
1238
- ...obj,
1239
- ...(obj.content && { content: SENSITIVE_STRING }),
1240
- });
1241
- export const FlowExecutionInputEventFilterSensitiveLog = (obj) => ({
1242
- ...obj,
1243
- ...(obj.fields && { fields: SENSITIVE_STRING }),
1244
- });
1245
- export const FlowOutputFieldFilterSensitiveLog = (obj) => ({
1246
- ...obj,
1247
- ...(obj.content && { content: SENSITIVE_STRING }),
1248
- });
1249
- export const FlowExecutionOutputEventFilterSensitiveLog = (obj) => ({
1250
- ...obj,
1251
- ...(obj.fields && { fields: SENSITIVE_STRING }),
1252
- });
1253
- export const NodeActionEventFilterSensitiveLog = (obj) => ({
1254
- ...obj,
1255
- });
1256
- export const NodeTraceElementsFilterSensitiveLog = (obj) => {
1257
- if (obj.agentTraces !== undefined)
1258
- return { agentTraces: SENSITIVE_STRING };
1259
- if (obj.$unknown !== undefined)
1260
- return { [obj.$unknown[0]]: "UNKNOWN" };
1261
- };
1262
- export const NodeDependencyEventFilterSensitiveLog = (obj) => ({
1263
- ...obj,
1264
- ...(obj.traceElements && { traceElements: SENSITIVE_STRING }),
1265
- });
1266
- export const NodeFailureEventFilterSensitiveLog = (obj) => ({
1267
- ...obj,
1268
- });
1269
- export const NodeExecutionContentFilterSensitiveLog = (obj) => {
1270
- if (obj.document !== undefined)
1271
- return { document: obj.document };
1272
- if (obj.$unknown !== undefined)
1273
- return { [obj.$unknown[0]]: "UNKNOWN" };
1274
- };
1275
- export const NodeInputSourceFilterSensitiveLog = (obj) => ({
1276
- ...obj,
1277
- ...(obj.expression && { expression: SENSITIVE_STRING }),
1278
- });
1279
- export const NodeInputFieldFilterSensitiveLog = (obj) => ({
1280
- ...obj,
1281
- ...(obj.content && { content: SENSITIVE_STRING }),
1282
- ...(obj.source && { source: NodeInputSourceFilterSensitiveLog(obj.source) }),
1283
- });
1284
- export const NodeInputEventFilterSensitiveLog = (obj) => ({
1285
- ...obj,
1286
- ...(obj.fields && { fields: SENSITIVE_STRING }),
1287
- });
1288
- export const NodeOutputNextFilterSensitiveLog = (obj) => ({
1289
- ...obj,
1290
- });
1291
- export const NodeOutputFieldFilterSensitiveLog = (obj) => ({
1292
- ...obj,
1293
- ...(obj.content && { content: SENSITIVE_STRING }),
1294
- ...(obj.next && { next: SENSITIVE_STRING }),
1295
- });
1296
- export const NodeOutputEventFilterSensitiveLog = (obj) => ({
1297
- ...obj,
1298
- ...(obj.fields && { fields: SENSITIVE_STRING }),
1299
- });
1300
- export const FlowExecutionEventFilterSensitiveLog = (obj) => {
1301
- if (obj.flowInputEvent !== undefined)
1302
- return { flowInputEvent: SENSITIVE_STRING };
1303
- if (obj.flowOutputEvent !== undefined)
1304
- return { flowOutputEvent: SENSITIVE_STRING };
1305
- if (obj.nodeInputEvent !== undefined)
1306
- return { nodeInputEvent: SENSITIVE_STRING };
1307
- if (obj.nodeOutputEvent !== undefined)
1308
- return { nodeOutputEvent: SENSITIVE_STRING };
1309
- if (obj.conditionResultEvent !== undefined)
1310
- return { conditionResultEvent: SENSITIVE_STRING };
1311
- if (obj.nodeFailureEvent !== undefined)
1312
- return { nodeFailureEvent: SENSITIVE_STRING };
1313
- if (obj.flowFailureEvent !== undefined)
1314
- return { flowFailureEvent: SENSITIVE_STRING };
1315
- if (obj.nodeActionEvent !== undefined)
1316
- return { nodeActionEvent: SENSITIVE_STRING };
1317
- if (obj.nodeDependencyEvent !== undefined)
1318
- return { nodeDependencyEvent: SENSITIVE_STRING };
1319
- if (obj.$unknown !== undefined)
1320
- return { [obj.$unknown[0]]: "UNKNOWN" };
1321
- };
1322
- export const ListFlowExecutionEventsResponseFilterSensitiveLog = (obj) => ({
1323
- ...obj,
1324
- ...(obj.flowExecutionEvents && {
1325
- flowExecutionEvents: obj.flowExecutionEvents.map((item) => FlowExecutionEventFilterSensitiveLog(item)),
1326
- }),
1327
- });
1328
- export const FlowInputContentFilterSensitiveLog = (obj) => {
1329
- if (obj.document !== undefined)
1330
- return { document: obj.document };
1331
- if (obj.$unknown !== undefined)
1332
- return { [obj.$unknown[0]]: "UNKNOWN" };
1333
- };
1334
- export const FlowInputFilterSensitiveLog = (obj) => ({
1335
- ...obj,
1336
- ...(obj.content && { content: SENSITIVE_STRING }),
1337
- });
1338
- export const StartFlowExecutionRequestFilterSensitiveLog = (obj) => ({
1339
- ...obj,
1340
- ...(obj.inputs && { inputs: obj.inputs.map((item) => FlowInputFilterSensitiveLog(item)) }),
1341
- });
1342
- export const InvokeFlowRequestFilterSensitiveLog = (obj) => ({
1343
- ...obj,
1344
- ...(obj.inputs && { inputs: obj.inputs.map((item) => FlowInputFilterSensitiveLog(item)) }),
1345
- });
1346
- export const FlowCompletionEventFilterSensitiveLog = (obj) => ({
1347
- ...obj,
1348
- });
1349
- export const FlowMultiTurnInputRequestEventFilterSensitiveLog = (obj) => ({
1350
- ...obj,
1351
- ...(obj.content && { content: obj.content }),
1352
- });
1353
- export const FlowOutputEventFilterSensitiveLog = (obj) => ({
1354
- ...obj,
1355
- ...(obj.content && { content: obj.content }),
1356
- });
1357
- export const FlowTraceConditionFilterSensitiveLog = (obj) => ({
1358
- ...obj,
1359
- });
1360
- export const FlowTraceConditionNodeResultEventFilterSensitiveLog = (obj) => ({
1361
- ...obj,
1362
- ...(obj.satisfiedConditions && { satisfiedConditions: SENSITIVE_STRING }),
1363
- });
1364
- export const FlowTraceNodeActionEventFilterSensitiveLog = (obj) => ({
1365
- ...obj,
1366
- });
1367
- export const TraceElementsFilterSensitiveLog = (obj) => {
1368
- if (obj.agentTraces !== undefined)
1369
- return { agentTraces: SENSITIVE_STRING };
1370
- if (obj.$unknown !== undefined)
1371
- return { [obj.$unknown[0]]: "UNKNOWN" };
1372
- };
1373
- export const FlowTraceDependencyEventFilterSensitiveLog = (obj) => ({
1374
- ...obj,
1375
- ...(obj.traceElements && { traceElements: SENSITIVE_STRING }),
1376
- });
1377
- export const FlowTraceNodeInputContentFilterSensitiveLog = (obj) => {
1378
- if (obj.document !== undefined)
1379
- return { document: obj.document };
1380
- if (obj.$unknown !== undefined)
1381
- return { [obj.$unknown[0]]: "UNKNOWN" };
1382
- };
1383
- export const FlowTraceNodeInputExecutionChainItemFilterSensitiveLog = (obj) => ({
1384
- ...obj,
1385
- });
1386
- export const FlowTraceNodeInputSourceFilterSensitiveLog = (obj) => ({
1387
- ...obj,
1388
- ...(obj.expression && { expression: SENSITIVE_STRING }),
1389
- });
1390
- export const FlowTraceNodeInputFieldFilterSensitiveLog = (obj) => ({
1391
- ...obj,
1392
- ...(obj.content && { content: SENSITIVE_STRING }),
1393
- ...(obj.source && { source: SENSITIVE_STRING }),
1394
- ...(obj.executionChain && { executionChain: SENSITIVE_STRING }),
1395
- });
1396
- export const FlowTraceNodeInputEventFilterSensitiveLog = (obj) => ({
1397
- ...obj,
1398
- ...(obj.fields && { fields: SENSITIVE_STRING }),
1399
- });
1400
- export const FlowTraceNodeOutputNextFilterSensitiveLog = (obj) => ({
1401
- ...obj,
1402
- });
1403
- export const FlowTraceNodeOutputFieldFilterSensitiveLog = (obj) => ({
1404
- ...obj,
1405
- ...(obj.content && { content: obj.content }),
1406
- ...(obj.next && { next: SENSITIVE_STRING }),
1407
- });
1408
- export const FlowTraceNodeOutputEventFilterSensitiveLog = (obj) => ({
1409
- ...obj,
1410
- ...(obj.fields && { fields: SENSITIVE_STRING }),
1411
- });
1412
- export const FlowTraceFilterSensitiveLog = (obj) => {
1413
- if (obj.nodeInputTrace !== undefined)
1414
- return { nodeInputTrace: SENSITIVE_STRING };
1415
- if (obj.nodeOutputTrace !== undefined)
1416
- return { nodeOutputTrace: SENSITIVE_STRING };
1417
- if (obj.conditionNodeResultTrace !== undefined)
1418
- return { conditionNodeResultTrace: SENSITIVE_STRING };
1419
- if (obj.nodeActionTrace !== undefined)
1420
- return { nodeActionTrace: SENSITIVE_STRING };
1421
- if (obj.nodeDependencyTrace !== undefined)
1422
- return { nodeDependencyTrace: SENSITIVE_STRING };
1423
- if (obj.$unknown !== undefined)
1424
- return { [obj.$unknown[0]]: "UNKNOWN" };
1425
- };
1426
- export const FlowTraceEventFilterSensitiveLog = (obj) => ({
1427
- ...obj,
1428
- ...(obj.trace && { trace: SENSITIVE_STRING }),
1429
- });
1430
- export const FlowResponseStreamFilterSensitiveLog = (obj) => {
1431
- if (obj.flowOutputEvent !== undefined)
1432
- return { flowOutputEvent: SENSITIVE_STRING };
1433
- if (obj.flowCompletionEvent !== undefined)
1434
- return { flowCompletionEvent: SENSITIVE_STRING };
1435
- if (obj.flowTraceEvent !== undefined)
1436
- return { flowTraceEvent: FlowTraceEventFilterSensitiveLog(obj.flowTraceEvent) };
1437
- if (obj.internalServerException !== undefined)
1438
- return { internalServerException: obj.internalServerException };
1439
- if (obj.validationException !== undefined)
1440
- return { validationException: obj.validationException };
1441
- if (obj.resourceNotFoundException !== undefined)
1442
- return { resourceNotFoundException: obj.resourceNotFoundException };
1443
- if (obj.serviceQuotaExceededException !== undefined)
1444
- return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
1445
- if (obj.throttlingException !== undefined)
1446
- return { throttlingException: obj.throttlingException };
1447
- if (obj.accessDeniedException !== undefined)
1448
- return { accessDeniedException: obj.accessDeniedException };
1449
- if (obj.conflictException !== undefined)
1450
- return { conflictException: obj.conflictException };
1451
- if (obj.dependencyFailedException !== undefined)
1452
- return { dependencyFailedException: obj.dependencyFailedException };
1453
- if (obj.badGatewayException !== undefined)
1454
- return { badGatewayException: obj.badGatewayException };
1455
- if (obj.flowMultiTurnInputRequestEvent !== undefined)
1456
- return { flowMultiTurnInputRequestEvent: SENSITIVE_STRING };
1457
- if (obj.$unknown !== undefined)
1458
- return { [obj.$unknown[0]]: "UNKNOWN" };
1459
- };
1460
- export const InvokeFlowResponseFilterSensitiveLog = (obj) => ({
1461
- ...obj,
1462
- ...(obj.responseStream && { responseStream: "STREAMING_CONTENT" }),
1463
- });
1464
- export const QueryGenerationInputFilterSensitiveLog = (obj) => ({
1465
- ...obj,
1466
- });
1467
- export const GenerateQueryRequestFilterSensitiveLog = (obj) => ({
1468
- ...obj,
1469
- ...(obj.queryGenerationInput && { queryGenerationInput: SENSITIVE_STRING }),
1470
- });
1471
- export const GeneratedQueryFilterSensitiveLog = (obj) => ({
1472
- ...obj,
1473
- });
1474
- export const GenerateQueryResponseFilterSensitiveLog = (obj) => ({
1475
- ...obj,
1476
- ...(obj.queries && { queries: SENSITIVE_STRING }),
1477
- });
1478
- export const ContentBlockFilterSensitiveLog = (obj) => {
1479
- if (obj.text !== undefined)
1480
- return { text: obj.text };
1481
- if (obj.$unknown !== undefined)
1482
- return { [obj.$unknown[0]]: "UNKNOWN" };
1483
- };
1484
- export const MessageFilterSensitiveLog = (obj) => ({
1485
- ...obj,
1486
- ...(obj.content && { content: SENSITIVE_STRING }),
1487
- });
1488
- export const ConversationHistoryFilterSensitiveLog = (obj) => ({
1489
- ...obj,
1490
- ...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
1491
- });
1492
- export const ByteContentFileFilterSensitiveLog = (obj) => ({
1493
- ...obj,
1494
- ...(obj.data && { data: SENSITIVE_STRING }),
1495
- });
1496
- export const FileSourceFilterSensitiveLog = (obj) => ({
1497
- ...obj,
1498
- ...(obj.byteContent && { byteContent: ByteContentFileFilterSensitiveLog(obj.byteContent) }),
1499
- });
1500
- export const InputFileFilterSensitiveLog = (obj) => ({
1501
- ...obj,
1502
- ...(obj.source && { source: FileSourceFilterSensitiveLog(obj.source) }),
1503
- });
1504
- export const MetadataAttributeSchemaFilterSensitiveLog = (obj) => ({
1505
- ...obj,
1506
- });
1507
- export const ImplicitFilterConfigurationFilterSensitiveLog = (obj) => ({
1508
- ...obj,
1509
- ...(obj.metadataAttributes && { metadataAttributes: SENSITIVE_STRING }),
1510
- });
1511
- export const RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog = (obj) => {
1512
- if (obj.fieldsToInclude !== undefined)
1513
- return { fieldsToInclude: SENSITIVE_STRING };
1514
- if (obj.fieldsToExclude !== undefined)
1515
- return { fieldsToExclude: SENSITIVE_STRING };
1516
- if (obj.$unknown !== undefined)
1517
- return { [obj.$unknown[0]]: "UNKNOWN" };
1518
- };
1519
- export const MetadataConfigurationForRerankingFilterSensitiveLog = (obj) => ({
1520
- ...obj,
1521
- ...(obj.selectiveModeConfiguration && {
1522
- selectiveModeConfiguration: RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog(obj.selectiveModeConfiguration),
1523
- }),
1524
- });
1525
- export const VectorSearchBedrockRerankingConfigurationFilterSensitiveLog = (obj) => ({
1526
- ...obj,
1527
- ...(obj.metadataConfiguration && {
1528
- metadataConfiguration: MetadataConfigurationForRerankingFilterSensitiveLog(obj.metadataConfiguration),
1529
- }),
1530
- });
1531
- export const VectorSearchRerankingConfigurationFilterSensitiveLog = (obj) => ({
1532
- ...obj,
1533
- ...(obj.bedrockRerankingConfiguration && {
1534
- bedrockRerankingConfiguration: VectorSearchBedrockRerankingConfigurationFilterSensitiveLog(obj.bedrockRerankingConfiguration),
1535
- }),
1536
- });
1537
- export const TextResponsePartFilterSensitiveLog = (obj) => ({
1538
- ...obj,
1539
- });
1540
- export const GeneratedResponsePartFilterSensitiveLog = (obj) => ({
1541
- ...obj,
1542
- ...(obj.textResponsePart && { textResponsePart: SENSITIVE_STRING }),
1543
- });
1544
- export const CitationFilterSensitiveLog = (obj) => ({
1545
- ...obj,
1546
- ...(obj.generatedResponsePart && {
1547
- generatedResponsePart: GeneratedResponsePartFilterSensitiveLog(obj.generatedResponsePart),
1548
- }),
1549
- ...(obj.retrievedReferences && {
1550
- retrievedReferences: obj.retrievedReferences.map((item) => RetrievedReferenceFilterSensitiveLog(item)),
1551
- }),
1552
- });
1553
- export const AttributionFilterSensitiveLog = (obj) => ({
1554
- ...obj,
1555
- ...(obj.citations && { citations: obj.citations.map((item) => CitationFilterSensitiveLog(item)) }),
1556
- });
1557
- export const PayloadPartFilterSensitiveLog = (obj) => ({
1558
- ...obj,
1559
- ...(obj.bytes && { bytes: SENSITIVE_STRING }),
1560
- ...(obj.attribution && { attribution: AttributionFilterSensitiveLog(obj.attribution) }),
1561
- });
1562
- export const OutputFileFilterSensitiveLog = (obj) => ({
1563
- ...obj,
1564
- ...(obj.bytes && { bytes: SENSITIVE_STRING }),
1565
- });
1566
- export const FilePartFilterSensitiveLog = (obj) => ({
1567
- ...obj,
1568
- ...(obj.files && { files: SENSITIVE_STRING }),
1569
- });
1570
- export const ResponseStreamFilterSensitiveLog = (obj) => {
1571
- if (obj.chunk !== undefined)
1572
- return { chunk: SENSITIVE_STRING };
1573
- if (obj.trace !== undefined)
1574
- return { trace: SENSITIVE_STRING };
1575
- if (obj.returnControl !== undefined)
1576
- return { returnControl: SENSITIVE_STRING };
1577
- if (obj.internalServerException !== undefined)
1578
- return { internalServerException: obj.internalServerException };
1579
- if (obj.validationException !== undefined)
1580
- return { validationException: obj.validationException };
1581
- if (obj.resourceNotFoundException !== undefined)
1582
- return { resourceNotFoundException: obj.resourceNotFoundException };
1583
- if (obj.serviceQuotaExceededException !== undefined)
1584
- return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
1585
- if (obj.throttlingException !== undefined)
1586
- return { throttlingException: obj.throttlingException };
1587
- if (obj.accessDeniedException !== undefined)
1588
- return { accessDeniedException: obj.accessDeniedException };
1589
- if (obj.conflictException !== undefined)
1590
- return { conflictException: obj.conflictException };
1591
- if (obj.dependencyFailedException !== undefined)
1592
- return { dependencyFailedException: obj.dependencyFailedException };
1593
- if (obj.badGatewayException !== undefined)
1594
- return { badGatewayException: obj.badGatewayException };
1595
- if (obj.modelNotReadyException !== undefined)
1596
- return { modelNotReadyException: obj.modelNotReadyException };
1597
- if (obj.files !== undefined)
1598
- return { files: FilePartFilterSensitiveLog(obj.files) };
1599
- if (obj.$unknown !== undefined)
1600
- return { [obj.$unknown[0]]: "UNKNOWN" };
1601
- };
1602
- export const InvokeAgentResponseFilterSensitiveLog = (obj) => ({
1603
- ...obj,
1604
- ...(obj.completion && { completion: "STREAMING_CONTENT" }),
1605
- });
1606
- export const CollaboratorConfigurationFilterSensitiveLog = (obj) => ({
1607
- ...obj,
1608
- ...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
1609
- ...(obj.collaboratorInstruction && { collaboratorInstruction: SENSITIVE_STRING }),
1610
- });
1611
- export const PromptConfigurationFilterSensitiveLog = (obj) => ({
1612
- ...obj,
1613
- ...(obj.basePromptTemplate && { basePromptTemplate: SENSITIVE_STRING }),
1614
- });
1615
- export const PromptOverrideConfigurationFilterSensitiveLog = (obj) => ({
1616
- ...obj,
1617
- ...(obj.promptConfigurations && {
1618
- promptConfigurations: obj.promptConfigurations.map((item) => PromptConfigurationFilterSensitiveLog(item)),
1619
- }),
1620
- });
1621
- export const InlineSessionStateFilterSensitiveLog = (obj) => ({
1622
- ...obj,
1623
- ...(obj.returnControlInvocationResults && {
1624
- returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => InvocationResultMemberFilterSensitiveLog(item)),
1625
- }),
1626
- ...(obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }),
1627
- ...(obj.conversationHistory && {
1628
- conversationHistory: ConversationHistoryFilterSensitiveLog(obj.conversationHistory),
1629
- }),
1630
- });
1631
- export const InlineAgentPayloadPartFilterSensitiveLog = (obj) => ({
1632
- ...obj,
1633
- ...(obj.bytes && { bytes: SENSITIVE_STRING }),
1634
- ...(obj.attribution && { attribution: AttributionFilterSensitiveLog(obj.attribution) }),
1635
- });
1636
- export const InlineAgentFilePartFilterSensitiveLog = (obj) => ({
1637
- ...obj,
1638
- ...(obj.files && { files: SENSITIVE_STRING }),
1639
- });
1640
- export const InlineAgentReturnControlPayloadFilterSensitiveLog = (obj) => ({
1641
- ...obj,
1642
- ...(obj.invocationInputs && {
1643
- invocationInputs: obj.invocationInputs.map((item) => InvocationInputMemberFilterSensitiveLog(item)),
1644
- }),
1645
- });
1646
- export const InlineAgentTracePartFilterSensitiveLog = (obj) => ({
1647
- ...obj,
1648
- ...(obj.trace && { trace: SENSITIVE_STRING }),
1649
- ...(obj.callerChain && { callerChain: obj.callerChain.map((item) => item) }),
1650
- ...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
1651
- });
1652
- export const InlineAgentResponseStreamFilterSensitiveLog = (obj) => {
1653
- if (obj.chunk !== undefined)
1654
- return { chunk: SENSITIVE_STRING };
1655
- if (obj.trace !== undefined)
1656
- return { trace: SENSITIVE_STRING };
1657
- if (obj.returnControl !== undefined)
1658
- return { returnControl: SENSITIVE_STRING };
1659
- if (obj.internalServerException !== undefined)
1660
- return { internalServerException: obj.internalServerException };
1661
- if (obj.validationException !== undefined)
1662
- return { validationException: obj.validationException };
1663
- if (obj.resourceNotFoundException !== undefined)
1664
- return { resourceNotFoundException: obj.resourceNotFoundException };
1665
- if (obj.serviceQuotaExceededException !== undefined)
1666
- return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
1667
- if (obj.throttlingException !== undefined)
1668
- return { throttlingException: obj.throttlingException };
1669
- if (obj.accessDeniedException !== undefined)
1670
- return { accessDeniedException: obj.accessDeniedException };
1671
- if (obj.conflictException !== undefined)
1672
- return { conflictException: obj.conflictException };
1673
- if (obj.dependencyFailedException !== undefined)
1674
- return { dependencyFailedException: obj.dependencyFailedException };
1675
- if (obj.badGatewayException !== undefined)
1676
- return { badGatewayException: obj.badGatewayException };
1677
- if (obj.files !== undefined)
1678
- return { files: InlineAgentFilePartFilterSensitiveLog(obj.files) };
1679
- if (obj.$unknown !== undefined)
1680
- return { [obj.$unknown[0]]: "UNKNOWN" };
1681
- };
1682
- export const InvokeInlineAgentResponseFilterSensitiveLog = (obj) => ({
1683
- ...obj,
1684
- ...(obj.completion && { completion: "STREAMING_CONTENT" }),
1685
- });
1686
- export const TextPromptFilterSensitiveLog = (obj) => ({
1687
- ...obj,
1688
- });
1689
- export const InputPromptFilterSensitiveLog = (obj) => {
1690
- if (obj.textPrompt !== undefined)
1691
- return { textPrompt: SENSITIVE_STRING };
1692
- if (obj.$unknown !== undefined)
1693
- return { [obj.$unknown[0]]: "UNKNOWN" };
1694
- };
1695
- export const OptimizePromptRequestFilterSensitiveLog = (obj) => ({
1696
- ...obj,
1697
- ...(obj.input && { input: InputPromptFilterSensitiveLog(obj.input) }),
1698
- });
1699
- export const AnalyzePromptEventFilterSensitiveLog = (obj) => ({
1700
- ...obj,
1701
- });
1702
- export const OptimizedPromptFilterSensitiveLog = (obj) => {
1703
- if (obj.textPrompt !== undefined)
1704
- return { textPrompt: SENSITIVE_STRING };
1705
- if (obj.$unknown !== undefined)
1706
- return { [obj.$unknown[0]]: "UNKNOWN" };
1707
- };
1708
- export const OptimizedPromptEventFilterSensitiveLog = (obj) => ({
1709
- ...obj,
1710
- ...(obj.optimizedPrompt && { optimizedPrompt: OptimizedPromptFilterSensitiveLog(obj.optimizedPrompt) }),
1711
- });
1712
- export const OptimizedPromptStreamFilterSensitiveLog = (obj) => {
1713
- if (obj.optimizedPromptEvent !== undefined)
1714
- return { optimizedPromptEvent: SENSITIVE_STRING };
1715
- if (obj.analyzePromptEvent !== undefined)
1716
- return { analyzePromptEvent: SENSITIVE_STRING };
1717
- if (obj.internalServerException !== undefined)
1718
- return { internalServerException: obj.internalServerException };
1719
- if (obj.throttlingException !== undefined)
1720
- return { throttlingException: obj.throttlingException };
1721
- if (obj.validationException !== undefined)
1722
- return { validationException: obj.validationException };
1723
- if (obj.dependencyFailedException !== undefined)
1724
- return { dependencyFailedException: obj.dependencyFailedException };
1725
- if (obj.accessDeniedException !== undefined)
1726
- return { accessDeniedException: obj.accessDeniedException };
1727
- if (obj.badGatewayException !== undefined)
1728
- return { badGatewayException: obj.badGatewayException };
1729
- if (obj.$unknown !== undefined)
1730
- return { [obj.$unknown[0]]: "UNKNOWN" };
1731
- };
1732
- export const OptimizePromptResponseFilterSensitiveLog = (obj) => ({
1733
- ...obj,
1734
- ...(obj.optimizedPrompt && { optimizedPrompt: "STREAMING_CONTENT" }),
1735
- });
1736
- export const RerankTextDocumentFilterSensitiveLog = (obj) => ({
1737
- ...obj,
1738
- });
1739
- export const RerankQueryFilterSensitiveLog = (obj) => ({
1740
- ...obj,
1741
- ...(obj.textQuery && { textQuery: SENSITIVE_STRING }),
1742
- });
1743
- export const RerankDocumentFilterSensitiveLog = (obj) => ({
1744
- ...obj,
1745
- ...(obj.textDocument && { textDocument: SENSITIVE_STRING }),
1746
- });
1747
- export const RerankSourceFilterSensitiveLog = (obj) => ({
1748
- ...obj,
1749
- ...(obj.inlineDocumentSource && { inlineDocumentSource: SENSITIVE_STRING }),
1750
- });
1751
- export const RerankRequestFilterSensitiveLog = (obj) => ({
1752
- ...obj,
1753
- ...(obj.queries && { queries: SENSITIVE_STRING }),
1754
- ...(obj.sources && { sources: SENSITIVE_STRING }),
1755
- });
1756
- export const RerankResultFilterSensitiveLog = (obj) => ({
1757
- ...obj,
1758
- ...(obj.document && { document: SENSITIVE_STRING }),
1759
- });
1760
- export const RerankResponseFilterSensitiveLog = (obj) => ({
1761
- ...obj,
1762
- ...(obj.results && { results: obj.results.map((item) => RerankResultFilterSensitiveLog(item)) }),
1763
- });
1764
- export const RetrieveAndGenerateInputFilterSensitiveLog = (obj) => ({
1765
- ...obj,
1766
- });
1767
- export const PromptTemplateFilterSensitiveLog = (obj) => ({
1768
- ...obj,
1769
- ...(obj.textPromptTemplate && { textPromptTemplate: SENSITIVE_STRING }),
1770
- });
1771
- export const ExternalSourcesGenerationConfigurationFilterSensitiveLog = (obj) => ({
1772
- ...obj,
1773
- ...(obj.promptTemplate && { promptTemplate: PromptTemplateFilterSensitiveLog(obj.promptTemplate) }),
1774
- });
1775
- export const ByteContentDocFilterSensitiveLog = (obj) => ({
1776
- ...obj,
1777
- ...(obj.identifier && { identifier: SENSITIVE_STRING }),
1778
- ...(obj.data && { data: SENSITIVE_STRING }),
1779
- });