@aws-sdk/client-bedrock-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.
@@ -11,14 +11,6 @@ export class AccessDeniedException extends __BaseException {
11
11
  Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
12
  }
13
13
  }
14
- export var AsyncInvokeOutputDataConfig;
15
- (function (AsyncInvokeOutputDataConfig) {
16
- AsyncInvokeOutputDataConfig.visit = (value, visitor) => {
17
- if (value.s3OutputDataConfig !== undefined)
18
- return visitor.s3OutputDataConfig(value.s3OutputDataConfig);
19
- return visitor._(value.$unknown[0], value.$unknown[1]);
20
- };
21
- })(AsyncInvokeOutputDataConfig || (AsyncInvokeOutputDataConfig = {}));
22
14
  export const AsyncInvokeStatus = {
23
15
  COMPLETED: "Completed",
24
16
  FAILED: "Failed",
@@ -119,29 +111,11 @@ export const GuardrailImageFormat = {
119
111
  JPEG: "jpeg",
120
112
  PNG: "png",
121
113
  };
122
- export var GuardrailImageSource;
123
- (function (GuardrailImageSource) {
124
- GuardrailImageSource.visit = (value, visitor) => {
125
- if (value.bytes !== undefined)
126
- return visitor.bytes(value.bytes);
127
- return visitor._(value.$unknown[0], value.$unknown[1]);
128
- };
129
- })(GuardrailImageSource || (GuardrailImageSource = {}));
130
114
  export const GuardrailContentQualifier = {
131
115
  GROUNDING_SOURCE: "grounding_source",
132
116
  GUARD_CONTENT: "guard_content",
133
117
  QUERY: "query",
134
118
  };
135
- export var GuardrailContentBlock;
136
- (function (GuardrailContentBlock) {
137
- GuardrailContentBlock.visit = (value, visitor) => {
138
- if (value.text !== undefined)
139
- return visitor.text(value.text);
140
- if (value.image !== undefined)
141
- return visitor.image(value.image);
142
- return visitor._(value.$unknown[0], value.$unknown[1]);
143
- };
144
- })(GuardrailContentBlock || (GuardrailContentBlock = {}));
145
119
  export const GuardrailOutputScope = {
146
120
  FULL: "FULL",
147
121
  INTERVENTIONS: "INTERVENTIONS",
@@ -158,26 +132,6 @@ export const GuardrailAutomatedReasoningLogicWarningType = {
158
132
  ALWAYS_FALSE: "ALWAYS_FALSE",
159
133
  ALWAYS_TRUE: "ALWAYS_TRUE",
160
134
  };
161
- export var GuardrailAutomatedReasoningFinding;
162
- (function (GuardrailAutomatedReasoningFinding) {
163
- GuardrailAutomatedReasoningFinding.visit = (value, visitor) => {
164
- if (value.valid !== undefined)
165
- return visitor.valid(value.valid);
166
- if (value.invalid !== undefined)
167
- return visitor.invalid(value.invalid);
168
- if (value.satisfiable !== undefined)
169
- return visitor.satisfiable(value.satisfiable);
170
- if (value.impossible !== undefined)
171
- return visitor.impossible(value.impossible);
172
- if (value.translationAmbiguous !== undefined)
173
- return visitor.translationAmbiguous(value.translationAmbiguous);
174
- if (value.tooComplex !== undefined)
175
- return visitor.tooComplex(value.tooComplex);
176
- if (value.noTranslations !== undefined)
177
- return visitor.noTranslations(value.noTranslations);
178
- return visitor._(value.$unknown[0], value.$unknown[1]);
179
- };
180
- })(GuardrailAutomatedReasoningFinding || (GuardrailAutomatedReasoningFinding = {}));
181
135
  export const GuardrailContentPolicyAction = {
182
136
  BLOCKED: "BLOCKED",
183
137
  NONE: "NONE",
@@ -270,36 +224,6 @@ export const GuardrailTrace = {
270
224
  export const CachePointType = {
271
225
  DEFAULT: "default",
272
226
  };
273
- export var CitationLocation;
274
- (function (CitationLocation) {
275
- CitationLocation.visit = (value, visitor) => {
276
- if (value.web !== undefined)
277
- return visitor.web(value.web);
278
- if (value.documentChar !== undefined)
279
- return visitor.documentChar(value.documentChar);
280
- if (value.documentPage !== undefined)
281
- return visitor.documentPage(value.documentPage);
282
- if (value.documentChunk !== undefined)
283
- return visitor.documentChunk(value.documentChunk);
284
- return visitor._(value.$unknown[0], value.$unknown[1]);
285
- };
286
- })(CitationLocation || (CitationLocation = {}));
287
- export var CitationSourceContent;
288
- (function (CitationSourceContent) {
289
- CitationSourceContent.visit = (value, visitor) => {
290
- if (value.text !== undefined)
291
- return visitor.text(value.text);
292
- return visitor._(value.$unknown[0], value.$unknown[1]);
293
- };
294
- })(CitationSourceContent || (CitationSourceContent = {}));
295
- export var CitationGeneratedContent;
296
- (function (CitationGeneratedContent) {
297
- CitationGeneratedContent.visit = (value, visitor) => {
298
- if (value.text !== undefined)
299
- return visitor.text(value.text);
300
- return visitor._(value.$unknown[0], value.$unknown[1]);
301
- };
302
- })(CitationGeneratedContent || (CitationGeneratedContent = {}));
303
227
  export const DocumentFormat = {
304
228
  CSV: "csv",
305
229
  DOC: "doc",
@@ -311,81 +235,21 @@ export const DocumentFormat = {
311
235
  XLS: "xls",
312
236
  XLSX: "xlsx",
313
237
  };
314
- export var DocumentContentBlock;
315
- (function (DocumentContentBlock) {
316
- DocumentContentBlock.visit = (value, visitor) => {
317
- if (value.text !== undefined)
318
- return visitor.text(value.text);
319
- return visitor._(value.$unknown[0], value.$unknown[1]);
320
- };
321
- })(DocumentContentBlock || (DocumentContentBlock = {}));
322
- export var DocumentSource;
323
- (function (DocumentSource) {
324
- DocumentSource.visit = (value, visitor) => {
325
- if (value.bytes !== undefined)
326
- return visitor.bytes(value.bytes);
327
- if (value.s3Location !== undefined)
328
- return visitor.s3Location(value.s3Location);
329
- if (value.text !== undefined)
330
- return visitor.text(value.text);
331
- if (value.content !== undefined)
332
- return visitor.content(value.content);
333
- return visitor._(value.$unknown[0], value.$unknown[1]);
334
- };
335
- })(DocumentSource || (DocumentSource = {}));
336
238
  export const GuardrailConverseImageFormat = {
337
239
  JPEG: "jpeg",
338
240
  PNG: "png",
339
241
  };
340
- export var GuardrailConverseImageSource;
341
- (function (GuardrailConverseImageSource) {
342
- GuardrailConverseImageSource.visit = (value, visitor) => {
343
- if (value.bytes !== undefined)
344
- return visitor.bytes(value.bytes);
345
- return visitor._(value.$unknown[0], value.$unknown[1]);
346
- };
347
- })(GuardrailConverseImageSource || (GuardrailConverseImageSource = {}));
348
242
  export const GuardrailConverseContentQualifier = {
349
243
  GROUNDING_SOURCE: "grounding_source",
350
244
  GUARD_CONTENT: "guard_content",
351
245
  QUERY: "query",
352
246
  };
353
- export var GuardrailConverseContentBlock;
354
- (function (GuardrailConverseContentBlock) {
355
- GuardrailConverseContentBlock.visit = (value, visitor) => {
356
- if (value.text !== undefined)
357
- return visitor.text(value.text);
358
- if (value.image !== undefined)
359
- return visitor.image(value.image);
360
- return visitor._(value.$unknown[0], value.$unknown[1]);
361
- };
362
- })(GuardrailConverseContentBlock || (GuardrailConverseContentBlock = {}));
363
247
  export const ImageFormat = {
364
248
  GIF: "gif",
365
249
  JPEG: "jpeg",
366
250
  PNG: "png",
367
251
  WEBP: "webp",
368
252
  };
369
- export var ImageSource;
370
- (function (ImageSource) {
371
- ImageSource.visit = (value, visitor) => {
372
- if (value.bytes !== undefined)
373
- return visitor.bytes(value.bytes);
374
- if (value.s3Location !== undefined)
375
- return visitor.s3Location(value.s3Location);
376
- return visitor._(value.$unknown[0], value.$unknown[1]);
377
- };
378
- })(ImageSource || (ImageSource = {}));
379
- export var ReasoningContentBlock;
380
- (function (ReasoningContentBlock) {
381
- ReasoningContentBlock.visit = (value, visitor) => {
382
- if (value.reasoningText !== undefined)
383
- return visitor.reasoningText(value.reasoningText);
384
- if (value.redactedContent !== undefined)
385
- return visitor.redactedContent(value.redactedContent);
386
- return visitor._(value.$unknown[0], value.$unknown[1]);
387
- };
388
- })(ReasoningContentBlock || (ReasoningContentBlock = {}));
389
253
  export const VideoFormat = {
390
254
  FLV: "flv",
391
255
  MKV: "mkv",
@@ -397,32 +261,6 @@ export const VideoFormat = {
397
261
  WEBM: "webm",
398
262
  WMV: "wmv",
399
263
  };
400
- export var VideoSource;
401
- (function (VideoSource) {
402
- VideoSource.visit = (value, visitor) => {
403
- if (value.bytes !== undefined)
404
- return visitor.bytes(value.bytes);
405
- if (value.s3Location !== undefined)
406
- return visitor.s3Location(value.s3Location);
407
- return visitor._(value.$unknown[0], value.$unknown[1]);
408
- };
409
- })(VideoSource || (VideoSource = {}));
410
- export var ToolResultContentBlock;
411
- (function (ToolResultContentBlock) {
412
- ToolResultContentBlock.visit = (value, visitor) => {
413
- if (value.json !== undefined)
414
- return visitor.json(value.json);
415
- if (value.text !== undefined)
416
- return visitor.text(value.text);
417
- if (value.image !== undefined)
418
- return visitor.image(value.image);
419
- if (value.document !== undefined)
420
- return visitor.document(value.document);
421
- if (value.video !== undefined)
422
- return visitor.video(value.video);
423
- return visitor._(value.$unknown[0], value.$unknown[1]);
424
- };
425
- })(ToolResultContentBlock || (ToolResultContentBlock = {}));
426
264
  export const ToolResultStatus = {
427
265
  ERROR: "error",
428
266
  SUCCESS: "success",
@@ -430,32 +268,6 @@ export const ToolResultStatus = {
430
268
  export const ToolUseType = {
431
269
  SERVER_TOOL_USE: "server_tool_use",
432
270
  };
433
- export var ContentBlock;
434
- (function (ContentBlock) {
435
- ContentBlock.visit = (value, visitor) => {
436
- if (value.text !== undefined)
437
- return visitor.text(value.text);
438
- if (value.image !== undefined)
439
- return visitor.image(value.image);
440
- if (value.document !== undefined)
441
- return visitor.document(value.document);
442
- if (value.video !== undefined)
443
- return visitor.video(value.video);
444
- if (value.toolUse !== undefined)
445
- return visitor.toolUse(value.toolUse);
446
- if (value.toolResult !== undefined)
447
- return visitor.toolResult(value.toolResult);
448
- if (value.guardContent !== undefined)
449
- return visitor.guardContent(value.guardContent);
450
- if (value.cachePoint !== undefined)
451
- return visitor.cachePoint(value.cachePoint);
452
- if (value.reasoningContent !== undefined)
453
- return visitor.reasoningContent(value.reasoningContent);
454
- if (value.citationsContent !== undefined)
455
- return visitor.citationsContent(value.citationsContent);
456
- return visitor._(value.$unknown[0], value.$unknown[1]);
457
- };
458
- })(ContentBlock || (ContentBlock = {}));
459
271
  export const ConversationRole = {
460
272
  ASSISTANT: "assistant",
461
273
  USER: "user",
@@ -464,66 +276,6 @@ export const PerformanceConfigLatency = {
464
276
  OPTIMIZED: "optimized",
465
277
  STANDARD: "standard",
466
278
  };
467
- export var PromptVariableValues;
468
- (function (PromptVariableValues) {
469
- PromptVariableValues.visit = (value, visitor) => {
470
- if (value.text !== undefined)
471
- return visitor.text(value.text);
472
- return visitor._(value.$unknown[0], value.$unknown[1]);
473
- };
474
- })(PromptVariableValues || (PromptVariableValues = {}));
475
- export var SystemContentBlock;
476
- (function (SystemContentBlock) {
477
- SystemContentBlock.visit = (value, visitor) => {
478
- if (value.text !== undefined)
479
- return visitor.text(value.text);
480
- if (value.guardContent !== undefined)
481
- return visitor.guardContent(value.guardContent);
482
- if (value.cachePoint !== undefined)
483
- return visitor.cachePoint(value.cachePoint);
484
- return visitor._(value.$unknown[0], value.$unknown[1]);
485
- };
486
- })(SystemContentBlock || (SystemContentBlock = {}));
487
- export var ToolChoice;
488
- (function (ToolChoice) {
489
- ToolChoice.visit = (value, visitor) => {
490
- if (value.auto !== undefined)
491
- return visitor.auto(value.auto);
492
- if (value.any !== undefined)
493
- return visitor.any(value.any);
494
- if (value.tool !== undefined)
495
- return visitor.tool(value.tool);
496
- return visitor._(value.$unknown[0], value.$unknown[1]);
497
- };
498
- })(ToolChoice || (ToolChoice = {}));
499
- export var ToolInputSchema;
500
- (function (ToolInputSchema) {
501
- ToolInputSchema.visit = (value, visitor) => {
502
- if (value.json !== undefined)
503
- return visitor.json(value.json);
504
- return visitor._(value.$unknown[0], value.$unknown[1]);
505
- };
506
- })(ToolInputSchema || (ToolInputSchema = {}));
507
- export var Tool;
508
- (function (Tool) {
509
- Tool.visit = (value, visitor) => {
510
- if (value.toolSpec !== undefined)
511
- return visitor.toolSpec(value.toolSpec);
512
- if (value.systemTool !== undefined)
513
- return visitor.systemTool(value.systemTool);
514
- if (value.cachePoint !== undefined)
515
- return visitor.cachePoint(value.cachePoint);
516
- return visitor._(value.$unknown[0], value.$unknown[1]);
517
- };
518
- })(Tool || (Tool = {}));
519
- export var ConverseOutput;
520
- (function (ConverseOutput) {
521
- ConverseOutput.visit = (value, visitor) => {
522
- if (value.message !== undefined)
523
- return visitor.message(value.message);
524
- return visitor._(value.$unknown[0], value.$unknown[1]);
525
- };
526
- })(ConverseOutput || (ConverseOutput = {}));
527
279
  export const StopReason = {
528
280
  CONTENT_FILTERED: "content_filtered",
529
281
  END_TURN: "end_turn",
@@ -578,52 +330,6 @@ export const GuardrailStreamProcessingMode = {
578
330
  ASYNC: "async",
579
331
  SYNC: "sync",
580
332
  };
581
- export var ReasoningContentBlockDelta;
582
- (function (ReasoningContentBlockDelta) {
583
- ReasoningContentBlockDelta.visit = (value, visitor) => {
584
- if (value.text !== undefined)
585
- return visitor.text(value.text);
586
- if (value.redactedContent !== undefined)
587
- return visitor.redactedContent(value.redactedContent);
588
- if (value.signature !== undefined)
589
- return visitor.signature(value.signature);
590
- return visitor._(value.$unknown[0], value.$unknown[1]);
591
- };
592
- })(ReasoningContentBlockDelta || (ReasoningContentBlockDelta = {}));
593
- export var ToolResultBlockDelta;
594
- (function (ToolResultBlockDelta) {
595
- ToolResultBlockDelta.visit = (value, visitor) => {
596
- if (value.text !== undefined)
597
- return visitor.text(value.text);
598
- return visitor._(value.$unknown[0], value.$unknown[1]);
599
- };
600
- })(ToolResultBlockDelta || (ToolResultBlockDelta = {}));
601
- export var ContentBlockDelta;
602
- (function (ContentBlockDelta) {
603
- ContentBlockDelta.visit = (value, visitor) => {
604
- if (value.text !== undefined)
605
- return visitor.text(value.text);
606
- if (value.toolUse !== undefined)
607
- return visitor.toolUse(value.toolUse);
608
- if (value.toolResult !== undefined)
609
- return visitor.toolResult(value.toolResult);
610
- if (value.reasoningContent !== undefined)
611
- return visitor.reasoningContent(value.reasoningContent);
612
- if (value.citation !== undefined)
613
- return visitor.citation(value.citation);
614
- return visitor._(value.$unknown[0], value.$unknown[1]);
615
- };
616
- })(ContentBlockDelta || (ContentBlockDelta = {}));
617
- export var ContentBlockStart;
618
- (function (ContentBlockStart) {
619
- ContentBlockStart.visit = (value, visitor) => {
620
- if (value.toolUse !== undefined)
621
- return visitor.toolUse(value.toolUse);
622
- if (value.toolResult !== undefined)
623
- return visitor.toolResult(value.toolResult);
624
- return visitor._(value.$unknown[0], value.$unknown[1]);
625
- };
626
- })(ContentBlockStart || (ContentBlockStart = {}));
627
333
  export class ModelStreamErrorException extends __BaseException {
628
334
  name = "ModelStreamErrorException";
629
335
  $fault = "client";
@@ -640,94 +346,8 @@ export class ModelStreamErrorException extends __BaseException {
640
346
  this.originalMessage = opts.originalMessage;
641
347
  }
642
348
  }
643
- export var ConverseStreamOutput;
644
- (function (ConverseStreamOutput) {
645
- ConverseStreamOutput.visit = (value, visitor) => {
646
- if (value.messageStart !== undefined)
647
- return visitor.messageStart(value.messageStart);
648
- if (value.contentBlockStart !== undefined)
649
- return visitor.contentBlockStart(value.contentBlockStart);
650
- if (value.contentBlockDelta !== undefined)
651
- return visitor.contentBlockDelta(value.contentBlockDelta);
652
- if (value.contentBlockStop !== undefined)
653
- return visitor.contentBlockStop(value.contentBlockStop);
654
- if (value.messageStop !== undefined)
655
- return visitor.messageStop(value.messageStop);
656
- if (value.metadata !== undefined)
657
- return visitor.metadata(value.metadata);
658
- if (value.internalServerException !== undefined)
659
- return visitor.internalServerException(value.internalServerException);
660
- if (value.modelStreamErrorException !== undefined)
661
- return visitor.modelStreamErrorException(value.modelStreamErrorException);
662
- if (value.validationException !== undefined)
663
- return visitor.validationException(value.validationException);
664
- if (value.throttlingException !== undefined)
665
- return visitor.throttlingException(value.throttlingException);
666
- if (value.serviceUnavailableException !== undefined)
667
- return visitor.serviceUnavailableException(value.serviceUnavailableException);
668
- return visitor._(value.$unknown[0], value.$unknown[1]);
669
- };
670
- })(ConverseStreamOutput || (ConverseStreamOutput = {}));
671
349
  export const Trace = {
672
350
  DISABLED: "DISABLED",
673
351
  ENABLED: "ENABLED",
674
352
  ENABLED_FULL: "ENABLED_FULL",
675
353
  };
676
- export var InvokeModelWithBidirectionalStreamInput;
677
- (function (InvokeModelWithBidirectionalStreamInput) {
678
- InvokeModelWithBidirectionalStreamInput.visit = (value, visitor) => {
679
- if (value.chunk !== undefined)
680
- return visitor.chunk(value.chunk);
681
- return visitor._(value.$unknown[0], value.$unknown[1]);
682
- };
683
- })(InvokeModelWithBidirectionalStreamInput || (InvokeModelWithBidirectionalStreamInput = {}));
684
- export var InvokeModelWithBidirectionalStreamOutput;
685
- (function (InvokeModelWithBidirectionalStreamOutput) {
686
- InvokeModelWithBidirectionalStreamOutput.visit = (value, visitor) => {
687
- if (value.chunk !== undefined)
688
- return visitor.chunk(value.chunk);
689
- if (value.internalServerException !== undefined)
690
- return visitor.internalServerException(value.internalServerException);
691
- if (value.modelStreamErrorException !== undefined)
692
- return visitor.modelStreamErrorException(value.modelStreamErrorException);
693
- if (value.validationException !== undefined)
694
- return visitor.validationException(value.validationException);
695
- if (value.throttlingException !== undefined)
696
- return visitor.throttlingException(value.throttlingException);
697
- if (value.modelTimeoutException !== undefined)
698
- return visitor.modelTimeoutException(value.modelTimeoutException);
699
- if (value.serviceUnavailableException !== undefined)
700
- return visitor.serviceUnavailableException(value.serviceUnavailableException);
701
- return visitor._(value.$unknown[0], value.$unknown[1]);
702
- };
703
- })(InvokeModelWithBidirectionalStreamOutput || (InvokeModelWithBidirectionalStreamOutput = {}));
704
- export var ResponseStream;
705
- (function (ResponseStream) {
706
- ResponseStream.visit = (value, visitor) => {
707
- if (value.chunk !== undefined)
708
- return visitor.chunk(value.chunk);
709
- if (value.internalServerException !== undefined)
710
- return visitor.internalServerException(value.internalServerException);
711
- if (value.modelStreamErrorException !== undefined)
712
- return visitor.modelStreamErrorException(value.modelStreamErrorException);
713
- if (value.validationException !== undefined)
714
- return visitor.validationException(value.validationException);
715
- if (value.throttlingException !== undefined)
716
- return visitor.throttlingException(value.throttlingException);
717
- if (value.modelTimeoutException !== undefined)
718
- return visitor.modelTimeoutException(value.modelTimeoutException);
719
- if (value.serviceUnavailableException !== undefined)
720
- return visitor.serviceUnavailableException(value.serviceUnavailableException);
721
- return visitor._(value.$unknown[0], value.$unknown[1]);
722
- };
723
- })(ResponseStream || (ResponseStream = {}));
724
- export var CountTokensInput;
725
- (function (CountTokensInput) {
726
- CountTokensInput.visit = (value, visitor) => {
727
- if (value.invokeModel !== undefined)
728
- return visitor.invokeModel(value.invokeModel);
729
- if (value.converse !== undefined)
730
- return visitor.converse(value.converse);
731
- return visitor._(value.$unknown[0], value.$unknown[1]);
732
- };
733
- })(CountTokensInput || (CountTokensInput = {}));