@aws-sdk/client-bedrock-agent-runtime 3.703.0 → 3.706.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 +8 -0
- package/dist-cjs/index.js +380 -68
- package/dist-es/BedrockAgentRuntime.js +2 -0
- package/dist-es/commands/GenerateQueryCommand.js +23 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +216 -54
- package/dist-es/protocols/Aws_restJson1.js +74 -3
- package/dist-types/BedrockAgentRuntime.d.ts +7 -0
- package/dist-types/BedrockAgentRuntimeClient.d.ts +3 -2
- package/dist-types/commands/GenerateQueryCommand.d.ts +115 -0
- package/dist-types/commands/InvokeAgentCommand.d.ts +400 -24
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +380 -23
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +17 -2
- package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +17 -2
- package/dist-types/commands/RetrieveCommand.d.ts +17 -2
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1189 -489
- package/dist-types/protocols/Aws_restJson1.d.ts +9 -0
- package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/GenerateQueryCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +418 -123
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +1 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { createAggregatedClient } from "@smithy/smithy-client";
|
|
2
2
|
import { BedrockAgentRuntimeClient } from "./BedrockAgentRuntimeClient";
|
|
3
3
|
import { DeleteAgentMemoryCommand, } from "./commands/DeleteAgentMemoryCommand";
|
|
4
|
+
import { GenerateQueryCommand, } from "./commands/GenerateQueryCommand";
|
|
4
5
|
import { GetAgentMemoryCommand, } from "./commands/GetAgentMemoryCommand";
|
|
5
6
|
import { InvokeAgentCommand } from "./commands/InvokeAgentCommand";
|
|
6
7
|
import { InvokeFlowCommand } from "./commands/InvokeFlowCommand";
|
|
@@ -12,6 +13,7 @@ import { RetrieveAndGenerateStreamCommand, } from "./commands/RetrieveAndGenerat
|
|
|
12
13
|
import { RetrieveCommand } from "./commands/RetrieveCommand";
|
|
13
14
|
const commands = {
|
|
14
15
|
DeleteAgentMemoryCommand,
|
|
16
|
+
GenerateQueryCommand,
|
|
15
17
|
GetAgentMemoryCommand,
|
|
16
18
|
InvokeAgentCommand,
|
|
17
19
|
InvokeFlowCommand,
|
|
@@ -0,0 +1,23 @@
|
|
|
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 { GenerateQueryRequestFilterSensitiveLog, GenerateQueryResponseFilterSensitiveLog, } from "../models/models_0";
|
|
6
|
+
import { de_GenerateQueryCommand, se_GenerateQueryCommand } from "../protocols/Aws_restJson1";
|
|
7
|
+
export { $Command };
|
|
8
|
+
export class GenerateQueryCommand 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", "GenerateQuery", {})
|
|
18
|
+
.n("BedrockAgentRuntimeClient", "GenerateQueryCommand")
|
|
19
|
+
.f(GenerateQueryRequestFilterSensitiveLog, GenerateQueryResponseFilterSensitiveLog)
|
|
20
|
+
.ser(se_GenerateQueryCommand)
|
|
21
|
+
.de(de_GenerateQueryCommand)
|
|
22
|
+
.build() {
|
|
23
|
+
}
|
|
@@ -67,6 +67,38 @@ export var FunctionSchema;
|
|
|
67
67
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
68
68
|
};
|
|
69
69
|
})(FunctionSchema || (FunctionSchema = {}));
|
|
70
|
+
export const ConfirmationState = {
|
|
71
|
+
CONFIRM: "CONFIRM",
|
|
72
|
+
DENY: "DENY",
|
|
73
|
+
};
|
|
74
|
+
export const ResponseState = {
|
|
75
|
+
FAILURE: "FAILURE",
|
|
76
|
+
REPROMPT: "REPROMPT",
|
|
77
|
+
};
|
|
78
|
+
export var InvocationResultMember;
|
|
79
|
+
(function (InvocationResultMember) {
|
|
80
|
+
InvocationResultMember.visit = (value, visitor) => {
|
|
81
|
+
if (value.apiResult !== undefined)
|
|
82
|
+
return visitor.apiResult(value.apiResult);
|
|
83
|
+
if (value.functionResult !== undefined)
|
|
84
|
+
return visitor.functionResult(value.functionResult);
|
|
85
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
86
|
+
};
|
|
87
|
+
})(InvocationResultMember || (InvocationResultMember = {}));
|
|
88
|
+
export const PayloadType = {
|
|
89
|
+
RETURN_CONTROL: "RETURN_CONTROL",
|
|
90
|
+
TEXT: "TEXT",
|
|
91
|
+
};
|
|
92
|
+
export var InvocationInputMember;
|
|
93
|
+
(function (InvocationInputMember) {
|
|
94
|
+
InvocationInputMember.visit = (value, visitor) => {
|
|
95
|
+
if (value.apiInvocationInput !== undefined)
|
|
96
|
+
return visitor.apiInvocationInput(value.apiInvocationInput);
|
|
97
|
+
if (value.functionInvocationInput !== undefined)
|
|
98
|
+
return visitor.functionInvocationInput(value.functionInvocationInput);
|
|
99
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
100
|
+
};
|
|
101
|
+
})(InvocationInputMember || (InvocationInputMember = {}));
|
|
70
102
|
export class BadGatewayException extends __BaseException {
|
|
71
103
|
constructor(opts) {
|
|
72
104
|
super({
|
|
@@ -251,6 +283,30 @@ export var FlowResponseStream;
|
|
|
251
283
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
252
284
|
};
|
|
253
285
|
})(FlowResponseStream || (FlowResponseStream = {}));
|
|
286
|
+
export const InputQueryType = {
|
|
287
|
+
TEXT: "TEXT",
|
|
288
|
+
};
|
|
289
|
+
export const QueryTransformationMode = {
|
|
290
|
+
TEXT_TO_SQL: "TEXT_TO_SQL",
|
|
291
|
+
};
|
|
292
|
+
export const TextToSqlConfigurationType = {
|
|
293
|
+
KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
|
|
294
|
+
};
|
|
295
|
+
export const GeneratedQueryType = {
|
|
296
|
+
REDSHIFT_SQL: "REDSHIFT_SQL",
|
|
297
|
+
};
|
|
298
|
+
export var ContentBlock;
|
|
299
|
+
(function (ContentBlock) {
|
|
300
|
+
ContentBlock.visit = (value, visitor) => {
|
|
301
|
+
if (value.text !== undefined)
|
|
302
|
+
return visitor.text(value.text);
|
|
303
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
304
|
+
};
|
|
305
|
+
})(ContentBlock || (ContentBlock = {}));
|
|
306
|
+
export const ConversationRole = {
|
|
307
|
+
ASSISTANT: "assistant",
|
|
308
|
+
USER: "user",
|
|
309
|
+
};
|
|
254
310
|
export const FileSourceType = {
|
|
255
311
|
BYTE_CONTENT: "BYTE_CONTENT",
|
|
256
312
|
S3: "S3",
|
|
@@ -286,42 +342,37 @@ export var RerankingMetadataSelectiveModeConfiguration;
|
|
|
286
342
|
export const VectorSearchRerankingConfigurationType = {
|
|
287
343
|
BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL",
|
|
288
344
|
};
|
|
289
|
-
export const
|
|
290
|
-
|
|
291
|
-
|
|
345
|
+
export const RetrievalResultContentColumnType = {
|
|
346
|
+
BLOB: "BLOB",
|
|
347
|
+
BOOLEAN: "BOOLEAN",
|
|
348
|
+
DOUBLE: "DOUBLE",
|
|
349
|
+
LONG: "LONG",
|
|
350
|
+
NULL: "NULL",
|
|
351
|
+
STRING: "STRING",
|
|
292
352
|
};
|
|
293
|
-
export const
|
|
294
|
-
|
|
295
|
-
|
|
353
|
+
export const RetrievalResultContentType = {
|
|
354
|
+
IMAGE: "IMAGE",
|
|
355
|
+
ROW: "ROW",
|
|
356
|
+
TEXT: "TEXT",
|
|
296
357
|
};
|
|
297
|
-
export var InvocationResultMember;
|
|
298
|
-
(function (InvocationResultMember) {
|
|
299
|
-
InvocationResultMember.visit = (value, visitor) => {
|
|
300
|
-
if (value.apiResult !== undefined)
|
|
301
|
-
return visitor.apiResult(value.apiResult);
|
|
302
|
-
if (value.functionResult !== undefined)
|
|
303
|
-
return visitor.functionResult(value.functionResult);
|
|
304
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
305
|
-
};
|
|
306
|
-
})(InvocationResultMember || (InvocationResultMember = {}));
|
|
307
358
|
export const RetrievalResultLocationType = {
|
|
308
359
|
CONFLUENCE: "CONFLUENCE",
|
|
309
360
|
CUSTOM: "CUSTOM",
|
|
361
|
+
KENDRA: "KENDRA",
|
|
310
362
|
S3: "S3",
|
|
311
363
|
SALESFORCE: "SALESFORCE",
|
|
312
364
|
SHAREPOINT: "SHAREPOINT",
|
|
365
|
+
SQL: "SQL",
|
|
313
366
|
WEB: "WEB",
|
|
314
367
|
};
|
|
315
|
-
export var
|
|
316
|
-
(function (
|
|
317
|
-
|
|
318
|
-
if (value.
|
|
319
|
-
return visitor.
|
|
320
|
-
if (value.functionInvocationInput !== undefined)
|
|
321
|
-
return visitor.functionInvocationInput(value.functionInvocationInput);
|
|
368
|
+
export var Caller;
|
|
369
|
+
(function (Caller) {
|
|
370
|
+
Caller.visit = (value, visitor) => {
|
|
371
|
+
if (value.agentAliasArn !== undefined)
|
|
372
|
+
return visitor.agentAliasArn(value.agentAliasArn);
|
|
322
373
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
323
374
|
};
|
|
324
|
-
})(
|
|
375
|
+
})(Caller || (Caller = {}));
|
|
325
376
|
export const GuardrailAction = {
|
|
326
377
|
INTERVENED: "INTERVENED",
|
|
327
378
|
NONE: "NONE",
|
|
@@ -395,6 +446,7 @@ export const GuardrailManagedWordType = {
|
|
|
395
446
|
export const InvocationType = {
|
|
396
447
|
ACTION_GROUP: "ACTION_GROUP",
|
|
397
448
|
ACTION_GROUP_CODE_INTERPRETER: "ACTION_GROUP_CODE_INTERPRETER",
|
|
449
|
+
AGENT_COLLABORATOR: "AGENT_COLLABORATOR",
|
|
398
450
|
FINISH: "FINISH",
|
|
399
451
|
KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
|
|
400
452
|
};
|
|
@@ -416,6 +468,7 @@ export const Source = {
|
|
|
416
468
|
};
|
|
417
469
|
export const Type = {
|
|
418
470
|
ACTION_GROUP: "ACTION_GROUP",
|
|
471
|
+
AGENT_COLLABORATOR: "AGENT_COLLABORATOR",
|
|
419
472
|
ASK_USER: "ASK_USER",
|
|
420
473
|
FINISH: "FINISH",
|
|
421
474
|
KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
|
|
@@ -457,6 +510,20 @@ export var PreProcessingTrace;
|
|
|
457
510
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
458
511
|
};
|
|
459
512
|
})(PreProcessingTrace || (PreProcessingTrace = {}));
|
|
513
|
+
export var RoutingClassifierTrace;
|
|
514
|
+
(function (RoutingClassifierTrace) {
|
|
515
|
+
RoutingClassifierTrace.visit = (value, visitor) => {
|
|
516
|
+
if (value.invocationInput !== undefined)
|
|
517
|
+
return visitor.invocationInput(value.invocationInput);
|
|
518
|
+
if (value.observation !== undefined)
|
|
519
|
+
return visitor.observation(value.observation);
|
|
520
|
+
if (value.modelInvocationInput !== undefined)
|
|
521
|
+
return visitor.modelInvocationInput(value.modelInvocationInput);
|
|
522
|
+
if (value.modelInvocationOutput !== undefined)
|
|
523
|
+
return visitor.modelInvocationOutput(value.modelInvocationOutput);
|
|
524
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
525
|
+
};
|
|
526
|
+
})(RoutingClassifierTrace || (RoutingClassifierTrace = {}));
|
|
460
527
|
export var Trace;
|
|
461
528
|
(function (Trace) {
|
|
462
529
|
Trace.visit = (value, visitor) => {
|
|
@@ -468,6 +535,8 @@ export var Trace;
|
|
|
468
535
|
return visitor.orchestrationTrace(value.orchestrationTrace);
|
|
469
536
|
if (value.postProcessingTrace !== undefined)
|
|
470
537
|
return visitor.postProcessingTrace(value.postProcessingTrace);
|
|
538
|
+
if (value.routingClassifierTrace !== undefined)
|
|
539
|
+
return visitor.routingClassifierTrace(value.routingClassifierTrace);
|
|
471
540
|
if (value.failureTrace !== undefined)
|
|
472
541
|
return visitor.failureTrace(value.failureTrace);
|
|
473
542
|
if (value.customOrchestrationTrace !== undefined)
|
|
@@ -719,6 +788,67 @@ export const AgentActionGroupFilterSensitiveLog = (obj) => ({
|
|
|
719
788
|
...(obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) }),
|
|
720
789
|
...(obj.functionSchema && { functionSchema: FunctionSchemaFilterSensitiveLog(obj.functionSchema) }),
|
|
721
790
|
});
|
|
791
|
+
export const ApiResultFilterSensitiveLog = (obj) => ({
|
|
792
|
+
...obj,
|
|
793
|
+
...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
|
|
794
|
+
});
|
|
795
|
+
export const InvocationResultMemberFilterSensitiveLog = (obj) => {
|
|
796
|
+
if (obj.apiResult !== undefined)
|
|
797
|
+
return { apiResult: ApiResultFilterSensitiveLog(obj.apiResult) };
|
|
798
|
+
if (obj.functionResult !== undefined)
|
|
799
|
+
return { functionResult: obj.functionResult };
|
|
800
|
+
if (obj.$unknown !== undefined)
|
|
801
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
802
|
+
};
|
|
803
|
+
export const ReturnControlResultsFilterSensitiveLog = (obj) => ({
|
|
804
|
+
...obj,
|
|
805
|
+
...(obj.returnControlInvocationResults && {
|
|
806
|
+
returnControlInvocationResults: obj.returnControlInvocationResults.map((item) => InvocationResultMemberFilterSensitiveLog(item)),
|
|
807
|
+
}),
|
|
808
|
+
});
|
|
809
|
+
export const AgentCollaboratorInputPayloadFilterSensitiveLog = (obj) => ({
|
|
810
|
+
...obj,
|
|
811
|
+
...(obj.text && { text: SENSITIVE_STRING }),
|
|
812
|
+
...(obj.returnControlResults && {
|
|
813
|
+
returnControlResults: ReturnControlResultsFilterSensitiveLog(obj.returnControlResults),
|
|
814
|
+
}),
|
|
815
|
+
});
|
|
816
|
+
export const AgentCollaboratorInvocationInputFilterSensitiveLog = (obj) => ({
|
|
817
|
+
...obj,
|
|
818
|
+
...(obj.input && { input: AgentCollaboratorInputPayloadFilterSensitiveLog(obj.input) }),
|
|
819
|
+
});
|
|
820
|
+
export const ApiInvocationInputFilterSensitiveLog = (obj) => ({
|
|
821
|
+
...obj,
|
|
822
|
+
...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
|
|
823
|
+
...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
|
|
824
|
+
});
|
|
825
|
+
export const FunctionInvocationInputFilterSensitiveLog = (obj) => ({
|
|
826
|
+
...obj,
|
|
827
|
+
...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
|
|
828
|
+
});
|
|
829
|
+
export const InvocationInputMemberFilterSensitiveLog = (obj) => {
|
|
830
|
+
if (obj.apiInvocationInput !== undefined)
|
|
831
|
+
return { apiInvocationInput: ApiInvocationInputFilterSensitiveLog(obj.apiInvocationInput) };
|
|
832
|
+
if (obj.functionInvocationInput !== undefined)
|
|
833
|
+
return { functionInvocationInput: FunctionInvocationInputFilterSensitiveLog(obj.functionInvocationInput) };
|
|
834
|
+
if (obj.$unknown !== undefined)
|
|
835
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
836
|
+
};
|
|
837
|
+
export const ReturnControlPayloadFilterSensitiveLog = (obj) => ({
|
|
838
|
+
...obj,
|
|
839
|
+
...(obj.invocationInputs && {
|
|
840
|
+
invocationInputs: obj.invocationInputs.map((item) => InvocationInputMemberFilterSensitiveLog(item)),
|
|
841
|
+
}),
|
|
842
|
+
});
|
|
843
|
+
export const AgentCollaboratorOutputPayloadFilterSensitiveLog = (obj) => ({
|
|
844
|
+
...obj,
|
|
845
|
+
...(obj.text && { text: SENSITIVE_STRING }),
|
|
846
|
+
...(obj.returnControlPayload && { returnControlPayload: SENSITIVE_STRING }),
|
|
847
|
+
});
|
|
848
|
+
export const AgentCollaboratorInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
849
|
+
...obj,
|
|
850
|
+
...(obj.output && { output: AgentCollaboratorOutputPayloadFilterSensitiveLog(obj.output) }),
|
|
851
|
+
});
|
|
722
852
|
export const FlowInputContentFilterSensitiveLog = (obj) => {
|
|
723
853
|
if (obj.document !== undefined)
|
|
724
854
|
return { document: obj.document };
|
|
@@ -815,6 +945,34 @@ export const InvokeFlowResponseFilterSensitiveLog = (obj) => ({
|
|
|
815
945
|
...obj,
|
|
816
946
|
...(obj.responseStream && { responseStream: "STREAMING_CONTENT" }),
|
|
817
947
|
});
|
|
948
|
+
export const QueryGenerationInputFilterSensitiveLog = (obj) => ({
|
|
949
|
+
...obj,
|
|
950
|
+
});
|
|
951
|
+
export const GenerateQueryRequestFilterSensitiveLog = (obj) => ({
|
|
952
|
+
...obj,
|
|
953
|
+
...(obj.queryGenerationInput && { queryGenerationInput: SENSITIVE_STRING }),
|
|
954
|
+
});
|
|
955
|
+
export const GeneratedQueryFilterSensitiveLog = (obj) => ({
|
|
956
|
+
...obj,
|
|
957
|
+
});
|
|
958
|
+
export const GenerateQueryResponseFilterSensitiveLog = (obj) => ({
|
|
959
|
+
...obj,
|
|
960
|
+
...(obj.queries && { queries: SENSITIVE_STRING }),
|
|
961
|
+
});
|
|
962
|
+
export const ContentBlockFilterSensitiveLog = (obj) => {
|
|
963
|
+
if (obj.text !== undefined)
|
|
964
|
+
return { text: obj.text };
|
|
965
|
+
if (obj.$unknown !== undefined)
|
|
966
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
967
|
+
};
|
|
968
|
+
export const MessageFilterSensitiveLog = (obj) => ({
|
|
969
|
+
...obj,
|
|
970
|
+
...(obj.content && { content: SENSITIVE_STRING }),
|
|
971
|
+
});
|
|
972
|
+
export const ConversationHistoryFilterSensitiveLog = (obj) => ({
|
|
973
|
+
...obj,
|
|
974
|
+
...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
|
|
975
|
+
});
|
|
818
976
|
export const ByteContentFileFilterSensitiveLog = (obj) => ({
|
|
819
977
|
...obj,
|
|
820
978
|
...(obj.data && { data: SENSITIVE_STRING }),
|
|
@@ -860,18 +1018,6 @@ export const VectorSearchRerankingConfigurationFilterSensitiveLog = (obj) => ({
|
|
|
860
1018
|
bedrockRerankingConfiguration: VectorSearchBedrockRerankingConfigurationFilterSensitiveLog(obj.bedrockRerankingConfiguration),
|
|
861
1019
|
}),
|
|
862
1020
|
});
|
|
863
|
-
export const ApiResultFilterSensitiveLog = (obj) => ({
|
|
864
|
-
...obj,
|
|
865
|
-
...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
|
|
866
|
-
});
|
|
867
|
-
export const InvocationResultMemberFilterSensitiveLog = (obj) => {
|
|
868
|
-
if (obj.apiResult !== undefined)
|
|
869
|
-
return { apiResult: ApiResultFilterSensitiveLog(obj.apiResult) };
|
|
870
|
-
if (obj.functionResult !== undefined)
|
|
871
|
-
return { functionResult: obj.functionResult };
|
|
872
|
-
if (obj.$unknown !== undefined)
|
|
873
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
874
|
-
};
|
|
875
1021
|
export const TextResponsePartFilterSensitiveLog = (obj) => ({
|
|
876
1022
|
...obj,
|
|
877
1023
|
});
|
|
@@ -879,8 +1025,12 @@ export const GeneratedResponsePartFilterSensitiveLog = (obj) => ({
|
|
|
879
1025
|
...obj,
|
|
880
1026
|
...(obj.textResponsePart && { textResponsePart: SENSITIVE_STRING }),
|
|
881
1027
|
});
|
|
1028
|
+
export const RetrievalResultContentColumnFilterSensitiveLog = (obj) => ({
|
|
1029
|
+
...obj,
|
|
1030
|
+
});
|
|
882
1031
|
export const RetrievalResultContentFilterSensitiveLog = (obj) => ({
|
|
883
1032
|
...obj,
|
|
1033
|
+
...(obj.row && { row: SENSITIVE_STRING }),
|
|
884
1034
|
});
|
|
885
1035
|
export const RetrievalResultLocationFilterSensitiveLog = (obj) => ({
|
|
886
1036
|
...obj,
|
|
@@ -917,24 +1067,6 @@ export const FilePartFilterSensitiveLog = (obj) => ({
|
|
|
917
1067
|
...obj,
|
|
918
1068
|
...(obj.files && { files: SENSITIVE_STRING }),
|
|
919
1069
|
});
|
|
920
|
-
export const ApiInvocationInputFilterSensitiveLog = (obj) => ({
|
|
921
|
-
...obj,
|
|
922
|
-
...(obj.apiPath && { apiPath: SENSITIVE_STRING }),
|
|
923
|
-
});
|
|
924
|
-
export const InvocationInputMemberFilterSensitiveLog = (obj) => {
|
|
925
|
-
if (obj.apiInvocationInput !== undefined)
|
|
926
|
-
return { apiInvocationInput: ApiInvocationInputFilterSensitiveLog(obj.apiInvocationInput) };
|
|
927
|
-
if (obj.functionInvocationInput !== undefined)
|
|
928
|
-
return { functionInvocationInput: obj.functionInvocationInput };
|
|
929
|
-
if (obj.$unknown !== undefined)
|
|
930
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
931
|
-
};
|
|
932
|
-
export const ReturnControlPayloadFilterSensitiveLog = (obj) => ({
|
|
933
|
-
...obj,
|
|
934
|
-
...(obj.invocationInputs && {
|
|
935
|
-
invocationInputs: obj.invocationInputs.map((item) => InvocationInputMemberFilterSensitiveLog(item)),
|
|
936
|
-
}),
|
|
937
|
-
});
|
|
938
1070
|
export const CustomOrchestrationTraceEventFilterSensitiveLog = (obj) => ({
|
|
939
1071
|
...obj,
|
|
940
1072
|
});
|
|
@@ -1007,6 +1139,9 @@ export const InvocationInputFilterSensitiveLog = (obj) => ({
|
|
|
1007
1139
|
...(obj.knowledgeBaseLookupInput && {
|
|
1008
1140
|
knowledgeBaseLookupInput: KnowledgeBaseLookupInputFilterSensitiveLog(obj.knowledgeBaseLookupInput),
|
|
1009
1141
|
}),
|
|
1142
|
+
...(obj.agentCollaboratorInvocationInput && {
|
|
1143
|
+
agentCollaboratorInvocationInput: AgentCollaboratorInvocationInputFilterSensitiveLog(obj.agentCollaboratorInvocationInput),
|
|
1144
|
+
}),
|
|
1010
1145
|
});
|
|
1011
1146
|
export const ModelInvocationInputFilterSensitiveLog = (obj) => ({
|
|
1012
1147
|
...obj,
|
|
@@ -1046,6 +1181,9 @@ export const ObservationFilterSensitiveLog = (obj) => ({
|
|
|
1046
1181
|
...(obj.actionGroupInvocationOutput && {
|
|
1047
1182
|
actionGroupInvocationOutput: ActionGroupInvocationOutputFilterSensitiveLog(obj.actionGroupInvocationOutput),
|
|
1048
1183
|
}),
|
|
1184
|
+
...(obj.agentCollaboratorInvocationOutput && {
|
|
1185
|
+
agentCollaboratorInvocationOutput: AgentCollaboratorInvocationOutputFilterSensitiveLog(obj.agentCollaboratorInvocationOutput),
|
|
1186
|
+
}),
|
|
1049
1187
|
...(obj.knowledgeBaseLookupOutput && {
|
|
1050
1188
|
knowledgeBaseLookupOutput: KnowledgeBaseLookupOutputFilterSensitiveLog(obj.knowledgeBaseLookupOutput),
|
|
1051
1189
|
}),
|
|
@@ -1106,6 +1244,23 @@ export const PreProcessingTraceFilterSensitiveLog = (obj) => {
|
|
|
1106
1244
|
if (obj.$unknown !== undefined)
|
|
1107
1245
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1108
1246
|
};
|
|
1247
|
+
export const RoutingClassifierModelInvocationOutputFilterSensitiveLog = (obj) => ({
|
|
1248
|
+
...obj,
|
|
1249
|
+
...(obj.rawResponse && { rawResponse: SENSITIVE_STRING }),
|
|
1250
|
+
...(obj.metadata && { metadata: SENSITIVE_STRING }),
|
|
1251
|
+
});
|
|
1252
|
+
export const RoutingClassifierTraceFilterSensitiveLog = (obj) => {
|
|
1253
|
+
if (obj.invocationInput !== undefined)
|
|
1254
|
+
return { invocationInput: SENSITIVE_STRING };
|
|
1255
|
+
if (obj.observation !== undefined)
|
|
1256
|
+
return { observation: SENSITIVE_STRING };
|
|
1257
|
+
if (obj.modelInvocationInput !== undefined)
|
|
1258
|
+
return { modelInvocationInput: SENSITIVE_STRING };
|
|
1259
|
+
if (obj.modelInvocationOutput !== undefined)
|
|
1260
|
+
return { modelInvocationOutput: SENSITIVE_STRING };
|
|
1261
|
+
if (obj.$unknown !== undefined)
|
|
1262
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1263
|
+
};
|
|
1109
1264
|
export const TraceFilterSensitiveLog = (obj) => {
|
|
1110
1265
|
if (obj.guardrailTrace !== undefined)
|
|
1111
1266
|
return { guardrailTrace: SENSITIVE_STRING };
|
|
@@ -1115,6 +1270,8 @@ export const TraceFilterSensitiveLog = (obj) => {
|
|
|
1115
1270
|
return { orchestrationTrace: SENSITIVE_STRING };
|
|
1116
1271
|
if (obj.postProcessingTrace !== undefined)
|
|
1117
1272
|
return { postProcessingTrace: SENSITIVE_STRING };
|
|
1273
|
+
if (obj.routingClassifierTrace !== undefined)
|
|
1274
|
+
return { routingClassifierTrace: SENSITIVE_STRING };
|
|
1118
1275
|
if (obj.failureTrace !== undefined)
|
|
1119
1276
|
return { failureTrace: SENSITIVE_STRING };
|
|
1120
1277
|
if (obj.customOrchestrationTrace !== undefined)
|
|
@@ -1125,6 +1282,8 @@ export const TraceFilterSensitiveLog = (obj) => {
|
|
|
1125
1282
|
export const TracePartFilterSensitiveLog = (obj) => ({
|
|
1126
1283
|
...obj,
|
|
1127
1284
|
...(obj.trace && { trace: SENSITIVE_STRING }),
|
|
1285
|
+
...(obj.callerChain && { callerChain: obj.callerChain.map((item) => item) }),
|
|
1286
|
+
...(obj.collaboratorName && { collaboratorName: SENSITIVE_STRING }),
|
|
1128
1287
|
});
|
|
1129
1288
|
export const ResponseStreamFilterSensitiveLog = (obj) => {
|
|
1130
1289
|
if (obj.chunk !== undefined)
|
|
@@ -1524,6 +1683,9 @@ export const SessionStateFilterSensitiveLog = (obj) => ({
|
|
|
1524
1683
|
...(obj.knowledgeBaseConfigurations && {
|
|
1525
1684
|
knowledgeBaseConfigurations: obj.knowledgeBaseConfigurations.map((item) => KnowledgeBaseConfigurationFilterSensitiveLog(item)),
|
|
1526
1685
|
}),
|
|
1686
|
+
...(obj.conversationHistory && {
|
|
1687
|
+
conversationHistory: ConversationHistoryFilterSensitiveLog(obj.conversationHistory),
|
|
1688
|
+
}),
|
|
1527
1689
|
});
|
|
1528
1690
|
export const InvokeAgentRequestFilterSensitiveLog = (obj) => ({
|
|
1529
1691
|
...obj,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody, } from "@aws-sdk/core";
|
|
2
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
3
|
-
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
|
+
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
|
|
4
4
|
import { BedrockAgentRuntimeServiceException as __BaseException } from "../models/BedrockAgentRuntimeServiceException";
|
|
5
5
|
import { AccessDeniedException, BadGatewayException, ConflictException, DependencyFailedException, FlowInputContent, InternalServerException, ResourceNotFoundException, RetrievalFilter, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
|
|
6
6
|
export const se_DeleteAgentMemoryCommand = async (input, context) => {
|
|
@@ -16,6 +16,20 @@ export const se_DeleteAgentMemoryCommand = async (input, context) => {
|
|
|
16
16
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
17
17
|
return b.build();
|
|
18
18
|
};
|
|
19
|
+
export const se_GenerateQueryCommand = async (input, context) => {
|
|
20
|
+
const b = rb(input, context);
|
|
21
|
+
const headers = {
|
|
22
|
+
"content-type": "application/json",
|
|
23
|
+
};
|
|
24
|
+
b.bp("/generateQuery");
|
|
25
|
+
let body;
|
|
26
|
+
body = JSON.stringify(take(input, {
|
|
27
|
+
queryGenerationInput: (_) => _json(_),
|
|
28
|
+
transformationConfiguration: (_) => _json(_),
|
|
29
|
+
}));
|
|
30
|
+
b.m("POST").h(headers).b(body);
|
|
31
|
+
return b.build();
|
|
32
|
+
};
|
|
19
33
|
export const se_GetAgentMemoryCommand = async (input, context) => {
|
|
20
34
|
const b = rb(input, context);
|
|
21
35
|
const headers = {};
|
|
@@ -34,9 +48,10 @@ export const se_GetAgentMemoryCommand = async (input, context) => {
|
|
|
34
48
|
};
|
|
35
49
|
export const se_InvokeAgentCommand = async (input, context) => {
|
|
36
50
|
const b = rb(input, context);
|
|
37
|
-
const headers = {
|
|
51
|
+
const headers = map({}, isSerializableHeaderValue, {
|
|
38
52
|
"content-type": "application/json",
|
|
39
|
-
|
|
53
|
+
[_xasa]: input[_sA],
|
|
54
|
+
});
|
|
40
55
|
b.bp("/agents/{agentId}/agentAliases/{agentAliasId}/sessions/{sessionId}/text");
|
|
41
56
|
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
42
57
|
b.p("agentAliasId", () => input.agentAliasId, "{agentAliasId}", false);
|
|
@@ -183,6 +198,20 @@ export const de_DeleteAgentMemoryCommand = async (output, context) => {
|
|
|
183
198
|
await collectBody(output.body, context);
|
|
184
199
|
return contents;
|
|
185
200
|
};
|
|
201
|
+
export const de_GenerateQueryCommand = async (output, context) => {
|
|
202
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
203
|
+
return de_CommandError(output, context);
|
|
204
|
+
}
|
|
205
|
+
const contents = map({
|
|
206
|
+
$metadata: deserializeMetadata(output),
|
|
207
|
+
});
|
|
208
|
+
const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
|
|
209
|
+
const doc = take(data, {
|
|
210
|
+
queries: _json,
|
|
211
|
+
});
|
|
212
|
+
Object.assign(contents, doc);
|
|
213
|
+
return contents;
|
|
214
|
+
};
|
|
186
215
|
export const de_GetAgentMemoryCommand = async (output, context) => {
|
|
187
216
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
188
217
|
return de_CommandError(output, context);
|
|
@@ -1232,6 +1261,7 @@ const se_RetrieveAndGenerateConfiguration = (input, context) => {
|
|
|
1232
1261
|
};
|
|
1233
1262
|
const se_SessionState = (input, context) => {
|
|
1234
1263
|
return take(input, {
|
|
1264
|
+
conversationHistory: _json,
|
|
1235
1265
|
files: (_) => se_InputFiles(_, context),
|
|
1236
1266
|
invocationId: [],
|
|
1237
1267
|
knowledgeBaseConfigurations: (_) => se_KnowledgeBaseConfigurations(_, context),
|
|
@@ -1270,6 +1300,13 @@ const se_VectorSearchRerankingConfiguration = (input, context) => {
|
|
|
1270
1300
|
const se_Document = (input, context) => {
|
|
1271
1301
|
return input;
|
|
1272
1302
|
};
|
|
1303
|
+
const de_AgentCollaboratorInvocationOutput = (output, context) => {
|
|
1304
|
+
return take(output, {
|
|
1305
|
+
agentCollaboratorAliasArn: __expectString,
|
|
1306
|
+
agentCollaboratorName: __expectString,
|
|
1307
|
+
output: _json,
|
|
1308
|
+
});
|
|
1309
|
+
};
|
|
1273
1310
|
const de_Attribution = (output, context) => {
|
|
1274
1311
|
return take(output, {
|
|
1275
1312
|
citations: (_) => de_Citations(_, context),
|
|
@@ -1476,6 +1513,7 @@ const de_MemorySessionSummary = (output, context) => {
|
|
|
1476
1513
|
};
|
|
1477
1514
|
const de_ModelInvocationInput = (output, context) => {
|
|
1478
1515
|
return take(output, {
|
|
1516
|
+
foundationModel: __expectString,
|
|
1479
1517
|
inferenceConfiguration: (_) => de_InferenceConfiguration(_, context),
|
|
1480
1518
|
overrideLambda: __expectString,
|
|
1481
1519
|
parserMode: __expectString,
|
|
@@ -1488,6 +1526,7 @@ const de_ModelInvocationInput = (output, context) => {
|
|
|
1488
1526
|
const de_Observation = (output, context) => {
|
|
1489
1527
|
return take(output, {
|
|
1490
1528
|
actionGroupInvocationOutput: _json,
|
|
1529
|
+
agentCollaboratorInvocationOutput: (_) => de_AgentCollaboratorInvocationOutput(_, context),
|
|
1491
1530
|
codeInterpreterInvocationOutput: _json,
|
|
1492
1531
|
finalResponse: _json,
|
|
1493
1532
|
knowledgeBaseLookupOutput: (_) => de_KnowledgeBaseLookupOutput(_, context),
|
|
@@ -1620,6 +1659,29 @@ const de_RetrievedReferences = (output, context) => {
|
|
|
1620
1659
|
});
|
|
1621
1660
|
return retVal;
|
|
1622
1661
|
};
|
|
1662
|
+
const de_RoutingClassifierTrace = (output, context) => {
|
|
1663
|
+
if (output.invocationInput != null) {
|
|
1664
|
+
return {
|
|
1665
|
+
invocationInput: _json(output.invocationInput),
|
|
1666
|
+
};
|
|
1667
|
+
}
|
|
1668
|
+
if (output.modelInvocationInput != null) {
|
|
1669
|
+
return {
|
|
1670
|
+
modelInvocationInput: de_ModelInvocationInput(output.modelInvocationInput, context),
|
|
1671
|
+
};
|
|
1672
|
+
}
|
|
1673
|
+
if (output.modelInvocationOutput != null) {
|
|
1674
|
+
return {
|
|
1675
|
+
modelInvocationOutput: _json(output.modelInvocationOutput),
|
|
1676
|
+
};
|
|
1677
|
+
}
|
|
1678
|
+
if (output.observation != null) {
|
|
1679
|
+
return {
|
|
1680
|
+
observation: de_Observation(output.observation, context),
|
|
1681
|
+
};
|
|
1682
|
+
}
|
|
1683
|
+
return { $unknown: Object.entries(output)[0] };
|
|
1684
|
+
};
|
|
1623
1685
|
const de_Trace = (output, context) => {
|
|
1624
1686
|
if (output.customOrchestrationTrace != null) {
|
|
1625
1687
|
return {
|
|
@@ -1651,6 +1713,11 @@ const de_Trace = (output, context) => {
|
|
|
1651
1713
|
preProcessingTrace: de_PreProcessingTrace(__expectUnion(output.preProcessingTrace), context),
|
|
1652
1714
|
};
|
|
1653
1715
|
}
|
|
1716
|
+
if (output.routingClassifierTrace != null) {
|
|
1717
|
+
return {
|
|
1718
|
+
routingClassifierTrace: de_RoutingClassifierTrace(__expectUnion(output.routingClassifierTrace), context),
|
|
1719
|
+
};
|
|
1720
|
+
}
|
|
1654
1721
|
return { $unknown: Object.entries(output)[0] };
|
|
1655
1722
|
};
|
|
1656
1723
|
const de_TracePart = (output, context) => {
|
|
@@ -1658,6 +1725,8 @@ const de_TracePart = (output, context) => {
|
|
|
1658
1725
|
agentAliasId: __expectString,
|
|
1659
1726
|
agentId: __expectString,
|
|
1660
1727
|
agentVersion: __expectString,
|
|
1728
|
+
callerChain: _json,
|
|
1729
|
+
collaboratorName: __expectString,
|
|
1661
1730
|
sessionId: __expectString,
|
|
1662
1731
|
trace: (_) => de_Trace(__expectUnion(_), context),
|
|
1663
1732
|
});
|
|
@@ -1677,8 +1746,10 @@ const _mI = "memoryId";
|
|
|
1677
1746
|
const _mIa = "maxItems";
|
|
1678
1747
|
const _mT = "memoryType";
|
|
1679
1748
|
const _nT = "nextToken";
|
|
1749
|
+
const _sA = "sourceArn";
|
|
1680
1750
|
const _sI = "sessionId";
|
|
1681
1751
|
const _xabact = "x-amzn-bedrock-agent-content-type";
|
|
1682
1752
|
const _xabami = "x-amz-bedrock-agent-memory-id";
|
|
1683
1753
|
const _xabasi = "x-amz-bedrock-agent-session-id";
|
|
1684
1754
|
const _xabkbsi = "x-amzn-bedrock-knowledge-base-session-id";
|
|
1755
|
+
const _xasa = "x-amz-source-arn";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
|
|
2
2
|
import { BedrockAgentRuntimeClient } from "./BedrockAgentRuntimeClient";
|
|
3
3
|
import { DeleteAgentMemoryCommandInput, DeleteAgentMemoryCommandOutput } from "./commands/DeleteAgentMemoryCommand";
|
|
4
|
+
import { GenerateQueryCommandInput, GenerateQueryCommandOutput } from "./commands/GenerateQueryCommand";
|
|
4
5
|
import { GetAgentMemoryCommandInput, GetAgentMemoryCommandOutput } from "./commands/GetAgentMemoryCommand";
|
|
5
6
|
import { InvokeAgentCommandInput, InvokeAgentCommandOutput } from "./commands/InvokeAgentCommand";
|
|
6
7
|
import { InvokeFlowCommandInput, InvokeFlowCommandOutput } from "./commands/InvokeFlowCommand";
|
|
@@ -17,6 +18,12 @@ export interface BedrockAgentRuntime {
|
|
|
17
18
|
deleteAgentMemory(args: DeleteAgentMemoryCommandInput, options?: __HttpHandlerOptions): Promise<DeleteAgentMemoryCommandOutput>;
|
|
18
19
|
deleteAgentMemory(args: DeleteAgentMemoryCommandInput, cb: (err: any, data?: DeleteAgentMemoryCommandOutput) => void): void;
|
|
19
20
|
deleteAgentMemory(args: DeleteAgentMemoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAgentMemoryCommandOutput) => void): void;
|
|
21
|
+
/**
|
|
22
|
+
* @see {@link GenerateQueryCommand}
|
|
23
|
+
*/
|
|
24
|
+
generateQuery(args: GenerateQueryCommandInput, options?: __HttpHandlerOptions): Promise<GenerateQueryCommandOutput>;
|
|
25
|
+
generateQuery(args: GenerateQueryCommandInput, cb: (err: any, data?: GenerateQueryCommandOutput) => void): void;
|
|
26
|
+
generateQuery(args: GenerateQueryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GenerateQueryCommandOutput) => void): void;
|
|
20
27
|
/**
|
|
21
28
|
* @see {@link GetAgentMemoryCommand}
|
|
22
29
|
*/
|
|
@@ -9,6 +9,7 @@ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration
|
|
|
9
9
|
import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, EventStreamSerdeProvider as __EventStreamSerdeProvider, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
|
|
10
10
|
import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
|
|
11
11
|
import { DeleteAgentMemoryCommandInput, DeleteAgentMemoryCommandOutput } from "./commands/DeleteAgentMemoryCommand";
|
|
12
|
+
import { GenerateQueryCommandInput, GenerateQueryCommandOutput } from "./commands/GenerateQueryCommand";
|
|
12
13
|
import { GetAgentMemoryCommandInput, GetAgentMemoryCommandOutput } from "./commands/GetAgentMemoryCommand";
|
|
13
14
|
import { InvokeAgentCommandInput, InvokeAgentCommandOutput } from "./commands/InvokeAgentCommand";
|
|
14
15
|
import { InvokeFlowCommandInput, InvokeFlowCommandOutput } from "./commands/InvokeFlowCommand";
|
|
@@ -24,11 +25,11 @@ export { __Client };
|
|
|
24
25
|
/**
|
|
25
26
|
* @public
|
|
26
27
|
*/
|
|
27
|
-
export type ServiceInputTypes = DeleteAgentMemoryCommandInput | GetAgentMemoryCommandInput | InvokeAgentCommandInput | InvokeFlowCommandInput | InvokeInlineAgentCommandInput | OptimizePromptCommandInput | RerankCommandInput | RetrieveAndGenerateCommandInput | RetrieveAndGenerateStreamCommandInput | RetrieveCommandInput;
|
|
28
|
+
export type ServiceInputTypes = DeleteAgentMemoryCommandInput | GenerateQueryCommandInput | GetAgentMemoryCommandInput | InvokeAgentCommandInput | InvokeFlowCommandInput | InvokeInlineAgentCommandInput | OptimizePromptCommandInput | RerankCommandInput | RetrieveAndGenerateCommandInput | RetrieveAndGenerateStreamCommandInput | RetrieveCommandInput;
|
|
28
29
|
/**
|
|
29
30
|
* @public
|
|
30
31
|
*/
|
|
31
|
-
export type ServiceOutputTypes = DeleteAgentMemoryCommandOutput | GetAgentMemoryCommandOutput | InvokeAgentCommandOutput | InvokeFlowCommandOutput | InvokeInlineAgentCommandOutput | OptimizePromptCommandOutput | RerankCommandOutput | RetrieveAndGenerateCommandOutput | RetrieveAndGenerateStreamCommandOutput | RetrieveCommandOutput;
|
|
32
|
+
export type ServiceOutputTypes = DeleteAgentMemoryCommandOutput | GenerateQueryCommandOutput | GetAgentMemoryCommandOutput | InvokeAgentCommandOutput | InvokeFlowCommandOutput | InvokeInlineAgentCommandOutput | OptimizePromptCommandOutput | RerankCommandOutput | RetrieveAndGenerateCommandOutput | RetrieveAndGenerateStreamCommandOutput | RetrieveCommandOutput;
|
|
32
33
|
/**
|
|
33
34
|
* @public
|
|
34
35
|
*/
|