@aws-sdk/client-bedrock-agent-runtime 3.929.0 → 3.930.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/dist-cjs/index.js +0 -516
- package/dist-es/models/models_0.js +0 -426
- package/dist-es/models/models_1.js +0 -90
- package/dist-types/models/models_0.d.ts +136 -34
- package/dist-types/models/models_1.d.ts +20 -5
- package/dist-types/ts3.4/models/models_0.d.ts +0 -37
- package/dist-types/ts3.4/models/models_1.d.ts +0 -8
- package/package.json +36 -36
package/dist-cjs/index.js
CHANGED
|
@@ -134,16 +134,6 @@ let AccessDeniedException$1 = class AccessDeniedException extends BedrockAgentRu
|
|
|
134
134
|
const CustomControlMethod = {
|
|
135
135
|
RETURN_CONTROL: "RETURN_CONTROL",
|
|
136
136
|
};
|
|
137
|
-
exports.ActionGroupExecutor = void 0;
|
|
138
|
-
(function (ActionGroupExecutor) {
|
|
139
|
-
ActionGroupExecutor.visit = (value, visitor) => {
|
|
140
|
-
if (value.lambda !== undefined)
|
|
141
|
-
return visitor.lambda(value.lambda);
|
|
142
|
-
if (value.customControl !== undefined)
|
|
143
|
-
return visitor.customControl(value.customControl);
|
|
144
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
145
|
-
};
|
|
146
|
-
})(exports.ActionGroupExecutor || (exports.ActionGroupExecutor = {}));
|
|
147
137
|
const ExecutionType = {
|
|
148
138
|
LAMBDA: "LAMBDA",
|
|
149
139
|
RETURN_CONTROL: "RETURN_CONTROL",
|
|
@@ -160,16 +150,6 @@ const ActionInvocationType = {
|
|
|
160
150
|
USER_CONFIRMATION: "USER_CONFIRMATION",
|
|
161
151
|
USER_CONFIRMATION_AND_RESULT: "USER_CONFIRMATION_AND_RESULT",
|
|
162
152
|
};
|
|
163
|
-
exports.APISchema = void 0;
|
|
164
|
-
(function (APISchema) {
|
|
165
|
-
APISchema.visit = (value, visitor) => {
|
|
166
|
-
if (value.s3 !== undefined)
|
|
167
|
-
return visitor.s3(value.s3);
|
|
168
|
-
if (value.payload !== undefined)
|
|
169
|
-
return visitor.payload(value.payload);
|
|
170
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
171
|
-
};
|
|
172
|
-
})(exports.APISchema || (exports.APISchema = {}));
|
|
173
153
|
const ParameterType = {
|
|
174
154
|
ARRAY: "array",
|
|
175
155
|
BOOLEAN: "boolean",
|
|
@@ -181,14 +161,6 @@ const RequireConfirmation = {
|
|
|
181
161
|
DISABLED: "DISABLED",
|
|
182
162
|
ENABLED: "ENABLED",
|
|
183
163
|
};
|
|
184
|
-
exports.FunctionSchema = void 0;
|
|
185
|
-
(function (FunctionSchema) {
|
|
186
|
-
FunctionSchema.visit = (value, visitor) => {
|
|
187
|
-
if (value.functions !== undefined)
|
|
188
|
-
return visitor.functions(value.functions);
|
|
189
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
190
|
-
};
|
|
191
|
-
})(exports.FunctionSchema || (exports.FunctionSchema = {}));
|
|
192
164
|
const AgentCollaboration = {
|
|
193
165
|
DISABLED: "DISABLED",
|
|
194
166
|
SUPERVISOR: "SUPERVISOR",
|
|
@@ -204,50 +176,14 @@ const ImageInputFormat = {
|
|
|
204
176
|
PNG: "png",
|
|
205
177
|
WEBP: "webp",
|
|
206
178
|
};
|
|
207
|
-
exports.ImageInputSource = void 0;
|
|
208
|
-
(function (ImageInputSource) {
|
|
209
|
-
ImageInputSource.visit = (value, visitor) => {
|
|
210
|
-
if (value.bytes !== undefined)
|
|
211
|
-
return visitor.bytes(value.bytes);
|
|
212
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
213
|
-
};
|
|
214
|
-
})(exports.ImageInputSource || (exports.ImageInputSource = {}));
|
|
215
179
|
const ResponseState = {
|
|
216
180
|
FAILURE: "FAILURE",
|
|
217
181
|
REPROMPT: "REPROMPT",
|
|
218
182
|
};
|
|
219
|
-
exports.InvocationResultMember = void 0;
|
|
220
|
-
(function (InvocationResultMember) {
|
|
221
|
-
InvocationResultMember.visit = (value, visitor) => {
|
|
222
|
-
if (value.apiResult !== undefined)
|
|
223
|
-
return visitor.apiResult(value.apiResult);
|
|
224
|
-
if (value.functionResult !== undefined)
|
|
225
|
-
return visitor.functionResult(value.functionResult);
|
|
226
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
227
|
-
};
|
|
228
|
-
})(exports.InvocationResultMember || (exports.InvocationResultMember = {}));
|
|
229
183
|
const PayloadType = {
|
|
230
184
|
RETURN_CONTROL: "RETURN_CONTROL",
|
|
231
185
|
TEXT: "TEXT",
|
|
232
186
|
};
|
|
233
|
-
exports.InvocationInputMember = void 0;
|
|
234
|
-
(function (InvocationInputMember) {
|
|
235
|
-
InvocationInputMember.visit = (value, visitor) => {
|
|
236
|
-
if (value.apiInvocationInput !== undefined)
|
|
237
|
-
return visitor.apiInvocationInput(value.apiInvocationInput);
|
|
238
|
-
if (value.functionInvocationInput !== undefined)
|
|
239
|
-
return visitor.functionInvocationInput(value.functionInvocationInput);
|
|
240
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
241
|
-
};
|
|
242
|
-
})(exports.InvocationInputMember || (exports.InvocationInputMember = {}));
|
|
243
|
-
exports.Caller = void 0;
|
|
244
|
-
(function (Caller) {
|
|
245
|
-
Caller.visit = (value, visitor) => {
|
|
246
|
-
if (value.agentAliasArn !== undefined)
|
|
247
|
-
return visitor.agentAliasArn(value.agentAliasArn);
|
|
248
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
249
|
-
};
|
|
250
|
-
})(exports.Caller || (exports.Caller = {}));
|
|
251
187
|
const GuardrailAction = {
|
|
252
188
|
INTERVENED: "INTERVENED",
|
|
253
189
|
NONE: "NONE",
|
|
@@ -336,16 +272,6 @@ const PromptType = {
|
|
|
336
272
|
PRE_PROCESSING: "PRE_PROCESSING",
|
|
337
273
|
ROUTING_CLASSIFIER: "ROUTING_CLASSIFIER",
|
|
338
274
|
};
|
|
339
|
-
exports.ReasoningContentBlock = void 0;
|
|
340
|
-
(function (ReasoningContentBlock) {
|
|
341
|
-
ReasoningContentBlock.visit = (value, visitor) => {
|
|
342
|
-
if (value.reasoningText !== undefined)
|
|
343
|
-
return visitor.reasoningText(value.reasoningText);
|
|
344
|
-
if (value.redactedContent !== undefined)
|
|
345
|
-
return visitor.redactedContent(value.redactedContent);
|
|
346
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
347
|
-
};
|
|
348
|
-
})(exports.ReasoningContentBlock || (exports.ReasoningContentBlock = {}));
|
|
349
275
|
const RetrievalResultContentColumnType = {
|
|
350
276
|
BLOB: "BLOB",
|
|
351
277
|
BOOLEAN: "BOOLEAN",
|
|
@@ -382,76 +308,6 @@ const Type = {
|
|
|
382
308
|
KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
|
|
383
309
|
REPROMPT: "REPROMPT",
|
|
384
310
|
};
|
|
385
|
-
exports.OrchestrationTrace = void 0;
|
|
386
|
-
(function (OrchestrationTrace) {
|
|
387
|
-
OrchestrationTrace.visit = (value, visitor) => {
|
|
388
|
-
if (value.rationale !== undefined)
|
|
389
|
-
return visitor.rationale(value.rationale);
|
|
390
|
-
if (value.invocationInput !== undefined)
|
|
391
|
-
return visitor.invocationInput(value.invocationInput);
|
|
392
|
-
if (value.observation !== undefined)
|
|
393
|
-
return visitor.observation(value.observation);
|
|
394
|
-
if (value.modelInvocationInput !== undefined)
|
|
395
|
-
return visitor.modelInvocationInput(value.modelInvocationInput);
|
|
396
|
-
if (value.modelInvocationOutput !== undefined)
|
|
397
|
-
return visitor.modelInvocationOutput(value.modelInvocationOutput);
|
|
398
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
399
|
-
};
|
|
400
|
-
})(exports.OrchestrationTrace || (exports.OrchestrationTrace = {}));
|
|
401
|
-
exports.PostProcessingTrace = void 0;
|
|
402
|
-
(function (PostProcessingTrace) {
|
|
403
|
-
PostProcessingTrace.visit = (value, visitor) => {
|
|
404
|
-
if (value.modelInvocationInput !== undefined)
|
|
405
|
-
return visitor.modelInvocationInput(value.modelInvocationInput);
|
|
406
|
-
if (value.modelInvocationOutput !== undefined)
|
|
407
|
-
return visitor.modelInvocationOutput(value.modelInvocationOutput);
|
|
408
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
409
|
-
};
|
|
410
|
-
})(exports.PostProcessingTrace || (exports.PostProcessingTrace = {}));
|
|
411
|
-
exports.PreProcessingTrace = void 0;
|
|
412
|
-
(function (PreProcessingTrace) {
|
|
413
|
-
PreProcessingTrace.visit = (value, visitor) => {
|
|
414
|
-
if (value.modelInvocationInput !== undefined)
|
|
415
|
-
return visitor.modelInvocationInput(value.modelInvocationInput);
|
|
416
|
-
if (value.modelInvocationOutput !== undefined)
|
|
417
|
-
return visitor.modelInvocationOutput(value.modelInvocationOutput);
|
|
418
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
419
|
-
};
|
|
420
|
-
})(exports.PreProcessingTrace || (exports.PreProcessingTrace = {}));
|
|
421
|
-
exports.RoutingClassifierTrace = void 0;
|
|
422
|
-
(function (RoutingClassifierTrace) {
|
|
423
|
-
RoutingClassifierTrace.visit = (value, visitor) => {
|
|
424
|
-
if (value.invocationInput !== undefined)
|
|
425
|
-
return visitor.invocationInput(value.invocationInput);
|
|
426
|
-
if (value.observation !== undefined)
|
|
427
|
-
return visitor.observation(value.observation);
|
|
428
|
-
if (value.modelInvocationInput !== undefined)
|
|
429
|
-
return visitor.modelInvocationInput(value.modelInvocationInput);
|
|
430
|
-
if (value.modelInvocationOutput !== undefined)
|
|
431
|
-
return visitor.modelInvocationOutput(value.modelInvocationOutput);
|
|
432
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
433
|
-
};
|
|
434
|
-
})(exports.RoutingClassifierTrace || (exports.RoutingClassifierTrace = {}));
|
|
435
|
-
exports.Trace = void 0;
|
|
436
|
-
(function (Trace) {
|
|
437
|
-
Trace.visit = (value, visitor) => {
|
|
438
|
-
if (value.guardrailTrace !== undefined)
|
|
439
|
-
return visitor.guardrailTrace(value.guardrailTrace);
|
|
440
|
-
if (value.preProcessingTrace !== undefined)
|
|
441
|
-
return visitor.preProcessingTrace(value.preProcessingTrace);
|
|
442
|
-
if (value.orchestrationTrace !== undefined)
|
|
443
|
-
return visitor.orchestrationTrace(value.orchestrationTrace);
|
|
444
|
-
if (value.postProcessingTrace !== undefined)
|
|
445
|
-
return visitor.postProcessingTrace(value.postProcessingTrace);
|
|
446
|
-
if (value.routingClassifierTrace !== undefined)
|
|
447
|
-
return visitor.routingClassifierTrace(value.routingClassifierTrace);
|
|
448
|
-
if (value.failureTrace !== undefined)
|
|
449
|
-
return visitor.failureTrace(value.failureTrace);
|
|
450
|
-
if (value.customOrchestrationTrace !== undefined)
|
|
451
|
-
return visitor.customOrchestrationTrace(value.customOrchestrationTrace);
|
|
452
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
453
|
-
};
|
|
454
|
-
})(exports.Trace || (exports.Trace = {}));
|
|
455
311
|
let InternalServerException$1 = class InternalServerException extends BedrockAgentRuntimeServiceException$1 {
|
|
456
312
|
name = "InternalServerException";
|
|
457
313
|
$fault = "server";
|
|
@@ -521,22 +377,6 @@ const FlowErrorCode = {
|
|
|
521
377
|
NODE_EXECUTION_FAILED: "NODE_EXECUTION_FAILED",
|
|
522
378
|
VALIDATION: "VALIDATION",
|
|
523
379
|
};
|
|
524
|
-
exports.FlowExecutionContent = void 0;
|
|
525
|
-
(function (FlowExecutionContent) {
|
|
526
|
-
FlowExecutionContent.visit = (value, visitor) => {
|
|
527
|
-
if (value.document !== undefined)
|
|
528
|
-
return visitor.document(value.document);
|
|
529
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
530
|
-
};
|
|
531
|
-
})(exports.FlowExecutionContent || (exports.FlowExecutionContent = {}));
|
|
532
|
-
exports.NodeTraceElements = void 0;
|
|
533
|
-
(function (NodeTraceElements) {
|
|
534
|
-
NodeTraceElements.visit = (value, visitor) => {
|
|
535
|
-
if (value.agentTraces !== undefined)
|
|
536
|
-
return visitor.agentTraces(value.agentTraces);
|
|
537
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
538
|
-
};
|
|
539
|
-
})(exports.NodeTraceElements || (exports.NodeTraceElements = {}));
|
|
540
380
|
const NodeErrorCode = {
|
|
541
381
|
BAD_GATEWAY: "BAD_GATEWAY",
|
|
542
382
|
DEPENDENCY_FAILED: "DEPENDENCY_FAILED",
|
|
@@ -548,14 +388,6 @@ const FlowNodeInputCategory = {
|
|
|
548
388
|
LOOP_CONDITION: "LoopCondition",
|
|
549
389
|
RETURN_VALUE_TO_LOOP_START: "ReturnValueToLoopStart",
|
|
550
390
|
};
|
|
551
|
-
exports.NodeExecutionContent = void 0;
|
|
552
|
-
(function (NodeExecutionContent) {
|
|
553
|
-
NodeExecutionContent.visit = (value, visitor) => {
|
|
554
|
-
if (value.document !== undefined)
|
|
555
|
-
return visitor.document(value.document);
|
|
556
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
557
|
-
};
|
|
558
|
-
})(exports.NodeExecutionContent || (exports.NodeExecutionContent = {}));
|
|
559
391
|
const FlowControlNodeType = {
|
|
560
392
|
ITERATOR: "Iterator",
|
|
561
393
|
LOOP: "Loop",
|
|
@@ -567,30 +399,6 @@ const FlowNodeIODataType = {
|
|
|
567
399
|
OBJECT: "Object",
|
|
568
400
|
STRING: "String",
|
|
569
401
|
};
|
|
570
|
-
exports.FlowExecutionEvent = void 0;
|
|
571
|
-
(function (FlowExecutionEvent) {
|
|
572
|
-
FlowExecutionEvent.visit = (value, visitor) => {
|
|
573
|
-
if (value.flowInputEvent !== undefined)
|
|
574
|
-
return visitor.flowInputEvent(value.flowInputEvent);
|
|
575
|
-
if (value.flowOutputEvent !== undefined)
|
|
576
|
-
return visitor.flowOutputEvent(value.flowOutputEvent);
|
|
577
|
-
if (value.nodeInputEvent !== undefined)
|
|
578
|
-
return visitor.nodeInputEvent(value.nodeInputEvent);
|
|
579
|
-
if (value.nodeOutputEvent !== undefined)
|
|
580
|
-
return visitor.nodeOutputEvent(value.nodeOutputEvent);
|
|
581
|
-
if (value.conditionResultEvent !== undefined)
|
|
582
|
-
return visitor.conditionResultEvent(value.conditionResultEvent);
|
|
583
|
-
if (value.nodeFailureEvent !== undefined)
|
|
584
|
-
return visitor.nodeFailureEvent(value.nodeFailureEvent);
|
|
585
|
-
if (value.flowFailureEvent !== undefined)
|
|
586
|
-
return visitor.flowFailureEvent(value.flowFailureEvent);
|
|
587
|
-
if (value.nodeActionEvent !== undefined)
|
|
588
|
-
return visitor.nodeActionEvent(value.nodeActionEvent);
|
|
589
|
-
if (value.nodeDependencyEvent !== undefined)
|
|
590
|
-
return visitor.nodeDependencyEvent(value.nodeDependencyEvent);
|
|
591
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
592
|
-
};
|
|
593
|
-
})(exports.FlowExecutionEvent || (exports.FlowExecutionEvent = {}));
|
|
594
402
|
let BadGatewayException$1 = class BadGatewayException extends BedrockAgentRuntimeServiceException$1 {
|
|
595
403
|
name = "BadGatewayException";
|
|
596
404
|
$fault = "server";
|
|
@@ -643,14 +451,6 @@ let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extend
|
|
|
643
451
|
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
644
452
|
}
|
|
645
453
|
};
|
|
646
|
-
exports.FlowInputContent = void 0;
|
|
647
|
-
(function (FlowInputContent) {
|
|
648
|
-
FlowInputContent.visit = (value, visitor) => {
|
|
649
|
-
if (value.document !== undefined)
|
|
650
|
-
return visitor.document(value.document);
|
|
651
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
652
|
-
};
|
|
653
|
-
})(exports.FlowInputContent || (exports.FlowInputContent = {}));
|
|
654
454
|
const PerformanceConfigLatency = {
|
|
655
455
|
OPTIMIZED: "optimized",
|
|
656
456
|
STANDARD: "standard",
|
|
@@ -659,14 +459,6 @@ const FlowCompletionReason = {
|
|
|
659
459
|
INPUT_REQUIRED: "INPUT_REQUIRED",
|
|
660
460
|
SUCCESS: "SUCCESS",
|
|
661
461
|
};
|
|
662
|
-
exports.FlowMultiTurnInputContent = void 0;
|
|
663
|
-
(function (FlowMultiTurnInputContent) {
|
|
664
|
-
FlowMultiTurnInputContent.visit = (value, visitor) => {
|
|
665
|
-
if (value.document !== undefined)
|
|
666
|
-
return visitor.document(value.document);
|
|
667
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
668
|
-
};
|
|
669
|
-
})(exports.FlowMultiTurnInputContent || (exports.FlowMultiTurnInputContent = {}));
|
|
670
462
|
const NodeType = {
|
|
671
463
|
CONDITION_NODE: "ConditionNode",
|
|
672
464
|
FLOW_INPUT_NODE: "FlowInputNode",
|
|
@@ -676,86 +468,6 @@ const NodeType = {
|
|
|
676
468
|
LEX_NODE: "LexNode",
|
|
677
469
|
PROMPT_NODE: "PromptNode",
|
|
678
470
|
};
|
|
679
|
-
exports.FlowOutputContent = void 0;
|
|
680
|
-
(function (FlowOutputContent) {
|
|
681
|
-
FlowOutputContent.visit = (value, visitor) => {
|
|
682
|
-
if (value.document !== undefined)
|
|
683
|
-
return visitor.document(value.document);
|
|
684
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
685
|
-
};
|
|
686
|
-
})(exports.FlowOutputContent || (exports.FlowOutputContent = {}));
|
|
687
|
-
exports.TraceElements = void 0;
|
|
688
|
-
(function (TraceElements) {
|
|
689
|
-
TraceElements.visit = (value, visitor) => {
|
|
690
|
-
if (value.agentTraces !== undefined)
|
|
691
|
-
return visitor.agentTraces(value.agentTraces);
|
|
692
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
693
|
-
};
|
|
694
|
-
})(exports.TraceElements || (exports.TraceElements = {}));
|
|
695
|
-
exports.FlowTraceNodeInputContent = void 0;
|
|
696
|
-
(function (FlowTraceNodeInputContent) {
|
|
697
|
-
FlowTraceNodeInputContent.visit = (value, visitor) => {
|
|
698
|
-
if (value.document !== undefined)
|
|
699
|
-
return visitor.document(value.document);
|
|
700
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
701
|
-
};
|
|
702
|
-
})(exports.FlowTraceNodeInputContent || (exports.FlowTraceNodeInputContent = {}));
|
|
703
|
-
exports.FlowTraceNodeOutputContent = void 0;
|
|
704
|
-
(function (FlowTraceNodeOutputContent) {
|
|
705
|
-
FlowTraceNodeOutputContent.visit = (value, visitor) => {
|
|
706
|
-
if (value.document !== undefined)
|
|
707
|
-
return visitor.document(value.document);
|
|
708
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
709
|
-
};
|
|
710
|
-
})(exports.FlowTraceNodeOutputContent || (exports.FlowTraceNodeOutputContent = {}));
|
|
711
|
-
exports.FlowTrace = void 0;
|
|
712
|
-
(function (FlowTrace) {
|
|
713
|
-
FlowTrace.visit = (value, visitor) => {
|
|
714
|
-
if (value.nodeInputTrace !== undefined)
|
|
715
|
-
return visitor.nodeInputTrace(value.nodeInputTrace);
|
|
716
|
-
if (value.nodeOutputTrace !== undefined)
|
|
717
|
-
return visitor.nodeOutputTrace(value.nodeOutputTrace);
|
|
718
|
-
if (value.conditionNodeResultTrace !== undefined)
|
|
719
|
-
return visitor.conditionNodeResultTrace(value.conditionNodeResultTrace);
|
|
720
|
-
if (value.nodeActionTrace !== undefined)
|
|
721
|
-
return visitor.nodeActionTrace(value.nodeActionTrace);
|
|
722
|
-
if (value.nodeDependencyTrace !== undefined)
|
|
723
|
-
return visitor.nodeDependencyTrace(value.nodeDependencyTrace);
|
|
724
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
725
|
-
};
|
|
726
|
-
})(exports.FlowTrace || (exports.FlowTrace = {}));
|
|
727
|
-
exports.FlowResponseStream = void 0;
|
|
728
|
-
(function (FlowResponseStream) {
|
|
729
|
-
FlowResponseStream.visit = (value, visitor) => {
|
|
730
|
-
if (value.flowOutputEvent !== undefined)
|
|
731
|
-
return visitor.flowOutputEvent(value.flowOutputEvent);
|
|
732
|
-
if (value.flowCompletionEvent !== undefined)
|
|
733
|
-
return visitor.flowCompletionEvent(value.flowCompletionEvent);
|
|
734
|
-
if (value.flowTraceEvent !== undefined)
|
|
735
|
-
return visitor.flowTraceEvent(value.flowTraceEvent);
|
|
736
|
-
if (value.internalServerException !== undefined)
|
|
737
|
-
return visitor.internalServerException(value.internalServerException);
|
|
738
|
-
if (value.validationException !== undefined)
|
|
739
|
-
return visitor.validationException(value.validationException);
|
|
740
|
-
if (value.resourceNotFoundException !== undefined)
|
|
741
|
-
return visitor.resourceNotFoundException(value.resourceNotFoundException);
|
|
742
|
-
if (value.serviceQuotaExceededException !== undefined)
|
|
743
|
-
return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
|
|
744
|
-
if (value.throttlingException !== undefined)
|
|
745
|
-
return visitor.throttlingException(value.throttlingException);
|
|
746
|
-
if (value.accessDeniedException !== undefined)
|
|
747
|
-
return visitor.accessDeniedException(value.accessDeniedException);
|
|
748
|
-
if (value.conflictException !== undefined)
|
|
749
|
-
return visitor.conflictException(value.conflictException);
|
|
750
|
-
if (value.dependencyFailedException !== undefined)
|
|
751
|
-
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
752
|
-
if (value.badGatewayException !== undefined)
|
|
753
|
-
return visitor.badGatewayException(value.badGatewayException);
|
|
754
|
-
if (value.flowMultiTurnInputRequestEvent !== undefined)
|
|
755
|
-
return visitor.flowMultiTurnInputRequestEvent(value.flowMultiTurnInputRequestEvent);
|
|
756
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
757
|
-
};
|
|
758
|
-
})(exports.FlowResponseStream || (exports.FlowResponseStream = {}));
|
|
759
471
|
const InputQueryType = {
|
|
760
472
|
TEXT: "TEXT",
|
|
761
473
|
};
|
|
@@ -768,14 +480,6 @@ const TextToSqlConfigurationType = {
|
|
|
768
480
|
const GeneratedQueryType = {
|
|
769
481
|
REDSHIFT_SQL: "REDSHIFT_SQL",
|
|
770
482
|
};
|
|
771
|
-
exports.ContentBlock = void 0;
|
|
772
|
-
(function (ContentBlock) {
|
|
773
|
-
ContentBlock.visit = (value, visitor) => {
|
|
774
|
-
if (value.text !== undefined)
|
|
775
|
-
return visitor.text(value.text);
|
|
776
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
777
|
-
};
|
|
778
|
-
})(exports.ContentBlock || (exports.ContentBlock = {}));
|
|
779
483
|
const ConversationRole = {
|
|
780
484
|
ASSISTANT: "assistant",
|
|
781
485
|
USER: "user",
|
|
@@ -802,16 +506,6 @@ const RerankingMetadataSelectionMode = {
|
|
|
802
506
|
ALL: "ALL",
|
|
803
507
|
SELECTIVE: "SELECTIVE",
|
|
804
508
|
};
|
|
805
|
-
exports.RerankingMetadataSelectiveModeConfiguration = void 0;
|
|
806
|
-
(function (RerankingMetadataSelectiveModeConfiguration) {
|
|
807
|
-
RerankingMetadataSelectiveModeConfiguration.visit = (value, visitor) => {
|
|
808
|
-
if (value.fieldsToInclude !== undefined)
|
|
809
|
-
return visitor.fieldsToInclude(value.fieldsToInclude);
|
|
810
|
-
if (value.fieldsToExclude !== undefined)
|
|
811
|
-
return visitor.fieldsToExclude(value.fieldsToExclude);
|
|
812
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
813
|
-
};
|
|
814
|
-
})(exports.RerankingMetadataSelectiveModeConfiguration || (exports.RerankingMetadataSelectiveModeConfiguration = {}));
|
|
815
509
|
const VectorSearchRerankingConfigurationType = {
|
|
816
510
|
BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL",
|
|
817
511
|
};
|
|
@@ -827,40 +521,6 @@ let ModelNotReadyException$1 = class ModelNotReadyException extends BedrockAgent
|
|
|
827
521
|
Object.setPrototypeOf(this, ModelNotReadyException.prototype);
|
|
828
522
|
}
|
|
829
523
|
};
|
|
830
|
-
exports.ResponseStream = void 0;
|
|
831
|
-
(function (ResponseStream) {
|
|
832
|
-
ResponseStream.visit = (value, visitor) => {
|
|
833
|
-
if (value.chunk !== undefined)
|
|
834
|
-
return visitor.chunk(value.chunk);
|
|
835
|
-
if (value.trace !== undefined)
|
|
836
|
-
return visitor.trace(value.trace);
|
|
837
|
-
if (value.returnControl !== undefined)
|
|
838
|
-
return visitor.returnControl(value.returnControl);
|
|
839
|
-
if (value.internalServerException !== undefined)
|
|
840
|
-
return visitor.internalServerException(value.internalServerException);
|
|
841
|
-
if (value.validationException !== undefined)
|
|
842
|
-
return visitor.validationException(value.validationException);
|
|
843
|
-
if (value.resourceNotFoundException !== undefined)
|
|
844
|
-
return visitor.resourceNotFoundException(value.resourceNotFoundException);
|
|
845
|
-
if (value.serviceQuotaExceededException !== undefined)
|
|
846
|
-
return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
|
|
847
|
-
if (value.throttlingException !== undefined)
|
|
848
|
-
return visitor.throttlingException(value.throttlingException);
|
|
849
|
-
if (value.accessDeniedException !== undefined)
|
|
850
|
-
return visitor.accessDeniedException(value.accessDeniedException);
|
|
851
|
-
if (value.conflictException !== undefined)
|
|
852
|
-
return visitor.conflictException(value.conflictException);
|
|
853
|
-
if (value.dependencyFailedException !== undefined)
|
|
854
|
-
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
855
|
-
if (value.badGatewayException !== undefined)
|
|
856
|
-
return visitor.badGatewayException(value.badGatewayException);
|
|
857
|
-
if (value.modelNotReadyException !== undefined)
|
|
858
|
-
return visitor.modelNotReadyException(value.modelNotReadyException);
|
|
859
|
-
if (value.files !== undefined)
|
|
860
|
-
return visitor.files(value.files);
|
|
861
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
862
|
-
};
|
|
863
|
-
})(exports.ResponseStream || (exports.ResponseStream = {}));
|
|
864
524
|
const RelayConversationHistory = {
|
|
865
525
|
DISABLED: "DISABLED",
|
|
866
526
|
TO_COLLABORATOR: "TO_COLLABORATOR",
|
|
@@ -869,99 +529,13 @@ const PromptState = {
|
|
|
869
529
|
DISABLED: "DISABLED",
|
|
870
530
|
ENABLED: "ENABLED",
|
|
871
531
|
};
|
|
872
|
-
exports.OrchestrationExecutor = void 0;
|
|
873
|
-
(function (OrchestrationExecutor) {
|
|
874
|
-
OrchestrationExecutor.visit = (value, visitor) => {
|
|
875
|
-
if (value.lambda !== undefined)
|
|
876
|
-
return visitor.lambda(value.lambda);
|
|
877
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
878
|
-
};
|
|
879
|
-
})(exports.OrchestrationExecutor || (exports.OrchestrationExecutor = {}));
|
|
880
532
|
const OrchestrationType = {
|
|
881
533
|
CUSTOM_ORCHESTRATION: "CUSTOM_ORCHESTRATION",
|
|
882
534
|
DEFAULT: "DEFAULT",
|
|
883
535
|
};
|
|
884
|
-
exports.InlineAgentResponseStream = void 0;
|
|
885
|
-
(function (InlineAgentResponseStream) {
|
|
886
|
-
InlineAgentResponseStream.visit = (value, visitor) => {
|
|
887
|
-
if (value.chunk !== undefined)
|
|
888
|
-
return visitor.chunk(value.chunk);
|
|
889
|
-
if (value.trace !== undefined)
|
|
890
|
-
return visitor.trace(value.trace);
|
|
891
|
-
if (value.returnControl !== undefined)
|
|
892
|
-
return visitor.returnControl(value.returnControl);
|
|
893
|
-
if (value.internalServerException !== undefined)
|
|
894
|
-
return visitor.internalServerException(value.internalServerException);
|
|
895
|
-
if (value.validationException !== undefined)
|
|
896
|
-
return visitor.validationException(value.validationException);
|
|
897
|
-
if (value.resourceNotFoundException !== undefined)
|
|
898
|
-
return visitor.resourceNotFoundException(value.resourceNotFoundException);
|
|
899
|
-
if (value.serviceQuotaExceededException !== undefined)
|
|
900
|
-
return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
|
|
901
|
-
if (value.throttlingException !== undefined)
|
|
902
|
-
return visitor.throttlingException(value.throttlingException);
|
|
903
|
-
if (value.accessDeniedException !== undefined)
|
|
904
|
-
return visitor.accessDeniedException(value.accessDeniedException);
|
|
905
|
-
if (value.conflictException !== undefined)
|
|
906
|
-
return visitor.conflictException(value.conflictException);
|
|
907
|
-
if (value.dependencyFailedException !== undefined)
|
|
908
|
-
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
909
|
-
if (value.badGatewayException !== undefined)
|
|
910
|
-
return visitor.badGatewayException(value.badGatewayException);
|
|
911
|
-
if (value.files !== undefined)
|
|
912
|
-
return visitor.files(value.files);
|
|
913
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
914
|
-
};
|
|
915
|
-
})(exports.InlineAgentResponseStream || (exports.InlineAgentResponseStream = {}));
|
|
916
536
|
const MemoryType = {
|
|
917
537
|
SESSION_SUMMARY: "SESSION_SUMMARY",
|
|
918
538
|
};
|
|
919
|
-
exports.Memory = void 0;
|
|
920
|
-
(function (Memory) {
|
|
921
|
-
Memory.visit = (value, visitor) => {
|
|
922
|
-
if (value.sessionSummary !== undefined)
|
|
923
|
-
return visitor.sessionSummary(value.sessionSummary);
|
|
924
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
925
|
-
};
|
|
926
|
-
})(exports.Memory || (exports.Memory = {}));
|
|
927
|
-
exports.InputPrompt = void 0;
|
|
928
|
-
(function (InputPrompt) {
|
|
929
|
-
InputPrompt.visit = (value, visitor) => {
|
|
930
|
-
if (value.textPrompt !== undefined)
|
|
931
|
-
return visitor.textPrompt(value.textPrompt);
|
|
932
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
933
|
-
};
|
|
934
|
-
})(exports.InputPrompt || (exports.InputPrompt = {}));
|
|
935
|
-
exports.OptimizedPrompt = void 0;
|
|
936
|
-
(function (OptimizedPrompt) {
|
|
937
|
-
OptimizedPrompt.visit = (value, visitor) => {
|
|
938
|
-
if (value.textPrompt !== undefined)
|
|
939
|
-
return visitor.textPrompt(value.textPrompt);
|
|
940
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
941
|
-
};
|
|
942
|
-
})(exports.OptimizedPrompt || (exports.OptimizedPrompt = {}));
|
|
943
|
-
exports.OptimizedPromptStream = void 0;
|
|
944
|
-
(function (OptimizedPromptStream) {
|
|
945
|
-
OptimizedPromptStream.visit = (value, visitor) => {
|
|
946
|
-
if (value.optimizedPromptEvent !== undefined)
|
|
947
|
-
return visitor.optimizedPromptEvent(value.optimizedPromptEvent);
|
|
948
|
-
if (value.analyzePromptEvent !== undefined)
|
|
949
|
-
return visitor.analyzePromptEvent(value.analyzePromptEvent);
|
|
950
|
-
if (value.internalServerException !== undefined)
|
|
951
|
-
return visitor.internalServerException(value.internalServerException);
|
|
952
|
-
if (value.throttlingException !== undefined)
|
|
953
|
-
return visitor.throttlingException(value.throttlingException);
|
|
954
|
-
if (value.validationException !== undefined)
|
|
955
|
-
return visitor.validationException(value.validationException);
|
|
956
|
-
if (value.dependencyFailedException !== undefined)
|
|
957
|
-
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
958
|
-
if (value.accessDeniedException !== undefined)
|
|
959
|
-
return visitor.accessDeniedException(value.accessDeniedException);
|
|
960
|
-
if (value.badGatewayException !== undefined)
|
|
961
|
-
return visitor.badGatewayException(value.badGatewayException);
|
|
962
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
963
|
-
};
|
|
964
|
-
})(exports.OptimizedPromptStream || (exports.OptimizedPromptStream = {}));
|
|
965
539
|
const RerankQueryContentType = {
|
|
966
540
|
TEXT: "TEXT",
|
|
967
541
|
};
|
|
@@ -991,36 +565,6 @@ const GuadrailAction = {
|
|
|
991
565
|
INTERVENED: "INTERVENED",
|
|
992
566
|
NONE: "NONE",
|
|
993
567
|
};
|
|
994
|
-
exports.RetrieveAndGenerateStreamResponseOutput = void 0;
|
|
995
|
-
(function (RetrieveAndGenerateStreamResponseOutput) {
|
|
996
|
-
RetrieveAndGenerateStreamResponseOutput.visit = (value, visitor) => {
|
|
997
|
-
if (value.output !== undefined)
|
|
998
|
-
return visitor.output(value.output);
|
|
999
|
-
if (value.citation !== undefined)
|
|
1000
|
-
return visitor.citation(value.citation);
|
|
1001
|
-
if (value.guardrail !== undefined)
|
|
1002
|
-
return visitor.guardrail(value.guardrail);
|
|
1003
|
-
if (value.internalServerException !== undefined)
|
|
1004
|
-
return visitor.internalServerException(value.internalServerException);
|
|
1005
|
-
if (value.validationException !== undefined)
|
|
1006
|
-
return visitor.validationException(value.validationException);
|
|
1007
|
-
if (value.resourceNotFoundException !== undefined)
|
|
1008
|
-
return visitor.resourceNotFoundException(value.resourceNotFoundException);
|
|
1009
|
-
if (value.serviceQuotaExceededException !== undefined)
|
|
1010
|
-
return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
|
|
1011
|
-
if (value.throttlingException !== undefined)
|
|
1012
|
-
return visitor.throttlingException(value.throttlingException);
|
|
1013
|
-
if (value.accessDeniedException !== undefined)
|
|
1014
|
-
return visitor.accessDeniedException(value.accessDeniedException);
|
|
1015
|
-
if (value.conflictException !== undefined)
|
|
1016
|
-
return visitor.conflictException(value.conflictException);
|
|
1017
|
-
if (value.dependencyFailedException !== undefined)
|
|
1018
|
-
return visitor.dependencyFailedException(value.dependencyFailedException);
|
|
1019
|
-
if (value.badGatewayException !== undefined)
|
|
1020
|
-
return visitor.badGatewayException(value.badGatewayException);
|
|
1021
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1022
|
-
};
|
|
1023
|
-
})(exports.RetrieveAndGenerateStreamResponseOutput || (exports.RetrieveAndGenerateStreamResponseOutput = {}));
|
|
1024
568
|
const SessionStatus = {
|
|
1025
569
|
ACTIVE: "ACTIVE",
|
|
1026
570
|
ENDED: "ENDED",
|
|
@@ -1032,66 +576,6 @@ const ImageFormat = {
|
|
|
1032
576
|
PNG: "png",
|
|
1033
577
|
WEBP: "webp",
|
|
1034
578
|
};
|
|
1035
|
-
exports.ImageSource = void 0;
|
|
1036
|
-
(function (ImageSource) {
|
|
1037
|
-
ImageSource.visit = (value, visitor) => {
|
|
1038
|
-
if (value.bytes !== undefined)
|
|
1039
|
-
return visitor.bytes(value.bytes);
|
|
1040
|
-
if (value.s3Location !== undefined)
|
|
1041
|
-
return visitor.s3Location(value.s3Location);
|
|
1042
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1043
|
-
};
|
|
1044
|
-
})(exports.ImageSource || (exports.ImageSource = {}));
|
|
1045
|
-
exports.BedrockSessionContentBlock = void 0;
|
|
1046
|
-
(function (BedrockSessionContentBlock) {
|
|
1047
|
-
BedrockSessionContentBlock.visit = (value, visitor) => {
|
|
1048
|
-
if (value.text !== undefined)
|
|
1049
|
-
return visitor.text(value.text);
|
|
1050
|
-
if (value.image !== undefined)
|
|
1051
|
-
return visitor.image(value.image);
|
|
1052
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1053
|
-
};
|
|
1054
|
-
})(exports.BedrockSessionContentBlock || (exports.BedrockSessionContentBlock = {}));
|
|
1055
|
-
exports.InvocationStepPayload = void 0;
|
|
1056
|
-
(function (InvocationStepPayload) {
|
|
1057
|
-
InvocationStepPayload.visit = (value, visitor) => {
|
|
1058
|
-
if (value.contentBlocks !== undefined)
|
|
1059
|
-
return visitor.contentBlocks(value.contentBlocks);
|
|
1060
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1061
|
-
};
|
|
1062
|
-
})(exports.InvocationStepPayload || (exports.InvocationStepPayload = {}));
|
|
1063
|
-
exports.RetrievalFilter = void 0;
|
|
1064
|
-
(function (RetrievalFilter) {
|
|
1065
|
-
RetrievalFilter.visit = (value, visitor) => {
|
|
1066
|
-
if (value.equals !== undefined)
|
|
1067
|
-
return visitor.equals(value.equals);
|
|
1068
|
-
if (value.notEquals !== undefined)
|
|
1069
|
-
return visitor.notEquals(value.notEquals);
|
|
1070
|
-
if (value.greaterThan !== undefined)
|
|
1071
|
-
return visitor.greaterThan(value.greaterThan);
|
|
1072
|
-
if (value.greaterThanOrEquals !== undefined)
|
|
1073
|
-
return visitor.greaterThanOrEquals(value.greaterThanOrEquals);
|
|
1074
|
-
if (value.lessThan !== undefined)
|
|
1075
|
-
return visitor.lessThan(value.lessThan);
|
|
1076
|
-
if (value.lessThanOrEquals !== undefined)
|
|
1077
|
-
return visitor.lessThanOrEquals(value.lessThanOrEquals);
|
|
1078
|
-
if (value.in !== undefined)
|
|
1079
|
-
return visitor.in(value.in);
|
|
1080
|
-
if (value.notIn !== undefined)
|
|
1081
|
-
return visitor.notIn(value.notIn);
|
|
1082
|
-
if (value.startsWith !== undefined)
|
|
1083
|
-
return visitor.startsWith(value.startsWith);
|
|
1084
|
-
if (value.listContains !== undefined)
|
|
1085
|
-
return visitor.listContains(value.listContains);
|
|
1086
|
-
if (value.stringContains !== undefined)
|
|
1087
|
-
return visitor.stringContains(value.stringContains);
|
|
1088
|
-
if (value.andAll !== undefined)
|
|
1089
|
-
return visitor.andAll(value.andAll);
|
|
1090
|
-
if (value.orAll !== undefined)
|
|
1091
|
-
return visitor.orAll(value.orAll);
|
|
1092
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
1093
|
-
};
|
|
1094
|
-
})(exports.RetrievalFilter || (exports.RetrievalFilter = {}));
|
|
1095
579
|
|
|
1096
580
|
const _A = "Attribution";
|
|
1097
581
|
const _AAG = "AgentActionGroup";
|