@aws-sdk/client-bedrock-runtime 3.940.0 → 3.943.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 +72 -14
- package/dist-es/models/enums.js +20 -0
- package/dist-es/schemas/schemas_0.js +51 -14
- package/dist-types/commands/ConverseCommand.d.ts +43 -11
- package/dist-types/commands/ConverseStreamCommand.d.ts +39 -7
- package/dist-types/commands/CountTokensCommand.d.ts +20 -4
- package/dist-types/commands/InvokeModelCommand.d.ts +2 -2
- package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +2 -2
- package/dist-types/models/enums.d.ts +28 -0
- package/dist-types/models/models_0.d.ts +208 -21
- package/dist-types/schemas/schemas_0.d.ts +5 -0
- package/dist-types/ts3.4/models/enums.d.ts +21 -0
- package/dist-types/ts3.4/models/models_0.d.ts +113 -4
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
- package/package.json +6 -6
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
-
import { AsyncInvokeStatus, CachePointType, ConversationRole, DocumentFormat, GuardrailAction, GuardrailAutomatedReasoningLogicWarningType, GuardrailContentFilterConfidence, GuardrailContentFilterStrength, GuardrailContentFilterType, GuardrailContentPolicyAction, GuardrailContentQualifier, GuardrailContentSource, GuardrailContextualGroundingFilterType, GuardrailContextualGroundingPolicyAction, GuardrailConverseContentQualifier, GuardrailConverseImageFormat, GuardrailImageFormat, GuardrailManagedWordType, GuardrailOrigin, GuardrailOutputScope, GuardrailOwnership, GuardrailPiiEntityType, GuardrailSensitiveInformationPolicyAction, GuardrailStreamProcessingMode, GuardrailTopicPolicyAction, GuardrailTopicType, GuardrailTrace, GuardrailWordPolicyAction, ImageFormat, PerformanceConfigLatency, ServiceTierType, SortAsyncInvocationBy, SortOrder, StopReason, ToolResultStatus, ToolUseType, Trace, VideoFormat } from "./enums";
|
|
2
|
+
import { AsyncInvokeStatus, AudioFormat, CachePointType, ConversationRole, DocumentFormat, GuardrailAction, GuardrailAutomatedReasoningLogicWarningType, GuardrailContentFilterConfidence, GuardrailContentFilterStrength, GuardrailContentFilterType, GuardrailContentPolicyAction, GuardrailContentQualifier, GuardrailContentSource, GuardrailContextualGroundingFilterType, GuardrailContextualGroundingPolicyAction, GuardrailConverseContentQualifier, GuardrailConverseImageFormat, GuardrailImageFormat, GuardrailManagedWordType, GuardrailOrigin, GuardrailOutputScope, GuardrailOwnership, GuardrailPiiEntityType, GuardrailSensitiveInformationPolicyAction, GuardrailStreamProcessingMode, GuardrailTopicPolicyAction, GuardrailTopicType, GuardrailTrace, GuardrailWordPolicyAction, ImageFormat, PerformanceConfigLatency, ServiceTierType, SortAsyncInvocationBy, SortOrder, StopReason, ToolResultStatus, ToolUseType, Trace, VideoFormat } from "./enums";
|
|
3
3
|
import { InternalServerException, ModelStreamErrorException, ModelTimeoutException, ServiceUnavailableException, ThrottlingException, ValidationException } from "./errors";
|
|
4
4
|
/**
|
|
5
5
|
* @public
|
|
@@ -1349,6 +1349,99 @@ export interface InferenceConfiguration {
|
|
|
1349
1349
|
*/
|
|
1350
1350
|
stopSequences?: string[] | undefined;
|
|
1351
1351
|
}
|
|
1352
|
+
/**
|
|
1353
|
+
* <p>A block containing error information when content processing fails.</p>
|
|
1354
|
+
* @public
|
|
1355
|
+
*/
|
|
1356
|
+
export interface ErrorBlock {
|
|
1357
|
+
/**
|
|
1358
|
+
* <p>A human-readable error message describing what went wrong during content processing.</p>
|
|
1359
|
+
* @public
|
|
1360
|
+
*/
|
|
1361
|
+
message?: string | undefined;
|
|
1362
|
+
}
|
|
1363
|
+
/**
|
|
1364
|
+
* <p>A storage location in an Amazon S3 bucket.</p>
|
|
1365
|
+
* @public
|
|
1366
|
+
*/
|
|
1367
|
+
export interface S3Location {
|
|
1368
|
+
/**
|
|
1369
|
+
* <p>An object URI starting with <code>s3://</code>.</p>
|
|
1370
|
+
* @public
|
|
1371
|
+
*/
|
|
1372
|
+
uri: string | undefined;
|
|
1373
|
+
/**
|
|
1374
|
+
* <p>If the bucket belongs to another AWS account, specify that account's ID.</p>
|
|
1375
|
+
* @public
|
|
1376
|
+
*/
|
|
1377
|
+
bucketOwner?: string | undefined;
|
|
1378
|
+
}
|
|
1379
|
+
/**
|
|
1380
|
+
* <p>The source of audio data, which can be provided either as raw bytes or a reference to an S3 location.</p>
|
|
1381
|
+
* @public
|
|
1382
|
+
*/
|
|
1383
|
+
export type AudioSource = AudioSource.BytesMember | AudioSource.S3LocationMember | AudioSource.$UnknownMember;
|
|
1384
|
+
/**
|
|
1385
|
+
* @public
|
|
1386
|
+
*/
|
|
1387
|
+
export declare namespace AudioSource {
|
|
1388
|
+
/**
|
|
1389
|
+
* <p>Audio data encoded in base64.</p>
|
|
1390
|
+
* @public
|
|
1391
|
+
*/
|
|
1392
|
+
interface BytesMember {
|
|
1393
|
+
bytes: Uint8Array;
|
|
1394
|
+
s3Location?: never;
|
|
1395
|
+
$unknown?: never;
|
|
1396
|
+
}
|
|
1397
|
+
/**
|
|
1398
|
+
* <p>A reference to audio data stored in an Amazon S3 bucket. To see which models support S3 uploads, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-supported-models-features.html">Supported models and features for Converse</a>.</p>
|
|
1399
|
+
* @public
|
|
1400
|
+
*/
|
|
1401
|
+
interface S3LocationMember {
|
|
1402
|
+
bytes?: never;
|
|
1403
|
+
s3Location: S3Location;
|
|
1404
|
+
$unknown?: never;
|
|
1405
|
+
}
|
|
1406
|
+
/**
|
|
1407
|
+
* @public
|
|
1408
|
+
*/
|
|
1409
|
+
interface $UnknownMember {
|
|
1410
|
+
bytes?: never;
|
|
1411
|
+
s3Location?: never;
|
|
1412
|
+
$unknown: [string, any];
|
|
1413
|
+
}
|
|
1414
|
+
/**
|
|
1415
|
+
* @deprecated unused in schema-serde mode.
|
|
1416
|
+
*
|
|
1417
|
+
*/
|
|
1418
|
+
interface Visitor<T> {
|
|
1419
|
+
bytes: (value: Uint8Array) => T;
|
|
1420
|
+
s3Location: (value: S3Location) => T;
|
|
1421
|
+
_: (name: string, value: any) => T;
|
|
1422
|
+
}
|
|
1423
|
+
}
|
|
1424
|
+
/**
|
|
1425
|
+
* <p>An audio content block that contains audio data in various supported formats.</p>
|
|
1426
|
+
* @public
|
|
1427
|
+
*/
|
|
1428
|
+
export interface AudioBlock {
|
|
1429
|
+
/**
|
|
1430
|
+
* <p>The format of the audio data, such as MP3, WAV, FLAC, or other supported audio formats.</p>
|
|
1431
|
+
* @public
|
|
1432
|
+
*/
|
|
1433
|
+
format: AudioFormat | undefined;
|
|
1434
|
+
/**
|
|
1435
|
+
* <p>The source of the audio data, which can be provided as raw bytes or an S3 location.</p>
|
|
1436
|
+
* @public
|
|
1437
|
+
*/
|
|
1438
|
+
source: AudioSource | undefined;
|
|
1439
|
+
/**
|
|
1440
|
+
* <p>Error information if the audio block could not be processed or contains invalid data.</p>
|
|
1441
|
+
* @public
|
|
1442
|
+
*/
|
|
1443
|
+
error?: ErrorBlock | undefined;
|
|
1444
|
+
}
|
|
1352
1445
|
/**
|
|
1353
1446
|
* <p>Defines a section of content to be cached for reuse in subsequent API calls.</p>
|
|
1354
1447
|
* @public
|
|
@@ -1705,22 +1798,6 @@ export declare namespace DocumentContentBlock {
|
|
|
1705
1798
|
_: (name: string, value: any) => T;
|
|
1706
1799
|
}
|
|
1707
1800
|
}
|
|
1708
|
-
/**
|
|
1709
|
-
* <p>A storage location in an Amazon S3 bucket.</p>
|
|
1710
|
-
* @public
|
|
1711
|
-
*/
|
|
1712
|
-
export interface S3Location {
|
|
1713
|
-
/**
|
|
1714
|
-
* <p>An object URI starting with <code>s3://</code>.</p>
|
|
1715
|
-
* @public
|
|
1716
|
-
*/
|
|
1717
|
-
uri: string | undefined;
|
|
1718
|
-
/**
|
|
1719
|
-
* <p>If the bucket belongs to another AWS account, specify that account's ID.</p>
|
|
1720
|
-
* @public
|
|
1721
|
-
*/
|
|
1722
|
-
bucketOwner?: string | undefined;
|
|
1723
|
-
}
|
|
1724
1801
|
/**
|
|
1725
1802
|
* <p>Contains the content of a document.</p>
|
|
1726
1803
|
* @public
|
|
@@ -1997,6 +2074,11 @@ export interface ImageBlock {
|
|
|
1997
2074
|
* @public
|
|
1998
2075
|
*/
|
|
1999
2076
|
source: ImageSource | undefined;
|
|
2077
|
+
/**
|
|
2078
|
+
* <p>Error information if the image block could not be processed or contains invalid data.</p>
|
|
2079
|
+
* @public
|
|
2080
|
+
*/
|
|
2081
|
+
error?: ErrorBlock | undefined;
|
|
2000
2082
|
}
|
|
2001
2083
|
/**
|
|
2002
2084
|
* <p>Contains the reasoning that the model used to return the output.</p>
|
|
@@ -2326,7 +2408,7 @@ export interface ToolUseBlock {
|
|
|
2326
2408
|
* <p>A block of content for a message that you pass to, or receive from, a model with the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html">Converse</a> or <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html">ConverseStream</a> API operations.</p>
|
|
2327
2409
|
* @public
|
|
2328
2410
|
*/
|
|
2329
|
-
export type ContentBlock = ContentBlock.CachePointMember | ContentBlock.CitationsContentMember | ContentBlock.DocumentMember | ContentBlock.GuardContentMember | ContentBlock.ImageMember | ContentBlock.ReasoningContentMember | ContentBlock.SearchResultMember | ContentBlock.TextMember | ContentBlock.ToolResultMember | ContentBlock.ToolUseMember | ContentBlock.VideoMember | ContentBlock.$UnknownMember;
|
|
2411
|
+
export type ContentBlock = ContentBlock.AudioMember | ContentBlock.CachePointMember | ContentBlock.CitationsContentMember | ContentBlock.DocumentMember | ContentBlock.GuardContentMember | ContentBlock.ImageMember | ContentBlock.ReasoningContentMember | ContentBlock.SearchResultMember | ContentBlock.TextMember | ContentBlock.ToolResultMember | ContentBlock.ToolUseMember | ContentBlock.VideoMember | ContentBlock.$UnknownMember;
|
|
2330
2412
|
/**
|
|
2331
2413
|
* @public
|
|
2332
2414
|
*/
|
|
@@ -2340,6 +2422,7 @@ export declare namespace ContentBlock {
|
|
|
2340
2422
|
image?: never;
|
|
2341
2423
|
document?: never;
|
|
2342
2424
|
video?: never;
|
|
2425
|
+
audio?: never;
|
|
2343
2426
|
toolUse?: never;
|
|
2344
2427
|
toolResult?: never;
|
|
2345
2428
|
guardContent?: never;
|
|
@@ -2358,6 +2441,7 @@ export declare namespace ContentBlock {
|
|
|
2358
2441
|
image: ImageBlock;
|
|
2359
2442
|
document?: never;
|
|
2360
2443
|
video?: never;
|
|
2444
|
+
audio?: never;
|
|
2361
2445
|
toolUse?: never;
|
|
2362
2446
|
toolResult?: never;
|
|
2363
2447
|
guardContent?: never;
|
|
@@ -2376,6 +2460,7 @@ export declare namespace ContentBlock {
|
|
|
2376
2460
|
image?: never;
|
|
2377
2461
|
document: DocumentBlock;
|
|
2378
2462
|
video?: never;
|
|
2463
|
+
audio?: never;
|
|
2379
2464
|
toolUse?: never;
|
|
2380
2465
|
toolResult?: never;
|
|
2381
2466
|
guardContent?: never;
|
|
@@ -2394,6 +2479,26 @@ export declare namespace ContentBlock {
|
|
|
2394
2479
|
image?: never;
|
|
2395
2480
|
document?: never;
|
|
2396
2481
|
video: VideoBlock;
|
|
2482
|
+
audio?: never;
|
|
2483
|
+
toolUse?: never;
|
|
2484
|
+
toolResult?: never;
|
|
2485
|
+
guardContent?: never;
|
|
2486
|
+
cachePoint?: never;
|
|
2487
|
+
reasoningContent?: never;
|
|
2488
|
+
citationsContent?: never;
|
|
2489
|
+
searchResult?: never;
|
|
2490
|
+
$unknown?: never;
|
|
2491
|
+
}
|
|
2492
|
+
/**
|
|
2493
|
+
* <p>An audio content block containing audio data in the conversation.</p>
|
|
2494
|
+
* @public
|
|
2495
|
+
*/
|
|
2496
|
+
interface AudioMember {
|
|
2497
|
+
text?: never;
|
|
2498
|
+
image?: never;
|
|
2499
|
+
document?: never;
|
|
2500
|
+
video?: never;
|
|
2501
|
+
audio: AudioBlock;
|
|
2397
2502
|
toolUse?: never;
|
|
2398
2503
|
toolResult?: never;
|
|
2399
2504
|
guardContent?: never;
|
|
@@ -2412,6 +2517,7 @@ export declare namespace ContentBlock {
|
|
|
2412
2517
|
image?: never;
|
|
2413
2518
|
document?: never;
|
|
2414
2519
|
video?: never;
|
|
2520
|
+
audio?: never;
|
|
2415
2521
|
toolUse: ToolUseBlock;
|
|
2416
2522
|
toolResult?: never;
|
|
2417
2523
|
guardContent?: never;
|
|
@@ -2430,6 +2536,7 @@ export declare namespace ContentBlock {
|
|
|
2430
2536
|
image?: never;
|
|
2431
2537
|
document?: never;
|
|
2432
2538
|
video?: never;
|
|
2539
|
+
audio?: never;
|
|
2433
2540
|
toolUse?: never;
|
|
2434
2541
|
toolResult: ToolResultBlock;
|
|
2435
2542
|
guardContent?: never;
|
|
@@ -2448,6 +2555,7 @@ export declare namespace ContentBlock {
|
|
|
2448
2555
|
image?: never;
|
|
2449
2556
|
document?: never;
|
|
2450
2557
|
video?: never;
|
|
2558
|
+
audio?: never;
|
|
2451
2559
|
toolUse?: never;
|
|
2452
2560
|
toolResult?: never;
|
|
2453
2561
|
guardContent: GuardrailConverseContentBlock;
|
|
@@ -2466,6 +2574,7 @@ export declare namespace ContentBlock {
|
|
|
2466
2574
|
image?: never;
|
|
2467
2575
|
document?: never;
|
|
2468
2576
|
video?: never;
|
|
2577
|
+
audio?: never;
|
|
2469
2578
|
toolUse?: never;
|
|
2470
2579
|
toolResult?: never;
|
|
2471
2580
|
guardContent?: never;
|
|
@@ -2484,6 +2593,7 @@ export declare namespace ContentBlock {
|
|
|
2484
2593
|
image?: never;
|
|
2485
2594
|
document?: never;
|
|
2486
2595
|
video?: never;
|
|
2596
|
+
audio?: never;
|
|
2487
2597
|
toolUse?: never;
|
|
2488
2598
|
toolResult?: never;
|
|
2489
2599
|
guardContent?: never;
|
|
@@ -2502,6 +2612,7 @@ export declare namespace ContentBlock {
|
|
|
2502
2612
|
image?: never;
|
|
2503
2613
|
document?: never;
|
|
2504
2614
|
video?: never;
|
|
2615
|
+
audio?: never;
|
|
2505
2616
|
toolUse?: never;
|
|
2506
2617
|
toolResult?: never;
|
|
2507
2618
|
guardContent?: never;
|
|
@@ -2520,6 +2631,7 @@ export declare namespace ContentBlock {
|
|
|
2520
2631
|
image?: never;
|
|
2521
2632
|
document?: never;
|
|
2522
2633
|
video?: never;
|
|
2634
|
+
audio?: never;
|
|
2523
2635
|
toolUse?: never;
|
|
2524
2636
|
toolResult?: never;
|
|
2525
2637
|
guardContent?: never;
|
|
@@ -2537,6 +2649,7 @@ export declare namespace ContentBlock {
|
|
|
2537
2649
|
image?: never;
|
|
2538
2650
|
document?: never;
|
|
2539
2651
|
video?: never;
|
|
2652
|
+
audio?: never;
|
|
2540
2653
|
toolUse?: never;
|
|
2541
2654
|
toolResult?: never;
|
|
2542
2655
|
guardContent?: never;
|
|
@@ -2555,6 +2668,7 @@ export declare namespace ContentBlock {
|
|
|
2555
2668
|
image: (value: ImageBlock) => T;
|
|
2556
2669
|
document: (value: DocumentBlock) => T;
|
|
2557
2670
|
video: (value: VideoBlock) => T;
|
|
2671
|
+
audio: (value: AudioBlock) => T;
|
|
2558
2672
|
toolUse: (value: ToolUseBlock) => T;
|
|
2559
2673
|
toolResult: (value: ToolResultBlock) => T;
|
|
2560
2674
|
guardContent: (value: GuardrailConverseContentBlock) => T;
|
|
@@ -3283,6 +3397,22 @@ export interface CitationsDelta {
|
|
|
3283
3397
|
*/
|
|
3284
3398
|
location?: CitationLocation | undefined;
|
|
3285
3399
|
}
|
|
3400
|
+
/**
|
|
3401
|
+
* <p>A streaming delta event that contains incremental image data during streaming responses.</p>
|
|
3402
|
+
* @public
|
|
3403
|
+
*/
|
|
3404
|
+
export interface ImageBlockDelta {
|
|
3405
|
+
/**
|
|
3406
|
+
* <p>The incremental image source data for this delta event.</p>
|
|
3407
|
+
* @public
|
|
3408
|
+
*/
|
|
3409
|
+
source?: ImageSource | undefined;
|
|
3410
|
+
/**
|
|
3411
|
+
* <p>Error information if this image delta could not be processed.</p>
|
|
3412
|
+
* @public
|
|
3413
|
+
*/
|
|
3414
|
+
error?: ErrorBlock | undefined;
|
|
3415
|
+
}
|
|
3286
3416
|
/**
|
|
3287
3417
|
* <p>Contains content regarding the reasoning that is carried out by the model with respect to the content in the content block. Reasoning refers to a Chain of Thought (CoT) that the model generates to enhance the accuracy of its final response.</p>
|
|
3288
3418
|
* @public
|
|
@@ -3346,7 +3476,7 @@ export declare namespace ReasoningContentBlockDelta {
|
|
|
3346
3476
|
* <p>Contains incremental updates to tool results information during streaming responses. This allows clients to build up tool results data progressively as the response is generated.</p>
|
|
3347
3477
|
* @public
|
|
3348
3478
|
*/
|
|
3349
|
-
export type ToolResultBlockDelta = ToolResultBlockDelta.TextMember | ToolResultBlockDelta.$UnknownMember;
|
|
3479
|
+
export type ToolResultBlockDelta = ToolResultBlockDelta.JsonMember | ToolResultBlockDelta.TextMember | ToolResultBlockDelta.$UnknownMember;
|
|
3350
3480
|
/**
|
|
3351
3481
|
* @public
|
|
3352
3482
|
*/
|
|
@@ -3357,6 +3487,16 @@ export declare namespace ToolResultBlockDelta {
|
|
|
3357
3487
|
*/
|
|
3358
3488
|
interface TextMember {
|
|
3359
3489
|
text: string;
|
|
3490
|
+
json?: never;
|
|
3491
|
+
$unknown?: never;
|
|
3492
|
+
}
|
|
3493
|
+
/**
|
|
3494
|
+
* <p>The JSON schema for the tool result content block. see <a href="https://json-schema.org/understanding-json-schema/reference">JSON Schema Reference</a>.</p>
|
|
3495
|
+
* @public
|
|
3496
|
+
*/
|
|
3497
|
+
interface JsonMember {
|
|
3498
|
+
text?: never;
|
|
3499
|
+
json: __DocumentType;
|
|
3360
3500
|
$unknown?: never;
|
|
3361
3501
|
}
|
|
3362
3502
|
/**
|
|
@@ -3364,6 +3504,7 @@ export declare namespace ToolResultBlockDelta {
|
|
|
3364
3504
|
*/
|
|
3365
3505
|
interface $UnknownMember {
|
|
3366
3506
|
text?: never;
|
|
3507
|
+
json?: never;
|
|
3367
3508
|
$unknown: [string, any];
|
|
3368
3509
|
}
|
|
3369
3510
|
/**
|
|
@@ -3372,6 +3513,7 @@ export declare namespace ToolResultBlockDelta {
|
|
|
3372
3513
|
*/
|
|
3373
3514
|
interface Visitor<T> {
|
|
3374
3515
|
text: (value: string) => T;
|
|
3516
|
+
json: (value: __DocumentType) => T;
|
|
3375
3517
|
_: (name: string, value: any) => T;
|
|
3376
3518
|
}
|
|
3377
3519
|
}
|
|
@@ -3390,7 +3532,7 @@ export interface ToolUseBlockDelta {
|
|
|
3390
3532
|
* <p>A block of content in a streaming response.</p>
|
|
3391
3533
|
* @public
|
|
3392
3534
|
*/
|
|
3393
|
-
export type ContentBlockDelta = ContentBlockDelta.CitationMember | ContentBlockDelta.ReasoningContentMember | ContentBlockDelta.TextMember | ContentBlockDelta.ToolResultMember | ContentBlockDelta.ToolUseMember | ContentBlockDelta.$UnknownMember;
|
|
3535
|
+
export type ContentBlockDelta = ContentBlockDelta.CitationMember | ContentBlockDelta.ImageMember | ContentBlockDelta.ReasoningContentMember | ContentBlockDelta.TextMember | ContentBlockDelta.ToolResultMember | ContentBlockDelta.ToolUseMember | ContentBlockDelta.$UnknownMember;
|
|
3394
3536
|
/**
|
|
3395
3537
|
* @public
|
|
3396
3538
|
*/
|
|
@@ -3405,6 +3547,7 @@ export declare namespace ContentBlockDelta {
|
|
|
3405
3547
|
toolResult?: never;
|
|
3406
3548
|
reasoningContent?: never;
|
|
3407
3549
|
citation?: never;
|
|
3550
|
+
image?: never;
|
|
3408
3551
|
$unknown?: never;
|
|
3409
3552
|
}
|
|
3410
3553
|
/**
|
|
@@ -3417,6 +3560,7 @@ export declare namespace ContentBlockDelta {
|
|
|
3417
3560
|
toolResult?: never;
|
|
3418
3561
|
reasoningContent?: never;
|
|
3419
3562
|
citation?: never;
|
|
3563
|
+
image?: never;
|
|
3420
3564
|
$unknown?: never;
|
|
3421
3565
|
}
|
|
3422
3566
|
/**
|
|
@@ -3429,6 +3573,7 @@ export declare namespace ContentBlockDelta {
|
|
|
3429
3573
|
toolResult: ToolResultBlockDelta[];
|
|
3430
3574
|
reasoningContent?: never;
|
|
3431
3575
|
citation?: never;
|
|
3576
|
+
image?: never;
|
|
3432
3577
|
$unknown?: never;
|
|
3433
3578
|
}
|
|
3434
3579
|
/**
|
|
@@ -3441,6 +3586,7 @@ export declare namespace ContentBlockDelta {
|
|
|
3441
3586
|
toolResult?: never;
|
|
3442
3587
|
reasoningContent: ReasoningContentBlockDelta;
|
|
3443
3588
|
citation?: never;
|
|
3589
|
+
image?: never;
|
|
3444
3590
|
$unknown?: never;
|
|
3445
3591
|
}
|
|
3446
3592
|
/**
|
|
@@ -3453,6 +3599,20 @@ export declare namespace ContentBlockDelta {
|
|
|
3453
3599
|
toolResult?: never;
|
|
3454
3600
|
reasoningContent?: never;
|
|
3455
3601
|
citation: CitationsDelta;
|
|
3602
|
+
image?: never;
|
|
3603
|
+
$unknown?: never;
|
|
3604
|
+
}
|
|
3605
|
+
/**
|
|
3606
|
+
* <p>A streaming delta event containing incremental image data.</p>
|
|
3607
|
+
* @public
|
|
3608
|
+
*/
|
|
3609
|
+
interface ImageMember {
|
|
3610
|
+
text?: never;
|
|
3611
|
+
toolUse?: never;
|
|
3612
|
+
toolResult?: never;
|
|
3613
|
+
reasoningContent?: never;
|
|
3614
|
+
citation?: never;
|
|
3615
|
+
image: ImageBlockDelta;
|
|
3456
3616
|
$unknown?: never;
|
|
3457
3617
|
}
|
|
3458
3618
|
/**
|
|
@@ -3464,6 +3624,7 @@ export declare namespace ContentBlockDelta {
|
|
|
3464
3624
|
toolResult?: never;
|
|
3465
3625
|
reasoningContent?: never;
|
|
3466
3626
|
citation?: never;
|
|
3627
|
+
image?: never;
|
|
3467
3628
|
$unknown: [string, any];
|
|
3468
3629
|
}
|
|
3469
3630
|
/**
|
|
@@ -3476,6 +3637,7 @@ export declare namespace ContentBlockDelta {
|
|
|
3476
3637
|
toolResult: (value: ToolResultBlockDelta[]) => T;
|
|
3477
3638
|
reasoningContent: (value: ReasoningContentBlockDelta) => T;
|
|
3478
3639
|
citation: (value: CitationsDelta) => T;
|
|
3640
|
+
image: (value: ImageBlockDelta) => T;
|
|
3479
3641
|
_: (name: string, value: any) => T;
|
|
3480
3642
|
}
|
|
3481
3643
|
}
|
|
@@ -3495,6 +3657,17 @@ export interface ContentBlockDeltaEvent {
|
|
|
3495
3657
|
*/
|
|
3496
3658
|
contentBlockIndex: number | undefined;
|
|
3497
3659
|
}
|
|
3660
|
+
/**
|
|
3661
|
+
* <p>The initial event in a streaming image block that indicates the start of image content.</p>
|
|
3662
|
+
* @public
|
|
3663
|
+
*/
|
|
3664
|
+
export interface ImageBlockStart {
|
|
3665
|
+
/**
|
|
3666
|
+
* <p>The format of the image data that will be streamed in subsequent delta events.</p>
|
|
3667
|
+
* @public
|
|
3668
|
+
*/
|
|
3669
|
+
format: ImageFormat | undefined;
|
|
3670
|
+
}
|
|
3498
3671
|
/**
|
|
3499
3672
|
* <p>The start of a tool result block. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html">Call a tool with the Converse API</a> in the Amazon Bedrock User Guide.</p>
|
|
3500
3673
|
* @public
|
|
@@ -3541,7 +3714,7 @@ export interface ToolUseBlockStart {
|
|
|
3541
3714
|
* <p>Content block start information.</p>
|
|
3542
3715
|
* @public
|
|
3543
3716
|
*/
|
|
3544
|
-
export type ContentBlockStart = ContentBlockStart.ToolResultMember | ContentBlockStart.ToolUseMember | ContentBlockStart.$UnknownMember;
|
|
3717
|
+
export type ContentBlockStart = ContentBlockStart.ImageMember | ContentBlockStart.ToolResultMember | ContentBlockStart.ToolUseMember | ContentBlockStart.$UnknownMember;
|
|
3545
3718
|
/**
|
|
3546
3719
|
* @public
|
|
3547
3720
|
*/
|
|
@@ -3553,6 +3726,7 @@ export declare namespace ContentBlockStart {
|
|
|
3553
3726
|
interface ToolUseMember {
|
|
3554
3727
|
toolUse: ToolUseBlockStart;
|
|
3555
3728
|
toolResult?: never;
|
|
3729
|
+
image?: never;
|
|
3556
3730
|
$unknown?: never;
|
|
3557
3731
|
}
|
|
3558
3732
|
/**
|
|
@@ -3562,6 +3736,17 @@ export declare namespace ContentBlockStart {
|
|
|
3562
3736
|
interface ToolResultMember {
|
|
3563
3737
|
toolUse?: never;
|
|
3564
3738
|
toolResult: ToolResultBlockStart;
|
|
3739
|
+
image?: never;
|
|
3740
|
+
$unknown?: never;
|
|
3741
|
+
}
|
|
3742
|
+
/**
|
|
3743
|
+
* <p>The initial event indicating the start of a streaming image block.</p>
|
|
3744
|
+
* @public
|
|
3745
|
+
*/
|
|
3746
|
+
interface ImageMember {
|
|
3747
|
+
toolUse?: never;
|
|
3748
|
+
toolResult?: never;
|
|
3749
|
+
image: ImageBlockStart;
|
|
3565
3750
|
$unknown?: never;
|
|
3566
3751
|
}
|
|
3567
3752
|
/**
|
|
@@ -3570,6 +3755,7 @@ export declare namespace ContentBlockStart {
|
|
|
3570
3755
|
interface $UnknownMember {
|
|
3571
3756
|
toolUse?: never;
|
|
3572
3757
|
toolResult?: never;
|
|
3758
|
+
image?: never;
|
|
3573
3759
|
$unknown: [string, any];
|
|
3574
3760
|
}
|
|
3575
3761
|
/**
|
|
@@ -3579,6 +3765,7 @@ export declare namespace ContentBlockStart {
|
|
|
3579
3765
|
interface Visitor<T> {
|
|
3580
3766
|
toolUse: (value: ToolUseBlockStart) => T;
|
|
3581
3767
|
toolResult: (value: ToolResultBlockStart) => T;
|
|
3768
|
+
image: (value: ImageBlockStart) => T;
|
|
3582
3769
|
_: (name: string, value: any) => T;
|
|
3583
3770
|
}
|
|
3584
3771
|
}
|
|
@@ -12,6 +12,7 @@ export declare var ApplyGuardrailRequest: StaticStructureSchema;
|
|
|
12
12
|
export declare var ApplyGuardrailResponse: StaticStructureSchema;
|
|
13
13
|
export declare var AsyncInvokeS3OutputDataConfig: StaticStructureSchema;
|
|
14
14
|
export declare var AsyncInvokeSummary: StaticStructureSchema;
|
|
15
|
+
export declare var AudioBlock: StaticStructureSchema;
|
|
15
16
|
export declare var AutoToolChoice: StaticStructureSchema;
|
|
16
17
|
export declare var BidirectionalInputPayloadPart: StaticStructureSchema;
|
|
17
18
|
export declare var BidirectionalOutputPayloadPart: StaticStructureSchema;
|
|
@@ -41,6 +42,7 @@ export declare var DocumentBlock: StaticStructureSchema;
|
|
|
41
42
|
export declare var DocumentCharLocation: StaticStructureSchema;
|
|
42
43
|
export declare var DocumentChunkLocation: StaticStructureSchema;
|
|
43
44
|
export declare var DocumentPageLocation: StaticStructureSchema;
|
|
45
|
+
export declare var ErrorBlock: StaticStructureSchema;
|
|
44
46
|
export declare var GetAsyncInvokeRequest: StaticStructureSchema;
|
|
45
47
|
export declare var GetAsyncInvokeResponse: StaticStructureSchema;
|
|
46
48
|
export declare var GuardrailAssessment: StaticStructureSchema;
|
|
@@ -85,6 +87,8 @@ export declare var GuardrailTraceAssessment: StaticStructureSchema;
|
|
|
85
87
|
export declare var GuardrailUsage: StaticStructureSchema;
|
|
86
88
|
export declare var GuardrailWordPolicyAssessment: StaticStructureSchema;
|
|
87
89
|
export declare var ImageBlock: StaticStructureSchema;
|
|
90
|
+
export declare var ImageBlockDelta: StaticStructureSchema;
|
|
91
|
+
export declare var ImageBlockStart: StaticStructureSchema;
|
|
88
92
|
export declare var InferenceConfiguration: StaticStructureSchema;
|
|
89
93
|
export declare var InternalServerException: StaticErrorSchema;
|
|
90
94
|
export declare var InvokeModelRequest: StaticStructureSchema;
|
|
@@ -176,6 +180,7 @@ export declare var GuardrailAssessmentMap: StaticMapSchema;
|
|
|
176
180
|
export declare var PromptVariableMap: StaticMapSchema;
|
|
177
181
|
export declare var RequestMetadata: StaticMapSchema;
|
|
178
182
|
export declare var AsyncInvokeOutputDataConfig: StaticStructureSchema;
|
|
183
|
+
export declare var AudioSource: StaticStructureSchema;
|
|
179
184
|
export declare var CitationGeneratedContent: StaticStructureSchema;
|
|
180
185
|
export declare var CitationLocation: StaticStructureSchema;
|
|
181
186
|
export declare var CitationSourceContent: StaticStructureSchema;
|
|
@@ -180,6 +180,24 @@ export declare const GuardrailTrace: {
|
|
|
180
180
|
};
|
|
181
181
|
export type GuardrailTrace =
|
|
182
182
|
(typeof GuardrailTrace)[keyof typeof GuardrailTrace];
|
|
183
|
+
export declare const AudioFormat: {
|
|
184
|
+
readonly AAC: "aac";
|
|
185
|
+
readonly FLAC: "flac";
|
|
186
|
+
readonly M4A: "m4a";
|
|
187
|
+
readonly MKA: "mka";
|
|
188
|
+
readonly MKV: "mkv";
|
|
189
|
+
readonly MP3: "mp3";
|
|
190
|
+
readonly MP4: "mp4";
|
|
191
|
+
readonly MPEG: "mpeg";
|
|
192
|
+
readonly MPGA: "mpga";
|
|
193
|
+
readonly OGG: "ogg";
|
|
194
|
+
readonly OPUS: "opus";
|
|
195
|
+
readonly PCM: "pcm";
|
|
196
|
+
readonly WAV: "wav";
|
|
197
|
+
readonly WEBM: "webm";
|
|
198
|
+
readonly X_AAC: "x-aac";
|
|
199
|
+
};
|
|
200
|
+
export type AudioFormat = (typeof AudioFormat)[keyof typeof AudioFormat];
|
|
183
201
|
export declare const CachePointType: {
|
|
184
202
|
readonly DEFAULT: "default";
|
|
185
203
|
};
|
|
@@ -256,6 +274,7 @@ export declare const ServiceTierType: {
|
|
|
256
274
|
readonly DEFAULT: "default";
|
|
257
275
|
readonly FLEX: "flex";
|
|
258
276
|
readonly PRIORITY: "priority";
|
|
277
|
+
readonly RESERVED: "reserved";
|
|
259
278
|
};
|
|
260
279
|
export type ServiceTierType =
|
|
261
280
|
(typeof ServiceTierType)[keyof typeof ServiceTierType];
|
|
@@ -263,6 +282,8 @@ export declare const StopReason: {
|
|
|
263
282
|
readonly CONTENT_FILTERED: "content_filtered";
|
|
264
283
|
readonly END_TURN: "end_turn";
|
|
265
284
|
readonly GUARDRAIL_INTERVENED: "guardrail_intervened";
|
|
285
|
+
readonly MALFORMED_MODEL_OUTPUT: "malformed_model_output";
|
|
286
|
+
readonly MALFORMED_TOOL_USE: "malformed_tool_use";
|
|
266
287
|
readonly MAX_TOKENS: "max_tokens";
|
|
267
288
|
readonly MODEL_CONTEXT_WINDOW_EXCEEDED: "model_context_window_exceeded";
|
|
268
289
|
readonly STOP_SEQUENCE: "stop_sequence";
|