@aws-sdk/client-bedrock-agent-runtime 3.609.0 → 3.614.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 +24 -0
- package/dist-cjs/index.js +672 -71
- package/dist-es/BedrockAgentRuntime.js +6 -0
- package/dist-es/commands/DeleteAgentMemoryCommand.js +24 -0
- package/dist-es/commands/GetAgentMemoryCommand.js +24 -0
- package/dist-es/commands/InvokeFlowCommand.js +29 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/models/models_0.js +221 -49
- package/dist-es/pagination/GetAgentMemoryPaginator.js +4 -0
- package/dist-es/pagination/index.js +1 -0
- package/dist-es/protocols/Aws_restJson1.js +311 -3
- package/dist-types/BedrockAgentRuntime.d.ts +21 -0
- package/dist-types/BedrockAgentRuntimeClient.d.ts +5 -2
- package/dist-types/commands/DeleteAgentMemoryCommand.d.ts +87 -0
- package/dist-types/commands/GetAgentMemoryCommand.d.ts +103 -0
- package/dist-types/commands/InvokeAgentCommand.d.ts +134 -4
- package/dist-types/commands/InvokeFlowCommand.d.ts +137 -0
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +18 -1
- package/dist-types/commands/RetrieveCommand.d.ts +13 -1
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/models/models_0.d.ts +1339 -299
- package/dist-types/pagination/GetAgentMemoryPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +1 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
- package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +51 -0
- package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +18 -0
- package/dist-types/ts3.4/commands/DeleteAgentMemoryCommand.d.ts +40 -0
- package/dist-types/ts3.4/commands/GetAgentMemoryCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/InvokeFlowCommand.d.ts +36 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/models/models_0.d.ts +527 -54
- package/dist-types/ts3.4/pagination/GetAgentMemoryPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +1 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
- package/package.json +20 -20
package/dist-cjs/index.js
CHANGED
|
@@ -32,18 +32,35 @@ __export(src_exports, {
|
|
|
32
32
|
BedrockAgentRuntimeClient: () => BedrockAgentRuntimeClient,
|
|
33
33
|
BedrockAgentRuntimeServiceException: () => BedrockAgentRuntimeServiceException,
|
|
34
34
|
ByteContentDocFilterSensitiveLog: () => ByteContentDocFilterSensitiveLog,
|
|
35
|
+
ByteContentFileFilterSensitiveLog: () => ByteContentFileFilterSensitiveLog,
|
|
35
36
|
CitationFilterSensitiveLog: () => CitationFilterSensitiveLog,
|
|
36
37
|
ConflictException: () => ConflictException,
|
|
37
38
|
CreationMode: () => CreationMode,
|
|
39
|
+
DeleteAgentMemoryCommand: () => DeleteAgentMemoryCommand,
|
|
38
40
|
DependencyFailedException: () => DependencyFailedException,
|
|
41
|
+
ExecutionType: () => ExecutionType,
|
|
39
42
|
ExternalSourceFilterSensitiveLog: () => ExternalSourceFilterSensitiveLog,
|
|
40
43
|
ExternalSourceType: () => ExternalSourceType,
|
|
41
44
|
ExternalSourcesGenerationConfigurationFilterSensitiveLog: () => ExternalSourcesGenerationConfigurationFilterSensitiveLog,
|
|
42
45
|
ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog: () => ExternalSourcesRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
43
46
|
FailureTraceFilterSensitiveLog: () => FailureTraceFilterSensitiveLog,
|
|
47
|
+
FilePartFilterSensitiveLog: () => FilePartFilterSensitiveLog,
|
|
48
|
+
FileSourceFilterSensitiveLog: () => FileSourceFilterSensitiveLog,
|
|
49
|
+
FileSourceType: () => FileSourceType,
|
|
50
|
+
FileUseCase: () => FileUseCase,
|
|
44
51
|
FinalResponseFilterSensitiveLog: () => FinalResponseFilterSensitiveLog,
|
|
52
|
+
FlowCompletionEventFilterSensitiveLog: () => FlowCompletionEventFilterSensitiveLog,
|
|
53
|
+
FlowCompletionReason: () => FlowCompletionReason,
|
|
54
|
+
FlowInputContent: () => FlowInputContent,
|
|
55
|
+
FlowInputContentFilterSensitiveLog: () => FlowInputContentFilterSensitiveLog,
|
|
56
|
+
FlowInputFilterSensitiveLog: () => FlowInputFilterSensitiveLog,
|
|
57
|
+
FlowOutputContent: () => FlowOutputContent,
|
|
58
|
+
FlowOutputEventFilterSensitiveLog: () => FlowOutputEventFilterSensitiveLog,
|
|
59
|
+
FlowResponseStream: () => FlowResponseStream,
|
|
60
|
+
FlowResponseStreamFilterSensitiveLog: () => FlowResponseStreamFilterSensitiveLog,
|
|
45
61
|
GeneratedResponsePartFilterSensitiveLog: () => GeneratedResponsePartFilterSensitiveLog,
|
|
46
62
|
GenerationConfigurationFilterSensitiveLog: () => GenerationConfigurationFilterSensitiveLog,
|
|
63
|
+
GetAgentMemoryCommand: () => GetAgentMemoryCommand,
|
|
47
64
|
GuadrailAction: () => GuadrailAction,
|
|
48
65
|
GuardrailAction: () => GuardrailAction,
|
|
49
66
|
GuardrailAssessmentFilterSensitiveLog: () => GuardrailAssessmentFilterSensitiveLog,
|
|
@@ -67,6 +84,7 @@ __export(src_exports, {
|
|
|
67
84
|
GuardrailTraceFilterSensitiveLog: () => GuardrailTraceFilterSensitiveLog,
|
|
68
85
|
GuardrailWordPolicyAction: () => GuardrailWordPolicyAction,
|
|
69
86
|
GuardrailWordPolicyAssessmentFilterSensitiveLog: () => GuardrailWordPolicyAssessmentFilterSensitiveLog,
|
|
87
|
+
InputFileFilterSensitiveLog: () => InputFileFilterSensitiveLog,
|
|
70
88
|
InternalServerException: () => InternalServerException,
|
|
71
89
|
InvocationInputFilterSensitiveLog: () => InvocationInputFilterSensitiveLog,
|
|
72
90
|
InvocationInputMember: () => InvocationInputMember,
|
|
@@ -77,6 +95,10 @@ __export(src_exports, {
|
|
|
77
95
|
InvokeAgentCommand: () => InvokeAgentCommand,
|
|
78
96
|
InvokeAgentRequestFilterSensitiveLog: () => InvokeAgentRequestFilterSensitiveLog,
|
|
79
97
|
InvokeAgentResponseFilterSensitiveLog: () => InvokeAgentResponseFilterSensitiveLog,
|
|
98
|
+
InvokeFlowCommand: () => InvokeFlowCommand,
|
|
99
|
+
InvokeFlowRequestFilterSensitiveLog: () => InvokeFlowRequestFilterSensitiveLog,
|
|
100
|
+
InvokeFlowResponseFilterSensitiveLog: () => InvokeFlowResponseFilterSensitiveLog,
|
|
101
|
+
KnowledgeBaseConfigurationFilterSensitiveLog: () => KnowledgeBaseConfigurationFilterSensitiveLog,
|
|
80
102
|
KnowledgeBaseLookupInputFilterSensitiveLog: () => KnowledgeBaseLookupInputFilterSensitiveLog,
|
|
81
103
|
KnowledgeBaseLookupOutputFilterSensitiveLog: () => KnowledgeBaseLookupOutputFilterSensitiveLog,
|
|
82
104
|
KnowledgeBaseQueryFilterSensitiveLog: () => KnowledgeBaseQueryFilterSensitiveLog,
|
|
@@ -84,10 +106,14 @@ __export(src_exports, {
|
|
|
84
106
|
KnowledgeBaseRetrievalResultFilterSensitiveLog: () => KnowledgeBaseRetrievalResultFilterSensitiveLog,
|
|
85
107
|
KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog: () => KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
86
108
|
KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog: () => KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
|
|
109
|
+
Memory: () => Memory,
|
|
110
|
+
MemoryType: () => MemoryType,
|
|
87
111
|
ModelInvocationInputFilterSensitiveLog: () => ModelInvocationInputFilterSensitiveLog,
|
|
112
|
+
NodeType: () => NodeType,
|
|
88
113
|
ObservationFilterSensitiveLog: () => ObservationFilterSensitiveLog,
|
|
89
114
|
OrchestrationTrace: () => OrchestrationTrace,
|
|
90
115
|
OrchestrationTraceFilterSensitiveLog: () => OrchestrationTraceFilterSensitiveLog,
|
|
116
|
+
OutputFileFilterSensitiveLog: () => OutputFileFilterSensitiveLog,
|
|
91
117
|
PayloadPartFilterSensitiveLog: () => PayloadPartFilterSensitiveLog,
|
|
92
118
|
PostProcessingModelInvocationOutputFilterSensitiveLog: () => PostProcessingModelInvocationOutputFilterSensitiveLog,
|
|
93
119
|
PostProcessingParsedResponseFilterSensitiveLog: () => PostProcessingParsedResponseFilterSensitiveLog,
|
|
@@ -99,6 +125,7 @@ __export(src_exports, {
|
|
|
99
125
|
PreProcessingTraceFilterSensitiveLog: () => PreProcessingTraceFilterSensitiveLog,
|
|
100
126
|
PromptTemplateFilterSensitiveLog: () => PromptTemplateFilterSensitiveLog,
|
|
101
127
|
PromptType: () => PromptType,
|
|
128
|
+
QueryTransformationType: () => QueryTransformationType,
|
|
102
129
|
RationaleFilterSensitiveLog: () => RationaleFilterSensitiveLog,
|
|
103
130
|
RepromptResponseFilterSensitiveLog: () => RepromptResponseFilterSensitiveLog,
|
|
104
131
|
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
@@ -134,6 +161,7 @@ __export(src_exports, {
|
|
|
134
161
|
Type: () => Type,
|
|
135
162
|
ValidationException: () => ValidationException,
|
|
136
163
|
__Client: () => import_smithy_client.Client,
|
|
164
|
+
paginateGetAgentMemory: () => paginateGetAgentMemory,
|
|
137
165
|
paginateRetrieve: () => paginateRetrieve
|
|
138
166
|
});
|
|
139
167
|
module.exports = __toCommonJS(src_exports);
|
|
@@ -286,12 +314,14 @@ var BedrockAgentRuntimeClient = _BedrockAgentRuntimeClient;
|
|
|
286
314
|
// src/BedrockAgentRuntime.ts
|
|
287
315
|
|
|
288
316
|
|
|
289
|
-
// src/commands/
|
|
317
|
+
// src/commands/DeleteAgentMemoryCommand.ts
|
|
290
318
|
|
|
291
319
|
var import_middleware_serde = require("@smithy/middleware-serde");
|
|
292
320
|
|
|
293
321
|
|
|
294
|
-
// src/
|
|
322
|
+
// src/protocols/Aws_restJson1.ts
|
|
323
|
+
var import_core2 = require("@aws-sdk/core");
|
|
324
|
+
|
|
295
325
|
|
|
296
326
|
|
|
297
327
|
// src/models/BedrockAgentRuntimeServiceException.ts
|
|
@@ -309,6 +339,7 @@ __name(_BedrockAgentRuntimeServiceException, "BedrockAgentRuntimeServiceExceptio
|
|
|
309
339
|
var BedrockAgentRuntimeServiceException = _BedrockAgentRuntimeServiceException;
|
|
310
340
|
|
|
311
341
|
// src/models/models_0.ts
|
|
342
|
+
|
|
312
343
|
var _AccessDeniedException = class _AccessDeniedException extends BedrockAgentRuntimeServiceException {
|
|
313
344
|
/**
|
|
314
345
|
* @internal
|
|
@@ -326,6 +357,10 @@ var _AccessDeniedException = class _AccessDeniedException extends BedrockAgentRu
|
|
|
326
357
|
};
|
|
327
358
|
__name(_AccessDeniedException, "AccessDeniedException");
|
|
328
359
|
var AccessDeniedException = _AccessDeniedException;
|
|
360
|
+
var ExecutionType = {
|
|
361
|
+
LAMBDA: "LAMBDA",
|
|
362
|
+
RETURN_CONTROL: "RETURN_CONTROL"
|
|
363
|
+
};
|
|
329
364
|
var _BadGatewayException = class _BadGatewayException extends BedrockAgentRuntimeServiceException {
|
|
330
365
|
/**
|
|
331
366
|
* @internal
|
|
@@ -396,22 +431,33 @@ var _InternalServerException = class _InternalServerException extends BedrockAge
|
|
|
396
431
|
};
|
|
397
432
|
__name(_InternalServerException, "InternalServerException");
|
|
398
433
|
var InternalServerException = _InternalServerException;
|
|
399
|
-
var
|
|
400
|
-
|
|
401
|
-
|
|
434
|
+
var FlowInputContent;
|
|
435
|
+
((FlowInputContent2) => {
|
|
436
|
+
FlowInputContent2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
437
|
+
if (value.document !== void 0)
|
|
438
|
+
return visitor.document(value.document);
|
|
439
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
440
|
+
}, "visit");
|
|
441
|
+
})(FlowInputContent || (FlowInputContent = {}));
|
|
442
|
+
var FlowCompletionReason = {
|
|
443
|
+
SUCCESS: "SUCCESS"
|
|
402
444
|
};
|
|
403
|
-
var
|
|
404
|
-
((
|
|
405
|
-
|
|
406
|
-
if (value.
|
|
407
|
-
return visitor.
|
|
408
|
-
if (value.functionResult !== void 0)
|
|
409
|
-
return visitor.functionResult(value.functionResult);
|
|
445
|
+
var FlowOutputContent;
|
|
446
|
+
((FlowOutputContent3) => {
|
|
447
|
+
FlowOutputContent3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
448
|
+
if (value.document !== void 0)
|
|
449
|
+
return visitor.document(value.document);
|
|
410
450
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
411
451
|
}, "visit");
|
|
412
|
-
})(
|
|
413
|
-
var
|
|
414
|
-
|
|
452
|
+
})(FlowOutputContent || (FlowOutputContent = {}));
|
|
453
|
+
var NodeType = {
|
|
454
|
+
CONDITION_NODE: "ConditionNode",
|
|
455
|
+
FLOW_INPUT_NODE: "FlowInputNode",
|
|
456
|
+
FLOW_OUTPUT_NODE: "FlowOutputNode",
|
|
457
|
+
KNOWLEDGE_BASE_NODE: "KnowledgeBaseNode",
|
|
458
|
+
LAMBDA_FUNCTION_NODE: "LambdaFunctionNode",
|
|
459
|
+
LEX_NODE: "LexNode",
|
|
460
|
+
PROMPT_NODE: "PromptNode"
|
|
415
461
|
};
|
|
416
462
|
var _ResourceNotFoundException = class _ResourceNotFoundException extends BedrockAgentRuntimeServiceException {
|
|
417
463
|
/**
|
|
@@ -430,16 +476,6 @@ var _ResourceNotFoundException = class _ResourceNotFoundException extends Bedroc
|
|
|
430
476
|
};
|
|
431
477
|
__name(_ResourceNotFoundException, "ResourceNotFoundException");
|
|
432
478
|
var ResourceNotFoundException = _ResourceNotFoundException;
|
|
433
|
-
var InvocationInputMember;
|
|
434
|
-
((InvocationInputMember2) => {
|
|
435
|
-
InvocationInputMember2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
436
|
-
if (value.apiInvocationInput !== void 0)
|
|
437
|
-
return visitor.apiInvocationInput(value.apiInvocationInput);
|
|
438
|
-
if (value.functionInvocationInput !== void 0)
|
|
439
|
-
return visitor.functionInvocationInput(value.functionInvocationInput);
|
|
440
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
441
|
-
}, "visit");
|
|
442
|
-
})(InvocationInputMember || (InvocationInputMember = {}));
|
|
443
479
|
var _ServiceQuotaExceededException = class _ServiceQuotaExceededException extends BedrockAgentRuntimeServiceException {
|
|
444
480
|
/**
|
|
445
481
|
* @internal
|
|
@@ -474,6 +510,94 @@ var _ThrottlingException = class _ThrottlingException extends BedrockAgentRuntim
|
|
|
474
510
|
};
|
|
475
511
|
__name(_ThrottlingException, "ThrottlingException");
|
|
476
512
|
var ThrottlingException = _ThrottlingException;
|
|
513
|
+
var _ValidationException = class _ValidationException extends BedrockAgentRuntimeServiceException {
|
|
514
|
+
/**
|
|
515
|
+
* @internal
|
|
516
|
+
*/
|
|
517
|
+
constructor(opts) {
|
|
518
|
+
super({
|
|
519
|
+
name: "ValidationException",
|
|
520
|
+
$fault: "client",
|
|
521
|
+
...opts
|
|
522
|
+
});
|
|
523
|
+
this.name = "ValidationException";
|
|
524
|
+
this.$fault = "client";
|
|
525
|
+
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
526
|
+
}
|
|
527
|
+
};
|
|
528
|
+
__name(_ValidationException, "ValidationException");
|
|
529
|
+
var ValidationException = _ValidationException;
|
|
530
|
+
var FlowResponseStream;
|
|
531
|
+
((FlowResponseStream3) => {
|
|
532
|
+
FlowResponseStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
533
|
+
if (value.flowOutputEvent !== void 0)
|
|
534
|
+
return visitor.flowOutputEvent(value.flowOutputEvent);
|
|
535
|
+
if (value.flowCompletionEvent !== void 0)
|
|
536
|
+
return visitor.flowCompletionEvent(value.flowCompletionEvent);
|
|
537
|
+
if (value.internalServerException !== void 0)
|
|
538
|
+
return visitor.internalServerException(value.internalServerException);
|
|
539
|
+
if (value.validationException !== void 0)
|
|
540
|
+
return visitor.validationException(value.validationException);
|
|
541
|
+
if (value.resourceNotFoundException !== void 0)
|
|
542
|
+
return visitor.resourceNotFoundException(value.resourceNotFoundException);
|
|
543
|
+
if (value.serviceQuotaExceededException !== void 0)
|
|
544
|
+
return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
|
|
545
|
+
if (value.throttlingException !== void 0)
|
|
546
|
+
return visitor.throttlingException(value.throttlingException);
|
|
547
|
+
if (value.accessDeniedException !== void 0)
|
|
548
|
+
return visitor.accessDeniedException(value.accessDeniedException);
|
|
549
|
+
if (value.conflictException !== void 0)
|
|
550
|
+
return visitor.conflictException(value.conflictException);
|
|
551
|
+
if (value.dependencyFailedException !== void 0)
|
|
552
|
+
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
553
|
+
if (value.badGatewayException !== void 0)
|
|
554
|
+
return visitor.badGatewayException(value.badGatewayException);
|
|
555
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
556
|
+
}, "visit");
|
|
557
|
+
})(FlowResponseStream || (FlowResponseStream = {}));
|
|
558
|
+
var FileSourceType = {
|
|
559
|
+
BYTE_CONTENT: "BYTE_CONTENT",
|
|
560
|
+
S3: "S3"
|
|
561
|
+
};
|
|
562
|
+
var FileUseCase = {
|
|
563
|
+
CHAT: "CHAT",
|
|
564
|
+
CODE_INTERPRETER: "CODE_INTERPRETER"
|
|
565
|
+
};
|
|
566
|
+
var SearchType = {
|
|
567
|
+
HYBRID: "HYBRID",
|
|
568
|
+
SEMANTIC: "SEMANTIC"
|
|
569
|
+
};
|
|
570
|
+
var ResponseState = {
|
|
571
|
+
FAILURE: "FAILURE",
|
|
572
|
+
REPROMPT: "REPROMPT"
|
|
573
|
+
};
|
|
574
|
+
var InvocationResultMember;
|
|
575
|
+
((InvocationResultMember3) => {
|
|
576
|
+
InvocationResultMember3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
577
|
+
if (value.apiResult !== void 0)
|
|
578
|
+
return visitor.apiResult(value.apiResult);
|
|
579
|
+
if (value.functionResult !== void 0)
|
|
580
|
+
return visitor.functionResult(value.functionResult);
|
|
581
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
582
|
+
}, "visit");
|
|
583
|
+
})(InvocationResultMember || (InvocationResultMember = {}));
|
|
584
|
+
var RetrievalResultLocationType = {
|
|
585
|
+
CONFLUENCE: "CONFLUENCE",
|
|
586
|
+
S3: "S3",
|
|
587
|
+
SALESFORCE: "SALESFORCE",
|
|
588
|
+
SHAREPOINT: "SHAREPOINT",
|
|
589
|
+
WEB: "WEB"
|
|
590
|
+
};
|
|
591
|
+
var InvocationInputMember;
|
|
592
|
+
((InvocationInputMember2) => {
|
|
593
|
+
InvocationInputMember2.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
594
|
+
if (value.apiInvocationInput !== void 0)
|
|
595
|
+
return visitor.apiInvocationInput(value.apiInvocationInput);
|
|
596
|
+
if (value.functionInvocationInput !== void 0)
|
|
597
|
+
return visitor.functionInvocationInput(value.functionInvocationInput);
|
|
598
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
599
|
+
}, "visit");
|
|
600
|
+
})(InvocationInputMember || (InvocationInputMember = {}));
|
|
477
601
|
var GuardrailAction = {
|
|
478
602
|
INTERVENED: "INTERVENED",
|
|
479
603
|
NONE: "NONE"
|
|
@@ -546,6 +670,7 @@ var GuardrailManagedWordType = {
|
|
|
546
670
|
};
|
|
547
671
|
var InvocationType = {
|
|
548
672
|
ACTION_GROUP: "ACTION_GROUP",
|
|
673
|
+
ACTION_GROUP_CODE_INTERPRETER: "ACTION_GROUP_CODE_INTERPRETER",
|
|
549
674
|
FINISH: "FINISH",
|
|
550
675
|
KNOWLEDGE_BASE: "KNOWLEDGE_BASE"
|
|
551
676
|
};
|
|
@@ -621,23 +746,6 @@ var Trace;
|
|
|
621
746
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
622
747
|
}, "visit");
|
|
623
748
|
})(Trace || (Trace = {}));
|
|
624
|
-
var _ValidationException = class _ValidationException extends BedrockAgentRuntimeServiceException {
|
|
625
|
-
/**
|
|
626
|
-
* @internal
|
|
627
|
-
*/
|
|
628
|
-
constructor(opts) {
|
|
629
|
-
super({
|
|
630
|
-
name: "ValidationException",
|
|
631
|
-
$fault: "client",
|
|
632
|
-
...opts
|
|
633
|
-
});
|
|
634
|
-
this.name = "ValidationException";
|
|
635
|
-
this.$fault = "client";
|
|
636
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
637
|
-
}
|
|
638
|
-
};
|
|
639
|
-
__name(_ValidationException, "ValidationException");
|
|
640
|
-
var ValidationException = _ValidationException;
|
|
641
749
|
var ResponseStream;
|
|
642
750
|
((ResponseStream3) => {
|
|
643
751
|
ResponseStream3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
@@ -665,16 +773,28 @@ var ResponseStream;
|
|
|
665
773
|
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
666
774
|
if (value.badGatewayException !== void 0)
|
|
667
775
|
return visitor.badGatewayException(value.badGatewayException);
|
|
776
|
+
if (value.files !== void 0)
|
|
777
|
+
return visitor.files(value.files);
|
|
668
778
|
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
669
779
|
}, "visit");
|
|
670
780
|
})(ResponseStream || (ResponseStream = {}));
|
|
781
|
+
var MemoryType = {
|
|
782
|
+
SESSION_SUMMARY: "SESSION_SUMMARY"
|
|
783
|
+
};
|
|
784
|
+
var Memory;
|
|
785
|
+
((Memory3) => {
|
|
786
|
+
Memory3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
787
|
+
if (value.sessionSummary !== void 0)
|
|
788
|
+
return visitor.sessionSummary(value.sessionSummary);
|
|
789
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
790
|
+
}, "visit");
|
|
791
|
+
})(Memory || (Memory = {}));
|
|
671
792
|
var ExternalSourceType = {
|
|
672
793
|
BYTE_CONTENT: "BYTE_CONTENT",
|
|
673
794
|
S3: "S3"
|
|
674
795
|
};
|
|
675
|
-
var
|
|
676
|
-
|
|
677
|
-
SEMANTIC: "SEMANTIC"
|
|
796
|
+
var QueryTransformationType = {
|
|
797
|
+
QUERY_DECOMPOSITION: "QUERY_DECOMPOSITION"
|
|
678
798
|
};
|
|
679
799
|
var RetrieveAndGenerateType = {
|
|
680
800
|
EXTERNAL_SOURCES: "EXTERNAL_SOURCES",
|
|
@@ -727,6 +847,69 @@ var ActionGroupInvocationOutputFilterSensitiveLog = /* @__PURE__ */ __name((obj)
|
|
|
727
847
|
...obj,
|
|
728
848
|
...obj.text && { text: import_smithy_client.SENSITIVE_STRING }
|
|
729
849
|
}), "ActionGroupInvocationOutputFilterSensitiveLog");
|
|
850
|
+
var FlowInputContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
851
|
+
if (obj.document !== void 0)
|
|
852
|
+
return { document: obj.document };
|
|
853
|
+
if (obj.$unknown !== void 0)
|
|
854
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
855
|
+
}, "FlowInputContentFilterSensitiveLog");
|
|
856
|
+
var FlowInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
857
|
+
...obj,
|
|
858
|
+
...obj.content && { content: import_smithy_client.SENSITIVE_STRING }
|
|
859
|
+
}), "FlowInputFilterSensitiveLog");
|
|
860
|
+
var InvokeFlowRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
861
|
+
...obj,
|
|
862
|
+
...obj.inputs && { inputs: obj.inputs.map((item) => FlowInputFilterSensitiveLog(item)) }
|
|
863
|
+
}), "InvokeFlowRequestFilterSensitiveLog");
|
|
864
|
+
var FlowCompletionEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
865
|
+
...obj
|
|
866
|
+
}), "FlowCompletionEventFilterSensitiveLog");
|
|
867
|
+
var FlowOutputEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
868
|
+
...obj,
|
|
869
|
+
...obj.content && { content: obj.content }
|
|
870
|
+
}), "FlowOutputEventFilterSensitiveLog");
|
|
871
|
+
var FlowResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
872
|
+
if (obj.flowOutputEvent !== void 0)
|
|
873
|
+
return { flowOutputEvent: import_smithy_client.SENSITIVE_STRING };
|
|
874
|
+
if (obj.flowCompletionEvent !== void 0)
|
|
875
|
+
return { flowCompletionEvent: import_smithy_client.SENSITIVE_STRING };
|
|
876
|
+
if (obj.internalServerException !== void 0)
|
|
877
|
+
return { internalServerException: obj.internalServerException };
|
|
878
|
+
if (obj.validationException !== void 0)
|
|
879
|
+
return { validationException: obj.validationException };
|
|
880
|
+
if (obj.resourceNotFoundException !== void 0)
|
|
881
|
+
return { resourceNotFoundException: obj.resourceNotFoundException };
|
|
882
|
+
if (obj.serviceQuotaExceededException !== void 0)
|
|
883
|
+
return { serviceQuotaExceededException: obj.serviceQuotaExceededException };
|
|
884
|
+
if (obj.throttlingException !== void 0)
|
|
885
|
+
return { throttlingException: obj.throttlingException };
|
|
886
|
+
if (obj.accessDeniedException !== void 0)
|
|
887
|
+
return { accessDeniedException: obj.accessDeniedException };
|
|
888
|
+
if (obj.conflictException !== void 0)
|
|
889
|
+
return { conflictException: obj.conflictException };
|
|
890
|
+
if (obj.dependencyFailedException !== void 0)
|
|
891
|
+
return { dependencyFailedException: obj.dependencyFailedException };
|
|
892
|
+
if (obj.badGatewayException !== void 0)
|
|
893
|
+
return { badGatewayException: obj.badGatewayException };
|
|
894
|
+
if (obj.$unknown !== void 0)
|
|
895
|
+
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
896
|
+
}, "FlowResponseStreamFilterSensitiveLog");
|
|
897
|
+
var InvokeFlowResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
898
|
+
...obj,
|
|
899
|
+
...obj.responseStream && { responseStream: "STREAMING_CONTENT" }
|
|
900
|
+
}), "InvokeFlowResponseFilterSensitiveLog");
|
|
901
|
+
var ByteContentFileFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
902
|
+
...obj,
|
|
903
|
+
...obj.data && { data: import_smithy_client.SENSITIVE_STRING }
|
|
904
|
+
}), "ByteContentFileFilterSensitiveLog");
|
|
905
|
+
var FileSourceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
906
|
+
...obj,
|
|
907
|
+
...obj.byteContent && { byteContent: ByteContentFileFilterSensitiveLog(obj.byteContent) }
|
|
908
|
+
}), "FileSourceFilterSensitiveLog");
|
|
909
|
+
var InputFileFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
910
|
+
...obj,
|
|
911
|
+
...obj.source && { source: FileSourceFilterSensitiveLog(obj.source) }
|
|
912
|
+
}), "InputFileFilterSensitiveLog");
|
|
730
913
|
var ApiResultFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
731
914
|
...obj,
|
|
732
915
|
...obj.apiPath && { apiPath: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -739,19 +922,6 @@ var InvocationResultMemberFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
|
739
922
|
if (obj.$unknown !== void 0)
|
|
740
923
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
741
924
|
}, "InvocationResultMemberFilterSensitiveLog");
|
|
742
|
-
var SessionStateFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
743
|
-
...obj,
|
|
744
|
-
...obj.returnControlInvocationResults && {
|
|
745
|
-
returnControlInvocationResults: obj.returnControlInvocationResults.map(
|
|
746
|
-
(item) => InvocationResultMemberFilterSensitiveLog(item)
|
|
747
|
-
)
|
|
748
|
-
}
|
|
749
|
-
}), "SessionStateFilterSensitiveLog");
|
|
750
|
-
var InvokeAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
751
|
-
...obj,
|
|
752
|
-
...obj.sessionState && { sessionState: SessionStateFilterSensitiveLog(obj.sessionState) },
|
|
753
|
-
...obj.inputText && { inputText: import_smithy_client.SENSITIVE_STRING }
|
|
754
|
-
}), "InvokeAgentRequestFilterSensitiveLog");
|
|
755
925
|
var TextResponsePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
756
926
|
...obj
|
|
757
927
|
}), "TextResponsePartFilterSensitiveLog");
|
|
@@ -789,6 +959,14 @@ var PayloadPartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
|
789
959
|
...obj.bytes && { bytes: import_smithy_client.SENSITIVE_STRING },
|
|
790
960
|
...obj.attribution && { attribution: AttributionFilterSensitiveLog(obj.attribution) }
|
|
791
961
|
}), "PayloadPartFilterSensitiveLog");
|
|
962
|
+
var OutputFileFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
963
|
+
...obj,
|
|
964
|
+
...obj.bytes && { bytes: import_smithy_client.SENSITIVE_STRING }
|
|
965
|
+
}), "OutputFileFilterSensitiveLog");
|
|
966
|
+
var FilePartFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
967
|
+
...obj,
|
|
968
|
+
...obj.files && { files: import_smithy_client.SENSITIVE_STRING }
|
|
969
|
+
}), "FilePartFilterSensitiveLog");
|
|
792
970
|
var ApiInvocationInputFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
793
971
|
...obj,
|
|
794
972
|
...obj.apiPath && { apiPath: import_smithy_client.SENSITIVE_STRING }
|
|
@@ -993,6 +1171,8 @@ var ResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
|
|
|
993
1171
|
return { dependencyFailedException: obj.dependencyFailedException };
|
|
994
1172
|
if (obj.badGatewayException !== void 0)
|
|
995
1173
|
return { badGatewayException: obj.badGatewayException };
|
|
1174
|
+
if (obj.files !== void 0)
|
|
1175
|
+
return { files: FilePartFilterSensitiveLog(obj.files) };
|
|
996
1176
|
if (obj.$unknown !== void 0)
|
|
997
1177
|
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
998
1178
|
}, "ResponseStreamFilterSensitiveLog");
|
|
@@ -1092,6 +1272,12 @@ var KnowledgeBaseRetrievalConfigurationFilterSensitiveLog = /* @__PURE__ */ __na
|
|
|
1092
1272
|
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog(obj.vectorSearchConfiguration)
|
|
1093
1273
|
}
|
|
1094
1274
|
}), "KnowledgeBaseRetrievalConfigurationFilterSensitiveLog");
|
|
1275
|
+
var KnowledgeBaseConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1276
|
+
...obj,
|
|
1277
|
+
...obj.retrievalConfiguration && {
|
|
1278
|
+
retrievalConfiguration: KnowledgeBaseRetrievalConfigurationFilterSensitiveLog(obj.retrievalConfiguration)
|
|
1279
|
+
}
|
|
1280
|
+
}), "KnowledgeBaseConfigurationFilterSensitiveLog");
|
|
1095
1281
|
var KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1096
1282
|
...obj,
|
|
1097
1283
|
...obj.retrievalConfiguration && {
|
|
@@ -1130,11 +1316,56 @@ var RetrieveAndGenerateRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj)
|
|
|
1130
1316
|
)
|
|
1131
1317
|
}
|
|
1132
1318
|
}), "RetrieveAndGenerateRequestFilterSensitiveLog");
|
|
1319
|
+
var SessionStateFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1320
|
+
...obj,
|
|
1321
|
+
...obj.returnControlInvocationResults && {
|
|
1322
|
+
returnControlInvocationResults: obj.returnControlInvocationResults.map(
|
|
1323
|
+
(item) => InvocationResultMemberFilterSensitiveLog(item)
|
|
1324
|
+
)
|
|
1325
|
+
},
|
|
1326
|
+
...obj.files && { files: obj.files.map((item) => InputFileFilterSensitiveLog(item)) },
|
|
1327
|
+
...obj.knowledgeBaseConfigurations && {
|
|
1328
|
+
knowledgeBaseConfigurations: obj.knowledgeBaseConfigurations.map(
|
|
1329
|
+
(item) => KnowledgeBaseConfigurationFilterSensitiveLog(item)
|
|
1330
|
+
)
|
|
1331
|
+
}
|
|
1332
|
+
}), "SessionStateFilterSensitiveLog");
|
|
1333
|
+
var InvokeAgentRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
1334
|
+
...obj,
|
|
1335
|
+
...obj.sessionState && { sessionState: SessionStateFilterSensitiveLog(obj.sessionState) },
|
|
1336
|
+
...obj.inputText && { inputText: import_smithy_client.SENSITIVE_STRING }
|
|
1337
|
+
}), "InvokeAgentRequestFilterSensitiveLog");
|
|
1133
1338
|
|
|
1134
1339
|
// src/protocols/Aws_restJson1.ts
|
|
1135
|
-
var
|
|
1136
|
-
|
|
1137
|
-
|
|
1340
|
+
var se_DeleteAgentMemoryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1341
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1342
|
+
const headers = {};
|
|
1343
|
+
b.bp("/agents/{agentId}/agentAliases/{agentAliasId}/memories");
|
|
1344
|
+
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
1345
|
+
b.p("agentAliasId", () => input.agentAliasId, "{agentAliasId}", false);
|
|
1346
|
+
const query = (0, import_smithy_client.map)({
|
|
1347
|
+
[_mI]: [, input[_mI]]
|
|
1348
|
+
});
|
|
1349
|
+
let body;
|
|
1350
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
1351
|
+
return b.build();
|
|
1352
|
+
}, "se_DeleteAgentMemoryCommand");
|
|
1353
|
+
var se_GetAgentMemoryCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1354
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1355
|
+
const headers = {};
|
|
1356
|
+
b.bp("/agents/{agentId}/agentAliases/{agentAliasId}/memories");
|
|
1357
|
+
b.p("agentId", () => input.agentId, "{agentId}", false);
|
|
1358
|
+
b.p("agentAliasId", () => input.agentAliasId, "{agentAliasId}", false);
|
|
1359
|
+
const query = (0, import_smithy_client.map)({
|
|
1360
|
+
[_nT]: [, input[_nT]],
|
|
1361
|
+
[_mIa]: [() => input.maxItems !== void 0, () => input[_mIa].toString()],
|
|
1362
|
+
[_mT]: [, (0, import_smithy_client.expectNonNull)(input[_mT], `memoryType`)],
|
|
1363
|
+
[_mI]: [, (0, import_smithy_client.expectNonNull)(input[_mI], `memoryId`)]
|
|
1364
|
+
});
|
|
1365
|
+
let body;
|
|
1366
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
1367
|
+
return b.build();
|
|
1368
|
+
}, "se_GetAgentMemoryCommand");
|
|
1138
1369
|
var se_InvokeAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1139
1370
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1140
1371
|
const headers = {
|
|
@@ -1150,12 +1381,30 @@ var se_InvokeAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
|
1150
1381
|
enableTrace: [],
|
|
1151
1382
|
endSession: [],
|
|
1152
1383
|
inputText: [],
|
|
1153
|
-
|
|
1384
|
+
memoryId: [],
|
|
1385
|
+
sessionState: (_) => se_SessionState(_, context)
|
|
1154
1386
|
})
|
|
1155
1387
|
);
|
|
1156
1388
|
b.m("POST").h(headers).b(body);
|
|
1157
1389
|
return b.build();
|
|
1158
1390
|
}, "se_InvokeAgentCommand");
|
|
1391
|
+
var se_InvokeFlowCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1392
|
+
const b = (0, import_core.requestBuilder)(input, context);
|
|
1393
|
+
const headers = {
|
|
1394
|
+
"content-type": "application/json"
|
|
1395
|
+
};
|
|
1396
|
+
b.bp("/flows/{flowIdentifier}/aliases/{flowAliasIdentifier}");
|
|
1397
|
+
b.p("flowIdentifier", () => input.flowIdentifier, "{flowIdentifier}", false);
|
|
1398
|
+
b.p("flowAliasIdentifier", () => input.flowAliasIdentifier, "{flowAliasIdentifier}", false);
|
|
1399
|
+
let body;
|
|
1400
|
+
body = JSON.stringify(
|
|
1401
|
+
(0, import_smithy_client.take)(input, {
|
|
1402
|
+
inputs: (_) => se_FlowInputs(_, context)
|
|
1403
|
+
})
|
|
1404
|
+
);
|
|
1405
|
+
b.m("POST").h(headers).b(body);
|
|
1406
|
+
return b.build();
|
|
1407
|
+
}, "se_InvokeFlowCommand");
|
|
1159
1408
|
var se_RetrieveCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1160
1409
|
const b = (0, import_core.requestBuilder)(input, context);
|
|
1161
1410
|
const headers = {
|
|
@@ -1192,6 +1441,31 @@ var se_RetrieveAndGenerateCommand = /* @__PURE__ */ __name(async (input, context
|
|
|
1192
1441
|
b.m("POST").h(headers).b(body);
|
|
1193
1442
|
return b.build();
|
|
1194
1443
|
}, "se_RetrieveAndGenerateCommand");
|
|
1444
|
+
var de_DeleteAgentMemoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1445
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1446
|
+
return de_CommandError(output, context);
|
|
1447
|
+
}
|
|
1448
|
+
const contents = (0, import_smithy_client.map)({
|
|
1449
|
+
$metadata: deserializeMetadata(output)
|
|
1450
|
+
});
|
|
1451
|
+
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1452
|
+
return contents;
|
|
1453
|
+
}, "de_DeleteAgentMemoryCommand");
|
|
1454
|
+
var de_GetAgentMemoryCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1455
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1456
|
+
return de_CommandError(output, context);
|
|
1457
|
+
}
|
|
1458
|
+
const contents = (0, import_smithy_client.map)({
|
|
1459
|
+
$metadata: deserializeMetadata(output)
|
|
1460
|
+
});
|
|
1461
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1462
|
+
const doc = (0, import_smithy_client.take)(data, {
|
|
1463
|
+
memoryContents: (_) => de_Memories(_, context),
|
|
1464
|
+
nextToken: import_smithy_client.expectString
|
|
1465
|
+
});
|
|
1466
|
+
Object.assign(contents, doc);
|
|
1467
|
+
return contents;
|
|
1468
|
+
}, "de_GetAgentMemoryCommand");
|
|
1195
1469
|
var de_InvokeAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1196
1470
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1197
1471
|
return de_CommandError(output, context);
|
|
@@ -1199,12 +1473,24 @@ var de_InvokeAgentCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1199
1473
|
const contents = (0, import_smithy_client.map)({
|
|
1200
1474
|
$metadata: deserializeMetadata(output),
|
|
1201
1475
|
[_cT]: [, output.headers[_xabact]],
|
|
1202
|
-
[_sI]: [, output.headers[_xabasi]]
|
|
1476
|
+
[_sI]: [, output.headers[_xabasi]],
|
|
1477
|
+
[_mI]: [, output.headers[_xabami]]
|
|
1203
1478
|
});
|
|
1204
1479
|
const data = output.body;
|
|
1205
1480
|
contents.completion = de_ResponseStream(data, context);
|
|
1206
1481
|
return contents;
|
|
1207
1482
|
}, "de_InvokeAgentCommand");
|
|
1483
|
+
var de_InvokeFlowCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1484
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1485
|
+
return de_CommandError(output, context);
|
|
1486
|
+
}
|
|
1487
|
+
const contents = (0, import_smithy_client.map)({
|
|
1488
|
+
$metadata: deserializeMetadata(output)
|
|
1489
|
+
});
|
|
1490
|
+
const data = output.body;
|
|
1491
|
+
contents.responseStream = de_FlowResponseStream(data, context);
|
|
1492
|
+
return contents;
|
|
1493
|
+
}, "de_InvokeFlowCommand");
|
|
1208
1494
|
var de_RetrieveCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1209
1495
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1210
1496
|
return de_CommandError(output, context);
|
|
@@ -1400,6 +1686,75 @@ var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, cont
|
|
|
1400
1686
|
});
|
|
1401
1687
|
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1402
1688
|
}, "de_ValidationExceptionRes");
|
|
1689
|
+
var de_FlowResponseStream = /* @__PURE__ */ __name((output, context) => {
|
|
1690
|
+
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
1691
|
+
if (event["flowOutputEvent"] != null) {
|
|
1692
|
+
return {
|
|
1693
|
+
flowOutputEvent: await de_FlowOutputEvent_event(event["flowOutputEvent"], context)
|
|
1694
|
+
};
|
|
1695
|
+
}
|
|
1696
|
+
if (event["flowCompletionEvent"] != null) {
|
|
1697
|
+
return {
|
|
1698
|
+
flowCompletionEvent: await de_FlowCompletionEvent_event(event["flowCompletionEvent"], context)
|
|
1699
|
+
};
|
|
1700
|
+
}
|
|
1701
|
+
if (event["internalServerException"] != null) {
|
|
1702
|
+
return {
|
|
1703
|
+
internalServerException: await de_InternalServerException_event(event["internalServerException"], context)
|
|
1704
|
+
};
|
|
1705
|
+
}
|
|
1706
|
+
if (event["validationException"] != null) {
|
|
1707
|
+
return {
|
|
1708
|
+
validationException: await de_ValidationException_event(event["validationException"], context)
|
|
1709
|
+
};
|
|
1710
|
+
}
|
|
1711
|
+
if (event["resourceNotFoundException"] != null) {
|
|
1712
|
+
return {
|
|
1713
|
+
resourceNotFoundException: await de_ResourceNotFoundException_event(
|
|
1714
|
+
event["resourceNotFoundException"],
|
|
1715
|
+
context
|
|
1716
|
+
)
|
|
1717
|
+
};
|
|
1718
|
+
}
|
|
1719
|
+
if (event["serviceQuotaExceededException"] != null) {
|
|
1720
|
+
return {
|
|
1721
|
+
serviceQuotaExceededException: await de_ServiceQuotaExceededException_event(
|
|
1722
|
+
event["serviceQuotaExceededException"],
|
|
1723
|
+
context
|
|
1724
|
+
)
|
|
1725
|
+
};
|
|
1726
|
+
}
|
|
1727
|
+
if (event["throttlingException"] != null) {
|
|
1728
|
+
return {
|
|
1729
|
+
throttlingException: await de_ThrottlingException_event(event["throttlingException"], context)
|
|
1730
|
+
};
|
|
1731
|
+
}
|
|
1732
|
+
if (event["accessDeniedException"] != null) {
|
|
1733
|
+
return {
|
|
1734
|
+
accessDeniedException: await de_AccessDeniedException_event(event["accessDeniedException"], context)
|
|
1735
|
+
};
|
|
1736
|
+
}
|
|
1737
|
+
if (event["conflictException"] != null) {
|
|
1738
|
+
return {
|
|
1739
|
+
conflictException: await de_ConflictException_event(event["conflictException"], context)
|
|
1740
|
+
};
|
|
1741
|
+
}
|
|
1742
|
+
if (event["dependencyFailedException"] != null) {
|
|
1743
|
+
return {
|
|
1744
|
+
dependencyFailedException: await de_DependencyFailedException_event(
|
|
1745
|
+
event["dependencyFailedException"],
|
|
1746
|
+
context
|
|
1747
|
+
)
|
|
1748
|
+
};
|
|
1749
|
+
}
|
|
1750
|
+
if (event["badGatewayException"] != null) {
|
|
1751
|
+
return {
|
|
1752
|
+
badGatewayException: await de_BadGatewayException_event(event["badGatewayException"], context)
|
|
1753
|
+
};
|
|
1754
|
+
}
|
|
1755
|
+
return { $unknown: output };
|
|
1756
|
+
});
|
|
1757
|
+
}, "de_FlowResponseStream");
|
|
1403
1758
|
var de_ResponseStream = /* @__PURE__ */ __name((output, context) => {
|
|
1404
1759
|
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
1405
1760
|
if (event["chunk"] != null) {
|
|
@@ -1471,6 +1826,11 @@ var de_ResponseStream = /* @__PURE__ */ __name((output, context) => {
|
|
|
1471
1826
|
badGatewayException: await de_BadGatewayException_event(event["badGatewayException"], context)
|
|
1472
1827
|
};
|
|
1473
1828
|
}
|
|
1829
|
+
if (event["files"] != null) {
|
|
1830
|
+
return {
|
|
1831
|
+
files: await de_FilePart_event(event["files"], context)
|
|
1832
|
+
};
|
|
1833
|
+
}
|
|
1474
1834
|
return { $unknown: output };
|
|
1475
1835
|
});
|
|
1476
1836
|
}, "de_ResponseStream");
|
|
@@ -1502,6 +1862,24 @@ var de_DependencyFailedException_event = /* @__PURE__ */ __name(async (output, c
|
|
|
1502
1862
|
};
|
|
1503
1863
|
return de_DependencyFailedExceptionRes(parsedOutput, context);
|
|
1504
1864
|
}, "de_DependencyFailedException_event");
|
|
1865
|
+
var de_FilePart_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1866
|
+
const contents = {};
|
|
1867
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1868
|
+
Object.assign(contents, de_FilePart(data, context));
|
|
1869
|
+
return contents;
|
|
1870
|
+
}, "de_FilePart_event");
|
|
1871
|
+
var de_FlowCompletionEvent_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1872
|
+
const contents = {};
|
|
1873
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1874
|
+
Object.assign(contents, (0, import_smithy_client._json)(data));
|
|
1875
|
+
return contents;
|
|
1876
|
+
}, "de_FlowCompletionEvent_event");
|
|
1877
|
+
var de_FlowOutputEvent_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1878
|
+
const contents = {};
|
|
1879
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1880
|
+
Object.assign(contents, de_FlowOutputEvent(data, context));
|
|
1881
|
+
return contents;
|
|
1882
|
+
}, "de_FlowOutputEvent_event");
|
|
1505
1883
|
var de_InternalServerException_event = /* @__PURE__ */ __name(async (output, context) => {
|
|
1506
1884
|
const parsedOutput = {
|
|
1507
1885
|
...output,
|
|
@@ -1574,6 +1952,12 @@ var se_ByteContentDoc = /* @__PURE__ */ __name((input, context) => {
|
|
|
1574
1952
|
identifier: []
|
|
1575
1953
|
});
|
|
1576
1954
|
}, "se_ByteContentDoc");
|
|
1955
|
+
var se_ByteContentFile = /* @__PURE__ */ __name((input, context) => {
|
|
1956
|
+
return (0, import_smithy_client.take)(input, {
|
|
1957
|
+
data: context.base64Encoder,
|
|
1958
|
+
mediaType: []
|
|
1959
|
+
});
|
|
1960
|
+
}, "se_ByteContentFile");
|
|
1577
1961
|
var se_ExternalSource = /* @__PURE__ */ __name((input, context) => {
|
|
1578
1962
|
return (0, import_smithy_client.take)(input, {
|
|
1579
1963
|
byteContent: (_) => se_ByteContentDoc(_, context),
|
|
@@ -1601,6 +1985,13 @@ var se_ExternalSourcesRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name(
|
|
|
1601
1985
|
sources: (_) => se_ExternalSources(_, context)
|
|
1602
1986
|
});
|
|
1603
1987
|
}, "se_ExternalSourcesRetrieveAndGenerateConfiguration");
|
|
1988
|
+
var se_FileSource = /* @__PURE__ */ __name((input, context) => {
|
|
1989
|
+
return (0, import_smithy_client.take)(input, {
|
|
1990
|
+
byteContent: (_) => se_ByteContentFile(_, context),
|
|
1991
|
+
s3Location: import_smithy_client._json,
|
|
1992
|
+
sourceType: []
|
|
1993
|
+
});
|
|
1994
|
+
}, "se_FileSource");
|
|
1604
1995
|
var se_FilterAttribute = /* @__PURE__ */ __name((input, context) => {
|
|
1605
1996
|
return (0, import_smithy_client.take)(input, {
|
|
1606
1997
|
key: [],
|
|
@@ -1610,6 +2001,24 @@ var se_FilterAttribute = /* @__PURE__ */ __name((input, context) => {
|
|
|
1610
2001
|
var se_FilterValue = /* @__PURE__ */ __name((input, context) => {
|
|
1611
2002
|
return input;
|
|
1612
2003
|
}, "se_FilterValue");
|
|
2004
|
+
var se_FlowInput = /* @__PURE__ */ __name((input, context) => {
|
|
2005
|
+
return (0, import_smithy_client.take)(input, {
|
|
2006
|
+
content: (_) => se_FlowInputContent(_, context),
|
|
2007
|
+
nodeName: [],
|
|
2008
|
+
nodeOutputName: []
|
|
2009
|
+
});
|
|
2010
|
+
}, "se_FlowInput");
|
|
2011
|
+
var se_FlowInputContent = /* @__PURE__ */ __name((input, context) => {
|
|
2012
|
+
return FlowInputContent.visit(input, {
|
|
2013
|
+
document: (value) => ({ document: se_Document(value, context) }),
|
|
2014
|
+
_: (name, value) => ({ name: value })
|
|
2015
|
+
});
|
|
2016
|
+
}, "se_FlowInputContent");
|
|
2017
|
+
var se_FlowInputs = /* @__PURE__ */ __name((input, context) => {
|
|
2018
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
2019
|
+
return se_FlowInput(entry, context);
|
|
2020
|
+
});
|
|
2021
|
+
}, "se_FlowInputs");
|
|
1613
2022
|
var se_GenerationConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
1614
2023
|
return (0, import_smithy_client.take)(input, {
|
|
1615
2024
|
additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
|
|
@@ -1623,6 +2032,29 @@ var se_InferenceConfig = /* @__PURE__ */ __name((input, context) => {
|
|
|
1623
2032
|
textInferenceConfig: (_) => se_TextInferenceConfig(_, context)
|
|
1624
2033
|
});
|
|
1625
2034
|
}, "se_InferenceConfig");
|
|
2035
|
+
var se_InputFile = /* @__PURE__ */ __name((input, context) => {
|
|
2036
|
+
return (0, import_smithy_client.take)(input, {
|
|
2037
|
+
name: [],
|
|
2038
|
+
source: (_) => se_FileSource(_, context),
|
|
2039
|
+
useCase: []
|
|
2040
|
+
});
|
|
2041
|
+
}, "se_InputFile");
|
|
2042
|
+
var se_InputFiles = /* @__PURE__ */ __name((input, context) => {
|
|
2043
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
2044
|
+
return se_InputFile(entry, context);
|
|
2045
|
+
});
|
|
2046
|
+
}, "se_InputFiles");
|
|
2047
|
+
var se_KnowledgeBaseConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
2048
|
+
return (0, import_smithy_client.take)(input, {
|
|
2049
|
+
knowledgeBaseId: [],
|
|
2050
|
+
retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
2051
|
+
});
|
|
2052
|
+
}, "se_KnowledgeBaseConfiguration");
|
|
2053
|
+
var se_KnowledgeBaseConfigurations = /* @__PURE__ */ __name((input, context) => {
|
|
2054
|
+
return input.filter((e) => e != null).map((entry) => {
|
|
2055
|
+
return se_KnowledgeBaseConfiguration(entry, context);
|
|
2056
|
+
});
|
|
2057
|
+
}, "se_KnowledgeBaseConfigurations");
|
|
1626
2058
|
var se_KnowledgeBaseRetrievalConfiguration = /* @__PURE__ */ __name((input, context) => {
|
|
1627
2059
|
return (0, import_smithy_client.take)(input, {
|
|
1628
2060
|
vectorSearchConfiguration: (_) => se_KnowledgeBaseVectorSearchConfiguration(_, context)
|
|
@@ -1633,6 +2065,7 @@ var se_KnowledgeBaseRetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((i
|
|
|
1633
2065
|
generationConfiguration: (_) => se_GenerationConfiguration(_, context),
|
|
1634
2066
|
knowledgeBaseId: [],
|
|
1635
2067
|
modelArn: [],
|
|
2068
|
+
orchestrationConfiguration: import_smithy_client._json,
|
|
1636
2069
|
retrievalConfiguration: (_) => se_KnowledgeBaseRetrievalConfiguration(_, context)
|
|
1637
2070
|
});
|
|
1638
2071
|
}, "se_KnowledgeBaseRetrieveAndGenerateConfiguration");
|
|
@@ -1673,6 +2106,16 @@ var se_RetrieveAndGenerateConfiguration = /* @__PURE__ */ __name((input, context
|
|
|
1673
2106
|
type: []
|
|
1674
2107
|
});
|
|
1675
2108
|
}, "se_RetrieveAndGenerateConfiguration");
|
|
2109
|
+
var se_SessionState = /* @__PURE__ */ __name((input, context) => {
|
|
2110
|
+
return (0, import_smithy_client.take)(input, {
|
|
2111
|
+
files: (_) => se_InputFiles(_, context),
|
|
2112
|
+
invocationId: [],
|
|
2113
|
+
knowledgeBaseConfigurations: (_) => se_KnowledgeBaseConfigurations(_, context),
|
|
2114
|
+
promptSessionAttributes: import_smithy_client._json,
|
|
2115
|
+
returnControlInvocationResults: import_smithy_client._json,
|
|
2116
|
+
sessionAttributes: import_smithy_client._json
|
|
2117
|
+
});
|
|
2118
|
+
}, "se_SessionState");
|
|
1676
2119
|
var se_TextInferenceConfig = /* @__PURE__ */ __name((input, context) => {
|
|
1677
2120
|
return (0, import_smithy_client.take)(input, {
|
|
1678
2121
|
maxTokens: [],
|
|
@@ -1681,6 +2124,9 @@ var se_TextInferenceConfig = /* @__PURE__ */ __name((input, context) => {
|
|
|
1681
2124
|
topP: import_smithy_client.serializeFloat
|
|
1682
2125
|
});
|
|
1683
2126
|
}, "se_TextInferenceConfig");
|
|
2127
|
+
var se_Document = /* @__PURE__ */ __name((input, context) => {
|
|
2128
|
+
return input;
|
|
2129
|
+
}, "se_Document");
|
|
1684
2130
|
var de_Attribution = /* @__PURE__ */ __name((output, context) => {
|
|
1685
2131
|
return (0, import_smithy_client.take)(output, {
|
|
1686
2132
|
citations: (_) => de_Citations(_, context)
|
|
@@ -1698,6 +2144,26 @@ var de_Citations = /* @__PURE__ */ __name((output, context) => {
|
|
|
1698
2144
|
});
|
|
1699
2145
|
return retVal;
|
|
1700
2146
|
}, "de_Citations");
|
|
2147
|
+
var de_FilePart = /* @__PURE__ */ __name((output, context) => {
|
|
2148
|
+
return (0, import_smithy_client.take)(output, {
|
|
2149
|
+
files: (_) => de_OutputFiles(_, context)
|
|
2150
|
+
});
|
|
2151
|
+
}, "de_FilePart");
|
|
2152
|
+
var de_FlowOutputContent = /* @__PURE__ */ __name((output, context) => {
|
|
2153
|
+
if (output.document != null) {
|
|
2154
|
+
return {
|
|
2155
|
+
document: de_Document(output.document, context)
|
|
2156
|
+
};
|
|
2157
|
+
}
|
|
2158
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2159
|
+
}, "de_FlowOutputContent");
|
|
2160
|
+
var de_FlowOutputEvent = /* @__PURE__ */ __name((output, context) => {
|
|
2161
|
+
return (0, import_smithy_client.take)(output, {
|
|
2162
|
+
content: (_) => de_FlowOutputContent((0, import_core2.awsExpectUnion)(_), context),
|
|
2163
|
+
nodeName: import_smithy_client.expectString,
|
|
2164
|
+
nodeType: import_smithy_client.expectString
|
|
2165
|
+
});
|
|
2166
|
+
}, "de_FlowOutputEvent");
|
|
1701
2167
|
var de_InferenceConfiguration = /* @__PURE__ */ __name((output, context) => {
|
|
1702
2168
|
return (0, import_smithy_client.take)(output, {
|
|
1703
2169
|
maximumLength: import_smithy_client.expectInt32,
|
|
@@ -1726,6 +2192,29 @@ var de_KnowledgeBaseRetrievalResults = /* @__PURE__ */ __name((output, context)
|
|
|
1726
2192
|
});
|
|
1727
2193
|
return retVal;
|
|
1728
2194
|
}, "de_KnowledgeBaseRetrievalResults");
|
|
2195
|
+
var de_Memories = /* @__PURE__ */ __name((output, context) => {
|
|
2196
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2197
|
+
return de_Memory((0, import_core2.awsExpectUnion)(entry), context);
|
|
2198
|
+
});
|
|
2199
|
+
return retVal;
|
|
2200
|
+
}, "de_Memories");
|
|
2201
|
+
var de_Memory = /* @__PURE__ */ __name((output, context) => {
|
|
2202
|
+
if (output.sessionSummary != null) {
|
|
2203
|
+
return {
|
|
2204
|
+
sessionSummary: de_MemorySessionSummary(output.sessionSummary, context)
|
|
2205
|
+
};
|
|
2206
|
+
}
|
|
2207
|
+
return { $unknown: Object.entries(output)[0] };
|
|
2208
|
+
}, "de_Memory");
|
|
2209
|
+
var de_MemorySessionSummary = /* @__PURE__ */ __name((output, context) => {
|
|
2210
|
+
return (0, import_smithy_client.take)(output, {
|
|
2211
|
+
memoryId: import_smithy_client.expectString,
|
|
2212
|
+
sessionExpiryTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2213
|
+
sessionId: import_smithy_client.expectString,
|
|
2214
|
+
sessionStartTime: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)),
|
|
2215
|
+
summaryText: import_smithy_client.expectString
|
|
2216
|
+
});
|
|
2217
|
+
}, "de_MemorySessionSummary");
|
|
1729
2218
|
var de_ModelInvocationInput = /* @__PURE__ */ __name((output, context) => {
|
|
1730
2219
|
return (0, import_smithy_client.take)(output, {
|
|
1731
2220
|
inferenceConfiguration: (_) => de_InferenceConfiguration(_, context),
|
|
@@ -1740,6 +2229,7 @@ var de_ModelInvocationInput = /* @__PURE__ */ __name((output, context) => {
|
|
|
1740
2229
|
var de_Observation = /* @__PURE__ */ __name((output, context) => {
|
|
1741
2230
|
return (0, import_smithy_client.take)(output, {
|
|
1742
2231
|
actionGroupInvocationOutput: import_smithy_client._json,
|
|
2232
|
+
codeInterpreterInvocationOutput: import_smithy_client._json,
|
|
1743
2233
|
finalResponse: import_smithy_client._json,
|
|
1744
2234
|
knowledgeBaseLookupOutput: (_) => de_KnowledgeBaseLookupOutput(_, context),
|
|
1745
2235
|
repromptResponse: import_smithy_client._json,
|
|
@@ -1770,6 +2260,19 @@ var de_OrchestrationTrace = /* @__PURE__ */ __name((output, context) => {
|
|
|
1770
2260
|
}
|
|
1771
2261
|
return { $unknown: Object.entries(output)[0] };
|
|
1772
2262
|
}, "de_OrchestrationTrace");
|
|
2263
|
+
var de_OutputFile = /* @__PURE__ */ __name((output, context) => {
|
|
2264
|
+
return (0, import_smithy_client.take)(output, {
|
|
2265
|
+
bytes: context.base64Decoder,
|
|
2266
|
+
name: import_smithy_client.expectString,
|
|
2267
|
+
type: import_smithy_client.expectString
|
|
2268
|
+
});
|
|
2269
|
+
}, "de_OutputFile");
|
|
2270
|
+
var de_OutputFiles = /* @__PURE__ */ __name((output, context) => {
|
|
2271
|
+
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
2272
|
+
return de_OutputFile(entry, context);
|
|
2273
|
+
});
|
|
2274
|
+
return retVal;
|
|
2275
|
+
}, "de_OutputFiles");
|
|
1773
2276
|
var de_PayloadPart = /* @__PURE__ */ __name((output, context) => {
|
|
1774
2277
|
return (0, import_smithy_client.take)(output, {
|
|
1775
2278
|
attribution: (_) => de_Attribution(_, context),
|
|
@@ -1864,6 +2367,9 @@ var de_TracePart = /* @__PURE__ */ __name((output, context) => {
|
|
|
1864
2367
|
trace: (_) => de_Trace((0, import_core2.awsExpectUnion)(_), context)
|
|
1865
2368
|
});
|
|
1866
2369
|
}, "de_TracePart");
|
|
2370
|
+
var de_Document = /* @__PURE__ */ __name((output, context) => {
|
|
2371
|
+
return output;
|
|
2372
|
+
}, "de_Document");
|
|
1867
2373
|
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1868
2374
|
httpStatusCode: output.statusCode,
|
|
1869
2375
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
@@ -1871,11 +2377,48 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1871
2377
|
cfId: output.headers["x-amz-cf-id"]
|
|
1872
2378
|
}), "deserializeMetadata");
|
|
1873
2379
|
var _cT = "contentType";
|
|
2380
|
+
var _mI = "memoryId";
|
|
2381
|
+
var _mIa = "maxItems";
|
|
2382
|
+
var _mT = "memoryType";
|
|
2383
|
+
var _nT = "nextToken";
|
|
1874
2384
|
var _sI = "sessionId";
|
|
1875
2385
|
var _xabact = "x-amzn-bedrock-agent-content-type";
|
|
2386
|
+
var _xabami = "x-amz-bedrock-agent-memory-id";
|
|
1876
2387
|
var _xabasi = "x-amz-bedrock-agent-session-id";
|
|
1877
2388
|
|
|
2389
|
+
// src/commands/DeleteAgentMemoryCommand.ts
|
|
2390
|
+
var _DeleteAgentMemoryCommand = class _DeleteAgentMemoryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2391
|
+
...commonParams
|
|
2392
|
+
}).m(function(Command, cs, config, o) {
|
|
2393
|
+
return [
|
|
2394
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2395
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2396
|
+
];
|
|
2397
|
+
}).s("AmazonBedrockAgentRunTimeService", "DeleteAgentMemory", {}).n("BedrockAgentRuntimeClient", "DeleteAgentMemoryCommand").f(void 0, void 0).ser(se_DeleteAgentMemoryCommand).de(de_DeleteAgentMemoryCommand).build() {
|
|
2398
|
+
};
|
|
2399
|
+
__name(_DeleteAgentMemoryCommand, "DeleteAgentMemoryCommand");
|
|
2400
|
+
var DeleteAgentMemoryCommand = _DeleteAgentMemoryCommand;
|
|
2401
|
+
|
|
2402
|
+
// src/commands/GetAgentMemoryCommand.ts
|
|
2403
|
+
|
|
2404
|
+
|
|
2405
|
+
|
|
2406
|
+
var _GetAgentMemoryCommand = class _GetAgentMemoryCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2407
|
+
...commonParams
|
|
2408
|
+
}).m(function(Command, cs, config, o) {
|
|
2409
|
+
return [
|
|
2410
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2411
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2412
|
+
];
|
|
2413
|
+
}).s("AmazonBedrockAgentRunTimeService", "GetAgentMemory", {}).n("BedrockAgentRuntimeClient", "GetAgentMemoryCommand").f(void 0, void 0).ser(se_GetAgentMemoryCommand).de(de_GetAgentMemoryCommand).build() {
|
|
2414
|
+
};
|
|
2415
|
+
__name(_GetAgentMemoryCommand, "GetAgentMemoryCommand");
|
|
2416
|
+
var GetAgentMemoryCommand = _GetAgentMemoryCommand;
|
|
2417
|
+
|
|
1878
2418
|
// src/commands/InvokeAgentCommand.ts
|
|
2419
|
+
|
|
2420
|
+
|
|
2421
|
+
|
|
1879
2422
|
var _InvokeAgentCommand = class _InvokeAgentCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
1880
2423
|
...commonParams
|
|
1881
2424
|
}).m(function(Command, cs, config, o) {
|
|
@@ -1895,6 +2438,29 @@ var _InvokeAgentCommand = class _InvokeAgentCommand extends import_smithy_client
|
|
|
1895
2438
|
__name(_InvokeAgentCommand, "InvokeAgentCommand");
|
|
1896
2439
|
var InvokeAgentCommand = _InvokeAgentCommand;
|
|
1897
2440
|
|
|
2441
|
+
// src/commands/InvokeFlowCommand.ts
|
|
2442
|
+
|
|
2443
|
+
|
|
2444
|
+
|
|
2445
|
+
var _InvokeFlowCommand = class _InvokeFlowCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
2446
|
+
...commonParams
|
|
2447
|
+
}).m(function(Command, cs, config, o) {
|
|
2448
|
+
return [
|
|
2449
|
+
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
2450
|
+
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2451
|
+
];
|
|
2452
|
+
}).s("AmazonBedrockAgentRunTimeService", "InvokeFlow", {
|
|
2453
|
+
/**
|
|
2454
|
+
* @internal
|
|
2455
|
+
*/
|
|
2456
|
+
eventStream: {
|
|
2457
|
+
output: true
|
|
2458
|
+
}
|
|
2459
|
+
}).n("BedrockAgentRuntimeClient", "InvokeFlowCommand").f(InvokeFlowRequestFilterSensitiveLog, InvokeFlowResponseFilterSensitiveLog).ser(se_InvokeFlowCommand).de(de_InvokeFlowCommand).build() {
|
|
2460
|
+
};
|
|
2461
|
+
__name(_InvokeFlowCommand, "InvokeFlowCommand");
|
|
2462
|
+
var InvokeFlowCommand = _InvokeFlowCommand;
|
|
2463
|
+
|
|
1898
2464
|
// src/commands/RetrieveAndGenerateCommand.ts
|
|
1899
2465
|
|
|
1900
2466
|
|
|
@@ -1929,7 +2495,10 @@ var RetrieveCommand = _RetrieveCommand;
|
|
|
1929
2495
|
|
|
1930
2496
|
// src/BedrockAgentRuntime.ts
|
|
1931
2497
|
var commands = {
|
|
2498
|
+
DeleteAgentMemoryCommand,
|
|
2499
|
+
GetAgentMemoryCommand,
|
|
1932
2500
|
InvokeAgentCommand,
|
|
2501
|
+
InvokeFlowCommand,
|
|
1933
2502
|
RetrieveCommand,
|
|
1934
2503
|
RetrieveAndGenerateCommand
|
|
1935
2504
|
};
|
|
@@ -1939,6 +2508,10 @@ __name(_BedrockAgentRuntime, "BedrockAgentRuntime");
|
|
|
1939
2508
|
var BedrockAgentRuntime = _BedrockAgentRuntime;
|
|
1940
2509
|
(0, import_smithy_client.createAggregatedClient)(commands, BedrockAgentRuntime);
|
|
1941
2510
|
|
|
2511
|
+
// src/pagination/GetAgentMemoryPaginator.ts
|
|
2512
|
+
|
|
2513
|
+
var paginateGetAgentMemory = (0, import_core.createPaginator)(BedrockAgentRuntimeClient, GetAgentMemoryCommand, "nextToken", "nextToken", "maxItems");
|
|
2514
|
+
|
|
1942
2515
|
// src/pagination/RetrievePaginator.ts
|
|
1943
2516
|
|
|
1944
2517
|
var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClient, RetrieveCommand, "nextToken", "nextToken", "");
|
|
@@ -1950,22 +2523,36 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
1950
2523
|
BedrockAgentRuntimeClient,
|
|
1951
2524
|
BedrockAgentRuntime,
|
|
1952
2525
|
$Command,
|
|
2526
|
+
DeleteAgentMemoryCommand,
|
|
2527
|
+
GetAgentMemoryCommand,
|
|
1953
2528
|
InvokeAgentCommand,
|
|
2529
|
+
InvokeFlowCommand,
|
|
1954
2530
|
RetrieveAndGenerateCommand,
|
|
1955
2531
|
RetrieveCommand,
|
|
2532
|
+
paginateGetAgentMemory,
|
|
1956
2533
|
paginateRetrieve,
|
|
1957
2534
|
AccessDeniedException,
|
|
2535
|
+
ExecutionType,
|
|
1958
2536
|
BadGatewayException,
|
|
1959
2537
|
ConflictException,
|
|
1960
2538
|
DependencyFailedException,
|
|
1961
2539
|
InternalServerException,
|
|
2540
|
+
FlowInputContent,
|
|
2541
|
+
FlowCompletionReason,
|
|
2542
|
+
FlowOutputContent,
|
|
2543
|
+
NodeType,
|
|
2544
|
+
ResourceNotFoundException,
|
|
2545
|
+
ServiceQuotaExceededException,
|
|
2546
|
+
ThrottlingException,
|
|
2547
|
+
ValidationException,
|
|
2548
|
+
FlowResponseStream,
|
|
2549
|
+
FileSourceType,
|
|
2550
|
+
FileUseCase,
|
|
2551
|
+
SearchType,
|
|
1962
2552
|
ResponseState,
|
|
1963
2553
|
InvocationResultMember,
|
|
1964
2554
|
RetrievalResultLocationType,
|
|
1965
|
-
ResourceNotFoundException,
|
|
1966
2555
|
InvocationInputMember,
|
|
1967
|
-
ServiceQuotaExceededException,
|
|
1968
|
-
ThrottlingException,
|
|
1969
2556
|
GuardrailAction,
|
|
1970
2557
|
GuardrailContentPolicyAction,
|
|
1971
2558
|
GuardrailContentFilterConfidence,
|
|
@@ -1985,19 +2572,28 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
1985
2572
|
PostProcessingTrace,
|
|
1986
2573
|
PreProcessingTrace,
|
|
1987
2574
|
Trace,
|
|
1988
|
-
ValidationException,
|
|
1989
2575
|
ResponseStream,
|
|
2576
|
+
MemoryType,
|
|
2577
|
+
Memory,
|
|
1990
2578
|
ExternalSourceType,
|
|
1991
|
-
|
|
2579
|
+
QueryTransformationType,
|
|
1992
2580
|
RetrieveAndGenerateType,
|
|
1993
2581
|
GuadrailAction,
|
|
1994
2582
|
RetrievalFilter,
|
|
1995
2583
|
ActionGroupInvocationInputFilterSensitiveLog,
|
|
1996
2584
|
ActionGroupInvocationOutputFilterSensitiveLog,
|
|
2585
|
+
FlowInputContentFilterSensitiveLog,
|
|
2586
|
+
FlowInputFilterSensitiveLog,
|
|
2587
|
+
InvokeFlowRequestFilterSensitiveLog,
|
|
2588
|
+
FlowCompletionEventFilterSensitiveLog,
|
|
2589
|
+
FlowOutputEventFilterSensitiveLog,
|
|
2590
|
+
FlowResponseStreamFilterSensitiveLog,
|
|
2591
|
+
InvokeFlowResponseFilterSensitiveLog,
|
|
2592
|
+
ByteContentFileFilterSensitiveLog,
|
|
2593
|
+
FileSourceFilterSensitiveLog,
|
|
2594
|
+
InputFileFilterSensitiveLog,
|
|
1997
2595
|
ApiResultFilterSensitiveLog,
|
|
1998
2596
|
InvocationResultMemberFilterSensitiveLog,
|
|
1999
|
-
SessionStateFilterSensitiveLog,
|
|
2000
|
-
InvokeAgentRequestFilterSensitiveLog,
|
|
2001
2597
|
TextResponsePartFilterSensitiveLog,
|
|
2002
2598
|
GeneratedResponsePartFilterSensitiveLog,
|
|
2003
2599
|
RetrievalResultContentFilterSensitiveLog,
|
|
@@ -2006,6 +2602,8 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
2006
2602
|
CitationFilterSensitiveLog,
|
|
2007
2603
|
AttributionFilterSensitiveLog,
|
|
2008
2604
|
PayloadPartFilterSensitiveLog,
|
|
2605
|
+
OutputFileFilterSensitiveLog,
|
|
2606
|
+
FilePartFilterSensitiveLog,
|
|
2009
2607
|
ApiInvocationInputFilterSensitiveLog,
|
|
2010
2608
|
InvocationInputMemberFilterSensitiveLog,
|
|
2011
2609
|
ReturnControlPayloadFilterSensitiveLog,
|
|
@@ -2056,9 +2654,12 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
|
|
|
2056
2654
|
RetrievalFilterFilterSensitiveLog,
|
|
2057
2655
|
KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog,
|
|
2058
2656
|
KnowledgeBaseRetrievalConfigurationFilterSensitiveLog,
|
|
2657
|
+
KnowledgeBaseConfigurationFilterSensitiveLog,
|
|
2059
2658
|
KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
2060
2659
|
RetrieveRequestFilterSensitiveLog,
|
|
2061
2660
|
RetrieveAndGenerateConfigurationFilterSensitiveLog,
|
|
2062
|
-
RetrieveAndGenerateRequestFilterSensitiveLog
|
|
2661
|
+
RetrieveAndGenerateRequestFilterSensitiveLog,
|
|
2662
|
+
SessionStateFilterSensitiveLog,
|
|
2663
|
+
InvokeAgentRequestFilterSensitiveLog
|
|
2063
2664
|
});
|
|
2064
2665
|
|