@aws-sdk/client-bedrock-agent-runtime 3.697.0 → 3.701.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 +505 -2
- package/dist-es/BedrockAgentRuntime.js +2 -0
- package/dist-es/commands/InvokeInlineAgentCommand.js +27 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/models_0.js +208 -0
- package/dist-es/protocols/Aws_restJson1.js +210 -0
- package/dist-types/BedrockAgentRuntime.d.ts +7 -0
- package/dist-types/BedrockAgentRuntimeClient.d.ts +3 -2
- package/dist-types/commands/InvokeAgentCommand.d.ts +16 -6
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +761 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1227 -44
- 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/InvokeInlineAgentCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +527 -2
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +12 -0
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -21,10 +21,15 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
// src/index.ts
|
|
22
22
|
var src_exports = {};
|
|
23
23
|
__export(src_exports, {
|
|
24
|
+
APISchema: () => APISchema,
|
|
25
|
+
APISchemaFilterSensitiveLog: () => APISchemaFilterSensitiveLog,
|
|
24
26
|
AccessDeniedException: () => AccessDeniedException,
|
|
27
|
+
ActionGroupExecutor: () => ActionGroupExecutor,
|
|
25
28
|
ActionGroupInvocationInputFilterSensitiveLog: () => ActionGroupInvocationInputFilterSensitiveLog,
|
|
26
29
|
ActionGroupInvocationOutputFilterSensitiveLog: () => ActionGroupInvocationOutputFilterSensitiveLog,
|
|
30
|
+
ActionGroupSignature: () => ActionGroupSignature,
|
|
27
31
|
ActionInvocationType: () => ActionInvocationType,
|
|
32
|
+
AgentActionGroupFilterSensitiveLog: () => AgentActionGroupFilterSensitiveLog,
|
|
28
33
|
AnalyzePromptEventFilterSensitiveLog: () => AnalyzePromptEventFilterSensitiveLog,
|
|
29
34
|
ApiInvocationInputFilterSensitiveLog: () => ApiInvocationInputFilterSensitiveLog,
|
|
30
35
|
ApiResultFilterSensitiveLog: () => ApiResultFilterSensitiveLog,
|
|
@@ -39,6 +44,9 @@ __export(src_exports, {
|
|
|
39
44
|
ConfirmationState: () => ConfirmationState,
|
|
40
45
|
ConflictException: () => ConflictException,
|
|
41
46
|
CreationMode: () => CreationMode,
|
|
47
|
+
CustomControlMethod: () => CustomControlMethod,
|
|
48
|
+
CustomOrchestrationTraceEventFilterSensitiveLog: () => CustomOrchestrationTraceEventFilterSensitiveLog,
|
|
49
|
+
CustomOrchestrationTraceFilterSensitiveLog: () => CustomOrchestrationTraceFilterSensitiveLog,
|
|
42
50
|
DeleteAgentMemoryCommand: () => DeleteAgentMemoryCommand,
|
|
43
51
|
DependencyFailedException: () => DependencyFailedException,
|
|
44
52
|
ExecutionType: () => ExecutionType,
|
|
@@ -73,6 +81,9 @@ __export(src_exports, {
|
|
|
73
81
|
FlowTraceNodeOutputContent: () => FlowTraceNodeOutputContent,
|
|
74
82
|
FlowTraceNodeOutputEventFilterSensitiveLog: () => FlowTraceNodeOutputEventFilterSensitiveLog,
|
|
75
83
|
FlowTraceNodeOutputFieldFilterSensitiveLog: () => FlowTraceNodeOutputFieldFilterSensitiveLog,
|
|
84
|
+
FunctionDefinitionFilterSensitiveLog: () => FunctionDefinitionFilterSensitiveLog,
|
|
85
|
+
FunctionSchema: () => FunctionSchema,
|
|
86
|
+
FunctionSchemaFilterSensitiveLog: () => FunctionSchemaFilterSensitiveLog,
|
|
76
87
|
GeneratedResponsePartFilterSensitiveLog: () => GeneratedResponsePartFilterSensitiveLog,
|
|
77
88
|
GenerationConfigurationFilterSensitiveLog: () => GenerationConfigurationFilterSensitiveLog,
|
|
78
89
|
GetAgentMemoryCommand: () => GetAgentMemoryCommand,
|
|
@@ -99,6 +110,13 @@ __export(src_exports, {
|
|
|
99
110
|
GuardrailTraceFilterSensitiveLog: () => GuardrailTraceFilterSensitiveLog,
|
|
100
111
|
GuardrailWordPolicyAction: () => GuardrailWordPolicyAction,
|
|
101
112
|
GuardrailWordPolicyAssessmentFilterSensitiveLog: () => GuardrailWordPolicyAssessmentFilterSensitiveLog,
|
|
113
|
+
InlineAgentFilePartFilterSensitiveLog: () => InlineAgentFilePartFilterSensitiveLog,
|
|
114
|
+
InlineAgentPayloadPartFilterSensitiveLog: () => InlineAgentPayloadPartFilterSensitiveLog,
|
|
115
|
+
InlineAgentResponseStream: () => InlineAgentResponseStream,
|
|
116
|
+
InlineAgentResponseStreamFilterSensitiveLog: () => InlineAgentResponseStreamFilterSensitiveLog,
|
|
117
|
+
InlineAgentReturnControlPayloadFilterSensitiveLog: () => InlineAgentReturnControlPayloadFilterSensitiveLog,
|
|
118
|
+
InlineAgentTracePartFilterSensitiveLog: () => InlineAgentTracePartFilterSensitiveLog,
|
|
119
|
+
InlineSessionStateFilterSensitiveLog: () => InlineSessionStateFilterSensitiveLog,
|
|
102
120
|
InputFileFilterSensitiveLog: () => InputFileFilterSensitiveLog,
|
|
103
121
|
InputPrompt: () => InputPrompt,
|
|
104
122
|
InputPromptFilterSensitiveLog: () => InputPromptFilterSensitiveLog,
|
|
@@ -115,7 +133,11 @@ __export(src_exports, {
|
|
|
115
133
|
InvokeFlowCommand: () => InvokeFlowCommand,
|
|
116
134
|
InvokeFlowRequestFilterSensitiveLog: () => InvokeFlowRequestFilterSensitiveLog,
|
|
117
135
|
InvokeFlowResponseFilterSensitiveLog: () => InvokeFlowResponseFilterSensitiveLog,
|
|
136
|
+
InvokeInlineAgentCommand: () => InvokeInlineAgentCommand,
|
|
137
|
+
InvokeInlineAgentRequestFilterSensitiveLog: () => InvokeInlineAgentRequestFilterSensitiveLog,
|
|
138
|
+
InvokeInlineAgentResponseFilterSensitiveLog: () => InvokeInlineAgentResponseFilterSensitiveLog,
|
|
118
139
|
KnowledgeBaseConfigurationFilterSensitiveLog: () => KnowledgeBaseConfigurationFilterSensitiveLog,
|
|
140
|
+
KnowledgeBaseFilterSensitiveLog: () => KnowledgeBaseFilterSensitiveLog,
|
|
119
141
|
KnowledgeBaseLookupInputFilterSensitiveLog: () => KnowledgeBaseLookupInputFilterSensitiveLog,
|
|
120
142
|
KnowledgeBaseLookupOutputFilterSensitiveLog: () => KnowledgeBaseLookupOutputFilterSensitiveLog,
|
|
121
143
|
KnowledgeBaseQueryFilterSensitiveLog: () => KnowledgeBaseQueryFilterSensitiveLog,
|
|
@@ -142,6 +164,7 @@ __export(src_exports, {
|
|
|
142
164
|
OrchestrationTrace: () => OrchestrationTrace,
|
|
143
165
|
OrchestrationTraceFilterSensitiveLog: () => OrchestrationTraceFilterSensitiveLog,
|
|
144
166
|
OutputFileFilterSensitiveLog: () => OutputFileFilterSensitiveLog,
|
|
167
|
+
ParameterType: () => ParameterType,
|
|
145
168
|
PayloadPartFilterSensitiveLog: () => PayloadPartFilterSensitiveLog,
|
|
146
169
|
PostProcessingModelInvocationOutputFilterSensitiveLog: () => PostProcessingModelInvocationOutputFilterSensitiveLog,
|
|
147
170
|
PostProcessingParsedResponseFilterSensitiveLog: () => PostProcessingParsedResponseFilterSensitiveLog,
|
|
@@ -151,12 +174,16 @@ __export(src_exports, {
|
|
|
151
174
|
PreProcessingParsedResponseFilterSensitiveLog: () => PreProcessingParsedResponseFilterSensitiveLog,
|
|
152
175
|
PreProcessingTrace: () => PreProcessingTrace,
|
|
153
176
|
PreProcessingTraceFilterSensitiveLog: () => PreProcessingTraceFilterSensitiveLog,
|
|
177
|
+
PromptConfigurationFilterSensitiveLog: () => PromptConfigurationFilterSensitiveLog,
|
|
178
|
+
PromptOverrideConfigurationFilterSensitiveLog: () => PromptOverrideConfigurationFilterSensitiveLog,
|
|
179
|
+
PromptState: () => PromptState,
|
|
154
180
|
PromptTemplateFilterSensitiveLog: () => PromptTemplateFilterSensitiveLog,
|
|
155
181
|
PromptType: () => PromptType,
|
|
156
182
|
QueryTransformationType: () => QueryTransformationType,
|
|
157
183
|
RationaleFilterSensitiveLog: () => RationaleFilterSensitiveLog,
|
|
158
184
|
RawResponseFilterSensitiveLog: () => RawResponseFilterSensitiveLog,
|
|
159
185
|
RepromptResponseFilterSensitiveLog: () => RepromptResponseFilterSensitiveLog,
|
|
186
|
+
RequireConfirmation: () => RequireConfirmation,
|
|
160
187
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
161
188
|
ResponseState: () => ResponseState,
|
|
162
189
|
ResponseStream: () => ResponseStream,
|
|
@@ -382,15 +409,61 @@ var _AccessDeniedException = class _AccessDeniedException extends BedrockAgentRu
|
|
|
382
409
|
};
|
|
383
410
|
__name(_AccessDeniedException, "AccessDeniedException");
|
|
384
411
|
var AccessDeniedException = _AccessDeniedException;
|
|
412
|
+
var CustomControlMethod = {
|
|
413
|
+
RETURN_CONTROL: "RETURN_CONTROL"
|
|
414
|
+
};
|
|
415
|
+
var ActionGroupExecutor;
|
|
416
|
+
((ActionGroupExecutor3) => {
|
|
417
|
+
ActionGroupExecutor3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
418
|
+
if (value.lambda !== void 0)
|
|
419
|
+
return visitor.lambda(value.lambda);
|
|
420
|
+
if (value.customControl !== void 0)
|
|
421
|
+
return visitor.customControl(value.customControl);
|
|
422
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
423
|
+
}, "visit");
|
|
424
|
+
})(ActionGroupExecutor || (ActionGroupExecutor = {}));
|
|
385
425
|
var ExecutionType = {
|
|
386
426
|
LAMBDA: "LAMBDA",
|
|
387
427
|
RETURN_CONTROL: "RETURN_CONTROL"
|
|
388
428
|
};
|
|
429
|
+
var ActionGroupSignature = {
|
|
430
|
+
AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter",
|
|
431
|
+
AMAZON_USERINPUT: "AMAZON.UserInput"
|
|
432
|
+
};
|
|
389
433
|
var ActionInvocationType = {
|
|
390
434
|
RESULT: "RESULT",
|
|
391
435
|
USER_CONFIRMATION: "USER_CONFIRMATION",
|
|
392
436
|
USER_CONFIRMATION_AND_RESULT: "USER_CONFIRMATION_AND_RESULT"
|
|
393
437
|
};
|
|
438
|
+
var APISchema;
|
|
439
|
+
((APISchema3) => {
|
|
440
|
+
APISchema3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
441
|
+
if (value.s3 !== void 0)
|
|
442
|
+
return visitor.s3(value.s3);
|
|
443
|
+
if (value.payload !== void 0)
|
|
444
|
+
return visitor.payload(value.payload);
|
|
445
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
446
|
+
}, "visit");
|
|
447
|
+
})(APISchema || (APISchema = {}));
|
|
448
|
+
var ParameterType = {
|
|
449
|
+
ARRAY: "array",
|
|
450
|
+
BOOLEAN: "boolean",
|
|
451
|
+
INTEGER: "integer",
|
|
452
|
+
NUMBER: "number",
|
|
453
|
+
STRING: "string"
|
|
454
|
+
};
|
|
455
|
+
var RequireConfirmation = {
|
|
456
|
+
DISABLED: "DISABLED",
|
|
457
|
+
ENABLED: "ENABLED"
|
|
458
|
+
};
|
|
459
|
+
var FunctionSchema;
|
|
460
|
+
((FunctionSchema3) => {
|
|
461
|
+
FunctionSchema3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
462
|
+
if (value.functions !== void 0)
|
|
463
|
+
return visitor.functions(value.functions);
|
|
464
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
465
|
+
}, "visit");
|
|
466
|
+
})(FunctionSchema || (FunctionSchema = {}));
|
|
394
467
|
var _BadGatewayException = class _BadGatewayException extends BedrockAgentRuntimeServiceException {
|
|
395
468
|
/**
|
|
396
469
|
* @internal
|
|
@@ -746,7 +819,8 @@ var PromptType = {
|
|
|
746
819
|
KNOWLEDGE_BASE_RESPONSE_GENERATION: "KNOWLEDGE_BASE_RESPONSE_GENERATION",
|
|
747
820
|
ORCHESTRATION: "ORCHESTRATION",
|
|
748
821
|
POST_PROCESSING: "POST_PROCESSING",
|
|
749
|
-
PRE_PROCESSING: "PRE_PROCESSING"
|
|
822
|
+
PRE_PROCESSING: "PRE_PROCESSING",
|
|
823
|
+
ROUTING_CLASSIFIER: "ROUTING_CLASSIFIER"
|
|
750
824
|
};
|
|
751
825
|
var Source = {
|
|
752
826
|
ACTION_GROUP: "ACTION_GROUP",
|
|
@@ -809,6 +883,8 @@ var Trace;
|
|
|
809
883
|
return visitor.postProcessingTrace(value.postProcessingTrace);
|
|
810
884
|
if (value.failureTrace !== void 0)
|
|
811
885
|
return visitor.failureTrace(value.failureTrace);
|
|
886
|
+
if (value.customOrchestrationTrace !== void 0)
|
|
887
|
+
return visitor.customOrchestrationTrace(value.customOrchestrationTrace);
|
|
812
888
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
813
889
|
}, "visit");
|
|
814
890
|
})(Trace || (Trace = {}));
|
|
@@ -844,6 +920,42 @@ var ResponseStream;
|
|
|
844
920
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
845
921
|
}, "visit");
|
|
846
922
|
})(ResponseStream || (ResponseStream = {}));
|
|
923
|
+
var PromptState = {
|
|
924
|
+
DISABLED: "DISABLED",
|
|
925
|
+
ENABLED: "ENABLED"
|
|
926
|
+
};
|
|
927
|
+
var InlineAgentResponseStream;
|
|
928
|
+
((InlineAgentResponseStream3) => {
|
|
929
|
+
InlineAgentResponseStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
930
|
+
if (value.chunk !== void 0)
|
|
931
|
+
return visitor.chunk(value.chunk);
|
|
932
|
+
if (value.trace !== void 0)
|
|
933
|
+
return visitor.trace(value.trace);
|
|
934
|
+
if (value.returnControl !== void 0)
|
|
935
|
+
return visitor.returnControl(value.returnControl);
|
|
936
|
+
if (value.internalServerException !== void 0)
|
|
937
|
+
return visitor.internalServerException(value.internalServerException);
|
|
938
|
+
if (value.validationException !== void 0)
|
|
939
|
+
return visitor.validationException(value.validationException);
|
|
940
|
+
if (value.resourceNotFoundException !== void 0)
|
|
941
|
+
return visitor.resourceNotFoundException(value.resourceNotFoundException);
|
|
942
|
+
if (value.serviceQuotaExceededException !== void 0)
|
|
943
|
+
return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
|
|
944
|
+
if (value.throttlingException !== void 0)
|
|
945
|
+
return visitor.throttlingException(value.throttlingException);
|
|
946
|
+
if (value.accessDeniedException !== void 0)
|
|
947
|
+
return visitor.accessDeniedException(value.accessDeniedException);
|
|
948
|
+
if (value.conflictException !== void 0)
|
|
949
|
+
return visitor.conflictException(value.conflictException);
|
|
950
|
+
if (value.dependencyFailedException !== void 0)
|
|
951
|
+
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
952
|
+
if (value.badGatewayException !== void 0)
|
|
953
|
+
return visitor.badGatewayException(value.badGatewayException);
|
|
954
|
+
if (value.files !== void 0)
|
|
955
|
+
return visitor.files(value.files);
|
|
956
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
957
|
+
}, "visit");
|
|
958
|
+
})(InlineAgentResponseStream || (InlineAgentResponseStream = {}));
|
|
847
959
|
var MemoryType = {
|
|
848
960
|
SESSION_SUMMARY: "SESSION_SUMMARY"
|
|
849
961
|
};
|
|
@@ -951,6 +1063,32 @@ var ActionGroupInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj)
|
|
|
951
1063
|
...obj,
|
|
952
1064
|
...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
|
|
953
1065
|
}), "ActionGroupInvocationOutputFilterSensitiveLog");
|
|
1066
|
+
var APISchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1067
|
+
if (obj.s3 !== void 0)
|
|
1068
|
+
return { s3: obj.s3 };
|
|
1069
|
+
if (obj.payload !== void 0)
|
|
1070
|
+
return { payload: import_smithy_client.SENSITIVE_STRING };
|
|
1071
|
+
if (obj.$unknown !== void 0)
|
|
1072
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1073
|
+
}, "APISchemaFilterSensitiveLog");
|
|
1074
|
+
var FunctionDefinitionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1075
|
+
...obj,
|
|
1076
|
+
...obj.name && { name: import_smithy_client.SENSITIVE_STRING }
|
|
1077
|
+
}), "FunctionDefinitionFilterSensitiveLog");
|
|
1078
|
+
var FunctionSchemaFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1079
|
+
if (obj.functions !== void 0)
|
|
1080
|
+
return { functions: obj.functions.map((item) => FunctionDefinitionFilterSensitiveLog(item)) };
|
|
1081
|
+
if (obj.$unknown !== void 0)
|
|
1082
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1083
|
+
}, "FunctionSchemaFilterSensitiveLog");
|
|
1084
|
+
var AgentActionGroupFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1085
|
+
...obj,
|
|
1086
|
+
...obj.actionGroupName && { actionGroupName: import_smithy_client.SENSITIVE_STRING },
|
|
1087
|
+
...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
|
|
1088
|
+
...obj.actionGroupExecutor && { actionGroupExecutor: obj.actionGroupExecutor },
|
|
1089
|
+
...obj.apiSchema && { apiSchema: APISchemaFilterSensitiveLog(obj.apiSchema) },
|
|
1090
|
+
...obj.functionSchema && { functionSchema: FunctionSchemaFilterSensitiveLog(obj.functionSchema) }
|
|
1091
|
+
}), "AgentActionGroupFilterSensitiveLog");
|
|
954
1092
|
var FlowInputContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
955
1093
|
if (obj.document !== void 0)
|
|
956
1094
|
return { document: obj.document };
|
|
@@ -1134,6 +1272,13 @@ var ReturnControlPayloadFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1134
1272
|
invocationInputs: obj.invocationInputs.map((item) => InvocationInputMemberFilterSensitiveLog(item))
|
|
1135
1273
|
}
|
|
1136
1274
|
}), "ReturnControlPayloadFilterSensitiveLog");
|
|
1275
|
+
var CustomOrchestrationTraceEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1276
|
+
...obj
|
|
1277
|
+
}), "CustomOrchestrationTraceEventFilterSensitiveLog");
|
|
1278
|
+
var CustomOrchestrationTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1279
|
+
...obj,
|
|
1280
|
+
...obj.event && { event: import_smithy_client.SENSITIVE_STRING }
|
|
1281
|
+
}), "CustomOrchestrationTraceFilterSensitiveLog");
|
|
1137
1282
|
var FailureTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1138
1283
|
...obj,
|
|
1139
1284
|
...obj.failureReason && { failureReason: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -1309,6 +1454,8 @@ var TraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
|
1309
1454
|
return { postProcessingTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1310
1455
|
if (obj.failureTrace !== void 0)
|
|
1311
1456
|
return { failureTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1457
|
+
if (obj.customOrchestrationTrace !== void 0)
|
|
1458
|
+
return { customOrchestrationTrace: import_smithy_client.SENSITIVE_STRING };
|
|
1312
1459
|
if (obj.$unknown !== void 0)
|
|
1313
1460
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1314
1461
|
}, "TraceFilterSensitiveLog");
|
|
@@ -1350,6 +1497,78 @@ var InvokeAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
1350
1497
|
...obj,
|
|
1351
1498
|
...obj.completion && { completion: "STREAMING_CONTENT" }
|
|
1352
1499
|
}), "InvokeAgentResponseFilterSensitiveLog");
|
|
1500
|
+
var InlineSessionStateFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1501
|
+
...obj,
|
|
1502
|
+
...obj.returnControlInvocationResults && {
|
|
1503
|
+
returnControlInvocationResults: obj.returnControlInvocationResults.map(
|
|
1504
|
+
(item) => InvocationResultMemberFilterSensitiveLog(item)
|
|
1505
|
+
)
|
|
1506
|
+
},
|
|
1507
|
+
...obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) }
|
|
1508
|
+
}), "InlineSessionStateFilterSensitiveLog");
|
|
1509
|
+
var PromptConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1510
|
+
...obj,
|
|
1511
|
+
...obj.basePromptTemplate && { basePromptTemplate: import_smithy_client.SENSITIVE_STRING }
|
|
1512
|
+
}), "PromptConfigurationFilterSensitiveLog");
|
|
1513
|
+
var PromptOverrideConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1514
|
+
...obj,
|
|
1515
|
+
...obj.promptConfigurations && {
|
|
1516
|
+
promptConfigurations: obj.promptConfigurations.map((item) => PromptConfigurationFilterSensitiveLog(item))
|
|
1517
|
+
}
|
|
1518
|
+
}), "PromptOverrideConfigurationFilterSensitiveLog");
|
|
1519
|
+
var InlineAgentPayloadPartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1520
|
+
...obj,
|
|
1521
|
+
...obj.bytes && { bytes: import_smithy_client.SENSITIVE_STRING },
|
|
1522
|
+
...obj.attribution && { attribution: AttributionFilterSensitiveLog(obj.attribution) }
|
|
1523
|
+
}), "InlineAgentPayloadPartFilterSensitiveLog");
|
|
1524
|
+
var InlineAgentFilePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1525
|
+
...obj,
|
|
1526
|
+
...obj.files && { files: import_smithy_client.SENSITIVE_STRING }
|
|
1527
|
+
}), "InlineAgentFilePartFilterSensitiveLog");
|
|
1528
|
+
var InlineAgentReturnControlPayloadFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1529
|
+
...obj,
|
|
1530
|
+
...obj.invocationInputs && {
|
|
1531
|
+
invocationInputs: obj.invocationInputs.map((item) => InvocationInputMemberFilterSensitiveLog(item))
|
|
1532
|
+
}
|
|
1533
|
+
}), "InlineAgentReturnControlPayloadFilterSensitiveLog");
|
|
1534
|
+
var InlineAgentTracePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1535
|
+
...obj,
|
|
1536
|
+
...obj.trace && { trace: import_smithy_client.SENSITIVE_STRING }
|
|
1537
|
+
}), "InlineAgentTracePartFilterSensitiveLog");
|
|
1538
|
+
var InlineAgentResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
1539
|
+
if (obj.chunk !== void 0)
|
|
1540
|
+
return { chunk: import_smithy_client.SENSITIVE_STRING };
|
|
1541
|
+
if (obj.trace !== void 0)
|
|
1542
|
+
return { trace: import_smithy_client.SENSITIVE_STRING };
|
|
1543
|
+
if (obj.returnControl !== void 0)
|
|
1544
|
+
return { returnControl: import_smithy_client.SENSITIVE_STRING };
|
|
1545
|
+
if (obj.internalServerException !== void 0)
|
|
1546
|
+
return { internalServerException: obj.internalServerException };
|
|
1547
|
+
if (obj.validationException !== void 0)
|
|
1548
|
+
return { validationException: obj.validationException };
|
|
1549
|
+
if (obj.resourceNotFoundException !== void 0)
|
|
1550
|
+
return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
1551
|
+
if (obj.serviceQuotaExceededException !== void 0)
|
|
1552
|
+
return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
|
|
1553
|
+
if (obj.throttlingException !== void 0)
|
|
1554
|
+
return { throttlingException: obj.throttlingException };
|
|
1555
|
+
if (obj.accessDeniedException !== void 0)
|
|
1556
|
+
return { accessDeniedException: obj.accessDeniedException };
|
|
1557
|
+
if (obj.conflictException !== void 0)
|
|
1558
|
+
return { conflictException: obj.conflictException };
|
|
1559
|
+
if (obj.dependencyFailedException !== void 0)
|
|
1560
|
+
return { dependencyFailedException: obj.dependencyFailedException };
|
|
1561
|
+
if (obj.badGatewayException !== void 0)
|
|
1562
|
+
return { badGatewayException: obj.badGatewayException };
|
|
1563
|
+
if (obj.files !== void 0)
|
|
1564
|
+
return { files: InlineAgentFilePartFilterSensitiveLog(obj.files) };
|
|
1565
|
+
if (obj.$unknown !== void 0)
|
|
1566
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1567
|
+
}, "InlineAgentResponseStreamFilterSensitiveLog");
|
|
1568
|
+
var InvokeInlineAgentResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1569
|
+
...obj,
|
|
1570
|
+
...obj.completion && { completion: "STREAMING_CONTENT" }
|
|
1571
|
+
}), "InvokeInlineAgentResponseFilterSensitiveLog");
|
|
1353
1572
|
var TextPromptFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1354
1573
|
...obj
|
|
1355
1574
|
}), "TextPromptFilterSensitiveLog");
|
|
@@ -1496,6 +1715,13 @@ var KnowledgeBaseRetrievalConfigurationFilterSensitiveLog = /* @__PURE__ */ __na
|
|
|
1496
1715
|
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog(obj.vectorSearchConfiguration)
|
|
1497
1716
|
}
|
|
1498
1717
|
}), "KnowledgeBaseRetrievalConfigurationFilterSensitiveLog");
|
|
1718
|
+
var KnowledgeBaseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1719
|
+
...obj,
|
|
1720
|
+
...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
|
|
1721
|
+
...obj.retrievalConfiguration && {
|
|
1722
|
+
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration)
|
|
1723
|
+
}
|
|
1724
|
+
}), "KnowledgeBaseFilterSensitiveLog");
|
|
1499
1725
|
var KnowledgeBaseConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1500
1726
|
...obj,
|
|
1501
1727
|
...obj.retrievalConfiguration && {
|
|
@@ -1534,6 +1760,17 @@ var RetrieveAndGenerateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name(
|
|
|
1534
1760
|
)
|
|
1535
1761
|
}
|
|
1536
1762
|
}), "RetrieveAndGenerateConfigurationFilterSensitiveLog");
|
|
1763
|
+
var InvokeInlineAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1764
|
+
...obj,
|
|
1765
|
+
...obj.inputText && { inputText: import_smithy_client.SENSITIVE_STRING },
|
|
1766
|
+
...obj.inlineSessionState && { inlineSessionState: InlineSessionStateFilterSensitiveLog(obj.inlineSessionState) },
|
|
1767
|
+
...obj.instruction && { instruction: import_smithy_client.SENSITIVE_STRING },
|
|
1768
|
+
...obj.actionGroups && { actionGroups: obj.actionGroups.map((item) => AgentActionGroupFilterSensitiveLog(item)) },
|
|
1769
|
+
...obj.knowledgeBases && {
|
|
1770
|
+
knowledgeBases: obj.knowledgeBases.map((item) => KnowledgeBaseFilterSensitiveLog(item))
|
|
1771
|
+
},
|
|
1772
|
+
...obj.promptOverrideConfiguration && { promptOverrideConfiguration: import_smithy_client.SENSITIVE_STRING }
|
|
1773
|
+
}), "InvokeInlineAgentRequestFilterSensitiveLog");
|
|
1537
1774
|
var RetrieveAndGenerateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1538
1775
|
...obj,
|
|
1539
1776
|
...obj.input && { input: import_smithy_client.SENSITIVE_STRING },
|
|
@@ -1609,7 +1846,8 @@ var se_InvokeAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1609
1846
|
endSession: [],
|
|
1610
1847
|
inputText: [],
|
|
1611
1848
|
memoryId: [],
|
|
1612
|
-
sessionState: (_) => se_SessionState(_, context)
|
|
1849
|
+
sessionState: (_) => se_SessionState(_, context),
|
|
1850
|
+
streamingConfigurations: (_) => (0, import_smithy_client._json)(_)
|
|
1613
1851
|
})
|
|
1614
1852
|
);
|
|
1615
1853
|
b.m("POST").h(headers).b(body);
|
|
@@ -1633,6 +1871,33 @@ var se_InvokeFlowCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1633
1871
|
b.m("POST").h(headers).b(body);
|
|
1634
1872
|
return b.build();
|
|
1635
1873
|
}, "se_InvokeFlowCommand");
|
|
1874
|
+
var se_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1875
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1876
|
+
const headers = {
|
|
1877
|
+
"content-type": "application/json"
|
|
1878
|
+
};
|
|
1879
|
+
b.bp("/agents/{sessionId}");
|
|
1880
|
+
b.p("sessionId", () => input.sessionId, "{sessionId}", false);
|
|
1881
|
+
let body;
|
|
1882
|
+
body = JSON.stringify(
|
|
1883
|
+
(0, import_smithy_client.take)(input, {
|
|
1884
|
+
actionGroups: (_) => (0, import_smithy_client._json)(_),
|
|
1885
|
+
customerEncryptionKeyArn: [],
|
|
1886
|
+
enableTrace: [],
|
|
1887
|
+
endSession: [],
|
|
1888
|
+
foundationModel: [],
|
|
1889
|
+
guardrailConfiguration: (_) => (0, import_smithy_client._json)(_),
|
|
1890
|
+
idleSessionTTLInSeconds: [],
|
|
1891
|
+
inlineSessionState: (_) => se_InlineSessionState(_, context),
|
|
1892
|
+
inputText: [],
|
|
1893
|
+
instruction: [],
|
|
1894
|
+
knowledgeBases: (_) => se_KnowledgeBases(_, context),
|
|
1895
|
+
promptOverrideConfiguration: (_) => se_PromptOverrideConfiguration(_, context)
|
|
1896
|
+
})
|
|
1897
|
+
);
|
|
1898
|
+
b.m("POST").h(headers).b(body);
|
|
1899
|
+
return b.build();
|
|
1900
|
+
}, "se_InvokeInlineAgentCommand");
|
|
1636
1901
|
var se_OptimizePromptCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1637
1902
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1638
1903
|
const headers = {
|
|
@@ -1735,6 +2000,19 @@ var de_InvokeFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1735
2000
|
contents.responseStream = de_FlowResponseStream(data, context);
|
|
1736
2001
|
return contents;
|
|
1737
2002
|
}, "de_InvokeFlowCommand");
|
|
2003
|
+
var de_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
2004
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2005
|
+
return de_CommandError(output, context);
|
|
2006
|
+
}
|
|
2007
|
+
const contents = (0, import_smithy_client.map)({
|
|
2008
|
+
$metadata: deserializeMetadata(output),
|
|
2009
|
+
[_cT]: [, output.headers[_xabact]],
|
|
2010
|
+
[_sI]: [, output.headers[_xabasi]]
|
|
2011
|
+
});
|
|
2012
|
+
const data = output.body;
|
|
2013
|
+
contents.completion = de_InlineAgentResponseStream(data, context);
|
|
2014
|
+
return contents;
|
|
2015
|
+
}, "de_InvokeInlineAgentCommand");
|
|
1738
2016
|
var de_OptimizePromptCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1739
2017
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1740
2018
|
return de_CommandError(output, context);
|
|
@@ -2015,6 +2293,85 @@ var de_FlowResponseStream = /* @__PURE__ */ __name((output, context) => {
|
|
|
2015
2293
|
return { $unknown: output };
|
|
2016
2294
|
});
|
|
2017
2295
|
}, "de_FlowResponseStream");
|
|
2296
|
+
var de_InlineAgentResponseStream = /* @__PURE__ */ __name((output, context) => {
|
|
2297
|
+
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
2298
|
+
if (event["chunk"] != null) {
|
|
2299
|
+
return {
|
|
2300
|
+
chunk: await de_InlineAgentPayloadPart_event(event["chunk"], context)
|
|
2301
|
+
};
|
|
2302
|
+
}
|
|
2303
|
+
if (event["trace"] != null) {
|
|
2304
|
+
return {
|
|
2305
|
+
trace: await de_InlineAgentTracePart_event(event["trace"], context)
|
|
2306
|
+
};
|
|
2307
|
+
}
|
|
2308
|
+
if (event["returnControl"] != null) {
|
|
2309
|
+
return {
|
|
2310
|
+
returnControl: await de_InlineAgentReturnControlPayload_event(event["returnControl"], context)
|
|
2311
|
+
};
|
|
2312
|
+
}
|
|
2313
|
+
if (event["internalServerException"] != null) {
|
|
2314
|
+
return {
|
|
2315
|
+
internalServerException: await de_InternalServerException_event(event["internalServerException"], context)
|
|
2316
|
+
};
|
|
2317
|
+
}
|
|
2318
|
+
if (event["validationException"] != null) {
|
|
2319
|
+
return {
|
|
2320
|
+
validationException: await de_ValidationException_event(event["validationException"], context)
|
|
2321
|
+
};
|
|
2322
|
+
}
|
|
2323
|
+
if (event["resourceNotFoundException"] != null) {
|
|
2324
|
+
return {
|
|
2325
|
+
resourceNotFoundException: await de_ResourceNotFoundException_event(
|
|
2326
|
+
event["resourceNotFoundException"],
|
|
2327
|
+
context
|
|
2328
|
+
)
|
|
2329
|
+
};
|
|
2330
|
+
}
|
|
2331
|
+
if (event["serviceQuotaExceededException"] != null) {
|
|
2332
|
+
return {
|
|
2333
|
+
serviceQuotaExceededException: await de_ServiceQuotaExceededException_event(
|
|
2334
|
+
event["serviceQuotaExceededException"],
|
|
2335
|
+
context
|
|
2336
|
+
)
|
|
2337
|
+
};
|
|
2338
|
+
}
|
|
2339
|
+
if (event["throttlingException"] != null) {
|
|
2340
|
+
return {
|
|
2341
|
+
throttlingException: await de_ThrottlingException_event(event["throttlingException"], context)
|
|
2342
|
+
};
|
|
2343
|
+
}
|
|
2344
|
+
if (event["accessDeniedException"] != null) {
|
|
2345
|
+
return {
|
|
2346
|
+
accessDeniedException: await de_AccessDeniedException_event(event["accessDeniedException"], context)
|
|
2347
|
+
};
|
|
2348
|
+
}
|
|
2349
|
+
if (event["conflictException"] != null) {
|
|
2350
|
+
return {
|
|
2351
|
+
conflictException: await de_ConflictException_event(event["conflictException"], context)
|
|
2352
|
+
};
|
|
2353
|
+
}
|
|
2354
|
+
if (event["dependencyFailedException"] != null) {
|
|
2355
|
+
return {
|
|
2356
|
+
dependencyFailedException: await de_DependencyFailedException_event(
|
|
2357
|
+
event["dependencyFailedException"],
|
|
2358
|
+
context
|
|
2359
|
+
)
|
|
2360
|
+
};
|
|
2361
|
+
}
|
|
2362
|
+
if (event["badGatewayException"] != null) {
|
|
2363
|
+
return {
|
|
2364
|
+
badGatewayException: await de_BadGatewayException_event(event["badGatewayException"], context)
|
|
2365
|
+
};
|
|
2366
|
+
}
|
|
2367
|
+
if (event["files"] != null) {
|
|
2368
|
+
return {
|
|
2369
|
+
files: await de_InlineAgentFilePart_event(event["files"], context)
|
|
2370
|
+
};
|
|
2371
|
+
}
|
|
2372
|
+
return { $unknown: output };
|
|
2373
|
+
});
|
|
2374
|
+
}, "de_InlineAgentResponseStream");
|
|
2018
2375
|
var de_OptimizedPromptStream = /* @__PURE__ */ __name((output, context) => {
|
|
2019
2376
|
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
2020
2377
|
if (event["optimizedPromptEvent"] != null) {
|
|
@@ -2200,6 +2557,30 @@ var de_FlowTraceEvent_event = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
2200
2557
|
Object.assign(contents, de_FlowTraceEvent(data, context));
|
|
2201
2558
|
return contents;
|
|
2202
2559
|
}, "de_FlowTraceEvent_event");
|
|
2560
|
+
var de_InlineAgentFilePart_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
2561
|
+
const contents = {};
|
|
2562
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2563
|
+
Object.assign(contents, de_InlineAgentFilePart(data, context));
|
|
2564
|
+
return contents;
|
|
2565
|
+
}, "de_InlineAgentFilePart_event");
|
|
2566
|
+
var de_InlineAgentPayloadPart_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
2567
|
+
const contents = {};
|
|
2568
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2569
|
+
Object.assign(contents, de_InlineAgentPayloadPart(data, context));
|
|
2570
|
+
return contents;
|
|
2571
|
+
}, "de_InlineAgentPayloadPart_event");
|
|
2572
|
+
var de_InlineAgentReturnControlPayload_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
2573
|
+
const contents = {};
|
|
2574
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2575
|
+
Object.assign(contents, (0, import_smithy_client._json)(data));
|
|
2576
|
+
return contents;
|
|
2577
|
+
}, "de_InlineAgentReturnControlPayload_event");
|
|
2578
|
+
var de_InlineAgentTracePart_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
2579
|
+
const contents = {};
|
|
2580
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
2581
|
+
Object.assign(contents, de_InlineAgentTracePart(data, context));
|
|
2582
|
+
return contents;
|
|
2583
|
+
}, "de_InlineAgentTracePart_event");
|
|
2203
2584
|
var de_InternalServerException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
2204
2585
|
const parsedOutput = {
|
|
2205
2586
|
...output,
|
|
@@ -2358,6 +2739,24 @@ var se_InferenceConfig = /* @__PURE__ */ __name((input, context) => {
|
|
|
2358
2739
|
textInferenceConfig: (_) => se_TextInferenceConfig(_, context)
|
|
2359
2740
|
});
|
|
2360
2741
|
}, "se_InferenceConfig");
|
|
2742
|
+
var se_InferenceConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2743
|
+
return (0, import_smithy_client.take)(input, {
|
|
2744
|
+
maximumLength: [],
|
|
2745
|
+
stopSequences: import_smithy_client._json,
|
|
2746
|
+
temperature: import_smithy_client.serializeFloat,
|
|
2747
|
+
topK: [],
|
|
2748
|
+
topP: import_smithy_client.serializeFloat
|
|
2749
|
+
});
|
|
2750
|
+
}, "se_InferenceConfiguration");
|
|
2751
|
+
var se_InlineSessionState = /* @__PURE__ */ __name((input, context) => {
|
|
2752
|
+
return (0, import_smithy_client.take)(input, {
|
|
2753
|
+
files: (_) => se_InputFiles(_, context),
|
|
2754
|
+
invocationId: [],
|
|
2755
|
+
promptSessionAttributes: import_smithy_client._json,
|
|
2756
|
+
returnControlInvocationResults: import_smithy_client._json,
|
|
2757
|
+
sessionAttributes: import_smithy_client._json
|
|
2758
|
+
});
|
|
2759
|
+
}, "se_InlineSessionState");
|
|
2361
2760
|
var se_InputFile = /* @__PURE__ */ __name((input, context) => {
|
|
2362
2761
|
return (0, import_smithy_client.take)(input, {
|
|
2363
2762
|
name: [],
|
|
@@ -2370,6 +2769,13 @@ var se_InputFiles = /* @__PURE__ */ __name((input, context) => {
|
|
|
2370
2769
|
return se_InputFile(entry, context);
|
|
2371
2770
|
});
|
|
2372
2771
|
}, "se_InputFiles");
|
|
2772
|
+
var se_KnowledgeBase = /* @__PURE__ */ __name((input, context) => {
|
|
2773
|
+
return (0, import_smithy_client.take)(input, {
|
|
2774
|
+
description: [],
|
|
2775
|
+
knowledgeBaseId: [],
|
|
2776
|
+
retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
2777
|
+
});
|
|
2778
|
+
}, "se_KnowledgeBase");
|
|
2373
2779
|
var se_KnowledgeBaseConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2374
2780
|
return (0, import_smithy_client.take)(input, {
|
|
2375
2781
|
knowledgeBaseId: [],
|
|
@@ -2395,6 +2801,11 @@ var se_KnowledgeBaseRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((i
|
|
|
2395
2801
|
retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
2396
2802
|
});
|
|
2397
2803
|
}, "se_KnowledgeBaseRetrieveAndGenerateConfiguration");
|
|
2804
|
+
var se_KnowledgeBases = /* @__PURE__ */ __name((input, context) => {
|
|
2805
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
2806
|
+
return se_KnowledgeBase(entry, context);
|
|
2807
|
+
});
|
|
2808
|
+
}, "se_KnowledgeBases");
|
|
2398
2809
|
var se_KnowledgeBaseVectorSearchConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2399
2810
|
return (0, import_smithy_client.take)(input, {
|
|
2400
2811
|
filter: (_) => se_RetrievalFilter(_, context),
|
|
@@ -2410,6 +2821,27 @@ var se_OrchestrationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
|
2410
2821
|
queryTransformationConfiguration: import_smithy_client._json
|
|
2411
2822
|
});
|
|
2412
2823
|
}, "se_OrchestrationConfiguration");
|
|
2824
|
+
var se_PromptConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2825
|
+
return (0, import_smithy_client.take)(input, {
|
|
2826
|
+
basePromptTemplate: [],
|
|
2827
|
+
inferenceConfiguration: (_) => se_InferenceConfiguration(_, context),
|
|
2828
|
+
parserMode: [],
|
|
2829
|
+
promptCreationMode: [],
|
|
2830
|
+
promptState: [],
|
|
2831
|
+
promptType: []
|
|
2832
|
+
});
|
|
2833
|
+
}, "se_PromptConfiguration");
|
|
2834
|
+
var se_PromptConfigurations = /* @__PURE__ */ __name((input, context) => {
|
|
2835
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
2836
|
+
return se_PromptConfiguration(entry, context);
|
|
2837
|
+
});
|
|
2838
|
+
}, "se_PromptConfigurations");
|
|
2839
|
+
var se_PromptOverrideConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2840
|
+
return (0, import_smithy_client.take)(input, {
|
|
2841
|
+
overrideLambda: [],
|
|
2842
|
+
promptConfigurations: (_) => se_PromptConfigurations(_, context)
|
|
2843
|
+
});
|
|
2844
|
+
}, "se_PromptOverrideConfiguration");
|
|
2413
2845
|
var se_RetrievalFilter = /* @__PURE__ */ __name((input, context) => {
|
|
2414
2846
|
return RetrievalFilter.visit(input, {
|
|
2415
2847
|
andAll: (value) => ({ andAll: se_RetrievalFilterList(value, context) }),
|
|
@@ -2591,6 +3023,23 @@ var de_InferenceConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
|
2591
3023
|
topP: import_smithy_client.limitedParseFloat32
|
|
2592
3024
|
});
|
|
2593
3025
|
}, "de_InferenceConfiguration");
|
|
3026
|
+
var de_InlineAgentFilePart = /* @__PURE__ */ __name((output, context) => {
|
|
3027
|
+
return (0, import_smithy_client.take)(output, {
|
|
3028
|
+
files: (_) => de_OutputFiles(_, context)
|
|
3029
|
+
});
|
|
3030
|
+
}, "de_InlineAgentFilePart");
|
|
3031
|
+
var de_InlineAgentPayloadPart = /* @__PURE__ */ __name((output, context) => {
|
|
3032
|
+
return (0, import_smithy_client.take)(output, {
|
|
3033
|
+
attribution: (_) => de_Attribution(_, context),
|
|
3034
|
+
bytes: context.base64Decoder
|
|
3035
|
+
});
|
|
3036
|
+
}, "de_InlineAgentPayloadPart");
|
|
3037
|
+
var de_InlineAgentTracePart = /* @__PURE__ */ __name((output, context) => {
|
|
3038
|
+
return (0, import_smithy_client.take)(output, {
|
|
3039
|
+
sessionId: import_smithy_client.expectString,
|
|
3040
|
+
trace: (_) => de_Trace((0, import_core2.awsExpectUnion)(_), context)
|
|
3041
|
+
});
|
|
3042
|
+
}, "de_InlineAgentTracePart");
|
|
2594
3043
|
var de_KnowledgeBaseLookupOutput = /* @__PURE__ */ __name((output, context) => {
|
|
2595
3044
|
return (0, import_smithy_client.take)(output, {
|
|
2596
3045
|
retrievedReferences: (_) => de_RetrievedReferences(_, context)
|
|
@@ -2754,6 +3203,11 @@ var de_RetrievedReferences = /* @__PURE__ */ __name((output, context) => {
|
|
|
2754
3203
|
return retVal;
|
|
2755
3204
|
}, "de_RetrievedReferences");
|
|
2756
3205
|
var de_Trace = /* @__PURE__ */ __name((output, context) => {
|
|
3206
|
+
if (output.customOrchestrationTrace != null) {
|
|
3207
|
+
return {
|
|
3208
|
+
customOrchestrationTrace: (0, import_smithy_client._json)(output.customOrchestrationTrace)
|
|
3209
|
+
};
|
|
3210
|
+
}
|
|
2757
3211
|
if (output.failureTrace != null) {
|
|
2758
3212
|
return {
|
|
2759
3213
|
failureTrace: (0, import_smithy_client._json)(output.failureTrace)
|
|
@@ -2876,6 +3330,27 @@ var _InvokeFlowCommand = class _InvokeFlowCommand extends import_smithy_client.C
|
|
|
2876
3330
|
__name(_InvokeFlowCommand, "InvokeFlowCommand");
|
|
2877
3331
|
var InvokeFlowCommand = _InvokeFlowCommand;
|
|
2878
3332
|
|
|
3333
|
+
// src/commands/InvokeInlineAgentCommand.ts
|
|
3334
|
+
|
|
3335
|
+
|
|
3336
|
+
|
|
3337
|
+
var _InvokeInlineAgentCommand = class _InvokeInlineAgentCommand extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
3338
|
+
return [
|
|
3339
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
3340
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
3341
|
+
];
|
|
3342
|
+
}).s("AmazonBedrockAgentRunTimeService", "InvokeInlineAgent", {
|
|
3343
|
+
/**
|
|
3344
|
+
* @internal
|
|
3345
|
+
*/
|
|
3346
|
+
eventStream: {
|
|
3347
|
+
output: true
|
|
3348
|
+
}
|
|
3349
|
+
}).n("BedrockAgentRuntimeClient", "InvokeInlineAgentCommand").f(InvokeInlineAgentRequestFilterSensitiveLog, InvokeInlineAgentResponseFilterSensitiveLog).ser(se_InvokeInlineAgentCommand).de(de_InvokeInlineAgentCommand).build() {
|
|
3350
|
+
};
|
|
3351
|
+
__name(_InvokeInlineAgentCommand, "InvokeInlineAgentCommand");
|
|
3352
|
+
var InvokeInlineAgentCommand = _InvokeInlineAgentCommand;
|
|
3353
|
+
|
|
2879
3354
|
// src/commands/OptimizePromptCommand.ts
|
|
2880
3355
|
|
|
2881
3356
|
|
|
@@ -2931,6 +3406,7 @@ var commands = {
|
|
|
2931
3406
|
GetAgentMemoryCommand,
|
|
2932
3407
|
InvokeAgentCommand,
|
|
2933
3408
|
InvokeFlowCommand,
|
|
3409
|
+
InvokeInlineAgentCommand,
|
|
2934
3410
|
OptimizePromptCommand,
|
|
2935
3411
|
RetrieveCommand,
|
|
2936
3412
|
RetrieveAndGenerateCommand
|
|
@@ -2960,14 +3436,22 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
2960
3436
|
GetAgentMemoryCommand,
|
|
2961
3437
|
InvokeAgentCommand,
|
|
2962
3438
|
InvokeFlowCommand,
|
|
3439
|
+
InvokeInlineAgentCommand,
|
|
2963
3440
|
OptimizePromptCommand,
|
|
2964
3441
|
RetrieveAndGenerateCommand,
|
|
2965
3442
|
RetrieveCommand,
|
|
2966
3443
|
paginateGetAgentMemory,
|
|
2967
3444
|
paginateRetrieve,
|
|
2968
3445
|
AccessDeniedException,
|
|
3446
|
+
CustomControlMethod,
|
|
3447
|
+
ActionGroupExecutor,
|
|
2969
3448
|
ExecutionType,
|
|
3449
|
+
ActionGroupSignature,
|
|
2970
3450
|
ActionInvocationType,
|
|
3451
|
+
APISchema,
|
|
3452
|
+
ParameterType,
|
|
3453
|
+
RequireConfirmation,
|
|
3454
|
+
FunctionSchema,
|
|
2971
3455
|
BadGatewayException,
|
|
2972
3456
|
ConflictException,
|
|
2973
3457
|
DependencyFailedException,
|
|
@@ -3012,6 +3496,8 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
3012
3496
|
PreProcessingTrace,
|
|
3013
3497
|
Trace,
|
|
3014
3498
|
ResponseStream,
|
|
3499
|
+
PromptState,
|
|
3500
|
+
InlineAgentResponseStream,
|
|
3015
3501
|
MemoryType,
|
|
3016
3502
|
Memory,
|
|
3017
3503
|
InputPrompt,
|
|
@@ -3024,6 +3510,10 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
3024
3510
|
RetrievalFilter,
|
|
3025
3511
|
ActionGroupInvocationInputFilterSensitiveLog,
|
|
3026
3512
|
ActionGroupInvocationOutputFilterSensitiveLog,
|
|
3513
|
+
APISchemaFilterSensitiveLog,
|
|
3514
|
+
FunctionDefinitionFilterSensitiveLog,
|
|
3515
|
+
FunctionSchemaFilterSensitiveLog,
|
|
3516
|
+
AgentActionGroupFilterSensitiveLog,
|
|
3027
3517
|
FlowInputContentFilterSensitiveLog,
|
|
3028
3518
|
FlowInputFilterSensitiveLog,
|
|
3029
3519
|
InvokeFlowRequestFilterSensitiveLog,
|
|
@@ -3058,6 +3548,8 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
3058
3548
|
ApiInvocationInputFilterSensitiveLog,
|
|
3059
3549
|
InvocationInputMemberFilterSensitiveLog,
|
|
3060
3550
|
ReturnControlPayloadFilterSensitiveLog,
|
|
3551
|
+
CustomOrchestrationTraceEventFilterSensitiveLog,
|
|
3552
|
+
CustomOrchestrationTraceFilterSensitiveLog,
|
|
3061
3553
|
FailureTraceFilterSensitiveLog,
|
|
3062
3554
|
GuardrailContentFilterFilterSensitiveLog,
|
|
3063
3555
|
GuardrailContentPolicyAssessmentFilterSensitiveLog,
|
|
@@ -3094,6 +3586,15 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
3094
3586
|
TracePartFilterSensitiveLog,
|
|
3095
3587
|
ResponseStreamFilterSensitiveLog,
|
|
3096
3588
|
InvokeAgentResponseFilterSensitiveLog,
|
|
3589
|
+
InlineSessionStateFilterSensitiveLog,
|
|
3590
|
+
PromptConfigurationFilterSensitiveLog,
|
|
3591
|
+
PromptOverrideConfigurationFilterSensitiveLog,
|
|
3592
|
+
InlineAgentPayloadPartFilterSensitiveLog,
|
|
3593
|
+
InlineAgentFilePartFilterSensitiveLog,
|
|
3594
|
+
InlineAgentReturnControlPayloadFilterSensitiveLog,
|
|
3595
|
+
InlineAgentTracePartFilterSensitiveLog,
|
|
3596
|
+
InlineAgentResponseStreamFilterSensitiveLog,
|
|
3597
|
+
InvokeInlineAgentResponseFilterSensitiveLog,
|
|
3097
3598
|
TextPromptFilterSensitiveLog,
|
|
3098
3599
|
InputPromptFilterSensitiveLog,
|
|
3099
3600
|
OptimizePromptRequestFilterSensitiveLog,
|
|
@@ -3118,10 +3619,12 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
3118
3619
|
RetrievalFilterFilterSensitiveLog,
|
|
3119
3620
|
KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
|
|
3120
3621
|
KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,
|
|
3622
|
+
KnowledgeBaseFilterSensitiveLog,
|
|
3121
3623
|
KnowledgeBaseConfigurationFilterSensitiveLog,
|
|
3122
3624
|
KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
3123
3625
|
RetrieveRequestFilterSensitiveLog,
|
|
3124
3626
|
RetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
3627
|
+
InvokeInlineAgentRequestFilterSensitiveLog,
|
|
3125
3628
|
RetrieveAndGenerateRequestFilterSensitiveLog,
|
|
3126
3629
|
SessionStateFilterSensitiveLog,
|
|
3127
3630
|
InvokeAgentRequestFilterSensitiveLog
|