@aws-sdk/client-bedrock-runtime 3.928.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 +1760 -2549
- package/dist-cjs/runtimeConfig.shared.js +2 -0
- package/dist-es/BedrockRuntimeClient.js +2 -0
- package/dist-es/commands/ApplyGuardrailCommand.js +3 -10
- package/dist-es/commands/ConverseCommand.js +3 -10
- package/dist-es/commands/ConverseStreamCommand.js +3 -10
- package/dist-es/commands/CountTokensCommand.js +3 -10
- package/dist-es/commands/GetAsyncInvokeCommand.js +3 -10
- package/dist-es/commands/InvokeModelCommand.js +3 -10
- package/dist-es/commands/InvokeModelWithBidirectionalStreamCommand.js +2 -7
- package/dist-es/commands/InvokeModelWithResponseStreamCommand.js +3 -10
- package/dist-es/commands/ListAsyncInvokesCommand.js +3 -10
- package/dist-es/commands/StartAsyncInvokeCommand.js +3 -10
- package/dist-es/models/models_0.js +0 -810
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +1720 -0
- package/dist-types/BedrockRuntimeClient.d.ts +10 -1
- package/dist-types/models/models_0.d.ts +124 -271
- package/dist-types/runtimeConfig.browser.d.ts +1 -0
- package/dist-types/runtimeConfig.d.ts +1 -0
- package/dist-types/runtimeConfig.native.d.ts +1 -0
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +211 -0
- package/dist-types/ts3.4/BedrockRuntimeClient.d.ts +4 -0
- package/dist-types/ts3.4/models/models_0.d.ts +0 -223
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +4 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +218 -0
- package/package.json +41 -42
- package/dist-es/protocols/Aws_restJson1.js +0 -1589
- package/dist-types/protocols/Aws_restJson1.d.ts +0 -92
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +0 -128
package/dist-cjs/index.js
CHANGED
|
@@ -8,6 +8,7 @@ var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
|
8
8
|
var middlewareWebsocket = require('@aws-sdk/middleware-websocket');
|
|
9
9
|
var configResolver = require('@smithy/config-resolver');
|
|
10
10
|
var core = require('@smithy/core');
|
|
11
|
+
var schema = require('@smithy/core/schema');
|
|
11
12
|
var eventstreamSerdeConfigResolver = require('@smithy/eventstream-serde-config-resolver');
|
|
12
13
|
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
13
14
|
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
@@ -17,9 +18,6 @@ var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
|
17
18
|
var runtimeConfig = require('./runtimeConfig');
|
|
18
19
|
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
19
20
|
var protocolHttp = require('@smithy/protocol-http');
|
|
20
|
-
var middlewareSerde = require('@smithy/middleware-serde');
|
|
21
|
-
var core$1 = require('@aws-sdk/core');
|
|
22
|
-
var uuid = require('@smithy/uuid');
|
|
23
21
|
|
|
24
22
|
const resolveClientEndpointParameters = (options) => {
|
|
25
23
|
return Object.assign(options, {
|
|
@@ -106,6 +104,7 @@ class BedrockRuntimeClient extends smithyClient.Client {
|
|
|
106
104
|
const _config_10 = middlewareWebsocket.resolveWebSocketConfig(_config_9);
|
|
107
105
|
const _config_11 = resolveRuntimeExtensions(_config_10, configuration?.extensions || []);
|
|
108
106
|
this.config = _config_11;
|
|
107
|
+
this.middlewareStack.use(schema.getSchemaSerdePlugin(this.config));
|
|
109
108
|
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
110
109
|
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
111
110
|
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
@@ -126,14 +125,14 @@ class BedrockRuntimeClient extends smithyClient.Client {
|
|
|
126
125
|
}
|
|
127
126
|
}
|
|
128
127
|
|
|
129
|
-
class BedrockRuntimeServiceException extends smithyClient.ServiceException {
|
|
128
|
+
let BedrockRuntimeServiceException$1 = class BedrockRuntimeServiceException extends smithyClient.ServiceException {
|
|
130
129
|
constructor(options) {
|
|
131
130
|
super(options);
|
|
132
131
|
Object.setPrototypeOf(this, BedrockRuntimeServiceException.prototype);
|
|
133
132
|
}
|
|
134
|
-
}
|
|
133
|
+
};
|
|
135
134
|
|
|
136
|
-
class AccessDeniedException extends BedrockRuntimeServiceException {
|
|
135
|
+
let AccessDeniedException$1 = class AccessDeniedException extends BedrockRuntimeServiceException$1 {
|
|
137
136
|
name = "AccessDeniedException";
|
|
138
137
|
$fault = "client";
|
|
139
138
|
constructor(opts) {
|
|
@@ -144,21 +143,13 @@ class AccessDeniedException extends BedrockRuntimeServiceException {
|
|
|
144
143
|
});
|
|
145
144
|
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
146
145
|
}
|
|
147
|
-
}
|
|
148
|
-
exports.AsyncInvokeOutputDataConfig = void 0;
|
|
149
|
-
(function (AsyncInvokeOutputDataConfig) {
|
|
150
|
-
AsyncInvokeOutputDataConfig.visit = (value, visitor) => {
|
|
151
|
-
if (value.s3OutputDataConfig !== undefined)
|
|
152
|
-
return visitor.s3OutputDataConfig(value.s3OutputDataConfig);
|
|
153
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
154
|
-
};
|
|
155
|
-
})(exports.AsyncInvokeOutputDataConfig || (exports.AsyncInvokeOutputDataConfig = {}));
|
|
146
|
+
};
|
|
156
147
|
const AsyncInvokeStatus = {
|
|
157
148
|
COMPLETED: "Completed",
|
|
158
149
|
FAILED: "Failed",
|
|
159
150
|
IN_PROGRESS: "InProgress",
|
|
160
151
|
};
|
|
161
|
-
class InternalServerException extends BedrockRuntimeServiceException {
|
|
152
|
+
let InternalServerException$1 = class InternalServerException extends BedrockRuntimeServiceException$1 {
|
|
162
153
|
name = "InternalServerException";
|
|
163
154
|
$fault = "server";
|
|
164
155
|
constructor(opts) {
|
|
@@ -169,8 +160,8 @@ class InternalServerException extends BedrockRuntimeServiceException {
|
|
|
169
160
|
});
|
|
170
161
|
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
171
162
|
}
|
|
172
|
-
}
|
|
173
|
-
class ThrottlingException extends BedrockRuntimeServiceException {
|
|
163
|
+
};
|
|
164
|
+
let ThrottlingException$1 = class ThrottlingException extends BedrockRuntimeServiceException$1 {
|
|
174
165
|
name = "ThrottlingException";
|
|
175
166
|
$fault = "client";
|
|
176
167
|
constructor(opts) {
|
|
@@ -181,8 +172,8 @@ class ThrottlingException extends BedrockRuntimeServiceException {
|
|
|
181
172
|
});
|
|
182
173
|
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
183
174
|
}
|
|
184
|
-
}
|
|
185
|
-
class ValidationException extends BedrockRuntimeServiceException {
|
|
175
|
+
};
|
|
176
|
+
let ValidationException$1 = class ValidationException extends BedrockRuntimeServiceException$1 {
|
|
186
177
|
name = "ValidationException";
|
|
187
178
|
$fault = "client";
|
|
188
179
|
constructor(opts) {
|
|
@@ -193,7 +184,7 @@ class ValidationException extends BedrockRuntimeServiceException {
|
|
|
193
184
|
});
|
|
194
185
|
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
195
186
|
}
|
|
196
|
-
}
|
|
187
|
+
};
|
|
197
188
|
const SortAsyncInvocationBy = {
|
|
198
189
|
SUBMISSION_TIME: "SubmissionTime",
|
|
199
190
|
};
|
|
@@ -201,7 +192,7 @@ const SortOrder = {
|
|
|
201
192
|
ASCENDING: "Ascending",
|
|
202
193
|
DESCENDING: "Descending",
|
|
203
194
|
};
|
|
204
|
-
class ConflictException extends BedrockRuntimeServiceException {
|
|
195
|
+
let ConflictException$1 = class ConflictException extends BedrockRuntimeServiceException$1 {
|
|
205
196
|
name = "ConflictException";
|
|
206
197
|
$fault = "client";
|
|
207
198
|
constructor(opts) {
|
|
@@ -212,8 +203,8 @@ class ConflictException extends BedrockRuntimeServiceException {
|
|
|
212
203
|
});
|
|
213
204
|
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
214
205
|
}
|
|
215
|
-
}
|
|
216
|
-
class ResourceNotFoundException extends BedrockRuntimeServiceException {
|
|
206
|
+
};
|
|
207
|
+
let ResourceNotFoundException$1 = class ResourceNotFoundException extends BedrockRuntimeServiceException$1 {
|
|
217
208
|
name = "ResourceNotFoundException";
|
|
218
209
|
$fault = "client";
|
|
219
210
|
constructor(opts) {
|
|
@@ -224,8 +215,8 @@ class ResourceNotFoundException extends BedrockRuntimeServiceException {
|
|
|
224
215
|
});
|
|
225
216
|
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
226
217
|
}
|
|
227
|
-
}
|
|
228
|
-
class ServiceQuotaExceededException extends BedrockRuntimeServiceException {
|
|
218
|
+
};
|
|
219
|
+
let ServiceQuotaExceededException$1 = class ServiceQuotaExceededException extends BedrockRuntimeServiceException$1 {
|
|
229
220
|
name = "ServiceQuotaExceededException";
|
|
230
221
|
$fault = "client";
|
|
231
222
|
constructor(opts) {
|
|
@@ -236,8 +227,8 @@ class ServiceQuotaExceededException extends BedrockRuntimeServiceException {
|
|
|
236
227
|
});
|
|
237
228
|
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
238
229
|
}
|
|
239
|
-
}
|
|
240
|
-
class ServiceUnavailableException extends BedrockRuntimeServiceException {
|
|
230
|
+
};
|
|
231
|
+
let ServiceUnavailableException$1 = class ServiceUnavailableException extends BedrockRuntimeServiceException$1 {
|
|
241
232
|
name = "ServiceUnavailableException";
|
|
242
233
|
$fault = "server";
|
|
243
234
|
constructor(opts) {
|
|
@@ -248,34 +239,16 @@ class ServiceUnavailableException extends BedrockRuntimeServiceException {
|
|
|
248
239
|
});
|
|
249
240
|
Object.setPrototypeOf(this, ServiceUnavailableException.prototype);
|
|
250
241
|
}
|
|
251
|
-
}
|
|
242
|
+
};
|
|
252
243
|
const GuardrailImageFormat = {
|
|
253
244
|
JPEG: "jpeg",
|
|
254
245
|
PNG: "png",
|
|
255
246
|
};
|
|
256
|
-
exports.GuardrailImageSource = void 0;
|
|
257
|
-
(function (GuardrailImageSource) {
|
|
258
|
-
GuardrailImageSource.visit = (value, visitor) => {
|
|
259
|
-
if (value.bytes !== undefined)
|
|
260
|
-
return visitor.bytes(value.bytes);
|
|
261
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
262
|
-
};
|
|
263
|
-
})(exports.GuardrailImageSource || (exports.GuardrailImageSource = {}));
|
|
264
247
|
const GuardrailContentQualifier = {
|
|
265
248
|
GROUNDING_SOURCE: "grounding_source",
|
|
266
249
|
GUARD_CONTENT: "guard_content",
|
|
267
250
|
QUERY: "query",
|
|
268
251
|
};
|
|
269
|
-
exports.GuardrailContentBlock = void 0;
|
|
270
|
-
(function (GuardrailContentBlock) {
|
|
271
|
-
GuardrailContentBlock.visit = (value, visitor) => {
|
|
272
|
-
if (value.text !== undefined)
|
|
273
|
-
return visitor.text(value.text);
|
|
274
|
-
if (value.image !== undefined)
|
|
275
|
-
return visitor.image(value.image);
|
|
276
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
277
|
-
};
|
|
278
|
-
})(exports.GuardrailContentBlock || (exports.GuardrailContentBlock = {}));
|
|
279
252
|
const GuardrailOutputScope = {
|
|
280
253
|
FULL: "FULL",
|
|
281
254
|
INTERVENTIONS: "INTERVENTIONS",
|
|
@@ -292,26 +265,6 @@ const GuardrailAutomatedReasoningLogicWarningType = {
|
|
|
292
265
|
ALWAYS_FALSE: "ALWAYS_FALSE",
|
|
293
266
|
ALWAYS_TRUE: "ALWAYS_TRUE",
|
|
294
267
|
};
|
|
295
|
-
exports.GuardrailAutomatedReasoningFinding = void 0;
|
|
296
|
-
(function (GuardrailAutomatedReasoningFinding) {
|
|
297
|
-
GuardrailAutomatedReasoningFinding.visit = (value, visitor) => {
|
|
298
|
-
if (value.valid !== undefined)
|
|
299
|
-
return visitor.valid(value.valid);
|
|
300
|
-
if (value.invalid !== undefined)
|
|
301
|
-
return visitor.invalid(value.invalid);
|
|
302
|
-
if (value.satisfiable !== undefined)
|
|
303
|
-
return visitor.satisfiable(value.satisfiable);
|
|
304
|
-
if (value.impossible !== undefined)
|
|
305
|
-
return visitor.impossible(value.impossible);
|
|
306
|
-
if (value.translationAmbiguous !== undefined)
|
|
307
|
-
return visitor.translationAmbiguous(value.translationAmbiguous);
|
|
308
|
-
if (value.tooComplex !== undefined)
|
|
309
|
-
return visitor.tooComplex(value.tooComplex);
|
|
310
|
-
if (value.noTranslations !== undefined)
|
|
311
|
-
return visitor.noTranslations(value.noTranslations);
|
|
312
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
313
|
-
};
|
|
314
|
-
})(exports.GuardrailAutomatedReasoningFinding || (exports.GuardrailAutomatedReasoningFinding = {}));
|
|
315
268
|
const GuardrailContentPolicyAction = {
|
|
316
269
|
BLOCKED: "BLOCKED",
|
|
317
270
|
NONE: "NONE",
|
|
@@ -404,36 +357,6 @@ const GuardrailTrace = {
|
|
|
404
357
|
const CachePointType = {
|
|
405
358
|
DEFAULT: "default",
|
|
406
359
|
};
|
|
407
|
-
exports.CitationLocation = void 0;
|
|
408
|
-
(function (CitationLocation) {
|
|
409
|
-
CitationLocation.visit = (value, visitor) => {
|
|
410
|
-
if (value.web !== undefined)
|
|
411
|
-
return visitor.web(value.web);
|
|
412
|
-
if (value.documentChar !== undefined)
|
|
413
|
-
return visitor.documentChar(value.documentChar);
|
|
414
|
-
if (value.documentPage !== undefined)
|
|
415
|
-
return visitor.documentPage(value.documentPage);
|
|
416
|
-
if (value.documentChunk !== undefined)
|
|
417
|
-
return visitor.documentChunk(value.documentChunk);
|
|
418
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
419
|
-
};
|
|
420
|
-
})(exports.CitationLocation || (exports.CitationLocation = {}));
|
|
421
|
-
exports.CitationSourceContent = void 0;
|
|
422
|
-
(function (CitationSourceContent) {
|
|
423
|
-
CitationSourceContent.visit = (value, visitor) => {
|
|
424
|
-
if (value.text !== undefined)
|
|
425
|
-
return visitor.text(value.text);
|
|
426
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
427
|
-
};
|
|
428
|
-
})(exports.CitationSourceContent || (exports.CitationSourceContent = {}));
|
|
429
|
-
exports.CitationGeneratedContent = void 0;
|
|
430
|
-
(function (CitationGeneratedContent) {
|
|
431
|
-
CitationGeneratedContent.visit = (value, visitor) => {
|
|
432
|
-
if (value.text !== undefined)
|
|
433
|
-
return visitor.text(value.text);
|
|
434
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
435
|
-
};
|
|
436
|
-
})(exports.CitationGeneratedContent || (exports.CitationGeneratedContent = {}));
|
|
437
360
|
const DocumentFormat = {
|
|
438
361
|
CSV: "csv",
|
|
439
362
|
DOC: "doc",
|
|
@@ -445,81 +368,21 @@ const DocumentFormat = {
|
|
|
445
368
|
XLS: "xls",
|
|
446
369
|
XLSX: "xlsx",
|
|
447
370
|
};
|
|
448
|
-
exports.DocumentContentBlock = void 0;
|
|
449
|
-
(function (DocumentContentBlock) {
|
|
450
|
-
DocumentContentBlock.visit = (value, visitor) => {
|
|
451
|
-
if (value.text !== undefined)
|
|
452
|
-
return visitor.text(value.text);
|
|
453
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
454
|
-
};
|
|
455
|
-
})(exports.DocumentContentBlock || (exports.DocumentContentBlock = {}));
|
|
456
|
-
exports.DocumentSource = void 0;
|
|
457
|
-
(function (DocumentSource) {
|
|
458
|
-
DocumentSource.visit = (value, visitor) => {
|
|
459
|
-
if (value.bytes !== undefined)
|
|
460
|
-
return visitor.bytes(value.bytes);
|
|
461
|
-
if (value.s3Location !== undefined)
|
|
462
|
-
return visitor.s3Location(value.s3Location);
|
|
463
|
-
if (value.text !== undefined)
|
|
464
|
-
return visitor.text(value.text);
|
|
465
|
-
if (value.content !== undefined)
|
|
466
|
-
return visitor.content(value.content);
|
|
467
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
468
|
-
};
|
|
469
|
-
})(exports.DocumentSource || (exports.DocumentSource = {}));
|
|
470
371
|
const GuardrailConverseImageFormat = {
|
|
471
372
|
JPEG: "jpeg",
|
|
472
373
|
PNG: "png",
|
|
473
374
|
};
|
|
474
|
-
exports.GuardrailConverseImageSource = void 0;
|
|
475
|
-
(function (GuardrailConverseImageSource) {
|
|
476
|
-
GuardrailConverseImageSource.visit = (value, visitor) => {
|
|
477
|
-
if (value.bytes !== undefined)
|
|
478
|
-
return visitor.bytes(value.bytes);
|
|
479
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
480
|
-
};
|
|
481
|
-
})(exports.GuardrailConverseImageSource || (exports.GuardrailConverseImageSource = {}));
|
|
482
375
|
const GuardrailConverseContentQualifier = {
|
|
483
376
|
GROUNDING_SOURCE: "grounding_source",
|
|
484
377
|
GUARD_CONTENT: "guard_content",
|
|
485
378
|
QUERY: "query",
|
|
486
379
|
};
|
|
487
|
-
exports.GuardrailConverseContentBlock = void 0;
|
|
488
|
-
(function (GuardrailConverseContentBlock) {
|
|
489
|
-
GuardrailConverseContentBlock.visit = (value, visitor) => {
|
|
490
|
-
if (value.text !== undefined)
|
|
491
|
-
return visitor.text(value.text);
|
|
492
|
-
if (value.image !== undefined)
|
|
493
|
-
return visitor.image(value.image);
|
|
494
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
495
|
-
};
|
|
496
|
-
})(exports.GuardrailConverseContentBlock || (exports.GuardrailConverseContentBlock = {}));
|
|
497
380
|
const ImageFormat = {
|
|
498
381
|
GIF: "gif",
|
|
499
382
|
JPEG: "jpeg",
|
|
500
383
|
PNG: "png",
|
|
501
384
|
WEBP: "webp",
|
|
502
385
|
};
|
|
503
|
-
exports.ImageSource = void 0;
|
|
504
|
-
(function (ImageSource) {
|
|
505
|
-
ImageSource.visit = (value, visitor) => {
|
|
506
|
-
if (value.bytes !== undefined)
|
|
507
|
-
return visitor.bytes(value.bytes);
|
|
508
|
-
if (value.s3Location !== undefined)
|
|
509
|
-
return visitor.s3Location(value.s3Location);
|
|
510
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
511
|
-
};
|
|
512
|
-
})(exports.ImageSource || (exports.ImageSource = {}));
|
|
513
|
-
exports.ReasoningContentBlock = void 0;
|
|
514
|
-
(function (ReasoningContentBlock) {
|
|
515
|
-
ReasoningContentBlock.visit = (value, visitor) => {
|
|
516
|
-
if (value.reasoningText !== undefined)
|
|
517
|
-
return visitor.reasoningText(value.reasoningText);
|
|
518
|
-
if (value.redactedContent !== undefined)
|
|
519
|
-
return visitor.redactedContent(value.redactedContent);
|
|
520
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
521
|
-
};
|
|
522
|
-
})(exports.ReasoningContentBlock || (exports.ReasoningContentBlock = {}));
|
|
523
386
|
const VideoFormat = {
|
|
524
387
|
FLV: "flv",
|
|
525
388
|
MKV: "mkv",
|
|
@@ -531,32 +394,6 @@ const VideoFormat = {
|
|
|
531
394
|
WEBM: "webm",
|
|
532
395
|
WMV: "wmv",
|
|
533
396
|
};
|
|
534
|
-
exports.VideoSource = void 0;
|
|
535
|
-
(function (VideoSource) {
|
|
536
|
-
VideoSource.visit = (value, visitor) => {
|
|
537
|
-
if (value.bytes !== undefined)
|
|
538
|
-
return visitor.bytes(value.bytes);
|
|
539
|
-
if (value.s3Location !== undefined)
|
|
540
|
-
return visitor.s3Location(value.s3Location);
|
|
541
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
542
|
-
};
|
|
543
|
-
})(exports.VideoSource || (exports.VideoSource = {}));
|
|
544
|
-
exports.ToolResultContentBlock = void 0;
|
|
545
|
-
(function (ToolResultContentBlock) {
|
|
546
|
-
ToolResultContentBlock.visit = (value, visitor) => {
|
|
547
|
-
if (value.json !== undefined)
|
|
548
|
-
return visitor.json(value.json);
|
|
549
|
-
if (value.text !== undefined)
|
|
550
|
-
return visitor.text(value.text);
|
|
551
|
-
if (value.image !== undefined)
|
|
552
|
-
return visitor.image(value.image);
|
|
553
|
-
if (value.document !== undefined)
|
|
554
|
-
return visitor.document(value.document);
|
|
555
|
-
if (value.video !== undefined)
|
|
556
|
-
return visitor.video(value.video);
|
|
557
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
558
|
-
};
|
|
559
|
-
})(exports.ToolResultContentBlock || (exports.ToolResultContentBlock = {}));
|
|
560
397
|
const ToolResultStatus = {
|
|
561
398
|
ERROR: "error",
|
|
562
399
|
SUCCESS: "success",
|
|
@@ -564,32 +401,6 @@ const ToolResultStatus = {
|
|
|
564
401
|
const ToolUseType = {
|
|
565
402
|
SERVER_TOOL_USE: "server_tool_use",
|
|
566
403
|
};
|
|
567
|
-
exports.ContentBlock = void 0;
|
|
568
|
-
(function (ContentBlock) {
|
|
569
|
-
ContentBlock.visit = (value, visitor) => {
|
|
570
|
-
if (value.text !== undefined)
|
|
571
|
-
return visitor.text(value.text);
|
|
572
|
-
if (value.image !== undefined)
|
|
573
|
-
return visitor.image(value.image);
|
|
574
|
-
if (value.document !== undefined)
|
|
575
|
-
return visitor.document(value.document);
|
|
576
|
-
if (value.video !== undefined)
|
|
577
|
-
return visitor.video(value.video);
|
|
578
|
-
if (value.toolUse !== undefined)
|
|
579
|
-
return visitor.toolUse(value.toolUse);
|
|
580
|
-
if (value.toolResult !== undefined)
|
|
581
|
-
return visitor.toolResult(value.toolResult);
|
|
582
|
-
if (value.guardContent !== undefined)
|
|
583
|
-
return visitor.guardContent(value.guardContent);
|
|
584
|
-
if (value.cachePoint !== undefined)
|
|
585
|
-
return visitor.cachePoint(value.cachePoint);
|
|
586
|
-
if (value.reasoningContent !== undefined)
|
|
587
|
-
return visitor.reasoningContent(value.reasoningContent);
|
|
588
|
-
if (value.citationsContent !== undefined)
|
|
589
|
-
return visitor.citationsContent(value.citationsContent);
|
|
590
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
591
|
-
};
|
|
592
|
-
})(exports.ContentBlock || (exports.ContentBlock = {}));
|
|
593
404
|
const ConversationRole = {
|
|
594
405
|
ASSISTANT: "assistant",
|
|
595
406
|
USER: "user",
|
|
@@ -598,66 +409,6 @@ const PerformanceConfigLatency = {
|
|
|
598
409
|
OPTIMIZED: "optimized",
|
|
599
410
|
STANDARD: "standard",
|
|
600
411
|
};
|
|
601
|
-
exports.PromptVariableValues = void 0;
|
|
602
|
-
(function (PromptVariableValues) {
|
|
603
|
-
PromptVariableValues.visit = (value, visitor) => {
|
|
604
|
-
if (value.text !== undefined)
|
|
605
|
-
return visitor.text(value.text);
|
|
606
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
607
|
-
};
|
|
608
|
-
})(exports.PromptVariableValues || (exports.PromptVariableValues = {}));
|
|
609
|
-
exports.SystemContentBlock = void 0;
|
|
610
|
-
(function (SystemContentBlock) {
|
|
611
|
-
SystemContentBlock.visit = (value, visitor) => {
|
|
612
|
-
if (value.text !== undefined)
|
|
613
|
-
return visitor.text(value.text);
|
|
614
|
-
if (value.guardContent !== undefined)
|
|
615
|
-
return visitor.guardContent(value.guardContent);
|
|
616
|
-
if (value.cachePoint !== undefined)
|
|
617
|
-
return visitor.cachePoint(value.cachePoint);
|
|
618
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
619
|
-
};
|
|
620
|
-
})(exports.SystemContentBlock || (exports.SystemContentBlock = {}));
|
|
621
|
-
exports.ToolChoice = void 0;
|
|
622
|
-
(function (ToolChoice) {
|
|
623
|
-
ToolChoice.visit = (value, visitor) => {
|
|
624
|
-
if (value.auto !== undefined)
|
|
625
|
-
return visitor.auto(value.auto);
|
|
626
|
-
if (value.any !== undefined)
|
|
627
|
-
return visitor.any(value.any);
|
|
628
|
-
if (value.tool !== undefined)
|
|
629
|
-
return visitor.tool(value.tool);
|
|
630
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
631
|
-
};
|
|
632
|
-
})(exports.ToolChoice || (exports.ToolChoice = {}));
|
|
633
|
-
exports.ToolInputSchema = void 0;
|
|
634
|
-
(function (ToolInputSchema) {
|
|
635
|
-
ToolInputSchema.visit = (value, visitor) => {
|
|
636
|
-
if (value.json !== undefined)
|
|
637
|
-
return visitor.json(value.json);
|
|
638
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
639
|
-
};
|
|
640
|
-
})(exports.ToolInputSchema || (exports.ToolInputSchema = {}));
|
|
641
|
-
exports.Tool = void 0;
|
|
642
|
-
(function (Tool) {
|
|
643
|
-
Tool.visit = (value, visitor) => {
|
|
644
|
-
if (value.toolSpec !== undefined)
|
|
645
|
-
return visitor.toolSpec(value.toolSpec);
|
|
646
|
-
if (value.systemTool !== undefined)
|
|
647
|
-
return visitor.systemTool(value.systemTool);
|
|
648
|
-
if (value.cachePoint !== undefined)
|
|
649
|
-
return visitor.cachePoint(value.cachePoint);
|
|
650
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
651
|
-
};
|
|
652
|
-
})(exports.Tool || (exports.Tool = {}));
|
|
653
|
-
exports.ConverseOutput = void 0;
|
|
654
|
-
(function (ConverseOutput) {
|
|
655
|
-
ConverseOutput.visit = (value, visitor) => {
|
|
656
|
-
if (value.message !== undefined)
|
|
657
|
-
return visitor.message(value.message);
|
|
658
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
659
|
-
};
|
|
660
|
-
})(exports.ConverseOutput || (exports.ConverseOutput = {}));
|
|
661
412
|
const StopReason = {
|
|
662
413
|
CONTENT_FILTERED: "content_filtered",
|
|
663
414
|
END_TURN: "end_turn",
|
|
@@ -667,7 +418,7 @@ const StopReason = {
|
|
|
667
418
|
STOP_SEQUENCE: "stop_sequence",
|
|
668
419
|
TOOL_USE: "tool_use",
|
|
669
420
|
};
|
|
670
|
-
class ModelErrorException extends BedrockRuntimeServiceException {
|
|
421
|
+
let ModelErrorException$1 = class ModelErrorException extends BedrockRuntimeServiceException$1 {
|
|
671
422
|
name = "ModelErrorException";
|
|
672
423
|
$fault = "client";
|
|
673
424
|
originalStatusCode;
|
|
@@ -682,8 +433,8 @@ class ModelErrorException extends BedrockRuntimeServiceException {
|
|
|
682
433
|
this.originalStatusCode = opts.originalStatusCode;
|
|
683
434
|
this.resourceName = opts.resourceName;
|
|
684
435
|
}
|
|
685
|
-
}
|
|
686
|
-
class ModelNotReadyException extends BedrockRuntimeServiceException {
|
|
436
|
+
};
|
|
437
|
+
let ModelNotReadyException$1 = class ModelNotReadyException extends BedrockRuntimeServiceException$1 {
|
|
687
438
|
name = "ModelNotReadyException";
|
|
688
439
|
$fault = "client";
|
|
689
440
|
$retryable = {};
|
|
@@ -695,8 +446,8 @@ class ModelNotReadyException extends BedrockRuntimeServiceException {
|
|
|
695
446
|
});
|
|
696
447
|
Object.setPrototypeOf(this, ModelNotReadyException.prototype);
|
|
697
448
|
}
|
|
698
|
-
}
|
|
699
|
-
class ModelTimeoutException extends BedrockRuntimeServiceException {
|
|
449
|
+
};
|
|
450
|
+
let ModelTimeoutException$1 = class ModelTimeoutException extends BedrockRuntimeServiceException$1 {
|
|
700
451
|
name = "ModelTimeoutException";
|
|
701
452
|
$fault = "client";
|
|
702
453
|
constructor(opts) {
|
|
@@ -707,58 +458,12 @@ class ModelTimeoutException extends BedrockRuntimeServiceException {
|
|
|
707
458
|
});
|
|
708
459
|
Object.setPrototypeOf(this, ModelTimeoutException.prototype);
|
|
709
460
|
}
|
|
710
|
-
}
|
|
461
|
+
};
|
|
711
462
|
const GuardrailStreamProcessingMode = {
|
|
712
463
|
ASYNC: "async",
|
|
713
464
|
SYNC: "sync",
|
|
714
465
|
};
|
|
715
|
-
|
|
716
|
-
(function (ReasoningContentBlockDelta) {
|
|
717
|
-
ReasoningContentBlockDelta.visit = (value, visitor) => {
|
|
718
|
-
if (value.text !== undefined)
|
|
719
|
-
return visitor.text(value.text);
|
|
720
|
-
if (value.redactedContent !== undefined)
|
|
721
|
-
return visitor.redactedContent(value.redactedContent);
|
|
722
|
-
if (value.signature !== undefined)
|
|
723
|
-
return visitor.signature(value.signature);
|
|
724
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
725
|
-
};
|
|
726
|
-
})(exports.ReasoningContentBlockDelta || (exports.ReasoningContentBlockDelta = {}));
|
|
727
|
-
exports.ToolResultBlockDelta = void 0;
|
|
728
|
-
(function (ToolResultBlockDelta) {
|
|
729
|
-
ToolResultBlockDelta.visit = (value, visitor) => {
|
|
730
|
-
if (value.text !== undefined)
|
|
731
|
-
return visitor.text(value.text);
|
|
732
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
733
|
-
};
|
|
734
|
-
})(exports.ToolResultBlockDelta || (exports.ToolResultBlockDelta = {}));
|
|
735
|
-
exports.ContentBlockDelta = void 0;
|
|
736
|
-
(function (ContentBlockDelta) {
|
|
737
|
-
ContentBlockDelta.visit = (value, visitor) => {
|
|
738
|
-
if (value.text !== undefined)
|
|
739
|
-
return visitor.text(value.text);
|
|
740
|
-
if (value.toolUse !== undefined)
|
|
741
|
-
return visitor.toolUse(value.toolUse);
|
|
742
|
-
if (value.toolResult !== undefined)
|
|
743
|
-
return visitor.toolResult(value.toolResult);
|
|
744
|
-
if (value.reasoningContent !== undefined)
|
|
745
|
-
return visitor.reasoningContent(value.reasoningContent);
|
|
746
|
-
if (value.citation !== undefined)
|
|
747
|
-
return visitor.citation(value.citation);
|
|
748
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
749
|
-
};
|
|
750
|
-
})(exports.ContentBlockDelta || (exports.ContentBlockDelta = {}));
|
|
751
|
-
exports.ContentBlockStart = void 0;
|
|
752
|
-
(function (ContentBlockStart) {
|
|
753
|
-
ContentBlockStart.visit = (value, visitor) => {
|
|
754
|
-
if (value.toolUse !== undefined)
|
|
755
|
-
return visitor.toolUse(value.toolUse);
|
|
756
|
-
if (value.toolResult !== undefined)
|
|
757
|
-
return visitor.toolResult(value.toolResult);
|
|
758
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
759
|
-
};
|
|
760
|
-
})(exports.ContentBlockStart || (exports.ContentBlockStart = {}));
|
|
761
|
-
class ModelStreamErrorException extends BedrockRuntimeServiceException {
|
|
466
|
+
let ModelStreamErrorException$1 = class ModelStreamErrorException extends BedrockRuntimeServiceException$1 {
|
|
762
467
|
name = "ModelStreamErrorException";
|
|
763
468
|
$fault = "client";
|
|
764
469
|
originalStatusCode;
|
|
@@ -773,2125 +478,1734 @@ class ModelStreamErrorException extends BedrockRuntimeServiceException {
|
|
|
773
478
|
this.originalStatusCode = opts.originalStatusCode;
|
|
774
479
|
this.originalMessage = opts.originalMessage;
|
|
775
480
|
}
|
|
776
|
-
}
|
|
777
|
-
exports.ConverseStreamOutput = void 0;
|
|
778
|
-
(function (ConverseStreamOutput) {
|
|
779
|
-
ConverseStreamOutput.visit = (value, visitor) => {
|
|
780
|
-
if (value.messageStart !== undefined)
|
|
781
|
-
return visitor.messageStart(value.messageStart);
|
|
782
|
-
if (value.contentBlockStart !== undefined)
|
|
783
|
-
return visitor.contentBlockStart(value.contentBlockStart);
|
|
784
|
-
if (value.contentBlockDelta !== undefined)
|
|
785
|
-
return visitor.contentBlockDelta(value.contentBlockDelta);
|
|
786
|
-
if (value.contentBlockStop !== undefined)
|
|
787
|
-
return visitor.contentBlockStop(value.contentBlockStop);
|
|
788
|
-
if (value.messageStop !== undefined)
|
|
789
|
-
return visitor.messageStop(value.messageStop);
|
|
790
|
-
if (value.metadata !== undefined)
|
|
791
|
-
return visitor.metadata(value.metadata);
|
|
792
|
-
if (value.internalServerException !== undefined)
|
|
793
|
-
return visitor.internalServerException(value.internalServerException);
|
|
794
|
-
if (value.modelStreamErrorException !== undefined)
|
|
795
|
-
return visitor.modelStreamErrorException(value.modelStreamErrorException);
|
|
796
|
-
if (value.validationException !== undefined)
|
|
797
|
-
return visitor.validationException(value.validationException);
|
|
798
|
-
if (value.throttlingException !== undefined)
|
|
799
|
-
return visitor.throttlingException(value.throttlingException);
|
|
800
|
-
if (value.serviceUnavailableException !== undefined)
|
|
801
|
-
return visitor.serviceUnavailableException(value.serviceUnavailableException);
|
|
802
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
803
|
-
};
|
|
804
|
-
})(exports.ConverseStreamOutput || (exports.ConverseStreamOutput = {}));
|
|
481
|
+
};
|
|
805
482
|
const Trace = {
|
|
806
483
|
DISABLED: "DISABLED",
|
|
807
484
|
ENABLED: "ENABLED",
|
|
808
485
|
ENABLED_FULL: "ENABLED_FULL",
|
|
809
486
|
};
|
|
810
|
-
exports.InvokeModelWithBidirectionalStreamInput = void 0;
|
|
811
|
-
(function (InvokeModelWithBidirectionalStreamInput) {
|
|
812
|
-
InvokeModelWithBidirectionalStreamInput.visit = (value, visitor) => {
|
|
813
|
-
if (value.chunk !== undefined)
|
|
814
|
-
return visitor.chunk(value.chunk);
|
|
815
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
816
|
-
};
|
|
817
|
-
})(exports.InvokeModelWithBidirectionalStreamInput || (exports.InvokeModelWithBidirectionalStreamInput = {}));
|
|
818
|
-
exports.InvokeModelWithBidirectionalStreamOutput = void 0;
|
|
819
|
-
(function (InvokeModelWithBidirectionalStreamOutput) {
|
|
820
|
-
InvokeModelWithBidirectionalStreamOutput.visit = (value, visitor) => {
|
|
821
|
-
if (value.chunk !== undefined)
|
|
822
|
-
return visitor.chunk(value.chunk);
|
|
823
|
-
if (value.internalServerException !== undefined)
|
|
824
|
-
return visitor.internalServerException(value.internalServerException);
|
|
825
|
-
if (value.modelStreamErrorException !== undefined)
|
|
826
|
-
return visitor.modelStreamErrorException(value.modelStreamErrorException);
|
|
827
|
-
if (value.validationException !== undefined)
|
|
828
|
-
return visitor.validationException(value.validationException);
|
|
829
|
-
if (value.throttlingException !== undefined)
|
|
830
|
-
return visitor.throttlingException(value.throttlingException);
|
|
831
|
-
if (value.modelTimeoutException !== undefined)
|
|
832
|
-
return visitor.modelTimeoutException(value.modelTimeoutException);
|
|
833
|
-
if (value.serviceUnavailableException !== undefined)
|
|
834
|
-
return visitor.serviceUnavailableException(value.serviceUnavailableException);
|
|
835
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
836
|
-
};
|
|
837
|
-
})(exports.InvokeModelWithBidirectionalStreamOutput || (exports.InvokeModelWithBidirectionalStreamOutput = {}));
|
|
838
|
-
exports.ResponseStream = void 0;
|
|
839
|
-
(function (ResponseStream) {
|
|
840
|
-
ResponseStream.visit = (value, visitor) => {
|
|
841
|
-
if (value.chunk !== undefined)
|
|
842
|
-
return visitor.chunk(value.chunk);
|
|
843
|
-
if (value.internalServerException !== undefined)
|
|
844
|
-
return visitor.internalServerException(value.internalServerException);
|
|
845
|
-
if (value.modelStreamErrorException !== undefined)
|
|
846
|
-
return visitor.modelStreamErrorException(value.modelStreamErrorException);
|
|
847
|
-
if (value.validationException !== undefined)
|
|
848
|
-
return visitor.validationException(value.validationException);
|
|
849
|
-
if (value.throttlingException !== undefined)
|
|
850
|
-
return visitor.throttlingException(value.throttlingException);
|
|
851
|
-
if (value.modelTimeoutException !== undefined)
|
|
852
|
-
return visitor.modelTimeoutException(value.modelTimeoutException);
|
|
853
|
-
if (value.serviceUnavailableException !== undefined)
|
|
854
|
-
return visitor.serviceUnavailableException(value.serviceUnavailableException);
|
|
855
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
856
|
-
};
|
|
857
|
-
})(exports.ResponseStream || (exports.ResponseStream = {}));
|
|
858
|
-
exports.CountTokensInput = void 0;
|
|
859
|
-
(function (CountTokensInput) {
|
|
860
|
-
CountTokensInput.visit = (value, visitor) => {
|
|
861
|
-
if (value.invokeModel !== undefined)
|
|
862
|
-
return visitor.invokeModel(value.invokeModel);
|
|
863
|
-
if (value.converse !== undefined)
|
|
864
|
-
return visitor.converse(value.converse);
|
|
865
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
866
|
-
};
|
|
867
|
-
})(exports.CountTokensInput || (exports.CountTokensInput = {}));
|
|
868
|
-
const GetAsyncInvokeResponseFilterSensitiveLog = (obj) => ({
|
|
869
|
-
...obj,
|
|
870
|
-
...(obj.failureMessage && { failureMessage: smithyClient.SENSITIVE_STRING }),
|
|
871
|
-
...(obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }),
|
|
872
|
-
});
|
|
873
|
-
const AsyncInvokeSummaryFilterSensitiveLog = (obj) => ({
|
|
874
|
-
...obj,
|
|
875
|
-
...(obj.failureMessage && { failureMessage: smithyClient.SENSITIVE_STRING }),
|
|
876
|
-
...(obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }),
|
|
877
|
-
});
|
|
878
|
-
const ListAsyncInvokesResponseFilterSensitiveLog = (obj) => ({
|
|
879
|
-
...obj,
|
|
880
|
-
...(obj.asyncInvokeSummaries && {
|
|
881
|
-
asyncInvokeSummaries: obj.asyncInvokeSummaries.map((item) => AsyncInvokeSummaryFilterSensitiveLog(item)),
|
|
882
|
-
}),
|
|
883
|
-
});
|
|
884
|
-
const StartAsyncInvokeRequestFilterSensitiveLog = (obj) => ({
|
|
885
|
-
...obj,
|
|
886
|
-
...(obj.modelInput && { modelInput: smithyClient.SENSITIVE_STRING }),
|
|
887
|
-
...(obj.outputDataConfig && { outputDataConfig: obj.outputDataConfig }),
|
|
888
|
-
});
|
|
889
|
-
const GuardrailImageSourceFilterSensitiveLog = (obj) => {
|
|
890
|
-
if (obj.bytes !== undefined)
|
|
891
|
-
return { bytes: obj.bytes };
|
|
892
|
-
if (obj.$unknown !== undefined)
|
|
893
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
894
|
-
};
|
|
895
|
-
const GuardrailImageBlockFilterSensitiveLog = (obj) => ({
|
|
896
|
-
...obj,
|
|
897
|
-
...(obj.source && { source: smithyClient.SENSITIVE_STRING }),
|
|
898
|
-
});
|
|
899
|
-
const GuardrailContentBlockFilterSensitiveLog = (obj) => {
|
|
900
|
-
if (obj.text !== undefined)
|
|
901
|
-
return { text: obj.text };
|
|
902
|
-
if (obj.image !== undefined)
|
|
903
|
-
return { image: smithyClient.SENSITIVE_STRING };
|
|
904
|
-
if (obj.$unknown !== undefined)
|
|
905
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
906
|
-
};
|
|
907
|
-
const ApplyGuardrailRequestFilterSensitiveLog = (obj) => ({
|
|
908
|
-
...obj,
|
|
909
|
-
...(obj.content && { content: obj.content.map((item) => GuardrailContentBlockFilterSensitiveLog(item)) }),
|
|
910
|
-
});
|
|
911
|
-
const GuardrailAutomatedReasoningStatementFilterSensitiveLog = (obj) => ({
|
|
912
|
-
...obj,
|
|
913
|
-
...(obj.logic && { logic: smithyClient.SENSITIVE_STRING }),
|
|
914
|
-
...(obj.naturalLanguage && { naturalLanguage: smithyClient.SENSITIVE_STRING }),
|
|
915
|
-
});
|
|
916
|
-
const GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog = (obj) => ({
|
|
917
|
-
...obj,
|
|
918
|
-
...(obj.premises && {
|
|
919
|
-
premises: obj.premises.map((item) => GuardrailAutomatedReasoningStatementFilterSensitiveLog(item)),
|
|
920
|
-
}),
|
|
921
|
-
...(obj.claims && { claims: obj.claims.map((item) => GuardrailAutomatedReasoningStatementFilterSensitiveLog(item)) }),
|
|
922
|
-
});
|
|
923
|
-
const GuardrailAutomatedReasoningInputTextReferenceFilterSensitiveLog = (obj) => ({
|
|
924
|
-
...obj,
|
|
925
|
-
...(obj.text && { text: smithyClient.SENSITIVE_STRING }),
|
|
926
|
-
});
|
|
927
|
-
const GuardrailAutomatedReasoningTranslationFilterSensitiveLog = (obj) => ({
|
|
928
|
-
...obj,
|
|
929
|
-
...(obj.premises && {
|
|
930
|
-
premises: obj.premises.map((item) => GuardrailAutomatedReasoningStatementFilterSensitiveLog(item)),
|
|
931
|
-
}),
|
|
932
|
-
...(obj.claims && { claims: obj.claims.map((item) => GuardrailAutomatedReasoningStatementFilterSensitiveLog(item)) }),
|
|
933
|
-
...(obj.untranslatedPremises && {
|
|
934
|
-
untranslatedPremises: obj.untranslatedPremises.map((item) => GuardrailAutomatedReasoningInputTextReferenceFilterSensitiveLog(item)),
|
|
935
|
-
}),
|
|
936
|
-
...(obj.untranslatedClaims && {
|
|
937
|
-
untranslatedClaims: obj.untranslatedClaims.map((item) => GuardrailAutomatedReasoningInputTextReferenceFilterSensitiveLog(item)),
|
|
938
|
-
}),
|
|
939
|
-
});
|
|
940
|
-
const GuardrailAutomatedReasoningImpossibleFindingFilterSensitiveLog = (obj) => ({
|
|
941
|
-
...obj,
|
|
942
|
-
...(obj.translation && { translation: GuardrailAutomatedReasoningTranslationFilterSensitiveLog(obj.translation) }),
|
|
943
|
-
...(obj.logicWarning && {
|
|
944
|
-
logicWarning: GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog(obj.logicWarning),
|
|
945
|
-
}),
|
|
946
|
-
});
|
|
947
|
-
const GuardrailAutomatedReasoningInvalidFindingFilterSensitiveLog = (obj) => ({
|
|
948
|
-
...obj,
|
|
949
|
-
...(obj.translation && { translation: GuardrailAutomatedReasoningTranslationFilterSensitiveLog(obj.translation) }),
|
|
950
|
-
...(obj.logicWarning && {
|
|
951
|
-
logicWarning: GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog(obj.logicWarning),
|
|
952
|
-
}),
|
|
953
|
-
});
|
|
954
|
-
const GuardrailAutomatedReasoningScenarioFilterSensitiveLog = (obj) => ({
|
|
955
|
-
...obj,
|
|
956
|
-
...(obj.statements && {
|
|
957
|
-
statements: obj.statements.map((item) => GuardrailAutomatedReasoningStatementFilterSensitiveLog(item)),
|
|
958
|
-
}),
|
|
959
|
-
});
|
|
960
|
-
const GuardrailAutomatedReasoningSatisfiableFindingFilterSensitiveLog = (obj) => ({
|
|
961
|
-
...obj,
|
|
962
|
-
...(obj.translation && { translation: GuardrailAutomatedReasoningTranslationFilterSensitiveLog(obj.translation) }),
|
|
963
|
-
...(obj.claimsTrueScenario && {
|
|
964
|
-
claimsTrueScenario: GuardrailAutomatedReasoningScenarioFilterSensitiveLog(obj.claimsTrueScenario),
|
|
965
|
-
}),
|
|
966
|
-
...(obj.claimsFalseScenario && {
|
|
967
|
-
claimsFalseScenario: GuardrailAutomatedReasoningScenarioFilterSensitiveLog(obj.claimsFalseScenario),
|
|
968
|
-
}),
|
|
969
|
-
...(obj.logicWarning && {
|
|
970
|
-
logicWarning: GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog(obj.logicWarning),
|
|
971
|
-
}),
|
|
972
|
-
});
|
|
973
|
-
const GuardrailAutomatedReasoningTranslationOptionFilterSensitiveLog = (obj) => ({
|
|
974
|
-
...obj,
|
|
975
|
-
});
|
|
976
|
-
const GuardrailAutomatedReasoningTranslationAmbiguousFindingFilterSensitiveLog = (obj) => ({
|
|
977
|
-
...obj,
|
|
978
|
-
});
|
|
979
|
-
const GuardrailAutomatedReasoningValidFindingFilterSensitiveLog = (obj) => ({
|
|
980
|
-
...obj,
|
|
981
|
-
...(obj.translation && { translation: GuardrailAutomatedReasoningTranslationFilterSensitiveLog(obj.translation) }),
|
|
982
|
-
...(obj.claimsTrueScenario && {
|
|
983
|
-
claimsTrueScenario: GuardrailAutomatedReasoningScenarioFilterSensitiveLog(obj.claimsTrueScenario),
|
|
984
|
-
}),
|
|
985
|
-
...(obj.logicWarning && {
|
|
986
|
-
logicWarning: GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog(obj.logicWarning),
|
|
987
|
-
}),
|
|
988
|
-
});
|
|
989
|
-
const GuardrailAutomatedReasoningFindingFilterSensitiveLog = (obj) => {
|
|
990
|
-
if (obj.valid !== undefined)
|
|
991
|
-
return { valid: GuardrailAutomatedReasoningValidFindingFilterSensitiveLog(obj.valid) };
|
|
992
|
-
if (obj.invalid !== undefined)
|
|
993
|
-
return { invalid: GuardrailAutomatedReasoningInvalidFindingFilterSensitiveLog(obj.invalid) };
|
|
994
|
-
if (obj.satisfiable !== undefined)
|
|
995
|
-
return { satisfiable: GuardrailAutomatedReasoningSatisfiableFindingFilterSensitiveLog(obj.satisfiable) };
|
|
996
|
-
if (obj.impossible !== undefined)
|
|
997
|
-
return { impossible: GuardrailAutomatedReasoningImpossibleFindingFilterSensitiveLog(obj.impossible) };
|
|
998
|
-
if (obj.translationAmbiguous !== undefined)
|
|
999
|
-
return {
|
|
1000
|
-
translationAmbiguous: GuardrailAutomatedReasoningTranslationAmbiguousFindingFilterSensitiveLog(obj.translationAmbiguous),
|
|
1001
|
-
};
|
|
1002
|
-
if (obj.tooComplex !== undefined)
|
|
1003
|
-
return { tooComplex: obj.tooComplex };
|
|
1004
|
-
if (obj.noTranslations !== undefined)
|
|
1005
|
-
return { noTranslations: obj.noTranslations };
|
|
1006
|
-
if (obj.$unknown !== undefined)
|
|
1007
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1008
|
-
};
|
|
1009
|
-
const GuardrailAutomatedReasoningPolicyAssessmentFilterSensitiveLog = (obj) => ({
|
|
1010
|
-
...obj,
|
|
1011
|
-
...(obj.findings && {
|
|
1012
|
-
findings: obj.findings.map((item) => GuardrailAutomatedReasoningFindingFilterSensitiveLog(item)),
|
|
1013
|
-
}),
|
|
1014
|
-
});
|
|
1015
|
-
const GuardrailAssessmentFilterSensitiveLog = (obj) => ({
|
|
1016
|
-
...obj,
|
|
1017
|
-
...(obj.automatedReasoningPolicy && {
|
|
1018
|
-
automatedReasoningPolicy: GuardrailAutomatedReasoningPolicyAssessmentFilterSensitiveLog(obj.automatedReasoningPolicy),
|
|
1019
|
-
}),
|
|
1020
|
-
});
|
|
1021
|
-
const ApplyGuardrailResponseFilterSensitiveLog = (obj) => ({
|
|
1022
|
-
...obj,
|
|
1023
|
-
...(obj.assessments && { assessments: obj.assessments.map((item) => GuardrailAssessmentFilterSensitiveLog(item)) }),
|
|
1024
|
-
});
|
|
1025
|
-
const GuardrailConverseImageSourceFilterSensitiveLog = (obj) => {
|
|
1026
|
-
if (obj.bytes !== undefined)
|
|
1027
|
-
return { bytes: obj.bytes };
|
|
1028
|
-
if (obj.$unknown !== undefined)
|
|
1029
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1030
|
-
};
|
|
1031
|
-
const GuardrailConverseImageBlockFilterSensitiveLog = (obj) => ({
|
|
1032
|
-
...obj,
|
|
1033
|
-
...(obj.source && { source: smithyClient.SENSITIVE_STRING }),
|
|
1034
|
-
});
|
|
1035
|
-
const GuardrailConverseContentBlockFilterSensitiveLog = (obj) => {
|
|
1036
|
-
if (obj.text !== undefined)
|
|
1037
|
-
return { text: obj.text };
|
|
1038
|
-
if (obj.image !== undefined)
|
|
1039
|
-
return { image: smithyClient.SENSITIVE_STRING };
|
|
1040
|
-
if (obj.$unknown !== undefined)
|
|
1041
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1042
|
-
};
|
|
1043
|
-
const ReasoningTextBlockFilterSensitiveLog = (obj) => ({
|
|
1044
|
-
...obj,
|
|
1045
|
-
});
|
|
1046
|
-
const ReasoningContentBlockFilterSensitiveLog = (obj) => {
|
|
1047
|
-
if (obj.reasoningText !== undefined)
|
|
1048
|
-
return { reasoningText: smithyClient.SENSITIVE_STRING };
|
|
1049
|
-
if (obj.redactedContent !== undefined)
|
|
1050
|
-
return { redactedContent: obj.redactedContent };
|
|
1051
|
-
if (obj.$unknown !== undefined)
|
|
1052
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1053
|
-
};
|
|
1054
|
-
const ContentBlockFilterSensitiveLog = (obj) => {
|
|
1055
|
-
if (obj.text !== undefined)
|
|
1056
|
-
return { text: obj.text };
|
|
1057
|
-
if (obj.image !== undefined)
|
|
1058
|
-
return { image: obj.image };
|
|
1059
|
-
if (obj.document !== undefined)
|
|
1060
|
-
return { document: obj.document };
|
|
1061
|
-
if (obj.video !== undefined)
|
|
1062
|
-
return { video: obj.video };
|
|
1063
|
-
if (obj.toolUse !== undefined)
|
|
1064
|
-
return { toolUse: obj.toolUse };
|
|
1065
|
-
if (obj.toolResult !== undefined)
|
|
1066
|
-
return { toolResult: obj.toolResult };
|
|
1067
|
-
if (obj.guardContent !== undefined)
|
|
1068
|
-
return { guardContent: GuardrailConverseContentBlockFilterSensitiveLog(obj.guardContent) };
|
|
1069
|
-
if (obj.cachePoint !== undefined)
|
|
1070
|
-
return { cachePoint: obj.cachePoint };
|
|
1071
|
-
if (obj.reasoningContent !== undefined)
|
|
1072
|
-
return { reasoningContent: smithyClient.SENSITIVE_STRING };
|
|
1073
|
-
if (obj.citationsContent !== undefined)
|
|
1074
|
-
return { citationsContent: obj.citationsContent };
|
|
1075
|
-
if (obj.$unknown !== undefined)
|
|
1076
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1077
|
-
};
|
|
1078
|
-
const MessageFilterSensitiveLog = (obj) => ({
|
|
1079
|
-
...obj,
|
|
1080
|
-
...(obj.content && { content: obj.content.map((item) => ContentBlockFilterSensitiveLog(item)) }),
|
|
1081
|
-
});
|
|
1082
|
-
const SystemContentBlockFilterSensitiveLog = (obj) => {
|
|
1083
|
-
if (obj.text !== undefined)
|
|
1084
|
-
return { text: obj.text };
|
|
1085
|
-
if (obj.guardContent !== undefined)
|
|
1086
|
-
return { guardContent: GuardrailConverseContentBlockFilterSensitiveLog(obj.guardContent) };
|
|
1087
|
-
if (obj.cachePoint !== undefined)
|
|
1088
|
-
return { cachePoint: obj.cachePoint };
|
|
1089
|
-
if (obj.$unknown !== undefined)
|
|
1090
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1091
|
-
};
|
|
1092
|
-
const ConverseRequestFilterSensitiveLog = (obj) => ({
|
|
1093
|
-
...obj,
|
|
1094
|
-
...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
|
|
1095
|
-
...(obj.system && { system: obj.system.map((item) => SystemContentBlockFilterSensitiveLog(item)) }),
|
|
1096
|
-
...(obj.toolConfig && { toolConfig: obj.toolConfig }),
|
|
1097
|
-
...(obj.promptVariables && { promptVariables: smithyClient.SENSITIVE_STRING }),
|
|
1098
|
-
...(obj.requestMetadata && { requestMetadata: smithyClient.SENSITIVE_STRING }),
|
|
1099
|
-
});
|
|
1100
|
-
const ConverseOutputFilterSensitiveLog = (obj) => {
|
|
1101
|
-
if (obj.message !== undefined)
|
|
1102
|
-
return { message: MessageFilterSensitiveLog(obj.message) };
|
|
1103
|
-
if (obj.$unknown !== undefined)
|
|
1104
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1105
|
-
};
|
|
1106
|
-
const GuardrailTraceAssessmentFilterSensitiveLog = (obj) => ({
|
|
1107
|
-
...obj,
|
|
1108
|
-
...(obj.inputAssessment && {
|
|
1109
|
-
inputAssessment: Object.entries(obj.inputAssessment).reduce((acc, [key, value]) => ((acc[key] = GuardrailAssessmentFilterSensitiveLog(value)), acc), {}),
|
|
1110
|
-
}),
|
|
1111
|
-
...(obj.outputAssessments && {
|
|
1112
|
-
outputAssessments: Object.entries(obj.outputAssessments).reduce((acc, [key, value]) => ((acc[key] = value.map((item) => GuardrailAssessmentFilterSensitiveLog(item))), acc), {}),
|
|
1113
|
-
}),
|
|
1114
|
-
});
|
|
1115
|
-
const ConverseTraceFilterSensitiveLog = (obj) => ({
|
|
1116
|
-
...obj,
|
|
1117
|
-
...(obj.guardrail && { guardrail: GuardrailTraceAssessmentFilterSensitiveLog(obj.guardrail) }),
|
|
1118
|
-
});
|
|
1119
|
-
const ConverseResponseFilterSensitiveLog = (obj) => ({
|
|
1120
|
-
...obj,
|
|
1121
|
-
...(obj.output && { output: ConverseOutputFilterSensitiveLog(obj.output) }),
|
|
1122
|
-
...(obj.trace && { trace: ConverseTraceFilterSensitiveLog(obj.trace) }),
|
|
1123
|
-
});
|
|
1124
|
-
const ConverseStreamRequestFilterSensitiveLog = (obj) => ({
|
|
1125
|
-
...obj,
|
|
1126
|
-
...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
|
|
1127
|
-
...(obj.system && { system: obj.system.map((item) => SystemContentBlockFilterSensitiveLog(item)) }),
|
|
1128
|
-
...(obj.toolConfig && { toolConfig: obj.toolConfig }),
|
|
1129
|
-
...(obj.promptVariables && { promptVariables: smithyClient.SENSITIVE_STRING }),
|
|
1130
|
-
...(obj.requestMetadata && { requestMetadata: smithyClient.SENSITIVE_STRING }),
|
|
1131
|
-
});
|
|
1132
|
-
const ReasoningContentBlockDeltaFilterSensitiveLog = (obj) => {
|
|
1133
|
-
if (obj.text !== undefined)
|
|
1134
|
-
return { text: obj.text };
|
|
1135
|
-
if (obj.redactedContent !== undefined)
|
|
1136
|
-
return { redactedContent: obj.redactedContent };
|
|
1137
|
-
if (obj.signature !== undefined)
|
|
1138
|
-
return { signature: obj.signature };
|
|
1139
|
-
if (obj.$unknown !== undefined)
|
|
1140
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1141
|
-
};
|
|
1142
|
-
const ContentBlockDeltaFilterSensitiveLog = (obj) => {
|
|
1143
|
-
if (obj.text !== undefined)
|
|
1144
|
-
return { text: obj.text };
|
|
1145
|
-
if (obj.toolUse !== undefined)
|
|
1146
|
-
return { toolUse: obj.toolUse };
|
|
1147
|
-
if (obj.toolResult !== undefined)
|
|
1148
|
-
return { toolResult: obj.toolResult.map((item) => item) };
|
|
1149
|
-
if (obj.reasoningContent !== undefined)
|
|
1150
|
-
return { reasoningContent: smithyClient.SENSITIVE_STRING };
|
|
1151
|
-
if (obj.citation !== undefined)
|
|
1152
|
-
return { citation: obj.citation };
|
|
1153
|
-
if (obj.$unknown !== undefined)
|
|
1154
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1155
|
-
};
|
|
1156
|
-
const ContentBlockDeltaEventFilterSensitiveLog = (obj) => ({
|
|
1157
|
-
...obj,
|
|
1158
|
-
...(obj.delta && { delta: ContentBlockDeltaFilterSensitiveLog(obj.delta) }),
|
|
1159
|
-
});
|
|
1160
|
-
const ConverseStreamTraceFilterSensitiveLog = (obj) => ({
|
|
1161
|
-
...obj,
|
|
1162
|
-
...(obj.guardrail && { guardrail: GuardrailTraceAssessmentFilterSensitiveLog(obj.guardrail) }),
|
|
1163
|
-
});
|
|
1164
|
-
const ConverseStreamMetadataEventFilterSensitiveLog = (obj) => ({
|
|
1165
|
-
...obj,
|
|
1166
|
-
...(obj.trace && { trace: ConverseStreamTraceFilterSensitiveLog(obj.trace) }),
|
|
1167
|
-
});
|
|
1168
|
-
const ConverseStreamOutputFilterSensitiveLog = (obj) => {
|
|
1169
|
-
if (obj.messageStart !== undefined)
|
|
1170
|
-
return { messageStart: obj.messageStart };
|
|
1171
|
-
if (obj.contentBlockStart !== undefined)
|
|
1172
|
-
return { contentBlockStart: obj.contentBlockStart };
|
|
1173
|
-
if (obj.contentBlockDelta !== undefined)
|
|
1174
|
-
return { contentBlockDelta: ContentBlockDeltaEventFilterSensitiveLog(obj.contentBlockDelta) };
|
|
1175
|
-
if (obj.contentBlockStop !== undefined)
|
|
1176
|
-
return { contentBlockStop: obj.contentBlockStop };
|
|
1177
|
-
if (obj.messageStop !== undefined)
|
|
1178
|
-
return { messageStop: obj.messageStop };
|
|
1179
|
-
if (obj.metadata !== undefined)
|
|
1180
|
-
return { metadata: ConverseStreamMetadataEventFilterSensitiveLog(obj.metadata) };
|
|
1181
|
-
if (obj.internalServerException !== undefined)
|
|
1182
|
-
return { internalServerException: obj.internalServerException };
|
|
1183
|
-
if (obj.modelStreamErrorException !== undefined)
|
|
1184
|
-
return { modelStreamErrorException: obj.modelStreamErrorException };
|
|
1185
|
-
if (obj.validationException !== undefined)
|
|
1186
|
-
return { validationException: obj.validationException };
|
|
1187
|
-
if (obj.throttlingException !== undefined)
|
|
1188
|
-
return { throttlingException: obj.throttlingException };
|
|
1189
|
-
if (obj.serviceUnavailableException !== undefined)
|
|
1190
|
-
return { serviceUnavailableException: obj.serviceUnavailableException };
|
|
1191
|
-
if (obj.$unknown !== undefined)
|
|
1192
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1193
|
-
};
|
|
1194
|
-
const ConverseStreamResponseFilterSensitiveLog = (obj) => ({
|
|
1195
|
-
...obj,
|
|
1196
|
-
...(obj.stream && { stream: "STREAMING_CONTENT" }),
|
|
1197
|
-
});
|
|
1198
|
-
const InvokeModelRequestFilterSensitiveLog = (obj) => ({
|
|
1199
|
-
...obj,
|
|
1200
|
-
...(obj.body && { body: smithyClient.SENSITIVE_STRING }),
|
|
1201
|
-
});
|
|
1202
|
-
const InvokeModelResponseFilterSensitiveLog = (obj) => ({
|
|
1203
|
-
...obj,
|
|
1204
|
-
...(obj.body && { body: smithyClient.SENSITIVE_STRING }),
|
|
1205
|
-
});
|
|
1206
|
-
const BidirectionalInputPayloadPartFilterSensitiveLog = (obj) => ({
|
|
1207
|
-
...obj,
|
|
1208
|
-
...(obj.bytes && { bytes: smithyClient.SENSITIVE_STRING }),
|
|
1209
|
-
});
|
|
1210
|
-
const InvokeModelWithBidirectionalStreamInputFilterSensitiveLog = (obj) => {
|
|
1211
|
-
if (obj.chunk !== undefined)
|
|
1212
|
-
return { chunk: smithyClient.SENSITIVE_STRING };
|
|
1213
|
-
if (obj.$unknown !== undefined)
|
|
1214
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1215
|
-
};
|
|
1216
|
-
const InvokeModelWithBidirectionalStreamRequestFilterSensitiveLog = (obj) => ({
|
|
1217
|
-
...obj,
|
|
1218
|
-
...(obj.body && { body: "STREAMING_CONTENT" }),
|
|
1219
|
-
});
|
|
1220
|
-
const BidirectionalOutputPayloadPartFilterSensitiveLog = (obj) => ({
|
|
1221
|
-
...obj,
|
|
1222
|
-
...(obj.bytes && { bytes: smithyClient.SENSITIVE_STRING }),
|
|
1223
|
-
});
|
|
1224
|
-
const InvokeModelWithBidirectionalStreamOutputFilterSensitiveLog = (obj) => {
|
|
1225
|
-
if (obj.chunk !== undefined)
|
|
1226
|
-
return { chunk: smithyClient.SENSITIVE_STRING };
|
|
1227
|
-
if (obj.internalServerException !== undefined)
|
|
1228
|
-
return { internalServerException: obj.internalServerException };
|
|
1229
|
-
if (obj.modelStreamErrorException !== undefined)
|
|
1230
|
-
return { modelStreamErrorException: obj.modelStreamErrorException };
|
|
1231
|
-
if (obj.validationException !== undefined)
|
|
1232
|
-
return { validationException: obj.validationException };
|
|
1233
|
-
if (obj.throttlingException !== undefined)
|
|
1234
|
-
return { throttlingException: obj.throttlingException };
|
|
1235
|
-
if (obj.modelTimeoutException !== undefined)
|
|
1236
|
-
return { modelTimeoutException: obj.modelTimeoutException };
|
|
1237
|
-
if (obj.serviceUnavailableException !== undefined)
|
|
1238
|
-
return { serviceUnavailableException: obj.serviceUnavailableException };
|
|
1239
|
-
if (obj.$unknown !== undefined)
|
|
1240
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1241
|
-
};
|
|
1242
|
-
const InvokeModelWithBidirectionalStreamResponseFilterSensitiveLog = (obj) => ({
|
|
1243
|
-
...obj,
|
|
1244
|
-
...(obj.body && { body: "STREAMING_CONTENT" }),
|
|
1245
|
-
});
|
|
1246
|
-
const InvokeModelWithResponseStreamRequestFilterSensitiveLog = (obj) => ({
|
|
1247
|
-
...obj,
|
|
1248
|
-
...(obj.body && { body: smithyClient.SENSITIVE_STRING }),
|
|
1249
|
-
});
|
|
1250
|
-
const PayloadPartFilterSensitiveLog = (obj) => ({
|
|
1251
|
-
...obj,
|
|
1252
|
-
...(obj.bytes && { bytes: smithyClient.SENSITIVE_STRING }),
|
|
1253
|
-
});
|
|
1254
|
-
const ResponseStreamFilterSensitiveLog = (obj) => {
|
|
1255
|
-
if (obj.chunk !== undefined)
|
|
1256
|
-
return { chunk: smithyClient.SENSITIVE_STRING };
|
|
1257
|
-
if (obj.internalServerException !== undefined)
|
|
1258
|
-
return { internalServerException: obj.internalServerException };
|
|
1259
|
-
if (obj.modelStreamErrorException !== undefined)
|
|
1260
|
-
return { modelStreamErrorException: obj.modelStreamErrorException };
|
|
1261
|
-
if (obj.validationException !== undefined)
|
|
1262
|
-
return { validationException: obj.validationException };
|
|
1263
|
-
if (obj.throttlingException !== undefined)
|
|
1264
|
-
return { throttlingException: obj.throttlingException };
|
|
1265
|
-
if (obj.modelTimeoutException !== undefined)
|
|
1266
|
-
return { modelTimeoutException: obj.modelTimeoutException };
|
|
1267
|
-
if (obj.serviceUnavailableException !== undefined)
|
|
1268
|
-
return { serviceUnavailableException: obj.serviceUnavailableException };
|
|
1269
|
-
if (obj.$unknown !== undefined)
|
|
1270
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1271
|
-
};
|
|
1272
|
-
const InvokeModelWithResponseStreamResponseFilterSensitiveLog = (obj) => ({
|
|
1273
|
-
...obj,
|
|
1274
|
-
...(obj.body && { body: "STREAMING_CONTENT" }),
|
|
1275
|
-
});
|
|
1276
|
-
const ConverseTokensRequestFilterSensitiveLog = (obj) => ({
|
|
1277
|
-
...obj,
|
|
1278
|
-
...(obj.messages && { messages: obj.messages.map((item) => MessageFilterSensitiveLog(item)) }),
|
|
1279
|
-
...(obj.system && { system: obj.system.map((item) => SystemContentBlockFilterSensitiveLog(item)) }),
|
|
1280
|
-
});
|
|
1281
|
-
const InvokeModelTokensRequestFilterSensitiveLog = (obj) => ({
|
|
1282
|
-
...obj,
|
|
1283
|
-
...(obj.body && { body: smithyClient.SENSITIVE_STRING }),
|
|
1284
|
-
});
|
|
1285
|
-
const CountTokensInputFilterSensitiveLog = (obj) => {
|
|
1286
|
-
if (obj.invokeModel !== undefined)
|
|
1287
|
-
return { invokeModel: InvokeModelTokensRequestFilterSensitiveLog(obj.invokeModel) };
|
|
1288
|
-
if (obj.converse !== undefined)
|
|
1289
|
-
return { converse: ConverseTokensRequestFilterSensitiveLog(obj.converse) };
|
|
1290
|
-
if (obj.$unknown !== undefined)
|
|
1291
|
-
return { [obj.$unknown[0]]: "UNKNOWN" };
|
|
1292
|
-
};
|
|
1293
|
-
const CountTokensRequestFilterSensitiveLog = (obj) => ({
|
|
1294
|
-
...obj,
|
|
1295
|
-
...(obj.input && { input: CountTokensInputFilterSensitiveLog(obj.input) }),
|
|
1296
|
-
});
|
|
1297
487
|
|
|
1298
|
-
const
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
const
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
|
|
1338
|
-
const
|
|
1339
|
-
|
|
1340
|
-
|
|
1341
|
-
|
|
1342
|
-
|
|
1343
|
-
|
|
1344
|
-
|
|
1345
|
-
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
const
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
|
|
1367
|
-
|
|
1368
|
-
|
|
1369
|
-
|
|
1370
|
-
|
|
1371
|
-
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
const
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
const
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
|
|
1401
|
-
|
|
1402
|
-
|
|
1403
|
-
const
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
const
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1434
|
-
|
|
1435
|
-
|
|
1436
|
-
const
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
const
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
const
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
|
|
1488
|
-
|
|
1489
|
-
const
|
|
1490
|
-
|
|
1491
|
-
|
|
1492
|
-
|
|
1493
|
-
|
|
1494
|
-
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
const
|
|
1510
|
-
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
const
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
const
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1542
|
-
const doc = smithyClient.take(data, {
|
|
1543
|
-
clientRequestToken: smithyClient.expectString,
|
|
1544
|
-
endTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
1545
|
-
failureMessage: smithyClient.expectString,
|
|
1546
|
-
invocationArn: smithyClient.expectString,
|
|
1547
|
-
lastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
1548
|
-
modelArn: smithyClient.expectString,
|
|
1549
|
-
outputDataConfig: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
|
|
1550
|
-
status: smithyClient.expectString,
|
|
1551
|
-
submitTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
1552
|
-
});
|
|
1553
|
-
Object.assign(contents, doc);
|
|
1554
|
-
return contents;
|
|
1555
|
-
};
|
|
1556
|
-
const de_InvokeModelCommand = async (output, context) => {
|
|
1557
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1558
|
-
return de_CommandError(output, context);
|
|
1559
|
-
}
|
|
1560
|
-
const contents = smithyClient.map({
|
|
1561
|
-
$metadata: deserializeMetadata(output),
|
|
1562
|
-
[_cT]: [, output.headers[_ct]],
|
|
1563
|
-
[_pCL]: [, output.headers[_xabpl]],
|
|
1564
|
-
});
|
|
1565
|
-
const data = await smithyClient.collectBody(output.body, context);
|
|
1566
|
-
contents.body = data;
|
|
1567
|
-
return contents;
|
|
1568
|
-
};
|
|
1569
|
-
const de_InvokeModelWithBidirectionalStreamCommand = async (output, context) => {
|
|
1570
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1571
|
-
return de_CommandError(output, context);
|
|
1572
|
-
}
|
|
1573
|
-
const contents = smithyClient.map({
|
|
1574
|
-
$metadata: deserializeMetadata(output),
|
|
1575
|
-
});
|
|
1576
|
-
const data = output.body;
|
|
1577
|
-
contents.body = de_InvokeModelWithBidirectionalStreamOutput(data, context);
|
|
1578
|
-
return contents;
|
|
1579
|
-
};
|
|
1580
|
-
const de_InvokeModelWithResponseStreamCommand = async (output, context) => {
|
|
1581
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1582
|
-
return de_CommandError(output, context);
|
|
1583
|
-
}
|
|
1584
|
-
const contents = smithyClient.map({
|
|
1585
|
-
$metadata: deserializeMetadata(output),
|
|
1586
|
-
[_cT]: [, output.headers[_xabct]],
|
|
1587
|
-
[_pCL]: [, output.headers[_xabpl]],
|
|
1588
|
-
});
|
|
1589
|
-
const data = output.body;
|
|
1590
|
-
contents.body = de_ResponseStream(data, context);
|
|
1591
|
-
return contents;
|
|
1592
|
-
};
|
|
1593
|
-
const de_ListAsyncInvokesCommand = async (output, context) => {
|
|
1594
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1595
|
-
return de_CommandError(output, context);
|
|
1596
|
-
}
|
|
1597
|
-
const contents = smithyClient.map({
|
|
1598
|
-
$metadata: deserializeMetadata(output),
|
|
1599
|
-
});
|
|
1600
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1601
|
-
const doc = smithyClient.take(data, {
|
|
1602
|
-
asyncInvokeSummaries: (_) => de_AsyncInvokeSummaries(_),
|
|
1603
|
-
nextToken: smithyClient.expectString,
|
|
1604
|
-
});
|
|
1605
|
-
Object.assign(contents, doc);
|
|
1606
|
-
return contents;
|
|
1607
|
-
};
|
|
1608
|
-
const de_StartAsyncInvokeCommand = async (output, context) => {
|
|
1609
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1610
|
-
return de_CommandError(output, context);
|
|
1611
|
-
}
|
|
1612
|
-
const contents = smithyClient.map({
|
|
1613
|
-
$metadata: deserializeMetadata(output),
|
|
1614
|
-
});
|
|
1615
|
-
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1616
|
-
const doc = smithyClient.take(data, {
|
|
1617
|
-
invocationArn: smithyClient.expectString,
|
|
1618
|
-
});
|
|
1619
|
-
Object.assign(contents, doc);
|
|
1620
|
-
return contents;
|
|
1621
|
-
};
|
|
1622
|
-
const de_CommandError = async (output, context) => {
|
|
1623
|
-
const parsedOutput = {
|
|
1624
|
-
...output,
|
|
1625
|
-
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
1626
|
-
};
|
|
1627
|
-
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1628
|
-
switch (errorCode) {
|
|
1629
|
-
case "AccessDeniedException":
|
|
1630
|
-
case "com.amazonaws.bedrockruntime#AccessDeniedException":
|
|
1631
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
1632
|
-
case "InternalServerException":
|
|
1633
|
-
case "com.amazonaws.bedrockruntime#InternalServerException":
|
|
1634
|
-
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
1635
|
-
case "ResourceNotFoundException":
|
|
1636
|
-
case "com.amazonaws.bedrockruntime#ResourceNotFoundException":
|
|
1637
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
1638
|
-
case "ServiceQuotaExceededException":
|
|
1639
|
-
case "com.amazonaws.bedrockruntime#ServiceQuotaExceededException":
|
|
1640
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
1641
|
-
case "ServiceUnavailableException":
|
|
1642
|
-
case "com.amazonaws.bedrockruntime#ServiceUnavailableException":
|
|
1643
|
-
throw await de_ServiceUnavailableExceptionRes(parsedOutput);
|
|
1644
|
-
case "ThrottlingException":
|
|
1645
|
-
case "com.amazonaws.bedrockruntime#ThrottlingException":
|
|
1646
|
-
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
1647
|
-
case "ValidationException":
|
|
1648
|
-
case "com.amazonaws.bedrockruntime#ValidationException":
|
|
1649
|
-
throw await de_ValidationExceptionRes(parsedOutput);
|
|
1650
|
-
case "ModelErrorException":
|
|
1651
|
-
case "com.amazonaws.bedrockruntime#ModelErrorException":
|
|
1652
|
-
throw await de_ModelErrorExceptionRes(parsedOutput);
|
|
1653
|
-
case "ModelNotReadyException":
|
|
1654
|
-
case "com.amazonaws.bedrockruntime#ModelNotReadyException":
|
|
1655
|
-
throw await de_ModelNotReadyExceptionRes(parsedOutput);
|
|
1656
|
-
case "ModelTimeoutException":
|
|
1657
|
-
case "com.amazonaws.bedrockruntime#ModelTimeoutException":
|
|
1658
|
-
throw await de_ModelTimeoutExceptionRes(parsedOutput);
|
|
1659
|
-
case "ModelStreamErrorException":
|
|
1660
|
-
case "com.amazonaws.bedrockruntime#ModelStreamErrorException":
|
|
1661
|
-
throw await de_ModelStreamErrorExceptionRes(parsedOutput);
|
|
1662
|
-
case "ConflictException":
|
|
1663
|
-
case "com.amazonaws.bedrockruntime#ConflictException":
|
|
1664
|
-
throw await de_ConflictExceptionRes(parsedOutput);
|
|
1665
|
-
default:
|
|
1666
|
-
const parsedBody = parsedOutput.body;
|
|
1667
|
-
return throwDefaultError({
|
|
1668
|
-
output,
|
|
1669
|
-
parsedBody,
|
|
1670
|
-
errorCode,
|
|
1671
|
-
});
|
|
1672
|
-
}
|
|
1673
|
-
};
|
|
1674
|
-
const throwDefaultError = smithyClient.withBaseException(BedrockRuntimeServiceException);
|
|
1675
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1676
|
-
const contents = smithyClient.map({});
|
|
1677
|
-
const data = parsedOutput.body;
|
|
1678
|
-
const doc = smithyClient.take(data, {
|
|
1679
|
-
message: smithyClient.expectString,
|
|
1680
|
-
});
|
|
1681
|
-
Object.assign(contents, doc);
|
|
1682
|
-
const exception = new AccessDeniedException({
|
|
1683
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1684
|
-
...contents,
|
|
1685
|
-
});
|
|
1686
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1687
|
-
};
|
|
1688
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1689
|
-
const contents = smithyClient.map({});
|
|
1690
|
-
const data = parsedOutput.body;
|
|
1691
|
-
const doc = smithyClient.take(data, {
|
|
1692
|
-
message: smithyClient.expectString,
|
|
1693
|
-
});
|
|
1694
|
-
Object.assign(contents, doc);
|
|
1695
|
-
const exception = new ConflictException({
|
|
1696
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1697
|
-
...contents,
|
|
1698
|
-
});
|
|
1699
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1700
|
-
};
|
|
1701
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1702
|
-
const contents = smithyClient.map({});
|
|
1703
|
-
const data = parsedOutput.body;
|
|
1704
|
-
const doc = smithyClient.take(data, {
|
|
1705
|
-
message: smithyClient.expectString,
|
|
1706
|
-
});
|
|
1707
|
-
Object.assign(contents, doc);
|
|
1708
|
-
const exception = new InternalServerException({
|
|
1709
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1710
|
-
...contents,
|
|
1711
|
-
});
|
|
1712
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1713
|
-
};
|
|
1714
|
-
const de_ModelErrorExceptionRes = async (parsedOutput, context) => {
|
|
1715
|
-
const contents = smithyClient.map({});
|
|
1716
|
-
const data = parsedOutput.body;
|
|
1717
|
-
const doc = smithyClient.take(data, {
|
|
1718
|
-
message: smithyClient.expectString,
|
|
1719
|
-
originalStatusCode: smithyClient.expectInt32,
|
|
1720
|
-
resourceName: smithyClient.expectString,
|
|
1721
|
-
});
|
|
1722
|
-
Object.assign(contents, doc);
|
|
1723
|
-
const exception = new ModelErrorException({
|
|
1724
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1725
|
-
...contents,
|
|
1726
|
-
});
|
|
1727
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1728
|
-
};
|
|
1729
|
-
const de_ModelNotReadyExceptionRes = async (parsedOutput, context) => {
|
|
1730
|
-
const contents = smithyClient.map({});
|
|
1731
|
-
const data = parsedOutput.body;
|
|
1732
|
-
const doc = smithyClient.take(data, {
|
|
1733
|
-
message: smithyClient.expectString,
|
|
1734
|
-
});
|
|
1735
|
-
Object.assign(contents, doc);
|
|
1736
|
-
const exception = new ModelNotReadyException({
|
|
1737
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1738
|
-
...contents,
|
|
1739
|
-
});
|
|
1740
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1741
|
-
};
|
|
1742
|
-
const de_ModelStreamErrorExceptionRes = async (parsedOutput, context) => {
|
|
1743
|
-
const contents = smithyClient.map({});
|
|
1744
|
-
const data = parsedOutput.body;
|
|
1745
|
-
const doc = smithyClient.take(data, {
|
|
1746
|
-
message: smithyClient.expectString,
|
|
1747
|
-
originalMessage: smithyClient.expectString,
|
|
1748
|
-
originalStatusCode: smithyClient.expectInt32,
|
|
1749
|
-
});
|
|
1750
|
-
Object.assign(contents, doc);
|
|
1751
|
-
const exception = new ModelStreamErrorException({
|
|
1752
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1753
|
-
...contents,
|
|
1754
|
-
});
|
|
1755
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1756
|
-
};
|
|
1757
|
-
const de_ModelTimeoutExceptionRes = async (parsedOutput, context) => {
|
|
1758
|
-
const contents = smithyClient.map({});
|
|
1759
|
-
const data = parsedOutput.body;
|
|
1760
|
-
const doc = smithyClient.take(data, {
|
|
1761
|
-
message: smithyClient.expectString,
|
|
1762
|
-
});
|
|
1763
|
-
Object.assign(contents, doc);
|
|
1764
|
-
const exception = new ModelTimeoutException({
|
|
1765
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1766
|
-
...contents,
|
|
1767
|
-
});
|
|
1768
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1769
|
-
};
|
|
1770
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1771
|
-
const contents = smithyClient.map({});
|
|
1772
|
-
const data = parsedOutput.body;
|
|
1773
|
-
const doc = smithyClient.take(data, {
|
|
1774
|
-
message: smithyClient.expectString,
|
|
1775
|
-
});
|
|
1776
|
-
Object.assign(contents, doc);
|
|
1777
|
-
const exception = new ResourceNotFoundException({
|
|
1778
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1779
|
-
...contents,
|
|
1780
|
-
});
|
|
1781
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1782
|
-
};
|
|
1783
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1784
|
-
const contents = smithyClient.map({});
|
|
1785
|
-
const data = parsedOutput.body;
|
|
1786
|
-
const doc = smithyClient.take(data, {
|
|
1787
|
-
message: smithyClient.expectString,
|
|
1788
|
-
});
|
|
1789
|
-
Object.assign(contents, doc);
|
|
1790
|
-
const exception = new ServiceQuotaExceededException({
|
|
1791
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1792
|
-
...contents,
|
|
1793
|
-
});
|
|
1794
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1795
|
-
};
|
|
1796
|
-
const de_ServiceUnavailableExceptionRes = async (parsedOutput, context) => {
|
|
1797
|
-
const contents = smithyClient.map({});
|
|
1798
|
-
const data = parsedOutput.body;
|
|
1799
|
-
const doc = smithyClient.take(data, {
|
|
1800
|
-
message: smithyClient.expectString,
|
|
1801
|
-
});
|
|
1802
|
-
Object.assign(contents, doc);
|
|
1803
|
-
const exception = new ServiceUnavailableException({
|
|
1804
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1805
|
-
...contents,
|
|
1806
|
-
});
|
|
1807
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1808
|
-
};
|
|
1809
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1810
|
-
const contents = smithyClient.map({});
|
|
1811
|
-
const data = parsedOutput.body;
|
|
1812
|
-
const doc = smithyClient.take(data, {
|
|
1813
|
-
message: smithyClient.expectString,
|
|
1814
|
-
});
|
|
1815
|
-
Object.assign(contents, doc);
|
|
1816
|
-
const exception = new ThrottlingException({
|
|
1817
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1818
|
-
...contents,
|
|
1819
|
-
});
|
|
1820
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1821
|
-
};
|
|
1822
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1823
|
-
const contents = smithyClient.map({});
|
|
1824
|
-
const data = parsedOutput.body;
|
|
1825
|
-
const doc = smithyClient.take(data, {
|
|
1826
|
-
message: smithyClient.expectString,
|
|
1827
|
-
});
|
|
1828
|
-
Object.assign(contents, doc);
|
|
1829
|
-
const exception = new ValidationException({
|
|
1830
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1831
|
-
...contents,
|
|
1832
|
-
});
|
|
1833
|
-
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1834
|
-
};
|
|
1835
|
-
const se_InvokeModelWithBidirectionalStreamInput = (input, context) => {
|
|
1836
|
-
const eventMarshallingVisitor = (event) => exports.InvokeModelWithBidirectionalStreamInput.visit(event, {
|
|
1837
|
-
chunk: (value) => se_BidirectionalInputPayloadPart_event(value, context),
|
|
1838
|
-
_: (value) => value,
|
|
1839
|
-
});
|
|
1840
|
-
return context.eventStreamMarshaller.serialize(input, eventMarshallingVisitor);
|
|
1841
|
-
};
|
|
1842
|
-
const se_BidirectionalInputPayloadPart_event = (input, context) => {
|
|
1843
|
-
const headers = {
|
|
1844
|
-
":event-type": { type: "string", value: "chunk" },
|
|
1845
|
-
":message-type": { type: "string", value: "event" },
|
|
1846
|
-
":content-type": { type: "string", value: "application/json" },
|
|
1847
|
-
};
|
|
1848
|
-
let body = new Uint8Array();
|
|
1849
|
-
body = se_BidirectionalInputPayloadPart(input, context);
|
|
1850
|
-
body = context.utf8Decoder(JSON.stringify(body));
|
|
1851
|
-
return { headers, body };
|
|
1852
|
-
};
|
|
1853
|
-
const de_ConverseStreamOutput = (output, context) => {
|
|
1854
|
-
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
1855
|
-
if (event["messageStart"] != null) {
|
|
1856
|
-
return {
|
|
1857
|
-
messageStart: await de_MessageStartEvent_event(event["messageStart"], context),
|
|
1858
|
-
};
|
|
1859
|
-
}
|
|
1860
|
-
if (event["contentBlockStart"] != null) {
|
|
1861
|
-
return {
|
|
1862
|
-
contentBlockStart: await de_ContentBlockStartEvent_event(event["contentBlockStart"], context),
|
|
1863
|
-
};
|
|
1864
|
-
}
|
|
1865
|
-
if (event["contentBlockDelta"] != null) {
|
|
1866
|
-
return {
|
|
1867
|
-
contentBlockDelta: await de_ContentBlockDeltaEvent_event(event["contentBlockDelta"], context),
|
|
1868
|
-
};
|
|
1869
|
-
}
|
|
1870
|
-
if (event["contentBlockStop"] != null) {
|
|
1871
|
-
return {
|
|
1872
|
-
contentBlockStop: await de_ContentBlockStopEvent_event(event["contentBlockStop"], context),
|
|
1873
|
-
};
|
|
1874
|
-
}
|
|
1875
|
-
if (event["messageStop"] != null) {
|
|
1876
|
-
return {
|
|
1877
|
-
messageStop: await de_MessageStopEvent_event(event["messageStop"], context),
|
|
1878
|
-
};
|
|
1879
|
-
}
|
|
1880
|
-
if (event["metadata"] != null) {
|
|
1881
|
-
return {
|
|
1882
|
-
metadata: await de_ConverseStreamMetadataEvent_event(event["metadata"], context),
|
|
1883
|
-
};
|
|
1884
|
-
}
|
|
1885
|
-
if (event["internalServerException"] != null) {
|
|
1886
|
-
return {
|
|
1887
|
-
internalServerException: await de_InternalServerException_event(event["internalServerException"], context),
|
|
1888
|
-
};
|
|
1889
|
-
}
|
|
1890
|
-
if (event["modelStreamErrorException"] != null) {
|
|
1891
|
-
return {
|
|
1892
|
-
modelStreamErrorException: await de_ModelStreamErrorException_event(event["modelStreamErrorException"], context),
|
|
1893
|
-
};
|
|
1894
|
-
}
|
|
1895
|
-
if (event["validationException"] != null) {
|
|
1896
|
-
return {
|
|
1897
|
-
validationException: await de_ValidationException_event(event["validationException"], context),
|
|
1898
|
-
};
|
|
1899
|
-
}
|
|
1900
|
-
if (event["throttlingException"] != null) {
|
|
1901
|
-
return {
|
|
1902
|
-
throttlingException: await de_ThrottlingException_event(event["throttlingException"], context),
|
|
1903
|
-
};
|
|
1904
|
-
}
|
|
1905
|
-
if (event["serviceUnavailableException"] != null) {
|
|
1906
|
-
return {
|
|
1907
|
-
serviceUnavailableException: await de_ServiceUnavailableException_event(event["serviceUnavailableException"], context),
|
|
1908
|
-
};
|
|
1909
|
-
}
|
|
1910
|
-
return { $unknown: event };
|
|
1911
|
-
});
|
|
1912
|
-
};
|
|
1913
|
-
const de_InvokeModelWithBidirectionalStreamOutput = (output, context) => {
|
|
1914
|
-
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
1915
|
-
if (event["chunk"] != null) {
|
|
1916
|
-
return {
|
|
1917
|
-
chunk: await de_BidirectionalOutputPayloadPart_event(event["chunk"], context),
|
|
1918
|
-
};
|
|
1919
|
-
}
|
|
1920
|
-
if (event["internalServerException"] != null) {
|
|
1921
|
-
return {
|
|
1922
|
-
internalServerException: await de_InternalServerException_event(event["internalServerException"], context),
|
|
1923
|
-
};
|
|
1924
|
-
}
|
|
1925
|
-
if (event["modelStreamErrorException"] != null) {
|
|
1926
|
-
return {
|
|
1927
|
-
modelStreamErrorException: await de_ModelStreamErrorException_event(event["modelStreamErrorException"], context),
|
|
1928
|
-
};
|
|
1929
|
-
}
|
|
1930
|
-
if (event["validationException"] != null) {
|
|
1931
|
-
return {
|
|
1932
|
-
validationException: await de_ValidationException_event(event["validationException"], context),
|
|
1933
|
-
};
|
|
1934
|
-
}
|
|
1935
|
-
if (event["throttlingException"] != null) {
|
|
1936
|
-
return {
|
|
1937
|
-
throttlingException: await de_ThrottlingException_event(event["throttlingException"], context),
|
|
1938
|
-
};
|
|
1939
|
-
}
|
|
1940
|
-
if (event["modelTimeoutException"] != null) {
|
|
1941
|
-
return {
|
|
1942
|
-
modelTimeoutException: await de_ModelTimeoutException_event(event["modelTimeoutException"], context),
|
|
1943
|
-
};
|
|
1944
|
-
}
|
|
1945
|
-
if (event["serviceUnavailableException"] != null) {
|
|
1946
|
-
return {
|
|
1947
|
-
serviceUnavailableException: await de_ServiceUnavailableException_event(event["serviceUnavailableException"], context),
|
|
1948
|
-
};
|
|
1949
|
-
}
|
|
1950
|
-
return { $unknown: event };
|
|
1951
|
-
});
|
|
1952
|
-
};
|
|
1953
|
-
const de_ResponseStream = (output, context) => {
|
|
1954
|
-
return context.eventStreamMarshaller.deserialize(output, async (event) => {
|
|
1955
|
-
if (event["chunk"] != null) {
|
|
1956
|
-
return {
|
|
1957
|
-
chunk: await de_PayloadPart_event(event["chunk"], context),
|
|
1958
|
-
};
|
|
1959
|
-
}
|
|
1960
|
-
if (event["internalServerException"] != null) {
|
|
1961
|
-
return {
|
|
1962
|
-
internalServerException: await de_InternalServerException_event(event["internalServerException"], context),
|
|
1963
|
-
};
|
|
1964
|
-
}
|
|
1965
|
-
if (event["modelStreamErrorException"] != null) {
|
|
1966
|
-
return {
|
|
1967
|
-
modelStreamErrorException: await de_ModelStreamErrorException_event(event["modelStreamErrorException"], context),
|
|
1968
|
-
};
|
|
1969
|
-
}
|
|
1970
|
-
if (event["validationException"] != null) {
|
|
1971
|
-
return {
|
|
1972
|
-
validationException: await de_ValidationException_event(event["validationException"], context),
|
|
1973
|
-
};
|
|
1974
|
-
}
|
|
1975
|
-
if (event["throttlingException"] != null) {
|
|
1976
|
-
return {
|
|
1977
|
-
throttlingException: await de_ThrottlingException_event(event["throttlingException"], context),
|
|
1978
|
-
};
|
|
1979
|
-
}
|
|
1980
|
-
if (event["modelTimeoutException"] != null) {
|
|
1981
|
-
return {
|
|
1982
|
-
modelTimeoutException: await de_ModelTimeoutException_event(event["modelTimeoutException"], context),
|
|
1983
|
-
};
|
|
1984
|
-
}
|
|
1985
|
-
if (event["serviceUnavailableException"] != null) {
|
|
1986
|
-
return {
|
|
1987
|
-
serviceUnavailableException: await de_ServiceUnavailableException_event(event["serviceUnavailableException"], context),
|
|
1988
|
-
};
|
|
1989
|
-
}
|
|
1990
|
-
return { $unknown: event };
|
|
1991
|
-
});
|
|
1992
|
-
};
|
|
1993
|
-
const de_BidirectionalOutputPayloadPart_event = async (output, context) => {
|
|
1994
|
-
const contents = {};
|
|
1995
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
1996
|
-
Object.assign(contents, de_BidirectionalOutputPayloadPart(data, context));
|
|
1997
|
-
return contents;
|
|
1998
|
-
};
|
|
1999
|
-
const de_ContentBlockDeltaEvent_event = async (output, context) => {
|
|
2000
|
-
const contents = {};
|
|
2001
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
2002
|
-
Object.assign(contents, de_ContentBlockDeltaEvent(data, context));
|
|
2003
|
-
return contents;
|
|
2004
|
-
};
|
|
2005
|
-
const de_ContentBlockStartEvent_event = async (output, context) => {
|
|
2006
|
-
const contents = {};
|
|
2007
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
2008
|
-
Object.assign(contents, smithyClient._json(data));
|
|
2009
|
-
return contents;
|
|
2010
|
-
};
|
|
2011
|
-
const de_ContentBlockStopEvent_event = async (output, context) => {
|
|
2012
|
-
const contents = {};
|
|
2013
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
2014
|
-
Object.assign(contents, smithyClient._json(data));
|
|
2015
|
-
return contents;
|
|
2016
|
-
};
|
|
2017
|
-
const de_ConverseStreamMetadataEvent_event = async (output, context) => {
|
|
2018
|
-
const contents = {};
|
|
2019
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
2020
|
-
Object.assign(contents, de_ConverseStreamMetadataEvent(data));
|
|
2021
|
-
return contents;
|
|
2022
|
-
};
|
|
2023
|
-
const de_InternalServerException_event = async (output, context) => {
|
|
2024
|
-
const parsedOutput = {
|
|
2025
|
-
...output,
|
|
2026
|
-
body: await core$1.parseJsonBody(output.body, context),
|
|
2027
|
-
};
|
|
2028
|
-
return de_InternalServerExceptionRes(parsedOutput);
|
|
2029
|
-
};
|
|
2030
|
-
const de_MessageStartEvent_event = async (output, context) => {
|
|
2031
|
-
const contents = {};
|
|
2032
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
2033
|
-
Object.assign(contents, smithyClient._json(data));
|
|
2034
|
-
return contents;
|
|
2035
|
-
};
|
|
2036
|
-
const de_MessageStopEvent_event = async (output, context) => {
|
|
2037
|
-
const contents = {};
|
|
2038
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
2039
|
-
Object.assign(contents, de_MessageStopEvent(data));
|
|
2040
|
-
return contents;
|
|
2041
|
-
};
|
|
2042
|
-
const de_ModelStreamErrorException_event = async (output, context) => {
|
|
2043
|
-
const parsedOutput = {
|
|
2044
|
-
...output,
|
|
2045
|
-
body: await core$1.parseJsonBody(output.body, context),
|
|
2046
|
-
};
|
|
2047
|
-
return de_ModelStreamErrorExceptionRes(parsedOutput);
|
|
2048
|
-
};
|
|
2049
|
-
const de_ModelTimeoutException_event = async (output, context) => {
|
|
2050
|
-
const parsedOutput = {
|
|
2051
|
-
...output,
|
|
2052
|
-
body: await core$1.parseJsonBody(output.body, context),
|
|
2053
|
-
};
|
|
2054
|
-
return de_ModelTimeoutExceptionRes(parsedOutput);
|
|
2055
|
-
};
|
|
2056
|
-
const de_PayloadPart_event = async (output, context) => {
|
|
2057
|
-
const contents = {};
|
|
2058
|
-
const data = await core$1.parseJsonBody(output.body, context);
|
|
2059
|
-
Object.assign(contents, de_PayloadPart(data, context));
|
|
2060
|
-
return contents;
|
|
2061
|
-
};
|
|
2062
|
-
const de_ServiceUnavailableException_event = async (output, context) => {
|
|
2063
|
-
const parsedOutput = {
|
|
2064
|
-
...output,
|
|
2065
|
-
body: await core$1.parseJsonBody(output.body, context),
|
|
2066
|
-
};
|
|
2067
|
-
return de_ServiceUnavailableExceptionRes(parsedOutput);
|
|
2068
|
-
};
|
|
2069
|
-
const de_ThrottlingException_event = async (output, context) => {
|
|
2070
|
-
const parsedOutput = {
|
|
2071
|
-
...output,
|
|
2072
|
-
body: await core$1.parseJsonBody(output.body, context),
|
|
2073
|
-
};
|
|
2074
|
-
return de_ThrottlingExceptionRes(parsedOutput);
|
|
2075
|
-
};
|
|
2076
|
-
const de_ValidationException_event = async (output, context) => {
|
|
2077
|
-
const parsedOutput = {
|
|
2078
|
-
...output,
|
|
2079
|
-
body: await core$1.parseJsonBody(output.body, context),
|
|
2080
|
-
};
|
|
2081
|
-
return de_ValidationExceptionRes(parsedOutput);
|
|
2082
|
-
};
|
|
2083
|
-
const se_BidirectionalInputPayloadPart = (input, context) => {
|
|
2084
|
-
return smithyClient.take(input, {
|
|
2085
|
-
bytes: context.base64Encoder,
|
|
2086
|
-
});
|
|
2087
|
-
};
|
|
2088
|
-
const se_ContentBlock = (input, context) => {
|
|
2089
|
-
return exports.ContentBlock.visit(input, {
|
|
2090
|
-
cachePoint: (value) => ({ cachePoint: smithyClient._json(value) }),
|
|
2091
|
-
citationsContent: (value) => ({ citationsContent: smithyClient._json(value) }),
|
|
2092
|
-
document: (value) => ({ document: se_DocumentBlock(value, context) }),
|
|
2093
|
-
guardContent: (value) => ({ guardContent: se_GuardrailConverseContentBlock(value, context) }),
|
|
2094
|
-
image: (value) => ({ image: se_ImageBlock(value, context) }),
|
|
2095
|
-
reasoningContent: (value) => ({ reasoningContent: se_ReasoningContentBlock(value, context) }),
|
|
2096
|
-
text: (value) => ({ text: value }),
|
|
2097
|
-
toolResult: (value) => ({ toolResult: se_ToolResultBlock(value, context) }),
|
|
2098
|
-
toolUse: (value) => ({ toolUse: se_ToolUseBlock(value) }),
|
|
2099
|
-
video: (value) => ({ video: se_VideoBlock(value, context) }),
|
|
2100
|
-
_: (name, value) => ({ [name]: value }),
|
|
2101
|
-
});
|
|
2102
|
-
};
|
|
2103
|
-
const se_ContentBlocks = (input, context) => {
|
|
2104
|
-
return input
|
|
2105
|
-
.filter((e) => e != null)
|
|
2106
|
-
.map((entry) => {
|
|
2107
|
-
return se_ContentBlock(entry, context);
|
|
2108
|
-
});
|
|
2109
|
-
};
|
|
2110
|
-
const se_ConverseTokensRequest = (input, context) => {
|
|
2111
|
-
return smithyClient.take(input, {
|
|
2112
|
-
messages: (_) => se_Messages(_, context),
|
|
2113
|
-
system: (_) => se_SystemContentBlocks(_, context),
|
|
2114
|
-
});
|
|
2115
|
-
};
|
|
2116
|
-
const se_CountTokensInput = (input, context) => {
|
|
2117
|
-
return exports.CountTokensInput.visit(input, {
|
|
2118
|
-
converse: (value) => ({ converse: se_ConverseTokensRequest(value, context) }),
|
|
2119
|
-
invokeModel: (value) => ({ invokeModel: se_InvokeModelTokensRequest(value, context) }),
|
|
2120
|
-
_: (name, value) => ({ [name]: value }),
|
|
2121
|
-
});
|
|
2122
|
-
};
|
|
2123
|
-
const se_DocumentBlock = (input, context) => {
|
|
2124
|
-
return smithyClient.take(input, {
|
|
2125
|
-
citations: smithyClient._json,
|
|
2126
|
-
context: [],
|
|
2127
|
-
format: [],
|
|
2128
|
-
name: [],
|
|
2129
|
-
source: (_) => se_DocumentSource(_, context),
|
|
2130
|
-
});
|
|
2131
|
-
};
|
|
2132
|
-
const se_DocumentSource = (input, context) => {
|
|
2133
|
-
return exports.DocumentSource.visit(input, {
|
|
2134
|
-
bytes: (value) => ({ bytes: context.base64Encoder(value) }),
|
|
2135
|
-
content: (value) => ({ content: smithyClient._json(value) }),
|
|
2136
|
-
s3Location: (value) => ({ s3Location: smithyClient._json(value) }),
|
|
2137
|
-
text: (value) => ({ text: value }),
|
|
2138
|
-
_: (name, value) => ({ [name]: value }),
|
|
2139
|
-
});
|
|
2140
|
-
};
|
|
2141
|
-
const se_GuardrailContentBlock = (input, context) => {
|
|
2142
|
-
return exports.GuardrailContentBlock.visit(input, {
|
|
2143
|
-
image: (value) => ({ image: se_GuardrailImageBlock(value, context) }),
|
|
2144
|
-
text: (value) => ({ text: smithyClient._json(value) }),
|
|
2145
|
-
_: (name, value) => ({ [name]: value }),
|
|
2146
|
-
});
|
|
2147
|
-
};
|
|
2148
|
-
const se_GuardrailContentBlockList = (input, context) => {
|
|
2149
|
-
return input
|
|
2150
|
-
.filter((e) => e != null)
|
|
2151
|
-
.map((entry) => {
|
|
2152
|
-
return se_GuardrailContentBlock(entry, context);
|
|
2153
|
-
});
|
|
2154
|
-
};
|
|
2155
|
-
const se_GuardrailConverseContentBlock = (input, context) => {
|
|
2156
|
-
return exports.GuardrailConverseContentBlock.visit(input, {
|
|
2157
|
-
image: (value) => ({ image: se_GuardrailConverseImageBlock(value, context) }),
|
|
2158
|
-
text: (value) => ({ text: smithyClient._json(value) }),
|
|
2159
|
-
_: (name, value) => ({ [name]: value }),
|
|
2160
|
-
});
|
|
2161
|
-
};
|
|
2162
|
-
const se_GuardrailConverseImageBlock = (input, context) => {
|
|
2163
|
-
return smithyClient.take(input, {
|
|
2164
|
-
format: [],
|
|
2165
|
-
source: (_) => se_GuardrailConverseImageSource(_, context),
|
|
2166
|
-
});
|
|
2167
|
-
};
|
|
2168
|
-
const se_GuardrailConverseImageSource = (input, context) => {
|
|
2169
|
-
return exports.GuardrailConverseImageSource.visit(input, {
|
|
2170
|
-
bytes: (value) => ({ bytes: context.base64Encoder(value) }),
|
|
2171
|
-
_: (name, value) => ({ [name]: value }),
|
|
2172
|
-
});
|
|
2173
|
-
};
|
|
2174
|
-
const se_GuardrailImageBlock = (input, context) => {
|
|
2175
|
-
return smithyClient.take(input, {
|
|
2176
|
-
format: [],
|
|
2177
|
-
source: (_) => se_GuardrailImageSource(_, context),
|
|
2178
|
-
});
|
|
2179
|
-
};
|
|
2180
|
-
const se_GuardrailImageSource = (input, context) => {
|
|
2181
|
-
return exports.GuardrailImageSource.visit(input, {
|
|
2182
|
-
bytes: (value) => ({ bytes: context.base64Encoder(value) }),
|
|
2183
|
-
_: (name, value) => ({ [name]: value }),
|
|
2184
|
-
});
|
|
2185
|
-
};
|
|
2186
|
-
const se_ImageBlock = (input, context) => {
|
|
2187
|
-
return smithyClient.take(input, {
|
|
2188
|
-
format: [],
|
|
2189
|
-
source: (_) => se_ImageSource(_, context),
|
|
2190
|
-
});
|
|
2191
|
-
};
|
|
2192
|
-
const se_ImageSource = (input, context) => {
|
|
2193
|
-
return exports.ImageSource.visit(input, {
|
|
2194
|
-
bytes: (value) => ({ bytes: context.base64Encoder(value) }),
|
|
2195
|
-
s3Location: (value) => ({ s3Location: smithyClient._json(value) }),
|
|
2196
|
-
_: (name, value) => ({ [name]: value }),
|
|
2197
|
-
});
|
|
2198
|
-
};
|
|
2199
|
-
const se_InferenceConfiguration = (input, context) => {
|
|
2200
|
-
return smithyClient.take(input, {
|
|
2201
|
-
maxTokens: [],
|
|
2202
|
-
stopSequences: smithyClient._json,
|
|
2203
|
-
temperature: smithyClient.serializeFloat,
|
|
2204
|
-
topP: smithyClient.serializeFloat,
|
|
2205
|
-
});
|
|
2206
|
-
};
|
|
2207
|
-
const se_InvokeModelTokensRequest = (input, context) => {
|
|
2208
|
-
return smithyClient.take(input, {
|
|
2209
|
-
body: context.base64Encoder,
|
|
2210
|
-
});
|
|
2211
|
-
};
|
|
2212
|
-
const se_Message = (input, context) => {
|
|
2213
|
-
return smithyClient.take(input, {
|
|
2214
|
-
content: (_) => se_ContentBlocks(_, context),
|
|
2215
|
-
role: [],
|
|
2216
|
-
});
|
|
2217
|
-
};
|
|
2218
|
-
const se_Messages = (input, context) => {
|
|
2219
|
-
return input
|
|
2220
|
-
.filter((e) => e != null)
|
|
2221
|
-
.map((entry) => {
|
|
2222
|
-
return se_Message(entry, context);
|
|
2223
|
-
});
|
|
2224
|
-
};
|
|
2225
|
-
const se_ModelInputPayload = (input, context) => {
|
|
2226
|
-
return input;
|
|
2227
|
-
};
|
|
2228
|
-
const se_ReasoningContentBlock = (input, context) => {
|
|
2229
|
-
return exports.ReasoningContentBlock.visit(input, {
|
|
2230
|
-
reasoningText: (value) => ({ reasoningText: smithyClient._json(value) }),
|
|
2231
|
-
redactedContent: (value) => ({ redactedContent: context.base64Encoder(value) }),
|
|
2232
|
-
_: (name, value) => ({ [name]: value }),
|
|
2233
|
-
});
|
|
2234
|
-
};
|
|
2235
|
-
const se_SystemContentBlock = (input, context) => {
|
|
2236
|
-
return exports.SystemContentBlock.visit(input, {
|
|
2237
|
-
cachePoint: (value) => ({ cachePoint: smithyClient._json(value) }),
|
|
2238
|
-
guardContent: (value) => ({ guardContent: se_GuardrailConverseContentBlock(value, context) }),
|
|
2239
|
-
text: (value) => ({ text: value }),
|
|
2240
|
-
_: (name, value) => ({ [name]: value }),
|
|
2241
|
-
});
|
|
2242
|
-
};
|
|
2243
|
-
const se_SystemContentBlocks = (input, context) => {
|
|
2244
|
-
return input
|
|
2245
|
-
.filter((e) => e != null)
|
|
2246
|
-
.map((entry) => {
|
|
2247
|
-
return se_SystemContentBlock(entry, context);
|
|
2248
|
-
});
|
|
2249
|
-
};
|
|
2250
|
-
const se_Tool = (input, context) => {
|
|
2251
|
-
return exports.Tool.visit(input, {
|
|
2252
|
-
cachePoint: (value) => ({ cachePoint: smithyClient._json(value) }),
|
|
2253
|
-
systemTool: (value) => ({ systemTool: smithyClient._json(value) }),
|
|
2254
|
-
toolSpec: (value) => ({ toolSpec: se_ToolSpecification(value) }),
|
|
2255
|
-
_: (name, value) => ({ [name]: value }),
|
|
2256
|
-
});
|
|
2257
|
-
};
|
|
2258
|
-
const se_ToolConfiguration = (input, context) => {
|
|
2259
|
-
return smithyClient.take(input, {
|
|
2260
|
-
toolChoice: smithyClient._json,
|
|
2261
|
-
tools: (_) => se_Tools(_),
|
|
2262
|
-
});
|
|
2263
|
-
};
|
|
2264
|
-
const se_ToolInputSchema = (input, context) => {
|
|
2265
|
-
return exports.ToolInputSchema.visit(input, {
|
|
2266
|
-
json: (value) => ({ json: se_Document(value) }),
|
|
2267
|
-
_: (name, value) => ({ [name]: value }),
|
|
2268
|
-
});
|
|
2269
|
-
};
|
|
2270
|
-
const se_ToolResultBlock = (input, context) => {
|
|
2271
|
-
return smithyClient.take(input, {
|
|
2272
|
-
content: (_) => se_ToolResultContentBlocks(_, context),
|
|
2273
|
-
status: [],
|
|
2274
|
-
toolUseId: [],
|
|
2275
|
-
type: [],
|
|
2276
|
-
});
|
|
2277
|
-
};
|
|
2278
|
-
const se_ToolResultContentBlock = (input, context) => {
|
|
2279
|
-
return exports.ToolResultContentBlock.visit(input, {
|
|
2280
|
-
document: (value) => ({ document: se_DocumentBlock(value, context) }),
|
|
2281
|
-
image: (value) => ({ image: se_ImageBlock(value, context) }),
|
|
2282
|
-
json: (value) => ({ json: se_Document(value) }),
|
|
2283
|
-
text: (value) => ({ text: value }),
|
|
2284
|
-
video: (value) => ({ video: se_VideoBlock(value, context) }),
|
|
2285
|
-
_: (name, value) => ({ [name]: value }),
|
|
2286
|
-
});
|
|
2287
|
-
};
|
|
2288
|
-
const se_ToolResultContentBlocks = (input, context) => {
|
|
2289
|
-
return input
|
|
2290
|
-
.filter((e) => e != null)
|
|
2291
|
-
.map((entry) => {
|
|
2292
|
-
return se_ToolResultContentBlock(entry, context);
|
|
2293
|
-
});
|
|
2294
|
-
};
|
|
2295
|
-
const se_Tools = (input, context) => {
|
|
2296
|
-
return input
|
|
2297
|
-
.filter((e) => e != null)
|
|
2298
|
-
.map((entry) => {
|
|
2299
|
-
return se_Tool(entry);
|
|
2300
|
-
});
|
|
2301
|
-
};
|
|
2302
|
-
const se_ToolSpecification = (input, context) => {
|
|
2303
|
-
return smithyClient.take(input, {
|
|
2304
|
-
description: [],
|
|
2305
|
-
inputSchema: (_) => se_ToolInputSchema(_),
|
|
2306
|
-
name: [],
|
|
2307
|
-
});
|
|
2308
|
-
};
|
|
2309
|
-
const se_ToolUseBlock = (input, context) => {
|
|
2310
|
-
return smithyClient.take(input, {
|
|
2311
|
-
input: (_) => se_Document(_),
|
|
2312
|
-
name: [],
|
|
2313
|
-
toolUseId: [],
|
|
2314
|
-
type: [],
|
|
2315
|
-
});
|
|
2316
|
-
};
|
|
2317
|
-
const se_VideoBlock = (input, context) => {
|
|
2318
|
-
return smithyClient.take(input, {
|
|
2319
|
-
format: [],
|
|
2320
|
-
source: (_) => se_VideoSource(_, context),
|
|
2321
|
-
});
|
|
2322
|
-
};
|
|
2323
|
-
const se_VideoSource = (input, context) => {
|
|
2324
|
-
return exports.VideoSource.visit(input, {
|
|
2325
|
-
bytes: (value) => ({ bytes: context.base64Encoder(value) }),
|
|
2326
|
-
s3Location: (value) => ({ s3Location: smithyClient._json(value) }),
|
|
2327
|
-
_: (name, value) => ({ [name]: value }),
|
|
2328
|
-
});
|
|
2329
|
-
};
|
|
2330
|
-
const se_Document = (input, context) => {
|
|
2331
|
-
return input;
|
|
2332
|
-
};
|
|
2333
|
-
const de_AsyncInvokeSummaries = (output, context) => {
|
|
2334
|
-
const retVal = (output || [])
|
|
2335
|
-
.filter((e) => e != null)
|
|
2336
|
-
.map((entry) => {
|
|
2337
|
-
return de_AsyncInvokeSummary(entry);
|
|
2338
|
-
});
|
|
2339
|
-
return retVal;
|
|
2340
|
-
};
|
|
2341
|
-
const de_AsyncInvokeSummary = (output, context) => {
|
|
2342
|
-
return smithyClient.take(output, {
|
|
2343
|
-
clientRequestToken: smithyClient.expectString,
|
|
2344
|
-
endTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
2345
|
-
failureMessage: smithyClient.expectString,
|
|
2346
|
-
invocationArn: smithyClient.expectString,
|
|
2347
|
-
lastModifiedTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
2348
|
-
modelArn: smithyClient.expectString,
|
|
2349
|
-
outputDataConfig: (_) => smithyClient._json(core$1.awsExpectUnion(_)),
|
|
2350
|
-
status: smithyClient.expectString,
|
|
2351
|
-
submitTime: (_) => smithyClient.expectNonNull(smithyClient.parseRfc3339DateTimeWithOffset(_)),
|
|
2352
|
-
});
|
|
2353
|
-
};
|
|
2354
|
-
const de_BidirectionalOutputPayloadPart = (output, context) => {
|
|
2355
|
-
return smithyClient.take(output, {
|
|
2356
|
-
bytes: context.base64Decoder,
|
|
2357
|
-
});
|
|
2358
|
-
};
|
|
2359
|
-
const de_ContentBlock = (output, context) => {
|
|
2360
|
-
if (output.cachePoint != null) {
|
|
2361
|
-
return {
|
|
2362
|
-
cachePoint: smithyClient._json(output.cachePoint),
|
|
2363
|
-
};
|
|
2364
|
-
}
|
|
2365
|
-
if (output.citationsContent != null) {
|
|
2366
|
-
return {
|
|
2367
|
-
citationsContent: smithyClient._json(output.citationsContent),
|
|
2368
|
-
};
|
|
2369
|
-
}
|
|
2370
|
-
if (output.document != null) {
|
|
2371
|
-
return {
|
|
2372
|
-
document: de_DocumentBlock(output.document, context),
|
|
2373
|
-
};
|
|
2374
|
-
}
|
|
2375
|
-
if (output.guardContent != null) {
|
|
2376
|
-
return {
|
|
2377
|
-
guardContent: de_GuardrailConverseContentBlock(core$1.awsExpectUnion(output.guardContent), context),
|
|
2378
|
-
};
|
|
2379
|
-
}
|
|
2380
|
-
if (output.image != null) {
|
|
2381
|
-
return {
|
|
2382
|
-
image: de_ImageBlock(output.image, context),
|
|
2383
|
-
};
|
|
2384
|
-
}
|
|
2385
|
-
if (output.reasoningContent != null) {
|
|
2386
|
-
return {
|
|
2387
|
-
reasoningContent: de_ReasoningContentBlock(core$1.awsExpectUnion(output.reasoningContent), context),
|
|
2388
|
-
};
|
|
2389
|
-
}
|
|
2390
|
-
if (smithyClient.expectString(output.text) !== undefined) {
|
|
2391
|
-
return { text: smithyClient.expectString(output.text) };
|
|
2392
|
-
}
|
|
2393
|
-
if (output.toolResult != null) {
|
|
2394
|
-
return {
|
|
2395
|
-
toolResult: de_ToolResultBlock(output.toolResult, context),
|
|
2396
|
-
};
|
|
2397
|
-
}
|
|
2398
|
-
if (output.toolUse != null) {
|
|
2399
|
-
return {
|
|
2400
|
-
toolUse: de_ToolUseBlock(output.toolUse),
|
|
2401
|
-
};
|
|
2402
|
-
}
|
|
2403
|
-
if (output.video != null) {
|
|
2404
|
-
return {
|
|
2405
|
-
video: de_VideoBlock(output.video, context),
|
|
2406
|
-
};
|
|
2407
|
-
}
|
|
2408
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2409
|
-
};
|
|
2410
|
-
const de_ContentBlockDelta = (output, context) => {
|
|
2411
|
-
if (output.citation != null) {
|
|
2412
|
-
return {
|
|
2413
|
-
citation: smithyClient._json(output.citation),
|
|
2414
|
-
};
|
|
2415
|
-
}
|
|
2416
|
-
if (output.reasoningContent != null) {
|
|
2417
|
-
return {
|
|
2418
|
-
reasoningContent: de_ReasoningContentBlockDelta(core$1.awsExpectUnion(output.reasoningContent), context),
|
|
2419
|
-
};
|
|
2420
|
-
}
|
|
2421
|
-
if (smithyClient.expectString(output.text) !== undefined) {
|
|
2422
|
-
return { text: smithyClient.expectString(output.text) };
|
|
2423
|
-
}
|
|
2424
|
-
if (output.toolResult != null) {
|
|
2425
|
-
return {
|
|
2426
|
-
toolResult: smithyClient._json(output.toolResult),
|
|
2427
|
-
};
|
|
2428
|
-
}
|
|
2429
|
-
if (output.toolUse != null) {
|
|
2430
|
-
return {
|
|
2431
|
-
toolUse: smithyClient._json(output.toolUse),
|
|
2432
|
-
};
|
|
2433
|
-
}
|
|
2434
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2435
|
-
};
|
|
2436
|
-
const de_ContentBlockDeltaEvent = (output, context) => {
|
|
2437
|
-
return smithyClient.take(output, {
|
|
2438
|
-
contentBlockIndex: smithyClient.expectInt32,
|
|
2439
|
-
delta: (_) => de_ContentBlockDelta(core$1.awsExpectUnion(_), context),
|
|
2440
|
-
});
|
|
2441
|
-
};
|
|
2442
|
-
const de_ContentBlocks = (output, context) => {
|
|
2443
|
-
const retVal = (output || [])
|
|
2444
|
-
.filter((e) => e != null)
|
|
2445
|
-
.map((entry) => {
|
|
2446
|
-
return de_ContentBlock(core$1.awsExpectUnion(entry), context);
|
|
2447
|
-
});
|
|
2448
|
-
return retVal;
|
|
2449
|
-
};
|
|
2450
|
-
const de_ConverseOutput = (output, context) => {
|
|
2451
|
-
if (output.message != null) {
|
|
2452
|
-
return {
|
|
2453
|
-
message: de_Message(output.message, context),
|
|
2454
|
-
};
|
|
2455
|
-
}
|
|
2456
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2457
|
-
};
|
|
2458
|
-
const de_ConverseStreamMetadataEvent = (output, context) => {
|
|
2459
|
-
return smithyClient.take(output, {
|
|
2460
|
-
metrics: smithyClient._json,
|
|
2461
|
-
performanceConfig: smithyClient._json,
|
|
2462
|
-
trace: (_) => de_ConverseStreamTrace(_),
|
|
2463
|
-
usage: smithyClient._json,
|
|
2464
|
-
});
|
|
2465
|
-
};
|
|
2466
|
-
const de_ConverseStreamTrace = (output, context) => {
|
|
2467
|
-
return smithyClient.take(output, {
|
|
2468
|
-
guardrail: (_) => de_GuardrailTraceAssessment(_),
|
|
2469
|
-
promptRouter: smithyClient._json,
|
|
2470
|
-
});
|
|
2471
|
-
};
|
|
2472
|
-
const de_ConverseTrace = (output, context) => {
|
|
2473
|
-
return smithyClient.take(output, {
|
|
2474
|
-
guardrail: (_) => de_GuardrailTraceAssessment(_),
|
|
2475
|
-
promptRouter: smithyClient._json,
|
|
2476
|
-
});
|
|
2477
|
-
};
|
|
2478
|
-
const de_DocumentBlock = (output, context) => {
|
|
2479
|
-
return smithyClient.take(output, {
|
|
2480
|
-
citations: smithyClient._json,
|
|
2481
|
-
context: smithyClient.expectString,
|
|
2482
|
-
format: smithyClient.expectString,
|
|
2483
|
-
name: smithyClient.expectString,
|
|
2484
|
-
source: (_) => de_DocumentSource(core$1.awsExpectUnion(_), context),
|
|
2485
|
-
});
|
|
2486
|
-
};
|
|
2487
|
-
const de_DocumentSource = (output, context) => {
|
|
2488
|
-
if (output.bytes != null) {
|
|
2489
|
-
return {
|
|
2490
|
-
bytes: context.base64Decoder(output.bytes),
|
|
2491
|
-
};
|
|
2492
|
-
}
|
|
2493
|
-
if (output.content != null) {
|
|
2494
|
-
return {
|
|
2495
|
-
content: smithyClient._json(output.content),
|
|
2496
|
-
};
|
|
2497
|
-
}
|
|
2498
|
-
if (output.s3Location != null) {
|
|
2499
|
-
return {
|
|
2500
|
-
s3Location: smithyClient._json(output.s3Location),
|
|
2501
|
-
};
|
|
2502
|
-
}
|
|
2503
|
-
if (smithyClient.expectString(output.text) !== undefined) {
|
|
2504
|
-
return { text: smithyClient.expectString(output.text) };
|
|
2505
|
-
}
|
|
2506
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2507
|
-
};
|
|
2508
|
-
const de_GuardrailAssessment = (output, context) => {
|
|
2509
|
-
return smithyClient.take(output, {
|
|
2510
|
-
automatedReasoningPolicy: (_) => de_GuardrailAutomatedReasoningPolicyAssessment(_),
|
|
2511
|
-
contentPolicy: smithyClient._json,
|
|
2512
|
-
contextualGroundingPolicy: (_) => de_GuardrailContextualGroundingPolicyAssessment(_),
|
|
2513
|
-
invocationMetrics: smithyClient._json,
|
|
2514
|
-
sensitiveInformationPolicy: smithyClient._json,
|
|
2515
|
-
topicPolicy: smithyClient._json,
|
|
2516
|
-
wordPolicy: smithyClient._json,
|
|
2517
|
-
});
|
|
2518
|
-
};
|
|
2519
|
-
const de_GuardrailAssessmentList = (output, context) => {
|
|
2520
|
-
const retVal = (output || [])
|
|
2521
|
-
.filter((e) => e != null)
|
|
2522
|
-
.map((entry) => {
|
|
2523
|
-
return de_GuardrailAssessment(entry);
|
|
2524
|
-
});
|
|
2525
|
-
return retVal;
|
|
2526
|
-
};
|
|
2527
|
-
const de_GuardrailAssessmentListMap = (output, context) => {
|
|
2528
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2529
|
-
if (value === null) {
|
|
2530
|
-
return acc;
|
|
2531
|
-
}
|
|
2532
|
-
acc[key] = de_GuardrailAssessmentList(value);
|
|
2533
|
-
return acc;
|
|
2534
|
-
}, {});
|
|
2535
|
-
};
|
|
2536
|
-
const de_GuardrailAssessmentMap = (output, context) => {
|
|
2537
|
-
return Object.entries(output).reduce((acc, [key, value]) => {
|
|
2538
|
-
if (value === null) {
|
|
2539
|
-
return acc;
|
|
2540
|
-
}
|
|
2541
|
-
acc[key] = de_GuardrailAssessment(value);
|
|
2542
|
-
return acc;
|
|
2543
|
-
}, {});
|
|
2544
|
-
};
|
|
2545
|
-
const de_GuardrailAutomatedReasoningFinding = (output, context) => {
|
|
2546
|
-
if (output.impossible != null) {
|
|
2547
|
-
return {
|
|
2548
|
-
impossible: de_GuardrailAutomatedReasoningImpossibleFinding(output.impossible),
|
|
2549
|
-
};
|
|
2550
|
-
}
|
|
2551
|
-
if (output.invalid != null) {
|
|
2552
|
-
return {
|
|
2553
|
-
invalid: de_GuardrailAutomatedReasoningInvalidFinding(output.invalid),
|
|
2554
|
-
};
|
|
2555
|
-
}
|
|
2556
|
-
if (output.noTranslations != null) {
|
|
2557
|
-
return {
|
|
2558
|
-
noTranslations: smithyClient._json(output.noTranslations),
|
|
2559
|
-
};
|
|
2560
|
-
}
|
|
2561
|
-
if (output.satisfiable != null) {
|
|
2562
|
-
return {
|
|
2563
|
-
satisfiable: de_GuardrailAutomatedReasoningSatisfiableFinding(output.satisfiable),
|
|
2564
|
-
};
|
|
2565
|
-
}
|
|
2566
|
-
if (output.tooComplex != null) {
|
|
2567
|
-
return {
|
|
2568
|
-
tooComplex: smithyClient._json(output.tooComplex),
|
|
2569
|
-
};
|
|
2570
|
-
}
|
|
2571
|
-
if (output.translationAmbiguous != null) {
|
|
2572
|
-
return {
|
|
2573
|
-
translationAmbiguous: de_GuardrailAutomatedReasoningTranslationAmbiguousFinding(output.translationAmbiguous),
|
|
2574
|
-
};
|
|
2575
|
-
}
|
|
2576
|
-
if (output.valid != null) {
|
|
2577
|
-
return {
|
|
2578
|
-
valid: de_GuardrailAutomatedReasoningValidFinding(output.valid),
|
|
2579
|
-
};
|
|
2580
|
-
}
|
|
2581
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2582
|
-
};
|
|
2583
|
-
const de_GuardrailAutomatedReasoningFindingList = (output, context) => {
|
|
2584
|
-
const retVal = (output || [])
|
|
2585
|
-
.filter((e) => e != null)
|
|
2586
|
-
.map((entry) => {
|
|
2587
|
-
return de_GuardrailAutomatedReasoningFinding(core$1.awsExpectUnion(entry));
|
|
2588
|
-
});
|
|
2589
|
-
return retVal;
|
|
2590
|
-
};
|
|
2591
|
-
const de_GuardrailAutomatedReasoningImpossibleFinding = (output, context) => {
|
|
2592
|
-
return smithyClient.take(output, {
|
|
2593
|
-
contradictingRules: smithyClient._json,
|
|
2594
|
-
logicWarning: smithyClient._json,
|
|
2595
|
-
translation: (_) => de_GuardrailAutomatedReasoningTranslation(_),
|
|
2596
|
-
});
|
|
2597
|
-
};
|
|
2598
|
-
const de_GuardrailAutomatedReasoningInvalidFinding = (output, context) => {
|
|
2599
|
-
return smithyClient.take(output, {
|
|
2600
|
-
contradictingRules: smithyClient._json,
|
|
2601
|
-
logicWarning: smithyClient._json,
|
|
2602
|
-
translation: (_) => de_GuardrailAutomatedReasoningTranslation(_),
|
|
2603
|
-
});
|
|
2604
|
-
};
|
|
2605
|
-
const de_GuardrailAutomatedReasoningPolicyAssessment = (output, context) => {
|
|
2606
|
-
return smithyClient.take(output, {
|
|
2607
|
-
findings: (_) => de_GuardrailAutomatedReasoningFindingList(_),
|
|
2608
|
-
});
|
|
2609
|
-
};
|
|
2610
|
-
const de_GuardrailAutomatedReasoningSatisfiableFinding = (output, context) => {
|
|
2611
|
-
return smithyClient.take(output, {
|
|
2612
|
-
claimsFalseScenario: smithyClient._json,
|
|
2613
|
-
claimsTrueScenario: smithyClient._json,
|
|
2614
|
-
logicWarning: smithyClient._json,
|
|
2615
|
-
translation: (_) => de_GuardrailAutomatedReasoningTranslation(_),
|
|
2616
|
-
});
|
|
2617
|
-
};
|
|
2618
|
-
const de_GuardrailAutomatedReasoningTranslation = (output, context) => {
|
|
2619
|
-
return smithyClient.take(output, {
|
|
2620
|
-
claims: smithyClient._json,
|
|
2621
|
-
confidence: smithyClient.limitedParseDouble,
|
|
2622
|
-
premises: smithyClient._json,
|
|
2623
|
-
untranslatedClaims: smithyClient._json,
|
|
2624
|
-
untranslatedPremises: smithyClient._json,
|
|
2625
|
-
});
|
|
2626
|
-
};
|
|
2627
|
-
const de_GuardrailAutomatedReasoningTranslationAmbiguousFinding = (output, context) => {
|
|
2628
|
-
return smithyClient.take(output, {
|
|
2629
|
-
differenceScenarios: smithyClient._json,
|
|
2630
|
-
options: (_) => de_GuardrailAutomatedReasoningTranslationOptionList(_),
|
|
2631
|
-
});
|
|
2632
|
-
};
|
|
2633
|
-
const de_GuardrailAutomatedReasoningTranslationList = (output, context) => {
|
|
2634
|
-
const retVal = (output || [])
|
|
2635
|
-
.filter((e) => e != null)
|
|
2636
|
-
.map((entry) => {
|
|
2637
|
-
return de_GuardrailAutomatedReasoningTranslation(entry);
|
|
2638
|
-
});
|
|
2639
|
-
return retVal;
|
|
2640
|
-
};
|
|
2641
|
-
const de_GuardrailAutomatedReasoningTranslationOption = (output, context) => {
|
|
2642
|
-
return smithyClient.take(output, {
|
|
2643
|
-
translations: (_) => de_GuardrailAutomatedReasoningTranslationList(_),
|
|
2644
|
-
});
|
|
2645
|
-
};
|
|
2646
|
-
const de_GuardrailAutomatedReasoningTranslationOptionList = (output, context) => {
|
|
2647
|
-
const retVal = (output || [])
|
|
2648
|
-
.filter((e) => e != null)
|
|
2649
|
-
.map((entry) => {
|
|
2650
|
-
return de_GuardrailAutomatedReasoningTranslationOption(entry);
|
|
2651
|
-
});
|
|
2652
|
-
return retVal;
|
|
2653
|
-
};
|
|
2654
|
-
const de_GuardrailAutomatedReasoningValidFinding = (output, context) => {
|
|
2655
|
-
return smithyClient.take(output, {
|
|
2656
|
-
claimsTrueScenario: smithyClient._json,
|
|
2657
|
-
logicWarning: smithyClient._json,
|
|
2658
|
-
supportingRules: smithyClient._json,
|
|
2659
|
-
translation: (_) => de_GuardrailAutomatedReasoningTranslation(_),
|
|
2660
|
-
});
|
|
2661
|
-
};
|
|
2662
|
-
const de_GuardrailContextualGroundingFilter = (output, context) => {
|
|
2663
|
-
return smithyClient.take(output, {
|
|
2664
|
-
action: smithyClient.expectString,
|
|
2665
|
-
detected: smithyClient.expectBoolean,
|
|
2666
|
-
score: smithyClient.limitedParseDouble,
|
|
2667
|
-
threshold: smithyClient.limitedParseDouble,
|
|
2668
|
-
type: smithyClient.expectString,
|
|
2669
|
-
});
|
|
2670
|
-
};
|
|
2671
|
-
const de_GuardrailContextualGroundingFilters = (output, context) => {
|
|
2672
|
-
const retVal = (output || [])
|
|
2673
|
-
.filter((e) => e != null)
|
|
2674
|
-
.map((entry) => {
|
|
2675
|
-
return de_GuardrailContextualGroundingFilter(entry);
|
|
2676
|
-
});
|
|
2677
|
-
return retVal;
|
|
2678
|
-
};
|
|
2679
|
-
const de_GuardrailContextualGroundingPolicyAssessment = (output, context) => {
|
|
2680
|
-
return smithyClient.take(output, {
|
|
2681
|
-
filters: (_) => de_GuardrailContextualGroundingFilters(_),
|
|
2682
|
-
});
|
|
2683
|
-
};
|
|
2684
|
-
const de_GuardrailConverseContentBlock = (output, context) => {
|
|
2685
|
-
if (output.image != null) {
|
|
2686
|
-
return {
|
|
2687
|
-
image: de_GuardrailConverseImageBlock(output.image, context),
|
|
2688
|
-
};
|
|
2689
|
-
}
|
|
2690
|
-
if (output.text != null) {
|
|
2691
|
-
return {
|
|
2692
|
-
text: smithyClient._json(output.text),
|
|
2693
|
-
};
|
|
2694
|
-
}
|
|
2695
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2696
|
-
};
|
|
2697
|
-
const de_GuardrailConverseImageBlock = (output, context) => {
|
|
2698
|
-
return smithyClient.take(output, {
|
|
2699
|
-
format: smithyClient.expectString,
|
|
2700
|
-
source: (_) => de_GuardrailConverseImageSource(core$1.awsExpectUnion(_), context),
|
|
2701
|
-
});
|
|
2702
|
-
};
|
|
2703
|
-
const de_GuardrailConverseImageSource = (output, context) => {
|
|
2704
|
-
if (output.bytes != null) {
|
|
2705
|
-
return {
|
|
2706
|
-
bytes: context.base64Decoder(output.bytes),
|
|
2707
|
-
};
|
|
2708
|
-
}
|
|
2709
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2710
|
-
};
|
|
2711
|
-
const de_GuardrailTraceAssessment = (output, context) => {
|
|
2712
|
-
return smithyClient.take(output, {
|
|
2713
|
-
actionReason: smithyClient.expectString,
|
|
2714
|
-
inputAssessment: (_) => de_GuardrailAssessmentMap(_),
|
|
2715
|
-
modelOutput: smithyClient._json,
|
|
2716
|
-
outputAssessments: (_) => de_GuardrailAssessmentListMap(_),
|
|
2717
|
-
});
|
|
2718
|
-
};
|
|
2719
|
-
const de_ImageBlock = (output, context) => {
|
|
2720
|
-
return smithyClient.take(output, {
|
|
2721
|
-
format: smithyClient.expectString,
|
|
2722
|
-
source: (_) => de_ImageSource(core$1.awsExpectUnion(_), context),
|
|
2723
|
-
});
|
|
2724
|
-
};
|
|
2725
|
-
const de_ImageSource = (output, context) => {
|
|
2726
|
-
if (output.bytes != null) {
|
|
2727
|
-
return {
|
|
2728
|
-
bytes: context.base64Decoder(output.bytes),
|
|
2729
|
-
};
|
|
2730
|
-
}
|
|
2731
|
-
if (output.s3Location != null) {
|
|
2732
|
-
return {
|
|
2733
|
-
s3Location: smithyClient._json(output.s3Location),
|
|
2734
|
-
};
|
|
2735
|
-
}
|
|
2736
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2737
|
-
};
|
|
2738
|
-
const de_Message = (output, context) => {
|
|
2739
|
-
return smithyClient.take(output, {
|
|
2740
|
-
content: (_) => de_ContentBlocks(_, context),
|
|
2741
|
-
role: smithyClient.expectString,
|
|
2742
|
-
});
|
|
2743
|
-
};
|
|
2744
|
-
const de_MessageStopEvent = (output, context) => {
|
|
2745
|
-
return smithyClient.take(output, {
|
|
2746
|
-
additionalModelResponseFields: (_) => de_Document(_),
|
|
2747
|
-
stopReason: smithyClient.expectString,
|
|
2748
|
-
});
|
|
2749
|
-
};
|
|
2750
|
-
const de_PayloadPart = (output, context) => {
|
|
2751
|
-
return smithyClient.take(output, {
|
|
2752
|
-
bytes: context.base64Decoder,
|
|
2753
|
-
});
|
|
2754
|
-
};
|
|
2755
|
-
const de_ReasoningContentBlock = (output, context) => {
|
|
2756
|
-
if (output.reasoningText != null) {
|
|
2757
|
-
return {
|
|
2758
|
-
reasoningText: smithyClient._json(output.reasoningText),
|
|
2759
|
-
};
|
|
2760
|
-
}
|
|
2761
|
-
if (output.redactedContent != null) {
|
|
2762
|
-
return {
|
|
2763
|
-
redactedContent: context.base64Decoder(output.redactedContent),
|
|
2764
|
-
};
|
|
2765
|
-
}
|
|
2766
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2767
|
-
};
|
|
2768
|
-
const de_ReasoningContentBlockDelta = (output, context) => {
|
|
2769
|
-
if (output.redactedContent != null) {
|
|
2770
|
-
return {
|
|
2771
|
-
redactedContent: context.base64Decoder(output.redactedContent),
|
|
2772
|
-
};
|
|
2773
|
-
}
|
|
2774
|
-
if (smithyClient.expectString(output.signature) !== undefined) {
|
|
2775
|
-
return { signature: smithyClient.expectString(output.signature) };
|
|
2776
|
-
}
|
|
2777
|
-
if (smithyClient.expectString(output.text) !== undefined) {
|
|
2778
|
-
return { text: smithyClient.expectString(output.text) };
|
|
2779
|
-
}
|
|
2780
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2781
|
-
};
|
|
2782
|
-
const de_ToolResultBlock = (output, context) => {
|
|
2783
|
-
return smithyClient.take(output, {
|
|
2784
|
-
content: (_) => de_ToolResultContentBlocks(_, context),
|
|
2785
|
-
status: smithyClient.expectString,
|
|
2786
|
-
toolUseId: smithyClient.expectString,
|
|
2787
|
-
type: smithyClient.expectString,
|
|
2788
|
-
});
|
|
2789
|
-
};
|
|
2790
|
-
const de_ToolResultContentBlock = (output, context) => {
|
|
2791
|
-
if (output.document != null) {
|
|
2792
|
-
return {
|
|
2793
|
-
document: de_DocumentBlock(output.document, context),
|
|
2794
|
-
};
|
|
2795
|
-
}
|
|
2796
|
-
if (output.image != null) {
|
|
2797
|
-
return {
|
|
2798
|
-
image: de_ImageBlock(output.image, context),
|
|
2799
|
-
};
|
|
2800
|
-
}
|
|
2801
|
-
if (output.json != null) {
|
|
2802
|
-
return {
|
|
2803
|
-
json: de_Document(output.json),
|
|
2804
|
-
};
|
|
2805
|
-
}
|
|
2806
|
-
if (smithyClient.expectString(output.text) !== undefined) {
|
|
2807
|
-
return { text: smithyClient.expectString(output.text) };
|
|
2808
|
-
}
|
|
2809
|
-
if (output.video != null) {
|
|
2810
|
-
return {
|
|
2811
|
-
video: de_VideoBlock(output.video, context),
|
|
2812
|
-
};
|
|
2813
|
-
}
|
|
2814
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2815
|
-
};
|
|
2816
|
-
const de_ToolResultContentBlocks = (output, context) => {
|
|
2817
|
-
const retVal = (output || [])
|
|
2818
|
-
.filter((e) => e != null)
|
|
2819
|
-
.map((entry) => {
|
|
2820
|
-
return de_ToolResultContentBlock(core$1.awsExpectUnion(entry), context);
|
|
2821
|
-
});
|
|
2822
|
-
return retVal;
|
|
2823
|
-
};
|
|
2824
|
-
const de_ToolUseBlock = (output, context) => {
|
|
2825
|
-
return smithyClient.take(output, {
|
|
2826
|
-
input: (_) => de_Document(_),
|
|
2827
|
-
name: smithyClient.expectString,
|
|
2828
|
-
toolUseId: smithyClient.expectString,
|
|
2829
|
-
type: smithyClient.expectString,
|
|
2830
|
-
});
|
|
2831
|
-
};
|
|
2832
|
-
const de_VideoBlock = (output, context) => {
|
|
2833
|
-
return smithyClient.take(output, {
|
|
2834
|
-
format: smithyClient.expectString,
|
|
2835
|
-
source: (_) => de_VideoSource(core$1.awsExpectUnion(_), context),
|
|
2836
|
-
});
|
|
2837
|
-
};
|
|
2838
|
-
const de_VideoSource = (output, context) => {
|
|
2839
|
-
if (output.bytes != null) {
|
|
2840
|
-
return {
|
|
2841
|
-
bytes: context.base64Decoder(output.bytes),
|
|
2842
|
-
};
|
|
2843
|
-
}
|
|
2844
|
-
if (output.s3Location != null) {
|
|
2845
|
-
return {
|
|
2846
|
-
s3Location: smithyClient._json(output.s3Location),
|
|
2847
|
-
};
|
|
2848
|
-
}
|
|
2849
|
-
return { $unknown: Object.entries(output)[0] };
|
|
2850
|
-
};
|
|
2851
|
-
const de_Document = (output, context) => {
|
|
2852
|
-
return output;
|
|
2853
|
-
};
|
|
2854
|
-
const deserializeMetadata = (output) => ({
|
|
2855
|
-
httpStatusCode: output.statusCode,
|
|
2856
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
2857
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
2858
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
2859
|
-
});
|
|
2860
|
-
const _a = "accept";
|
|
488
|
+
const _A = "Accept";
|
|
489
|
+
const _ADE = "AccessDeniedException";
|
|
490
|
+
const _AG = "ApplyGuardrail";
|
|
491
|
+
const _AGR = "ApplyGuardrailRequest";
|
|
492
|
+
const _AGRp = "ApplyGuardrailResponse";
|
|
493
|
+
const _AIM = "AsyncInvokeMessage";
|
|
494
|
+
const _AIODC = "AsyncInvokeOutputDataConfig";
|
|
495
|
+
const _AIS = "AsyncInvokeSummary";
|
|
496
|
+
const _AISODC = "AsyncInvokeS3OutputDataConfig";
|
|
497
|
+
const _AISs = "AsyncInvokeSummaries";
|
|
498
|
+
const _ATC = "AnyToolChoice";
|
|
499
|
+
const _ATCu = "AutoToolChoice";
|
|
500
|
+
const _B = "Body";
|
|
501
|
+
const _BIPP = "BidirectionalInputPayloadPart";
|
|
502
|
+
const _BOPP = "BidirectionalOutputPayloadPart";
|
|
503
|
+
const _C = "Citation";
|
|
504
|
+
const _CB = "ContentBlocks";
|
|
505
|
+
const _CBD = "ContentBlockDelta";
|
|
506
|
+
const _CBDE = "ContentBlockDeltaEvent";
|
|
507
|
+
const _CBS = "ContentBlockStart";
|
|
508
|
+
const _CBSE = "ContentBlockStartEvent";
|
|
509
|
+
const _CBSEo = "ContentBlockStopEvent";
|
|
510
|
+
const _CBo = "ContentBlock";
|
|
511
|
+
const _CC = "CitationsConfig";
|
|
512
|
+
const _CCB = "CitationsContentBlock";
|
|
513
|
+
const _CD = "CitationsDelta";
|
|
514
|
+
const _CE = "ConflictException";
|
|
515
|
+
const _CGC = "CitationGeneratedContent";
|
|
516
|
+
const _CGCL = "CitationGeneratedContentList";
|
|
517
|
+
const _CL = "CitationLocation";
|
|
518
|
+
const _CM = "ConverseMetrics";
|
|
519
|
+
const _CO = "ConverseOutput";
|
|
520
|
+
const _CPB = "CachePointBlock";
|
|
521
|
+
const _CR = "ConverseRequest";
|
|
522
|
+
const _CRo = "ConverseResponse";
|
|
523
|
+
const _CS = "ConverseStream";
|
|
524
|
+
const _CSC = "CitationSourceContent";
|
|
525
|
+
const _CSCD = "CitationSourceContentDelta";
|
|
526
|
+
const _CSCL = "CitationSourceContentList";
|
|
527
|
+
const _CSCLD = "CitationSourceContentListDelta";
|
|
528
|
+
const _CSM = "ConverseStreamMetrics";
|
|
529
|
+
const _CSME = "ConverseStreamMetadataEvent";
|
|
530
|
+
const _CSO = "ConverseStreamOutput";
|
|
531
|
+
const _CSR = "ConverseStreamRequest";
|
|
532
|
+
const _CSRo = "ConverseStreamResponse";
|
|
533
|
+
const _CST = "ConverseStreamTrace";
|
|
534
|
+
const _CT = "ConverseTrace";
|
|
535
|
+
const _CTI = "CountTokensInput";
|
|
536
|
+
const _CTR = "ConverseTokensRequest";
|
|
537
|
+
const _CTRo = "CountTokensRequest";
|
|
538
|
+
const _CTRou = "CountTokensResponse";
|
|
539
|
+
const _CT_ = "Content-Type";
|
|
540
|
+
const _CTo = "CountTokens";
|
|
541
|
+
const _Ci = "Citations";
|
|
542
|
+
const _Co = "Converse";
|
|
543
|
+
const _DB = "DocumentBlock";
|
|
544
|
+
const _DCB = "DocumentContentBlocks";
|
|
545
|
+
const _DCBo = "DocumentContentBlock";
|
|
546
|
+
const _DCL = "DocumentCharLocation";
|
|
547
|
+
const _DCLo = "DocumentChunkLocation";
|
|
548
|
+
const _DPL = "DocumentPageLocation";
|
|
549
|
+
const _DS = "DocumentSource";
|
|
550
|
+
const _GA = "GuardrailAssessment";
|
|
551
|
+
const _GAI = "GetAsyncInvoke";
|
|
552
|
+
const _GAIR = "GetAsyncInvokeRequest";
|
|
553
|
+
const _GAIRe = "GetAsyncInvokeResponse";
|
|
554
|
+
const _GAL = "GuardrailAssessmentList";
|
|
555
|
+
const _GALM = "GuardrailAssessmentListMap";
|
|
556
|
+
const _GAM = "GuardrailAssessmentMap";
|
|
557
|
+
const _GARDSL = "GuardrailAutomatedReasoningDifferenceScenarioList";
|
|
558
|
+
const _GARF = "GuardrailAutomatedReasoningFinding";
|
|
559
|
+
const _GARFL = "GuardrailAutomatedReasoningFindingList";
|
|
560
|
+
const _GARIF = "GuardrailAutomatedReasoningImpossibleFinding";
|
|
561
|
+
const _GARIFu = "GuardrailAutomatedReasoningInvalidFinding";
|
|
562
|
+
const _GARITR = "GuardrailAutomatedReasoningInputTextReference";
|
|
563
|
+
const _GARITRL = "GuardrailAutomatedReasoningInputTextReferenceList";
|
|
564
|
+
const _GARLW = "GuardrailAutomatedReasoningLogicWarning";
|
|
565
|
+
const _GARNTF = "GuardrailAutomatedReasoningNoTranslationsFinding";
|
|
566
|
+
const _GARPA = "GuardrailAutomatedReasoningPolicyAssessment";
|
|
567
|
+
const _GARR = "GuardrailAutomatedReasoningRule";
|
|
568
|
+
const _GARRL = "GuardrailAutomatedReasoningRuleList";
|
|
569
|
+
const _GARS = "GuardrailAutomatedReasoningScenario";
|
|
570
|
+
const _GARSF = "GuardrailAutomatedReasoningSatisfiableFinding";
|
|
571
|
+
const _GARSL = "GuardrailAutomatedReasoningStatementList";
|
|
572
|
+
const _GARSLC = "GuardrailAutomatedReasoningStatementLogicContent";
|
|
573
|
+
const _GARSNLC = "GuardrailAutomatedReasoningStatementNaturalLanguageContent";
|
|
574
|
+
const _GARSu = "GuardrailAutomatedReasoningStatement";
|
|
575
|
+
const _GART = "GuardrailAutomatedReasoningTranslation";
|
|
576
|
+
const _GARTAF = "GuardrailAutomatedReasoningTranslationAmbiguousFinding";
|
|
577
|
+
const _GARTCF = "GuardrailAutomatedReasoningTooComplexFinding";
|
|
578
|
+
const _GARTL = "GuardrailAutomatedReasoningTranslationList";
|
|
579
|
+
const _GARTO = "GuardrailAutomatedReasoningTranslationOption";
|
|
580
|
+
const _GARTOL = "GuardrailAutomatedReasoningTranslationOptionList";
|
|
581
|
+
const _GARVF = "GuardrailAutomatedReasoningValidFinding";
|
|
582
|
+
const _GC = "GuardrailConfiguration";
|
|
583
|
+
const _GCB = "GuardrailContentBlock";
|
|
584
|
+
const _GCBL = "GuardrailContentBlockList";
|
|
585
|
+
const _GCCB = "GuardrailConverseContentBlock";
|
|
586
|
+
const _GCF = "GuardrailContentFilter";
|
|
587
|
+
const _GCFL = "GuardrailContentFilterList";
|
|
588
|
+
const _GCGF = "GuardrailContextualGroundingFilter";
|
|
589
|
+
const _GCGFu = "GuardrailContextualGroundingFilters";
|
|
590
|
+
const _GCGPA = "GuardrailContextualGroundingPolicyAssessment";
|
|
591
|
+
const _GCIB = "GuardrailConverseImageBlock";
|
|
592
|
+
const _GCIS = "GuardrailConverseImageSource";
|
|
593
|
+
const _GCPA = "GuardrailContentPolicyAssessment";
|
|
594
|
+
const _GCTB = "GuardrailConverseTextBlock";
|
|
595
|
+
const _GCW = "GuardrailCustomWord";
|
|
596
|
+
const _GCWL = "GuardrailCustomWordList";
|
|
597
|
+
const _GCu = "GuardrailCoverage";
|
|
598
|
+
const _GIB = "GuardrailImageBlock";
|
|
599
|
+
const _GIC = "GuardrailImageCoverage";
|
|
600
|
+
const _GIM = "GuardrailInvocationMetrics";
|
|
601
|
+
const _GIS = "GuardrailImageSource";
|
|
602
|
+
const _GMW = "GuardrailManagedWord";
|
|
603
|
+
const _GMWL = "GuardrailManagedWordList";
|
|
604
|
+
const _GOC = "GuardrailOutputContent";
|
|
605
|
+
const _GOCL = "GuardrailOutputContentList";
|
|
606
|
+
const _GPEF = "GuardrailPiiEntityFilter";
|
|
607
|
+
const _GPEFL = "GuardrailPiiEntityFilterList";
|
|
608
|
+
const _GRF = "GuardrailRegexFilter";
|
|
609
|
+
const _GRFL = "GuardrailRegexFilterList";
|
|
610
|
+
const _GSC = "GuardrailStreamConfiguration";
|
|
611
|
+
const _GSIPA = "GuardrailSensitiveInformationPolicyAssessment";
|
|
612
|
+
const _GT = "GuardrailTopic";
|
|
613
|
+
const _GTA = "GuardrailTraceAssessment";
|
|
614
|
+
const _GTB = "GuardrailTextBlock";
|
|
615
|
+
const _GTCC = "GuardrailTextCharactersCoverage";
|
|
616
|
+
const _GTL = "GuardrailTopicList";
|
|
617
|
+
const _GTPA = "GuardrailTopicPolicyAssessment";
|
|
618
|
+
const _GU = "GuardrailUsage";
|
|
619
|
+
const _GWPA = "GuardrailWordPolicyAssessment";
|
|
620
|
+
const _IB = "ImageBlock";
|
|
621
|
+
const _IC = "InferenceConfiguration";
|
|
622
|
+
const _IM = "InvokeModel";
|
|
623
|
+
const _IMR = "InvokeModelRequest";
|
|
624
|
+
const _IMRn = "InvokeModelResponse";
|
|
625
|
+
const _IMTR = "InvokeModelTokensRequest";
|
|
626
|
+
const _IMWBS = "InvokeModelWithBidirectionalStream";
|
|
627
|
+
const _IMWBSI = "InvokeModelWithBidirectionalStreamInput";
|
|
628
|
+
const _IMWBSO = "InvokeModelWithBidirectionalStreamOutput";
|
|
629
|
+
const _IMWBSR = "InvokeModelWithBidirectionalStreamRequest";
|
|
630
|
+
const _IMWBSRn = "InvokeModelWithBidirectionalStreamResponse";
|
|
631
|
+
const _IMWRS = "InvokeModelWithResponseStream";
|
|
632
|
+
const _IMWRSR = "InvokeModelWithResponseStreamRequest";
|
|
633
|
+
const _IMWRSRn = "InvokeModelWithResponseStreamResponse";
|
|
634
|
+
const _IS = "ImageSource";
|
|
635
|
+
const _ISE = "InternalServerException";
|
|
636
|
+
const _LAI = "ListAsyncInvokes";
|
|
637
|
+
const _LAIR = "ListAsyncInvokesRequest";
|
|
638
|
+
const _LAIRi = "ListAsyncInvokesResponse";
|
|
639
|
+
const _M = "Message";
|
|
640
|
+
const _MEE = "ModelErrorException";
|
|
641
|
+
const _MIP = "ModelInputPayload";
|
|
642
|
+
const _MNRE = "ModelNotReadyException";
|
|
643
|
+
const _MSE = "MessageStartEvent";
|
|
644
|
+
const _MSEE = "ModelStreamErrorException";
|
|
645
|
+
const _MSEe = "MessageStopEvent";
|
|
646
|
+
const _MTE = "ModelTimeoutException";
|
|
647
|
+
const _Me = "Messages";
|
|
648
|
+
const _PB = "PartBody";
|
|
649
|
+
const _PC = "PerformanceConfiguration";
|
|
650
|
+
const _PP = "PayloadPart";
|
|
651
|
+
const _PRT = "PromptRouterTrace";
|
|
652
|
+
const _PVM = "PromptVariableMap";
|
|
653
|
+
const _PVV = "PromptVariableValues";
|
|
654
|
+
const _RCB = "ReasoningContentBlock";
|
|
655
|
+
const _RCBD = "ReasoningContentBlockDelta";
|
|
656
|
+
const _RM = "RequestMetadata";
|
|
657
|
+
const _RNFE = "ResourceNotFoundException";
|
|
658
|
+
const _RS = "ResponseStream";
|
|
659
|
+
const _RTB = "ReasoningTextBlock";
|
|
660
|
+
const _SAI = "StartAsyncInvoke";
|
|
661
|
+
const _SAIR = "StartAsyncInvokeRequest";
|
|
662
|
+
const _SAIRt = "StartAsyncInvokeResponse";
|
|
663
|
+
const _SCB = "SystemContentBlocks";
|
|
664
|
+
const _SCBy = "SystemContentBlock";
|
|
665
|
+
const _SL = "S3Location";
|
|
666
|
+
const _SQEE = "ServiceQuotaExceededException";
|
|
667
|
+
const _ST = "SystemTool";
|
|
668
|
+
const _STC = "SpecificToolChoice";
|
|
669
|
+
const _SUE = "ServiceUnavailableException";
|
|
670
|
+
const _T = "Tag";
|
|
671
|
+
const _TC = "ToolConfiguration";
|
|
672
|
+
const _TCo = "ToolChoice";
|
|
673
|
+
const _TE = "ThrottlingException";
|
|
674
|
+
const _TIS = "ToolInputSchema";
|
|
675
|
+
const _TL = "TagList";
|
|
676
|
+
const _TRB = "ToolResultBlock";
|
|
677
|
+
const _TRBD = "ToolResultBlocksDelta";
|
|
678
|
+
const _TRBDo = "ToolResultBlockDelta";
|
|
679
|
+
const _TRBS = "ToolResultBlockStart";
|
|
680
|
+
const _TRCB = "ToolResultContentBlocks";
|
|
681
|
+
const _TRCBo = "ToolResultContentBlock";
|
|
682
|
+
const _TS = "ToolSpecification";
|
|
683
|
+
const _TU = "TokenUsage";
|
|
684
|
+
const _TUB = "ToolUseBlock";
|
|
685
|
+
const _TUBD = "ToolUseBlockDelta";
|
|
686
|
+
const _TUBS = "ToolUseBlockStart";
|
|
687
|
+
const _To = "Tools";
|
|
688
|
+
const _Too = "Tool";
|
|
689
|
+
const _VB = "VideoBlock";
|
|
690
|
+
const _VE = "ValidationException";
|
|
691
|
+
const _VS = "VideoSource";
|
|
692
|
+
const _WL = "WebLocation";
|
|
693
|
+
const _XABA = "X-Amzn-Bedrock-Accept";
|
|
694
|
+
const _XABCT = "X-Amzn-Bedrock-Content-Type";
|
|
695
|
+
const _XABG = "X-Amzn-Bedrock-GuardrailIdentifier";
|
|
696
|
+
const _XABG_ = "X-Amzn-Bedrock-GuardrailVersion";
|
|
697
|
+
const _XABPL = "X-Amzn-Bedrock-PerformanceConfig-Latency";
|
|
698
|
+
const _XABT = "X-Amzn-Bedrock-Trace";
|
|
699
|
+
const _a = "action";
|
|
700
|
+
const _aIS = "asyncInvokeSummaries";
|
|
701
|
+
const _aMRF = "additionalModelRequestFields";
|
|
702
|
+
const _aMRFP = "additionalModelResponseFieldPaths";
|
|
703
|
+
const _aMRFd = "additionalModelResponseFields";
|
|
704
|
+
const _aR = "actionReason";
|
|
705
|
+
const _aRP = "automatedReasoningPolicy";
|
|
706
|
+
const _aRPU = "automatedReasoningPolicyUnits";
|
|
707
|
+
const _aRPu = "automatedReasoningPolicies";
|
|
708
|
+
const _ac = "accept";
|
|
709
|
+
const _an = "any";
|
|
710
|
+
const _as = "assessments";
|
|
711
|
+
const _au = "auto";
|
|
712
|
+
const _b = "bytes";
|
|
713
|
+
const _bO = "bucketOwner";
|
|
714
|
+
const _bo = "body";
|
|
715
|
+
const _c = "client";
|
|
716
|
+
const _cBD = "contentBlockDelta";
|
|
717
|
+
const _cBI = "contentBlockIndex";
|
|
718
|
+
const _cBS = "contentBlockStart";
|
|
719
|
+
const _cBSo = "contentBlockStop";
|
|
720
|
+
const _cC = "citationsContent";
|
|
721
|
+
const _cFS = "claimsFalseScenario";
|
|
722
|
+
const _cGP = "contextualGroundingPolicy";
|
|
723
|
+
const _cGPU = "contextualGroundingPolicyUnits";
|
|
724
|
+
const _cP = "contentPolicy";
|
|
725
|
+
const _cPIU = "contentPolicyImageUnits";
|
|
726
|
+
const _cPU = "contentPolicyUnits";
|
|
727
|
+
const _cPa = "cachePoint";
|
|
728
|
+
const _cR = "contradictingRules";
|
|
729
|
+
const _cRIT = "cacheReadInputTokens";
|
|
730
|
+
const _cRT = "clientRequestToken";
|
|
2861
731
|
const _cT = "contentType";
|
|
2862
|
-
const
|
|
732
|
+
const _cTS = "claimsTrueScenario";
|
|
733
|
+
const _cW = "customWords";
|
|
734
|
+
const _cWIT = "cacheWriteInputTokens";
|
|
735
|
+
const _ch = "chunk";
|
|
736
|
+
const _ci = "citations";
|
|
737
|
+
const _cit = "citation";
|
|
738
|
+
const _cl = "claims";
|
|
739
|
+
const _co = "content";
|
|
740
|
+
const _con = "context";
|
|
741
|
+
const _conf = "confidence";
|
|
742
|
+
const _conv = "converse";
|
|
743
|
+
const _d = "delta";
|
|
744
|
+
const _dC = "documentChar";
|
|
745
|
+
const _dCo = "documentChunk";
|
|
746
|
+
const _dI = "documentIndex";
|
|
747
|
+
const _dP = "documentPage";
|
|
748
|
+
const _dS = "differenceScenarios";
|
|
749
|
+
const _de = "detected";
|
|
750
|
+
const _des = "description";
|
|
751
|
+
const _do = "domain";
|
|
752
|
+
const _doc = "document";
|
|
753
|
+
const _e = "error";
|
|
754
|
+
const _eT = "endTime";
|
|
755
|
+
const _en = "enabled";
|
|
756
|
+
const _end = "end";
|
|
757
|
+
const _f = "format";
|
|
758
|
+
const _fM = "failureMessage";
|
|
759
|
+
const _fS = "filterStrength";
|
|
760
|
+
const _fi = "findings";
|
|
761
|
+
const _fil = "filters";
|
|
762
|
+
const _g = "guardrail";
|
|
763
|
+
const _gC = "guardrailCoverage";
|
|
764
|
+
const _gCu = "guardrailConfig";
|
|
765
|
+
const _gCua = "guardContent";
|
|
2863
766
|
const _gI = "guardrailIdentifier";
|
|
767
|
+
const _gPL = "guardrailProcessingLatency";
|
|
2864
768
|
const _gV = "guardrailVersion";
|
|
769
|
+
const _gu = "guarded";
|
|
770
|
+
const _h = "http";
|
|
771
|
+
const _hE = "httpError";
|
|
772
|
+
const _hH = "httpHeader";
|
|
773
|
+
const _hQ = "httpQuery";
|
|
774
|
+
const _i = "input";
|
|
775
|
+
const _iA = "invocationArn";
|
|
776
|
+
const _iAn = "inputAssessment";
|
|
777
|
+
const _iC = "inferenceConfig";
|
|
778
|
+
const _iM = "invocationMetrics";
|
|
779
|
+
const _iMI = "invokedModelId";
|
|
780
|
+
const _iMn = "invokeModel";
|
|
781
|
+
const _iS = "inputSchema";
|
|
782
|
+
const _iSE = "internalServerException";
|
|
783
|
+
const _iT = "inputTokens";
|
|
784
|
+
const _id = "identifier";
|
|
785
|
+
const _im = "images";
|
|
786
|
+
const _ima = "image";
|
|
787
|
+
const _imp = "impossible";
|
|
788
|
+
const _in = "invalid";
|
|
789
|
+
const _j = "json";
|
|
790
|
+
const _k = "key";
|
|
791
|
+
const _kKI = "kmsKeyId";
|
|
792
|
+
const _l = "location";
|
|
793
|
+
const _lM = "latencyMs";
|
|
794
|
+
const _lMT = "lastModifiedTime";
|
|
795
|
+
const _lW = "logicWarning";
|
|
796
|
+
const _la = "latency";
|
|
797
|
+
const _lo = "logic";
|
|
798
|
+
const _m = "message";
|
|
799
|
+
const _mA = "modelArn";
|
|
800
|
+
const _mI = "modelId";
|
|
801
|
+
const _mIo = "modelInput";
|
|
802
|
+
const _mO = "modelOutput";
|
|
2865
803
|
const _mR = "maxResults";
|
|
804
|
+
const _mS = "messageStart";
|
|
805
|
+
const _mSEE = "modelStreamErrorException";
|
|
806
|
+
const _mSe = "messageStop";
|
|
807
|
+
const _mT = "maxTokens";
|
|
808
|
+
const _mTE = "modelTimeoutException";
|
|
809
|
+
const _mWL = "managedWordLists";
|
|
810
|
+
const _ma = "match";
|
|
811
|
+
const _me = "messages";
|
|
812
|
+
const _met = "metrics";
|
|
813
|
+
const _meta = "metadata";
|
|
814
|
+
const _n = "name";
|
|
815
|
+
const _nL = "naturalLanguage";
|
|
2866
816
|
const _nT = "nextToken";
|
|
817
|
+
const _nTo = "noTranslations";
|
|
818
|
+
const _o = "outputs";
|
|
819
|
+
const _oA = "outputAssessments";
|
|
820
|
+
const _oDC = "outputDataConfig";
|
|
821
|
+
const _oM = "originalMessage";
|
|
822
|
+
const _oS = "outputScope";
|
|
823
|
+
const _oSC = "originalStatusCode";
|
|
824
|
+
const _oT = "outputTokens";
|
|
825
|
+
const _op = "options";
|
|
826
|
+
const _ou = "output";
|
|
827
|
+
const _p = "premises";
|
|
828
|
+
const _pC = "performanceConfig";
|
|
2867
829
|
const _pCL = "performanceConfigLatency";
|
|
830
|
+
const _pE = "piiEntities";
|
|
831
|
+
const _pR = "promptRouter";
|
|
832
|
+
const _pV = "promptVariables";
|
|
833
|
+
const _pVA = "policyVersionArn";
|
|
834
|
+
const _q = "qualifiers";
|
|
835
|
+
const _r = "regex";
|
|
836
|
+
const _rC = "reasoningContent";
|
|
837
|
+
const _rCe = "redactedContent";
|
|
838
|
+
const _rM = "requestMetadata";
|
|
839
|
+
const _rN = "resourceName";
|
|
840
|
+
const _rT = "reasoningText";
|
|
841
|
+
const _re = "regexes";
|
|
842
|
+
const _ro = "role";
|
|
843
|
+
const _s = "source";
|
|
2868
844
|
const _sB = "sortBy";
|
|
845
|
+
const _sC = "sourceContent";
|
|
2869
846
|
const _sE = "statusEquals";
|
|
847
|
+
const _sIP = "sensitiveInformationPolicy";
|
|
848
|
+
const _sIPFU = "sensitiveInformationPolicyFreeUnits";
|
|
849
|
+
const _sIPU = "sensitiveInformationPolicyUnits";
|
|
850
|
+
const _sL = "s3Location";
|
|
2870
851
|
const _sO = "sortOrder";
|
|
852
|
+
const _sODC = "s3OutputDataConfig";
|
|
853
|
+
const _sPM = "streamProcessingMode";
|
|
854
|
+
const _sR = "stopReason";
|
|
855
|
+
const _sRu = "supportingRules";
|
|
856
|
+
const _sS = "stopSequences";
|
|
857
|
+
const _sT = "submitTime";
|
|
2871
858
|
const _sTA = "submitTimeAfter";
|
|
2872
859
|
const _sTB = "submitTimeBefore";
|
|
2873
|
-
const
|
|
2874
|
-
const
|
|
2875
|
-
const
|
|
2876
|
-
const
|
|
2877
|
-
const
|
|
2878
|
-
const
|
|
2879
|
-
const
|
|
860
|
+
const _sTy = "systemTool";
|
|
861
|
+
const _sU = "s3Uri";
|
|
862
|
+
const _sUE = "serviceUnavailableException";
|
|
863
|
+
const _sa = "satisfiable";
|
|
864
|
+
const _sc = "score";
|
|
865
|
+
const _se = "server";
|
|
866
|
+
const _si = "signature";
|
|
867
|
+
const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.bedrockruntime";
|
|
868
|
+
const _st = "status";
|
|
869
|
+
const _sta = "start";
|
|
870
|
+
const _stat = "statements";
|
|
871
|
+
const _str = "stream";
|
|
872
|
+
const _stre = "streaming";
|
|
873
|
+
const _sy = "system";
|
|
874
|
+
const _t = "type";
|
|
875
|
+
const _tA = "translationAmbiguous";
|
|
876
|
+
const _tC = "toolConfig";
|
|
877
|
+
const _tCe = "textCharacters";
|
|
878
|
+
const _tCo = "toolChoice";
|
|
879
|
+
const _tCoo = "tooComplex";
|
|
880
|
+
const _tE = "throttlingException";
|
|
881
|
+
const _tP = "topicPolicy";
|
|
882
|
+
const _tPU = "topicPolicyUnits";
|
|
883
|
+
const _tPo = "topP";
|
|
884
|
+
const _tR = "toolResult";
|
|
885
|
+
const _tS = "toolSpec";
|
|
886
|
+
const _tT = "totalTokens";
|
|
887
|
+
const _tU = "toolUse";
|
|
888
|
+
const _tUI = "toolUseId";
|
|
889
|
+
const _ta = "tags";
|
|
890
|
+
const _te = "text";
|
|
891
|
+
const _tem = "temperature";
|
|
892
|
+
const _th = "threshold";
|
|
893
|
+
const _ti = "title";
|
|
894
|
+
const _to = "total";
|
|
895
|
+
const _too = "tools";
|
|
896
|
+
const _tool = "tool";
|
|
897
|
+
const _top = "topics";
|
|
898
|
+
const _tr = "trace";
|
|
899
|
+
const _tra = "translation";
|
|
900
|
+
const _tran = "translations";
|
|
901
|
+
const _u = "usage";
|
|
902
|
+
const _uC = "untranslatedClaims";
|
|
903
|
+
const _uP = "untranslatedPremises";
|
|
904
|
+
const _ur = "uri";
|
|
905
|
+
const _url = "url";
|
|
906
|
+
const _v = "value";
|
|
907
|
+
const _vE = "validationException";
|
|
908
|
+
const _va = "valid";
|
|
909
|
+
const _vi = "video";
|
|
910
|
+
const _w = "web";
|
|
911
|
+
const _wP = "wordPolicy";
|
|
912
|
+
const _wPU = "wordPolicyUnits";
|
|
913
|
+
const n0 = "com.amazonaws.bedrockruntime";
|
|
914
|
+
var AsyncInvokeMessage = [0, n0, _AIM, 8, 0];
|
|
915
|
+
var Body = [0, n0, _B, 8, 21];
|
|
916
|
+
var GuardrailAutomatedReasoningStatementLogicContent = [0, n0, _GARSLC, 8, 0];
|
|
917
|
+
var GuardrailAutomatedReasoningStatementNaturalLanguageContent = [0, n0, _GARSNLC, 8, 0];
|
|
918
|
+
var ModelInputPayload = [0, n0, _MIP, 8, 15];
|
|
919
|
+
var PartBody = [0, n0, _PB, 8, 21];
|
|
920
|
+
var AccessDeniedException = [
|
|
921
|
+
-3,
|
|
922
|
+
n0,
|
|
923
|
+
_ADE,
|
|
924
|
+
{
|
|
925
|
+
[_e]: _c,
|
|
926
|
+
[_hE]: 403,
|
|
927
|
+
},
|
|
928
|
+
[_m],
|
|
929
|
+
[0],
|
|
930
|
+
];
|
|
931
|
+
schema.TypeRegistry.for(n0).registerError(AccessDeniedException, AccessDeniedException$1);
|
|
932
|
+
var AnyToolChoice = [3, n0, _ATC, 0, [], []];
|
|
933
|
+
var ApplyGuardrailRequest = [
|
|
934
|
+
3,
|
|
935
|
+
n0,
|
|
936
|
+
_AGR,
|
|
937
|
+
0,
|
|
938
|
+
[_gI, _gV, _s, _co, _oS],
|
|
939
|
+
[[0, 1], [0, 1], 0, [() => GuardrailContentBlockList, 0], 0],
|
|
940
|
+
];
|
|
941
|
+
var ApplyGuardrailResponse = [
|
|
942
|
+
3,
|
|
943
|
+
n0,
|
|
944
|
+
_AGRp,
|
|
945
|
+
0,
|
|
946
|
+
[_u, _a, _aR, _o, _as, _gC],
|
|
947
|
+
[
|
|
948
|
+
() => GuardrailUsage,
|
|
949
|
+
0,
|
|
950
|
+
0,
|
|
951
|
+
() => GuardrailOutputContentList,
|
|
952
|
+
[() => GuardrailAssessmentList, 0],
|
|
953
|
+
() => GuardrailCoverage,
|
|
954
|
+
],
|
|
955
|
+
];
|
|
956
|
+
var AsyncInvokeS3OutputDataConfig = [3, n0, _AISODC, 0, [_sU, _kKI, _bO], [0, 0, 0]];
|
|
957
|
+
var AsyncInvokeSummary = [
|
|
958
|
+
3,
|
|
959
|
+
n0,
|
|
960
|
+
_AIS,
|
|
961
|
+
0,
|
|
962
|
+
[_iA, _mA, _cRT, _st, _fM, _sT, _lMT, _eT, _oDC],
|
|
963
|
+
[0, 0, 0, 0, [() => AsyncInvokeMessage, 0], 5, 5, 5, () => AsyncInvokeOutputDataConfig],
|
|
964
|
+
];
|
|
965
|
+
var AutoToolChoice = [3, n0, _ATCu, 0, [], []];
|
|
966
|
+
var BidirectionalInputPayloadPart = [3, n0, _BIPP, 8, [_b], [[() => PartBody, 0]]];
|
|
967
|
+
var BidirectionalOutputPayloadPart = [3, n0, _BOPP, 8, [_b], [[() => PartBody, 0]]];
|
|
968
|
+
var CachePointBlock = [3, n0, _CPB, 0, [_t], [0]];
|
|
969
|
+
var Citation = [
|
|
970
|
+
3,
|
|
971
|
+
n0,
|
|
972
|
+
_C,
|
|
973
|
+
0,
|
|
974
|
+
[_ti, _sC, _l],
|
|
975
|
+
[0, () => CitationSourceContentList, () => CitationLocation],
|
|
976
|
+
];
|
|
977
|
+
var CitationsConfig = [3, n0, _CC, 0, [_en], [2]];
|
|
978
|
+
var CitationsContentBlock = [
|
|
979
|
+
3,
|
|
980
|
+
n0,
|
|
981
|
+
_CCB,
|
|
982
|
+
0,
|
|
983
|
+
[_co, _ci],
|
|
984
|
+
[() => CitationGeneratedContentList, () => Citations],
|
|
985
|
+
];
|
|
986
|
+
var CitationsDelta = [
|
|
987
|
+
3,
|
|
988
|
+
n0,
|
|
989
|
+
_CD,
|
|
990
|
+
0,
|
|
991
|
+
[_ti, _sC, _l],
|
|
992
|
+
[0, () => CitationSourceContentListDelta, () => CitationLocation],
|
|
993
|
+
];
|
|
994
|
+
var CitationSourceContentDelta = [3, n0, _CSCD, 0, [_te], [0]];
|
|
995
|
+
var ConflictException = [
|
|
996
|
+
-3,
|
|
997
|
+
n0,
|
|
998
|
+
_CE,
|
|
999
|
+
{
|
|
1000
|
+
[_e]: _c,
|
|
1001
|
+
[_hE]: 400,
|
|
1002
|
+
},
|
|
1003
|
+
[_m],
|
|
1004
|
+
[0],
|
|
1005
|
+
];
|
|
1006
|
+
schema.TypeRegistry.for(n0).registerError(ConflictException, ConflictException$1);
|
|
1007
|
+
var ContentBlockDeltaEvent = [
|
|
1008
|
+
3,
|
|
1009
|
+
n0,
|
|
1010
|
+
_CBDE,
|
|
1011
|
+
0,
|
|
1012
|
+
[_d, _cBI],
|
|
1013
|
+
[[() => ContentBlockDelta, 0], 1],
|
|
1014
|
+
];
|
|
1015
|
+
var ContentBlockStartEvent = [
|
|
1016
|
+
3,
|
|
1017
|
+
n0,
|
|
1018
|
+
_CBSE,
|
|
1019
|
+
0,
|
|
1020
|
+
[_sta, _cBI],
|
|
1021
|
+
[() => ContentBlockStart, 1],
|
|
1022
|
+
];
|
|
1023
|
+
var ContentBlockStopEvent = [3, n0, _CBSEo, 0, [_cBI], [1]];
|
|
1024
|
+
var ConverseMetrics = [3, n0, _CM, 0, [_lM], [1]];
|
|
1025
|
+
var ConverseRequest = [
|
|
1026
|
+
3,
|
|
1027
|
+
n0,
|
|
1028
|
+
_CR,
|
|
1029
|
+
0,
|
|
1030
|
+
[_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC],
|
|
1031
|
+
[
|
|
1032
|
+
[0, 1],
|
|
1033
|
+
[() => Messages, 0],
|
|
1034
|
+
[() => SystemContentBlocks, 0],
|
|
1035
|
+
() => InferenceConfiguration,
|
|
1036
|
+
() => ToolConfiguration,
|
|
1037
|
+
() => GuardrailConfiguration,
|
|
1038
|
+
15,
|
|
1039
|
+
[() => PromptVariableMap, 0],
|
|
1040
|
+
64 | 0,
|
|
1041
|
+
[() => RequestMetadata, 0],
|
|
1042
|
+
() => PerformanceConfiguration,
|
|
1043
|
+
],
|
|
1044
|
+
];
|
|
1045
|
+
var ConverseResponse = [
|
|
1046
|
+
3,
|
|
1047
|
+
n0,
|
|
1048
|
+
_CRo,
|
|
1049
|
+
0,
|
|
1050
|
+
[_ou, _sR, _u, _met, _aMRFd, _tr, _pC],
|
|
1051
|
+
[
|
|
1052
|
+
[() => ConverseOutput, 0],
|
|
1053
|
+
0,
|
|
1054
|
+
() => TokenUsage,
|
|
1055
|
+
() => ConverseMetrics,
|
|
1056
|
+
15,
|
|
1057
|
+
[() => ConverseTrace, 0],
|
|
1058
|
+
() => PerformanceConfiguration,
|
|
1059
|
+
],
|
|
1060
|
+
];
|
|
1061
|
+
var ConverseStreamMetadataEvent = [
|
|
1062
|
+
3,
|
|
1063
|
+
n0,
|
|
1064
|
+
_CSME,
|
|
1065
|
+
0,
|
|
1066
|
+
[_u, _met, _tr, _pC],
|
|
1067
|
+
[() => TokenUsage, () => ConverseStreamMetrics, [() => ConverseStreamTrace, 0], () => PerformanceConfiguration],
|
|
1068
|
+
];
|
|
1069
|
+
var ConverseStreamMetrics = [3, n0, _CSM, 0, [_lM], [1]];
|
|
1070
|
+
var ConverseStreamRequest = [
|
|
1071
|
+
3,
|
|
1072
|
+
n0,
|
|
1073
|
+
_CSR,
|
|
1074
|
+
0,
|
|
1075
|
+
[_mI, _me, _sy, _iC, _tC, _gCu, _aMRF, _pV, _aMRFP, _rM, _pC],
|
|
1076
|
+
[
|
|
1077
|
+
[0, 1],
|
|
1078
|
+
[() => Messages, 0],
|
|
1079
|
+
[() => SystemContentBlocks, 0],
|
|
1080
|
+
() => InferenceConfiguration,
|
|
1081
|
+
() => ToolConfiguration,
|
|
1082
|
+
() => GuardrailStreamConfiguration,
|
|
1083
|
+
15,
|
|
1084
|
+
[() => PromptVariableMap, 0],
|
|
1085
|
+
64 | 0,
|
|
1086
|
+
[() => RequestMetadata, 0],
|
|
1087
|
+
() => PerformanceConfiguration,
|
|
1088
|
+
],
|
|
1089
|
+
];
|
|
1090
|
+
var ConverseStreamResponse = [
|
|
1091
|
+
3,
|
|
1092
|
+
n0,
|
|
1093
|
+
_CSRo,
|
|
1094
|
+
0,
|
|
1095
|
+
[_str],
|
|
1096
|
+
[[() => ConverseStreamOutput, 16]],
|
|
1097
|
+
];
|
|
1098
|
+
var ConverseStreamTrace = [
|
|
1099
|
+
3,
|
|
1100
|
+
n0,
|
|
1101
|
+
_CST,
|
|
1102
|
+
0,
|
|
1103
|
+
[_g, _pR],
|
|
1104
|
+
[[() => GuardrailTraceAssessment, 0], () => PromptRouterTrace],
|
|
1105
|
+
];
|
|
1106
|
+
var ConverseTokensRequest = [
|
|
1107
|
+
3,
|
|
1108
|
+
n0,
|
|
1109
|
+
_CTR,
|
|
1110
|
+
0,
|
|
1111
|
+
[_me, _sy],
|
|
1112
|
+
[
|
|
1113
|
+
[() => Messages, 0],
|
|
1114
|
+
[() => SystemContentBlocks, 0],
|
|
1115
|
+
],
|
|
1116
|
+
];
|
|
1117
|
+
var ConverseTrace = [
|
|
1118
|
+
3,
|
|
1119
|
+
n0,
|
|
1120
|
+
_CT,
|
|
1121
|
+
0,
|
|
1122
|
+
[_g, _pR],
|
|
1123
|
+
[[() => GuardrailTraceAssessment, 0], () => PromptRouterTrace],
|
|
1124
|
+
];
|
|
1125
|
+
var CountTokensRequest = [
|
|
1126
|
+
3,
|
|
1127
|
+
n0,
|
|
1128
|
+
_CTRo,
|
|
1129
|
+
0,
|
|
1130
|
+
[_mI, _i],
|
|
1131
|
+
[
|
|
1132
|
+
[0, 1],
|
|
1133
|
+
[() => CountTokensInput, 0],
|
|
1134
|
+
],
|
|
1135
|
+
];
|
|
1136
|
+
var CountTokensResponse = [3, n0, _CTRou, 0, [_iT], [1]];
|
|
1137
|
+
var DocumentBlock = [
|
|
1138
|
+
3,
|
|
1139
|
+
n0,
|
|
1140
|
+
_DB,
|
|
1141
|
+
0,
|
|
1142
|
+
[_f, _n, _s, _con, _ci],
|
|
1143
|
+
[0, 0, () => DocumentSource, 0, () => CitationsConfig],
|
|
1144
|
+
];
|
|
1145
|
+
var DocumentCharLocation = [3, n0, _DCL, 0, [_dI, _sta, _end], [1, 1, 1]];
|
|
1146
|
+
var DocumentChunkLocation = [3, n0, _DCLo, 0, [_dI, _sta, _end], [1, 1, 1]];
|
|
1147
|
+
var DocumentPageLocation = [3, n0, _DPL, 0, [_dI, _sta, _end], [1, 1, 1]];
|
|
1148
|
+
var GetAsyncInvokeRequest = [3, n0, _GAIR, 0, [_iA], [[0, 1]]];
|
|
1149
|
+
var GetAsyncInvokeResponse = [
|
|
1150
|
+
3,
|
|
1151
|
+
n0,
|
|
1152
|
+
_GAIRe,
|
|
1153
|
+
0,
|
|
1154
|
+
[_iA, _mA, _cRT, _st, _fM, _sT, _lMT, _eT, _oDC],
|
|
1155
|
+
[0, 0, 0, 0, [() => AsyncInvokeMessage, 0], 5, 5, 5, () => AsyncInvokeOutputDataConfig],
|
|
1156
|
+
];
|
|
1157
|
+
var GuardrailAssessment = [
|
|
1158
|
+
3,
|
|
1159
|
+
n0,
|
|
1160
|
+
_GA,
|
|
1161
|
+
0,
|
|
1162
|
+
[_tP, _cP, _wP, _sIP, _cGP, _aRP, _iM],
|
|
1163
|
+
[
|
|
1164
|
+
() => GuardrailTopicPolicyAssessment,
|
|
1165
|
+
() => GuardrailContentPolicyAssessment,
|
|
1166
|
+
() => GuardrailWordPolicyAssessment,
|
|
1167
|
+
() => GuardrailSensitiveInformationPolicyAssessment,
|
|
1168
|
+
() => GuardrailContextualGroundingPolicyAssessment,
|
|
1169
|
+
[() => GuardrailAutomatedReasoningPolicyAssessment, 0],
|
|
1170
|
+
() => GuardrailInvocationMetrics,
|
|
1171
|
+
],
|
|
1172
|
+
];
|
|
1173
|
+
var GuardrailAutomatedReasoningImpossibleFinding = [
|
|
1174
|
+
3,
|
|
1175
|
+
n0,
|
|
1176
|
+
_GARIF,
|
|
1177
|
+
0,
|
|
1178
|
+
[_tra, _cR, _lW],
|
|
1179
|
+
[
|
|
1180
|
+
[() => GuardrailAutomatedReasoningTranslation, 0],
|
|
1181
|
+
() => GuardrailAutomatedReasoningRuleList,
|
|
1182
|
+
[() => GuardrailAutomatedReasoningLogicWarning, 0],
|
|
1183
|
+
],
|
|
1184
|
+
];
|
|
1185
|
+
var GuardrailAutomatedReasoningInputTextReference = [
|
|
1186
|
+
3,
|
|
1187
|
+
n0,
|
|
1188
|
+
_GARITR,
|
|
1189
|
+
0,
|
|
1190
|
+
[_te],
|
|
1191
|
+
[[() => GuardrailAutomatedReasoningStatementNaturalLanguageContent, 0]],
|
|
1192
|
+
];
|
|
1193
|
+
var GuardrailAutomatedReasoningInvalidFinding = [
|
|
1194
|
+
3,
|
|
1195
|
+
n0,
|
|
1196
|
+
_GARIFu,
|
|
1197
|
+
0,
|
|
1198
|
+
[_tra, _cR, _lW],
|
|
1199
|
+
[
|
|
1200
|
+
[() => GuardrailAutomatedReasoningTranslation, 0],
|
|
1201
|
+
() => GuardrailAutomatedReasoningRuleList,
|
|
1202
|
+
[() => GuardrailAutomatedReasoningLogicWarning, 0],
|
|
1203
|
+
],
|
|
1204
|
+
];
|
|
1205
|
+
var GuardrailAutomatedReasoningLogicWarning = [
|
|
1206
|
+
3,
|
|
1207
|
+
n0,
|
|
1208
|
+
_GARLW,
|
|
1209
|
+
0,
|
|
1210
|
+
[_t, _p, _cl],
|
|
1211
|
+
[0, [() => GuardrailAutomatedReasoningStatementList, 0], [() => GuardrailAutomatedReasoningStatementList, 0]],
|
|
1212
|
+
];
|
|
1213
|
+
var GuardrailAutomatedReasoningNoTranslationsFinding = [3, n0, _GARNTF, 0, [], []];
|
|
1214
|
+
var GuardrailAutomatedReasoningPolicyAssessment = [
|
|
1215
|
+
3,
|
|
1216
|
+
n0,
|
|
1217
|
+
_GARPA,
|
|
1218
|
+
0,
|
|
1219
|
+
[_fi],
|
|
1220
|
+
[[() => GuardrailAutomatedReasoningFindingList, 0]],
|
|
1221
|
+
];
|
|
1222
|
+
var GuardrailAutomatedReasoningRule = [3, n0, _GARR, 0, [_id, _pVA], [0, 0]];
|
|
1223
|
+
var GuardrailAutomatedReasoningSatisfiableFinding = [
|
|
1224
|
+
3,
|
|
1225
|
+
n0,
|
|
1226
|
+
_GARSF,
|
|
1227
|
+
0,
|
|
1228
|
+
[_tra, _cTS, _cFS, _lW],
|
|
1229
|
+
[
|
|
1230
|
+
[() => GuardrailAutomatedReasoningTranslation, 0],
|
|
1231
|
+
[() => GuardrailAutomatedReasoningScenario, 0],
|
|
1232
|
+
[() => GuardrailAutomatedReasoningScenario, 0],
|
|
1233
|
+
[() => GuardrailAutomatedReasoningLogicWarning, 0],
|
|
1234
|
+
],
|
|
1235
|
+
];
|
|
1236
|
+
var GuardrailAutomatedReasoningScenario = [
|
|
1237
|
+
3,
|
|
1238
|
+
n0,
|
|
1239
|
+
_GARS,
|
|
1240
|
+
0,
|
|
1241
|
+
[_stat],
|
|
1242
|
+
[[() => GuardrailAutomatedReasoningStatementList, 0]],
|
|
1243
|
+
];
|
|
1244
|
+
var GuardrailAutomatedReasoningStatement = [
|
|
1245
|
+
3,
|
|
1246
|
+
n0,
|
|
1247
|
+
_GARSu,
|
|
1248
|
+
0,
|
|
1249
|
+
[_lo, _nL],
|
|
1250
|
+
[
|
|
1251
|
+
[() => GuardrailAutomatedReasoningStatementLogicContent, 0],
|
|
1252
|
+
[() => GuardrailAutomatedReasoningStatementNaturalLanguageContent, 0],
|
|
1253
|
+
],
|
|
1254
|
+
];
|
|
1255
|
+
var GuardrailAutomatedReasoningTooComplexFinding = [3, n0, _GARTCF, 0, [], []];
|
|
1256
|
+
var GuardrailAutomatedReasoningTranslation = [
|
|
1257
|
+
3,
|
|
1258
|
+
n0,
|
|
1259
|
+
_GART,
|
|
1260
|
+
0,
|
|
1261
|
+
[_p, _cl, _uP, _uC, _conf],
|
|
1262
|
+
[
|
|
1263
|
+
[() => GuardrailAutomatedReasoningStatementList, 0],
|
|
1264
|
+
[() => GuardrailAutomatedReasoningStatementList, 0],
|
|
1265
|
+
[() => GuardrailAutomatedReasoningInputTextReferenceList, 0],
|
|
1266
|
+
[() => GuardrailAutomatedReasoningInputTextReferenceList, 0],
|
|
1267
|
+
1,
|
|
1268
|
+
],
|
|
1269
|
+
];
|
|
1270
|
+
var GuardrailAutomatedReasoningTranslationAmbiguousFinding = [
|
|
1271
|
+
3,
|
|
1272
|
+
n0,
|
|
1273
|
+
_GARTAF,
|
|
1274
|
+
0,
|
|
1275
|
+
[_op, _dS],
|
|
1276
|
+
[
|
|
1277
|
+
[() => GuardrailAutomatedReasoningTranslationOptionList, 0],
|
|
1278
|
+
[() => GuardrailAutomatedReasoningDifferenceScenarioList, 0],
|
|
1279
|
+
],
|
|
1280
|
+
];
|
|
1281
|
+
var GuardrailAutomatedReasoningTranslationOption = [
|
|
1282
|
+
3,
|
|
1283
|
+
n0,
|
|
1284
|
+
_GARTO,
|
|
1285
|
+
0,
|
|
1286
|
+
[_tran],
|
|
1287
|
+
[[() => GuardrailAutomatedReasoningTranslationList, 0]],
|
|
1288
|
+
];
|
|
1289
|
+
var GuardrailAutomatedReasoningValidFinding = [
|
|
1290
|
+
3,
|
|
1291
|
+
n0,
|
|
1292
|
+
_GARVF,
|
|
1293
|
+
0,
|
|
1294
|
+
[_tra, _cTS, _sRu, _lW],
|
|
1295
|
+
[
|
|
1296
|
+
[() => GuardrailAutomatedReasoningTranslation, 0],
|
|
1297
|
+
[() => GuardrailAutomatedReasoningScenario, 0],
|
|
1298
|
+
() => GuardrailAutomatedReasoningRuleList,
|
|
1299
|
+
[() => GuardrailAutomatedReasoningLogicWarning, 0],
|
|
1300
|
+
],
|
|
1301
|
+
];
|
|
1302
|
+
var GuardrailConfiguration = [3, n0, _GC, 0, [_gI, _gV, _tr], [0, 0, 0]];
|
|
1303
|
+
var GuardrailContentFilter = [3, n0, _GCF, 0, [_t, _conf, _fS, _a, _de], [0, 0, 0, 0, 2]];
|
|
1304
|
+
var GuardrailContentPolicyAssessment = [
|
|
1305
|
+
3,
|
|
1306
|
+
n0,
|
|
1307
|
+
_GCPA,
|
|
1308
|
+
0,
|
|
1309
|
+
[_fil],
|
|
1310
|
+
[() => GuardrailContentFilterList],
|
|
1311
|
+
];
|
|
1312
|
+
var GuardrailContextualGroundingFilter = [
|
|
1313
|
+
3,
|
|
1314
|
+
n0,
|
|
1315
|
+
_GCGF,
|
|
1316
|
+
0,
|
|
1317
|
+
[_t, _th, _sc, _a, _de],
|
|
1318
|
+
[0, 1, 1, 0, 2],
|
|
1319
|
+
];
|
|
1320
|
+
var GuardrailContextualGroundingPolicyAssessment = [
|
|
1321
|
+
3,
|
|
1322
|
+
n0,
|
|
1323
|
+
_GCGPA,
|
|
1324
|
+
0,
|
|
1325
|
+
[_fil],
|
|
1326
|
+
[() => GuardrailContextualGroundingFilters],
|
|
1327
|
+
];
|
|
1328
|
+
var GuardrailConverseImageBlock = [
|
|
1329
|
+
3,
|
|
1330
|
+
n0,
|
|
1331
|
+
_GCIB,
|
|
1332
|
+
8,
|
|
1333
|
+
[_f, _s],
|
|
1334
|
+
[0, [() => GuardrailConverseImageSource, 0]],
|
|
1335
|
+
];
|
|
1336
|
+
var GuardrailConverseTextBlock = [3, n0, _GCTB, 0, [_te, _q], [0, 64 | 0]];
|
|
1337
|
+
var GuardrailCoverage = [
|
|
1338
|
+
3,
|
|
1339
|
+
n0,
|
|
1340
|
+
_GCu,
|
|
1341
|
+
0,
|
|
1342
|
+
[_tCe, _im],
|
|
1343
|
+
[() => GuardrailTextCharactersCoverage, () => GuardrailImageCoverage],
|
|
1344
|
+
];
|
|
1345
|
+
var GuardrailCustomWord = [3, n0, _GCW, 0, [_ma, _a, _de], [0, 0, 2]];
|
|
1346
|
+
var GuardrailImageBlock = [
|
|
1347
|
+
3,
|
|
1348
|
+
n0,
|
|
1349
|
+
_GIB,
|
|
1350
|
+
8,
|
|
1351
|
+
[_f, _s],
|
|
1352
|
+
[0, [() => GuardrailImageSource, 0]],
|
|
1353
|
+
];
|
|
1354
|
+
var GuardrailImageCoverage = [3, n0, _GIC, 0, [_gu, _to], [1, 1]];
|
|
1355
|
+
var GuardrailInvocationMetrics = [
|
|
1356
|
+
3,
|
|
1357
|
+
n0,
|
|
1358
|
+
_GIM,
|
|
1359
|
+
0,
|
|
1360
|
+
[_gPL, _u, _gC],
|
|
1361
|
+
[1, () => GuardrailUsage, () => GuardrailCoverage],
|
|
1362
|
+
];
|
|
1363
|
+
var GuardrailManagedWord = [3, n0, _GMW, 0, [_ma, _t, _a, _de], [0, 0, 0, 2]];
|
|
1364
|
+
var GuardrailOutputContent = [3, n0, _GOC, 0, [_te], [0]];
|
|
1365
|
+
var GuardrailPiiEntityFilter = [3, n0, _GPEF, 0, [_ma, _t, _a, _de], [0, 0, 0, 2]];
|
|
1366
|
+
var GuardrailRegexFilter = [3, n0, _GRF, 0, [_n, _ma, _r, _a, _de], [0, 0, 0, 0, 2]];
|
|
1367
|
+
var GuardrailSensitiveInformationPolicyAssessment = [
|
|
1368
|
+
3,
|
|
1369
|
+
n0,
|
|
1370
|
+
_GSIPA,
|
|
1371
|
+
0,
|
|
1372
|
+
[_pE, _re],
|
|
1373
|
+
[() => GuardrailPiiEntityFilterList, () => GuardrailRegexFilterList],
|
|
1374
|
+
];
|
|
1375
|
+
var GuardrailStreamConfiguration = [3, n0, _GSC, 0, [_gI, _gV, _tr, _sPM], [0, 0, 0, 0]];
|
|
1376
|
+
var GuardrailTextBlock = [3, n0, _GTB, 0, [_te, _q], [0, 64 | 0]];
|
|
1377
|
+
var GuardrailTextCharactersCoverage = [3, n0, _GTCC, 0, [_gu, _to], [1, 1]];
|
|
1378
|
+
var GuardrailTopic = [3, n0, _GT, 0, [_n, _t, _a, _de], [0, 0, 0, 2]];
|
|
1379
|
+
var GuardrailTopicPolicyAssessment = [
|
|
1380
|
+
3,
|
|
1381
|
+
n0,
|
|
1382
|
+
_GTPA,
|
|
1383
|
+
0,
|
|
1384
|
+
[_top],
|
|
1385
|
+
[() => GuardrailTopicList],
|
|
1386
|
+
];
|
|
1387
|
+
var GuardrailTraceAssessment = [
|
|
1388
|
+
3,
|
|
1389
|
+
n0,
|
|
1390
|
+
_GTA,
|
|
1391
|
+
0,
|
|
1392
|
+
[_mO, _iAn, _oA, _aR],
|
|
1393
|
+
[64 | 0, [() => GuardrailAssessmentMap, 0], [() => GuardrailAssessmentListMap, 0], 0],
|
|
1394
|
+
];
|
|
1395
|
+
var GuardrailUsage = [
|
|
1396
|
+
3,
|
|
1397
|
+
n0,
|
|
1398
|
+
_GU,
|
|
1399
|
+
0,
|
|
1400
|
+
[_tPU, _cPU, _wPU, _sIPU, _sIPFU, _cGPU, _cPIU, _aRPU, _aRPu],
|
|
1401
|
+
[1, 1, 1, 1, 1, 1, 1, 1, 1],
|
|
1402
|
+
];
|
|
1403
|
+
var GuardrailWordPolicyAssessment = [
|
|
1404
|
+
3,
|
|
1405
|
+
n0,
|
|
1406
|
+
_GWPA,
|
|
1407
|
+
0,
|
|
1408
|
+
[_cW, _mWL],
|
|
1409
|
+
[() => GuardrailCustomWordList, () => GuardrailManagedWordList],
|
|
1410
|
+
];
|
|
1411
|
+
var ImageBlock = [3, n0, _IB, 0, [_f, _s], [0, () => ImageSource]];
|
|
1412
|
+
var InferenceConfiguration = [3, n0, _IC, 0, [_mT, _tem, _tPo, _sS], [1, 1, 1, 64 | 0]];
|
|
1413
|
+
var InternalServerException = [
|
|
1414
|
+
-3,
|
|
1415
|
+
n0,
|
|
1416
|
+
_ISE,
|
|
1417
|
+
{
|
|
1418
|
+
[_e]: _se,
|
|
1419
|
+
[_hE]: 500,
|
|
1420
|
+
},
|
|
1421
|
+
[_m],
|
|
1422
|
+
[0],
|
|
1423
|
+
];
|
|
1424
|
+
schema.TypeRegistry.for(n0).registerError(InternalServerException, InternalServerException$1);
|
|
1425
|
+
var InvokeModelRequest = [
|
|
1426
|
+
3,
|
|
1427
|
+
n0,
|
|
1428
|
+
_IMR,
|
|
1429
|
+
0,
|
|
1430
|
+
[_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL],
|
|
1431
|
+
[
|
|
1432
|
+
[() => Body, 16],
|
|
1433
|
+
[
|
|
1434
|
+
0,
|
|
1435
|
+
{
|
|
1436
|
+
[_hH]: _CT_,
|
|
1437
|
+
},
|
|
1438
|
+
],
|
|
1439
|
+
[
|
|
1440
|
+
0,
|
|
1441
|
+
{
|
|
1442
|
+
[_hH]: _A,
|
|
1443
|
+
},
|
|
1444
|
+
],
|
|
1445
|
+
[0, 1],
|
|
1446
|
+
[
|
|
1447
|
+
0,
|
|
1448
|
+
{
|
|
1449
|
+
[_hH]: _XABT,
|
|
1450
|
+
},
|
|
1451
|
+
],
|
|
1452
|
+
[
|
|
1453
|
+
0,
|
|
1454
|
+
{
|
|
1455
|
+
[_hH]: _XABG,
|
|
1456
|
+
},
|
|
1457
|
+
],
|
|
1458
|
+
[
|
|
1459
|
+
0,
|
|
1460
|
+
{
|
|
1461
|
+
[_hH]: _XABG_,
|
|
1462
|
+
},
|
|
1463
|
+
],
|
|
1464
|
+
[
|
|
1465
|
+
0,
|
|
1466
|
+
{
|
|
1467
|
+
[_hH]: _XABPL,
|
|
1468
|
+
},
|
|
1469
|
+
],
|
|
1470
|
+
],
|
|
1471
|
+
];
|
|
1472
|
+
var InvokeModelResponse = [
|
|
1473
|
+
3,
|
|
1474
|
+
n0,
|
|
1475
|
+
_IMRn,
|
|
1476
|
+
0,
|
|
1477
|
+
[_bo, _cT, _pCL],
|
|
1478
|
+
[
|
|
1479
|
+
[() => Body, 16],
|
|
1480
|
+
[
|
|
1481
|
+
0,
|
|
1482
|
+
{
|
|
1483
|
+
[_hH]: _CT_,
|
|
1484
|
+
},
|
|
1485
|
+
],
|
|
1486
|
+
[
|
|
1487
|
+
0,
|
|
1488
|
+
{
|
|
1489
|
+
[_hH]: _XABPL,
|
|
1490
|
+
},
|
|
1491
|
+
],
|
|
1492
|
+
],
|
|
1493
|
+
];
|
|
1494
|
+
var InvokeModelTokensRequest = [3, n0, _IMTR, 0, [_bo], [[() => Body, 0]]];
|
|
1495
|
+
var InvokeModelWithBidirectionalStreamRequest = [
|
|
1496
|
+
3,
|
|
1497
|
+
n0,
|
|
1498
|
+
_IMWBSR,
|
|
1499
|
+
0,
|
|
1500
|
+
[_mI, _bo],
|
|
1501
|
+
[
|
|
1502
|
+
[0, 1],
|
|
1503
|
+
[() => InvokeModelWithBidirectionalStreamInput, 16],
|
|
1504
|
+
],
|
|
1505
|
+
];
|
|
1506
|
+
var InvokeModelWithBidirectionalStreamResponse = [
|
|
1507
|
+
3,
|
|
1508
|
+
n0,
|
|
1509
|
+
_IMWBSRn,
|
|
1510
|
+
0,
|
|
1511
|
+
[_bo],
|
|
1512
|
+
[[() => InvokeModelWithBidirectionalStreamOutput, 16]],
|
|
1513
|
+
];
|
|
1514
|
+
var InvokeModelWithResponseStreamRequest = [
|
|
1515
|
+
3,
|
|
1516
|
+
n0,
|
|
1517
|
+
_IMWRSR,
|
|
1518
|
+
0,
|
|
1519
|
+
[_bo, _cT, _ac, _mI, _tr, _gI, _gV, _pCL],
|
|
1520
|
+
[
|
|
1521
|
+
[() => Body, 16],
|
|
1522
|
+
[
|
|
1523
|
+
0,
|
|
1524
|
+
{
|
|
1525
|
+
[_hH]: _CT_,
|
|
1526
|
+
},
|
|
1527
|
+
],
|
|
1528
|
+
[
|
|
1529
|
+
0,
|
|
1530
|
+
{
|
|
1531
|
+
[_hH]: _XABA,
|
|
1532
|
+
},
|
|
1533
|
+
],
|
|
1534
|
+
[0, 1],
|
|
1535
|
+
[
|
|
1536
|
+
0,
|
|
1537
|
+
{
|
|
1538
|
+
[_hH]: _XABT,
|
|
1539
|
+
},
|
|
1540
|
+
],
|
|
1541
|
+
[
|
|
1542
|
+
0,
|
|
1543
|
+
{
|
|
1544
|
+
[_hH]: _XABG,
|
|
1545
|
+
},
|
|
1546
|
+
],
|
|
1547
|
+
[
|
|
1548
|
+
0,
|
|
1549
|
+
{
|
|
1550
|
+
[_hH]: _XABG_,
|
|
1551
|
+
},
|
|
1552
|
+
],
|
|
1553
|
+
[
|
|
1554
|
+
0,
|
|
1555
|
+
{
|
|
1556
|
+
[_hH]: _XABPL,
|
|
1557
|
+
},
|
|
1558
|
+
],
|
|
1559
|
+
],
|
|
1560
|
+
];
|
|
1561
|
+
var InvokeModelWithResponseStreamResponse = [
|
|
1562
|
+
3,
|
|
1563
|
+
n0,
|
|
1564
|
+
_IMWRSRn,
|
|
1565
|
+
0,
|
|
1566
|
+
[_bo, _cT, _pCL],
|
|
1567
|
+
[
|
|
1568
|
+
[() => ResponseStream, 16],
|
|
1569
|
+
[
|
|
1570
|
+
0,
|
|
1571
|
+
{
|
|
1572
|
+
[_hH]: _XABCT,
|
|
1573
|
+
},
|
|
1574
|
+
],
|
|
1575
|
+
[
|
|
1576
|
+
0,
|
|
1577
|
+
{
|
|
1578
|
+
[_hH]: _XABPL,
|
|
1579
|
+
},
|
|
1580
|
+
],
|
|
1581
|
+
],
|
|
1582
|
+
];
|
|
1583
|
+
var ListAsyncInvokesRequest = [
|
|
1584
|
+
3,
|
|
1585
|
+
n0,
|
|
1586
|
+
_LAIR,
|
|
1587
|
+
0,
|
|
1588
|
+
[_sTA, _sTB, _sE, _mR, _nT, _sB, _sO],
|
|
1589
|
+
[
|
|
1590
|
+
[
|
|
1591
|
+
5,
|
|
1592
|
+
{
|
|
1593
|
+
[_hQ]: _sTA,
|
|
1594
|
+
},
|
|
1595
|
+
],
|
|
1596
|
+
[
|
|
1597
|
+
5,
|
|
1598
|
+
{
|
|
1599
|
+
[_hQ]: _sTB,
|
|
1600
|
+
},
|
|
1601
|
+
],
|
|
1602
|
+
[
|
|
1603
|
+
0,
|
|
1604
|
+
{
|
|
1605
|
+
[_hQ]: _sE,
|
|
1606
|
+
},
|
|
1607
|
+
],
|
|
1608
|
+
[
|
|
1609
|
+
1,
|
|
1610
|
+
{
|
|
1611
|
+
[_hQ]: _mR,
|
|
1612
|
+
},
|
|
1613
|
+
],
|
|
1614
|
+
[
|
|
1615
|
+
0,
|
|
1616
|
+
{
|
|
1617
|
+
[_hQ]: _nT,
|
|
1618
|
+
},
|
|
1619
|
+
],
|
|
1620
|
+
[
|
|
1621
|
+
0,
|
|
1622
|
+
{
|
|
1623
|
+
[_hQ]: _sB,
|
|
1624
|
+
},
|
|
1625
|
+
],
|
|
1626
|
+
[
|
|
1627
|
+
0,
|
|
1628
|
+
{
|
|
1629
|
+
[_hQ]: _sO,
|
|
1630
|
+
},
|
|
1631
|
+
],
|
|
1632
|
+
],
|
|
1633
|
+
];
|
|
1634
|
+
var ListAsyncInvokesResponse = [
|
|
1635
|
+
3,
|
|
1636
|
+
n0,
|
|
1637
|
+
_LAIRi,
|
|
1638
|
+
0,
|
|
1639
|
+
[_nT, _aIS],
|
|
1640
|
+
[0, [() => AsyncInvokeSummaries, 0]],
|
|
1641
|
+
];
|
|
1642
|
+
var Message = [3, n0, _M, 0, [_ro, _co], [0, [() => ContentBlocks, 0]]];
|
|
1643
|
+
var MessageStartEvent = [3, n0, _MSE, 0, [_ro], [0]];
|
|
1644
|
+
var MessageStopEvent = [3, n0, _MSEe, 0, [_sR, _aMRFd], [0, 15]];
|
|
1645
|
+
var ModelErrorException = [
|
|
1646
|
+
-3,
|
|
1647
|
+
n0,
|
|
1648
|
+
_MEE,
|
|
1649
|
+
{
|
|
1650
|
+
[_e]: _c,
|
|
1651
|
+
[_hE]: 424,
|
|
1652
|
+
},
|
|
1653
|
+
[_m, _oSC, _rN],
|
|
1654
|
+
[0, 1, 0],
|
|
1655
|
+
];
|
|
1656
|
+
schema.TypeRegistry.for(n0).registerError(ModelErrorException, ModelErrorException$1);
|
|
1657
|
+
var ModelNotReadyException = [
|
|
1658
|
+
-3,
|
|
1659
|
+
n0,
|
|
1660
|
+
_MNRE,
|
|
1661
|
+
{
|
|
1662
|
+
[_e]: _c,
|
|
1663
|
+
[_hE]: 429,
|
|
1664
|
+
},
|
|
1665
|
+
[_m],
|
|
1666
|
+
[0],
|
|
1667
|
+
];
|
|
1668
|
+
schema.TypeRegistry.for(n0).registerError(ModelNotReadyException, ModelNotReadyException$1);
|
|
1669
|
+
var ModelStreamErrorException = [
|
|
1670
|
+
-3,
|
|
1671
|
+
n0,
|
|
1672
|
+
_MSEE,
|
|
1673
|
+
{
|
|
1674
|
+
[_e]: _c,
|
|
1675
|
+
[_hE]: 424,
|
|
1676
|
+
},
|
|
1677
|
+
[_m, _oSC, _oM],
|
|
1678
|
+
[0, 1, 0],
|
|
1679
|
+
];
|
|
1680
|
+
schema.TypeRegistry.for(n0).registerError(ModelStreamErrorException, ModelStreamErrorException$1);
|
|
1681
|
+
var ModelTimeoutException = [
|
|
1682
|
+
-3,
|
|
1683
|
+
n0,
|
|
1684
|
+
_MTE,
|
|
1685
|
+
{
|
|
1686
|
+
[_e]: _c,
|
|
1687
|
+
[_hE]: 408,
|
|
1688
|
+
},
|
|
1689
|
+
[_m],
|
|
1690
|
+
[0],
|
|
1691
|
+
];
|
|
1692
|
+
schema.TypeRegistry.for(n0).registerError(ModelTimeoutException, ModelTimeoutException$1);
|
|
1693
|
+
var PayloadPart = [3, n0, _PP, 8, [_b], [[() => PartBody, 0]]];
|
|
1694
|
+
var PerformanceConfiguration = [3, n0, _PC, 0, [_la], [0]];
|
|
1695
|
+
var PromptRouterTrace = [3, n0, _PRT, 0, [_iMI], [0]];
|
|
1696
|
+
var ReasoningTextBlock = [3, n0, _RTB, 8, [_te, _si], [0, 0]];
|
|
1697
|
+
var ResourceNotFoundException = [
|
|
1698
|
+
-3,
|
|
1699
|
+
n0,
|
|
1700
|
+
_RNFE,
|
|
1701
|
+
{
|
|
1702
|
+
[_e]: _c,
|
|
1703
|
+
[_hE]: 404,
|
|
1704
|
+
},
|
|
1705
|
+
[_m],
|
|
1706
|
+
[0],
|
|
1707
|
+
];
|
|
1708
|
+
schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
|
|
1709
|
+
var S3Location = [3, n0, _SL, 0, [_ur, _bO], [0, 0]];
|
|
1710
|
+
var ServiceQuotaExceededException = [
|
|
1711
|
+
-3,
|
|
1712
|
+
n0,
|
|
1713
|
+
_SQEE,
|
|
1714
|
+
{
|
|
1715
|
+
[_e]: _c,
|
|
1716
|
+
[_hE]: 400,
|
|
1717
|
+
},
|
|
1718
|
+
[_m],
|
|
1719
|
+
[0],
|
|
1720
|
+
];
|
|
1721
|
+
schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
|
|
1722
|
+
var ServiceUnavailableException = [
|
|
1723
|
+
-3,
|
|
1724
|
+
n0,
|
|
1725
|
+
_SUE,
|
|
1726
|
+
{
|
|
1727
|
+
[_e]: _se,
|
|
1728
|
+
[_hE]: 503,
|
|
1729
|
+
},
|
|
1730
|
+
[_m],
|
|
1731
|
+
[0],
|
|
1732
|
+
];
|
|
1733
|
+
schema.TypeRegistry.for(n0).registerError(ServiceUnavailableException, ServiceUnavailableException$1);
|
|
1734
|
+
var SpecificToolChoice = [3, n0, _STC, 0, [_n], [0]];
|
|
1735
|
+
var StartAsyncInvokeRequest = [
|
|
1736
|
+
3,
|
|
1737
|
+
n0,
|
|
1738
|
+
_SAIR,
|
|
1739
|
+
0,
|
|
1740
|
+
[_cRT, _mI, _mIo, _oDC, _ta],
|
|
1741
|
+
[[0, 4], 0, [() => ModelInputPayload, 0], () => AsyncInvokeOutputDataConfig, () => TagList],
|
|
1742
|
+
];
|
|
1743
|
+
var StartAsyncInvokeResponse = [3, n0, _SAIRt, 0, [_iA], [0]];
|
|
1744
|
+
var SystemTool = [3, n0, _ST, 0, [_n], [0]];
|
|
1745
|
+
var Tag = [3, n0, _T, 0, [_k, _v], [0, 0]];
|
|
1746
|
+
var ThrottlingException = [
|
|
1747
|
+
-3,
|
|
1748
|
+
n0,
|
|
1749
|
+
_TE,
|
|
1750
|
+
{
|
|
1751
|
+
[_e]: _c,
|
|
1752
|
+
[_hE]: 429,
|
|
1753
|
+
},
|
|
1754
|
+
[_m],
|
|
1755
|
+
[0],
|
|
1756
|
+
];
|
|
1757
|
+
schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
|
|
1758
|
+
var TokenUsage = [3, n0, _TU, 0, [_iT, _oT, _tT, _cRIT, _cWIT], [1, 1, 1, 1, 1]];
|
|
1759
|
+
var ToolConfiguration = [3, n0, _TC, 0, [_too, _tCo], [() => Tools, () => ToolChoice]];
|
|
1760
|
+
var ToolResultBlock = [
|
|
1761
|
+
3,
|
|
1762
|
+
n0,
|
|
1763
|
+
_TRB,
|
|
1764
|
+
0,
|
|
1765
|
+
[_tUI, _co, _st, _t],
|
|
1766
|
+
[0, () => ToolResultContentBlocks, 0, 0],
|
|
1767
|
+
];
|
|
1768
|
+
var ToolResultBlockStart = [3, n0, _TRBS, 0, [_tUI, _t, _st], [0, 0, 0]];
|
|
1769
|
+
var ToolSpecification = [3, n0, _TS, 0, [_n, _des, _iS], [0, 0, () => ToolInputSchema]];
|
|
1770
|
+
var ToolUseBlock = [3, n0, _TUB, 0, [_tUI, _n, _i, _t], [0, 0, 15, 0]];
|
|
1771
|
+
var ToolUseBlockDelta = [3, n0, _TUBD, 0, [_i], [0]];
|
|
1772
|
+
var ToolUseBlockStart = [3, n0, _TUBS, 0, [_tUI, _n, _t], [0, 0, 0]];
|
|
1773
|
+
var ValidationException = [
|
|
1774
|
+
-3,
|
|
1775
|
+
n0,
|
|
1776
|
+
_VE,
|
|
1777
|
+
{
|
|
1778
|
+
[_e]: _c,
|
|
1779
|
+
[_hE]: 400,
|
|
1780
|
+
},
|
|
1781
|
+
[_m],
|
|
1782
|
+
[0],
|
|
1783
|
+
];
|
|
1784
|
+
schema.TypeRegistry.for(n0).registerError(ValidationException, ValidationException$1);
|
|
1785
|
+
var VideoBlock = [3, n0, _VB, 0, [_f, _s], [0, () => VideoSource]];
|
|
1786
|
+
var WebLocation = [3, n0, _WL, 0, [_url, _do], [0, 0]];
|
|
1787
|
+
var BedrockRuntimeServiceException = [-3, _sm, "BedrockRuntimeServiceException", 0, [], []];
|
|
1788
|
+
schema.TypeRegistry.for(_sm).registerError(BedrockRuntimeServiceException, BedrockRuntimeServiceException$1);
|
|
1789
|
+
var AsyncInvokeSummaries = [1, n0, _AISs, 0, [() => AsyncInvokeSummary, 0]];
|
|
1790
|
+
var CitationGeneratedContentList = [1, n0, _CGCL, 0, () => CitationGeneratedContent];
|
|
1791
|
+
var Citations = [1, n0, _Ci, 0, () => Citation];
|
|
1792
|
+
var CitationSourceContentList = [1, n0, _CSCL, 0, () => CitationSourceContent];
|
|
1793
|
+
var CitationSourceContentListDelta = [1, n0, _CSCLD, 0, () => CitationSourceContentDelta];
|
|
1794
|
+
var ContentBlocks = [1, n0, _CB, 0, [() => ContentBlock, 0]];
|
|
1795
|
+
var DocumentContentBlocks = [1, n0, _DCB, 0, () => DocumentContentBlock];
|
|
1796
|
+
var GuardrailAssessmentList = [1, n0, _GAL, 0, [() => GuardrailAssessment, 0]];
|
|
1797
|
+
var GuardrailAutomatedReasoningDifferenceScenarioList = [
|
|
1798
|
+
1,
|
|
1799
|
+
n0,
|
|
1800
|
+
_GARDSL,
|
|
1801
|
+
0,
|
|
1802
|
+
[() => GuardrailAutomatedReasoningScenario, 0],
|
|
1803
|
+
];
|
|
1804
|
+
var GuardrailAutomatedReasoningFindingList = [
|
|
1805
|
+
1,
|
|
1806
|
+
n0,
|
|
1807
|
+
_GARFL,
|
|
1808
|
+
0,
|
|
1809
|
+
[() => GuardrailAutomatedReasoningFinding, 0],
|
|
1810
|
+
];
|
|
1811
|
+
var GuardrailAutomatedReasoningInputTextReferenceList = [
|
|
1812
|
+
1,
|
|
1813
|
+
n0,
|
|
1814
|
+
_GARITRL,
|
|
1815
|
+
0,
|
|
1816
|
+
[() => GuardrailAutomatedReasoningInputTextReference, 0],
|
|
1817
|
+
];
|
|
1818
|
+
var GuardrailAutomatedReasoningRuleList = [
|
|
1819
|
+
1,
|
|
1820
|
+
n0,
|
|
1821
|
+
_GARRL,
|
|
1822
|
+
0,
|
|
1823
|
+
() => GuardrailAutomatedReasoningRule,
|
|
1824
|
+
];
|
|
1825
|
+
var GuardrailAutomatedReasoningStatementList = [
|
|
1826
|
+
1,
|
|
1827
|
+
n0,
|
|
1828
|
+
_GARSL,
|
|
1829
|
+
0,
|
|
1830
|
+
[() => GuardrailAutomatedReasoningStatement, 0],
|
|
1831
|
+
];
|
|
1832
|
+
var GuardrailAutomatedReasoningTranslationList = [
|
|
1833
|
+
1,
|
|
1834
|
+
n0,
|
|
1835
|
+
_GARTL,
|
|
1836
|
+
0,
|
|
1837
|
+
[() => GuardrailAutomatedReasoningTranslation, 0],
|
|
1838
|
+
];
|
|
1839
|
+
var GuardrailAutomatedReasoningTranslationOptionList = [
|
|
1840
|
+
1,
|
|
1841
|
+
n0,
|
|
1842
|
+
_GARTOL,
|
|
1843
|
+
0,
|
|
1844
|
+
[() => GuardrailAutomatedReasoningTranslationOption, 0],
|
|
1845
|
+
];
|
|
1846
|
+
var GuardrailContentBlockList = [1, n0, _GCBL, 0, [() => GuardrailContentBlock, 0]];
|
|
1847
|
+
var GuardrailContentFilterList = [1, n0, _GCFL, 0, () => GuardrailContentFilter];
|
|
1848
|
+
var GuardrailContextualGroundingFilters = [
|
|
1849
|
+
1,
|
|
1850
|
+
n0,
|
|
1851
|
+
_GCGFu,
|
|
1852
|
+
0,
|
|
1853
|
+
() => GuardrailContextualGroundingFilter,
|
|
1854
|
+
];
|
|
1855
|
+
var GuardrailCustomWordList = [1, n0, _GCWL, 0, () => GuardrailCustomWord];
|
|
1856
|
+
var GuardrailManagedWordList = [1, n0, _GMWL, 0, () => GuardrailManagedWord];
|
|
1857
|
+
var GuardrailOutputContentList = [1, n0, _GOCL, 0, () => GuardrailOutputContent];
|
|
1858
|
+
var GuardrailPiiEntityFilterList = [1, n0, _GPEFL, 0, () => GuardrailPiiEntityFilter];
|
|
1859
|
+
var GuardrailRegexFilterList = [1, n0, _GRFL, 0, () => GuardrailRegexFilter];
|
|
1860
|
+
var GuardrailTopicList = [1, n0, _GTL, 0, () => GuardrailTopic];
|
|
1861
|
+
var Messages = [1, n0, _Me, 0, [() => Message, 0]];
|
|
1862
|
+
var SystemContentBlocks = [1, n0, _SCB, 0, [() => SystemContentBlock, 0]];
|
|
1863
|
+
var TagList = [1, n0, _TL, 0, () => Tag];
|
|
1864
|
+
var ToolResultBlocksDelta = [1, n0, _TRBD, 0, () => ToolResultBlockDelta];
|
|
1865
|
+
var ToolResultContentBlocks = [1, n0, _TRCB, 0, () => ToolResultContentBlock];
|
|
1866
|
+
var Tools = [1, n0, _To, 0, () => Tool];
|
|
1867
|
+
var GuardrailAssessmentListMap = [2, n0, _GALM, 0, [0, 0], [() => GuardrailAssessmentList, 0]];
|
|
1868
|
+
var GuardrailAssessmentMap = [2, n0, _GAM, 0, [0, 0], [() => GuardrailAssessment, 0]];
|
|
1869
|
+
var PromptVariableMap = [2, n0, _PVM, 8, 0, () => PromptVariableValues];
|
|
1870
|
+
var RequestMetadata = [2, n0, _RM, 8, 0, 0];
|
|
1871
|
+
var AsyncInvokeOutputDataConfig = [
|
|
1872
|
+
3,
|
|
1873
|
+
n0,
|
|
1874
|
+
_AIODC,
|
|
1875
|
+
0,
|
|
1876
|
+
[_sODC],
|
|
1877
|
+
[() => AsyncInvokeS3OutputDataConfig],
|
|
1878
|
+
];
|
|
1879
|
+
var CitationGeneratedContent = [3, n0, _CGC, 0, [_te], [0]];
|
|
1880
|
+
var CitationLocation = [
|
|
1881
|
+
3,
|
|
1882
|
+
n0,
|
|
1883
|
+
_CL,
|
|
1884
|
+
0,
|
|
1885
|
+
[_w, _dC, _dP, _dCo],
|
|
1886
|
+
[() => WebLocation, () => DocumentCharLocation, () => DocumentPageLocation, () => DocumentChunkLocation],
|
|
1887
|
+
];
|
|
1888
|
+
var CitationSourceContent = [3, n0, _CSC, 0, [_te], [0]];
|
|
1889
|
+
var ContentBlock = [
|
|
1890
|
+
3,
|
|
1891
|
+
n0,
|
|
1892
|
+
_CBo,
|
|
1893
|
+
0,
|
|
1894
|
+
[_te, _ima, _doc, _vi, _tU, _tR, _gCua, _cPa, _rC, _cC],
|
|
1895
|
+
[
|
|
1896
|
+
0,
|
|
1897
|
+
() => ImageBlock,
|
|
1898
|
+
() => DocumentBlock,
|
|
1899
|
+
() => VideoBlock,
|
|
1900
|
+
() => ToolUseBlock,
|
|
1901
|
+
() => ToolResultBlock,
|
|
1902
|
+
[() => GuardrailConverseContentBlock, 0],
|
|
1903
|
+
() => CachePointBlock,
|
|
1904
|
+
[() => ReasoningContentBlock, 0],
|
|
1905
|
+
() => CitationsContentBlock,
|
|
1906
|
+
],
|
|
1907
|
+
];
|
|
1908
|
+
var ContentBlockDelta = [
|
|
1909
|
+
3,
|
|
1910
|
+
n0,
|
|
1911
|
+
_CBD,
|
|
1912
|
+
0,
|
|
1913
|
+
[_te, _tU, _tR, _rC, _cit],
|
|
1914
|
+
[
|
|
1915
|
+
0,
|
|
1916
|
+
() => ToolUseBlockDelta,
|
|
1917
|
+
() => ToolResultBlocksDelta,
|
|
1918
|
+
[() => ReasoningContentBlockDelta, 0],
|
|
1919
|
+
() => CitationsDelta,
|
|
1920
|
+
],
|
|
1921
|
+
];
|
|
1922
|
+
var ContentBlockStart = [
|
|
1923
|
+
3,
|
|
1924
|
+
n0,
|
|
1925
|
+
_CBS,
|
|
1926
|
+
0,
|
|
1927
|
+
[_tU, _tR],
|
|
1928
|
+
[() => ToolUseBlockStart, () => ToolResultBlockStart],
|
|
1929
|
+
];
|
|
1930
|
+
var ConverseOutput = [3, n0, _CO, 0, [_m], [[() => Message, 0]]];
|
|
1931
|
+
var ConverseStreamOutput = [
|
|
1932
|
+
3,
|
|
1933
|
+
n0,
|
|
1934
|
+
_CSO,
|
|
1935
|
+
{
|
|
1936
|
+
[_stre]: 1,
|
|
1937
|
+
},
|
|
1938
|
+
[_mS, _cBS, _cBD, _cBSo, _mSe, _meta, _iSE, _mSEE, _vE, _tE, _sUE],
|
|
1939
|
+
[
|
|
1940
|
+
() => MessageStartEvent,
|
|
1941
|
+
() => ContentBlockStartEvent,
|
|
1942
|
+
[() => ContentBlockDeltaEvent, 0],
|
|
1943
|
+
() => ContentBlockStopEvent,
|
|
1944
|
+
() => MessageStopEvent,
|
|
1945
|
+
[() => ConverseStreamMetadataEvent, 0],
|
|
1946
|
+
[() => InternalServerException, 0],
|
|
1947
|
+
[() => ModelStreamErrorException, 0],
|
|
1948
|
+
[() => ValidationException, 0],
|
|
1949
|
+
[() => ThrottlingException, 0],
|
|
1950
|
+
[() => ServiceUnavailableException, 0],
|
|
1951
|
+
],
|
|
1952
|
+
];
|
|
1953
|
+
var CountTokensInput = [
|
|
1954
|
+
3,
|
|
1955
|
+
n0,
|
|
1956
|
+
_CTI,
|
|
1957
|
+
0,
|
|
1958
|
+
[_iMn, _conv],
|
|
1959
|
+
[
|
|
1960
|
+
[() => InvokeModelTokensRequest, 0],
|
|
1961
|
+
[() => ConverseTokensRequest, 0],
|
|
1962
|
+
],
|
|
1963
|
+
];
|
|
1964
|
+
var DocumentContentBlock = [3, n0, _DCBo, 0, [_te], [0]];
|
|
1965
|
+
var DocumentSource = [
|
|
1966
|
+
3,
|
|
1967
|
+
n0,
|
|
1968
|
+
_DS,
|
|
1969
|
+
0,
|
|
1970
|
+
[_b, _sL, _te, _co],
|
|
1971
|
+
[21, () => S3Location, 0, () => DocumentContentBlocks],
|
|
1972
|
+
];
|
|
1973
|
+
var GuardrailAutomatedReasoningFinding = [
|
|
1974
|
+
3,
|
|
1975
|
+
n0,
|
|
1976
|
+
_GARF,
|
|
1977
|
+
0,
|
|
1978
|
+
[_va, _in, _sa, _imp, _tA, _tCoo, _nTo],
|
|
1979
|
+
[
|
|
1980
|
+
[() => GuardrailAutomatedReasoningValidFinding, 0],
|
|
1981
|
+
[() => GuardrailAutomatedReasoningInvalidFinding, 0],
|
|
1982
|
+
[() => GuardrailAutomatedReasoningSatisfiableFinding, 0],
|
|
1983
|
+
[() => GuardrailAutomatedReasoningImpossibleFinding, 0],
|
|
1984
|
+
[() => GuardrailAutomatedReasoningTranslationAmbiguousFinding, 0],
|
|
1985
|
+
() => GuardrailAutomatedReasoningTooComplexFinding,
|
|
1986
|
+
() => GuardrailAutomatedReasoningNoTranslationsFinding,
|
|
1987
|
+
],
|
|
1988
|
+
];
|
|
1989
|
+
var GuardrailContentBlock = [
|
|
1990
|
+
3,
|
|
1991
|
+
n0,
|
|
1992
|
+
_GCB,
|
|
1993
|
+
0,
|
|
1994
|
+
[_te, _ima],
|
|
1995
|
+
[() => GuardrailTextBlock, [() => GuardrailImageBlock, 0]],
|
|
1996
|
+
];
|
|
1997
|
+
var GuardrailConverseContentBlock = [
|
|
1998
|
+
3,
|
|
1999
|
+
n0,
|
|
2000
|
+
_GCCB,
|
|
2001
|
+
0,
|
|
2002
|
+
[_te, _ima],
|
|
2003
|
+
[() => GuardrailConverseTextBlock, [() => GuardrailConverseImageBlock, 0]],
|
|
2004
|
+
];
|
|
2005
|
+
var GuardrailConverseImageSource = [3, n0, _GCIS, 8, [_b], [21]];
|
|
2006
|
+
var GuardrailImageSource = [3, n0, _GIS, 8, [_b], [21]];
|
|
2007
|
+
var ImageSource = [3, n0, _IS, 0, [_b, _sL], [21, () => S3Location]];
|
|
2008
|
+
var InvokeModelWithBidirectionalStreamInput = [
|
|
2009
|
+
3,
|
|
2010
|
+
n0,
|
|
2011
|
+
_IMWBSI,
|
|
2012
|
+
{
|
|
2013
|
+
[_stre]: 1,
|
|
2014
|
+
},
|
|
2015
|
+
[_ch],
|
|
2016
|
+
[[() => BidirectionalInputPayloadPart, 0]],
|
|
2017
|
+
];
|
|
2018
|
+
var InvokeModelWithBidirectionalStreamOutput = [
|
|
2019
|
+
3,
|
|
2020
|
+
n0,
|
|
2021
|
+
_IMWBSO,
|
|
2022
|
+
{
|
|
2023
|
+
[_stre]: 1,
|
|
2024
|
+
},
|
|
2025
|
+
[_ch, _iSE, _mSEE, _vE, _tE, _mTE, _sUE],
|
|
2026
|
+
[
|
|
2027
|
+
[() => BidirectionalOutputPayloadPart, 0],
|
|
2028
|
+
[() => InternalServerException, 0],
|
|
2029
|
+
[() => ModelStreamErrorException, 0],
|
|
2030
|
+
[() => ValidationException, 0],
|
|
2031
|
+
[() => ThrottlingException, 0],
|
|
2032
|
+
[() => ModelTimeoutException, 0],
|
|
2033
|
+
[() => ServiceUnavailableException, 0],
|
|
2034
|
+
],
|
|
2035
|
+
];
|
|
2036
|
+
var PromptVariableValues = [3, n0, _PVV, 0, [_te], [0]];
|
|
2037
|
+
var ReasoningContentBlock = [
|
|
2038
|
+
3,
|
|
2039
|
+
n0,
|
|
2040
|
+
_RCB,
|
|
2041
|
+
8,
|
|
2042
|
+
[_rT, _rCe],
|
|
2043
|
+
[[() => ReasoningTextBlock, 0], 21],
|
|
2044
|
+
];
|
|
2045
|
+
var ReasoningContentBlockDelta = [3, n0, _RCBD, 8, [_te, _rCe, _si], [0, 21, 0]];
|
|
2046
|
+
var ResponseStream = [
|
|
2047
|
+
3,
|
|
2048
|
+
n0,
|
|
2049
|
+
_RS,
|
|
2050
|
+
{
|
|
2051
|
+
[_stre]: 1,
|
|
2052
|
+
},
|
|
2053
|
+
[_ch, _iSE, _mSEE, _vE, _tE, _mTE, _sUE],
|
|
2054
|
+
[
|
|
2055
|
+
[() => PayloadPart, 0],
|
|
2056
|
+
[() => InternalServerException, 0],
|
|
2057
|
+
[() => ModelStreamErrorException, 0],
|
|
2058
|
+
[() => ValidationException, 0],
|
|
2059
|
+
[() => ThrottlingException, 0],
|
|
2060
|
+
[() => ModelTimeoutException, 0],
|
|
2061
|
+
[() => ServiceUnavailableException, 0],
|
|
2062
|
+
],
|
|
2063
|
+
];
|
|
2064
|
+
var SystemContentBlock = [
|
|
2065
|
+
3,
|
|
2066
|
+
n0,
|
|
2067
|
+
_SCBy,
|
|
2068
|
+
0,
|
|
2069
|
+
[_te, _gCua, _cPa],
|
|
2070
|
+
[0, [() => GuardrailConverseContentBlock, 0], () => CachePointBlock],
|
|
2071
|
+
];
|
|
2072
|
+
var Tool = [
|
|
2073
|
+
3,
|
|
2074
|
+
n0,
|
|
2075
|
+
_Too,
|
|
2076
|
+
0,
|
|
2077
|
+
[_tS, _sTy, _cPa],
|
|
2078
|
+
[() => ToolSpecification, () => SystemTool, () => CachePointBlock],
|
|
2079
|
+
];
|
|
2080
|
+
var ToolChoice = [
|
|
2081
|
+
3,
|
|
2082
|
+
n0,
|
|
2083
|
+
_TCo,
|
|
2084
|
+
0,
|
|
2085
|
+
[_au, _an, _tool],
|
|
2086
|
+
[() => AutoToolChoice, () => AnyToolChoice, () => SpecificToolChoice],
|
|
2087
|
+
];
|
|
2088
|
+
var ToolInputSchema = [3, n0, _TIS, 0, [_j], [15]];
|
|
2089
|
+
var ToolResultBlockDelta = [3, n0, _TRBDo, 0, [_te], [0]];
|
|
2090
|
+
var ToolResultContentBlock = [
|
|
2091
|
+
3,
|
|
2092
|
+
n0,
|
|
2093
|
+
_TRCBo,
|
|
2094
|
+
0,
|
|
2095
|
+
[_j, _te, _ima, _doc, _vi],
|
|
2096
|
+
[15, 0, () => ImageBlock, () => DocumentBlock, () => VideoBlock],
|
|
2097
|
+
];
|
|
2098
|
+
var VideoSource = [3, n0, _VS, 0, [_b, _sL], [21, () => S3Location]];
|
|
2099
|
+
var ApplyGuardrail = [
|
|
2100
|
+
9,
|
|
2101
|
+
n0,
|
|
2102
|
+
_AG,
|
|
2103
|
+
{
|
|
2104
|
+
[_h]: ["POST", "/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply", 200],
|
|
2105
|
+
},
|
|
2106
|
+
() => ApplyGuardrailRequest,
|
|
2107
|
+
() => ApplyGuardrailResponse,
|
|
2108
|
+
];
|
|
2109
|
+
var Converse = [
|
|
2110
|
+
9,
|
|
2111
|
+
n0,
|
|
2112
|
+
_Co,
|
|
2113
|
+
{
|
|
2114
|
+
[_h]: ["POST", "/model/{modelId}/converse", 200],
|
|
2115
|
+
},
|
|
2116
|
+
() => ConverseRequest,
|
|
2117
|
+
() => ConverseResponse,
|
|
2118
|
+
];
|
|
2119
|
+
var ConverseStream = [
|
|
2120
|
+
9,
|
|
2121
|
+
n0,
|
|
2122
|
+
_CS,
|
|
2123
|
+
{
|
|
2124
|
+
[_h]: ["POST", "/model/{modelId}/converse-stream", 200],
|
|
2125
|
+
},
|
|
2126
|
+
() => ConverseStreamRequest,
|
|
2127
|
+
() => ConverseStreamResponse,
|
|
2128
|
+
];
|
|
2129
|
+
var CountTokens = [
|
|
2130
|
+
9,
|
|
2131
|
+
n0,
|
|
2132
|
+
_CTo,
|
|
2133
|
+
{
|
|
2134
|
+
[_h]: ["POST", "/model/{modelId}/count-tokens", 200],
|
|
2135
|
+
},
|
|
2136
|
+
() => CountTokensRequest,
|
|
2137
|
+
() => CountTokensResponse,
|
|
2138
|
+
];
|
|
2139
|
+
var GetAsyncInvoke = [
|
|
2140
|
+
9,
|
|
2141
|
+
n0,
|
|
2142
|
+
_GAI,
|
|
2143
|
+
{
|
|
2144
|
+
[_h]: ["GET", "/async-invoke/{invocationArn}", 200],
|
|
2145
|
+
},
|
|
2146
|
+
() => GetAsyncInvokeRequest,
|
|
2147
|
+
() => GetAsyncInvokeResponse,
|
|
2148
|
+
];
|
|
2149
|
+
var InvokeModel = [
|
|
2150
|
+
9,
|
|
2151
|
+
n0,
|
|
2152
|
+
_IM,
|
|
2153
|
+
{
|
|
2154
|
+
[_h]: ["POST", "/model/{modelId}/invoke", 200],
|
|
2155
|
+
},
|
|
2156
|
+
() => InvokeModelRequest,
|
|
2157
|
+
() => InvokeModelResponse,
|
|
2158
|
+
];
|
|
2159
|
+
var InvokeModelWithBidirectionalStream = [
|
|
2160
|
+
9,
|
|
2161
|
+
n0,
|
|
2162
|
+
_IMWBS,
|
|
2163
|
+
{
|
|
2164
|
+
[_h]: ["POST", "/model/{modelId}/invoke-with-bidirectional-stream", 200],
|
|
2165
|
+
},
|
|
2166
|
+
() => InvokeModelWithBidirectionalStreamRequest,
|
|
2167
|
+
() => InvokeModelWithBidirectionalStreamResponse,
|
|
2168
|
+
];
|
|
2169
|
+
var InvokeModelWithResponseStream = [
|
|
2170
|
+
9,
|
|
2171
|
+
n0,
|
|
2172
|
+
_IMWRS,
|
|
2173
|
+
{
|
|
2174
|
+
[_h]: ["POST", "/model/{modelId}/invoke-with-response-stream", 200],
|
|
2175
|
+
},
|
|
2176
|
+
() => InvokeModelWithResponseStreamRequest,
|
|
2177
|
+
() => InvokeModelWithResponseStreamResponse,
|
|
2178
|
+
];
|
|
2179
|
+
var ListAsyncInvokes = [
|
|
2180
|
+
9,
|
|
2181
|
+
n0,
|
|
2182
|
+
_LAI,
|
|
2183
|
+
{
|
|
2184
|
+
[_h]: ["GET", "/async-invoke", 200],
|
|
2185
|
+
},
|
|
2186
|
+
() => ListAsyncInvokesRequest,
|
|
2187
|
+
() => ListAsyncInvokesResponse,
|
|
2188
|
+
];
|
|
2189
|
+
var StartAsyncInvoke = [
|
|
2190
|
+
9,
|
|
2191
|
+
n0,
|
|
2192
|
+
_SAI,
|
|
2193
|
+
{
|
|
2194
|
+
[_h]: ["POST", "/async-invoke", 200],
|
|
2195
|
+
},
|
|
2196
|
+
() => StartAsyncInvokeRequest,
|
|
2197
|
+
() => StartAsyncInvokeResponse,
|
|
2198
|
+
];
|
|
2880
2199
|
|
|
2881
2200
|
class ApplyGuardrailCommand extends smithyClient.Command
|
|
2882
2201
|
.classBuilder()
|
|
2883
2202
|
.ep(commonParams)
|
|
2884
2203
|
.m(function (Command, cs, config, o) {
|
|
2885
|
-
return [
|
|
2886
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
2887
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
2888
|
-
];
|
|
2204
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
2889
2205
|
})
|
|
2890
2206
|
.s("AmazonBedrockFrontendService", "ApplyGuardrail", {})
|
|
2891
2207
|
.n("BedrockRuntimeClient", "ApplyGuardrailCommand")
|
|
2892
|
-
.
|
|
2893
|
-
.ser(se_ApplyGuardrailCommand)
|
|
2894
|
-
.de(de_ApplyGuardrailCommand)
|
|
2208
|
+
.sc(ApplyGuardrail)
|
|
2895
2209
|
.build() {
|
|
2896
2210
|
}
|
|
2897
2211
|
|
|
@@ -2899,16 +2213,11 @@ class ConverseCommand extends smithyClient.Command
|
|
|
2899
2213
|
.classBuilder()
|
|
2900
2214
|
.ep(commonParams)
|
|
2901
2215
|
.m(function (Command, cs, config, o) {
|
|
2902
|
-
return [
|
|
2903
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
2904
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
2905
|
-
];
|
|
2216
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
2906
2217
|
})
|
|
2907
2218
|
.s("AmazonBedrockFrontendService", "Converse", {})
|
|
2908
2219
|
.n("BedrockRuntimeClient", "ConverseCommand")
|
|
2909
|
-
.
|
|
2910
|
-
.ser(se_ConverseCommand)
|
|
2911
|
-
.de(de_ConverseCommand)
|
|
2220
|
+
.sc(Converse)
|
|
2912
2221
|
.build() {
|
|
2913
2222
|
}
|
|
2914
2223
|
|
|
@@ -2916,10 +2225,7 @@ class ConverseStreamCommand extends smithyClient.Command
|
|
|
2916
2225
|
.classBuilder()
|
|
2917
2226
|
.ep(commonParams)
|
|
2918
2227
|
.m(function (Command, cs, config, o) {
|
|
2919
|
-
return [
|
|
2920
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
2921
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
2922
|
-
];
|
|
2228
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
2923
2229
|
})
|
|
2924
2230
|
.s("AmazonBedrockFrontendService", "ConverseStream", {
|
|
2925
2231
|
eventStream: {
|
|
@@ -2927,9 +2233,7 @@ class ConverseStreamCommand extends smithyClient.Command
|
|
|
2927
2233
|
},
|
|
2928
2234
|
})
|
|
2929
2235
|
.n("BedrockRuntimeClient", "ConverseStreamCommand")
|
|
2930
|
-
.
|
|
2931
|
-
.ser(se_ConverseStreamCommand)
|
|
2932
|
-
.de(de_ConverseStreamCommand)
|
|
2236
|
+
.sc(ConverseStream)
|
|
2933
2237
|
.build() {
|
|
2934
2238
|
}
|
|
2935
2239
|
|
|
@@ -2937,16 +2241,11 @@ class CountTokensCommand extends smithyClient.Command
|
|
|
2937
2241
|
.classBuilder()
|
|
2938
2242
|
.ep(commonParams)
|
|
2939
2243
|
.m(function (Command, cs, config, o) {
|
|
2940
|
-
return [
|
|
2941
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
2942
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
2943
|
-
];
|
|
2244
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
2944
2245
|
})
|
|
2945
2246
|
.s("AmazonBedrockFrontendService", "CountTokens", {})
|
|
2946
2247
|
.n("BedrockRuntimeClient", "CountTokensCommand")
|
|
2947
|
-
.
|
|
2948
|
-
.ser(se_CountTokensCommand)
|
|
2949
|
-
.de(de_CountTokensCommand)
|
|
2248
|
+
.sc(CountTokens)
|
|
2950
2249
|
.build() {
|
|
2951
2250
|
}
|
|
2952
2251
|
|
|
@@ -2954,16 +2253,11 @@ class GetAsyncInvokeCommand extends smithyClient.Command
|
|
|
2954
2253
|
.classBuilder()
|
|
2955
2254
|
.ep(commonParams)
|
|
2956
2255
|
.m(function (Command, cs, config, o) {
|
|
2957
|
-
return [
|
|
2958
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
2959
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
2960
|
-
];
|
|
2256
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
2961
2257
|
})
|
|
2962
2258
|
.s("AmazonBedrockFrontendService", "GetAsyncInvoke", {})
|
|
2963
2259
|
.n("BedrockRuntimeClient", "GetAsyncInvokeCommand")
|
|
2964
|
-
.
|
|
2965
|
-
.ser(se_GetAsyncInvokeCommand)
|
|
2966
|
-
.de(de_GetAsyncInvokeCommand)
|
|
2260
|
+
.sc(GetAsyncInvoke)
|
|
2967
2261
|
.build() {
|
|
2968
2262
|
}
|
|
2969
2263
|
|
|
@@ -2971,16 +2265,11 @@ class InvokeModelCommand extends smithyClient.Command
|
|
|
2971
2265
|
.classBuilder()
|
|
2972
2266
|
.ep(commonParams)
|
|
2973
2267
|
.m(function (Command, cs, config, o) {
|
|
2974
|
-
return [
|
|
2975
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
2976
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
2977
|
-
];
|
|
2268
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
2978
2269
|
})
|
|
2979
2270
|
.s("AmazonBedrockFrontendService", "InvokeModel", {})
|
|
2980
2271
|
.n("BedrockRuntimeClient", "InvokeModelCommand")
|
|
2981
|
-
.
|
|
2982
|
-
.ser(se_InvokeModelCommand)
|
|
2983
|
-
.de(de_InvokeModelCommand)
|
|
2272
|
+
.sc(InvokeModel)
|
|
2984
2273
|
.build() {
|
|
2985
2274
|
}
|
|
2986
2275
|
|
|
@@ -2989,7 +2278,6 @@ class InvokeModelWithBidirectionalStreamCommand extends smithyClient.Command
|
|
|
2989
2278
|
.ep(commonParams)
|
|
2990
2279
|
.m(function (Command, cs, config, o) {
|
|
2991
2280
|
return [
|
|
2992
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
2993
2281
|
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
2994
2282
|
middlewareEventstream.getEventStreamPlugin(config),
|
|
2995
2283
|
middlewareWebsocket.getWebSocketPlugin(config, {
|
|
@@ -3004,9 +2292,7 @@ class InvokeModelWithBidirectionalStreamCommand extends smithyClient.Command
|
|
|
3004
2292
|
},
|
|
3005
2293
|
})
|
|
3006
2294
|
.n("BedrockRuntimeClient", "InvokeModelWithBidirectionalStreamCommand")
|
|
3007
|
-
.
|
|
3008
|
-
.ser(se_InvokeModelWithBidirectionalStreamCommand)
|
|
3009
|
-
.de(de_InvokeModelWithBidirectionalStreamCommand)
|
|
2295
|
+
.sc(InvokeModelWithBidirectionalStream)
|
|
3010
2296
|
.build() {
|
|
3011
2297
|
}
|
|
3012
2298
|
|
|
@@ -3014,10 +2300,7 @@ class InvokeModelWithResponseStreamCommand extends smithyClient.Command
|
|
|
3014
2300
|
.classBuilder()
|
|
3015
2301
|
.ep(commonParams)
|
|
3016
2302
|
.m(function (Command, cs, config, o) {
|
|
3017
|
-
return [
|
|
3018
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
3019
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
3020
|
-
];
|
|
2303
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
3021
2304
|
})
|
|
3022
2305
|
.s("AmazonBedrockFrontendService", "InvokeModelWithResponseStream", {
|
|
3023
2306
|
eventStream: {
|
|
@@ -3025,9 +2308,7 @@ class InvokeModelWithResponseStreamCommand extends smithyClient.Command
|
|
|
3025
2308
|
},
|
|
3026
2309
|
})
|
|
3027
2310
|
.n("BedrockRuntimeClient", "InvokeModelWithResponseStreamCommand")
|
|
3028
|
-
.
|
|
3029
|
-
.ser(se_InvokeModelWithResponseStreamCommand)
|
|
3030
|
-
.de(de_InvokeModelWithResponseStreamCommand)
|
|
2311
|
+
.sc(InvokeModelWithResponseStream)
|
|
3031
2312
|
.build() {
|
|
3032
2313
|
}
|
|
3033
2314
|
|
|
@@ -3035,16 +2316,11 @@ class ListAsyncInvokesCommand extends smithyClient.Command
|
|
|
3035
2316
|
.classBuilder()
|
|
3036
2317
|
.ep(commonParams)
|
|
3037
2318
|
.m(function (Command, cs, config, o) {
|
|
3038
|
-
return [
|
|
3039
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
3040
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
3041
|
-
];
|
|
2319
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
3042
2320
|
})
|
|
3043
2321
|
.s("AmazonBedrockFrontendService", "ListAsyncInvokes", {})
|
|
3044
2322
|
.n("BedrockRuntimeClient", "ListAsyncInvokesCommand")
|
|
3045
|
-
.
|
|
3046
|
-
.ser(se_ListAsyncInvokesCommand)
|
|
3047
|
-
.de(de_ListAsyncInvokesCommand)
|
|
2323
|
+
.sc(ListAsyncInvokes)
|
|
3048
2324
|
.build() {
|
|
3049
2325
|
}
|
|
3050
2326
|
|
|
@@ -3052,16 +2328,11 @@ class StartAsyncInvokeCommand extends smithyClient.Command
|
|
|
3052
2328
|
.classBuilder()
|
|
3053
2329
|
.ep(commonParams)
|
|
3054
2330
|
.m(function (Command, cs, config, o) {
|
|
3055
|
-
return [
|
|
3056
|
-
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
3057
|
-
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
3058
|
-
];
|
|
2331
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
3059
2332
|
})
|
|
3060
2333
|
.s("AmazonBedrockFrontendService", "StartAsyncInvoke", {})
|
|
3061
2334
|
.n("BedrockRuntimeClient", "StartAsyncInvokeCommand")
|
|
3062
|
-
.
|
|
3063
|
-
.ser(se_StartAsyncInvokeCommand)
|
|
3064
|
-
.de(de_StartAsyncInvokeCommand)
|
|
2335
|
+
.sc(StartAsyncInvoke)
|
|
3065
2336
|
.build() {
|
|
3066
2337
|
}
|
|
3067
2338
|
|
|
@@ -3091,58 +2362,22 @@ Object.defineProperty(exports, "__Client", {
|
|
|
3091
2362
|
enumerable: true,
|
|
3092
2363
|
get: function () { return smithyClient.Client; }
|
|
3093
2364
|
});
|
|
3094
|
-
exports.AccessDeniedException = AccessDeniedException;
|
|
2365
|
+
exports.AccessDeniedException = AccessDeniedException$1;
|
|
3095
2366
|
exports.ApplyGuardrailCommand = ApplyGuardrailCommand;
|
|
3096
|
-
exports.ApplyGuardrailRequestFilterSensitiveLog = ApplyGuardrailRequestFilterSensitiveLog;
|
|
3097
|
-
exports.ApplyGuardrailResponseFilterSensitiveLog = ApplyGuardrailResponseFilterSensitiveLog;
|
|
3098
2367
|
exports.AsyncInvokeStatus = AsyncInvokeStatus;
|
|
3099
|
-
exports.AsyncInvokeSummaryFilterSensitiveLog = AsyncInvokeSummaryFilterSensitiveLog;
|
|
3100
2368
|
exports.BedrockRuntime = BedrockRuntime;
|
|
3101
2369
|
exports.BedrockRuntimeClient = BedrockRuntimeClient;
|
|
3102
|
-
exports.BedrockRuntimeServiceException = BedrockRuntimeServiceException;
|
|
3103
|
-
exports.BidirectionalInputPayloadPartFilterSensitiveLog = BidirectionalInputPayloadPartFilterSensitiveLog;
|
|
3104
|
-
exports.BidirectionalOutputPayloadPartFilterSensitiveLog = BidirectionalOutputPayloadPartFilterSensitiveLog;
|
|
2370
|
+
exports.BedrockRuntimeServiceException = BedrockRuntimeServiceException$1;
|
|
3105
2371
|
exports.CachePointType = CachePointType;
|
|
3106
|
-
exports.ConflictException = ConflictException;
|
|
3107
|
-
exports.ContentBlockDeltaEventFilterSensitiveLog = ContentBlockDeltaEventFilterSensitiveLog;
|
|
3108
|
-
exports.ContentBlockDeltaFilterSensitiveLog = ContentBlockDeltaFilterSensitiveLog;
|
|
3109
|
-
exports.ContentBlockFilterSensitiveLog = ContentBlockFilterSensitiveLog;
|
|
2372
|
+
exports.ConflictException = ConflictException$1;
|
|
3110
2373
|
exports.ConversationRole = ConversationRole;
|
|
3111
2374
|
exports.ConverseCommand = ConverseCommand;
|
|
3112
|
-
exports.ConverseOutputFilterSensitiveLog = ConverseOutputFilterSensitiveLog;
|
|
3113
|
-
exports.ConverseRequestFilterSensitiveLog = ConverseRequestFilterSensitiveLog;
|
|
3114
|
-
exports.ConverseResponseFilterSensitiveLog = ConverseResponseFilterSensitiveLog;
|
|
3115
2375
|
exports.ConverseStreamCommand = ConverseStreamCommand;
|
|
3116
|
-
exports.ConverseStreamMetadataEventFilterSensitiveLog = ConverseStreamMetadataEventFilterSensitiveLog;
|
|
3117
|
-
exports.ConverseStreamOutputFilterSensitiveLog = ConverseStreamOutputFilterSensitiveLog;
|
|
3118
|
-
exports.ConverseStreamRequestFilterSensitiveLog = ConverseStreamRequestFilterSensitiveLog;
|
|
3119
|
-
exports.ConverseStreamResponseFilterSensitiveLog = ConverseStreamResponseFilterSensitiveLog;
|
|
3120
|
-
exports.ConverseStreamTraceFilterSensitiveLog = ConverseStreamTraceFilterSensitiveLog;
|
|
3121
|
-
exports.ConverseTokensRequestFilterSensitiveLog = ConverseTokensRequestFilterSensitiveLog;
|
|
3122
|
-
exports.ConverseTraceFilterSensitiveLog = ConverseTraceFilterSensitiveLog;
|
|
3123
2376
|
exports.CountTokensCommand = CountTokensCommand;
|
|
3124
|
-
exports.CountTokensInputFilterSensitiveLog = CountTokensInputFilterSensitiveLog;
|
|
3125
|
-
exports.CountTokensRequestFilterSensitiveLog = CountTokensRequestFilterSensitiveLog;
|
|
3126
2377
|
exports.DocumentFormat = DocumentFormat;
|
|
3127
2378
|
exports.GetAsyncInvokeCommand = GetAsyncInvokeCommand;
|
|
3128
|
-
exports.GetAsyncInvokeResponseFilterSensitiveLog = GetAsyncInvokeResponseFilterSensitiveLog;
|
|
3129
2379
|
exports.GuardrailAction = GuardrailAction;
|
|
3130
|
-
exports.GuardrailAssessmentFilterSensitiveLog = GuardrailAssessmentFilterSensitiveLog;
|
|
3131
|
-
exports.GuardrailAutomatedReasoningFindingFilterSensitiveLog = GuardrailAutomatedReasoningFindingFilterSensitiveLog;
|
|
3132
|
-
exports.GuardrailAutomatedReasoningImpossibleFindingFilterSensitiveLog = GuardrailAutomatedReasoningImpossibleFindingFilterSensitiveLog;
|
|
3133
|
-
exports.GuardrailAutomatedReasoningInputTextReferenceFilterSensitiveLog = GuardrailAutomatedReasoningInputTextReferenceFilterSensitiveLog;
|
|
3134
|
-
exports.GuardrailAutomatedReasoningInvalidFindingFilterSensitiveLog = GuardrailAutomatedReasoningInvalidFindingFilterSensitiveLog;
|
|
3135
|
-
exports.GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog = GuardrailAutomatedReasoningLogicWarningFilterSensitiveLog;
|
|
3136
2380
|
exports.GuardrailAutomatedReasoningLogicWarningType = GuardrailAutomatedReasoningLogicWarningType;
|
|
3137
|
-
exports.GuardrailAutomatedReasoningPolicyAssessmentFilterSensitiveLog = GuardrailAutomatedReasoningPolicyAssessmentFilterSensitiveLog;
|
|
3138
|
-
exports.GuardrailAutomatedReasoningSatisfiableFindingFilterSensitiveLog = GuardrailAutomatedReasoningSatisfiableFindingFilterSensitiveLog;
|
|
3139
|
-
exports.GuardrailAutomatedReasoningScenarioFilterSensitiveLog = GuardrailAutomatedReasoningScenarioFilterSensitiveLog;
|
|
3140
|
-
exports.GuardrailAutomatedReasoningStatementFilterSensitiveLog = GuardrailAutomatedReasoningStatementFilterSensitiveLog;
|
|
3141
|
-
exports.GuardrailAutomatedReasoningTranslationAmbiguousFindingFilterSensitiveLog = GuardrailAutomatedReasoningTranslationAmbiguousFindingFilterSensitiveLog;
|
|
3142
|
-
exports.GuardrailAutomatedReasoningTranslationFilterSensitiveLog = GuardrailAutomatedReasoningTranslationFilterSensitiveLog;
|
|
3143
|
-
exports.GuardrailAutomatedReasoningTranslationOptionFilterSensitiveLog = GuardrailAutomatedReasoningTranslationOptionFilterSensitiveLog;
|
|
3144
|
-
exports.GuardrailAutomatedReasoningValidFindingFilterSensitiveLog = GuardrailAutomatedReasoningValidFindingFilterSensitiveLog;
|
|
3145
|
-
exports.GuardrailContentBlockFilterSensitiveLog = GuardrailContentBlockFilterSensitiveLog;
|
|
3146
2381
|
exports.GuardrailContentFilterConfidence = GuardrailContentFilterConfidence;
|
|
3147
2382
|
exports.GuardrailContentFilterStrength = GuardrailContentFilterStrength;
|
|
3148
2383
|
exports.GuardrailContentFilterType = GuardrailContentFilterType;
|
|
@@ -3151,14 +2386,9 @@ exports.GuardrailContentQualifier = GuardrailContentQualifier;
|
|
|
3151
2386
|
exports.GuardrailContentSource = GuardrailContentSource;
|
|
3152
2387
|
exports.GuardrailContextualGroundingFilterType = GuardrailContextualGroundingFilterType;
|
|
3153
2388
|
exports.GuardrailContextualGroundingPolicyAction = GuardrailContextualGroundingPolicyAction;
|
|
3154
|
-
exports.GuardrailConverseContentBlockFilterSensitiveLog = GuardrailConverseContentBlockFilterSensitiveLog;
|
|
3155
2389
|
exports.GuardrailConverseContentQualifier = GuardrailConverseContentQualifier;
|
|
3156
|
-
exports.GuardrailConverseImageBlockFilterSensitiveLog = GuardrailConverseImageBlockFilterSensitiveLog;
|
|
3157
2390
|
exports.GuardrailConverseImageFormat = GuardrailConverseImageFormat;
|
|
3158
|
-
exports.GuardrailConverseImageSourceFilterSensitiveLog = GuardrailConverseImageSourceFilterSensitiveLog;
|
|
3159
|
-
exports.GuardrailImageBlockFilterSensitiveLog = GuardrailImageBlockFilterSensitiveLog;
|
|
3160
2391
|
exports.GuardrailImageFormat = GuardrailImageFormat;
|
|
3161
|
-
exports.GuardrailImageSourceFilterSensitiveLog = GuardrailImageSourceFilterSensitiveLog;
|
|
3162
2392
|
exports.GuardrailManagedWordType = GuardrailManagedWordType;
|
|
3163
2393
|
exports.GuardrailOutputScope = GuardrailOutputScope;
|
|
3164
2394
|
exports.GuardrailPiiEntityType = GuardrailPiiEntityType;
|
|
@@ -3167,48 +2397,29 @@ exports.GuardrailStreamProcessingMode = GuardrailStreamProcessingMode;
|
|
|
3167
2397
|
exports.GuardrailTopicPolicyAction = GuardrailTopicPolicyAction;
|
|
3168
2398
|
exports.GuardrailTopicType = GuardrailTopicType;
|
|
3169
2399
|
exports.GuardrailTrace = GuardrailTrace;
|
|
3170
|
-
exports.GuardrailTraceAssessmentFilterSensitiveLog = GuardrailTraceAssessmentFilterSensitiveLog;
|
|
3171
2400
|
exports.GuardrailWordPolicyAction = GuardrailWordPolicyAction;
|
|
3172
2401
|
exports.ImageFormat = ImageFormat;
|
|
3173
|
-
exports.InternalServerException = InternalServerException;
|
|
2402
|
+
exports.InternalServerException = InternalServerException$1;
|
|
3174
2403
|
exports.InvokeModelCommand = InvokeModelCommand;
|
|
3175
|
-
exports.InvokeModelRequestFilterSensitiveLog = InvokeModelRequestFilterSensitiveLog;
|
|
3176
|
-
exports.InvokeModelResponseFilterSensitiveLog = InvokeModelResponseFilterSensitiveLog;
|
|
3177
|
-
exports.InvokeModelTokensRequestFilterSensitiveLog = InvokeModelTokensRequestFilterSensitiveLog;
|
|
3178
2404
|
exports.InvokeModelWithBidirectionalStreamCommand = InvokeModelWithBidirectionalStreamCommand;
|
|
3179
|
-
exports.InvokeModelWithBidirectionalStreamInputFilterSensitiveLog = InvokeModelWithBidirectionalStreamInputFilterSensitiveLog;
|
|
3180
|
-
exports.InvokeModelWithBidirectionalStreamOutputFilterSensitiveLog = InvokeModelWithBidirectionalStreamOutputFilterSensitiveLog;
|
|
3181
|
-
exports.InvokeModelWithBidirectionalStreamRequestFilterSensitiveLog = InvokeModelWithBidirectionalStreamRequestFilterSensitiveLog;
|
|
3182
|
-
exports.InvokeModelWithBidirectionalStreamResponseFilterSensitiveLog = InvokeModelWithBidirectionalStreamResponseFilterSensitiveLog;
|
|
3183
2405
|
exports.InvokeModelWithResponseStreamCommand = InvokeModelWithResponseStreamCommand;
|
|
3184
|
-
exports.InvokeModelWithResponseStreamRequestFilterSensitiveLog = InvokeModelWithResponseStreamRequestFilterSensitiveLog;
|
|
3185
|
-
exports.InvokeModelWithResponseStreamResponseFilterSensitiveLog = InvokeModelWithResponseStreamResponseFilterSensitiveLog;
|
|
3186
2406
|
exports.ListAsyncInvokesCommand = ListAsyncInvokesCommand;
|
|
3187
|
-
exports.
|
|
3188
|
-
exports.
|
|
3189
|
-
exports.
|
|
3190
|
-
exports.
|
|
3191
|
-
exports.ModelStreamErrorException = ModelStreamErrorException;
|
|
3192
|
-
exports.ModelTimeoutException = ModelTimeoutException;
|
|
3193
|
-
exports.PayloadPartFilterSensitiveLog = PayloadPartFilterSensitiveLog;
|
|
2407
|
+
exports.ModelErrorException = ModelErrorException$1;
|
|
2408
|
+
exports.ModelNotReadyException = ModelNotReadyException$1;
|
|
2409
|
+
exports.ModelStreamErrorException = ModelStreamErrorException$1;
|
|
2410
|
+
exports.ModelTimeoutException = ModelTimeoutException$1;
|
|
3194
2411
|
exports.PerformanceConfigLatency = PerformanceConfigLatency;
|
|
3195
|
-
exports.
|
|
3196
|
-
exports.
|
|
3197
|
-
exports.
|
|
3198
|
-
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
3199
|
-
exports.ResponseStreamFilterSensitiveLog = ResponseStreamFilterSensitiveLog;
|
|
3200
|
-
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
3201
|
-
exports.ServiceUnavailableException = ServiceUnavailableException;
|
|
2412
|
+
exports.ResourceNotFoundException = ResourceNotFoundException$1;
|
|
2413
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException$1;
|
|
2414
|
+
exports.ServiceUnavailableException = ServiceUnavailableException$1;
|
|
3202
2415
|
exports.SortAsyncInvocationBy = SortAsyncInvocationBy;
|
|
3203
2416
|
exports.SortOrder = SortOrder;
|
|
3204
2417
|
exports.StartAsyncInvokeCommand = StartAsyncInvokeCommand;
|
|
3205
|
-
exports.StartAsyncInvokeRequestFilterSensitiveLog = StartAsyncInvokeRequestFilterSensitiveLog;
|
|
3206
2418
|
exports.StopReason = StopReason;
|
|
3207
|
-
exports.
|
|
3208
|
-
exports.ThrottlingException = ThrottlingException;
|
|
2419
|
+
exports.ThrottlingException = ThrottlingException$1;
|
|
3209
2420
|
exports.ToolResultStatus = ToolResultStatus;
|
|
3210
2421
|
exports.ToolUseType = ToolUseType;
|
|
3211
2422
|
exports.Trace = Trace;
|
|
3212
|
-
exports.ValidationException = ValidationException;
|
|
2423
|
+
exports.ValidationException = ValidationException$1;
|
|
3213
2424
|
exports.VideoFormat = VideoFormat;
|
|
3214
2425
|
exports.paginateListAsyncInvokes = paginateListAsyncInvokes;
|