@aws-sdk/client-bedrock-agent-runtime 3.764.0 → 3.772.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +601 -638
- package/dist-es/models/models_0.js +20 -0
- package/dist-es/protocols/Aws_restJson1.js +185 -5
- package/dist-types/commands/CreateSessionCommand.d.ts +1 -1
- package/dist-types/commands/InvokeAgentCommand.d.ts +48 -0
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +56 -2
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -2
- package/dist-types/models/models_0.d.ts +121 -44
- package/dist-types/models/models_1.d.ts +58 -4
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -2
- package/dist-types/ts3.4/models/models_0.d.ts +35 -10
- package/dist-types/ts3.4/models/models_1.d.ts +10 -0
- package/package.json +3 -3
package/dist-cjs/index.js
CHANGED
|
@@ -19,8 +19,8 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
19
19
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
20
20
|
|
|
21
21
|
// src/index.ts
|
|
22
|
-
var
|
|
23
|
-
__export(
|
|
22
|
+
var index_exports = {};
|
|
23
|
+
__export(index_exports, {
|
|
24
24
|
APISchema: () => APISchema,
|
|
25
25
|
APISchemaFilterSensitiveLog: () => APISchemaFilterSensitiveLog,
|
|
26
26
|
AccessDeniedException: () => AccessDeniedException,
|
|
@@ -142,6 +142,8 @@ __export(src_exports, {
|
|
|
142
142
|
GuardrailWordPolicyAction: () => GuardrailWordPolicyAction,
|
|
143
143
|
GuardrailWordPolicyAssessmentFilterSensitiveLog: () => GuardrailWordPolicyAssessmentFilterSensitiveLog,
|
|
144
144
|
ImageFormat: () => ImageFormat,
|
|
145
|
+
ImageInputFormat: () => ImageInputFormat,
|
|
146
|
+
ImageInputSource: () => ImageInputSource,
|
|
145
147
|
ImageSource: () => ImageSource,
|
|
146
148
|
ImplicitFilterConfigurationFilterSensitiveLog: () => ImplicitFilterConfigurationFilterSensitiveLog,
|
|
147
149
|
InlineAgentFilePartFilterSensitiveLog: () => InlineAgentFilePartFilterSensitiveLog,
|
|
@@ -318,7 +320,7 @@ __export(src_exports, {
|
|
|
318
320
|
paginateRerank: () => paginateRerank,
|
|
319
321
|
paginateRetrieve: () => paginateRetrieve
|
|
320
322
|
});
|
|
321
|
-
module.exports = __toCommonJS(
|
|
323
|
+
module.exports = __toCommonJS(index_exports);
|
|
322
324
|
|
|
323
325
|
// src/BedrockAgentRuntimeClient.ts
|
|
324
326
|
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
@@ -447,9 +449,9 @@ var BedrockAgentRuntimeClient = class extends import_smithy_client.Client {
|
|
|
447
449
|
this.middlewareStack.use(
|
|
448
450
|
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
449
451
|
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultBedrockAgentRuntimeHttpAuthSchemeParametersProvider,
|
|
450
|
-
identityProviderConfigProvider: async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
452
|
+
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
451
453
|
"aws.auth#sigv4": config.credentials
|
|
452
|
-
})
|
|
454
|
+
}), "identityProviderConfigProvider")
|
|
453
455
|
})
|
|
454
456
|
);
|
|
455
457
|
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
@@ -518,10 +520,8 @@ var CustomControlMethod = {
|
|
|
518
520
|
var ActionGroupExecutor;
|
|
519
521
|
((ActionGroupExecutor3) => {
|
|
520
522
|
ActionGroupExecutor3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
521
|
-
if (value.lambda !== void 0)
|
|
522
|
-
|
|
523
|
-
if (value.customControl !== void 0)
|
|
524
|
-
return visitor.customControl(value.customControl);
|
|
523
|
+
if (value.lambda !== void 0) return visitor.lambda(value.lambda);
|
|
524
|
+
if (value.customControl !== void 0) return visitor.customControl(value.customControl);
|
|
525
525
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
526
526
|
}, "visit");
|
|
527
527
|
})(ActionGroupExecutor || (ActionGroupExecutor = {}));
|
|
@@ -531,7 +531,10 @@ var ExecutionType = {
|
|
|
531
531
|
};
|
|
532
532
|
var ActionGroupSignature = {
|
|
533
533
|
AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter",
|
|
534
|
-
AMAZON_USERINPUT: "AMAZON.UserInput"
|
|
534
|
+
AMAZON_USERINPUT: "AMAZON.UserInput",
|
|
535
|
+
ANTHROPIC_BASH: "ANTHROPIC.Bash",
|
|
536
|
+
ANTHROPIC_COMPUTER: "ANTHROPIC.Computer",
|
|
537
|
+
ANTHROPIC_TEXTEDITOR: "ANTHROPIC.TextEditor"
|
|
535
538
|
};
|
|
536
539
|
var ActionInvocationType = {
|
|
537
540
|
RESULT: "RESULT",
|
|
@@ -541,10 +544,8 @@ var ActionInvocationType = {
|
|
|
541
544
|
var APISchema;
|
|
542
545
|
((APISchema3) => {
|
|
543
546
|
APISchema3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
544
|
-
if (value.s3 !== void 0)
|
|
545
|
-
|
|
546
|
-
if (value.payload !== void 0)
|
|
547
|
-
return visitor.payload(value.payload);
|
|
547
|
+
if (value.s3 !== void 0) return visitor.s3(value.s3);
|
|
548
|
+
if (value.payload !== void 0) return visitor.payload(value.payload);
|
|
548
549
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
549
550
|
}, "visit");
|
|
550
551
|
})(APISchema || (APISchema = {}));
|
|
@@ -562,8 +563,7 @@ var RequireConfirmation = {
|
|
|
562
563
|
var FunctionSchema;
|
|
563
564
|
((FunctionSchema3) => {
|
|
564
565
|
FunctionSchema3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
565
|
-
if (value.functions !== void 0)
|
|
566
|
-
return visitor.functions(value.functions);
|
|
566
|
+
if (value.functions !== void 0) return visitor.functions(value.functions);
|
|
567
567
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
568
568
|
}, "visit");
|
|
569
569
|
})(FunctionSchema || (FunctionSchema = {}));
|
|
@@ -576,17 +576,28 @@ var ConfirmationState = {
|
|
|
576
576
|
CONFIRM: "CONFIRM",
|
|
577
577
|
DENY: "DENY"
|
|
578
578
|
};
|
|
579
|
+
var ImageInputFormat = {
|
|
580
|
+
GIF: "gif",
|
|
581
|
+
JPEG: "jpeg",
|
|
582
|
+
PNG: "png",
|
|
583
|
+
WEBP: "webp"
|
|
584
|
+
};
|
|
585
|
+
var ImageInputSource;
|
|
586
|
+
((ImageInputSource2) => {
|
|
587
|
+
ImageInputSource2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
588
|
+
if (value.bytes !== void 0) return visitor.bytes(value.bytes);
|
|
589
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
590
|
+
}, "visit");
|
|
591
|
+
})(ImageInputSource || (ImageInputSource = {}));
|
|
579
592
|
var ResponseState = {
|
|
580
593
|
FAILURE: "FAILURE",
|
|
581
594
|
REPROMPT: "REPROMPT"
|
|
582
595
|
};
|
|
583
596
|
var InvocationResultMember;
|
|
584
|
-
((
|
|
585
|
-
|
|
586
|
-
if (value.apiResult !== void 0)
|
|
587
|
-
|
|
588
|
-
if (value.functionResult !== void 0)
|
|
589
|
-
return visitor.functionResult(value.functionResult);
|
|
597
|
+
((InvocationResultMember3) => {
|
|
598
|
+
InvocationResultMember3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
599
|
+
if (value.apiResult !== void 0) return visitor.apiResult(value.apiResult);
|
|
600
|
+
if (value.functionResult !== void 0) return visitor.functionResult(value.functionResult);
|
|
590
601
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
591
602
|
}, "visit");
|
|
592
603
|
})(InvocationResultMember || (InvocationResultMember = {}));
|
|
@@ -597,8 +608,7 @@ var PayloadType = {
|
|
|
597
608
|
var InvocationInputMember;
|
|
598
609
|
((InvocationInputMember2) => {
|
|
599
610
|
InvocationInputMember2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
600
|
-
if (value.apiInvocationInput !== void 0)
|
|
601
|
-
return visitor.apiInvocationInput(value.apiInvocationInput);
|
|
611
|
+
if (value.apiInvocationInput !== void 0) return visitor.apiInvocationInput(value.apiInvocationInput);
|
|
602
612
|
if (value.functionInvocationInput !== void 0)
|
|
603
613
|
return visitor.functionInvocationInput(value.functionInvocationInput);
|
|
604
614
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -697,8 +707,7 @@ var InternalServerException = class _InternalServerException extends BedrockAgen
|
|
|
697
707
|
var FlowInputContent;
|
|
698
708
|
((FlowInputContent2) => {
|
|
699
709
|
FlowInputContent2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
700
|
-
if (value.document !== void 0)
|
|
701
|
-
return visitor.document(value.document);
|
|
710
|
+
if (value.document !== void 0) return visitor.document(value.document);
|
|
702
711
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
703
712
|
}, "visit");
|
|
704
713
|
})(FlowInputContent || (FlowInputContent = {}));
|
|
@@ -713,8 +722,7 @@ var FlowCompletionReason = {
|
|
|
713
722
|
var FlowMultiTurnInputContent;
|
|
714
723
|
((FlowMultiTurnInputContent3) => {
|
|
715
724
|
FlowMultiTurnInputContent3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
716
|
-
if (value.document !== void 0)
|
|
717
|
-
return visitor.document(value.document);
|
|
725
|
+
if (value.document !== void 0) return visitor.document(value.document);
|
|
718
726
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
719
727
|
}, "visit");
|
|
720
728
|
})(FlowMultiTurnInputContent || (FlowMultiTurnInputContent = {}));
|
|
@@ -730,34 +738,29 @@ var NodeType = {
|
|
|
730
738
|
var FlowOutputContent;
|
|
731
739
|
((FlowOutputContent3) => {
|
|
732
740
|
FlowOutputContent3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
733
|
-
if (value.document !== void 0)
|
|
734
|
-
return visitor.document(value.document);
|
|
741
|
+
if (value.document !== void 0) return visitor.document(value.document);
|
|
735
742
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
736
743
|
}, "visit");
|
|
737
744
|
})(FlowOutputContent || (FlowOutputContent = {}));
|
|
738
745
|
var FlowTraceNodeInputContent;
|
|
739
746
|
((FlowTraceNodeInputContent3) => {
|
|
740
747
|
FlowTraceNodeInputContent3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
741
|
-
if (value.document !== void 0)
|
|
742
|
-
return visitor.document(value.document);
|
|
748
|
+
if (value.document !== void 0) return visitor.document(value.document);
|
|
743
749
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
744
750
|
}, "visit");
|
|
745
751
|
})(FlowTraceNodeInputContent || (FlowTraceNodeInputContent = {}));
|
|
746
752
|
var FlowTraceNodeOutputContent;
|
|
747
753
|
((FlowTraceNodeOutputContent3) => {
|
|
748
754
|
FlowTraceNodeOutputContent3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
749
|
-
if (value.document !== void 0)
|
|
750
|
-
return visitor.document(value.document);
|
|
755
|
+
if (value.document !== void 0) return visitor.document(value.document);
|
|
751
756
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
752
757
|
}, "visit");
|
|
753
758
|
})(FlowTraceNodeOutputContent || (FlowTraceNodeOutputContent = {}));
|
|
754
759
|
var FlowTrace;
|
|
755
760
|
((FlowTrace3) => {
|
|
756
761
|
FlowTrace3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
757
|
-
if (value.nodeInputTrace !== void 0)
|
|
758
|
-
|
|
759
|
-
if (value.nodeOutputTrace !== void 0)
|
|
760
|
-
return visitor.nodeOutputTrace(value.nodeOutputTrace);
|
|
762
|
+
if (value.nodeInputTrace !== void 0) return visitor.nodeInputTrace(value.nodeInputTrace);
|
|
763
|
+
if (value.nodeOutputTrace !== void 0) return visitor.nodeOutputTrace(value.nodeOutputTrace);
|
|
761
764
|
if (value.conditionNodeResultTrace !== void 0)
|
|
762
765
|
return visitor.conditionNodeResultTrace(value.conditionNodeResultTrace);
|
|
763
766
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -838,30 +841,22 @@ var ValidationException = class _ValidationException extends BedrockAgentRuntime
|
|
|
838
841
|
var FlowResponseStream;
|
|
839
842
|
((FlowResponseStream3) => {
|
|
840
843
|
FlowResponseStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
841
|
-
if (value.flowOutputEvent !== void 0)
|
|
842
|
-
|
|
843
|
-
if (value.
|
|
844
|
-
return visitor.flowCompletionEvent(value.flowCompletionEvent);
|
|
845
|
-
if (value.flowTraceEvent !== void 0)
|
|
846
|
-
return visitor.flowTraceEvent(value.flowTraceEvent);
|
|
844
|
+
if (value.flowOutputEvent !== void 0) return visitor.flowOutputEvent(value.flowOutputEvent);
|
|
845
|
+
if (value.flowCompletionEvent !== void 0) return visitor.flowCompletionEvent(value.flowCompletionEvent);
|
|
846
|
+
if (value.flowTraceEvent !== void 0) return visitor.flowTraceEvent(value.flowTraceEvent);
|
|
847
847
|
if (value.internalServerException !== void 0)
|
|
848
848
|
return visitor.internalServerException(value.internalServerException);
|
|
849
|
-
if (value.validationException !== void 0)
|
|
850
|
-
return visitor.validationException(value.validationException);
|
|
849
|
+
if (value.validationException !== void 0) return visitor.validationException(value.validationException);
|
|
851
850
|
if (value.resourceNotFoundException !== void 0)
|
|
852
851
|
return visitor.resourceNotFoundException(value.resourceNotFoundException);
|
|
853
852
|
if (value.serviceQuotaExceededException !== void 0)
|
|
854
853
|
return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
|
|
855
|
-
if (value.throttlingException !== void 0)
|
|
856
|
-
|
|
857
|
-
if (value.
|
|
858
|
-
return visitor.accessDeniedException(value.accessDeniedException);
|
|
859
|
-
if (value.conflictException !== void 0)
|
|
860
|
-
return visitor.conflictException(value.conflictException);
|
|
854
|
+
if (value.throttlingException !== void 0) return visitor.throttlingException(value.throttlingException);
|
|
855
|
+
if (value.accessDeniedException !== void 0) return visitor.accessDeniedException(value.accessDeniedException);
|
|
856
|
+
if (value.conflictException !== void 0) return visitor.conflictException(value.conflictException);
|
|
861
857
|
if (value.dependencyFailedException !== void 0)
|
|
862
858
|
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
863
|
-
if (value.badGatewayException !== void 0)
|
|
864
|
-
return visitor.badGatewayException(value.badGatewayException);
|
|
859
|
+
if (value.badGatewayException !== void 0) return visitor.badGatewayException(value.badGatewayException);
|
|
865
860
|
if (value.flowMultiTurnInputRequestEvent !== void 0)
|
|
866
861
|
return visitor.flowMultiTurnInputRequestEvent(value.flowMultiTurnInputRequestEvent);
|
|
867
862
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -882,8 +877,7 @@ var GeneratedQueryType = {
|
|
|
882
877
|
var ContentBlock;
|
|
883
878
|
((ContentBlock3) => {
|
|
884
879
|
ContentBlock3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
885
|
-
if (value.text !== void 0)
|
|
886
|
-
return visitor.text(value.text);
|
|
880
|
+
if (value.text !== void 0) return visitor.text(value.text);
|
|
887
881
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
888
882
|
}, "visit");
|
|
889
883
|
})(ContentBlock || (ContentBlock = {}));
|
|
@@ -916,10 +910,8 @@ var RerankingMetadataSelectionMode = {
|
|
|
916
910
|
var RerankingMetadataSelectiveModeConfiguration;
|
|
917
911
|
((RerankingMetadataSelectiveModeConfiguration3) => {
|
|
918
912
|
RerankingMetadataSelectiveModeConfiguration3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
919
|
-
if (value.fieldsToInclude !== void 0)
|
|
920
|
-
|
|
921
|
-
if (value.fieldsToExclude !== void 0)
|
|
922
|
-
return visitor.fieldsToExclude(value.fieldsToExclude);
|
|
913
|
+
if (value.fieldsToInclude !== void 0) return visitor.fieldsToInclude(value.fieldsToInclude);
|
|
914
|
+
if (value.fieldsToExclude !== void 0) return visitor.fieldsToExclude(value.fieldsToExclude);
|
|
923
915
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
924
916
|
}, "visit");
|
|
925
917
|
})(RerankingMetadataSelectiveModeConfiguration || (RerankingMetadataSelectiveModeConfiguration = {}));
|
|
@@ -970,8 +962,7 @@ var ModelNotReadyException = class _ModelNotReadyException extends BedrockAgentR
|
|
|
970
962
|
var Caller;
|
|
971
963
|
((Caller2) => {
|
|
972
964
|
Caller2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
973
|
-
if (value.agentAliasArn !== void 0)
|
|
974
|
-
return visitor.agentAliasArn(value.agentAliasArn);
|
|
965
|
+
if (value.agentAliasArn !== void 0) return visitor.agentAliasArn(value.agentAliasArn);
|
|
975
966
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
976
967
|
}, "visit");
|
|
977
968
|
})(Caller || (Caller = {}));
|
|
@@ -1066,10 +1057,8 @@ var PromptType = {
|
|
|
1066
1057
|
var ReasoningContentBlock;
|
|
1067
1058
|
((ReasoningContentBlock3) => {
|
|
1068
1059
|
ReasoningContentBlock3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1069
|
-
if (value.reasoningText !== void 0)
|
|
1070
|
-
|
|
1071
|
-
if (value.redactedContent !== void 0)
|
|
1072
|
-
return visitor.redactedContent(value.redactedContent);
|
|
1060
|
+
if (value.reasoningText !== void 0) return visitor.reasoningText(value.reasoningText);
|
|
1061
|
+
if (value.redactedContent !== void 0) return visitor.redactedContent(value.redactedContent);
|
|
1073
1062
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1074
1063
|
}, "visit");
|
|
1075
1064
|
})(ReasoningContentBlock || (ReasoningContentBlock = {}));
|
|
@@ -1089,68 +1078,49 @@ var Type = {
|
|
|
1089
1078
|
var OrchestrationTrace;
|
|
1090
1079
|
((OrchestrationTrace3) => {
|
|
1091
1080
|
OrchestrationTrace3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1092
|
-
if (value.rationale !== void 0)
|
|
1093
|
-
|
|
1094
|
-
if (value.
|
|
1095
|
-
|
|
1096
|
-
if (value.
|
|
1097
|
-
return visitor.observation(value.observation);
|
|
1098
|
-
if (value.modelInvocationInput !== void 0)
|
|
1099
|
-
return visitor.modelInvocationInput(value.modelInvocationInput);
|
|
1100
|
-
if (value.modelInvocationOutput !== void 0)
|
|
1101
|
-
return visitor.modelInvocationOutput(value.modelInvocationOutput);
|
|
1081
|
+
if (value.rationale !== void 0) return visitor.rationale(value.rationale);
|
|
1082
|
+
if (value.invocationInput !== void 0) return visitor.invocationInput(value.invocationInput);
|
|
1083
|
+
if (value.observation !== void 0) return visitor.observation(value.observation);
|
|
1084
|
+
if (value.modelInvocationInput !== void 0) return visitor.modelInvocationInput(value.modelInvocationInput);
|
|
1085
|
+
if (value.modelInvocationOutput !== void 0) return visitor.modelInvocationOutput(value.modelInvocationOutput);
|
|
1102
1086
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1103
1087
|
}, "visit");
|
|
1104
1088
|
})(OrchestrationTrace || (OrchestrationTrace = {}));
|
|
1105
1089
|
var PostProcessingTrace;
|
|
1106
1090
|
((PostProcessingTrace3) => {
|
|
1107
1091
|
PostProcessingTrace3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1108
|
-
if (value.modelInvocationInput !== void 0)
|
|
1109
|
-
|
|
1110
|
-
if (value.modelInvocationOutput !== void 0)
|
|
1111
|
-
return visitor.modelInvocationOutput(value.modelInvocationOutput);
|
|
1092
|
+
if (value.modelInvocationInput !== void 0) return visitor.modelInvocationInput(value.modelInvocationInput);
|
|
1093
|
+
if (value.modelInvocationOutput !== void 0) return visitor.modelInvocationOutput(value.modelInvocationOutput);
|
|
1112
1094
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1113
1095
|
}, "visit");
|
|
1114
1096
|
})(PostProcessingTrace || (PostProcessingTrace = {}));
|
|
1115
1097
|
var PreProcessingTrace;
|
|
1116
1098
|
((PreProcessingTrace3) => {
|
|
1117
1099
|
PreProcessingTrace3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1118
|
-
if (value.modelInvocationInput !== void 0)
|
|
1119
|
-
|
|
1120
|
-
if (value.modelInvocationOutput !== void 0)
|
|
1121
|
-
return visitor.modelInvocationOutput(value.modelInvocationOutput);
|
|
1100
|
+
if (value.modelInvocationInput !== void 0) return visitor.modelInvocationInput(value.modelInvocationInput);
|
|
1101
|
+
if (value.modelInvocationOutput !== void 0) return visitor.modelInvocationOutput(value.modelInvocationOutput);
|
|
1122
1102
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1123
1103
|
}, "visit");
|
|
1124
1104
|
})(PreProcessingTrace || (PreProcessingTrace = {}));
|
|
1125
1105
|
var RoutingClassifierTrace;
|
|
1126
1106
|
((RoutingClassifierTrace3) => {
|
|
1127
1107
|
RoutingClassifierTrace3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1128
|
-
if (value.invocationInput !== void 0)
|
|
1129
|
-
|
|
1130
|
-
if (value.
|
|
1131
|
-
|
|
1132
|
-
if (value.modelInvocationInput !== void 0)
|
|
1133
|
-
return visitor.modelInvocationInput(value.modelInvocationInput);
|
|
1134
|
-
if (value.modelInvocationOutput !== void 0)
|
|
1135
|
-
return visitor.modelInvocationOutput(value.modelInvocationOutput);
|
|
1108
|
+
if (value.invocationInput !== void 0) return visitor.invocationInput(value.invocationInput);
|
|
1109
|
+
if (value.observation !== void 0) return visitor.observation(value.observation);
|
|
1110
|
+
if (value.modelInvocationInput !== void 0) return visitor.modelInvocationInput(value.modelInvocationInput);
|
|
1111
|
+
if (value.modelInvocationOutput !== void 0) return visitor.modelInvocationOutput(value.modelInvocationOutput);
|
|
1136
1112
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1137
1113
|
}, "visit");
|
|
1138
1114
|
})(RoutingClassifierTrace || (RoutingClassifierTrace = {}));
|
|
1139
1115
|
var Trace;
|
|
1140
1116
|
((Trace3) => {
|
|
1141
1117
|
Trace3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1142
|
-
if (value.guardrailTrace !== void 0)
|
|
1143
|
-
|
|
1144
|
-
if (value.
|
|
1145
|
-
|
|
1146
|
-
if (value.
|
|
1147
|
-
|
|
1148
|
-
if (value.postProcessingTrace !== void 0)
|
|
1149
|
-
return visitor.postProcessingTrace(value.postProcessingTrace);
|
|
1150
|
-
if (value.routingClassifierTrace !== void 0)
|
|
1151
|
-
return visitor.routingClassifierTrace(value.routingClassifierTrace);
|
|
1152
|
-
if (value.failureTrace !== void 0)
|
|
1153
|
-
return visitor.failureTrace(value.failureTrace);
|
|
1118
|
+
if (value.guardrailTrace !== void 0) return visitor.guardrailTrace(value.guardrailTrace);
|
|
1119
|
+
if (value.preProcessingTrace !== void 0) return visitor.preProcessingTrace(value.preProcessingTrace);
|
|
1120
|
+
if (value.orchestrationTrace !== void 0) return visitor.orchestrationTrace(value.orchestrationTrace);
|
|
1121
|
+
if (value.postProcessingTrace !== void 0) return visitor.postProcessingTrace(value.postProcessingTrace);
|
|
1122
|
+
if (value.routingClassifierTrace !== void 0) return visitor.routingClassifierTrace(value.routingClassifierTrace);
|
|
1123
|
+
if (value.failureTrace !== void 0) return visitor.failureTrace(value.failureTrace);
|
|
1154
1124
|
if (value.customOrchestrationTrace !== void 0)
|
|
1155
1125
|
return visitor.customOrchestrationTrace(value.customOrchestrationTrace);
|
|
1156
1126
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
@@ -1159,34 +1129,24 @@ var Trace;
|
|
|
1159
1129
|
var ResponseStream;
|
|
1160
1130
|
((ResponseStream3) => {
|
|
1161
1131
|
ResponseStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1162
|
-
if (value.chunk !== void 0)
|
|
1163
|
-
|
|
1164
|
-
if (value.
|
|
1165
|
-
return visitor.trace(value.trace);
|
|
1166
|
-
if (value.returnControl !== void 0)
|
|
1167
|
-
return visitor.returnControl(value.returnControl);
|
|
1132
|
+
if (value.chunk !== void 0) return visitor.chunk(value.chunk);
|
|
1133
|
+
if (value.trace !== void 0) return visitor.trace(value.trace);
|
|
1134
|
+
if (value.returnControl !== void 0) return visitor.returnControl(value.returnControl);
|
|
1168
1135
|
if (value.internalServerException !== void 0)
|
|
1169
1136
|
return visitor.internalServerException(value.internalServerException);
|
|
1170
|
-
if (value.validationException !== void 0)
|
|
1171
|
-
return visitor.validationException(value.validationException);
|
|
1137
|
+
if (value.validationException !== void 0) return visitor.validationException(value.validationException);
|
|
1172
1138
|
if (value.resourceNotFoundException !== void 0)
|
|
1173
1139
|
return visitor.resourceNotFoundException(value.resourceNotFoundException);
|
|
1174
1140
|
if (value.serviceQuotaExceededException !== void 0)
|
|
1175
1141
|
return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
|
|
1176
|
-
if (value.throttlingException !== void 0)
|
|
1177
|
-
|
|
1178
|
-
if (value.
|
|
1179
|
-
return visitor.accessDeniedException(value.accessDeniedException);
|
|
1180
|
-
if (value.conflictException !== void 0)
|
|
1181
|
-
return visitor.conflictException(value.conflictException);
|
|
1142
|
+
if (value.throttlingException !== void 0) return visitor.throttlingException(value.throttlingException);
|
|
1143
|
+
if (value.accessDeniedException !== void 0) return visitor.accessDeniedException(value.accessDeniedException);
|
|
1144
|
+
if (value.conflictException !== void 0) return visitor.conflictException(value.conflictException);
|
|
1182
1145
|
if (value.dependencyFailedException !== void 0)
|
|
1183
1146
|
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
1184
|
-
if (value.badGatewayException !== void 0)
|
|
1185
|
-
|
|
1186
|
-
if (value.
|
|
1187
|
-
return visitor.modelNotReadyException(value.modelNotReadyException);
|
|
1188
|
-
if (value.files !== void 0)
|
|
1189
|
-
return visitor.files(value.files);
|
|
1147
|
+
if (value.badGatewayException !== void 0) return visitor.badGatewayException(value.badGatewayException);
|
|
1148
|
+
if (value.modelNotReadyException !== void 0) return visitor.modelNotReadyException(value.modelNotReadyException);
|
|
1149
|
+
if (value.files !== void 0) return visitor.files(value.files);
|
|
1190
1150
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1191
1151
|
}, "visit");
|
|
1192
1152
|
})(ResponseStream || (ResponseStream = {}));
|
|
@@ -1201,32 +1161,23 @@ var PromptState = {
|
|
|
1201
1161
|
var InlineAgentResponseStream;
|
|
1202
1162
|
((InlineAgentResponseStream3) => {
|
|
1203
1163
|
InlineAgentResponseStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1204
|
-
if (value.chunk !== void 0)
|
|
1205
|
-
|
|
1206
|
-
if (value.
|
|
1207
|
-
return visitor.trace(value.trace);
|
|
1208
|
-
if (value.returnControl !== void 0)
|
|
1209
|
-
return visitor.returnControl(value.returnControl);
|
|
1164
|
+
if (value.chunk !== void 0) return visitor.chunk(value.chunk);
|
|
1165
|
+
if (value.trace !== void 0) return visitor.trace(value.trace);
|
|
1166
|
+
if (value.returnControl !== void 0) return visitor.returnControl(value.returnControl);
|
|
1210
1167
|
if (value.internalServerException !== void 0)
|
|
1211
1168
|
return visitor.internalServerException(value.internalServerException);
|
|
1212
|
-
if (value.validationException !== void 0)
|
|
1213
|
-
return visitor.validationException(value.validationException);
|
|
1169
|
+
if (value.validationException !== void 0) return visitor.validationException(value.validationException);
|
|
1214
1170
|
if (value.resourceNotFoundException !== void 0)
|
|
1215
1171
|
return visitor.resourceNotFoundException(value.resourceNotFoundException);
|
|
1216
1172
|
if (value.serviceQuotaExceededException !== void 0)
|
|
1217
1173
|
return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
|
|
1218
|
-
if (value.throttlingException !== void 0)
|
|
1219
|
-
|
|
1220
|
-
if (value.
|
|
1221
|
-
return visitor.accessDeniedException(value.accessDeniedException);
|
|
1222
|
-
if (value.conflictException !== void 0)
|
|
1223
|
-
return visitor.conflictException(value.conflictException);
|
|
1174
|
+
if (value.throttlingException !== void 0) return visitor.throttlingException(value.throttlingException);
|
|
1175
|
+
if (value.accessDeniedException !== void 0) return visitor.accessDeniedException(value.accessDeniedException);
|
|
1176
|
+
if (value.conflictException !== void 0) return visitor.conflictException(value.conflictException);
|
|
1224
1177
|
if (value.dependencyFailedException !== void 0)
|
|
1225
1178
|
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
1226
|
-
if (value.badGatewayException !== void 0)
|
|
1227
|
-
|
|
1228
|
-
if (value.files !== void 0)
|
|
1229
|
-
return visitor.files(value.files);
|
|
1179
|
+
if (value.badGatewayException !== void 0) return visitor.badGatewayException(value.badGatewayException);
|
|
1180
|
+
if (value.files !== void 0) return visitor.files(value.files);
|
|
1230
1181
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1231
1182
|
}, "visit");
|
|
1232
1183
|
})(InlineAgentResponseStream || (InlineAgentResponseStream = {}));
|
|
@@ -1236,46 +1187,37 @@ var MemoryType = {
|
|
|
1236
1187
|
var Memory;
|
|
1237
1188
|
((Memory3) => {
|
|
1238
1189
|
Memory3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1239
|
-
if (value.sessionSummary !== void 0)
|
|
1240
|
-
return visitor.sessionSummary(value.sessionSummary);
|
|
1190
|
+
if (value.sessionSummary !== void 0) return visitor.sessionSummary(value.sessionSummary);
|
|
1241
1191
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1242
1192
|
}, "visit");
|
|
1243
1193
|
})(Memory || (Memory = {}));
|
|
1244
1194
|
var InputPrompt;
|
|
1245
1195
|
((InputPrompt3) => {
|
|
1246
1196
|
InputPrompt3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1247
|
-
if (value.textPrompt !== void 0)
|
|
1248
|
-
return visitor.textPrompt(value.textPrompt);
|
|
1197
|
+
if (value.textPrompt !== void 0) return visitor.textPrompt(value.textPrompt);
|
|
1249
1198
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1250
1199
|
}, "visit");
|
|
1251
1200
|
})(InputPrompt || (InputPrompt = {}));
|
|
1252
1201
|
var OptimizedPrompt;
|
|
1253
1202
|
((OptimizedPrompt2) => {
|
|
1254
1203
|
OptimizedPrompt2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1255
|
-
if (value.textPrompt !== void 0)
|
|
1256
|
-
return visitor.textPrompt(value.textPrompt);
|
|
1204
|
+
if (value.textPrompt !== void 0) return visitor.textPrompt(value.textPrompt);
|
|
1257
1205
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1258
1206
|
}, "visit");
|
|
1259
1207
|
})(OptimizedPrompt || (OptimizedPrompt = {}));
|
|
1260
1208
|
var OptimizedPromptStream;
|
|
1261
1209
|
((OptimizedPromptStream3) => {
|
|
1262
1210
|
OptimizedPromptStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1263
|
-
if (value.optimizedPromptEvent !== void 0)
|
|
1264
|
-
|
|
1265
|
-
if (value.analyzePromptEvent !== void 0)
|
|
1266
|
-
return visitor.analyzePromptEvent(value.analyzePromptEvent);
|
|
1211
|
+
if (value.optimizedPromptEvent !== void 0) return visitor.optimizedPromptEvent(value.optimizedPromptEvent);
|
|
1212
|
+
if (value.analyzePromptEvent !== void 0) return visitor.analyzePromptEvent(value.analyzePromptEvent);
|
|
1267
1213
|
if (value.internalServerException !== void 0)
|
|
1268
1214
|
return visitor.internalServerException(value.internalServerException);
|
|
1269
|
-
if (value.throttlingException !== void 0)
|
|
1270
|
-
|
|
1271
|
-
if (value.validationException !== void 0)
|
|
1272
|
-
return visitor.validationException(value.validationException);
|
|
1215
|
+
if (value.throttlingException !== void 0) return visitor.throttlingException(value.throttlingException);
|
|
1216
|
+
if (value.validationException !== void 0) return visitor.validationException(value.validationException);
|
|
1273
1217
|
if (value.dependencyFailedException !== void 0)
|
|
1274
1218
|
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
1275
|
-
if (value.accessDeniedException !== void 0)
|
|
1276
|
-
|
|
1277
|
-
if (value.badGatewayException !== void 0)
|
|
1278
|
-
return visitor.badGatewayException(value.badGatewayException);
|
|
1219
|
+
if (value.accessDeniedException !== void 0) return visitor.accessDeniedException(value.accessDeniedException);
|
|
1220
|
+
if (value.badGatewayException !== void 0) return visitor.badGatewayException(value.badGatewayException);
|
|
1279
1221
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1280
1222
|
}, "visit");
|
|
1281
1223
|
})(OptimizedPromptStream || (OptimizedPromptStream = {}));
|
|
@@ -1310,30 +1252,22 @@ var GuadrailAction = {
|
|
|
1310
1252
|
var RetrieveAndGenerateStreamResponseOutput;
|
|
1311
1253
|
((RetrieveAndGenerateStreamResponseOutput3) => {
|
|
1312
1254
|
RetrieveAndGenerateStreamResponseOutput3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1313
|
-
if (value.output !== void 0)
|
|
1314
|
-
|
|
1315
|
-
if (value.
|
|
1316
|
-
return visitor.citation(value.citation);
|
|
1317
|
-
if (value.guardrail !== void 0)
|
|
1318
|
-
return visitor.guardrail(value.guardrail);
|
|
1255
|
+
if (value.output !== void 0) return visitor.output(value.output);
|
|
1256
|
+
if (value.citation !== void 0) return visitor.citation(value.citation);
|
|
1257
|
+
if (value.guardrail !== void 0) return visitor.guardrail(value.guardrail);
|
|
1319
1258
|
if (value.internalServerException !== void 0)
|
|
1320
1259
|
return visitor.internalServerException(value.internalServerException);
|
|
1321
|
-
if (value.validationException !== void 0)
|
|
1322
|
-
return visitor.validationException(value.validationException);
|
|
1260
|
+
if (value.validationException !== void 0) return visitor.validationException(value.validationException);
|
|
1323
1261
|
if (value.resourceNotFoundException !== void 0)
|
|
1324
1262
|
return visitor.resourceNotFoundException(value.resourceNotFoundException);
|
|
1325
1263
|
if (value.serviceQuotaExceededException !== void 0)
|
|
1326
1264
|
return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
|
|
1327
|
-
if (value.throttlingException !== void 0)
|
|
1328
|
-
|
|
1329
|
-
if (value.
|
|
1330
|
-
return visitor.accessDeniedException(value.accessDeniedException);
|
|
1331
|
-
if (value.conflictException !== void 0)
|
|
1332
|
-
return visitor.conflictException(value.conflictException);
|
|
1265
|
+
if (value.throttlingException !== void 0) return visitor.throttlingException(value.throttlingException);
|
|
1266
|
+
if (value.accessDeniedException !== void 0) return visitor.accessDeniedException(value.accessDeniedException);
|
|
1267
|
+
if (value.conflictException !== void 0) return visitor.conflictException(value.conflictException);
|
|
1333
1268
|
if (value.dependencyFailedException !== void 0)
|
|
1334
1269
|
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
1335
|
-
if (value.badGatewayException !== void 0)
|
|
1336
|
-
return visitor.badGatewayException(value.badGatewayException);
|
|
1270
|
+
if (value.badGatewayException !== void 0) return visitor.badGatewayException(value.badGatewayException);
|
|
1337
1271
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1338
1272
|
}, "visit");
|
|
1339
1273
|
})(RetrieveAndGenerateStreamResponseOutput || (RetrieveAndGenerateStreamResponseOutput = {}));
|
|
@@ -1351,28 +1285,23 @@ var ImageFormat = {
|
|
|
1351
1285
|
var ImageSource;
|
|
1352
1286
|
((ImageSource2) => {
|
|
1353
1287
|
ImageSource2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1354
|
-
if (value.bytes !== void 0)
|
|
1355
|
-
|
|
1356
|
-
if (value.s3Location !== void 0)
|
|
1357
|
-
return visitor.s3Location(value.s3Location);
|
|
1288
|
+
if (value.bytes !== void 0) return visitor.bytes(value.bytes);
|
|
1289
|
+
if (value.s3Location !== void 0) return visitor.s3Location(value.s3Location);
|
|
1358
1290
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1359
1291
|
}, "visit");
|
|
1360
1292
|
})(ImageSource || (ImageSource = {}));
|
|
1361
1293
|
var BedrockSessionContentBlock;
|
|
1362
1294
|
((BedrockSessionContentBlock2) => {
|
|
1363
1295
|
BedrockSessionContentBlock2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1364
|
-
if (value.text !== void 0)
|
|
1365
|
-
|
|
1366
|
-
if (value.image !== void 0)
|
|
1367
|
-
return visitor.image(value.image);
|
|
1296
|
+
if (value.text !== void 0) return visitor.text(value.text);
|
|
1297
|
+
if (value.image !== void 0) return visitor.image(value.image);
|
|
1368
1298
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1369
1299
|
}, "visit");
|
|
1370
1300
|
})(BedrockSessionContentBlock || (BedrockSessionContentBlock = {}));
|
|
1371
1301
|
var InvocationStepPayload;
|
|
1372
1302
|
((InvocationStepPayload2) => {
|
|
1373
1303
|
InvocationStepPayload2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1374
|
-
if (value.contentBlocks !== void 0)
|
|
1375
|
-
return visitor.contentBlocks(value.contentBlocks);
|
|
1304
|
+
if (value.contentBlocks !== void 0) return visitor.contentBlocks(value.contentBlocks);
|
|
1376
1305
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1377
1306
|
}, "visit");
|
|
1378
1307
|
})(InvocationStepPayload || (InvocationStepPayload = {}));
|
|
@@ -1388,12 +1317,9 @@ var ActionGroupInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj)
|
|
|
1388
1317
|
...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
|
|
1389
1318
|
}), "ActionGroupInvocationOutputFilterSensitiveLog");
|
|
1390
1319
|
var APISchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1391
|
-
if (obj.s3 !== void 0)
|
|
1392
|
-
|
|
1393
|
-
if (obj
|
|
1394
|
-
return { payload: import_smithy_client.SENSITIVE_STRING };
|
|
1395
|
-
if (obj.$unknown !== void 0)
|
|
1396
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1320
|
+
if (obj.s3 !== void 0) return { s3: obj.s3 };
|
|
1321
|
+
if (obj.payload !== void 0) return { payload: import_smithy_client.SENSITIVE_STRING };
|
|
1322
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1397
1323
|
}, "APISchemaFilterSensitiveLog");
|
|
1398
1324
|
var FunctionDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1399
1325
|
...obj,
|
|
@@ -1402,8 +1328,7 @@ var FunctionDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1402
1328
|
var FunctionSchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1403
1329
|
if (obj.functions !== void 0)
|
|
1404
1330
|
return { functions: obj.functions.map((item) => FunctionDefinitionFilterSensitiveLog(item)) };
|
|
1405
|
-
if (obj.$unknown !== void 0)
|
|
1406
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1331
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1407
1332
|
}, "FunctionSchemaFilterSensitiveLog");
|
|
1408
1333
|
var AgentActionGroupFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1409
1334
|
...obj,
|
|
@@ -1415,15 +1340,18 @@ var AgentActionGroupFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1415
1340
|
}), "AgentActionGroupFilterSensitiveLog");
|
|
1416
1341
|
var ApiResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1417
1342
|
...obj,
|
|
1418
|
-
...obj.apiPath && { apiPath: import_smithy_client.SENSITIVE_STRING }
|
|
1343
|
+
...obj.apiPath && { apiPath: import_smithy_client.SENSITIVE_STRING },
|
|
1344
|
+
...obj.responseBody && {
|
|
1345
|
+
responseBody: Object.entries(obj.responseBody).reduce(
|
|
1346
|
+
(acc, [key, value]) => (acc[key] = value, acc),
|
|
1347
|
+
{}
|
|
1348
|
+
)
|
|
1349
|
+
}
|
|
1419
1350
|
}), "ApiResultFilterSensitiveLog");
|
|
1420
1351
|
var InvocationResultMemberFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1421
|
-
if (obj.apiResult !== void 0)
|
|
1422
|
-
|
|
1423
|
-
if (obj
|
|
1424
|
-
return { functionResult: obj.functionResult };
|
|
1425
|
-
if (obj.$unknown !== void 0)
|
|
1426
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1352
|
+
if (obj.apiResult !== void 0) return { apiResult: ApiResultFilterSensitiveLog(obj.apiResult) };
|
|
1353
|
+
if (obj.functionResult !== void 0) return { functionResult: obj.functionResult };
|
|
1354
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1427
1355
|
}, "InvocationResultMemberFilterSensitiveLog");
|
|
1428
1356
|
var ReturnControlResultsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1429
1357
|
...obj,
|
|
@@ -1458,8 +1386,7 @@ var InvocationInputMemberFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
|
1458
1386
|
return { apiInvocationInput: ApiInvocationInputFilterSensitiveLog(obj.apiInvocationInput) };
|
|
1459
1387
|
if (obj.functionInvocationInput !== void 0)
|
|
1460
1388
|
return { functionInvocationInput: FunctionInvocationInputFilterSensitiveLog(obj.functionInvocationInput) };
|
|
1461
|
-
if (obj.$unknown !== void 0)
|
|
1462
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1389
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1463
1390
|
}, "InvocationInputMemberFilterSensitiveLog");
|
|
1464
1391
|
var ReturnControlPayloadFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1465
1392
|
...obj,
|
|
@@ -1477,10 +1404,8 @@ var AgentCollaboratorInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name
|
|
|
1477
1404
|
...obj.output && { output: AgentCollaboratorOutputPayloadFilterSensitiveLog(obj.output) }
|
|
1478
1405
|
}), "AgentCollaboratorInvocationOutputFilterSensitiveLog");
|
|
1479
1406
|
var FlowInputContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1480
|
-
if (obj.document !== void 0)
|
|
1481
|
-
|
|
1482
|
-
if (obj.$unknown !== void 0)
|
|
1483
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1407
|
+
if (obj.document !== void 0) return { document: obj.document };
|
|
1408
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1484
1409
|
}, "FlowInputContentFilterSensitiveLog");
|
|
1485
1410
|
var FlowInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1486
1411
|
...obj,
|
|
@@ -1509,10 +1434,8 @@ var FlowTraceConditionNodeResultEventFilterSensitiveLog = /* @__PURE__ */ __name
|
|
|
1509
1434
|
...obj.satisfiedConditions && { satisfiedConditions: import_smithy_client.SENSITIVE_STRING }
|
|
1510
1435
|
}), "FlowTraceConditionNodeResultEventFilterSensitiveLog");
|
|
1511
1436
|
var FlowTraceNodeInputContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1512
|
-
if (obj.document !== void 0)
|
|
1513
|
-
|
|
1514
|
-
if (obj.$unknown !== void 0)
|
|
1515
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1437
|
+
if (obj.document !== void 0) return { document: obj.document };
|
|
1438
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1516
1439
|
}, "FlowTraceNodeInputContentFilterSensitiveLog");
|
|
1517
1440
|
var FlowTraceNodeInputFieldFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1518
1441
|
...obj,
|
|
@@ -1531,48 +1454,31 @@ var FlowTraceNodeOutputEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
|
|
|
1531
1454
|
...obj.fields && { fields: import_smithy_client.SENSITIVE_STRING }
|
|
1532
1455
|
}), "FlowTraceNodeOutputEventFilterSensitiveLog");
|
|
1533
1456
|
var FlowTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1534
|
-
if (obj.nodeInputTrace !== void 0)
|
|
1535
|
-
|
|
1536
|
-
if (obj.
|
|
1537
|
-
|
|
1538
|
-
if (obj.conditionNodeResultTrace !== void 0)
|
|
1539
|
-
return { conditionNodeResultTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1540
|
-
if (obj.$unknown !== void 0)
|
|
1541
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1457
|
+
if (obj.nodeInputTrace !== void 0) return { nodeInputTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1458
|
+
if (obj.nodeOutputTrace !== void 0) return { nodeOutputTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1459
|
+
if (obj.conditionNodeResultTrace !== void 0) return { conditionNodeResultTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1460
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1542
1461
|
}, "FlowTraceFilterSensitiveLog");
|
|
1543
1462
|
var FlowTraceEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1544
1463
|
...obj,
|
|
1545
1464
|
...obj.trace && { trace: import_smithy_client.SENSITIVE_STRING }
|
|
1546
1465
|
}), "FlowTraceEventFilterSensitiveLog");
|
|
1547
1466
|
var FlowResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1548
|
-
if (obj.flowOutputEvent !== void 0)
|
|
1549
|
-
|
|
1550
|
-
if (obj.
|
|
1551
|
-
|
|
1552
|
-
if (obj.
|
|
1553
|
-
|
|
1554
|
-
if (obj.internalServerException !== void 0)
|
|
1555
|
-
return { internalServerException: obj.internalServerException };
|
|
1556
|
-
if (obj.validationException !== void 0)
|
|
1557
|
-
return { validationException: obj.validationException };
|
|
1558
|
-
if (obj.resourceNotFoundException !== void 0)
|
|
1559
|
-
return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
1467
|
+
if (obj.flowOutputEvent !== void 0) return { flowOutputEvent: import_smithy_client.SENSITIVE_STRING };
|
|
1468
|
+
if (obj.flowCompletionEvent !== void 0) return { flowCompletionEvent: import_smithy_client.SENSITIVE_STRING };
|
|
1469
|
+
if (obj.flowTraceEvent !== void 0) return { flowTraceEvent: FlowTraceEventFilterSensitiveLog(obj.flowTraceEvent) };
|
|
1470
|
+
if (obj.internalServerException !== void 0) return { internalServerException: obj.internalServerException };
|
|
1471
|
+
if (obj.validationException !== void 0) return { validationException: obj.validationException };
|
|
1472
|
+
if (obj.resourceNotFoundException !== void 0) return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
1560
1473
|
if (obj.serviceQuotaExceededException !== void 0)
|
|
1561
1474
|
return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
|
|
1562
|
-
if (obj.throttlingException !== void 0)
|
|
1563
|
-
|
|
1564
|
-
if (obj.
|
|
1565
|
-
|
|
1566
|
-
if (obj.
|
|
1567
|
-
|
|
1568
|
-
if (obj
|
|
1569
|
-
return { dependencyFailedException: obj.dependencyFailedException };
|
|
1570
|
-
if (obj.badGatewayException !== void 0)
|
|
1571
|
-
return { badGatewayException: obj.badGatewayException };
|
|
1572
|
-
if (obj.flowMultiTurnInputRequestEvent !== void 0)
|
|
1573
|
-
return { flowMultiTurnInputRequestEvent: import_smithy_client.SENSITIVE_STRING };
|
|
1574
|
-
if (obj.$unknown !== void 0)
|
|
1575
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1475
|
+
if (obj.throttlingException !== void 0) return { throttlingException: obj.throttlingException };
|
|
1476
|
+
if (obj.accessDeniedException !== void 0) return { accessDeniedException: obj.accessDeniedException };
|
|
1477
|
+
if (obj.conflictException !== void 0) return { conflictException: obj.conflictException };
|
|
1478
|
+
if (obj.dependencyFailedException !== void 0) return { dependencyFailedException: obj.dependencyFailedException };
|
|
1479
|
+
if (obj.badGatewayException !== void 0) return { badGatewayException: obj.badGatewayException };
|
|
1480
|
+
if (obj.flowMultiTurnInputRequestEvent !== void 0) return { flowMultiTurnInputRequestEvent: import_smithy_client.SENSITIVE_STRING };
|
|
1481
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1576
1482
|
}, "FlowResponseStreamFilterSensitiveLog");
|
|
1577
1483
|
var InvokeFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1578
1484
|
...obj,
|
|
@@ -1593,10 +1499,8 @@ var GenerateQueryResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1593
1499
|
...obj.queries && { queries: import_smithy_client.SENSITIVE_STRING }
|
|
1594
1500
|
}), "GenerateQueryResponseFilterSensitiveLog");
|
|
1595
1501
|
var ContentBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1596
|
-
if (obj.text !== void 0)
|
|
1597
|
-
|
|
1598
|
-
if (obj.$unknown !== void 0)
|
|
1599
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1502
|
+
if (obj.text !== void 0) return { text: obj.text };
|
|
1503
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1600
1504
|
}, "ContentBlockFilterSensitiveLog");
|
|
1601
1505
|
var MessageFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1602
1506
|
...obj,
|
|
@@ -1626,12 +1530,9 @@ var ImplicitFilterConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj)
|
|
|
1626
1530
|
...obj.metadataAttributes && { metadataAttributes: import_smithy_client.SENSITIVE_STRING }
|
|
1627
1531
|
}), "ImplicitFilterConfigurationFilterSensitiveLog");
|
|
1628
1532
|
var RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1629
|
-
if (obj.fieldsToInclude !== void 0)
|
|
1630
|
-
|
|
1631
|
-
if (obj
|
|
1632
|
-
return { fieldsToExclude: import_smithy_client.SENSITIVE_STRING };
|
|
1633
|
-
if (obj.$unknown !== void 0)
|
|
1634
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1533
|
+
if (obj.fieldsToInclude !== void 0) return { fieldsToInclude: import_smithy_client.SENSITIVE_STRING };
|
|
1534
|
+
if (obj.fieldsToExclude !== void 0) return { fieldsToExclude: import_smithy_client.SENSITIVE_STRING };
|
|
1535
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1635
1536
|
}, "RerankingMetadataSelectiveModeConfigurationFilterSensitiveLog");
|
|
1636
1537
|
var MetadataConfigurationForRerankingFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1637
1538
|
...obj,
|
|
@@ -1800,12 +1701,9 @@ var ReasoningTextBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1800
1701
|
...obj
|
|
1801
1702
|
}), "ReasoningTextBlockFilterSensitiveLog");
|
|
1802
1703
|
var ReasoningContentBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1803
|
-
if (obj.reasoningText !== void 0)
|
|
1804
|
-
|
|
1805
|
-
if (obj
|
|
1806
|
-
return { redactedContent: obj.redactedContent };
|
|
1807
|
-
if (obj.$unknown !== void 0)
|
|
1808
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1704
|
+
if (obj.reasoningText !== void 0) return { reasoningText: import_smithy_client.SENSITIVE_STRING };
|
|
1705
|
+
if (obj.redactedContent !== void 0) return { redactedContent: obj.redactedContent };
|
|
1706
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1809
1707
|
}, "ReasoningContentBlockFilterSensitiveLog");
|
|
1810
1708
|
var OrchestrationModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1811
1709
|
...obj,
|
|
@@ -1848,18 +1746,12 @@ var RationaleFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1848
1746
|
...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
|
|
1849
1747
|
}), "RationaleFilterSensitiveLog");
|
|
1850
1748
|
var OrchestrationTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1851
|
-
if (obj.rationale !== void 0)
|
|
1852
|
-
|
|
1853
|
-
if (obj.
|
|
1854
|
-
|
|
1855
|
-
if (obj.
|
|
1856
|
-
|
|
1857
|
-
if (obj.modelInvocationInput !== void 0)
|
|
1858
|
-
return { modelInvocationInput: import_smithy_client.SENSITIVE_STRING };
|
|
1859
|
-
if (obj.modelInvocationOutput !== void 0)
|
|
1860
|
-
return { modelInvocationOutput: import_smithy_client.SENSITIVE_STRING };
|
|
1861
|
-
if (obj.$unknown !== void 0)
|
|
1862
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1749
|
+
if (obj.rationale !== void 0) return { rationale: import_smithy_client.SENSITIVE_STRING };
|
|
1750
|
+
if (obj.invocationInput !== void 0) return { invocationInput: import_smithy_client.SENSITIVE_STRING };
|
|
1751
|
+
if (obj.observation !== void 0) return { observation: import_smithy_client.SENSITIVE_STRING };
|
|
1752
|
+
if (obj.modelInvocationInput !== void 0) return { modelInvocationInput: import_smithy_client.SENSITIVE_STRING };
|
|
1753
|
+
if (obj.modelInvocationOutput !== void 0) return { modelInvocationOutput: import_smithy_client.SENSITIVE_STRING };
|
|
1754
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1863
1755
|
}, "OrchestrationTraceFilterSensitiveLog");
|
|
1864
1756
|
var PostProcessingParsedResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1865
1757
|
...obj,
|
|
@@ -1873,12 +1765,9 @@ var PostProcessingModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __na
|
|
|
1873
1765
|
...obj.reasoningContent && { reasoningContent: import_smithy_client.SENSITIVE_STRING }
|
|
1874
1766
|
}), "PostProcessingModelInvocationOutputFilterSensitiveLog");
|
|
1875
1767
|
var PostProcessingTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1876
|
-
if (obj.modelInvocationInput !== void 0)
|
|
1877
|
-
|
|
1878
|
-
if (obj
|
|
1879
|
-
return { modelInvocationOutput: import_smithy_client.SENSITIVE_STRING };
|
|
1880
|
-
if (obj.$unknown !== void 0)
|
|
1881
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1768
|
+
if (obj.modelInvocationInput !== void 0) return { modelInvocationInput: import_smithy_client.SENSITIVE_STRING };
|
|
1769
|
+
if (obj.modelInvocationOutput !== void 0) return { modelInvocationOutput: import_smithy_client.SENSITIVE_STRING };
|
|
1770
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1882
1771
|
}, "PostProcessingTraceFilterSensitiveLog");
|
|
1883
1772
|
var PreProcessingParsedResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1884
1773
|
...obj,
|
|
@@ -1892,12 +1781,9 @@ var PreProcessingModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __nam
|
|
|
1892
1781
|
...obj.reasoningContent && { reasoningContent: import_smithy_client.SENSITIVE_STRING }
|
|
1893
1782
|
}), "PreProcessingModelInvocationOutputFilterSensitiveLog");
|
|
1894
1783
|
var PreProcessingTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1895
|
-
if (obj.modelInvocationInput !== void 0)
|
|
1896
|
-
|
|
1897
|
-
if (obj
|
|
1898
|
-
return { modelInvocationOutput: import_smithy_client.SENSITIVE_STRING };
|
|
1899
|
-
if (obj.$unknown !== void 0)
|
|
1900
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1784
|
+
if (obj.modelInvocationInput !== void 0) return { modelInvocationInput: import_smithy_client.SENSITIVE_STRING };
|
|
1785
|
+
if (obj.modelInvocationOutput !== void 0) return { modelInvocationOutput: import_smithy_client.SENSITIVE_STRING };
|
|
1786
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1901
1787
|
}, "PreProcessingTraceFilterSensitiveLog");
|
|
1902
1788
|
var RoutingClassifierModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1903
1789
|
...obj,
|
|
@@ -1905,34 +1791,21 @@ var RoutingClassifierModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ _
|
|
|
1905
1791
|
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1906
1792
|
}), "RoutingClassifierModelInvocationOutputFilterSensitiveLog");
|
|
1907
1793
|
var RoutingClassifierTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1908
|
-
if (obj.invocationInput !== void 0)
|
|
1909
|
-
|
|
1910
|
-
if (obj.
|
|
1911
|
-
|
|
1912
|
-
if (obj
|
|
1913
|
-
return { modelInvocationInput: import_smithy_client.SENSITIVE_STRING };
|
|
1914
|
-
if (obj.modelInvocationOutput !== void 0)
|
|
1915
|
-
return { modelInvocationOutput: import_smithy_client.SENSITIVE_STRING };
|
|
1916
|
-
if (obj.$unknown !== void 0)
|
|
1917
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1794
|
+
if (obj.invocationInput !== void 0) return { invocationInput: import_smithy_client.SENSITIVE_STRING };
|
|
1795
|
+
if (obj.observation !== void 0) return { observation: import_smithy_client.SENSITIVE_STRING };
|
|
1796
|
+
if (obj.modelInvocationInput !== void 0) return { modelInvocationInput: import_smithy_client.SENSITIVE_STRING };
|
|
1797
|
+
if (obj.modelInvocationOutput !== void 0) return { modelInvocationOutput: import_smithy_client.SENSITIVE_STRING };
|
|
1798
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1918
1799
|
}, "RoutingClassifierTraceFilterSensitiveLog");
|
|
1919
1800
|
var TraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1920
|
-
if (obj.guardrailTrace !== void 0)
|
|
1921
|
-
|
|
1922
|
-
if (obj.
|
|
1923
|
-
|
|
1924
|
-
if (obj.
|
|
1925
|
-
|
|
1926
|
-
if (obj.
|
|
1927
|
-
|
|
1928
|
-
if (obj.routingClassifierTrace !== void 0)
|
|
1929
|
-
return { routingClassifierTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1930
|
-
if (obj.failureTrace !== void 0)
|
|
1931
|
-
return { failureTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1932
|
-
if (obj.customOrchestrationTrace !== void 0)
|
|
1933
|
-
return { customOrchestrationTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1934
|
-
if (obj.$unknown !== void 0)
|
|
1935
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1801
|
+
if (obj.guardrailTrace !== void 0) return { guardrailTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1802
|
+
if (obj.preProcessingTrace !== void 0) return { preProcessingTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1803
|
+
if (obj.orchestrationTrace !== void 0) return { orchestrationTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1804
|
+
if (obj.postProcessingTrace !== void 0) return { postProcessingTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1805
|
+
if (obj.routingClassifierTrace !== void 0) return { routingClassifierTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1806
|
+
if (obj.failureTrace !== void 0) return { failureTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1807
|
+
if (obj.customOrchestrationTrace !== void 0) return { customOrchestrationTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1808
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1936
1809
|
}, "TraceFilterSensitiveLog");
|
|
1937
1810
|
var TracePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1938
1811
|
...obj,
|
|
@@ -1941,36 +1814,22 @@ var TracePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1941
1814
|
...obj.collaboratorName && { collaboratorName: import_smithy_client.SENSITIVE_STRING }
|
|
1942
1815
|
}), "TracePartFilterSensitiveLog");
|
|
1943
1816
|
var ResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1944
|
-
if (obj.chunk !== void 0)
|
|
1945
|
-
|
|
1946
|
-
if (obj.
|
|
1947
|
-
|
|
1948
|
-
if (obj.
|
|
1949
|
-
|
|
1950
|
-
if (obj.internalServerException !== void 0)
|
|
1951
|
-
return { internalServerException: obj.internalServerException };
|
|
1952
|
-
if (obj.validationException !== void 0)
|
|
1953
|
-
return { validationException: obj.validationException };
|
|
1954
|
-
if (obj.resourceNotFoundException !== void 0)
|
|
1955
|
-
return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
1817
|
+
if (obj.chunk !== void 0) return { chunk: import_smithy_client.SENSITIVE_STRING };
|
|
1818
|
+
if (obj.trace !== void 0) return { trace: import_smithy_client.SENSITIVE_STRING };
|
|
1819
|
+
if (obj.returnControl !== void 0) return { returnControl: import_smithy_client.SENSITIVE_STRING };
|
|
1820
|
+
if (obj.internalServerException !== void 0) return { internalServerException: obj.internalServerException };
|
|
1821
|
+
if (obj.validationException !== void 0) return { validationException: obj.validationException };
|
|
1822
|
+
if (obj.resourceNotFoundException !== void 0) return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
1956
1823
|
if (obj.serviceQuotaExceededException !== void 0)
|
|
1957
1824
|
return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
|
|
1958
|
-
if (obj.throttlingException !== void 0)
|
|
1959
|
-
|
|
1960
|
-
if (obj.
|
|
1961
|
-
|
|
1962
|
-
if (obj.
|
|
1963
|
-
|
|
1964
|
-
if (obj.
|
|
1965
|
-
|
|
1966
|
-
if (obj.badGatewayException !== void 0)
|
|
1967
|
-
return { badGatewayException: obj.badGatewayException };
|
|
1968
|
-
if (obj.modelNotReadyException !== void 0)
|
|
1969
|
-
return { modelNotReadyException: obj.modelNotReadyException };
|
|
1970
|
-
if (obj.files !== void 0)
|
|
1971
|
-
return { files: FilePartFilterSensitiveLog(obj.files) };
|
|
1972
|
-
if (obj.$unknown !== void 0)
|
|
1973
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1825
|
+
if (obj.throttlingException !== void 0) return { throttlingException: obj.throttlingException };
|
|
1826
|
+
if (obj.accessDeniedException !== void 0) return { accessDeniedException: obj.accessDeniedException };
|
|
1827
|
+
if (obj.conflictException !== void 0) return { conflictException: obj.conflictException };
|
|
1828
|
+
if (obj.dependencyFailedException !== void 0) return { dependencyFailedException: obj.dependencyFailedException };
|
|
1829
|
+
if (obj.badGatewayException !== void 0) return { badGatewayException: obj.badGatewayException };
|
|
1830
|
+
if (obj.modelNotReadyException !== void 0) return { modelNotReadyException: obj.modelNotReadyException };
|
|
1831
|
+
if (obj.files !== void 0) return { files: FilePartFilterSensitiveLog(obj.files) };
|
|
1832
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1974
1833
|
}, "ResponseStreamFilterSensitiveLog");
|
|
1975
1834
|
var InvokeAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1976
1835
|
...obj,
|
|
@@ -2023,34 +1882,21 @@ var InlineAgentTracePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
2023
1882
|
...obj.trace && { trace: import_smithy_client.SENSITIVE_STRING }
|
|
2024
1883
|
}), "InlineAgentTracePartFilterSensitiveLog");
|
|
2025
1884
|
var InlineAgentResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
2026
|
-
if (obj.chunk !== void 0)
|
|
2027
|
-
|
|
2028
|
-
if (obj.
|
|
2029
|
-
|
|
2030
|
-
if (obj.
|
|
2031
|
-
|
|
2032
|
-
if (obj.internalServerException !== void 0)
|
|
2033
|
-
return { internalServerException: obj.internalServerException };
|
|
2034
|
-
if (obj.validationException !== void 0)
|
|
2035
|
-
return { validationException: obj.validationException };
|
|
2036
|
-
if (obj.resourceNotFoundException !== void 0)
|
|
2037
|
-
return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
1885
|
+
if (obj.chunk !== void 0) return { chunk: import_smithy_client.SENSITIVE_STRING };
|
|
1886
|
+
if (obj.trace !== void 0) return { trace: import_smithy_client.SENSITIVE_STRING };
|
|
1887
|
+
if (obj.returnControl !== void 0) return { returnControl: import_smithy_client.SENSITIVE_STRING };
|
|
1888
|
+
if (obj.internalServerException !== void 0) return { internalServerException: obj.internalServerException };
|
|
1889
|
+
if (obj.validationException !== void 0) return { validationException: obj.validationException };
|
|
1890
|
+
if (obj.resourceNotFoundException !== void 0) return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
2038
1891
|
if (obj.serviceQuotaExceededException !== void 0)
|
|
2039
1892
|
return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
|
|
2040
|
-
if (obj.throttlingException !== void 0)
|
|
2041
|
-
|
|
2042
|
-
if (obj.
|
|
2043
|
-
|
|
2044
|
-
if (obj.
|
|
2045
|
-
|
|
2046
|
-
if (obj
|
|
2047
|
-
return { dependencyFailedException: obj.dependencyFailedException };
|
|
2048
|
-
if (obj.badGatewayException !== void 0)
|
|
2049
|
-
return { badGatewayException: obj.badGatewayException };
|
|
2050
|
-
if (obj.files !== void 0)
|
|
2051
|
-
return { files: InlineAgentFilePartFilterSensitiveLog(obj.files) };
|
|
2052
|
-
if (obj.$unknown !== void 0)
|
|
2053
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1893
|
+
if (obj.throttlingException !== void 0) return { throttlingException: obj.throttlingException };
|
|
1894
|
+
if (obj.accessDeniedException !== void 0) return { accessDeniedException: obj.accessDeniedException };
|
|
1895
|
+
if (obj.conflictException !== void 0) return { conflictException: obj.conflictException };
|
|
1896
|
+
if (obj.dependencyFailedException !== void 0) return { dependencyFailedException: obj.dependencyFailedException };
|
|
1897
|
+
if (obj.badGatewayException !== void 0) return { badGatewayException: obj.badGatewayException };
|
|
1898
|
+
if (obj.files !== void 0) return { files: InlineAgentFilePartFilterSensitiveLog(obj.files) };
|
|
1899
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2054
1900
|
}, "InlineAgentResponseStreamFilterSensitiveLog");
|
|
2055
1901
|
var InvokeInlineAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2056
1902
|
...obj,
|
|
@@ -2060,10 +1906,8 @@ var TextPromptFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
2060
1906
|
...obj
|
|
2061
1907
|
}), "TextPromptFilterSensitiveLog");
|
|
2062
1908
|
var InputPromptFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
2063
|
-
if (obj.textPrompt !== void 0)
|
|
2064
|
-
|
|
2065
|
-
if (obj.$unknown !== void 0)
|
|
2066
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1909
|
+
if (obj.textPrompt !== void 0) return { textPrompt: import_smithy_client.SENSITIVE_STRING };
|
|
1910
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2067
1911
|
}, "InputPromptFilterSensitiveLog");
|
|
2068
1912
|
var OptimizePromptRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2069
1913
|
...obj,
|
|
@@ -2073,34 +1917,23 @@ var AnalyzePromptEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
2073
1917
|
...obj
|
|
2074
1918
|
}), "AnalyzePromptEventFilterSensitiveLog");
|
|
2075
1919
|
var OptimizedPromptFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
2076
|
-
if (obj.textPrompt !== void 0)
|
|
2077
|
-
|
|
2078
|
-
if (obj.$unknown !== void 0)
|
|
2079
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1920
|
+
if (obj.textPrompt !== void 0) return { textPrompt: import_smithy_client.SENSITIVE_STRING };
|
|
1921
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2080
1922
|
}, "OptimizedPromptFilterSensitiveLog");
|
|
2081
1923
|
var OptimizedPromptEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2082
1924
|
...obj,
|
|
2083
1925
|
...obj.optimizedPrompt && { optimizedPrompt: OptimizedPromptFilterSensitiveLog(obj.optimizedPrompt) }
|
|
2084
1926
|
}), "OptimizedPromptEventFilterSensitiveLog");
|
|
2085
1927
|
var OptimizedPromptStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
2086
|
-
if (obj.optimizedPromptEvent !== void 0)
|
|
2087
|
-
|
|
2088
|
-
if (obj.
|
|
2089
|
-
|
|
2090
|
-
if (obj.
|
|
2091
|
-
|
|
2092
|
-
if (obj.
|
|
2093
|
-
|
|
2094
|
-
if (obj
|
|
2095
|
-
return { validationException: obj.validationException };
|
|
2096
|
-
if (obj.dependencyFailedException !== void 0)
|
|
2097
|
-
return { dependencyFailedException: obj.dependencyFailedException };
|
|
2098
|
-
if (obj.accessDeniedException !== void 0)
|
|
2099
|
-
return { accessDeniedException: obj.accessDeniedException };
|
|
2100
|
-
if (obj.badGatewayException !== void 0)
|
|
2101
|
-
return { badGatewayException: obj.badGatewayException };
|
|
2102
|
-
if (obj.$unknown !== void 0)
|
|
2103
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1928
|
+
if (obj.optimizedPromptEvent !== void 0) return { optimizedPromptEvent: import_smithy_client.SENSITIVE_STRING };
|
|
1929
|
+
if (obj.analyzePromptEvent !== void 0) return { analyzePromptEvent: import_smithy_client.SENSITIVE_STRING };
|
|
1930
|
+
if (obj.internalServerException !== void 0) return { internalServerException: obj.internalServerException };
|
|
1931
|
+
if (obj.throttlingException !== void 0) return { throttlingException: obj.throttlingException };
|
|
1932
|
+
if (obj.validationException !== void 0) return { validationException: obj.validationException };
|
|
1933
|
+
if (obj.dependencyFailedException !== void 0) return { dependencyFailedException: obj.dependencyFailedException };
|
|
1934
|
+
if (obj.accessDeniedException !== void 0) return { accessDeniedException: obj.accessDeniedException };
|
|
1935
|
+
if (obj.badGatewayException !== void 0) return { badGatewayException: obj.badGatewayException };
|
|
1936
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2104
1937
|
}, "OptimizedPromptStreamFilterSensitiveLog");
|
|
2105
1938
|
var OptimizePromptResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2106
1939
|
...obj,
|
|
@@ -2191,32 +2024,20 @@ var RetrieveAndGenerateOutputEventFilterSensitiveLog = /* @__PURE__ */ __name((o
|
|
|
2191
2024
|
...obj
|
|
2192
2025
|
}), "RetrieveAndGenerateOutputEventFilterSensitiveLog");
|
|
2193
2026
|
var RetrieveAndGenerateStreamResponseOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
2194
|
-
if (obj.output !== void 0)
|
|
2195
|
-
|
|
2196
|
-
if (obj.
|
|
2197
|
-
|
|
2198
|
-
if (obj.
|
|
2199
|
-
|
|
2200
|
-
if (obj.internalServerException !== void 0)
|
|
2201
|
-
return { internalServerException: obj.internalServerException };
|
|
2202
|
-
if (obj.validationException !== void 0)
|
|
2203
|
-
return { validationException: obj.validationException };
|
|
2204
|
-
if (obj.resourceNotFoundException !== void 0)
|
|
2205
|
-
return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
2027
|
+
if (obj.output !== void 0) return { output: import_smithy_client.SENSITIVE_STRING };
|
|
2028
|
+
if (obj.citation !== void 0) return { citation: CitationEventFilterSensitiveLog(obj.citation) };
|
|
2029
|
+
if (obj.guardrail !== void 0) return { guardrail: obj.guardrail };
|
|
2030
|
+
if (obj.internalServerException !== void 0) return { internalServerException: obj.internalServerException };
|
|
2031
|
+
if (obj.validationException !== void 0) return { validationException: obj.validationException };
|
|
2032
|
+
if (obj.resourceNotFoundException !== void 0) return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
2206
2033
|
if (obj.serviceQuotaExceededException !== void 0)
|
|
2207
2034
|
return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
|
|
2208
|
-
if (obj.throttlingException !== void 0)
|
|
2209
|
-
|
|
2210
|
-
if (obj.
|
|
2211
|
-
|
|
2212
|
-
if (obj.
|
|
2213
|
-
|
|
2214
|
-
if (obj.dependencyFailedException !== void 0)
|
|
2215
|
-
return { dependencyFailedException: obj.dependencyFailedException };
|
|
2216
|
-
if (obj.badGatewayException !== void 0)
|
|
2217
|
-
return { badGatewayException: obj.badGatewayException };
|
|
2218
|
-
if (obj.$unknown !== void 0)
|
|
2219
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2035
|
+
if (obj.throttlingException !== void 0) return { throttlingException: obj.throttlingException };
|
|
2036
|
+
if (obj.accessDeniedException !== void 0) return { accessDeniedException: obj.accessDeniedException };
|
|
2037
|
+
if (obj.conflictException !== void 0) return { conflictException: obj.conflictException };
|
|
2038
|
+
if (obj.dependencyFailedException !== void 0) return { dependencyFailedException: obj.dependencyFailedException };
|
|
2039
|
+
if (obj.badGatewayException !== void 0) return { badGatewayException: obj.badGatewayException };
|
|
2040
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2220
2041
|
}, "RetrieveAndGenerateStreamResponseOutputFilterSensitiveLog");
|
|
2221
2042
|
var RetrieveAndGenerateStreamResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2222
2043
|
...obj,
|
|
@@ -2236,18 +2057,13 @@ var RetrieveResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
2236
2057
|
...obj.retrievalResults && { retrievalResults: import_smithy_client.SENSITIVE_STRING }
|
|
2237
2058
|
}), "RetrieveResponseFilterSensitiveLog");
|
|
2238
2059
|
var BedrockSessionContentBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
2239
|
-
if (obj.text !== void 0)
|
|
2240
|
-
|
|
2241
|
-
if (obj
|
|
2242
|
-
return { image: obj.image };
|
|
2243
|
-
if (obj.$unknown !== void 0)
|
|
2244
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2060
|
+
if (obj.text !== void 0) return { text: obj.text };
|
|
2061
|
+
if (obj.image !== void 0) return { image: obj.image };
|
|
2062
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2245
2063
|
}, "BedrockSessionContentBlockFilterSensitiveLog");
|
|
2246
2064
|
var InvocationStepPayloadFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
2247
|
-
if (obj.contentBlocks !== void 0)
|
|
2248
|
-
|
|
2249
|
-
if (obj.$unknown !== void 0)
|
|
2250
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2065
|
+
if (obj.contentBlocks !== void 0) return { contentBlocks: import_smithy_client.SENSITIVE_STRING };
|
|
2066
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2251
2067
|
}, "InvocationStepPayloadFilterSensitiveLog");
|
|
2252
2068
|
var InvocationStepFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2253
2069
|
...obj,
|
|
@@ -2267,64 +2083,37 @@ var PutInvocationStepRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) =>
|
|
|
2267
2083
|
var RetrievalFilter;
|
|
2268
2084
|
((RetrievalFilter2) => {
|
|
2269
2085
|
RetrievalFilter2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
2270
|
-
if (value.equals !== void 0)
|
|
2271
|
-
|
|
2272
|
-
if (value.
|
|
2273
|
-
|
|
2274
|
-
if (value.
|
|
2275
|
-
|
|
2276
|
-
if (value.
|
|
2277
|
-
|
|
2278
|
-
if (value.
|
|
2279
|
-
|
|
2280
|
-
if (value.
|
|
2281
|
-
|
|
2282
|
-
if (value.
|
|
2283
|
-
return visitor.in(value.in);
|
|
2284
|
-
if (value.notIn !== void 0)
|
|
2285
|
-
return visitor.notIn(value.notIn);
|
|
2286
|
-
if (value.startsWith !== void 0)
|
|
2287
|
-
return visitor.startsWith(value.startsWith);
|
|
2288
|
-
if (value.listContains !== void 0)
|
|
2289
|
-
return visitor.listContains(value.listContains);
|
|
2290
|
-
if (value.stringContains !== void 0)
|
|
2291
|
-
return visitor.stringContains(value.stringContains);
|
|
2292
|
-
if (value.andAll !== void 0)
|
|
2293
|
-
return visitor.andAll(value.andAll);
|
|
2294
|
-
if (value.orAll !== void 0)
|
|
2295
|
-
return visitor.orAll(value.orAll);
|
|
2086
|
+
if (value.equals !== void 0) return visitor.equals(value.equals);
|
|
2087
|
+
if (value.notEquals !== void 0) return visitor.notEquals(value.notEquals);
|
|
2088
|
+
if (value.greaterThan !== void 0) return visitor.greaterThan(value.greaterThan);
|
|
2089
|
+
if (value.greaterThanOrEquals !== void 0) return visitor.greaterThanOrEquals(value.greaterThanOrEquals);
|
|
2090
|
+
if (value.lessThan !== void 0) return visitor.lessThan(value.lessThan);
|
|
2091
|
+
if (value.lessThanOrEquals !== void 0) return visitor.lessThanOrEquals(value.lessThanOrEquals);
|
|
2092
|
+
if (value.in !== void 0) return visitor.in(value.in);
|
|
2093
|
+
if (value.notIn !== void 0) return visitor.notIn(value.notIn);
|
|
2094
|
+
if (value.startsWith !== void 0) return visitor.startsWith(value.startsWith);
|
|
2095
|
+
if (value.listContains !== void 0) return visitor.listContains(value.listContains);
|
|
2096
|
+
if (value.stringContains !== void 0) return visitor.stringContains(value.stringContains);
|
|
2097
|
+
if (value.andAll !== void 0) return visitor.andAll(value.andAll);
|
|
2098
|
+
if (value.orAll !== void 0) return visitor.orAll(value.orAll);
|
|
2296
2099
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
2297
2100
|
}, "visit");
|
|
2298
2101
|
})(RetrievalFilter || (RetrievalFilter = {}));
|
|
2299
2102
|
var RetrievalFilterFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
2300
|
-
if (obj.equals !== void 0)
|
|
2301
|
-
|
|
2302
|
-
if (obj.
|
|
2303
|
-
|
|
2304
|
-
if (obj.
|
|
2305
|
-
|
|
2306
|
-
if (obj.
|
|
2307
|
-
|
|
2308
|
-
if (obj.
|
|
2309
|
-
|
|
2310
|
-
if (obj.
|
|
2311
|
-
|
|
2312
|
-
if (obj.
|
|
2313
|
-
|
|
2314
|
-
if (obj.notIn !== void 0)
|
|
2315
|
-
return { notIn: obj.notIn };
|
|
2316
|
-
if (obj.startsWith !== void 0)
|
|
2317
|
-
return { startsWith: obj.startsWith };
|
|
2318
|
-
if (obj.listContains !== void 0)
|
|
2319
|
-
return { listContains: obj.listContains };
|
|
2320
|
-
if (obj.stringContains !== void 0)
|
|
2321
|
-
return { stringContains: obj.stringContains };
|
|
2322
|
-
if (obj.andAll !== void 0)
|
|
2323
|
-
return { andAll: import_smithy_client.SENSITIVE_STRING };
|
|
2324
|
-
if (obj.orAll !== void 0)
|
|
2325
|
-
return { orAll: import_smithy_client.SENSITIVE_STRING };
|
|
2326
|
-
if (obj.$unknown !== void 0)
|
|
2327
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2103
|
+
if (obj.equals !== void 0) return { equals: obj.equals };
|
|
2104
|
+
if (obj.notEquals !== void 0) return { notEquals: obj.notEquals };
|
|
2105
|
+
if (obj.greaterThan !== void 0) return { greaterThan: obj.greaterThan };
|
|
2106
|
+
if (obj.greaterThanOrEquals !== void 0) return { greaterThanOrEquals: obj.greaterThanOrEquals };
|
|
2107
|
+
if (obj.lessThan !== void 0) return { lessThan: obj.lessThan };
|
|
2108
|
+
if (obj.lessThanOrEquals !== void 0) return { lessThanOrEquals: obj.lessThanOrEquals };
|
|
2109
|
+
if (obj.in !== void 0) return { in: obj.in };
|
|
2110
|
+
if (obj.notIn !== void 0) return { notIn: obj.notIn };
|
|
2111
|
+
if (obj.startsWith !== void 0) return { startsWith: obj.startsWith };
|
|
2112
|
+
if (obj.listContains !== void 0) return { listContains: obj.listContains };
|
|
2113
|
+
if (obj.stringContains !== void 0) return { stringContains: obj.stringContains };
|
|
2114
|
+
if (obj.andAll !== void 0) return { andAll: import_smithy_client.SENSITIVE_STRING };
|
|
2115
|
+
if (obj.orAll !== void 0) return { orAll: import_smithy_client.SENSITIVE_STRING };
|
|
2116
|
+
if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
2328
2117
|
}, "RetrievalFilterFilterSensitiveLog");
|
|
2329
2118
|
var KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
2330
2119
|
...obj,
|
|
@@ -2488,8 +2277,8 @@ var se_CreateSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2488
2277
|
body = JSON.stringify(
|
|
2489
2278
|
(0, import_smithy_client.take)(input, {
|
|
2490
2279
|
encryptionKeyArn: [],
|
|
2491
|
-
sessionMetadata: (_) => (0, import_smithy_client._json)(_),
|
|
2492
|
-
tags: (_) => (0, import_smithy_client._json)(_)
|
|
2280
|
+
sessionMetadata: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "sessionMetadata"),
|
|
2281
|
+
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
2493
2282
|
})
|
|
2494
2283
|
);
|
|
2495
2284
|
b.m("PUT").h(headers).b(body);
|
|
@@ -2536,8 +2325,8 @@ var se_GenerateQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2536
2325
|
let body;
|
|
2537
2326
|
body = JSON.stringify(
|
|
2538
2327
|
(0, import_smithy_client.take)(input, {
|
|
2539
|
-
queryGenerationInput: (_) => (0, import_smithy_client._json)(_),
|
|
2540
|
-
transformationConfiguration: (_) => (0, import_smithy_client._json)(_)
|
|
2328
|
+
queryGenerationInput: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "queryGenerationInput"),
|
|
2329
|
+
transformationConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "transformationConfiguration")
|
|
2541
2330
|
})
|
|
2542
2331
|
);
|
|
2543
2332
|
b.m("POST").h(headers).b(body);
|
|
@@ -2598,13 +2387,13 @@ var se_InvokeAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2598
2387
|
let body;
|
|
2599
2388
|
body = JSON.stringify(
|
|
2600
2389
|
(0, import_smithy_client.take)(input, {
|
|
2601
|
-
bedrockModelConfigurations: (_) => (0, import_smithy_client._json)(_),
|
|
2390
|
+
bedrockModelConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "bedrockModelConfigurations"),
|
|
2602
2391
|
enableTrace: [],
|
|
2603
2392
|
endSession: [],
|
|
2604
2393
|
inputText: [],
|
|
2605
2394
|
memoryId: [],
|
|
2606
|
-
sessionState: (_) => se_SessionState(_, context),
|
|
2607
|
-
streamingConfigurations: (_) => (0, import_smithy_client._json)(_)
|
|
2395
|
+
sessionState: /* @__PURE__ */ __name((_) => se_SessionState(_, context), "sessionState"),
|
|
2396
|
+
streamingConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "streamingConfigurations")
|
|
2608
2397
|
})
|
|
2609
2398
|
);
|
|
2610
2399
|
b.m("POST").h(headers).b(body);
|
|
@@ -2623,8 +2412,8 @@ var se_InvokeFlowCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2623
2412
|
(0, import_smithy_client.take)(input, {
|
|
2624
2413
|
enableTrace: [],
|
|
2625
2414
|
executionId: [],
|
|
2626
|
-
inputs: (_) => se_FlowInputs(_, context),
|
|
2627
|
-
modelPerformanceConfiguration: (_) => (0, import_smithy_client._json)(_)
|
|
2415
|
+
inputs: /* @__PURE__ */ __name((_) => se_FlowInputs(_, context), "inputs"),
|
|
2416
|
+
modelPerformanceConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "modelPerformanceConfiguration")
|
|
2628
2417
|
})
|
|
2629
2418
|
);
|
|
2630
2419
|
b.m("POST").h(headers).b(body);
|
|
@@ -2640,23 +2429,23 @@ var se_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
2640
2429
|
let body;
|
|
2641
2430
|
body = JSON.stringify(
|
|
2642
2431
|
(0, import_smithy_client.take)(input, {
|
|
2643
|
-
actionGroups: (_) => (0, import_smithy_client._json)(_),
|
|
2432
|
+
actionGroups: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "actionGroups"),
|
|
2644
2433
|
agentCollaboration: [],
|
|
2645
|
-
bedrockModelConfigurations: (_) => (0, import_smithy_client._json)(_),
|
|
2646
|
-
collaboratorConfigurations: (_) => (0, import_smithy_client._json)(_),
|
|
2647
|
-
collaborators: (_) => se_Collaborators(_, context),
|
|
2434
|
+
bedrockModelConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "bedrockModelConfigurations"),
|
|
2435
|
+
collaboratorConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "collaboratorConfigurations"),
|
|
2436
|
+
collaborators: /* @__PURE__ */ __name((_) => se_Collaborators(_, context), "collaborators"),
|
|
2648
2437
|
customerEncryptionKeyArn: [],
|
|
2649
2438
|
enableTrace: [],
|
|
2650
2439
|
endSession: [],
|
|
2651
2440
|
foundationModel: [],
|
|
2652
|
-
guardrailConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
2441
|
+
guardrailConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "guardrailConfiguration"),
|
|
2653
2442
|
idleSessionTTLInSeconds: [],
|
|
2654
|
-
inlineSessionState: (_) => se_InlineSessionState(_, context),
|
|
2443
|
+
inlineSessionState: /* @__PURE__ */ __name((_) => se_InlineSessionState(_, context), "inlineSessionState"),
|
|
2655
2444
|
inputText: [],
|
|
2656
2445
|
instruction: [],
|
|
2657
|
-
knowledgeBases: (_) => se_KnowledgeBases(_, context),
|
|
2658
|
-
promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context),
|
|
2659
|
-
streamingConfigurations: (_) => (0, import_smithy_client._json)(_)
|
|
2446
|
+
knowledgeBases: /* @__PURE__ */ __name((_) => se_KnowledgeBases(_, context), "knowledgeBases"),
|
|
2447
|
+
promptOverrideConfiguration: /* @__PURE__ */ __name((_) => se_PromptOverrideConfiguration(_, context), "promptOverrideConfiguration"),
|
|
2448
|
+
streamingConfigurations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "streamingConfigurations")
|
|
2660
2449
|
})
|
|
2661
2450
|
);
|
|
2662
2451
|
b.m("POST").h(headers).b(body);
|
|
@@ -2725,7 +2514,7 @@ var se_OptimizePromptCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
2725
2514
|
let body;
|
|
2726
2515
|
body = JSON.stringify(
|
|
2727
2516
|
(0, import_smithy_client.take)(input, {
|
|
2728
|
-
input: (_) => (0, import_smithy_client._json)(_),
|
|
2517
|
+
input: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "input"),
|
|
2729
2518
|
targetModelId: []
|
|
2730
2519
|
})
|
|
2731
2520
|
);
|
|
@@ -2744,8 +2533,8 @@ var se_PutInvocationStepCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
2744
2533
|
(0, import_smithy_client.take)(input, {
|
|
2745
2534
|
invocationIdentifier: [],
|
|
2746
2535
|
invocationStepId: [],
|
|
2747
|
-
invocationStepTime: (_) => (0, import_smithy_client.serializeDateTime)(_),
|
|
2748
|
-
payload: (_) => se_InvocationStepPayload(_, context)
|
|
2536
|
+
invocationStepTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.serializeDateTime)(_), "invocationStepTime"),
|
|
2537
|
+
payload: /* @__PURE__ */ __name((_) => se_InvocationStepPayload(_, context), "payload")
|
|
2749
2538
|
})
|
|
2750
2539
|
);
|
|
2751
2540
|
b.m("PUT").h(headers).b(body);
|
|
@@ -2761,9 +2550,9 @@ var se_RerankCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2761
2550
|
body = JSON.stringify(
|
|
2762
2551
|
(0, import_smithy_client.take)(input, {
|
|
2763
2552
|
nextToken: [],
|
|
2764
|
-
queries: (_) => (0, import_smithy_client._json)(_),
|
|
2765
|
-
rerankingConfiguration: (_) => se_RerankingConfiguration(_, context),
|
|
2766
|
-
sources: (_) => se_RerankSourcesList(_, context)
|
|
2553
|
+
queries: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "queries"),
|
|
2554
|
+
rerankingConfiguration: /* @__PURE__ */ __name((_) => se_RerankingConfiguration(_, context), "rerankingConfiguration"),
|
|
2555
|
+
sources: /* @__PURE__ */ __name((_) => se_RerankSourcesList(_, context), "sources")
|
|
2767
2556
|
})
|
|
2768
2557
|
);
|
|
2769
2558
|
b.m("POST").h(headers).b(body);
|
|
@@ -2779,10 +2568,10 @@ var se_RetrieveCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2779
2568
|
let body;
|
|
2780
2569
|
body = JSON.stringify(
|
|
2781
2570
|
(0, import_smithy_client.take)(input, {
|
|
2782
|
-
guardrailConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
2571
|
+
guardrailConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "guardrailConfiguration"),
|
|
2783
2572
|
nextToken: [],
|
|
2784
|
-
retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context),
|
|
2785
|
-
retrievalQuery: (_) => (0, import_smithy_client._json)(_)
|
|
2573
|
+
retrievalConfiguration: /* @__PURE__ */ __name((_) => se_KnowledgeBaseRetrievalConfiguration(_, context), "retrievalConfiguration"),
|
|
2574
|
+
retrievalQuery: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "retrievalQuery")
|
|
2786
2575
|
})
|
|
2787
2576
|
);
|
|
2788
2577
|
b.m("POST").h(headers).b(body);
|
|
@@ -2797,9 +2586,9 @@ var se_RetrieveAndGenerateCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
2797
2586
|
let body;
|
|
2798
2587
|
body = JSON.stringify(
|
|
2799
2588
|
(0, import_smithy_client.take)(input, {
|
|
2800
|
-
input: (_) => (0, import_smithy_client._json)(_),
|
|
2801
|
-
retrieveAndGenerateConfiguration: (_) => se_RetrieveAndGenerateConfiguration(_, context),
|
|
2802
|
-
sessionConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
2589
|
+
input: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "input"),
|
|
2590
|
+
retrieveAndGenerateConfiguration: /* @__PURE__ */ __name((_) => se_RetrieveAndGenerateConfiguration(_, context), "retrieveAndGenerateConfiguration"),
|
|
2591
|
+
sessionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "sessionConfiguration"),
|
|
2803
2592
|
sessionId: []
|
|
2804
2593
|
})
|
|
2805
2594
|
);
|
|
@@ -2815,9 +2604,9 @@ var se_RetrieveAndGenerateStreamCommand = /* @__PURE__ */ __name(async (input, c
|
|
|
2815
2604
|
let body;
|
|
2816
2605
|
body = JSON.stringify(
|
|
2817
2606
|
(0, import_smithy_client.take)(input, {
|
|
2818
|
-
input: (_) => (0, import_smithy_client._json)(_),
|
|
2819
|
-
retrieveAndGenerateConfiguration: (_) => se_RetrieveAndGenerateConfiguration(_, context),
|
|
2820
|
-
sessionConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
2607
|
+
input: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "input"),
|
|
2608
|
+
retrieveAndGenerateConfiguration: /* @__PURE__ */ __name((_) => se_RetrieveAndGenerateConfiguration(_, context), "retrieveAndGenerateConfiguration"),
|
|
2609
|
+
sessionConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "sessionConfiguration"),
|
|
2821
2610
|
sessionId: []
|
|
2822
2611
|
})
|
|
2823
2612
|
);
|
|
@@ -2834,7 +2623,7 @@ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2834
2623
|
let body;
|
|
2835
2624
|
body = JSON.stringify(
|
|
2836
2625
|
(0, import_smithy_client.take)(input, {
|
|
2837
|
-
tags: (_) => (0, import_smithy_client._json)(_)
|
|
2626
|
+
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
2838
2627
|
})
|
|
2839
2628
|
);
|
|
2840
2629
|
b.m("POST").h(headers).b(body);
|
|
@@ -2862,7 +2651,7 @@ var se_UpdateSessionCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
2862
2651
|
let body;
|
|
2863
2652
|
body = JSON.stringify(
|
|
2864
2653
|
(0, import_smithy_client.take)(input, {
|
|
2865
|
-
sessionMetadata: (_) => (0, import_smithy_client._json)(_)
|
|
2654
|
+
sessionMetadata: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "sessionMetadata")
|
|
2866
2655
|
})
|
|
2867
2656
|
);
|
|
2868
2657
|
b.m("PUT").h(headers).b(body);
|
|
@@ -2877,7 +2666,7 @@ var de_CreateInvocationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2877
2666
|
});
|
|
2878
2667
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2879
2668
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2880
|
-
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2669
|
+
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
|
|
2881
2670
|
invocationId: import_smithy_client.expectString,
|
|
2882
2671
|
sessionId: import_smithy_client.expectString
|
|
2883
2672
|
});
|
|
@@ -2893,7 +2682,7 @@ var de_CreateSessionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2893
2682
|
});
|
|
2894
2683
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2895
2684
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2896
|
-
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2685
|
+
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
|
|
2897
2686
|
sessionArn: import_smithy_client.expectString,
|
|
2898
2687
|
sessionId: import_smithy_client.expectString,
|
|
2899
2688
|
sessionStatus: import_smithy_client.expectString
|
|
@@ -2960,7 +2749,7 @@ var de_GetAgentMemoryCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2960
2749
|
});
|
|
2961
2750
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2962
2751
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2963
|
-
memoryContents: (_) => de_Memories(_, context),
|
|
2752
|
+
memoryContents: /* @__PURE__ */ __name((_) => de_Memories(_, context), "memoryContents"),
|
|
2964
2753
|
nextToken: import_smithy_client.expectString
|
|
2965
2754
|
});
|
|
2966
2755
|
Object.assign(contents, doc);
|
|
@@ -2975,7 +2764,7 @@ var de_GetInvocationStepCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2975
2764
|
});
|
|
2976
2765
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2977
2766
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2978
|
-
invocationStep: (_) => de_InvocationStep(_, context)
|
|
2767
|
+
invocationStep: /* @__PURE__ */ __name((_) => de_InvocationStep(_, context), "invocationStep")
|
|
2979
2768
|
});
|
|
2980
2769
|
Object.assign(contents, doc);
|
|
2981
2770
|
return contents;
|
|
@@ -2989,9 +2778,9 @@ var de_GetSessionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
2989
2778
|
});
|
|
2990
2779
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2991
2780
|
const doc = (0, import_smithy_client.take)(data, {
|
|
2992
|
-
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2781
|
+
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
|
|
2993
2782
|
encryptionKeyArn: import_smithy_client.expectString,
|
|
2994
|
-
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2783
|
+
lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
|
|
2995
2784
|
sessionArn: import_smithy_client.expectString,
|
|
2996
2785
|
sessionId: import_smithy_client.expectString,
|
|
2997
2786
|
sessionMetadata: import_smithy_client._json,
|
|
@@ -3048,7 +2837,7 @@ var de_ListInvocationsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
3048
2837
|
});
|
|
3049
2838
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3050
2839
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3051
|
-
invocationSummaries: (_) => de_InvocationSummaries(_, context),
|
|
2840
|
+
invocationSummaries: /* @__PURE__ */ __name((_) => de_InvocationSummaries(_, context), "invocationSummaries"),
|
|
3052
2841
|
nextToken: import_smithy_client.expectString
|
|
3053
2842
|
});
|
|
3054
2843
|
Object.assign(contents, doc);
|
|
@@ -3063,7 +2852,7 @@ var de_ListInvocationStepsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3063
2852
|
});
|
|
3064
2853
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3065
2854
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3066
|
-
invocationStepSummaries: (_) => de_InvocationStepSummaries(_, context),
|
|
2855
|
+
invocationStepSummaries: /* @__PURE__ */ __name((_) => de_InvocationStepSummaries(_, context), "invocationStepSummaries"),
|
|
3067
2856
|
nextToken: import_smithy_client.expectString
|
|
3068
2857
|
});
|
|
3069
2858
|
Object.assign(contents, doc);
|
|
@@ -3079,7 +2868,7 @@ var de_ListSessionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3079
2868
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3080
2869
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3081
2870
|
nextToken: import_smithy_client.expectString,
|
|
3082
|
-
sessionSummaries: (_) => de_SessionSummaries(_, context)
|
|
2871
|
+
sessionSummaries: /* @__PURE__ */ __name((_) => de_SessionSummaries(_, context), "sessionSummaries")
|
|
3083
2872
|
});
|
|
3084
2873
|
Object.assign(contents, doc);
|
|
3085
2874
|
return contents;
|
|
@@ -3133,7 +2922,7 @@ var de_RerankCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3133
2922
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3134
2923
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3135
2924
|
nextToken: import_smithy_client.expectString,
|
|
3136
|
-
results: (_) => de_RerankResultsList(_, context)
|
|
2925
|
+
results: /* @__PURE__ */ __name((_) => de_RerankResultsList(_, context), "results")
|
|
3137
2926
|
});
|
|
3138
2927
|
Object.assign(contents, doc);
|
|
3139
2928
|
return contents;
|
|
@@ -3149,7 +2938,7 @@ var de_RetrieveCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
3149
2938
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3150
2939
|
guardrailAction: import_smithy_client.expectString,
|
|
3151
2940
|
nextToken: import_smithy_client.expectString,
|
|
3152
|
-
retrievalResults: (_) => de_KnowledgeBaseRetrievalResults(_, context)
|
|
2941
|
+
retrievalResults: /* @__PURE__ */ __name((_) => de_KnowledgeBaseRetrievalResults(_, context), "retrievalResults")
|
|
3153
2942
|
});
|
|
3154
2943
|
Object.assign(contents, doc);
|
|
3155
2944
|
return contents;
|
|
@@ -3163,7 +2952,7 @@ var de_RetrieveAndGenerateCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
3163
2952
|
});
|
|
3164
2953
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3165
2954
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3166
|
-
citations: (_) => de_Citations(_, context),
|
|
2955
|
+
citations: /* @__PURE__ */ __name((_) => de_Citations(_, context), "citations"),
|
|
3167
2956
|
guardrailAction: import_smithy_client.expectString,
|
|
3168
2957
|
output: import_smithy_client._json,
|
|
3169
2958
|
sessionId: import_smithy_client.expectString
|
|
@@ -3212,8 +3001,8 @@ var de_UpdateSessionCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
3212
3001
|
});
|
|
3213
3002
|
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
3214
3003
|
const doc = (0, import_smithy_client.take)(data, {
|
|
3215
|
-
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
3216
|
-
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
3004
|
+
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
|
|
3005
|
+
lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
|
|
3217
3006
|
sessionArn: import_smithy_client.expectString,
|
|
3218
3007
|
sessionId: import_smithy_client.expectString,
|
|
3219
3008
|
sessionStatus: import_smithy_client.expectString
|
|
@@ -3952,23 +3741,35 @@ var se_AdditionalModelRequestFields = /* @__PURE__ */ __name((input, context) =>
|
|
|
3952
3741
|
var se_AdditionalModelRequestFieldsValue = /* @__PURE__ */ __name((input, context) => {
|
|
3953
3742
|
return input;
|
|
3954
3743
|
}, "se_AdditionalModelRequestFieldsValue");
|
|
3744
|
+
var se_ApiResult = /* @__PURE__ */ __name((input, context) => {
|
|
3745
|
+
return (0, import_smithy_client.take)(input, {
|
|
3746
|
+
actionGroup: [],
|
|
3747
|
+
agentId: [],
|
|
3748
|
+
apiPath: [],
|
|
3749
|
+
confirmationState: [],
|
|
3750
|
+
httpMethod: [],
|
|
3751
|
+
httpStatusCode: [],
|
|
3752
|
+
responseBody: /* @__PURE__ */ __name((_) => se_ResponseBody(_, context), "responseBody"),
|
|
3753
|
+
responseState: []
|
|
3754
|
+
});
|
|
3755
|
+
}, "se_ApiResult");
|
|
3955
3756
|
var se_BedrockRerankingConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
3956
3757
|
return (0, import_smithy_client.take)(input, {
|
|
3957
|
-
modelConfiguration: (_) => se_BedrockRerankingModelConfiguration(_, context),
|
|
3758
|
+
modelConfiguration: /* @__PURE__ */ __name((_) => se_BedrockRerankingModelConfiguration(_, context), "modelConfiguration"),
|
|
3958
3759
|
numberOfResults: []
|
|
3959
3760
|
});
|
|
3960
3761
|
}, "se_BedrockRerankingConfiguration");
|
|
3961
3762
|
var se_BedrockRerankingModelConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
3962
3763
|
return (0, import_smithy_client.take)(input, {
|
|
3963
|
-
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
3764
|
+
additionalModelRequestFields: /* @__PURE__ */ __name((_) => se_AdditionalModelRequestFields(_, context), "additionalModelRequestFields"),
|
|
3964
3765
|
modelArn: []
|
|
3965
3766
|
});
|
|
3966
3767
|
}, "se_BedrockRerankingModelConfiguration");
|
|
3967
3768
|
var se_BedrockSessionContentBlock = /* @__PURE__ */ __name((input, context) => {
|
|
3968
3769
|
return BedrockSessionContentBlock.visit(input, {
|
|
3969
|
-
image: (value) => ({ image: se_ImageBlock(value, context) }),
|
|
3970
|
-
text: (value) => ({ text: value }),
|
|
3971
|
-
_: (name, value) => ({ [name]: value })
|
|
3770
|
+
image: /* @__PURE__ */ __name((value) => ({ image: se_ImageBlock(value, context) }), "image"),
|
|
3771
|
+
text: /* @__PURE__ */ __name((value) => ({ text: value }), "text"),
|
|
3772
|
+
_: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
|
|
3972
3773
|
});
|
|
3973
3774
|
}, "se_BedrockSessionContentBlock");
|
|
3974
3775
|
var se_BedrockSessionContentBlocks = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -4000,8 +3801,8 @@ var se_Collaborator = /* @__PURE__ */ __name((input, context) => {
|
|
|
4000
3801
|
guardrailConfiguration: import_smithy_client._json,
|
|
4001
3802
|
idleSessionTTLInSeconds: [],
|
|
4002
3803
|
instruction: [],
|
|
4003
|
-
knowledgeBases: (_) => se_KnowledgeBases(_, context),
|
|
4004
|
-
promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context)
|
|
3804
|
+
knowledgeBases: /* @__PURE__ */ __name((_) => se_KnowledgeBases(_, context), "knowledgeBases"),
|
|
3805
|
+
promptOverrideConfiguration: /* @__PURE__ */ __name((_) => se_PromptOverrideConfiguration(_, context), "promptOverrideConfiguration")
|
|
4005
3806
|
});
|
|
4006
3807
|
}, "se_Collaborator");
|
|
4007
3808
|
var se_Collaborators = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -4009,9 +3810,15 @@ var se_Collaborators = /* @__PURE__ */ __name((input, context) => {
|
|
|
4009
3810
|
return se_Collaborator(entry, context);
|
|
4010
3811
|
});
|
|
4011
3812
|
}, "se_Collaborators");
|
|
3813
|
+
var se_ContentBody = /* @__PURE__ */ __name((input, context) => {
|
|
3814
|
+
return (0, import_smithy_client.take)(input, {
|
|
3815
|
+
body: [],
|
|
3816
|
+
images: /* @__PURE__ */ __name((_) => se_ImageInputs(_, context), "images")
|
|
3817
|
+
});
|
|
3818
|
+
}, "se_ContentBody");
|
|
4012
3819
|
var se_ExternalSource = /* @__PURE__ */ __name((input, context) => {
|
|
4013
3820
|
return (0, import_smithy_client.take)(input, {
|
|
4014
|
-
byteContent: (_) => se_ByteContentDoc(_, context),
|
|
3821
|
+
byteContent: /* @__PURE__ */ __name((_) => se_ByteContentDoc(_, context), "byteContent"),
|
|
4015
3822
|
s3Location: import_smithy_client._json,
|
|
4016
3823
|
sourceType: []
|
|
4017
3824
|
});
|
|
@@ -4023,23 +3830,23 @@ var se_ExternalSources = /* @__PURE__ */ __name((input, context) => {
|
|
|
4023
3830
|
}, "se_ExternalSources");
|
|
4024
3831
|
var se_ExternalSourcesGenerationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4025
3832
|
return (0, import_smithy_client.take)(input, {
|
|
4026
|
-
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
3833
|
+
additionalModelRequestFields: /* @__PURE__ */ __name((_) => se_AdditionalModelRequestFields(_, context), "additionalModelRequestFields"),
|
|
4027
3834
|
guardrailConfiguration: import_smithy_client._json,
|
|
4028
|
-
inferenceConfig: (_) => se_InferenceConfig(_, context),
|
|
3835
|
+
inferenceConfig: /* @__PURE__ */ __name((_) => se_InferenceConfig(_, context), "inferenceConfig"),
|
|
4029
3836
|
performanceConfig: import_smithy_client._json,
|
|
4030
3837
|
promptTemplate: import_smithy_client._json
|
|
4031
3838
|
});
|
|
4032
3839
|
}, "se_ExternalSourcesGenerationConfiguration");
|
|
4033
3840
|
var se_ExternalSourcesRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4034
3841
|
return (0, import_smithy_client.take)(input, {
|
|
4035
|
-
generationConfiguration: (_) => se_ExternalSourcesGenerationConfiguration(_, context),
|
|
3842
|
+
generationConfiguration: /* @__PURE__ */ __name((_) => se_ExternalSourcesGenerationConfiguration(_, context), "generationConfiguration"),
|
|
4036
3843
|
modelArn: [],
|
|
4037
|
-
sources: (_) => se_ExternalSources(_, context)
|
|
3844
|
+
sources: /* @__PURE__ */ __name((_) => se_ExternalSources(_, context), "sources")
|
|
4038
3845
|
});
|
|
4039
3846
|
}, "se_ExternalSourcesRetrieveAndGenerateConfiguration");
|
|
4040
3847
|
var se_FileSource = /* @__PURE__ */ __name((input, context) => {
|
|
4041
3848
|
return (0, import_smithy_client.take)(input, {
|
|
4042
|
-
byteContent: (_) => se_ByteContentFile(_, context),
|
|
3849
|
+
byteContent: /* @__PURE__ */ __name((_) => se_ByteContentFile(_, context), "byteContent"),
|
|
4043
3850
|
s3Location: import_smithy_client._json,
|
|
4044
3851
|
sourceType: []
|
|
4045
3852
|
});
|
|
@@ -4047,7 +3854,7 @@ var se_FileSource = /* @__PURE__ */ __name((input, context) => {
|
|
|
4047
3854
|
var se_FilterAttribute = /* @__PURE__ */ __name((input, context) => {
|
|
4048
3855
|
return (0, import_smithy_client.take)(input, {
|
|
4049
3856
|
key: [],
|
|
4050
|
-
value: (_) => se_FilterValue(_, context)
|
|
3857
|
+
value: /* @__PURE__ */ __name((_) => se_FilterValue(_, context), "value")
|
|
4051
3858
|
});
|
|
4052
3859
|
}, "se_FilterAttribute");
|
|
4053
3860
|
var se_FilterValue = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -4055,7 +3862,7 @@ var se_FilterValue = /* @__PURE__ */ __name((input, context) => {
|
|
|
4055
3862
|
}, "se_FilterValue");
|
|
4056
3863
|
var se_FlowInput = /* @__PURE__ */ __name((input, context) => {
|
|
4057
3864
|
return (0, import_smithy_client.take)(input, {
|
|
4058
|
-
content: (_) => se_FlowInputContent(_, context),
|
|
3865
|
+
content: /* @__PURE__ */ __name((_) => se_FlowInputContent(_, context), "content"),
|
|
4059
3866
|
nodeInputName: [],
|
|
4060
3867
|
nodeName: [],
|
|
4061
3868
|
nodeOutputName: []
|
|
@@ -4063,8 +3870,8 @@ var se_FlowInput = /* @__PURE__ */ __name((input, context) => {
|
|
|
4063
3870
|
}, "se_FlowInput");
|
|
4064
3871
|
var se_FlowInputContent = /* @__PURE__ */ __name((input, context) => {
|
|
4065
3872
|
return FlowInputContent.visit(input, {
|
|
4066
|
-
document: (value) => ({ document: se_Document(value, context) }),
|
|
4067
|
-
_: (name, value) => ({ [name]: value })
|
|
3873
|
+
document: /* @__PURE__ */ __name((value) => ({ document: se_Document(value, context) }), "document"),
|
|
3874
|
+
_: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
|
|
4068
3875
|
});
|
|
4069
3876
|
}, "se_FlowInputContent");
|
|
4070
3877
|
var se_FlowInputs = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -4072,11 +3879,21 @@ var se_FlowInputs = /* @__PURE__ */ __name((input, context) => {
|
|
|
4072
3879
|
return se_FlowInput(entry, context);
|
|
4073
3880
|
});
|
|
4074
3881
|
}, "se_FlowInputs");
|
|
3882
|
+
var se_FunctionResult = /* @__PURE__ */ __name((input, context) => {
|
|
3883
|
+
return (0, import_smithy_client.take)(input, {
|
|
3884
|
+
actionGroup: [],
|
|
3885
|
+
agentId: [],
|
|
3886
|
+
confirmationState: [],
|
|
3887
|
+
function: [],
|
|
3888
|
+
responseBody: /* @__PURE__ */ __name((_) => se_ResponseBody(_, context), "responseBody"),
|
|
3889
|
+
responseState: []
|
|
3890
|
+
});
|
|
3891
|
+
}, "se_FunctionResult");
|
|
4075
3892
|
var se_GenerationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4076
3893
|
return (0, import_smithy_client.take)(input, {
|
|
4077
|
-
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
3894
|
+
additionalModelRequestFields: /* @__PURE__ */ __name((_) => se_AdditionalModelRequestFields(_, context), "additionalModelRequestFields"),
|
|
4078
3895
|
guardrailConfiguration: import_smithy_client._json,
|
|
4079
|
-
inferenceConfig: (_) => se_InferenceConfig(_, context),
|
|
3896
|
+
inferenceConfig: /* @__PURE__ */ __name((_) => se_InferenceConfig(_, context), "inferenceConfig"),
|
|
4080
3897
|
performanceConfig: import_smithy_client._json,
|
|
4081
3898
|
promptTemplate: import_smithy_client._json
|
|
4082
3899
|
});
|
|
@@ -4084,19 +3901,36 @@ var se_GenerationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
|
4084
3901
|
var se_ImageBlock = /* @__PURE__ */ __name((input, context) => {
|
|
4085
3902
|
return (0, import_smithy_client.take)(input, {
|
|
4086
3903
|
format: [],
|
|
4087
|
-
source: (_) => se_ImageSource(_, context)
|
|
3904
|
+
source: /* @__PURE__ */ __name((_) => se_ImageSource(_, context), "source")
|
|
4088
3905
|
});
|
|
4089
3906
|
}, "se_ImageBlock");
|
|
3907
|
+
var se_ImageInput = /* @__PURE__ */ __name((input, context) => {
|
|
3908
|
+
return (0, import_smithy_client.take)(input, {
|
|
3909
|
+
format: [],
|
|
3910
|
+
source: /* @__PURE__ */ __name((_) => se_ImageInputSource(_, context), "source")
|
|
3911
|
+
});
|
|
3912
|
+
}, "se_ImageInput");
|
|
3913
|
+
var se_ImageInputs = /* @__PURE__ */ __name((input, context) => {
|
|
3914
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
3915
|
+
return se_ImageInput(entry, context);
|
|
3916
|
+
});
|
|
3917
|
+
}, "se_ImageInputs");
|
|
3918
|
+
var se_ImageInputSource = /* @__PURE__ */ __name((input, context) => {
|
|
3919
|
+
return ImageInputSource.visit(input, {
|
|
3920
|
+
bytes: /* @__PURE__ */ __name((value) => ({ bytes: context.base64Encoder(value) }), "bytes"),
|
|
3921
|
+
_: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
|
|
3922
|
+
});
|
|
3923
|
+
}, "se_ImageInputSource");
|
|
4090
3924
|
var se_ImageSource = /* @__PURE__ */ __name((input, context) => {
|
|
4091
3925
|
return ImageSource.visit(input, {
|
|
4092
|
-
bytes: (value) => ({ bytes: context.base64Encoder(value) }),
|
|
4093
|
-
s3Location: (value) => ({ s3Location: (0, import_smithy_client._json)(value) }),
|
|
4094
|
-
_: (name, value) => ({ [name]: value })
|
|
3926
|
+
bytes: /* @__PURE__ */ __name((value) => ({ bytes: context.base64Encoder(value) }), "bytes"),
|
|
3927
|
+
s3Location: /* @__PURE__ */ __name((value) => ({ s3Location: (0, import_smithy_client._json)(value) }), "s3Location"),
|
|
3928
|
+
_: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
|
|
4095
3929
|
});
|
|
4096
3930
|
}, "se_ImageSource");
|
|
4097
3931
|
var se_InferenceConfig = /* @__PURE__ */ __name((input, context) => {
|
|
4098
3932
|
return (0, import_smithy_client.take)(input, {
|
|
4099
|
-
textInferenceConfig: (_) => se_TextInferenceConfig(_, context)
|
|
3933
|
+
textInferenceConfig: /* @__PURE__ */ __name((_) => se_TextInferenceConfig(_, context), "textInferenceConfig")
|
|
4100
3934
|
});
|
|
4101
3935
|
}, "se_InferenceConfig");
|
|
4102
3936
|
var se_InferenceConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -4111,17 +3945,17 @@ var se_InferenceConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
|
4111
3945
|
var se_InlineSessionState = /* @__PURE__ */ __name((input, context) => {
|
|
4112
3946
|
return (0, import_smithy_client.take)(input, {
|
|
4113
3947
|
conversationHistory: import_smithy_client._json,
|
|
4114
|
-
files: (_) => se_InputFiles(_, context),
|
|
3948
|
+
files: /* @__PURE__ */ __name((_) => se_InputFiles(_, context), "files"),
|
|
4115
3949
|
invocationId: [],
|
|
4116
3950
|
promptSessionAttributes: import_smithy_client._json,
|
|
4117
|
-
returnControlInvocationResults:
|
|
3951
|
+
returnControlInvocationResults: /* @__PURE__ */ __name((_) => se_ReturnControlInvocationResults(_, context), "returnControlInvocationResults"),
|
|
4118
3952
|
sessionAttributes: import_smithy_client._json
|
|
4119
3953
|
});
|
|
4120
3954
|
}, "se_InlineSessionState");
|
|
4121
3955
|
var se_InputFile = /* @__PURE__ */ __name((input, context) => {
|
|
4122
3956
|
return (0, import_smithy_client.take)(input, {
|
|
4123
3957
|
name: [],
|
|
4124
|
-
source: (_) => se_FileSource(_, context),
|
|
3958
|
+
source: /* @__PURE__ */ __name((_) => se_FileSource(_, context), "source"),
|
|
4125
3959
|
useCase: []
|
|
4126
3960
|
});
|
|
4127
3961
|
}, "se_InputFile");
|
|
@@ -4130,23 +3964,30 @@ var se_InputFiles = /* @__PURE__ */ __name((input, context) => {
|
|
|
4130
3964
|
return se_InputFile(entry, context);
|
|
4131
3965
|
});
|
|
4132
3966
|
}, "se_InputFiles");
|
|
3967
|
+
var se_InvocationResultMember = /* @__PURE__ */ __name((input, context) => {
|
|
3968
|
+
return InvocationResultMember.visit(input, {
|
|
3969
|
+
apiResult: /* @__PURE__ */ __name((value) => ({ apiResult: se_ApiResult(value, context) }), "apiResult"),
|
|
3970
|
+
functionResult: /* @__PURE__ */ __name((value) => ({ functionResult: se_FunctionResult(value, context) }), "functionResult"),
|
|
3971
|
+
_: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
|
|
3972
|
+
});
|
|
3973
|
+
}, "se_InvocationResultMember");
|
|
4133
3974
|
var se_InvocationStepPayload = /* @__PURE__ */ __name((input, context) => {
|
|
4134
3975
|
return InvocationStepPayload.visit(input, {
|
|
4135
|
-
contentBlocks: (value) => ({ contentBlocks: se_BedrockSessionContentBlocks(value, context) }),
|
|
4136
|
-
_: (name, value) => ({ [name]: value })
|
|
3976
|
+
contentBlocks: /* @__PURE__ */ __name((value) => ({ contentBlocks: se_BedrockSessionContentBlocks(value, context) }), "contentBlocks"),
|
|
3977
|
+
_: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
|
|
4137
3978
|
});
|
|
4138
3979
|
}, "se_InvocationStepPayload");
|
|
4139
3980
|
var se_KnowledgeBase = /* @__PURE__ */ __name((input, context) => {
|
|
4140
3981
|
return (0, import_smithy_client.take)(input, {
|
|
4141
3982
|
description: [],
|
|
4142
3983
|
knowledgeBaseId: [],
|
|
4143
|
-
retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
3984
|
+
retrievalConfiguration: /* @__PURE__ */ __name((_) => se_KnowledgeBaseRetrievalConfiguration(_, context), "retrievalConfiguration")
|
|
4144
3985
|
});
|
|
4145
3986
|
}, "se_KnowledgeBase");
|
|
4146
3987
|
var se_KnowledgeBaseConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4147
3988
|
return (0, import_smithy_client.take)(input, {
|
|
4148
3989
|
knowledgeBaseId: [],
|
|
4149
|
-
retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
3990
|
+
retrievalConfiguration: /* @__PURE__ */ __name((_) => se_KnowledgeBaseRetrievalConfiguration(_, context), "retrievalConfiguration")
|
|
4150
3991
|
});
|
|
4151
3992
|
}, "se_KnowledgeBaseConfiguration");
|
|
4152
3993
|
var se_KnowledgeBaseConfigurations = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -4156,16 +3997,16 @@ var se_KnowledgeBaseConfigurations = /* @__PURE__ */ __name((input, context) =>
|
|
|
4156
3997
|
}, "se_KnowledgeBaseConfigurations");
|
|
4157
3998
|
var se_KnowledgeBaseRetrievalConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4158
3999
|
return (0, import_smithy_client.take)(input, {
|
|
4159
|
-
vectorSearchConfiguration: (_) => se_KnowledgeBaseVectorSearchConfiguration(_, context)
|
|
4000
|
+
vectorSearchConfiguration: /* @__PURE__ */ __name((_) => se_KnowledgeBaseVectorSearchConfiguration(_, context), "vectorSearchConfiguration")
|
|
4160
4001
|
});
|
|
4161
4002
|
}, "se_KnowledgeBaseRetrievalConfiguration");
|
|
4162
4003
|
var se_KnowledgeBaseRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4163
4004
|
return (0, import_smithy_client.take)(input, {
|
|
4164
|
-
generationConfiguration: (_) => se_GenerationConfiguration(_, context),
|
|
4005
|
+
generationConfiguration: /* @__PURE__ */ __name((_) => se_GenerationConfiguration(_, context), "generationConfiguration"),
|
|
4165
4006
|
knowledgeBaseId: [],
|
|
4166
4007
|
modelArn: [],
|
|
4167
|
-
orchestrationConfiguration: (_) => se_OrchestrationConfiguration(_, context),
|
|
4168
|
-
retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
4008
|
+
orchestrationConfiguration: /* @__PURE__ */ __name((_) => se_OrchestrationConfiguration(_, context), "orchestrationConfiguration"),
|
|
4009
|
+
retrievalConfiguration: /* @__PURE__ */ __name((_) => se_KnowledgeBaseRetrievalConfiguration(_, context), "retrievalConfiguration")
|
|
4169
4010
|
});
|
|
4170
4011
|
}, "se_KnowledgeBaseRetrieveAndGenerateConfiguration");
|
|
4171
4012
|
var se_KnowledgeBases = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -4175,17 +4016,17 @@ var se_KnowledgeBases = /* @__PURE__ */ __name((input, context) => {
|
|
|
4175
4016
|
}, "se_KnowledgeBases");
|
|
4176
4017
|
var se_KnowledgeBaseVectorSearchConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4177
4018
|
return (0, import_smithy_client.take)(input, {
|
|
4178
|
-
filter: (_) => se_RetrievalFilter(_, context),
|
|
4019
|
+
filter: /* @__PURE__ */ __name((_) => se_RetrievalFilter(_, context), "filter"),
|
|
4179
4020
|
implicitFilterConfiguration: import_smithy_client._json,
|
|
4180
4021
|
numberOfResults: [],
|
|
4181
4022
|
overrideSearchType: [],
|
|
4182
|
-
rerankingConfiguration: (_) => se_VectorSearchRerankingConfiguration(_, context)
|
|
4023
|
+
rerankingConfiguration: /* @__PURE__ */ __name((_) => se_VectorSearchRerankingConfiguration(_, context), "rerankingConfiguration")
|
|
4183
4024
|
});
|
|
4184
4025
|
}, "se_KnowledgeBaseVectorSearchConfiguration");
|
|
4185
4026
|
var se_OrchestrationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4186
4027
|
return (0, import_smithy_client.take)(input, {
|
|
4187
|
-
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
4188
|
-
inferenceConfig: (_) => se_InferenceConfig(_, context),
|
|
4028
|
+
additionalModelRequestFields: /* @__PURE__ */ __name((_) => se_AdditionalModelRequestFields(_, context), "additionalModelRequestFields"),
|
|
4029
|
+
inferenceConfig: /* @__PURE__ */ __name((_) => se_InferenceConfig(_, context), "inferenceConfig"),
|
|
4189
4030
|
performanceConfig: import_smithy_client._json,
|
|
4190
4031
|
promptTemplate: import_smithy_client._json,
|
|
4191
4032
|
queryTransformationConfiguration: import_smithy_client._json
|
|
@@ -4193,10 +4034,10 @@ var se_OrchestrationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
|
4193
4034
|
}, "se_OrchestrationConfiguration");
|
|
4194
4035
|
var se_PromptConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4195
4036
|
return (0, import_smithy_client.take)(input, {
|
|
4196
|
-
additionalModelRequestFields: (_) => se_Document(_, context),
|
|
4037
|
+
additionalModelRequestFields: /* @__PURE__ */ __name((_) => se_Document(_, context), "additionalModelRequestFields"),
|
|
4197
4038
|
basePromptTemplate: [],
|
|
4198
4039
|
foundationModel: [],
|
|
4199
|
-
inferenceConfiguration: (_) => se_InferenceConfiguration(_, context),
|
|
4040
|
+
inferenceConfiguration: /* @__PURE__ */ __name((_) => se_InferenceConfiguration(_, context), "inferenceConfiguration"),
|
|
4200
4041
|
parserMode: [],
|
|
4201
4042
|
promptCreationMode: [],
|
|
4202
4043
|
promptState: [],
|
|
@@ -4211,25 +4052,25 @@ var se_PromptConfigurations = /* @__PURE__ */ __name((input, context) => {
|
|
|
4211
4052
|
var se_PromptOverrideConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4212
4053
|
return (0, import_smithy_client.take)(input, {
|
|
4213
4054
|
overrideLambda: [],
|
|
4214
|
-
promptConfigurations: (_) => se_PromptConfigurations(_, context)
|
|
4055
|
+
promptConfigurations: /* @__PURE__ */ __name((_) => se_PromptConfigurations(_, context), "promptConfigurations")
|
|
4215
4056
|
});
|
|
4216
4057
|
}, "se_PromptOverrideConfiguration");
|
|
4217
4058
|
var se_RerankDocument = /* @__PURE__ */ __name((input, context) => {
|
|
4218
4059
|
return (0, import_smithy_client.take)(input, {
|
|
4219
|
-
jsonDocument: (_) => se_Document(_, context),
|
|
4060
|
+
jsonDocument: /* @__PURE__ */ __name((_) => se_Document(_, context), "jsonDocument"),
|
|
4220
4061
|
textDocument: import_smithy_client._json,
|
|
4221
4062
|
type: []
|
|
4222
4063
|
});
|
|
4223
4064
|
}, "se_RerankDocument");
|
|
4224
4065
|
var se_RerankingConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4225
4066
|
return (0, import_smithy_client.take)(input, {
|
|
4226
|
-
bedrockRerankingConfiguration: (_) => se_BedrockRerankingConfiguration(_, context),
|
|
4067
|
+
bedrockRerankingConfiguration: /* @__PURE__ */ __name((_) => se_BedrockRerankingConfiguration(_, context), "bedrockRerankingConfiguration"),
|
|
4227
4068
|
type: []
|
|
4228
4069
|
});
|
|
4229
4070
|
}, "se_RerankingConfiguration");
|
|
4230
4071
|
var se_RerankSource = /* @__PURE__ */ __name((input, context) => {
|
|
4231
4072
|
return (0, import_smithy_client.take)(input, {
|
|
4232
|
-
inlineDocumentSource: (_) => se_RerankDocument(_, context),
|
|
4073
|
+
inlineDocumentSource: /* @__PURE__ */ __name((_) => se_RerankDocument(_, context), "inlineDocumentSource"),
|
|
4233
4074
|
type: []
|
|
4234
4075
|
});
|
|
4235
4076
|
}, "se_RerankSource");
|
|
@@ -4238,22 +4079,31 @@ var se_RerankSourcesList = /* @__PURE__ */ __name((input, context) => {
|
|
|
4238
4079
|
return se_RerankSource(entry, context);
|
|
4239
4080
|
});
|
|
4240
4081
|
}, "se_RerankSourcesList");
|
|
4082
|
+
var se_ResponseBody = /* @__PURE__ */ __name((input, context) => {
|
|
4083
|
+
return Object.entries(input).reduce((acc, [key, value]) => {
|
|
4084
|
+
if (value === null) {
|
|
4085
|
+
return acc;
|
|
4086
|
+
}
|
|
4087
|
+
acc[key] = se_ContentBody(value, context);
|
|
4088
|
+
return acc;
|
|
4089
|
+
}, {});
|
|
4090
|
+
}, "se_ResponseBody");
|
|
4241
4091
|
var se_RetrievalFilter = /* @__PURE__ */ __name((input, context) => {
|
|
4242
4092
|
return RetrievalFilter.visit(input, {
|
|
4243
|
-
andAll: (value) => ({ andAll: se_RetrievalFilterList(value, context) }),
|
|
4244
|
-
equals: (value) => ({ equals: se_FilterAttribute(value, context) }),
|
|
4245
|
-
greaterThan: (value) => ({ greaterThan: se_FilterAttribute(value, context) }),
|
|
4246
|
-
greaterThanOrEquals: (value) => ({ greaterThanOrEquals: se_FilterAttribute(value, context) }),
|
|
4247
|
-
in: (value) => ({ in: se_FilterAttribute(value, context) }),
|
|
4248
|
-
lessThan: (value) => ({ lessThan: se_FilterAttribute(value, context) }),
|
|
4249
|
-
lessThanOrEquals: (value) => ({ lessThanOrEquals: se_FilterAttribute(value, context) }),
|
|
4250
|
-
listContains: (value) => ({ listContains: se_FilterAttribute(value, context) }),
|
|
4251
|
-
notEquals: (value) => ({ notEquals: se_FilterAttribute(value, context) }),
|
|
4252
|
-
notIn: (value) => ({ notIn: se_FilterAttribute(value, context) }),
|
|
4253
|
-
orAll: (value) => ({ orAll: se_RetrievalFilterList(value, context) }),
|
|
4254
|
-
startsWith: (value) => ({ startsWith: se_FilterAttribute(value, context) }),
|
|
4255
|
-
stringContains: (value) => ({ stringContains: se_FilterAttribute(value, context) }),
|
|
4256
|
-
_: (name, value) => ({ [name]: value })
|
|
4093
|
+
andAll: /* @__PURE__ */ __name((value) => ({ andAll: se_RetrievalFilterList(value, context) }), "andAll"),
|
|
4094
|
+
equals: /* @__PURE__ */ __name((value) => ({ equals: se_FilterAttribute(value, context) }), "equals"),
|
|
4095
|
+
greaterThan: /* @__PURE__ */ __name((value) => ({ greaterThan: se_FilterAttribute(value, context) }), "greaterThan"),
|
|
4096
|
+
greaterThanOrEquals: /* @__PURE__ */ __name((value) => ({ greaterThanOrEquals: se_FilterAttribute(value, context) }), "greaterThanOrEquals"),
|
|
4097
|
+
in: /* @__PURE__ */ __name((value) => ({ in: se_FilterAttribute(value, context) }), "in"),
|
|
4098
|
+
lessThan: /* @__PURE__ */ __name((value) => ({ lessThan: se_FilterAttribute(value, context) }), "lessThan"),
|
|
4099
|
+
lessThanOrEquals: /* @__PURE__ */ __name((value) => ({ lessThanOrEquals: se_FilterAttribute(value, context) }), "lessThanOrEquals"),
|
|
4100
|
+
listContains: /* @__PURE__ */ __name((value) => ({ listContains: se_FilterAttribute(value, context) }), "listContains"),
|
|
4101
|
+
notEquals: /* @__PURE__ */ __name((value) => ({ notEquals: se_FilterAttribute(value, context) }), "notEquals"),
|
|
4102
|
+
notIn: /* @__PURE__ */ __name((value) => ({ notIn: se_FilterAttribute(value, context) }), "notIn"),
|
|
4103
|
+
orAll: /* @__PURE__ */ __name((value) => ({ orAll: se_RetrievalFilterList(value, context) }), "orAll"),
|
|
4104
|
+
startsWith: /* @__PURE__ */ __name((value) => ({ startsWith: se_FilterAttribute(value, context) }), "startsWith"),
|
|
4105
|
+
stringContains: /* @__PURE__ */ __name((value) => ({ stringContains: se_FilterAttribute(value, context) }), "stringContains"),
|
|
4106
|
+
_: /* @__PURE__ */ __name((name, value) => ({ [name]: value }), "_")
|
|
4257
4107
|
});
|
|
4258
4108
|
}, "se_RetrievalFilter");
|
|
4259
4109
|
var se_RetrievalFilterList = /* @__PURE__ */ __name((input, context) => {
|
|
@@ -4263,19 +4113,24 @@ var se_RetrievalFilterList = /* @__PURE__ */ __name((input, context) => {
|
|
|
4263
4113
|
}, "se_RetrievalFilterList");
|
|
4264
4114
|
var se_RetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4265
4115
|
return (0, import_smithy_client.take)(input, {
|
|
4266
|
-
externalSourcesConfiguration: (_) => se_ExternalSourcesRetrieveAndGenerateConfiguration(_, context),
|
|
4267
|
-
knowledgeBaseConfiguration: (_) => se_KnowledgeBaseRetrieveAndGenerateConfiguration(_, context),
|
|
4116
|
+
externalSourcesConfiguration: /* @__PURE__ */ __name((_) => se_ExternalSourcesRetrieveAndGenerateConfiguration(_, context), "externalSourcesConfiguration"),
|
|
4117
|
+
knowledgeBaseConfiguration: /* @__PURE__ */ __name((_) => se_KnowledgeBaseRetrieveAndGenerateConfiguration(_, context), "knowledgeBaseConfiguration"),
|
|
4268
4118
|
type: []
|
|
4269
4119
|
});
|
|
4270
4120
|
}, "se_RetrieveAndGenerateConfiguration");
|
|
4121
|
+
var se_ReturnControlInvocationResults = /* @__PURE__ */ __name((input, context) => {
|
|
4122
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
4123
|
+
return se_InvocationResultMember(entry, context);
|
|
4124
|
+
});
|
|
4125
|
+
}, "se_ReturnControlInvocationResults");
|
|
4271
4126
|
var se_SessionState = /* @__PURE__ */ __name((input, context) => {
|
|
4272
4127
|
return (0, import_smithy_client.take)(input, {
|
|
4273
4128
|
conversationHistory: import_smithy_client._json,
|
|
4274
|
-
files: (_) => se_InputFiles(_, context),
|
|
4129
|
+
files: /* @__PURE__ */ __name((_) => se_InputFiles(_, context), "files"),
|
|
4275
4130
|
invocationId: [],
|
|
4276
|
-
knowledgeBaseConfigurations: (_) => se_KnowledgeBaseConfigurations(_, context),
|
|
4131
|
+
knowledgeBaseConfigurations: /* @__PURE__ */ __name((_) => se_KnowledgeBaseConfigurations(_, context), "knowledgeBaseConfigurations"),
|
|
4277
4132
|
promptSessionAttributes: import_smithy_client._json,
|
|
4278
|
-
returnControlInvocationResults:
|
|
4133
|
+
returnControlInvocationResults: /* @__PURE__ */ __name((_) => se_ReturnControlInvocationResults(_, context), "returnControlInvocationResults"),
|
|
4279
4134
|
sessionAttributes: import_smithy_client._json
|
|
4280
4135
|
});
|
|
4281
4136
|
}, "se_SessionState");
|
|
@@ -4290,25 +4145,39 @@ var se_TextInferenceConfig = /* @__PURE__ */ __name((input, context) => {
|
|
|
4290
4145
|
var se_VectorSearchBedrockRerankingConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4291
4146
|
return (0, import_smithy_client.take)(input, {
|
|
4292
4147
|
metadataConfiguration: import_smithy_client._json,
|
|
4293
|
-
modelConfiguration: (_) => se_VectorSearchBedrockRerankingModelConfiguration(_, context),
|
|
4148
|
+
modelConfiguration: /* @__PURE__ */ __name((_) => se_VectorSearchBedrockRerankingModelConfiguration(_, context), "modelConfiguration"),
|
|
4294
4149
|
numberOfRerankedResults: []
|
|
4295
4150
|
});
|
|
4296
4151
|
}, "se_VectorSearchBedrockRerankingConfiguration");
|
|
4297
4152
|
var se_VectorSearchBedrockRerankingModelConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4298
4153
|
return (0, import_smithy_client.take)(input, {
|
|
4299
|
-
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
4154
|
+
additionalModelRequestFields: /* @__PURE__ */ __name((_) => se_AdditionalModelRequestFields(_, context), "additionalModelRequestFields"),
|
|
4300
4155
|
modelArn: []
|
|
4301
4156
|
});
|
|
4302
4157
|
}, "se_VectorSearchBedrockRerankingModelConfiguration");
|
|
4303
4158
|
var se_VectorSearchRerankingConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
4304
4159
|
return (0, import_smithy_client.take)(input, {
|
|
4305
|
-
bedrockRerankingConfiguration: (_) => se_VectorSearchBedrockRerankingConfiguration(_, context),
|
|
4160
|
+
bedrockRerankingConfiguration: /* @__PURE__ */ __name((_) => se_VectorSearchBedrockRerankingConfiguration(_, context), "bedrockRerankingConfiguration"),
|
|
4306
4161
|
type: []
|
|
4307
4162
|
});
|
|
4308
4163
|
}, "se_VectorSearchRerankingConfiguration");
|
|
4309
4164
|
var se_Document = /* @__PURE__ */ __name((input, context) => {
|
|
4310
4165
|
return input;
|
|
4311
4166
|
}, "se_Document");
|
|
4167
|
+
var de_AgentCollaboratorInputPayload = /* @__PURE__ */ __name((output, context) => {
|
|
4168
|
+
return (0, import_smithy_client.take)(output, {
|
|
4169
|
+
returnControlResults: /* @__PURE__ */ __name((_) => de_ReturnControlResults(_, context), "returnControlResults"),
|
|
4170
|
+
text: import_smithy_client.expectString,
|
|
4171
|
+
type: import_smithy_client.expectString
|
|
4172
|
+
});
|
|
4173
|
+
}, "de_AgentCollaboratorInputPayload");
|
|
4174
|
+
var de_AgentCollaboratorInvocationInput = /* @__PURE__ */ __name((output, context) => {
|
|
4175
|
+
return (0, import_smithy_client.take)(output, {
|
|
4176
|
+
agentCollaboratorAliasArn: import_smithy_client.expectString,
|
|
4177
|
+
agentCollaboratorName: import_smithy_client.expectString,
|
|
4178
|
+
input: /* @__PURE__ */ __name((_) => de_AgentCollaboratorInputPayload(_, context), "input")
|
|
4179
|
+
});
|
|
4180
|
+
}, "de_AgentCollaboratorInvocationInput");
|
|
4312
4181
|
var de_AgentCollaboratorInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4313
4182
|
return (0, import_smithy_client.take)(output, {
|
|
4314
4183
|
agentCollaboratorAliasArn: import_smithy_client.expectString,
|
|
@@ -4316,9 +4185,21 @@ var de_AgentCollaboratorInvocationOutput = /* @__PURE__ */ __name((output, conte
|
|
|
4316
4185
|
output: import_smithy_client._json
|
|
4317
4186
|
});
|
|
4318
4187
|
}, "de_AgentCollaboratorInvocationOutput");
|
|
4188
|
+
var de_ApiResult = /* @__PURE__ */ __name((output, context) => {
|
|
4189
|
+
return (0, import_smithy_client.take)(output, {
|
|
4190
|
+
actionGroup: import_smithy_client.expectString,
|
|
4191
|
+
agentId: import_smithy_client.expectString,
|
|
4192
|
+
apiPath: import_smithy_client.expectString,
|
|
4193
|
+
confirmationState: import_smithy_client.expectString,
|
|
4194
|
+
httpMethod: import_smithy_client.expectString,
|
|
4195
|
+
httpStatusCode: import_smithy_client.expectInt32,
|
|
4196
|
+
responseBody: /* @__PURE__ */ __name((_) => de_ResponseBody(_, context), "responseBody"),
|
|
4197
|
+
responseState: import_smithy_client.expectString
|
|
4198
|
+
});
|
|
4199
|
+
}, "de_ApiResult");
|
|
4319
4200
|
var de_Attribution = /* @__PURE__ */ __name((output, context) => {
|
|
4320
4201
|
return (0, import_smithy_client.take)(output, {
|
|
4321
|
-
citations: (_) => de_Citations(_, context)
|
|
4202
|
+
citations: /* @__PURE__ */ __name((_) => de_Citations(_, context), "citations")
|
|
4322
4203
|
});
|
|
4323
4204
|
}, "de_Attribution");
|
|
4324
4205
|
var de_BedrockSessionContentBlock = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -4341,14 +4222,14 @@ var de_BedrockSessionContentBlocks = /* @__PURE__ */ __name((output, context) =>
|
|
|
4341
4222
|
var de_Citation = /* @__PURE__ */ __name((output, context) => {
|
|
4342
4223
|
return (0, import_smithy_client.take)(output, {
|
|
4343
4224
|
generatedResponsePart: import_smithy_client._json,
|
|
4344
|
-
retrievedReferences: (_) => de_RetrievedReferences(_, context)
|
|
4225
|
+
retrievedReferences: /* @__PURE__ */ __name((_) => de_RetrievedReferences(_, context), "retrievedReferences")
|
|
4345
4226
|
});
|
|
4346
4227
|
}, "de_Citation");
|
|
4347
4228
|
var de_CitationEvent = /* @__PURE__ */ __name((output, context) => {
|
|
4348
4229
|
return (0, import_smithy_client.take)(output, {
|
|
4349
|
-
citation: (_) => de_Citation(_, context),
|
|
4230
|
+
citation: /* @__PURE__ */ __name((_) => de_Citation(_, context), "citation"),
|
|
4350
4231
|
generatedResponsePart: import_smithy_client._json,
|
|
4351
|
-
retrievedReferences: (_) => de_RetrievedReferences(_, context)
|
|
4232
|
+
retrievedReferences: /* @__PURE__ */ __name((_) => de_RetrievedReferences(_, context), "retrievedReferences")
|
|
4352
4233
|
});
|
|
4353
4234
|
}, "de_CitationEvent");
|
|
4354
4235
|
var de_Citations = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -4357,9 +4238,15 @@ var de_Citations = /* @__PURE__ */ __name((output, context) => {
|
|
|
4357
4238
|
});
|
|
4358
4239
|
return retVal;
|
|
4359
4240
|
}, "de_Citations");
|
|
4241
|
+
var de_ContentBody = /* @__PURE__ */ __name((output, context) => {
|
|
4242
|
+
return (0, import_smithy_client.take)(output, {
|
|
4243
|
+
body: import_smithy_client.expectString,
|
|
4244
|
+
images: /* @__PURE__ */ __name((_) => de_ImageInputs(_, context), "images")
|
|
4245
|
+
});
|
|
4246
|
+
}, "de_ContentBody");
|
|
4360
4247
|
var de_FilePart = /* @__PURE__ */ __name((output, context) => {
|
|
4361
4248
|
return (0, import_smithy_client.take)(output, {
|
|
4362
|
-
files: (_) => de_OutputFiles(_, context)
|
|
4249
|
+
files: /* @__PURE__ */ __name((_) => de_OutputFiles(_, context), "files")
|
|
4363
4250
|
});
|
|
4364
4251
|
}, "de_FilePart");
|
|
4365
4252
|
var de_FlowMultiTurnInputContent = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -4372,7 +4259,7 @@ var de_FlowMultiTurnInputContent = /* @__PURE__ */ __name((output, context) => {
|
|
|
4372
4259
|
}, "de_FlowMultiTurnInputContent");
|
|
4373
4260
|
var de_FlowMultiTurnInputRequestEvent = /* @__PURE__ */ __name((output, context) => {
|
|
4374
4261
|
return (0, import_smithy_client.take)(output, {
|
|
4375
|
-
content: (_) => de_FlowMultiTurnInputContent((0, import_core2.awsExpectUnion)(_), context),
|
|
4262
|
+
content: /* @__PURE__ */ __name((_) => de_FlowMultiTurnInputContent((0, import_core2.awsExpectUnion)(_), context), "content"),
|
|
4376
4263
|
nodeName: import_smithy_client.expectString,
|
|
4377
4264
|
nodeType: import_smithy_client.expectString
|
|
4378
4265
|
});
|
|
@@ -4387,7 +4274,7 @@ var de_FlowOutputContent = /* @__PURE__ */ __name((output, context) => {
|
|
|
4387
4274
|
}, "de_FlowOutputContent");
|
|
4388
4275
|
var de_FlowOutputEvent = /* @__PURE__ */ __name((output, context) => {
|
|
4389
4276
|
return (0, import_smithy_client.take)(output, {
|
|
4390
|
-
content: (_) => de_FlowOutputContent((0, import_core2.awsExpectUnion)(_), context),
|
|
4277
|
+
content: /* @__PURE__ */ __name((_) => de_FlowOutputContent((0, import_core2.awsExpectUnion)(_), context), "content"),
|
|
4391
4278
|
nodeName: import_smithy_client.expectString,
|
|
4392
4279
|
nodeType: import_smithy_client.expectString
|
|
4393
4280
|
});
|
|
@@ -4414,12 +4301,12 @@ var de_FlowTraceConditionNodeResultEvent = /* @__PURE__ */ __name((output, conte
|
|
|
4414
4301
|
return (0, import_smithy_client.take)(output, {
|
|
4415
4302
|
nodeName: import_smithy_client.expectString,
|
|
4416
4303
|
satisfiedConditions: import_smithy_client._json,
|
|
4417
|
-
timestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
4304
|
+
timestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "timestamp")
|
|
4418
4305
|
});
|
|
4419
4306
|
}, "de_FlowTraceConditionNodeResultEvent");
|
|
4420
4307
|
var de_FlowTraceEvent = /* @__PURE__ */ __name((output, context) => {
|
|
4421
4308
|
return (0, import_smithy_client.take)(output, {
|
|
4422
|
-
trace: (_) => de_FlowTrace((0, import_core2.awsExpectUnion)(_), context)
|
|
4309
|
+
trace: /* @__PURE__ */ __name((_) => de_FlowTrace((0, import_core2.awsExpectUnion)(_), context), "trace")
|
|
4423
4310
|
});
|
|
4424
4311
|
}, "de_FlowTraceEvent");
|
|
4425
4312
|
var de_FlowTraceNodeInputContent = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -4432,14 +4319,14 @@ var de_FlowTraceNodeInputContent = /* @__PURE__ */ __name((output, context) => {
|
|
|
4432
4319
|
}, "de_FlowTraceNodeInputContent");
|
|
4433
4320
|
var de_FlowTraceNodeInputEvent = /* @__PURE__ */ __name((output, context) => {
|
|
4434
4321
|
return (0, import_smithy_client.take)(output, {
|
|
4435
|
-
fields: (_) => de_FlowTraceNodeInputFields(_, context),
|
|
4322
|
+
fields: /* @__PURE__ */ __name((_) => de_FlowTraceNodeInputFields(_, context), "fields"),
|
|
4436
4323
|
nodeName: import_smithy_client.expectString,
|
|
4437
|
-
timestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
4324
|
+
timestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "timestamp")
|
|
4438
4325
|
});
|
|
4439
4326
|
}, "de_FlowTraceNodeInputEvent");
|
|
4440
4327
|
var de_FlowTraceNodeInputField = /* @__PURE__ */ __name((output, context) => {
|
|
4441
4328
|
return (0, import_smithy_client.take)(output, {
|
|
4442
|
-
content: (_) => de_FlowTraceNodeInputContent((0, import_core2.awsExpectUnion)(_), context),
|
|
4329
|
+
content: /* @__PURE__ */ __name((_) => de_FlowTraceNodeInputContent((0, import_core2.awsExpectUnion)(_), context), "content"),
|
|
4443
4330
|
nodeInputName: import_smithy_client.expectString
|
|
4444
4331
|
});
|
|
4445
4332
|
}, "de_FlowTraceNodeInputField");
|
|
@@ -4459,14 +4346,14 @@ var de_FlowTraceNodeOutputContent = /* @__PURE__ */ __name((output, context) =>
|
|
|
4459
4346
|
}, "de_FlowTraceNodeOutputContent");
|
|
4460
4347
|
var de_FlowTraceNodeOutputEvent = /* @__PURE__ */ __name((output, context) => {
|
|
4461
4348
|
return (0, import_smithy_client.take)(output, {
|
|
4462
|
-
fields: (_) => de_FlowTraceNodeOutputFields(_, context),
|
|
4349
|
+
fields: /* @__PURE__ */ __name((_) => de_FlowTraceNodeOutputFields(_, context), "fields"),
|
|
4463
4350
|
nodeName: import_smithy_client.expectString,
|
|
4464
|
-
timestamp: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_))
|
|
4351
|
+
timestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "timestamp")
|
|
4465
4352
|
});
|
|
4466
4353
|
}, "de_FlowTraceNodeOutputEvent");
|
|
4467
4354
|
var de_FlowTraceNodeOutputField = /* @__PURE__ */ __name((output, context) => {
|
|
4468
4355
|
return (0, import_smithy_client.take)(output, {
|
|
4469
|
-
content: (_) => de_FlowTraceNodeOutputContent((0, import_core2.awsExpectUnion)(_), context),
|
|
4356
|
+
content: /* @__PURE__ */ __name((_) => de_FlowTraceNodeOutputContent((0, import_core2.awsExpectUnion)(_), context), "content"),
|
|
4470
4357
|
nodeOutputName: import_smithy_client.expectString
|
|
4471
4358
|
});
|
|
4472
4359
|
}, "de_FlowTraceNodeOutputField");
|
|
@@ -4476,12 +4363,42 @@ var de_FlowTraceNodeOutputFields = /* @__PURE__ */ __name((output, context) => {
|
|
|
4476
4363
|
});
|
|
4477
4364
|
return retVal;
|
|
4478
4365
|
}, "de_FlowTraceNodeOutputFields");
|
|
4366
|
+
var de_FunctionResult = /* @__PURE__ */ __name((output, context) => {
|
|
4367
|
+
return (0, import_smithy_client.take)(output, {
|
|
4368
|
+
actionGroup: import_smithy_client.expectString,
|
|
4369
|
+
agentId: import_smithy_client.expectString,
|
|
4370
|
+
confirmationState: import_smithy_client.expectString,
|
|
4371
|
+
function: import_smithy_client.expectString,
|
|
4372
|
+
responseBody: /* @__PURE__ */ __name((_) => de_ResponseBody(_, context), "responseBody"),
|
|
4373
|
+
responseState: import_smithy_client.expectString
|
|
4374
|
+
});
|
|
4375
|
+
}, "de_FunctionResult");
|
|
4479
4376
|
var de_ImageBlock = /* @__PURE__ */ __name((output, context) => {
|
|
4480
4377
|
return (0, import_smithy_client.take)(output, {
|
|
4481
4378
|
format: import_smithy_client.expectString,
|
|
4482
|
-
source: (_) => de_ImageSource((0, import_core2.awsExpectUnion)(_), context)
|
|
4379
|
+
source: /* @__PURE__ */ __name((_) => de_ImageSource((0, import_core2.awsExpectUnion)(_), context), "source")
|
|
4483
4380
|
});
|
|
4484
4381
|
}, "de_ImageBlock");
|
|
4382
|
+
var de_ImageInput = /* @__PURE__ */ __name((output, context) => {
|
|
4383
|
+
return (0, import_smithy_client.take)(output, {
|
|
4384
|
+
format: import_smithy_client.expectString,
|
|
4385
|
+
source: /* @__PURE__ */ __name((_) => de_ImageInputSource((0, import_core2.awsExpectUnion)(_), context), "source")
|
|
4386
|
+
});
|
|
4387
|
+
}, "de_ImageInput");
|
|
4388
|
+
var de_ImageInputs = /* @__PURE__ */ __name((output, context) => {
|
|
4389
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
4390
|
+
return de_ImageInput(entry, context);
|
|
4391
|
+
});
|
|
4392
|
+
return retVal;
|
|
4393
|
+
}, "de_ImageInputs");
|
|
4394
|
+
var de_ImageInputSource = /* @__PURE__ */ __name((output, context) => {
|
|
4395
|
+
if (output.bytes != null) {
|
|
4396
|
+
return {
|
|
4397
|
+
bytes: context.base64Decoder(output.bytes)
|
|
4398
|
+
};
|
|
4399
|
+
}
|
|
4400
|
+
return { $unknown: Object.entries(output)[0] };
|
|
4401
|
+
}, "de_ImageInputSource");
|
|
4485
4402
|
var de_ImageSource = /* @__PURE__ */ __name((output, context) => {
|
|
4486
4403
|
if (output.bytes != null) {
|
|
4487
4404
|
return {
|
|
@@ -4506,27 +4423,50 @@ var de_InferenceConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
|
4506
4423
|
}, "de_InferenceConfiguration");
|
|
4507
4424
|
var de_InlineAgentFilePart = /* @__PURE__ */ __name((output, context) => {
|
|
4508
4425
|
return (0, import_smithy_client.take)(output, {
|
|
4509
|
-
files: (_) => de_OutputFiles(_, context)
|
|
4426
|
+
files: /* @__PURE__ */ __name((_) => de_OutputFiles(_, context), "files")
|
|
4510
4427
|
});
|
|
4511
4428
|
}, "de_InlineAgentFilePart");
|
|
4512
4429
|
var de_InlineAgentPayloadPart = /* @__PURE__ */ __name((output, context) => {
|
|
4513
4430
|
return (0, import_smithy_client.take)(output, {
|
|
4514
|
-
attribution: (_) => de_Attribution(_, context),
|
|
4431
|
+
attribution: /* @__PURE__ */ __name((_) => de_Attribution(_, context), "attribution"),
|
|
4515
4432
|
bytes: context.base64Decoder
|
|
4516
4433
|
});
|
|
4517
4434
|
}, "de_InlineAgentPayloadPart");
|
|
4518
4435
|
var de_InlineAgentTracePart = /* @__PURE__ */ __name((output, context) => {
|
|
4519
4436
|
return (0, import_smithy_client.take)(output, {
|
|
4520
4437
|
sessionId: import_smithy_client.expectString,
|
|
4521
|
-
trace: (_) => de_Trace((0, import_core2.awsExpectUnion)(_), context)
|
|
4438
|
+
trace: /* @__PURE__ */ __name((_) => de_Trace((0, import_core2.awsExpectUnion)(_), context), "trace")
|
|
4522
4439
|
});
|
|
4523
4440
|
}, "de_InlineAgentTracePart");
|
|
4441
|
+
var de_InvocationInput = /* @__PURE__ */ __name((output, context) => {
|
|
4442
|
+
return (0, import_smithy_client.take)(output, {
|
|
4443
|
+
actionGroupInvocationInput: import_smithy_client._json,
|
|
4444
|
+
agentCollaboratorInvocationInput: /* @__PURE__ */ __name((_) => de_AgentCollaboratorInvocationInput(_, context), "agentCollaboratorInvocationInput"),
|
|
4445
|
+
codeInterpreterInvocationInput: import_smithy_client._json,
|
|
4446
|
+
invocationType: import_smithy_client.expectString,
|
|
4447
|
+
knowledgeBaseLookupInput: import_smithy_client._json,
|
|
4448
|
+
traceId: import_smithy_client.expectString
|
|
4449
|
+
});
|
|
4450
|
+
}, "de_InvocationInput");
|
|
4451
|
+
var de_InvocationResultMember = /* @__PURE__ */ __name((output, context) => {
|
|
4452
|
+
if (output.apiResult != null) {
|
|
4453
|
+
return {
|
|
4454
|
+
apiResult: de_ApiResult(output.apiResult, context)
|
|
4455
|
+
};
|
|
4456
|
+
}
|
|
4457
|
+
if (output.functionResult != null) {
|
|
4458
|
+
return {
|
|
4459
|
+
functionResult: de_FunctionResult(output.functionResult, context)
|
|
4460
|
+
};
|
|
4461
|
+
}
|
|
4462
|
+
return { $unknown: Object.entries(output)[0] };
|
|
4463
|
+
}, "de_InvocationResultMember");
|
|
4524
4464
|
var de_InvocationStep = /* @__PURE__ */ __name((output, context) => {
|
|
4525
4465
|
return (0, import_smithy_client.take)(output, {
|
|
4526
4466
|
invocationId: import_smithy_client.expectString,
|
|
4527
4467
|
invocationStepId: import_smithy_client.expectString,
|
|
4528
|
-
invocationStepTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
4529
|
-
payload: (_) => de_InvocationStepPayload((0, import_core2.awsExpectUnion)(_), context),
|
|
4468
|
+
invocationStepTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "invocationStepTime"),
|
|
4469
|
+
payload: /* @__PURE__ */ __name((_) => de_InvocationStepPayload((0, import_core2.awsExpectUnion)(_), context), "payload"),
|
|
4530
4470
|
sessionId: import_smithy_client.expectString
|
|
4531
4471
|
});
|
|
4532
4472
|
}, "de_InvocationStep");
|
|
@@ -4548,7 +4488,7 @@ var de_InvocationStepSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
4548
4488
|
return (0, import_smithy_client.take)(output, {
|
|
4549
4489
|
invocationId: import_smithy_client.expectString,
|
|
4550
4490
|
invocationStepId: import_smithy_client.expectString,
|
|
4551
|
-
invocationStepTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
4491
|
+
invocationStepTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "invocationStepTime"),
|
|
4552
4492
|
sessionId: import_smithy_client.expectString
|
|
4553
4493
|
});
|
|
4554
4494
|
}, "de_InvocationStepSummary");
|
|
@@ -4560,21 +4500,21 @@ var de_InvocationSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
|
4560
4500
|
}, "de_InvocationSummaries");
|
|
4561
4501
|
var de_InvocationSummary = /* @__PURE__ */ __name((output, context) => {
|
|
4562
4502
|
return (0, import_smithy_client.take)(output, {
|
|
4563
|
-
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
4503
|
+
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
|
|
4564
4504
|
invocationId: import_smithy_client.expectString,
|
|
4565
4505
|
sessionId: import_smithy_client.expectString
|
|
4566
4506
|
});
|
|
4567
4507
|
}, "de_InvocationSummary");
|
|
4568
4508
|
var de_KnowledgeBaseLookupOutput = /* @__PURE__ */ __name((output, context) => {
|
|
4569
4509
|
return (0, import_smithy_client.take)(output, {
|
|
4570
|
-
retrievedReferences: (_) => de_RetrievedReferences(_, context)
|
|
4510
|
+
retrievedReferences: /* @__PURE__ */ __name((_) => de_RetrievedReferences(_, context), "retrievedReferences")
|
|
4571
4511
|
});
|
|
4572
4512
|
}, "de_KnowledgeBaseLookupOutput");
|
|
4573
4513
|
var de_KnowledgeBaseRetrievalResult = /* @__PURE__ */ __name((output, context) => {
|
|
4574
4514
|
return (0, import_smithy_client.take)(output, {
|
|
4575
4515
|
content: import_smithy_client._json,
|
|
4576
4516
|
location: import_smithy_client._json,
|
|
4577
|
-
metadata: (_) => de_RetrievalResultMetadata(_, context),
|
|
4517
|
+
metadata: /* @__PURE__ */ __name((_) => de_RetrievalResultMetadata(_, context), "metadata"),
|
|
4578
4518
|
score: import_smithy_client.limitedParseDouble
|
|
4579
4519
|
});
|
|
4580
4520
|
}, "de_KnowledgeBaseRetrievalResult");
|
|
@@ -4601,16 +4541,16 @@ var de_Memory = /* @__PURE__ */ __name((output, context) => {
|
|
|
4601
4541
|
var de_MemorySessionSummary = /* @__PURE__ */ __name((output, context) => {
|
|
4602
4542
|
return (0, import_smithy_client.take)(output, {
|
|
4603
4543
|
memoryId: import_smithy_client.expectString,
|
|
4604
|
-
sessionExpiryTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
4544
|
+
sessionExpiryTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "sessionExpiryTime"),
|
|
4605
4545
|
sessionId: import_smithy_client.expectString,
|
|
4606
|
-
sessionStartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
4546
|
+
sessionStartTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "sessionStartTime"),
|
|
4607
4547
|
summaryText: import_smithy_client.expectString
|
|
4608
4548
|
});
|
|
4609
4549
|
}, "de_MemorySessionSummary");
|
|
4610
4550
|
var de_ModelInvocationInput = /* @__PURE__ */ __name((output, context) => {
|
|
4611
4551
|
return (0, import_smithy_client.take)(output, {
|
|
4612
4552
|
foundationModel: import_smithy_client.expectString,
|
|
4613
|
-
inferenceConfiguration: (_) => de_InferenceConfiguration(_, context),
|
|
4553
|
+
inferenceConfiguration: /* @__PURE__ */ __name((_) => de_InferenceConfiguration(_, context), "inferenceConfiguration"),
|
|
4614
4554
|
overrideLambda: import_smithy_client.expectString,
|
|
4615
4555
|
parserMode: import_smithy_client.expectString,
|
|
4616
4556
|
promptCreationMode: import_smithy_client.expectString,
|
|
@@ -4622,10 +4562,10 @@ var de_ModelInvocationInput = /* @__PURE__ */ __name((output, context) => {
|
|
|
4622
4562
|
var de_Observation = /* @__PURE__ */ __name((output, context) => {
|
|
4623
4563
|
return (0, import_smithy_client.take)(output, {
|
|
4624
4564
|
actionGroupInvocationOutput: import_smithy_client._json,
|
|
4625
|
-
agentCollaboratorInvocationOutput: (_) => de_AgentCollaboratorInvocationOutput(_, context),
|
|
4565
|
+
agentCollaboratorInvocationOutput: /* @__PURE__ */ __name((_) => de_AgentCollaboratorInvocationOutput(_, context), "agentCollaboratorInvocationOutput"),
|
|
4626
4566
|
codeInterpreterInvocationOutput: import_smithy_client._json,
|
|
4627
4567
|
finalResponse: import_smithy_client._json,
|
|
4628
|
-
knowledgeBaseLookupOutput: (_) => de_KnowledgeBaseLookupOutput(_, context),
|
|
4568
|
+
knowledgeBaseLookupOutput: /* @__PURE__ */ __name((_) => de_KnowledgeBaseLookupOutput(_, context), "knowledgeBaseLookupOutput"),
|
|
4629
4569
|
repromptResponse: import_smithy_client._json,
|
|
4630
4570
|
traceId: import_smithy_client.expectString,
|
|
4631
4571
|
type: import_smithy_client.expectString
|
|
@@ -4635,14 +4575,14 @@ var de_OrchestrationModelInvocationOutput = /* @__PURE__ */ __name((output, cont
|
|
|
4635
4575
|
return (0, import_smithy_client.take)(output, {
|
|
4636
4576
|
metadata: import_smithy_client._json,
|
|
4637
4577
|
rawResponse: import_smithy_client._json,
|
|
4638
|
-
reasoningContent: (_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context),
|
|
4578
|
+
reasoningContent: /* @__PURE__ */ __name((_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context), "reasoningContent"),
|
|
4639
4579
|
traceId: import_smithy_client.expectString
|
|
4640
4580
|
});
|
|
4641
4581
|
}, "de_OrchestrationModelInvocationOutput");
|
|
4642
4582
|
var de_OrchestrationTrace = /* @__PURE__ */ __name((output, context) => {
|
|
4643
4583
|
if (output.invocationInput != null) {
|
|
4644
4584
|
return {
|
|
4645
|
-
invocationInput: (
|
|
4585
|
+
invocationInput: de_InvocationInput(output.invocationInput, context)
|
|
4646
4586
|
};
|
|
4647
4587
|
}
|
|
4648
4588
|
if (output.modelInvocationInput != null) {
|
|
@@ -4682,7 +4622,7 @@ var de_OutputFiles = /* @__PURE__ */ __name((output, context) => {
|
|
|
4682
4622
|
}, "de_OutputFiles");
|
|
4683
4623
|
var de_PayloadPart = /* @__PURE__ */ __name((output, context) => {
|
|
4684
4624
|
return (0, import_smithy_client.take)(output, {
|
|
4685
|
-
attribution: (_) => de_Attribution(_, context),
|
|
4625
|
+
attribution: /* @__PURE__ */ __name((_) => de_Attribution(_, context), "attribution"),
|
|
4686
4626
|
bytes: context.base64Decoder
|
|
4687
4627
|
});
|
|
4688
4628
|
}, "de_PayloadPart");
|
|
@@ -4691,7 +4631,7 @@ var de_PostProcessingModelInvocationOutput = /* @__PURE__ */ __name((output, con
|
|
|
4691
4631
|
metadata: import_smithy_client._json,
|
|
4692
4632
|
parsedResponse: import_smithy_client._json,
|
|
4693
4633
|
rawResponse: import_smithy_client._json,
|
|
4694
|
-
reasoningContent: (_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context),
|
|
4634
|
+
reasoningContent: /* @__PURE__ */ __name((_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context), "reasoningContent"),
|
|
4695
4635
|
traceId: import_smithy_client.expectString
|
|
4696
4636
|
});
|
|
4697
4637
|
}, "de_PostProcessingModelInvocationOutput");
|
|
@@ -4713,7 +4653,7 @@ var de_PreProcessingModelInvocationOutput = /* @__PURE__ */ __name((output, cont
|
|
|
4713
4653
|
metadata: import_smithy_client._json,
|
|
4714
4654
|
parsedResponse: import_smithy_client._json,
|
|
4715
4655
|
rawResponse: import_smithy_client._json,
|
|
4716
|
-
reasoningContent: (_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context),
|
|
4656
|
+
reasoningContent: /* @__PURE__ */ __name((_) => de_ReasoningContentBlock((0, import_core2.awsExpectUnion)(_), context), "reasoningContent"),
|
|
4717
4657
|
traceId: import_smithy_client.expectString
|
|
4718
4658
|
});
|
|
4719
4659
|
}, "de_PreProcessingModelInvocationOutput");
|
|
@@ -4745,14 +4685,14 @@ var de_ReasoningContentBlock = /* @__PURE__ */ __name((output, context) => {
|
|
|
4745
4685
|
}, "de_ReasoningContentBlock");
|
|
4746
4686
|
var de_RerankDocument = /* @__PURE__ */ __name((output, context) => {
|
|
4747
4687
|
return (0, import_smithy_client.take)(output, {
|
|
4748
|
-
jsonDocument: (_) => de_Document(_, context),
|
|
4688
|
+
jsonDocument: /* @__PURE__ */ __name((_) => de_Document(_, context), "jsonDocument"),
|
|
4749
4689
|
textDocument: import_smithy_client._json,
|
|
4750
4690
|
type: import_smithy_client.expectString
|
|
4751
4691
|
});
|
|
4752
4692
|
}, "de_RerankDocument");
|
|
4753
4693
|
var de_RerankResult = /* @__PURE__ */ __name((output, context) => {
|
|
4754
4694
|
return (0, import_smithy_client.take)(output, {
|
|
4755
|
-
document: (_) => de_RerankDocument(_, context),
|
|
4695
|
+
document: /* @__PURE__ */ __name((_) => de_RerankDocument(_, context), "document"),
|
|
4756
4696
|
index: import_smithy_client.expectInt32,
|
|
4757
4697
|
relevanceScore: import_smithy_client.limitedParseFloat32
|
|
4758
4698
|
});
|
|
@@ -4763,6 +4703,15 @@ var de_RerankResultsList = /* @__PURE__ */ __name((output, context) => {
|
|
|
4763
4703
|
});
|
|
4764
4704
|
return retVal;
|
|
4765
4705
|
}, "de_RerankResultsList");
|
|
4706
|
+
var de_ResponseBody = /* @__PURE__ */ __name((output, context) => {
|
|
4707
|
+
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4708
|
+
if (value === null) {
|
|
4709
|
+
return acc;
|
|
4710
|
+
}
|
|
4711
|
+
acc[key] = de_ContentBody(value, context);
|
|
4712
|
+
return acc;
|
|
4713
|
+
}, {});
|
|
4714
|
+
}, "de_ResponseBody");
|
|
4766
4715
|
var de_RetrievalResultMetadata = /* @__PURE__ */ __name((output, context) => {
|
|
4767
4716
|
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
4768
4717
|
if (value === null) {
|
|
@@ -4779,7 +4728,7 @@ var de_RetrievedReference = /* @__PURE__ */ __name((output, context) => {
|
|
|
4779
4728
|
return (0, import_smithy_client.take)(output, {
|
|
4780
4729
|
content: import_smithy_client._json,
|
|
4781
4730
|
location: import_smithy_client._json,
|
|
4782
|
-
metadata: (_) => de_RetrievalResultMetadata(_, context)
|
|
4731
|
+
metadata: /* @__PURE__ */ __name((_) => de_RetrievalResultMetadata(_, context), "metadata")
|
|
4783
4732
|
});
|
|
4784
4733
|
}, "de_RetrievedReference");
|
|
4785
4734
|
var de_RetrievedReferences = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -4788,10 +4737,22 @@ var de_RetrievedReferences = /* @__PURE__ */ __name((output, context) => {
|
|
|
4788
4737
|
});
|
|
4789
4738
|
return retVal;
|
|
4790
4739
|
}, "de_RetrievedReferences");
|
|
4740
|
+
var de_ReturnControlInvocationResults = /* @__PURE__ */ __name((output, context) => {
|
|
4741
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
4742
|
+
return de_InvocationResultMember((0, import_core2.awsExpectUnion)(entry), context);
|
|
4743
|
+
});
|
|
4744
|
+
return retVal;
|
|
4745
|
+
}, "de_ReturnControlInvocationResults");
|
|
4746
|
+
var de_ReturnControlResults = /* @__PURE__ */ __name((output, context) => {
|
|
4747
|
+
return (0, import_smithy_client.take)(output, {
|
|
4748
|
+
invocationId: import_smithy_client.expectString,
|
|
4749
|
+
returnControlInvocationResults: /* @__PURE__ */ __name((_) => de_ReturnControlInvocationResults(_, context), "returnControlInvocationResults")
|
|
4750
|
+
});
|
|
4751
|
+
}, "de_ReturnControlResults");
|
|
4791
4752
|
var de_RoutingClassifierTrace = /* @__PURE__ */ __name((output, context) => {
|
|
4792
4753
|
if (output.invocationInput != null) {
|
|
4793
4754
|
return {
|
|
4794
|
-
invocationInput: (
|
|
4755
|
+
invocationInput: de_InvocationInput(output.invocationInput, context)
|
|
4795
4756
|
};
|
|
4796
4757
|
}
|
|
4797
4758
|
if (output.modelInvocationInput != null) {
|
|
@@ -4819,8 +4780,8 @@ var de_SessionSummaries = /* @__PURE__ */ __name((output, context) => {
|
|
|
4819
4780
|
}, "de_SessionSummaries");
|
|
4820
4781
|
var de_SessionSummary = /* @__PURE__ */ __name((output, context) => {
|
|
4821
4782
|
return (0, import_smithy_client.take)(output, {
|
|
4822
|
-
createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
4823
|
-
lastUpdatedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
4783
|
+
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "createdAt"),
|
|
4784
|
+
lastUpdatedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "lastUpdatedAt"),
|
|
4824
4785
|
sessionArn: import_smithy_client.expectString,
|
|
4825
4786
|
sessionId: import_smithy_client.expectString,
|
|
4826
4787
|
sessionStatus: import_smithy_client.expectString
|
|
@@ -4871,9 +4832,9 @@ var de_TracePart = /* @__PURE__ */ __name((output, context) => {
|
|
|
4871
4832
|
agentVersion: import_smithy_client.expectString,
|
|
4872
4833
|
callerChain: import_smithy_client._json,
|
|
4873
4834
|
collaboratorName: import_smithy_client.expectString,
|
|
4874
|
-
eventTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
4835
|
+
eventTime: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "eventTime"),
|
|
4875
4836
|
sessionId: import_smithy_client.expectString,
|
|
4876
|
-
trace: (_) => de_Trace((0, import_core2.awsExpectUnion)(_), context)
|
|
4837
|
+
trace: /* @__PURE__ */ __name((_) => de_Trace((0, import_core2.awsExpectUnion)(_), context), "trace")
|
|
4877
4838
|
});
|
|
4878
4839
|
}, "de_TracePart");
|
|
4879
4840
|
var de_Document = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -5418,6 +5379,8 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
5418
5379
|
FunctionSchema,
|
|
5419
5380
|
AgentCollaboration,
|
|
5420
5381
|
ConfirmationState,
|
|
5382
|
+
ImageInputFormat,
|
|
5383
|
+
ImageInputSource,
|
|
5421
5384
|
ResponseState,
|
|
5422
5385
|
InvocationResultMember,
|
|
5423
5386
|
PayloadType,
|