@aws-sdk/client-bedrock-agent-runtime 3.696.0 → 3.699.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +16 -0
- package/dist-cjs/index.js +704 -1
- package/dist-es/BedrockAgentRuntime.js +4 -0
- package/dist-es/commands/InvokeInlineAgentCommand.js +27 -0
- package/dist-es/commands/OptimizePromptCommand.js +27 -0
- package/dist-es/commands/index.js +2 -0
- package/dist-es/models/models_0.js +285 -0
- package/dist-es/protocols/Aws_restJson1.js +286 -0
- package/dist-types/BedrockAgentRuntime.d.ts +14 -0
- package/dist-types/BedrockAgentRuntimeClient.d.ts +4 -2
- package/dist-types/commands/InvokeAgentCommand.d.ts +6 -6
- package/dist-types/commands/InvokeFlowCommand.d.ts +1 -1
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +755 -0
- package/dist-types/commands/OptimizePromptCommand.d.ts +125 -0
- package/dist-types/commands/index.d.ts +2 -0
- package/dist-types/models/models_0.d.ts +1458 -65
- package/dist-types/protocols/Aws_restJson1.d.ts +18 -0
- package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +34 -0
- package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +12 -0
- package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/OptimizePromptCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +2 -0
- package/dist-types/ts3.4/models/models_0.d.ts +687 -2
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +24 -0
- package/package.json +4 -4
|
@@ -4,6 +4,8 @@ import { DeleteAgentMemoryCommand, } from "./commands/DeleteAgentMemoryCommand";
|
|
|
4
4
|
import { GetAgentMemoryCommand, } from "./commands/GetAgentMemoryCommand";
|
|
5
5
|
import { InvokeAgentCommand } from "./commands/InvokeAgentCommand";
|
|
6
6
|
import { InvokeFlowCommand } from "./commands/InvokeFlowCommand";
|
|
7
|
+
import { InvokeInlineAgentCommand, } from "./commands/InvokeInlineAgentCommand";
|
|
8
|
+
import { OptimizePromptCommand, } from "./commands/OptimizePromptCommand";
|
|
7
9
|
import { RetrieveAndGenerateCommand, } from "./commands/RetrieveAndGenerateCommand";
|
|
8
10
|
import { RetrieveCommand } from "./commands/RetrieveCommand";
|
|
9
11
|
const commands = {
|
|
@@ -11,6 +13,8 @@ const commands = {
|
|
|
11
13
|
GetAgentMemoryCommand,
|
|
12
14
|
InvokeAgentCommand,
|
|
13
15
|
InvokeFlowCommand,
|
|
16
|
+
InvokeInlineAgentCommand,
|
|
17
|
+
OptimizePromptCommand,
|
|
14
18
|
RetrieveCommand,
|
|
15
19
|
RetrieveAndGenerateCommand,
|
|
16
20
|
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { InvokeInlineAgentRequestFilterSensitiveLog, InvokeInlineAgentResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_InvokeInlineAgentCommand, se_InvokeInlineAgentCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class InvokeInlineAgentCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("AmazonBedrockAgentRunTimeService", "InvokeInlineAgent", {
|
|
18
|
+
eventStream: {
|
|
19
|
+
output: true,
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
.n("BedrockAgentRuntimeClient", "InvokeInlineAgentCommand")
|
|
23
|
+
.f(InvokeInlineAgentRequestFilterSensitiveLog, InvokeInlineAgentResponseFilterSensitiveLog)
|
|
24
|
+
.ser(se_InvokeInlineAgentCommand)
|
|
25
|
+
.de(de_InvokeInlineAgentCommand)
|
|
26
|
+
.build() {
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { getSerdePlugin } from "@smithy/middleware-serde";
|
|
3
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
4
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
5
|
+
import { OptimizePromptRequestFilterSensitiveLog, OptimizePromptResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_OptimizePromptCommand, se_OptimizePromptCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class OptimizePromptCommand extends $Command
|
|
9
|
+
.classBuilder()
|
|
10
|
+
.ep(commonParams)
|
|
11
|
+
.m(function (Command, cs, config, o) {
|
|
12
|
+
return [
|
|
13
|
+
getSerdePlugin(config, this.serialize, this.deserialize),
|
|
14
|
+
getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
15
|
+
];
|
|
16
|
+
})
|
|
17
|
+
.s("AmazonBedrockAgentRunTimeService", "OptimizePrompt", {
|
|
18
|
+
eventStream: {
|
|
19
|
+
output: true,
|
|
20
|
+
},
|
|
21
|
+
})
|
|
22
|
+
.n("BedrockAgentRuntimeClient", "OptimizePromptCommand")
|
|
23
|
+
.f(OptimizePromptRequestFilterSensitiveLog, OptimizePromptResponseFilterSensitiveLog)
|
|
24
|
+
.ser(se_OptimizePromptCommand)
|
|
25
|
+
.de(de_OptimizePromptCommand)
|
|
26
|
+
.build() {
|
|
27
|
+
}
|
|
@@ -2,5 +2,7 @@ export * from "./DeleteAgentMemoryCommand";
|
|
|
2
2
|
export * from "./GetAgentMemoryCommand";
|
|
3
3
|
export * from "./InvokeAgentCommand";
|
|
4
4
|
export * from "./InvokeFlowCommand";
|
|
5
|
+
export * from "./InvokeInlineAgentCommand";
|
|
6
|
+
export * from "./OptimizePromptCommand";
|
|
5
7
|
export * from "./RetrieveAndGenerateCommand";
|
|
6
8
|
export * from "./RetrieveCommand";
|
|
@@ -12,15 +12,61 @@ export class AccessDeniedException extends __BaseException {
|
|
|
12
12
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
|
+
export const CustomControlMethod = {
|
|
16
|
+
RETURN_CONTROL: "RETURN_CONTROL",
|
|
17
|
+
};
|
|
18
|
+
export var ActionGroupExecutor;
|
|
19
|
+
(function (ActionGroupExecutor) {
|
|
20
|
+
ActionGroupExecutor.visit = (value, visitor) => {
|
|
21
|
+
if (value.lambda !== undefined)
|
|
22
|
+
return visitor.lambda(value.lambda);
|
|
23
|
+
if (value.customControl !== undefined)
|
|
24
|
+
return visitor.customControl(value.customControl);
|
|
25
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
26
|
+
};
|
|
27
|
+
})(ActionGroupExecutor || (ActionGroupExecutor = {}));
|
|
15
28
|
export const ExecutionType = {
|
|
16
29
|
LAMBDA: "LAMBDA",
|
|
17
30
|
RETURN_CONTROL: "RETURN_CONTROL",
|
|
18
31
|
};
|
|
32
|
+
export const ActionGroupSignature = {
|
|
33
|
+
AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter",
|
|
34
|
+
AMAZON_USERINPUT: "AMAZON.UserInput",
|
|
35
|
+
};
|
|
19
36
|
export const ActionInvocationType = {
|
|
20
37
|
RESULT: "RESULT",
|
|
21
38
|
USER_CONFIRMATION: "USER_CONFIRMATION",
|
|
22
39
|
USER_CONFIRMATION_AND_RESULT: "USER_CONFIRMATION_AND_RESULT",
|
|
23
40
|
};
|
|
41
|
+
export var APISchema;
|
|
42
|
+
(function (APISchema) {
|
|
43
|
+
APISchema.visit = (value, visitor) => {
|
|
44
|
+
if (value.s3 !== undefined)
|
|
45
|
+
return visitor.s3(value.s3);
|
|
46
|
+
if (value.payload !== undefined)
|
|
47
|
+
return visitor.payload(value.payload);
|
|
48
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
49
|
+
};
|
|
50
|
+
})(APISchema || (APISchema = {}));
|
|
51
|
+
export const ParameterType = {
|
|
52
|
+
ARRAY: "array",
|
|
53
|
+
BOOLEAN: "boolean",
|
|
54
|
+
INTEGER: "integer",
|
|
55
|
+
NUMBER: "number",
|
|
56
|
+
STRING: "string",
|
|
57
|
+
};
|
|
58
|
+
export const RequireConfirmation = {
|
|
59
|
+
DISABLED: "DISABLED",
|
|
60
|
+
ENABLED: "ENABLED",
|
|
61
|
+
};
|
|
62
|
+
export var FunctionSchema;
|
|
63
|
+
(function (FunctionSchema) {
|
|
64
|
+
FunctionSchema.visit = (value, visitor) => {
|
|
65
|
+
if (value.functions !== undefined)
|
|
66
|
+
return visitor.functions(value.functions);
|
|
67
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
68
|
+
};
|
|
69
|
+
})(FunctionSchema || (FunctionSchema = {}));
|
|
24
70
|
export class BadGatewayException extends __BaseException {
|
|
25
71
|
constructor(opts) {
|
|
26
72
|
super({
|
|
@@ -337,6 +383,7 @@ export const PromptType = {
|
|
|
337
383
|
ORCHESTRATION: "ORCHESTRATION",
|
|
338
384
|
POST_PROCESSING: "POST_PROCESSING",
|
|
339
385
|
PRE_PROCESSING: "PRE_PROCESSING",
|
|
386
|
+
ROUTING_CLASSIFIER: "ROUTING_CLASSIFIER",
|
|
340
387
|
};
|
|
341
388
|
export const Source = {
|
|
342
389
|
ACTION_GROUP: "ACTION_GROUP",
|
|
@@ -434,6 +481,42 @@ export var ResponseStream;
|
|
|
434
481
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
435
482
|
};
|
|
436
483
|
})(ResponseStream || (ResponseStream = {}));
|
|
484
|
+
export const PromptState = {
|
|
485
|
+
DISABLED: "DISABLED",
|
|
486
|
+
ENABLED: "ENABLED",
|
|
487
|
+
};
|
|
488
|
+
export var InlineAgentResponseStream;
|
|
489
|
+
(function (InlineAgentResponseStream) {
|
|
490
|
+
InlineAgentResponseStream.visit = (value, visitor) => {
|
|
491
|
+
if (value.chunk !== undefined)
|
|
492
|
+
return visitor.chunk(value.chunk);
|
|
493
|
+
if (value.trace !== undefined)
|
|
494
|
+
return visitor.trace(value.trace);
|
|
495
|
+
if (value.returnControl !== undefined)
|
|
496
|
+
return visitor.returnControl(value.returnControl);
|
|
497
|
+
if (value.internalServerException !== undefined)
|
|
498
|
+
return visitor.internalServerException(value.internalServerException);
|
|
499
|
+
if (value.validationException !== undefined)
|
|
500
|
+
return visitor.validationException(value.validationException);
|
|
501
|
+
if (value.resourceNotFoundException !== undefined)
|
|
502
|
+
return visitor.resourceNotFoundException(value.resourceNotFoundException);
|
|
503
|
+
if (value.serviceQuotaExceededException !== undefined)
|
|
504
|
+
return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
|
|
505
|
+
if (value.throttlingException !== undefined)
|
|
506
|
+
return visitor.throttlingException(value.throttlingException);
|
|
507
|
+
if (value.accessDeniedException !== undefined)
|
|
508
|
+
return visitor.accessDeniedException(value.accessDeniedException);
|
|
509
|
+
if (value.conflictException !== undefined)
|
|
510
|
+
return visitor.conflictException(value.conflictException);
|
|
511
|
+
if (value.dependencyFailedException !== undefined)
|
|
512
|
+
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
513
|
+
if (value.badGatewayException !== undefined)
|
|
514
|
+
return visitor.badGatewayException(value.badGatewayException);
|
|
515
|
+
if (value.files !== undefined)
|
|
516
|
+
return visitor.files(value.files);
|
|
517
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
518
|
+
};
|
|
519
|
+
})(InlineAgentResponseStream || (InlineAgentResponseStream = {}));
|
|
437
520
|
export const MemoryType = {
|
|
438
521
|
SESSION_SUMMARY: "SESSION_SUMMARY",
|
|
439
522
|
};
|
|
@@ -445,6 +528,44 @@ export var Memory;
|
|
|
445
528
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
446
529
|
};
|
|
447
530
|
})(Memory || (Memory = {}));
|
|
531
|
+
export var InputPrompt;
|
|
532
|
+
(function (InputPrompt) {
|
|
533
|
+
InputPrompt.visit = (value, visitor) => {
|
|
534
|
+
if (value.textPrompt !== undefined)
|
|
535
|
+
return visitor.textPrompt(value.textPrompt);
|
|
536
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
537
|
+
};
|
|
538
|
+
})(InputPrompt || (InputPrompt = {}));
|
|
539
|
+
export var OptimizedPrompt;
|
|
540
|
+
(function (OptimizedPrompt) {
|
|
541
|
+
OptimizedPrompt.visit = (value, visitor) => {
|
|
542
|
+
if (value.textPrompt !== undefined)
|
|
543
|
+
return visitor.textPrompt(value.textPrompt);
|
|
544
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
545
|
+
};
|
|
546
|
+
})(OptimizedPrompt || (OptimizedPrompt = {}));
|
|
547
|
+
export var OptimizedPromptStream;
|
|
548
|
+
(function (OptimizedPromptStream) {
|
|
549
|
+
OptimizedPromptStream.visit = (value, visitor) => {
|
|
550
|
+
if (value.optimizedPromptEvent !== undefined)
|
|
551
|
+
return visitor.optimizedPromptEvent(value.optimizedPromptEvent);
|
|
552
|
+
if (value.analyzePromptEvent !== undefined)
|
|
553
|
+
return visitor.analyzePromptEvent(value.analyzePromptEvent);
|
|
554
|
+
if (value.internalServerException !== undefined)
|
|
555
|
+
return visitor.internalServerException(value.internalServerException);
|
|
556
|
+
if (value.throttlingException !== undefined)
|
|
557
|
+
return visitor.throttlingException(value.throttlingException);
|
|
558
|
+
if (value.validationException !== undefined)
|
|
559
|
+
return visitor.validationException(value.validationException);
|
|
560
|
+
if (value.dependencyFailedException !== undefined)
|
|
561
|
+
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
562
|
+
if (value.accessDeniedException !== undefined)
|
|
563
|
+
return visitor.accessDeniedException(value.accessDeniedException);
|
|
564
|
+
if (value.badGatewayException !== undefined)
|
|
565
|
+
return visitor.badGatewayException(value.badGatewayException);
|
|
566
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
567
|
+
};
|
|
568
|
+
})(OptimizedPromptStream || (OptimizedPromptStream = {}));
|
|
448
569
|
export const ExternalSourceType = {
|
|
449
570
|
BYTE_CONTENT: "BYTE_CONTENT",
|
|
450
571
|
S3: "S3",
|
|
@@ -503,6 +624,32 @@ export const ActionGroupInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
|
503
624
|
...obj,
|
|
504
625
|
...(obj.text && { text: SENSITIVE_STRING }),
|
|
505
626
|
});
|
|
627
|
+
export const APISchemaFilterSensitiveLog = (obj) => {
|
|
628
|
+
if (obj.s3 !== undefined)
|
|
629
|
+
return { s3: obj.s3 };
|
|
630
|
+
if (obj.payload !== undefined)
|
|
631
|
+
return { payload: SENSITIVE_STRING };
|
|
632
|
+
if (obj.$unknown !== undefined)
|
|
633
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
634
|
+
};
|
|
635
|
+
export const FunctionDefinitionFilterSensitiveLog = (obj) => ({
|
|
636
|
+
...obj,
|
|
637
|
+
...(obj.name && { name: SENSITIVE_STRING }),
|
|
638
|
+
});
|
|
639
|
+
export const FunctionSchemaFilterSensitiveLog = (obj) => {
|
|
640
|
+
if (obj.functions !== undefined)
|
|
641
|
+
return { functions: obj.functions.map((item) => FunctionDefinitionFilterSensitiveLog(item)) };
|
|
642
|
+
if (obj.$unknown !== undefined)
|
|
643
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
644
|
+
};
|
|
645
|
+
export const AgentActionGroupFilterSensitiveLog = (obj) => ({
|
|
646
|
+
...obj,
|
|
647
|
+
...(obj.actionGroupName && { actionGroupName: SENSITIVE_STRING }),
|
|
648
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
649
|
+
...(obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor }),
|
|
650
|
+
...(obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }),
|
|
651
|
+
...(obj.functionSchema && { functionSchema: FunctionSchemaFilterSensitiveLog(obj.functionSchema) }),
|
|
652
|
+
});
|
|
506
653
|
export const FlowInputContentFilterSensitiveLog = (obj) => {
|
|
507
654
|
if (obj.document !== undefined)
|
|
508
655
|
return { document: obj.document };
|
|
@@ -902,6 +1049,126 @@ export const InvokeAgentResponseFilterSensitiveLog = (obj) => ({
|
|
|
902
1049
|
...obj,
|
|
903
1050
|
...(obj.completion && { completion: "STREAMING_CONTENT" }),
|
|
904
1051
|
});
|
|
1052
|
+
export const InlineSessionStateFilterSensitiveLog = (obj) => ({
|
|
1053
|
+
...obj,
|
|
1054
|
+
...(obj.returnControlInvocationResults && {
|
|
1055
|
+
returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => InvocationResultMemberFilterSensitiveLog(item)),
|
|
1056
|
+
}),
|
|
1057
|
+
...(obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }),
|
|
1058
|
+
});
|
|
1059
|
+
export const PromptConfigurationFilterSensitiveLog = (obj) => ({
|
|
1060
|
+
...obj,
|
|
1061
|
+
...(obj.basePromptTemplate && { basePromptTemplate: SENSITIVE_STRING }),
|
|
1062
|
+
});
|
|
1063
|
+
export const PromptOverrideConfigurationFilterSensitiveLog = (obj) => ({
|
|
1064
|
+
...obj,
|
|
1065
|
+
...(obj.promptConfigurations && {
|
|
1066
|
+
promptConfigurations: obj.promptConfigurations.map((item) => PromptConfigurationFilterSensitiveLog(item)),
|
|
1067
|
+
}),
|
|
1068
|
+
});
|
|
1069
|
+
export const InlineAgentPayloadPartFilterSensitiveLog = (obj) => ({
|
|
1070
|
+
...obj,
|
|
1071
|
+
...(obj.bytes && { bytes: SENSITIVE_STRING }),
|
|
1072
|
+
...(obj.attribution && { attribution: AttributionFilterSensitiveLog(obj.attribution) }),
|
|
1073
|
+
});
|
|
1074
|
+
export const InlineAgentFilePartFilterSensitiveLog = (obj) => ({
|
|
1075
|
+
...obj,
|
|
1076
|
+
...(obj.files && { files: SENSITIVE_STRING }),
|
|
1077
|
+
});
|
|
1078
|
+
export const InlineAgentReturnControlPayloadFilterSensitiveLog = (obj) => ({
|
|
1079
|
+
...obj,
|
|
1080
|
+
...(obj.invocationInputs && {
|
|
1081
|
+
invocationInputs: obj.invocationInputs.map((item) => InvocationInputMemberFilterSensitiveLog(item)),
|
|
1082
|
+
}),
|
|
1083
|
+
});
|
|
1084
|
+
export const InlineAgentTracePartFilterSensitiveLog = (obj) => ({
|
|
1085
|
+
...obj,
|
|
1086
|
+
...(obj.trace && { trace: SENSITIVE_STRING }),
|
|
1087
|
+
});
|
|
1088
|
+
export const InlineAgentResponseStreamFilterSensitiveLog = (obj) => {
|
|
1089
|
+
if (obj.chunk !== undefined)
|
|
1090
|
+
return { chunk: SENSITIVE_STRING };
|
|
1091
|
+
if (obj.trace !== undefined)
|
|
1092
|
+
return { trace: SENSITIVE_STRING };
|
|
1093
|
+
if (obj.returnControl !== undefined)
|
|
1094
|
+
return { returnControl: SENSITIVE_STRING };
|
|
1095
|
+
if (obj.internalServerException !== undefined)
|
|
1096
|
+
return { internalServerException: obj.internalServerException };
|
|
1097
|
+
if (obj.validationException !== undefined)
|
|
1098
|
+
return { validationException: obj.validationException };
|
|
1099
|
+
if (obj.resourceNotFoundException !== undefined)
|
|
1100
|
+
return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
1101
|
+
if (obj.serviceQuotaExceededException !== undefined)
|
|
1102
|
+
return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
|
|
1103
|
+
if (obj.throttlingException !== undefined)
|
|
1104
|
+
return { throttlingException: obj.throttlingException };
|
|
1105
|
+
if (obj.accessDeniedException !== undefined)
|
|
1106
|
+
return { accessDeniedException: obj.accessDeniedException };
|
|
1107
|
+
if (obj.conflictException !== undefined)
|
|
1108
|
+
return { conflictException: obj.conflictException };
|
|
1109
|
+
if (obj.dependencyFailedException !== undefined)
|
|
1110
|
+
return { dependencyFailedException: obj.dependencyFailedException };
|
|
1111
|
+
if (obj.badGatewayException !== undefined)
|
|
1112
|
+
return { badGatewayException: obj.badGatewayException };
|
|
1113
|
+
if (obj.files !== undefined)
|
|
1114
|
+
return { files: InlineAgentFilePartFilterSensitiveLog(obj.files) };
|
|
1115
|
+
if (obj.$unknown !== undefined)
|
|
1116
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1117
|
+
};
|
|
1118
|
+
export const InvokeInlineAgentResponseFilterSensitiveLog = (obj) => ({
|
|
1119
|
+
...obj,
|
|
1120
|
+
...(obj.completion && { completion: "STREAMING_CONTENT" }),
|
|
1121
|
+
});
|
|
1122
|
+
export const TextPromptFilterSensitiveLog = (obj) => ({
|
|
1123
|
+
...obj,
|
|
1124
|
+
});
|
|
1125
|
+
export const InputPromptFilterSensitiveLog = (obj) => {
|
|
1126
|
+
if (obj.textPrompt !== undefined)
|
|
1127
|
+
return { textPrompt: SENSITIVE_STRING };
|
|
1128
|
+
if (obj.$unknown !== undefined)
|
|
1129
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1130
|
+
};
|
|
1131
|
+
export const OptimizePromptRequestFilterSensitiveLog = (obj) => ({
|
|
1132
|
+
...obj,
|
|
1133
|
+
...(obj.input && { input: InputPromptFilterSensitiveLog(obj.input) }),
|
|
1134
|
+
});
|
|
1135
|
+
export const AnalyzePromptEventFilterSensitiveLog = (obj) => ({
|
|
1136
|
+
...obj,
|
|
1137
|
+
});
|
|
1138
|
+
export const OptimizedPromptFilterSensitiveLog = (obj) => {
|
|
1139
|
+
if (obj.textPrompt !== undefined)
|
|
1140
|
+
return { textPrompt: SENSITIVE_STRING };
|
|
1141
|
+
if (obj.$unknown !== undefined)
|
|
1142
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1143
|
+
};
|
|
1144
|
+
export const OptimizedPromptEventFilterSensitiveLog = (obj) => ({
|
|
1145
|
+
...obj,
|
|
1146
|
+
...(obj.optimizedPrompt && { optimizedPrompt: OptimizedPromptFilterSensitiveLog(obj.optimizedPrompt) }),
|
|
1147
|
+
});
|
|
1148
|
+
export const OptimizedPromptStreamFilterSensitiveLog = (obj) => {
|
|
1149
|
+
if (obj.optimizedPromptEvent !== undefined)
|
|
1150
|
+
return { optimizedPromptEvent: SENSITIVE_STRING };
|
|
1151
|
+
if (obj.analyzePromptEvent !== undefined)
|
|
1152
|
+
return { analyzePromptEvent: SENSITIVE_STRING };
|
|
1153
|
+
if (obj.internalServerException !== undefined)
|
|
1154
|
+
return { internalServerException: obj.internalServerException };
|
|
1155
|
+
if (obj.throttlingException !== undefined)
|
|
1156
|
+
return { throttlingException: obj.throttlingException };
|
|
1157
|
+
if (obj.validationException !== undefined)
|
|
1158
|
+
return { validationException: obj.validationException };
|
|
1159
|
+
if (obj.dependencyFailedException !== undefined)
|
|
1160
|
+
return { dependencyFailedException: obj.dependencyFailedException };
|
|
1161
|
+
if (obj.accessDeniedException !== undefined)
|
|
1162
|
+
return { accessDeniedException: obj.accessDeniedException };
|
|
1163
|
+
if (obj.badGatewayException !== undefined)
|
|
1164
|
+
return { badGatewayException: obj.badGatewayException };
|
|
1165
|
+
if (obj.$unknown !== undefined)
|
|
1166
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1167
|
+
};
|
|
1168
|
+
export const OptimizePromptResponseFilterSensitiveLog = (obj) => ({
|
|
1169
|
+
...obj,
|
|
1170
|
+
...(obj.optimizedPrompt && { optimizedPrompt: "STREAMING_CONTENT" }),
|
|
1171
|
+
});
|
|
905
1172
|
export const RetrieveAndGenerateInputFilterSensitiveLog = (obj) => ({
|
|
906
1173
|
...obj,
|
|
907
1174
|
});
|
|
@@ -998,6 +1265,13 @@ export const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
998
1265
|
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog(obj.vectorSearchConfiguration),
|
|
999
1266
|
}),
|
|
1000
1267
|
});
|
|
1268
|
+
export const KnowledgeBaseFilterSensitiveLog = (obj) => ({
|
|
1269
|
+
...obj,
|
|
1270
|
+
...(obj.description && { description: SENSITIVE_STRING }),
|
|
1271
|
+
...(obj.retrievalConfiguration && {
|
|
1272
|
+
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration),
|
|
1273
|
+
}),
|
|
1274
|
+
});
|
|
1001
1275
|
export const KnowledgeBaseConfigurationFilterSensitiveLog = (obj) => ({
|
|
1002
1276
|
...obj,
|
|
1003
1277
|
...(obj.retrievalConfiguration && {
|
|
@@ -1032,6 +1306,17 @@ export const RetrieveAndGenerateConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
1032
1306
|
externalSourcesConfiguration: ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog(obj.externalSourcesConfiguration),
|
|
1033
1307
|
}),
|
|
1034
1308
|
});
|
|
1309
|
+
export const InvokeInlineAgentRequestFilterSensitiveLog = (obj) => ({
|
|
1310
|
+
...obj,
|
|
1311
|
+
...(obj.inputText && { inputText: SENSITIVE_STRING }),
|
|
1312
|
+
...(obj.inlineSessionState && { inlineSessionState: InlineSessionStateFilterSensitiveLog(obj.inlineSessionState) }),
|
|
1313
|
+
...(obj.instruction && { instruction: SENSITIVE_STRING }),
|
|
1314
|
+
...(obj.actionGroups && { actionGroups: obj.actionGroups.map((item) => AgentActionGroupFilterSensitiveLog(item)) }),
|
|
1315
|
+
...(obj.knowledgeBases && {
|
|
1316
|
+
knowledgeBases: obj.knowledgeBases.map((item) => KnowledgeBaseFilterSensitiveLog(item)),
|
|
1317
|
+
}),
|
|
1318
|
+
...(obj.promptOverrideConfiguration && { promptOverrideConfiguration: SENSITIVE_STRING }),
|
|
1319
|
+
});
|
|
1035
1320
|
export const RetrieveAndGenerateRequestFilterSensitiveLog = (obj) => ({
|
|
1036
1321
|
...obj,
|
|
1037
1322
|
...(obj.input && { input: SENSITIVE_STRING }),
|