@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.
@@ -14,16 +14,6 @@ export class AccessDeniedException extends __BaseException {
14
14
  export const CustomControlMethod = {
15
15
  RETURN_CONTROL: "RETURN_CONTROL",
16
16
  };
17
- export var ActionGroupExecutor;
18
- (function (ActionGroupExecutor) {
19
- ActionGroupExecutor.visit = (value, visitor) => {
20
- if (value.lambda !== undefined)
21
- return visitor.lambda(value.lambda);
22
- if (value.customControl !== undefined)
23
- return visitor.customControl(value.customControl);
24
- return visitor._(value.$unknown[0], value.$unknown[1]);
25
- };
26
- })(ActionGroupExecutor || (ActionGroupExecutor = {}));
27
17
  export const ExecutionType = {
28
18
  LAMBDA: "LAMBDA",
29
19
  RETURN_CONTROL: "RETURN_CONTROL",
@@ -40,16 +30,6 @@ export const ActionInvocationType = {
40
30
  USER_CONFIRMATION: "USER_CONFIRMATION",
41
31
  USER_CONFIRMATION_AND_RESULT: "USER_CONFIRMATION_AND_RESULT",
42
32
  };
43
- export var APISchema;
44
- (function (APISchema) {
45
- APISchema.visit = (value, visitor) => {
46
- if (value.s3 !== undefined)
47
- return visitor.s3(value.s3);
48
- if (value.payload !== undefined)
49
- return visitor.payload(value.payload);
50
- return visitor._(value.$unknown[0], value.$unknown[1]);
51
- };
52
- })(APISchema || (APISchema = {}));
53
33
  export const ParameterType = {
54
34
  ARRAY: "array",
55
35
  BOOLEAN: "boolean",
@@ -61,14 +41,6 @@ export const RequireConfirmation = {
61
41
  DISABLED: "DISABLED",
62
42
  ENABLED: "ENABLED",
63
43
  };
64
- export var FunctionSchema;
65
- (function (FunctionSchema) {
66
- FunctionSchema.visit = (value, visitor) => {
67
- if (value.functions !== undefined)
68
- return visitor.functions(value.functions);
69
- return visitor._(value.$unknown[0], value.$unknown[1]);
70
- };
71
- })(FunctionSchema || (FunctionSchema = {}));
72
44
  export const AgentCollaboration = {
73
45
  DISABLED: "DISABLED",
74
46
  SUPERVISOR: "SUPERVISOR",
@@ -84,50 +56,14 @@ export const ImageInputFormat = {
84
56
  PNG: "png",
85
57
  WEBP: "webp",
86
58
  };
87
- export var ImageInputSource;
88
- (function (ImageInputSource) {
89
- ImageInputSource.visit = (value, visitor) => {
90
- if (value.bytes !== undefined)
91
- return visitor.bytes(value.bytes);
92
- return visitor._(value.$unknown[0], value.$unknown[1]);
93
- };
94
- })(ImageInputSource || (ImageInputSource = {}));
95
59
  export const ResponseState = {
96
60
  FAILURE: "FAILURE",
97
61
  REPROMPT: "REPROMPT",
98
62
  };
99
- export var InvocationResultMember;
100
- (function (InvocationResultMember) {
101
- InvocationResultMember.visit = (value, visitor) => {
102
- if (value.apiResult !== undefined)
103
- return visitor.apiResult(value.apiResult);
104
- if (value.functionResult !== undefined)
105
- return visitor.functionResult(value.functionResult);
106
- return visitor._(value.$unknown[0], value.$unknown[1]);
107
- };
108
- })(InvocationResultMember || (InvocationResultMember = {}));
109
63
  export const PayloadType = {
110
64
  RETURN_CONTROL: "RETURN_CONTROL",
111
65
  TEXT: "TEXT",
112
66
  };
113
- export var InvocationInputMember;
114
- (function (InvocationInputMember) {
115
- InvocationInputMember.visit = (value, visitor) => {
116
- if (value.apiInvocationInput !== undefined)
117
- return visitor.apiInvocationInput(value.apiInvocationInput);
118
- if (value.functionInvocationInput !== undefined)
119
- return visitor.functionInvocationInput(value.functionInvocationInput);
120
- return visitor._(value.$unknown[0], value.$unknown[1]);
121
- };
122
- })(InvocationInputMember || (InvocationInputMember = {}));
123
- export var Caller;
124
- (function (Caller) {
125
- Caller.visit = (value, visitor) => {
126
- if (value.agentAliasArn !== undefined)
127
- return visitor.agentAliasArn(value.agentAliasArn);
128
- return visitor._(value.$unknown[0], value.$unknown[1]);
129
- };
130
- })(Caller || (Caller = {}));
131
67
  export const GuardrailAction = {
132
68
  INTERVENED: "INTERVENED",
133
69
  NONE: "NONE",
@@ -216,16 +152,6 @@ export const PromptType = {
216
152
  PRE_PROCESSING: "PRE_PROCESSING",
217
153
  ROUTING_CLASSIFIER: "ROUTING_CLASSIFIER",
218
154
  };
219
- export var ReasoningContentBlock;
220
- (function (ReasoningContentBlock) {
221
- ReasoningContentBlock.visit = (value, visitor) => {
222
- if (value.reasoningText !== undefined)
223
- return visitor.reasoningText(value.reasoningText);
224
- if (value.redactedContent !== undefined)
225
- return visitor.redactedContent(value.redactedContent);
226
- return visitor._(value.$unknown[0], value.$unknown[1]);
227
- };
228
- })(ReasoningContentBlock || (ReasoningContentBlock = {}));
229
155
  export const RetrievalResultContentColumnType = {
230
156
  BLOB: "BLOB",
231
157
  BOOLEAN: "BOOLEAN",
@@ -262,76 +188,6 @@ export const Type = {
262
188
  KNOWLEDGE_BASE: "KNOWLEDGE_BASE",
263
189
  REPROMPT: "REPROMPT",
264
190
  };
265
- export var OrchestrationTrace;
266
- (function (OrchestrationTrace) {
267
- OrchestrationTrace.visit = (value, visitor) => {
268
- if (value.rationale !== undefined)
269
- return visitor.rationale(value.rationale);
270
- if (value.invocationInput !== undefined)
271
- return visitor.invocationInput(value.invocationInput);
272
- if (value.observation !== undefined)
273
- return visitor.observation(value.observation);
274
- if (value.modelInvocationInput !== undefined)
275
- return visitor.modelInvocationInput(value.modelInvocationInput);
276
- if (value.modelInvocationOutput !== undefined)
277
- return visitor.modelInvocationOutput(value.modelInvocationOutput);
278
- return visitor._(value.$unknown[0], value.$unknown[1]);
279
- };
280
- })(OrchestrationTrace || (OrchestrationTrace = {}));
281
- export var PostProcessingTrace;
282
- (function (PostProcessingTrace) {
283
- PostProcessingTrace.visit = (value, visitor) => {
284
- if (value.modelInvocationInput !== undefined)
285
- return visitor.modelInvocationInput(value.modelInvocationInput);
286
- if (value.modelInvocationOutput !== undefined)
287
- return visitor.modelInvocationOutput(value.modelInvocationOutput);
288
- return visitor._(value.$unknown[0], value.$unknown[1]);
289
- };
290
- })(PostProcessingTrace || (PostProcessingTrace = {}));
291
- export var PreProcessingTrace;
292
- (function (PreProcessingTrace) {
293
- PreProcessingTrace.visit = (value, visitor) => {
294
- if (value.modelInvocationInput !== undefined)
295
- return visitor.modelInvocationInput(value.modelInvocationInput);
296
- if (value.modelInvocationOutput !== undefined)
297
- return visitor.modelInvocationOutput(value.modelInvocationOutput);
298
- return visitor._(value.$unknown[0], value.$unknown[1]);
299
- };
300
- })(PreProcessingTrace || (PreProcessingTrace = {}));
301
- export var RoutingClassifierTrace;
302
- (function (RoutingClassifierTrace) {
303
- RoutingClassifierTrace.visit = (value, visitor) => {
304
- if (value.invocationInput !== undefined)
305
- return visitor.invocationInput(value.invocationInput);
306
- if (value.observation !== undefined)
307
- return visitor.observation(value.observation);
308
- if (value.modelInvocationInput !== undefined)
309
- return visitor.modelInvocationInput(value.modelInvocationInput);
310
- if (value.modelInvocationOutput !== undefined)
311
- return visitor.modelInvocationOutput(value.modelInvocationOutput);
312
- return visitor._(value.$unknown[0], value.$unknown[1]);
313
- };
314
- })(RoutingClassifierTrace || (RoutingClassifierTrace = {}));
315
- export var Trace;
316
- (function (Trace) {
317
- Trace.visit = (value, visitor) => {
318
- if (value.guardrailTrace !== undefined)
319
- return visitor.guardrailTrace(value.guardrailTrace);
320
- if (value.preProcessingTrace !== undefined)
321
- return visitor.preProcessingTrace(value.preProcessingTrace);
322
- if (value.orchestrationTrace !== undefined)
323
- return visitor.orchestrationTrace(value.orchestrationTrace);
324
- if (value.postProcessingTrace !== undefined)
325
- return visitor.postProcessingTrace(value.postProcessingTrace);
326
- if (value.routingClassifierTrace !== undefined)
327
- return visitor.routingClassifierTrace(value.routingClassifierTrace);
328
- if (value.failureTrace !== undefined)
329
- return visitor.failureTrace(value.failureTrace);
330
- if (value.customOrchestrationTrace !== undefined)
331
- return visitor.customOrchestrationTrace(value.customOrchestrationTrace);
332
- return visitor._(value.$unknown[0], value.$unknown[1]);
333
- };
334
- })(Trace || (Trace = {}));
335
191
  export class InternalServerException extends __BaseException {
336
192
  name = "InternalServerException";
337
193
  $fault = "server";
@@ -401,22 +257,6 @@ export const FlowErrorCode = {
401
257
  NODE_EXECUTION_FAILED: "NODE_EXECUTION_FAILED",
402
258
  VALIDATION: "VALIDATION",
403
259
  };
404
- export var FlowExecutionContent;
405
- (function (FlowExecutionContent) {
406
- FlowExecutionContent.visit = (value, visitor) => {
407
- if (value.document !== undefined)
408
- return visitor.document(value.document);
409
- return visitor._(value.$unknown[0], value.$unknown[1]);
410
- };
411
- })(FlowExecutionContent || (FlowExecutionContent = {}));
412
- export var NodeTraceElements;
413
- (function (NodeTraceElements) {
414
- NodeTraceElements.visit = (value, visitor) => {
415
- if (value.agentTraces !== undefined)
416
- return visitor.agentTraces(value.agentTraces);
417
- return visitor._(value.$unknown[0], value.$unknown[1]);
418
- };
419
- })(NodeTraceElements || (NodeTraceElements = {}));
420
260
  export const NodeErrorCode = {
421
261
  BAD_GATEWAY: "BAD_GATEWAY",
422
262
  DEPENDENCY_FAILED: "DEPENDENCY_FAILED",
@@ -428,14 +268,6 @@ export const FlowNodeInputCategory = {
428
268
  LOOP_CONDITION: "LoopCondition",
429
269
  RETURN_VALUE_TO_LOOP_START: "ReturnValueToLoopStart",
430
270
  };
431
- export var NodeExecutionContent;
432
- (function (NodeExecutionContent) {
433
- NodeExecutionContent.visit = (value, visitor) => {
434
- if (value.document !== undefined)
435
- return visitor.document(value.document);
436
- return visitor._(value.$unknown[0], value.$unknown[1]);
437
- };
438
- })(NodeExecutionContent || (NodeExecutionContent = {}));
439
271
  export const FlowControlNodeType = {
440
272
  ITERATOR: "Iterator",
441
273
  LOOP: "Loop",
@@ -447,30 +279,6 @@ export const FlowNodeIODataType = {
447
279
  OBJECT: "Object",
448
280
  STRING: "String",
449
281
  };
450
- export var FlowExecutionEvent;
451
- (function (FlowExecutionEvent) {
452
- FlowExecutionEvent.visit = (value, visitor) => {
453
- if (value.flowInputEvent !== undefined)
454
- return visitor.flowInputEvent(value.flowInputEvent);
455
- if (value.flowOutputEvent !== undefined)
456
- return visitor.flowOutputEvent(value.flowOutputEvent);
457
- if (value.nodeInputEvent !== undefined)
458
- return visitor.nodeInputEvent(value.nodeInputEvent);
459
- if (value.nodeOutputEvent !== undefined)
460
- return visitor.nodeOutputEvent(value.nodeOutputEvent);
461
- if (value.conditionResultEvent !== undefined)
462
- return visitor.conditionResultEvent(value.conditionResultEvent);
463
- if (value.nodeFailureEvent !== undefined)
464
- return visitor.nodeFailureEvent(value.nodeFailureEvent);
465
- if (value.flowFailureEvent !== undefined)
466
- return visitor.flowFailureEvent(value.flowFailureEvent);
467
- if (value.nodeActionEvent !== undefined)
468
- return visitor.nodeActionEvent(value.nodeActionEvent);
469
- if (value.nodeDependencyEvent !== undefined)
470
- return visitor.nodeDependencyEvent(value.nodeDependencyEvent);
471
- return visitor._(value.$unknown[0], value.$unknown[1]);
472
- };
473
- })(FlowExecutionEvent || (FlowExecutionEvent = {}));
474
282
  export class BadGatewayException extends __BaseException {
475
283
  name = "BadGatewayException";
476
284
  $fault = "server";
@@ -523,14 +331,6 @@ export class ServiceQuotaExceededException extends __BaseException {
523
331
  Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
524
332
  }
525
333
  }
526
- export var FlowInputContent;
527
- (function (FlowInputContent) {
528
- FlowInputContent.visit = (value, visitor) => {
529
- if (value.document !== undefined)
530
- return visitor.document(value.document);
531
- return visitor._(value.$unknown[0], value.$unknown[1]);
532
- };
533
- })(FlowInputContent || (FlowInputContent = {}));
534
334
  export const PerformanceConfigLatency = {
535
335
  OPTIMIZED: "optimized",
536
336
  STANDARD: "standard",
@@ -539,14 +339,6 @@ export const FlowCompletionReason = {
539
339
  INPUT_REQUIRED: "INPUT_REQUIRED",
540
340
  SUCCESS: "SUCCESS",
541
341
  };
542
- export var FlowMultiTurnInputContent;
543
- (function (FlowMultiTurnInputContent) {
544
- FlowMultiTurnInputContent.visit = (value, visitor) => {
545
- if (value.document !== undefined)
546
- return visitor.document(value.document);
547
- return visitor._(value.$unknown[0], value.$unknown[1]);
548
- };
549
- })(FlowMultiTurnInputContent || (FlowMultiTurnInputContent = {}));
550
342
  export const NodeType = {
551
343
  CONDITION_NODE: "ConditionNode",
552
344
  FLOW_INPUT_NODE: "FlowInputNode",
@@ -556,86 +348,6 @@ export const NodeType = {
556
348
  LEX_NODE: "LexNode",
557
349
  PROMPT_NODE: "PromptNode",
558
350
  };
559
- export var FlowOutputContent;
560
- (function (FlowOutputContent) {
561
- FlowOutputContent.visit = (value, visitor) => {
562
- if (value.document !== undefined)
563
- return visitor.document(value.document);
564
- return visitor._(value.$unknown[0], value.$unknown[1]);
565
- };
566
- })(FlowOutputContent || (FlowOutputContent = {}));
567
- export var TraceElements;
568
- (function (TraceElements) {
569
- TraceElements.visit = (value, visitor) => {
570
- if (value.agentTraces !== undefined)
571
- return visitor.agentTraces(value.agentTraces);
572
- return visitor._(value.$unknown[0], value.$unknown[1]);
573
- };
574
- })(TraceElements || (TraceElements = {}));
575
- export var FlowTraceNodeInputContent;
576
- (function (FlowTraceNodeInputContent) {
577
- FlowTraceNodeInputContent.visit = (value, visitor) => {
578
- if (value.document !== undefined)
579
- return visitor.document(value.document);
580
- return visitor._(value.$unknown[0], value.$unknown[1]);
581
- };
582
- })(FlowTraceNodeInputContent || (FlowTraceNodeInputContent = {}));
583
- export var FlowTraceNodeOutputContent;
584
- (function (FlowTraceNodeOutputContent) {
585
- FlowTraceNodeOutputContent.visit = (value, visitor) => {
586
- if (value.document !== undefined)
587
- return visitor.document(value.document);
588
- return visitor._(value.$unknown[0], value.$unknown[1]);
589
- };
590
- })(FlowTraceNodeOutputContent || (FlowTraceNodeOutputContent = {}));
591
- export var FlowTrace;
592
- (function (FlowTrace) {
593
- FlowTrace.visit = (value, visitor) => {
594
- if (value.nodeInputTrace !== undefined)
595
- return visitor.nodeInputTrace(value.nodeInputTrace);
596
- if (value.nodeOutputTrace !== undefined)
597
- return visitor.nodeOutputTrace(value.nodeOutputTrace);
598
- if (value.conditionNodeResultTrace !== undefined)
599
- return visitor.conditionNodeResultTrace(value.conditionNodeResultTrace);
600
- if (value.nodeActionTrace !== undefined)
601
- return visitor.nodeActionTrace(value.nodeActionTrace);
602
- if (value.nodeDependencyTrace !== undefined)
603
- return visitor.nodeDependencyTrace(value.nodeDependencyTrace);
604
- return visitor._(value.$unknown[0], value.$unknown[1]);
605
- };
606
- })(FlowTrace || (FlowTrace = {}));
607
- export var FlowResponseStream;
608
- (function (FlowResponseStream) {
609
- FlowResponseStream.visit = (value, visitor) => {
610
- if (value.flowOutputEvent !== undefined)
611
- return visitor.flowOutputEvent(value.flowOutputEvent);
612
- if (value.flowCompletionEvent !== undefined)
613
- return visitor.flowCompletionEvent(value.flowCompletionEvent);
614
- if (value.flowTraceEvent !== undefined)
615
- return visitor.flowTraceEvent(value.flowTraceEvent);
616
- if (value.internalServerException !== undefined)
617
- return visitor.internalServerException(value.internalServerException);
618
- if (value.validationException !== undefined)
619
- return visitor.validationException(value.validationException);
620
- if (value.resourceNotFoundException !== undefined)
621
- return visitor.resourceNotFoundException(value.resourceNotFoundException);
622
- if (value.serviceQuotaExceededException !== undefined)
623
- return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
624
- if (value.throttlingException !== undefined)
625
- return visitor.throttlingException(value.throttlingException);
626
- if (value.accessDeniedException !== undefined)
627
- return visitor.accessDeniedException(value.accessDeniedException);
628
- if (value.conflictException !== undefined)
629
- return visitor.conflictException(value.conflictException);
630
- if (value.dependencyFailedException !== undefined)
631
- return visitor.dependencyFailedException(value.dependencyFailedException);
632
- if (value.badGatewayException !== undefined)
633
- return visitor.badGatewayException(value.badGatewayException);
634
- if (value.flowMultiTurnInputRequestEvent !== undefined)
635
- return visitor.flowMultiTurnInputRequestEvent(value.flowMultiTurnInputRequestEvent);
636
- return visitor._(value.$unknown[0], value.$unknown[1]);
637
- };
638
- })(FlowResponseStream || (FlowResponseStream = {}));
639
351
  export const InputQueryType = {
640
352
  TEXT: "TEXT",
641
353
  };
@@ -648,14 +360,6 @@ export const TextToSqlConfigurationType = {
648
360
  export const GeneratedQueryType = {
649
361
  REDSHIFT_SQL: "REDSHIFT_SQL",
650
362
  };
651
- export var ContentBlock;
652
- (function (ContentBlock) {
653
- ContentBlock.visit = (value, visitor) => {
654
- if (value.text !== undefined)
655
- return visitor.text(value.text);
656
- return visitor._(value.$unknown[0], value.$unknown[1]);
657
- };
658
- })(ContentBlock || (ContentBlock = {}));
659
363
  export const ConversationRole = {
660
364
  ASSISTANT: "assistant",
661
365
  USER: "user",
@@ -682,16 +386,6 @@ export const RerankingMetadataSelectionMode = {
682
386
  ALL: "ALL",
683
387
  SELECTIVE: "SELECTIVE",
684
388
  };
685
- export var RerankingMetadataSelectiveModeConfiguration;
686
- (function (RerankingMetadataSelectiveModeConfiguration) {
687
- RerankingMetadataSelectiveModeConfiguration.visit = (value, visitor) => {
688
- if (value.fieldsToInclude !== undefined)
689
- return visitor.fieldsToInclude(value.fieldsToInclude);
690
- if (value.fieldsToExclude !== undefined)
691
- return visitor.fieldsToExclude(value.fieldsToExclude);
692
- return visitor._(value.$unknown[0], value.$unknown[1]);
693
- };
694
- })(RerankingMetadataSelectiveModeConfiguration || (RerankingMetadataSelectiveModeConfiguration = {}));
695
389
  export const VectorSearchRerankingConfigurationType = {
696
390
  BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL",
697
391
  };
@@ -707,40 +401,6 @@ export class ModelNotReadyException extends __BaseException {
707
401
  Object.setPrototypeOf(this, ModelNotReadyException.prototype);
708
402
  }
709
403
  }
710
- export var ResponseStream;
711
- (function (ResponseStream) {
712
- ResponseStream.visit = (value, visitor) => {
713
- if (value.chunk !== undefined)
714
- return visitor.chunk(value.chunk);
715
- if (value.trace !== undefined)
716
- return visitor.trace(value.trace);
717
- if (value.returnControl !== undefined)
718
- return visitor.returnControl(value.returnControl);
719
- if (value.internalServerException !== undefined)
720
- return visitor.internalServerException(value.internalServerException);
721
- if (value.validationException !== undefined)
722
- return visitor.validationException(value.validationException);
723
- if (value.resourceNotFoundException !== undefined)
724
- return visitor.resourceNotFoundException(value.resourceNotFoundException);
725
- if (value.serviceQuotaExceededException !== undefined)
726
- return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
727
- if (value.throttlingException !== undefined)
728
- return visitor.throttlingException(value.throttlingException);
729
- if (value.accessDeniedException !== undefined)
730
- return visitor.accessDeniedException(value.accessDeniedException);
731
- if (value.conflictException !== undefined)
732
- return visitor.conflictException(value.conflictException);
733
- if (value.dependencyFailedException !== undefined)
734
- return visitor.dependencyFailedException(value.dependencyFailedException);
735
- if (value.badGatewayException !== undefined)
736
- return visitor.badGatewayException(value.badGatewayException);
737
- if (value.modelNotReadyException !== undefined)
738
- return visitor.modelNotReadyException(value.modelNotReadyException);
739
- if (value.files !== undefined)
740
- return visitor.files(value.files);
741
- return visitor._(value.$unknown[0], value.$unknown[1]);
742
- };
743
- })(ResponseStream || (ResponseStream = {}));
744
404
  export const RelayConversationHistory = {
745
405
  DISABLED: "DISABLED",
746
406
  TO_COLLABORATOR: "TO_COLLABORATOR",
@@ -749,99 +409,13 @@ export const PromptState = {
749
409
  DISABLED: "DISABLED",
750
410
  ENABLED: "ENABLED",
751
411
  };
752
- export var OrchestrationExecutor;
753
- (function (OrchestrationExecutor) {
754
- OrchestrationExecutor.visit = (value, visitor) => {
755
- if (value.lambda !== undefined)
756
- return visitor.lambda(value.lambda);
757
- return visitor._(value.$unknown[0], value.$unknown[1]);
758
- };
759
- })(OrchestrationExecutor || (OrchestrationExecutor = {}));
760
412
  export const OrchestrationType = {
761
413
  CUSTOM_ORCHESTRATION: "CUSTOM_ORCHESTRATION",
762
414
  DEFAULT: "DEFAULT",
763
415
  };
764
- export var InlineAgentResponseStream;
765
- (function (InlineAgentResponseStream) {
766
- InlineAgentResponseStream.visit = (value, visitor) => {
767
- if (value.chunk !== undefined)
768
- return visitor.chunk(value.chunk);
769
- if (value.trace !== undefined)
770
- return visitor.trace(value.trace);
771
- if (value.returnControl !== undefined)
772
- return visitor.returnControl(value.returnControl);
773
- if (value.internalServerException !== undefined)
774
- return visitor.internalServerException(value.internalServerException);
775
- if (value.validationException !== undefined)
776
- return visitor.validationException(value.validationException);
777
- if (value.resourceNotFoundException !== undefined)
778
- return visitor.resourceNotFoundException(value.resourceNotFoundException);
779
- if (value.serviceQuotaExceededException !== undefined)
780
- return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
781
- if (value.throttlingException !== undefined)
782
- return visitor.throttlingException(value.throttlingException);
783
- if (value.accessDeniedException !== undefined)
784
- return visitor.accessDeniedException(value.accessDeniedException);
785
- if (value.conflictException !== undefined)
786
- return visitor.conflictException(value.conflictException);
787
- if (value.dependencyFailedException !== undefined)
788
- return visitor.dependencyFailedException(value.dependencyFailedException);
789
- if (value.badGatewayException !== undefined)
790
- return visitor.badGatewayException(value.badGatewayException);
791
- if (value.files !== undefined)
792
- return visitor.files(value.files);
793
- return visitor._(value.$unknown[0], value.$unknown[1]);
794
- };
795
- })(InlineAgentResponseStream || (InlineAgentResponseStream = {}));
796
416
  export const MemoryType = {
797
417
  SESSION_SUMMARY: "SESSION_SUMMARY",
798
418
  };
799
- export var Memory;
800
- (function (Memory) {
801
- Memory.visit = (value, visitor) => {
802
- if (value.sessionSummary !== undefined)
803
- return visitor.sessionSummary(value.sessionSummary);
804
- return visitor._(value.$unknown[0], value.$unknown[1]);
805
- };
806
- })(Memory || (Memory = {}));
807
- export var InputPrompt;
808
- (function (InputPrompt) {
809
- InputPrompt.visit = (value, visitor) => {
810
- if (value.textPrompt !== undefined)
811
- return visitor.textPrompt(value.textPrompt);
812
- return visitor._(value.$unknown[0], value.$unknown[1]);
813
- };
814
- })(InputPrompt || (InputPrompt = {}));
815
- export var OptimizedPrompt;
816
- (function (OptimizedPrompt) {
817
- OptimizedPrompt.visit = (value, visitor) => {
818
- if (value.textPrompt !== undefined)
819
- return visitor.textPrompt(value.textPrompt);
820
- return visitor._(value.$unknown[0], value.$unknown[1]);
821
- };
822
- })(OptimizedPrompt || (OptimizedPrompt = {}));
823
- export var OptimizedPromptStream;
824
- (function (OptimizedPromptStream) {
825
- OptimizedPromptStream.visit = (value, visitor) => {
826
- if (value.optimizedPromptEvent !== undefined)
827
- return visitor.optimizedPromptEvent(value.optimizedPromptEvent);
828
- if (value.analyzePromptEvent !== undefined)
829
- return visitor.analyzePromptEvent(value.analyzePromptEvent);
830
- if (value.internalServerException !== undefined)
831
- return visitor.internalServerException(value.internalServerException);
832
- if (value.throttlingException !== undefined)
833
- return visitor.throttlingException(value.throttlingException);
834
- if (value.validationException !== undefined)
835
- return visitor.validationException(value.validationException);
836
- if (value.dependencyFailedException !== undefined)
837
- return visitor.dependencyFailedException(value.dependencyFailedException);
838
- if (value.accessDeniedException !== undefined)
839
- return visitor.accessDeniedException(value.accessDeniedException);
840
- if (value.badGatewayException !== undefined)
841
- return visitor.badGatewayException(value.badGatewayException);
842
- return visitor._(value.$unknown[0], value.$unknown[1]);
843
- };
844
- })(OptimizedPromptStream || (OptimizedPromptStream = {}));
845
419
  export const RerankQueryContentType = {
846
420
  TEXT: "TEXT",
847
421
  };
@@ -13,36 +13,6 @@ export const GuadrailAction = {
13
13
  INTERVENED: "INTERVENED",
14
14
  NONE: "NONE",
15
15
  };
16
- export var RetrieveAndGenerateStreamResponseOutput;
17
- (function (RetrieveAndGenerateStreamResponseOutput) {
18
- RetrieveAndGenerateStreamResponseOutput.visit = (value, visitor) => {
19
- if (value.output !== undefined)
20
- return visitor.output(value.output);
21
- if (value.citation !== undefined)
22
- return visitor.citation(value.citation);
23
- if (value.guardrail !== undefined)
24
- return visitor.guardrail(value.guardrail);
25
- if (value.internalServerException !== undefined)
26
- return visitor.internalServerException(value.internalServerException);
27
- if (value.validationException !== undefined)
28
- return visitor.validationException(value.validationException);
29
- if (value.resourceNotFoundException !== undefined)
30
- return visitor.resourceNotFoundException(value.resourceNotFoundException);
31
- if (value.serviceQuotaExceededException !== undefined)
32
- return visitor.serviceQuotaExceededException(value.serviceQuotaExceededException);
33
- if (value.throttlingException !== undefined)
34
- return visitor.throttlingException(value.throttlingException);
35
- if (value.accessDeniedException !== undefined)
36
- return visitor.accessDeniedException(value.accessDeniedException);
37
- if (value.conflictException !== undefined)
38
- return visitor.conflictException(value.conflictException);
39
- if (value.dependencyFailedException !== undefined)
40
- return visitor.dependencyFailedException(value.dependencyFailedException);
41
- if (value.badGatewayException !== undefined)
42
- return visitor.badGatewayException(value.badGatewayException);
43
- return visitor._(value.$unknown[0], value.$unknown[1]);
44
- };
45
- })(RetrieveAndGenerateStreamResponseOutput || (RetrieveAndGenerateStreamResponseOutput = {}));
46
16
  export const SessionStatus = {
47
17
  ACTIVE: "ACTIVE",
48
18
  ENDED: "ENDED",
@@ -54,63 +24,3 @@ export const ImageFormat = {
54
24
  PNG: "png",
55
25
  WEBP: "webp",
56
26
  };
57
- export var ImageSource;
58
- (function (ImageSource) {
59
- ImageSource.visit = (value, visitor) => {
60
- if (value.bytes !== undefined)
61
- return visitor.bytes(value.bytes);
62
- if (value.s3Location !== undefined)
63
- return visitor.s3Location(value.s3Location);
64
- return visitor._(value.$unknown[0], value.$unknown[1]);
65
- };
66
- })(ImageSource || (ImageSource = {}));
67
- export var BedrockSessionContentBlock;
68
- (function (BedrockSessionContentBlock) {
69
- BedrockSessionContentBlock.visit = (value, visitor) => {
70
- if (value.text !== undefined)
71
- return visitor.text(value.text);
72
- if (value.image !== undefined)
73
- return visitor.image(value.image);
74
- return visitor._(value.$unknown[0], value.$unknown[1]);
75
- };
76
- })(BedrockSessionContentBlock || (BedrockSessionContentBlock = {}));
77
- export var InvocationStepPayload;
78
- (function (InvocationStepPayload) {
79
- InvocationStepPayload.visit = (value, visitor) => {
80
- if (value.contentBlocks !== undefined)
81
- return visitor.contentBlocks(value.contentBlocks);
82
- return visitor._(value.$unknown[0], value.$unknown[1]);
83
- };
84
- })(InvocationStepPayload || (InvocationStepPayload = {}));
85
- export var RetrievalFilter;
86
- (function (RetrievalFilter) {
87
- RetrievalFilter.visit = (value, visitor) => {
88
- if (value.equals !== undefined)
89
- return visitor.equals(value.equals);
90
- if (value.notEquals !== undefined)
91
- return visitor.notEquals(value.notEquals);
92
- if (value.greaterThan !== undefined)
93
- return visitor.greaterThan(value.greaterThan);
94
- if (value.greaterThanOrEquals !== undefined)
95
- return visitor.greaterThanOrEquals(value.greaterThanOrEquals);
96
- if (value.lessThan !== undefined)
97
- return visitor.lessThan(value.lessThan);
98
- if (value.lessThanOrEquals !== undefined)
99
- return visitor.lessThanOrEquals(value.lessThanOrEquals);
100
- if (value.in !== undefined)
101
- return visitor.in(value.in);
102
- if (value.notIn !== undefined)
103
- return visitor.notIn(value.notIn);
104
- if (value.startsWith !== undefined)
105
- return visitor.startsWith(value.startsWith);
106
- if (value.listContains !== undefined)
107
- return visitor.listContains(value.listContains);
108
- if (value.stringContains !== undefined)
109
- return visitor.stringContains(value.stringContains);
110
- if (value.andAll !== undefined)
111
- return visitor.andAll(value.andAll);
112
- if (value.orAll !== undefined)
113
- return visitor.orAll(value.orAll);
114
- return visitor._(value.$unknown[0], value.$unknown[1]);
115
- };
116
- })(RetrievalFilter || (RetrievalFilter = {}));