@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
package/dist-cjs/index.js
CHANGED
|
@@ -30,6 +30,10 @@ __export(src_exports, {
|
|
|
30
30
|
ActionGroupSignature: () => ActionGroupSignature,
|
|
31
31
|
ActionInvocationType: () => ActionInvocationType,
|
|
32
32
|
AgentActionGroupFilterSensitiveLog: () => AgentActionGroupFilterSensitiveLog,
|
|
33
|
+
AgentCollaboratorInputPayloadFilterSensitiveLog: () => AgentCollaboratorInputPayloadFilterSensitiveLog,
|
|
34
|
+
AgentCollaboratorInvocationInputFilterSensitiveLog: () => AgentCollaboratorInvocationInputFilterSensitiveLog,
|
|
35
|
+
AgentCollaboratorInvocationOutputFilterSensitiveLog: () => AgentCollaboratorInvocationOutputFilterSensitiveLog,
|
|
36
|
+
AgentCollaboratorOutputPayloadFilterSensitiveLog: () => AgentCollaboratorOutputPayloadFilterSensitiveLog,
|
|
33
37
|
AnalyzePromptEventFilterSensitiveLog: () => AnalyzePromptEventFilterSensitiveLog,
|
|
34
38
|
ApiInvocationInputFilterSensitiveLog: () => ApiInvocationInputFilterSensitiveLog,
|
|
35
39
|
ApiResultFilterSensitiveLog: () => ApiResultFilterSensitiveLog,
|
|
@@ -41,10 +45,15 @@ __export(src_exports, {
|
|
|
41
45
|
BedrockAgentRuntimeServiceException: () => BedrockAgentRuntimeServiceException,
|
|
42
46
|
ByteContentDocFilterSensitiveLog: () => ByteContentDocFilterSensitiveLog,
|
|
43
47
|
ByteContentFileFilterSensitiveLog: () => ByteContentFileFilterSensitiveLog,
|
|
48
|
+
Caller: () => Caller,
|
|
44
49
|
CitationEventFilterSensitiveLog: () => CitationEventFilterSensitiveLog,
|
|
45
50
|
CitationFilterSensitiveLog: () => CitationFilterSensitiveLog,
|
|
46
51
|
ConfirmationState: () => ConfirmationState,
|
|
47
52
|
ConflictException: () => ConflictException,
|
|
53
|
+
ContentBlock: () => ContentBlock,
|
|
54
|
+
ContentBlockFilterSensitiveLog: () => ContentBlockFilterSensitiveLog,
|
|
55
|
+
ConversationHistoryFilterSensitiveLog: () => ConversationHistoryFilterSensitiveLog,
|
|
56
|
+
ConversationRole: () => ConversationRole,
|
|
48
57
|
CreationMode: () => CreationMode,
|
|
49
58
|
CustomControlMethod: () => CustomControlMethod,
|
|
50
59
|
CustomOrchestrationTraceEventFilterSensitiveLog: () => CustomOrchestrationTraceEventFilterSensitiveLog,
|
|
@@ -84,8 +93,14 @@ __export(src_exports, {
|
|
|
84
93
|
FlowTraceNodeOutputEventFilterSensitiveLog: () => FlowTraceNodeOutputEventFilterSensitiveLog,
|
|
85
94
|
FlowTraceNodeOutputFieldFilterSensitiveLog: () => FlowTraceNodeOutputFieldFilterSensitiveLog,
|
|
86
95
|
FunctionDefinitionFilterSensitiveLog: () => FunctionDefinitionFilterSensitiveLog,
|
|
96
|
+
FunctionInvocationInputFilterSensitiveLog: () => FunctionInvocationInputFilterSensitiveLog,
|
|
87
97
|
FunctionSchema: () => FunctionSchema,
|
|
88
98
|
FunctionSchemaFilterSensitiveLog: () => FunctionSchemaFilterSensitiveLog,
|
|
99
|
+
GenerateQueryCommand: () => GenerateQueryCommand,
|
|
100
|
+
GenerateQueryRequestFilterSensitiveLog: () => GenerateQueryRequestFilterSensitiveLog,
|
|
101
|
+
GenerateQueryResponseFilterSensitiveLog: () => GenerateQueryResponseFilterSensitiveLog,
|
|
102
|
+
GeneratedQueryFilterSensitiveLog: () => GeneratedQueryFilterSensitiveLog,
|
|
103
|
+
GeneratedQueryType: () => GeneratedQueryType,
|
|
89
104
|
GeneratedResponsePartFilterSensitiveLog: () => GeneratedResponsePartFilterSensitiveLog,
|
|
90
105
|
GenerationConfigurationFilterSensitiveLog: () => GenerationConfigurationFilterSensitiveLog,
|
|
91
106
|
GetAgentMemoryCommand: () => GetAgentMemoryCommand,
|
|
@@ -123,6 +138,7 @@ __export(src_exports, {
|
|
|
123
138
|
InputFileFilterSensitiveLog: () => InputFileFilterSensitiveLog,
|
|
124
139
|
InputPrompt: () => InputPrompt,
|
|
125
140
|
InputPromptFilterSensitiveLog: () => InputPromptFilterSensitiveLog,
|
|
141
|
+
InputQueryType: () => InputQueryType,
|
|
126
142
|
InternalServerException: () => InternalServerException,
|
|
127
143
|
InvocationInputFilterSensitiveLog: () => InvocationInputFilterSensitiveLog,
|
|
128
144
|
InvocationInputMember: () => InvocationInputMember,
|
|
@@ -150,6 +166,7 @@ __export(src_exports, {
|
|
|
150
166
|
KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog: () => KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
|
|
151
167
|
Memory: () => Memory,
|
|
152
168
|
MemoryType: () => MemoryType,
|
|
169
|
+
MessageFilterSensitiveLog: () => MessageFilterSensitiveLog,
|
|
153
170
|
MetadataAttributeSchemaFilterSensitiveLog: () => MetadataAttributeSchemaFilterSensitiveLog,
|
|
154
171
|
MetadataConfigurationForRerankingFilterSensitiveLog: () => MetadataConfigurationForRerankingFilterSensitiveLog,
|
|
155
172
|
MetadataFilterSensitiveLog: () => MetadataFilterSensitiveLog,
|
|
@@ -171,6 +188,7 @@ __export(src_exports, {
|
|
|
171
188
|
OutputFileFilterSensitiveLog: () => OutputFileFilterSensitiveLog,
|
|
172
189
|
ParameterType: () => ParameterType,
|
|
173
190
|
PayloadPartFilterSensitiveLog: () => PayloadPartFilterSensitiveLog,
|
|
191
|
+
PayloadType: () => PayloadType,
|
|
174
192
|
PostProcessingModelInvocationOutputFilterSensitiveLog: () => PostProcessingModelInvocationOutputFilterSensitiveLog,
|
|
175
193
|
PostProcessingParsedResponseFilterSensitiveLog: () => PostProcessingParsedResponseFilterSensitiveLog,
|
|
176
194
|
PostProcessingTrace: () => PostProcessingTrace,
|
|
@@ -184,6 +202,8 @@ __export(src_exports, {
|
|
|
184
202
|
PromptState: () => PromptState,
|
|
185
203
|
PromptTemplateFilterSensitiveLog: () => PromptTemplateFilterSensitiveLog,
|
|
186
204
|
PromptType: () => PromptType,
|
|
205
|
+
QueryGenerationInputFilterSensitiveLog: () => QueryGenerationInputFilterSensitiveLog,
|
|
206
|
+
QueryTransformationMode: () => QueryTransformationMode,
|
|
187
207
|
QueryTransformationType: () => QueryTransformationType,
|
|
188
208
|
RationaleFilterSensitiveLog: () => RationaleFilterSensitiveLog,
|
|
189
209
|
RawResponseFilterSensitiveLog: () => RawResponseFilterSensitiveLog,
|
|
@@ -210,7 +230,10 @@ __export(src_exports, {
|
|
|
210
230
|
ResponseStreamFilterSensitiveLog: () => ResponseStreamFilterSensitiveLog,
|
|
211
231
|
RetrievalFilter: () => RetrievalFilter,
|
|
212
232
|
RetrievalFilterFilterSensitiveLog: () => RetrievalFilterFilterSensitiveLog,
|
|
233
|
+
RetrievalResultContentColumnFilterSensitiveLog: () => RetrievalResultContentColumnFilterSensitiveLog,
|
|
234
|
+
RetrievalResultContentColumnType: () => RetrievalResultContentColumnType,
|
|
213
235
|
RetrievalResultContentFilterSensitiveLog: () => RetrievalResultContentFilterSensitiveLog,
|
|
236
|
+
RetrievalResultContentType: () => RetrievalResultContentType,
|
|
214
237
|
RetrievalResultLocationFilterSensitiveLog: () => RetrievalResultLocationFilterSensitiveLog,
|
|
215
238
|
RetrievalResultLocationType: () => RetrievalResultLocationType,
|
|
216
239
|
RetrieveAndGenerateCommand: () => RetrieveAndGenerateCommand,
|
|
@@ -231,12 +254,17 @@ __export(src_exports, {
|
|
|
231
254
|
RetrieveResponseFilterSensitiveLog: () => RetrieveResponseFilterSensitiveLog,
|
|
232
255
|
RetrievedReferenceFilterSensitiveLog: () => RetrievedReferenceFilterSensitiveLog,
|
|
233
256
|
ReturnControlPayloadFilterSensitiveLog: () => ReturnControlPayloadFilterSensitiveLog,
|
|
257
|
+
ReturnControlResultsFilterSensitiveLog: () => ReturnControlResultsFilterSensitiveLog,
|
|
258
|
+
RoutingClassifierModelInvocationOutputFilterSensitiveLog: () => RoutingClassifierModelInvocationOutputFilterSensitiveLog,
|
|
259
|
+
RoutingClassifierTrace: () => RoutingClassifierTrace,
|
|
260
|
+
RoutingClassifierTraceFilterSensitiveLog: () => RoutingClassifierTraceFilterSensitiveLog,
|
|
234
261
|
SearchType: () => SearchType,
|
|
235
262
|
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
236
263
|
SessionStateFilterSensitiveLog: () => SessionStateFilterSensitiveLog,
|
|
237
264
|
Source: () => Source,
|
|
238
265
|
TextPromptFilterSensitiveLog: () => TextPromptFilterSensitiveLog,
|
|
239
266
|
TextResponsePartFilterSensitiveLog: () => TextResponsePartFilterSensitiveLog,
|
|
267
|
+
TextToSqlConfigurationType: () => TextToSqlConfigurationType,
|
|
240
268
|
ThrottlingException: () => ThrottlingException,
|
|
241
269
|
Trace: () => Trace,
|
|
242
270
|
TraceFilterSensitiveLog: () => TraceFilterSensitiveLog,
|
|
@@ -494,6 +522,38 @@ var FunctionSchema;
|
|
|
494
522
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
495
523
|
}, "visit");
|
|
496
524
|
})(FunctionSchema || (FunctionSchema = {}));
|
|
525
|
+
var ConfirmationState = {
|
|
526
|
+
CONFIRM: "CONFIRM",
|
|
527
|
+
DENY: "DENY"
|
|
528
|
+
};
|
|
529
|
+
var ResponseState = {
|
|
530
|
+
FAILURE: "FAILURE",
|
|
531
|
+
REPROMPT: "REPROMPT"
|
|
532
|
+
};
|
|
533
|
+
var InvocationResultMember;
|
|
534
|
+
((InvocationResultMember3) => {
|
|
535
|
+
InvocationResultMember3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
536
|
+
if (value.apiResult !== void 0)
|
|
537
|
+
return visitor.apiResult(value.apiResult);
|
|
538
|
+
if (value.functionResult !== void 0)
|
|
539
|
+
return visitor.functionResult(value.functionResult);
|
|
540
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
541
|
+
}, "visit");
|
|
542
|
+
})(InvocationResultMember || (InvocationResultMember = {}));
|
|
543
|
+
var PayloadType = {
|
|
544
|
+
RETURN_CONTROL: "RETURN_CONTROL",
|
|
545
|
+
TEXT: "TEXT"
|
|
546
|
+
};
|
|
547
|
+
var InvocationInputMember;
|
|
548
|
+
((InvocationInputMember2) => {
|
|
549
|
+
InvocationInputMember2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
550
|
+
if (value.apiInvocationInput !== void 0)
|
|
551
|
+
return visitor.apiInvocationInput(value.apiInvocationInput);
|
|
552
|
+
if (value.functionInvocationInput !== void 0)
|
|
553
|
+
return visitor.functionInvocationInput(value.functionInvocationInput);
|
|
554
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
555
|
+
}, "visit");
|
|
556
|
+
})(InvocationInputMember || (InvocationInputMember = {}));
|
|
497
557
|
var _BadGatewayException = class _BadGatewayException extends BedrockAgentRuntimeServiceException {
|
|
498
558
|
/**
|
|
499
559
|
* @internal
|
|
@@ -718,6 +778,30 @@ var FlowResponseStream;
|
|
|
718
778
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
719
779
|
}, "visit");
|
|
720
780
|
})(FlowResponseStream || (FlowResponseStream = {}));
|
|
781
|
+
var InputQueryType = {
|
|
782
|
+
TEXT: "TEXT"
|
|
783
|
+
};
|
|
784
|
+
var QueryTransformationMode = {
|
|
785
|
+
TEXT_TO_SQL: "TEXT_TO_SQL"
|
|
786
|
+
};
|
|
787
|
+
var TextToSqlConfigurationType = {
|
|
788
|
+
KNOWLEDGE_BASE: "KNOWLEDGE_BASE"
|
|
789
|
+
};
|
|
790
|
+
var GeneratedQueryType = {
|
|
791
|
+
REDSHIFT_SQL: "REDSHIFT_SQL"
|
|
792
|
+
};
|
|
793
|
+
var ContentBlock;
|
|
794
|
+
((ContentBlock3) => {
|
|
795
|
+
ContentBlock3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
796
|
+
if (value.text !== void 0)
|
|
797
|
+
return visitor.text(value.text);
|
|
798
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
799
|
+
}, "visit");
|
|
800
|
+
})(ContentBlock || (ContentBlock = {}));
|
|
801
|
+
var ConversationRole = {
|
|
802
|
+
ASSISTANT: "assistant",
|
|
803
|
+
USER: "user"
|
|
804
|
+
};
|
|
721
805
|
var FileSourceType = {
|
|
722
806
|
BYTE_CONTENT: "BYTE_CONTENT",
|
|
723
807
|
S3: "S3"
|
|
@@ -753,42 +837,37 @@ var RerankingMetadataSelectiveModeConfiguration;
|
|
|
753
837
|
var VectorSearchRerankingConfigurationType = {
|
|
754
838
|
BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL"
|
|
755
839
|
};
|
|
756
|
-
var
|
|
757
|
-
|
|
758
|
-
|
|
840
|
+
var RetrievalResultContentColumnType = {
|
|
841
|
+
BLOB: "BLOB",
|
|
842
|
+
BOOLEAN: "BOOLEAN",
|
|
843
|
+
DOUBLE: "DOUBLE",
|
|
844
|
+
LONG: "LONG",
|
|
845
|
+
NULL: "NULL",
|
|
846
|
+
STRING: "STRING"
|
|
759
847
|
};
|
|
760
|
-
var
|
|
761
|
-
|
|
762
|
-
|
|
848
|
+
var RetrievalResultContentType = {
|
|
849
|
+
IMAGE: "IMAGE",
|
|
850
|
+
ROW: "ROW",
|
|
851
|
+
TEXT: "TEXT"
|
|
763
852
|
};
|
|
764
|
-
var InvocationResultMember;
|
|
765
|
-
((InvocationResultMember3) => {
|
|
766
|
-
InvocationResultMember3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
767
|
-
if (value.apiResult !== void 0)
|
|
768
|
-
return visitor.apiResult(value.apiResult);
|
|
769
|
-
if (value.functionResult !== void 0)
|
|
770
|
-
return visitor.functionResult(value.functionResult);
|
|
771
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
772
|
-
}, "visit");
|
|
773
|
-
})(InvocationResultMember || (InvocationResultMember = {}));
|
|
774
853
|
var RetrievalResultLocationType = {
|
|
775
854
|
CONFLUENCE: "CONFLUENCE",
|
|
776
855
|
CUSTOM: "CUSTOM",
|
|
856
|
+
KENDRA: "KENDRA",
|
|
777
857
|
S3: "S3",
|
|
778
858
|
SALESFORCE: "SALESFORCE",
|
|
779
859
|
SHAREPOINT: "SHAREPOINT",
|
|
860
|
+
SQL: "SQL",
|
|
780
861
|
WEB: "WEB"
|
|
781
862
|
};
|
|
782
|
-
var
|
|
783
|
-
((
|
|
784
|
-
|
|
785
|
-
if (value.
|
|
786
|
-
return visitor.
|
|
787
|
-
if (value.functionInvocationInput !== void 0)
|
|
788
|
-
return visitor.functionInvocationInput(value.functionInvocationInput);
|
|
863
|
+
var Caller;
|
|
864
|
+
((Caller2) => {
|
|
865
|
+
Caller2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
866
|
+
if (value.agentAliasArn !== void 0)
|
|
867
|
+
return visitor.agentAliasArn(value.agentAliasArn);
|
|
789
868
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
790
869
|
}, "visit");
|
|
791
|
-
})(
|
|
870
|
+
})(Caller || (Caller = {}));
|
|
792
871
|
var GuardrailAction = {
|
|
793
872
|
INTERVENED: "INTERVENED",
|
|
794
873
|
NONE: "NONE"
|
|
@@ -862,6 +941,7 @@ var GuardrailManagedWordType = {
|
|
|
862
941
|
var InvocationType = {
|
|
863
942
|
ACTION_GROUP: "ACTION_GROUP",
|
|
864
943
|
ACTION_GROUP_CODE_INTERPRETER: "ACTION_GROUP_CODE_INTERPRETER",
|
|
944
|
+
AGENT_COLLABORATOR: "AGENT_COLLABORATOR",
|
|
865
945
|
FINISH: "FINISH",
|
|
866
946
|
KNOWLEDGE_BASE: "KNOWLEDGE_BASE"
|
|
867
947
|
};
|
|
@@ -883,6 +963,7 @@ var Source = {
|
|
|
883
963
|
};
|
|
884
964
|
var Type = {
|
|
885
965
|
ACTION_GROUP: "ACTION_GROUP",
|
|
966
|
+
AGENT_COLLABORATOR: "AGENT_COLLABORATOR",
|
|
886
967
|
ASK_USER: "ASK_USER",
|
|
887
968
|
FINISH: "FINISH",
|
|
888
969
|
KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
|
|
@@ -924,6 +1005,20 @@ var PreProcessingTrace;
|
|
|
924
1005
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
925
1006
|
}, "visit");
|
|
926
1007
|
})(PreProcessingTrace || (PreProcessingTrace = {}));
|
|
1008
|
+
var RoutingClassifierTrace;
|
|
1009
|
+
((RoutingClassifierTrace3) => {
|
|
1010
|
+
RoutingClassifierTrace3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
1011
|
+
if (value.invocationInput !== void 0)
|
|
1012
|
+
return visitor.invocationInput(value.invocationInput);
|
|
1013
|
+
if (value.observation !== void 0)
|
|
1014
|
+
return visitor.observation(value.observation);
|
|
1015
|
+
if (value.modelInvocationInput !== void 0)
|
|
1016
|
+
return visitor.modelInvocationInput(value.modelInvocationInput);
|
|
1017
|
+
if (value.modelInvocationOutput !== void 0)
|
|
1018
|
+
return visitor.modelInvocationOutput(value.modelInvocationOutput);
|
|
1019
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1020
|
+
}, "visit");
|
|
1021
|
+
})(RoutingClassifierTrace || (RoutingClassifierTrace = {}));
|
|
927
1022
|
var Trace;
|
|
928
1023
|
((Trace3) => {
|
|
929
1024
|
Trace3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -935,6 +1030,8 @@ var Trace;
|
|
|
935
1030
|
return visitor.orchestrationTrace(value.orchestrationTrace);
|
|
936
1031
|
if (value.postProcessingTrace !== void 0)
|
|
937
1032
|
return visitor.postProcessingTrace(value.postProcessingTrace);
|
|
1033
|
+
if (value.routingClassifierTrace !== void 0)
|
|
1034
|
+
return visitor.routingClassifierTrace(value.routingClassifierTrace);
|
|
938
1035
|
if (value.failureTrace !== void 0)
|
|
939
1036
|
return visitor.failureTrace(value.failureTrace);
|
|
940
1037
|
if (value.customOrchestrationTrace !== void 0)
|
|
@@ -1186,6 +1283,69 @@ var AgentActionGroupFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1186
1283
|
...obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) },
|
|
1187
1284
|
...obj.functionSchema && { functionSchema: FunctionSchemaFilterSensitiveLog(obj.functionSchema) }
|
|
1188
1285
|
}), "AgentActionGroupFilterSensitiveLog");
|
|
1286
|
+
var ApiResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1287
|
+
...obj,
|
|
1288
|
+
...obj.apiPath && { apiPath: import_smithy_client.SENSITIVE_STRING }
|
|
1289
|
+
}), "ApiResultFilterSensitiveLog");
|
|
1290
|
+
var InvocationResultMemberFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1291
|
+
if (obj.apiResult !== void 0)
|
|
1292
|
+
return { apiResult: ApiResultFilterSensitiveLog(obj.apiResult) };
|
|
1293
|
+
if (obj.functionResult !== void 0)
|
|
1294
|
+
return { functionResult: obj.functionResult };
|
|
1295
|
+
if (obj.$unknown !== void 0)
|
|
1296
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1297
|
+
}, "InvocationResultMemberFilterSensitiveLog");
|
|
1298
|
+
var ReturnControlResultsFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1299
|
+
...obj,
|
|
1300
|
+
...obj.returnControlInvocationResults && {
|
|
1301
|
+
returnControlInvocationResults: obj.returnControlInvocationResults.map(
|
|
1302
|
+
(item) => InvocationResultMemberFilterSensitiveLog(item)
|
|
1303
|
+
)
|
|
1304
|
+
}
|
|
1305
|
+
}), "ReturnControlResultsFilterSensitiveLog");
|
|
1306
|
+
var AgentCollaboratorInputPayloadFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1307
|
+
...obj,
|
|
1308
|
+
...obj.text && { text: import_smithy_client.SENSITIVE_STRING },
|
|
1309
|
+
...obj.returnControlResults && {
|
|
1310
|
+
returnControlResults: ReturnControlResultsFilterSensitiveLog(obj.returnControlResults)
|
|
1311
|
+
}
|
|
1312
|
+
}), "AgentCollaboratorInputPayloadFilterSensitiveLog");
|
|
1313
|
+
var AgentCollaboratorInvocationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1314
|
+
...obj,
|
|
1315
|
+
...obj.input && { input: AgentCollaboratorInputPayloadFilterSensitiveLog(obj.input) }
|
|
1316
|
+
}), "AgentCollaboratorInvocationInputFilterSensitiveLog");
|
|
1317
|
+
var ApiInvocationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1318
|
+
...obj,
|
|
1319
|
+
...obj.apiPath && { apiPath: import_smithy_client.SENSITIVE_STRING },
|
|
1320
|
+
...obj.collaboratorName && { collaboratorName: import_smithy_client.SENSITIVE_STRING }
|
|
1321
|
+
}), "ApiInvocationInputFilterSensitiveLog");
|
|
1322
|
+
var FunctionInvocationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1323
|
+
...obj,
|
|
1324
|
+
...obj.collaboratorName && { collaboratorName: import_smithy_client.SENSITIVE_STRING }
|
|
1325
|
+
}), "FunctionInvocationInputFilterSensitiveLog");
|
|
1326
|
+
var InvocationInputMemberFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1327
|
+
if (obj.apiInvocationInput !== void 0)
|
|
1328
|
+
return { apiInvocationInput: ApiInvocationInputFilterSensitiveLog(obj.apiInvocationInput) };
|
|
1329
|
+
if (obj.functionInvocationInput !== void 0)
|
|
1330
|
+
return { functionInvocationInput: FunctionInvocationInputFilterSensitiveLog(obj.functionInvocationInput) };
|
|
1331
|
+
if (obj.$unknown !== void 0)
|
|
1332
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1333
|
+
}, "InvocationInputMemberFilterSensitiveLog");
|
|
1334
|
+
var ReturnControlPayloadFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1335
|
+
...obj,
|
|
1336
|
+
...obj.invocationInputs && {
|
|
1337
|
+
invocationInputs: obj.invocationInputs.map((item) => InvocationInputMemberFilterSensitiveLog(item))
|
|
1338
|
+
}
|
|
1339
|
+
}), "ReturnControlPayloadFilterSensitiveLog");
|
|
1340
|
+
var AgentCollaboratorOutputPayloadFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1341
|
+
...obj,
|
|
1342
|
+
...obj.text && { text: import_smithy_client.SENSITIVE_STRING },
|
|
1343
|
+
...obj.returnControlPayload && { returnControlPayload: import_smithy_client.SENSITIVE_STRING }
|
|
1344
|
+
}), "AgentCollaboratorOutputPayloadFilterSensitiveLog");
|
|
1345
|
+
var AgentCollaboratorInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1346
|
+
...obj,
|
|
1347
|
+
...obj.output && { output: AgentCollaboratorOutputPayloadFilterSensitiveLog(obj.output) }
|
|
1348
|
+
}), "AgentCollaboratorInvocationOutputFilterSensitiveLog");
|
|
1189
1349
|
var FlowInputContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1190
1350
|
if (obj.document !== void 0)
|
|
1191
1351
|
return { document: obj.document };
|
|
@@ -1282,6 +1442,34 @@ var InvokeFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1282
1442
|
...obj,
|
|
1283
1443
|
...obj.responseStream && { responseStream: "STREAMING_CONTENT" }
|
|
1284
1444
|
}), "InvokeFlowResponseFilterSensitiveLog");
|
|
1445
|
+
var QueryGenerationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1446
|
+
...obj
|
|
1447
|
+
}), "QueryGenerationInputFilterSensitiveLog");
|
|
1448
|
+
var GenerateQueryRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1449
|
+
...obj,
|
|
1450
|
+
...obj.queryGenerationInput && { queryGenerationInput: import_smithy_client.SENSITIVE_STRING }
|
|
1451
|
+
}), "GenerateQueryRequestFilterSensitiveLog");
|
|
1452
|
+
var GeneratedQueryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1453
|
+
...obj
|
|
1454
|
+
}), "GeneratedQueryFilterSensitiveLog");
|
|
1455
|
+
var GenerateQueryResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1456
|
+
...obj,
|
|
1457
|
+
...obj.queries && { queries: import_smithy_client.SENSITIVE_STRING }
|
|
1458
|
+
}), "GenerateQueryResponseFilterSensitiveLog");
|
|
1459
|
+
var ContentBlockFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1460
|
+
if (obj.text !== void 0)
|
|
1461
|
+
return { text: obj.text };
|
|
1462
|
+
if (obj.$unknown !== void 0)
|
|
1463
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1464
|
+
}, "ContentBlockFilterSensitiveLog");
|
|
1465
|
+
var MessageFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1466
|
+
...obj,
|
|
1467
|
+
...obj.content && { content: import_smithy_client.SENSITIVE_STRING }
|
|
1468
|
+
}), "MessageFilterSensitiveLog");
|
|
1469
|
+
var ConversationHistoryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1470
|
+
...obj,
|
|
1471
|
+
...obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }
|
|
1472
|
+
}), "ConversationHistoryFilterSensitiveLog");
|
|
1285
1473
|
var ByteContentFileFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1286
1474
|
...obj,
|
|
1287
1475
|
...obj.data && { data: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -1331,18 +1519,6 @@ var VectorSearchRerankingConfigurationFilterSensitiveLog = /* @__PURE__ */ __nam
|
|
|
1331
1519
|
)
|
|
1332
1520
|
}
|
|
1333
1521
|
}), "VectorSearchRerankingConfigurationFilterSensitiveLog");
|
|
1334
|
-
var ApiResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1335
|
-
...obj,
|
|
1336
|
-
...obj.apiPath && { apiPath: import_smithy_client.SENSITIVE_STRING }
|
|
1337
|
-
}), "ApiResultFilterSensitiveLog");
|
|
1338
|
-
var InvocationResultMemberFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1339
|
-
if (obj.apiResult !== void 0)
|
|
1340
|
-
return { apiResult: ApiResultFilterSensitiveLog(obj.apiResult) };
|
|
1341
|
-
if (obj.functionResult !== void 0)
|
|
1342
|
-
return { functionResult: obj.functionResult };
|
|
1343
|
-
if (obj.$unknown !== void 0)
|
|
1344
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1345
|
-
}, "InvocationResultMemberFilterSensitiveLog");
|
|
1346
1522
|
var TextResponsePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1347
1523
|
...obj
|
|
1348
1524
|
}), "TextResponsePartFilterSensitiveLog");
|
|
@@ -1350,8 +1526,12 @@ var GeneratedResponsePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1350
1526
|
...obj,
|
|
1351
1527
|
...obj.textResponsePart && { textResponsePart: import_smithy_client.SENSITIVE_STRING }
|
|
1352
1528
|
}), "GeneratedResponsePartFilterSensitiveLog");
|
|
1353
|
-
var
|
|
1529
|
+
var RetrievalResultContentColumnFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1354
1530
|
...obj
|
|
1531
|
+
}), "RetrievalResultContentColumnFilterSensitiveLog");
|
|
1532
|
+
var RetrievalResultContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1533
|
+
...obj,
|
|
1534
|
+
...obj.row && { row: import_smithy_client.SENSITIVE_STRING }
|
|
1355
1535
|
}), "RetrievalResultContentFilterSensitiveLog");
|
|
1356
1536
|
var RetrievalResultLocationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1357
1537
|
...obj
|
|
@@ -1388,24 +1568,6 @@ var FilePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1388
1568
|
...obj,
|
|
1389
1569
|
...obj.files && { files: import_smithy_client.SENSITIVE_STRING }
|
|
1390
1570
|
}), "FilePartFilterSensitiveLog");
|
|
1391
|
-
var ApiInvocationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1392
|
-
...obj,
|
|
1393
|
-
...obj.apiPath && { apiPath: import_smithy_client.SENSITIVE_STRING }
|
|
1394
|
-
}), "ApiInvocationInputFilterSensitiveLog");
|
|
1395
|
-
var InvocationInputMemberFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1396
|
-
if (obj.apiInvocationInput !== void 0)
|
|
1397
|
-
return { apiInvocationInput: ApiInvocationInputFilterSensitiveLog(obj.apiInvocationInput) };
|
|
1398
|
-
if (obj.functionInvocationInput !== void 0)
|
|
1399
|
-
return { functionInvocationInput: obj.functionInvocationInput };
|
|
1400
|
-
if (obj.$unknown !== void 0)
|
|
1401
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1402
|
-
}, "InvocationInputMemberFilterSensitiveLog");
|
|
1403
|
-
var ReturnControlPayloadFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1404
|
-
...obj,
|
|
1405
|
-
...obj.invocationInputs && {
|
|
1406
|
-
invocationInputs: obj.invocationInputs.map((item) => InvocationInputMemberFilterSensitiveLog(item))
|
|
1407
|
-
}
|
|
1408
|
-
}), "ReturnControlPayloadFilterSensitiveLog");
|
|
1409
1571
|
var CustomOrchestrationTraceEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1410
1572
|
...obj
|
|
1411
1573
|
}), "CustomOrchestrationTraceEventFilterSensitiveLog");
|
|
@@ -1477,6 +1639,11 @@ var InvocationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1477
1639
|
},
|
|
1478
1640
|
...obj.knowledgeBaseLookupInput && {
|
|
1479
1641
|
knowledgeBaseLookupInput: KnowledgeBaseLookupInputFilterSensitiveLog(obj.knowledgeBaseLookupInput)
|
|
1642
|
+
},
|
|
1643
|
+
...obj.agentCollaboratorInvocationInput && {
|
|
1644
|
+
agentCollaboratorInvocationInput: AgentCollaboratorInvocationInputFilterSensitiveLog(
|
|
1645
|
+
obj.agentCollaboratorInvocationInput
|
|
1646
|
+
)
|
|
1480
1647
|
}
|
|
1481
1648
|
}), "InvocationInputFilterSensitiveLog");
|
|
1482
1649
|
var ModelInvocationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
@@ -1517,6 +1684,11 @@ var ObservationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1517
1684
|
...obj.actionGroupInvocationOutput && {
|
|
1518
1685
|
actionGroupInvocationOutput: ActionGroupInvocationOutputFilterSensitiveLog(obj.actionGroupInvocationOutput)
|
|
1519
1686
|
},
|
|
1687
|
+
...obj.agentCollaboratorInvocationOutput && {
|
|
1688
|
+
agentCollaboratorInvocationOutput: AgentCollaboratorInvocationOutputFilterSensitiveLog(
|
|
1689
|
+
obj.agentCollaboratorInvocationOutput
|
|
1690
|
+
)
|
|
1691
|
+
},
|
|
1520
1692
|
...obj.knowledgeBaseLookupOutput && {
|
|
1521
1693
|
knowledgeBaseLookupOutput: KnowledgeBaseLookupOutputFilterSensitiveLog(obj.knowledgeBaseLookupOutput)
|
|
1522
1694
|
},
|
|
@@ -1577,6 +1749,23 @@ var PreProcessingTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
|
1577
1749
|
if (obj.$unknown !== void 0)
|
|
1578
1750
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1579
1751
|
}, "PreProcessingTraceFilterSensitiveLog");
|
|
1752
|
+
var RoutingClassifierModelInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1753
|
+
...obj,
|
|
1754
|
+
...obj.rawResponse && { rawResponse: import_smithy_client.SENSITIVE_STRING },
|
|
1755
|
+
...obj.metadata && { metadata: import_smithy_client.SENSITIVE_STRING }
|
|
1756
|
+
}), "RoutingClassifierModelInvocationOutputFilterSensitiveLog");
|
|
1757
|
+
var RoutingClassifierTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1758
|
+
if (obj.invocationInput !== void 0)
|
|
1759
|
+
return { invocationInput: import_smithy_client.SENSITIVE_STRING };
|
|
1760
|
+
if (obj.observation !== void 0)
|
|
1761
|
+
return { observation: import_smithy_client.SENSITIVE_STRING };
|
|
1762
|
+
if (obj.modelInvocationInput !== void 0)
|
|
1763
|
+
return { modelInvocationInput: import_smithy_client.SENSITIVE_STRING };
|
|
1764
|
+
if (obj.modelInvocationOutput !== void 0)
|
|
1765
|
+
return { modelInvocationOutput: import_smithy_client.SENSITIVE_STRING };
|
|
1766
|
+
if (obj.$unknown !== void 0)
|
|
1767
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1768
|
+
}, "RoutingClassifierTraceFilterSensitiveLog");
|
|
1580
1769
|
var TraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1581
1770
|
if (obj.guardrailTrace !== void 0)
|
|
1582
1771
|
return { guardrailTrace: import_smithy_client.SENSITIVE_STRING };
|
|
@@ -1586,6 +1775,8 @@ var TraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
|
1586
1775
|
return { orchestrationTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1587
1776
|
if (obj.postProcessingTrace !== void 0)
|
|
1588
1777
|
return { postProcessingTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1778
|
+
if (obj.routingClassifierTrace !== void 0)
|
|
1779
|
+
return { routingClassifierTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1589
1780
|
if (obj.failureTrace !== void 0)
|
|
1590
1781
|
return { failureTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1591
1782
|
if (obj.customOrchestrationTrace !== void 0)
|
|
@@ -1595,7 +1786,9 @@ var TraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
|
1595
1786
|
}, "TraceFilterSensitiveLog");
|
|
1596
1787
|
var TracePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1597
1788
|
...obj,
|
|
1598
|
-
...obj.trace && { trace: import_smithy_client.SENSITIVE_STRING }
|
|
1789
|
+
...obj.trace && { trace: import_smithy_client.SENSITIVE_STRING },
|
|
1790
|
+
...obj.callerChain && { callerChain: obj.callerChain.map((item) => item) },
|
|
1791
|
+
...obj.collaboratorName && { collaboratorName: import_smithy_client.SENSITIVE_STRING }
|
|
1599
1792
|
}), "TracePartFilterSensitiveLog");
|
|
1600
1793
|
var ResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1601
1794
|
if (obj.chunk !== void 0)
|
|
@@ -2008,6 +2201,9 @@ var SessionStateFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
2008
2201
|
knowledgeBaseConfigurations: obj.knowledgeBaseConfigurations.map(
|
|
2009
2202
|
(item) => KnowledgeBaseConfigurationFilterSensitiveLog(item)
|
|
2010
2203
|
)
|
|
2204
|
+
},
|
|
2205
|
+
...obj.conversationHistory && {
|
|
2206
|
+
conversationHistory: ConversationHistoryFilterSensitiveLog(obj.conversationHistory)
|
|
2011
2207
|
}
|
|
2012
2208
|
}), "SessionStateFilterSensitiveLog");
|
|
2013
2209
|
var InvokeAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
@@ -2030,6 +2226,22 @@ var se_DeleteAgentMemoryCommand = /* @__PURE__ */ __name(async (input, context)
|
|
|
2030
2226
|
b.m("DELETE").h(headers).q(query).b(body);
|
|
2031
2227
|
return b.build();
|
|
2032
2228
|
}, "se_DeleteAgentMemoryCommand");
|
|
2229
|
+
var se_GenerateQueryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2230
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
2231
|
+
const headers = {
|
|
2232
|
+
"content-type": "application/json"
|
|
2233
|
+
};
|
|
2234
|
+
b.bp("/generateQuery");
|
|
2235
|
+
let body;
|
|
2236
|
+
body = JSON.stringify(
|
|
2237
|
+
(0, import_smithy_client.take)(input, {
|
|
2238
|
+
queryGenerationInput: (_) => (0, import_smithy_client._json)(_),
|
|
2239
|
+
transformationConfiguration: (_) => (0, import_smithy_client._json)(_)
|
|
2240
|
+
})
|
|
2241
|
+
);
|
|
2242
|
+
b.m("POST").h(headers).b(body);
|
|
2243
|
+
return b.build();
|
|
2244
|
+
}, "se_GenerateQueryCommand");
|
|
2033
2245
|
var se_GetAgentMemoryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2034
2246
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
2035
2247
|
const headers = {};
|
|
@@ -2048,9 +2260,10 @@ var se_GetAgentMemoryCommand = /* @__PURE__ */ __name(async (input, context) =>
|
|
|
2048
2260
|
}, "se_GetAgentMemoryCommand");
|
|
2049
2261
|
var se_InvokeAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
2050
2262
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
2051
|
-
const headers = {
|
|
2052
|
-
"content-type": "application/json"
|
|
2053
|
-
|
|
2263
|
+
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
2264
|
+
"content-type": "application/json",
|
|
2265
|
+
[_xasa]: input[_sA]
|
|
2266
|
+
});
|
|
2054
2267
|
b.bp("/agents/{agentId}/agentAliases/{agentAliasId}/sessions/{sessionId}/text");
|
|
2055
2268
|
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
2056
2269
|
b.p("agentAliasId", () => input.agentAliasId, "{agentAliasId}", false);
|
|
@@ -2213,6 +2426,20 @@ var de_DeleteAgentMemoryCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
2213
2426
|
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
2214
2427
|
return contents;
|
|
2215
2428
|
}, "de_DeleteAgentMemoryCommand");
|
|
2429
|
+
var de_GenerateQueryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2430
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2431
|
+
return de_CommandError(output, context);
|
|
2432
|
+
}
|
|
2433
|
+
const contents = (0, import_smithy_client.map)({
|
|
2434
|
+
$metadata: deserializeMetadata(output)
|
|
2435
|
+
});
|
|
2436
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
2437
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
2438
|
+
queries: import_smithy_client._json
|
|
2439
|
+
});
|
|
2440
|
+
Object.assign(contents, doc);
|
|
2441
|
+
return contents;
|
|
2442
|
+
}, "de_GenerateQueryCommand");
|
|
2216
2443
|
var de_GetAgentMemoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2217
2444
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2218
2445
|
return de_CommandError(output, context);
|
|
@@ -3285,6 +3512,7 @@ var se_RetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((input, context
|
|
|
3285
3512
|
}, "se_RetrieveAndGenerateConfiguration");
|
|
3286
3513
|
var se_SessionState = /* @__PURE__ */ __name((input, context) => {
|
|
3287
3514
|
return (0, import_smithy_client.take)(input, {
|
|
3515
|
+
conversationHistory: import_smithy_client._json,
|
|
3288
3516
|
files: (_) => se_InputFiles(_, context),
|
|
3289
3517
|
invocationId: [],
|
|
3290
3518
|
knowledgeBaseConfigurations: (_) => se_KnowledgeBaseConfigurations(_, context),
|
|
@@ -3323,6 +3551,13 @@ var se_VectorSearchRerankingConfiguration = /* @__PURE__ */ __name((input, conte
|
|
|
3323
3551
|
var se_Document = /* @__PURE__ */ __name((input, context) => {
|
|
3324
3552
|
return input;
|
|
3325
3553
|
}, "se_Document");
|
|
3554
|
+
var de_AgentCollaboratorInvocationOutput = /* @__PURE__ */ __name((output, context) => {
|
|
3555
|
+
return (0, import_smithy_client.take)(output, {
|
|
3556
|
+
agentCollaboratorAliasArn: import_smithy_client.expectString,
|
|
3557
|
+
agentCollaboratorName: import_smithy_client.expectString,
|
|
3558
|
+
output: import_smithy_client._json
|
|
3559
|
+
});
|
|
3560
|
+
}, "de_AgentCollaboratorInvocationOutput");
|
|
3326
3561
|
var de_Attribution = /* @__PURE__ */ __name((output, context) => {
|
|
3327
3562
|
return (0, import_smithy_client.take)(output, {
|
|
3328
3563
|
citations: (_) => de_Citations(_, context)
|
|
@@ -3519,6 +3754,7 @@ var de_MemorySessionSummary = /* @__PURE__ */ __name((output, context) => {
|
|
|
3519
3754
|
}, "de_MemorySessionSummary");
|
|
3520
3755
|
var de_ModelInvocationInput = /* @__PURE__ */ __name((output, context) => {
|
|
3521
3756
|
return (0, import_smithy_client.take)(output, {
|
|
3757
|
+
foundationModel: import_smithy_client.expectString,
|
|
3522
3758
|
inferenceConfiguration: (_) => de_InferenceConfiguration(_, context),
|
|
3523
3759
|
overrideLambda: import_smithy_client.expectString,
|
|
3524
3760
|
parserMode: import_smithy_client.expectString,
|
|
@@ -3531,6 +3767,7 @@ var de_ModelInvocationInput = /* @__PURE__ */ __name((output, context) => {
|
|
|
3531
3767
|
var de_Observation = /* @__PURE__ */ __name((output, context) => {
|
|
3532
3768
|
return (0, import_smithy_client.take)(output, {
|
|
3533
3769
|
actionGroupInvocationOutput: import_smithy_client._json,
|
|
3770
|
+
agentCollaboratorInvocationOutput: (_) => de_AgentCollaboratorInvocationOutput(_, context),
|
|
3534
3771
|
codeInterpreterInvocationOutput: import_smithy_client._json,
|
|
3535
3772
|
finalResponse: import_smithy_client._json,
|
|
3536
3773
|
knowledgeBaseLookupOutput: (_) => de_KnowledgeBaseLookupOutput(_, context),
|
|
@@ -3657,6 +3894,29 @@ var de_RetrievedReferences = /* @__PURE__ */ __name((output, context) => {
|
|
|
3657
3894
|
});
|
|
3658
3895
|
return retVal;
|
|
3659
3896
|
}, "de_RetrievedReferences");
|
|
3897
|
+
var de_RoutingClassifierTrace = /* @__PURE__ */ __name((output, context) => {
|
|
3898
|
+
if (output.invocationInput != null) {
|
|
3899
|
+
return {
|
|
3900
|
+
invocationInput: (0, import_smithy_client._json)(output.invocationInput)
|
|
3901
|
+
};
|
|
3902
|
+
}
|
|
3903
|
+
if (output.modelInvocationInput != null) {
|
|
3904
|
+
return {
|
|
3905
|
+
modelInvocationInput: de_ModelInvocationInput(output.modelInvocationInput, context)
|
|
3906
|
+
};
|
|
3907
|
+
}
|
|
3908
|
+
if (output.modelInvocationOutput != null) {
|
|
3909
|
+
return {
|
|
3910
|
+
modelInvocationOutput: (0, import_smithy_client._json)(output.modelInvocationOutput)
|
|
3911
|
+
};
|
|
3912
|
+
}
|
|
3913
|
+
if (output.observation != null) {
|
|
3914
|
+
return {
|
|
3915
|
+
observation: de_Observation(output.observation, context)
|
|
3916
|
+
};
|
|
3917
|
+
}
|
|
3918
|
+
return { $unknown: Object.entries(output)[0] };
|
|
3919
|
+
}, "de_RoutingClassifierTrace");
|
|
3660
3920
|
var de_Trace = /* @__PURE__ */ __name((output, context) => {
|
|
3661
3921
|
if (output.customOrchestrationTrace != null) {
|
|
3662
3922
|
return {
|
|
@@ -3688,6 +3948,11 @@ var de_Trace = /* @__PURE__ */ __name((output, context) => {
|
|
|
3688
3948
|
preProcessingTrace: de_PreProcessingTrace((0, import_core2.awsExpectUnion)(output.preProcessingTrace), context)
|
|
3689
3949
|
};
|
|
3690
3950
|
}
|
|
3951
|
+
if (output.routingClassifierTrace != null) {
|
|
3952
|
+
return {
|
|
3953
|
+
routingClassifierTrace: de_RoutingClassifierTrace((0, import_core2.awsExpectUnion)(output.routingClassifierTrace), context)
|
|
3954
|
+
};
|
|
3955
|
+
}
|
|
3691
3956
|
return { $unknown: Object.entries(output)[0] };
|
|
3692
3957
|
}, "de_Trace");
|
|
3693
3958
|
var de_TracePart = /* @__PURE__ */ __name((output, context) => {
|
|
@@ -3695,6 +3960,8 @@ var de_TracePart = /* @__PURE__ */ __name((output, context) => {
|
|
|
3695
3960
|
agentAliasId: import_smithy_client.expectString,
|
|
3696
3961
|
agentId: import_smithy_client.expectString,
|
|
3697
3962
|
agentVersion: import_smithy_client.expectString,
|
|
3963
|
+
callerChain: import_smithy_client._json,
|
|
3964
|
+
collaboratorName: import_smithy_client.expectString,
|
|
3698
3965
|
sessionId: import_smithy_client.expectString,
|
|
3699
3966
|
trace: (_) => de_Trace((0, import_core2.awsExpectUnion)(_), context)
|
|
3700
3967
|
});
|
|
@@ -3713,11 +3980,13 @@ var _mI = "memoryId";
|
|
|
3713
3980
|
var _mIa = "maxItems";
|
|
3714
3981
|
var _mT = "memoryType";
|
|
3715
3982
|
var _nT = "nextToken";
|
|
3983
|
+
var _sA = "sourceArn";
|
|
3716
3984
|
var _sI = "sessionId";
|
|
3717
3985
|
var _xabact = "x-amzn-bedrock-agent-content-type";
|
|
3718
3986
|
var _xabami = "x-amz-bedrock-agent-memory-id";
|
|
3719
3987
|
var _xabasi = "x-amz-bedrock-agent-session-id";
|
|
3720
3988
|
var _xabkbsi = "x-amzn-bedrock-knowledge-base-session-id";
|
|
3989
|
+
var _xasa = "x-amz-source-arn";
|
|
3721
3990
|
|
|
3722
3991
|
// src/commands/DeleteAgentMemoryCommand.ts
|
|
3723
3992
|
var _DeleteAgentMemoryCommand = class _DeleteAgentMemoryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
@@ -3730,6 +3999,20 @@ var _DeleteAgentMemoryCommand = class _DeleteAgentMemoryCommand extends import_s
|
|
|
3730
3999
|
__name(_DeleteAgentMemoryCommand, "DeleteAgentMemoryCommand");
|
|
3731
4000
|
var DeleteAgentMemoryCommand = _DeleteAgentMemoryCommand;
|
|
3732
4001
|
|
|
4002
|
+
// src/commands/GenerateQueryCommand.ts
|
|
4003
|
+
|
|
4004
|
+
|
|
4005
|
+
|
|
4006
|
+
var _GenerateQueryCommand = class _GenerateQueryCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
4007
|
+
return [
|
|
4008
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
4009
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
4010
|
+
];
|
|
4011
|
+
}).s("AmazonBedrockAgentRunTimeService", "GenerateQuery", {}).n("BedrockAgentRuntimeClient", "GenerateQueryCommand").f(GenerateQueryRequestFilterSensitiveLog, GenerateQueryResponseFilterSensitiveLog).ser(se_GenerateQueryCommand).de(de_GenerateQueryCommand).build() {
|
|
4012
|
+
};
|
|
4013
|
+
__name(_GenerateQueryCommand, "GenerateQueryCommand");
|
|
4014
|
+
var GenerateQueryCommand = _GenerateQueryCommand;
|
|
4015
|
+
|
|
3733
4016
|
// src/commands/GetAgentMemoryCommand.ts
|
|
3734
4017
|
|
|
3735
4018
|
|
|
@@ -3894,6 +4177,7 @@ var RetrieveCommand = _RetrieveCommand;
|
|
|
3894
4177
|
// src/BedrockAgentRuntime.ts
|
|
3895
4178
|
var commands = {
|
|
3896
4179
|
DeleteAgentMemoryCommand,
|
|
4180
|
+
GenerateQueryCommand,
|
|
3897
4181
|
GetAgentMemoryCommand,
|
|
3898
4182
|
InvokeAgentCommand,
|
|
3899
4183
|
InvokeFlowCommand,
|
|
@@ -3930,6 +4214,7 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
3930
4214
|
BedrockAgentRuntime,
|
|
3931
4215
|
$Command,
|
|
3932
4216
|
DeleteAgentMemoryCommand,
|
|
4217
|
+
GenerateQueryCommand,
|
|
3933
4218
|
GetAgentMemoryCommand,
|
|
3934
4219
|
InvokeAgentCommand,
|
|
3935
4220
|
InvokeFlowCommand,
|
|
@@ -3952,6 +4237,11 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
3952
4237
|
ParameterType,
|
|
3953
4238
|
RequireConfirmation,
|
|
3954
4239
|
FunctionSchema,
|
|
4240
|
+
ConfirmationState,
|
|
4241
|
+
ResponseState,
|
|
4242
|
+
InvocationResultMember,
|
|
4243
|
+
PayloadType,
|
|
4244
|
+
InvocationInputMember,
|
|
3955
4245
|
BadGatewayException,
|
|
3956
4246
|
ConflictException,
|
|
3957
4247
|
DependencyFailedException,
|
|
@@ -3968,6 +4258,12 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
3968
4258
|
ThrottlingException,
|
|
3969
4259
|
ValidationException,
|
|
3970
4260
|
FlowResponseStream,
|
|
4261
|
+
InputQueryType,
|
|
4262
|
+
QueryTransformationMode,
|
|
4263
|
+
TextToSqlConfigurationType,
|
|
4264
|
+
GeneratedQueryType,
|
|
4265
|
+
ContentBlock,
|
|
4266
|
+
ConversationRole,
|
|
3971
4267
|
FileSourceType,
|
|
3972
4268
|
FileUseCase,
|
|
3973
4269
|
AttributeType,
|
|
@@ -3975,11 +4271,10 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
3975
4271
|
RerankingMetadataSelectionMode,
|
|
3976
4272
|
RerankingMetadataSelectiveModeConfiguration,
|
|
3977
4273
|
VectorSearchRerankingConfigurationType,
|
|
3978
|
-
|
|
3979
|
-
|
|
3980
|
-
InvocationResultMember,
|
|
4274
|
+
RetrievalResultContentColumnType,
|
|
4275
|
+
RetrievalResultContentType,
|
|
3981
4276
|
RetrievalResultLocationType,
|
|
3982
|
-
|
|
4277
|
+
Caller,
|
|
3983
4278
|
GuardrailAction,
|
|
3984
4279
|
GuardrailContentPolicyAction,
|
|
3985
4280
|
GuardrailContentFilterConfidence,
|
|
@@ -3998,6 +4293,7 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
3998
4293
|
OrchestrationTrace,
|
|
3999
4294
|
PostProcessingTrace,
|
|
4000
4295
|
PreProcessingTrace,
|
|
4296
|
+
RoutingClassifierTrace,
|
|
4001
4297
|
Trace,
|
|
4002
4298
|
ResponseStream,
|
|
4003
4299
|
PromptState,
|
|
@@ -4023,6 +4319,17 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
4023
4319
|
FunctionDefinitionFilterSensitiveLog,
|
|
4024
4320
|
FunctionSchemaFilterSensitiveLog,
|
|
4025
4321
|
AgentActionGroupFilterSensitiveLog,
|
|
4322
|
+
ApiResultFilterSensitiveLog,
|
|
4323
|
+
InvocationResultMemberFilterSensitiveLog,
|
|
4324
|
+
ReturnControlResultsFilterSensitiveLog,
|
|
4325
|
+
AgentCollaboratorInputPayloadFilterSensitiveLog,
|
|
4326
|
+
AgentCollaboratorInvocationInputFilterSensitiveLog,
|
|
4327
|
+
ApiInvocationInputFilterSensitiveLog,
|
|
4328
|
+
FunctionInvocationInputFilterSensitiveLog,
|
|
4329
|
+
InvocationInputMemberFilterSensitiveLog,
|
|
4330
|
+
ReturnControlPayloadFilterSensitiveLog,
|
|
4331
|
+
AgentCollaboratorOutputPayloadFilterSensitiveLog,
|
|
4332
|
+
AgentCollaboratorInvocationOutputFilterSensitiveLog,
|
|
4026
4333
|
FlowInputContentFilterSensitiveLog,
|
|
4027
4334
|
FlowInputFilterSensitiveLog,
|
|
4028
4335
|
InvokeFlowRequestFilterSensitiveLog,
|
|
@@ -4039,6 +4346,13 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
4039
4346
|
FlowTraceEventFilterSensitiveLog,
|
|
4040
4347
|
FlowResponseStreamFilterSensitiveLog,
|
|
4041
4348
|
InvokeFlowResponseFilterSensitiveLog,
|
|
4349
|
+
QueryGenerationInputFilterSensitiveLog,
|
|
4350
|
+
GenerateQueryRequestFilterSensitiveLog,
|
|
4351
|
+
GeneratedQueryFilterSensitiveLog,
|
|
4352
|
+
GenerateQueryResponseFilterSensitiveLog,
|
|
4353
|
+
ContentBlockFilterSensitiveLog,
|
|
4354
|
+
MessageFilterSensitiveLog,
|
|
4355
|
+
ConversationHistoryFilterSensitiveLog,
|
|
4042
4356
|
ByteContentFileFilterSensitiveLog,
|
|
4043
4357
|
FileSourceFilterSensitiveLog,
|
|
4044
4358
|
InputFileFilterSensitiveLog,
|
|
@@ -4048,10 +4362,9 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
4048
4362
|
MetadataConfigurationForRerankingFilterSensitiveLog,
|
|
4049
4363
|
VectorSearchBedrockRerankingConfigurationFilterSensitiveLog,
|
|
4050
4364
|
VectorSearchRerankingConfigurationFilterSensitiveLog,
|
|
4051
|
-
ApiResultFilterSensitiveLog,
|
|
4052
|
-
InvocationResultMemberFilterSensitiveLog,
|
|
4053
4365
|
TextResponsePartFilterSensitiveLog,
|
|
4054
4366
|
GeneratedResponsePartFilterSensitiveLog,
|
|
4367
|
+
RetrievalResultContentColumnFilterSensitiveLog,
|
|
4055
4368
|
RetrievalResultContentFilterSensitiveLog,
|
|
4056
4369
|
RetrievalResultLocationFilterSensitiveLog,
|
|
4057
4370
|
RetrievedReferenceFilterSensitiveLog,
|
|
@@ -4060,9 +4373,6 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
4060
4373
|
PayloadPartFilterSensitiveLog,
|
|
4061
4374
|
OutputFileFilterSensitiveLog,
|
|
4062
4375
|
FilePartFilterSensitiveLog,
|
|
4063
|
-
ApiInvocationInputFilterSensitiveLog,
|
|
4064
|
-
InvocationInputMemberFilterSensitiveLog,
|
|
4065
|
-
ReturnControlPayloadFilterSensitiveLog,
|
|
4066
4376
|
CustomOrchestrationTraceEventFilterSensitiveLog,
|
|
4067
4377
|
CustomOrchestrationTraceFilterSensitiveLog,
|
|
4068
4378
|
FailureTraceFilterSensitiveLog,
|
|
@@ -4097,6 +4407,8 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
4097
4407
|
PreProcessingParsedResponseFilterSensitiveLog,
|
|
4098
4408
|
PreProcessingModelInvocationOutputFilterSensitiveLog,
|
|
4099
4409
|
PreProcessingTraceFilterSensitiveLog,
|
|
4410
|
+
RoutingClassifierModelInvocationOutputFilterSensitiveLog,
|
|
4411
|
+
RoutingClassifierTraceFilterSensitiveLog,
|
|
4100
4412
|
TraceFilterSensitiveLog,
|
|
4101
4413
|
TracePartFilterSensitiveLog,
|
|
4102
4414
|
ResponseStreamFilterSensitiveLog,
|