@aws-sdk/client-bedrock-runtime 3.929.0 → 3.931.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist-cjs/index.js +0 -380
- package/dist-es/models/models_0.js +0 -380
- package/dist-types/models/models_0.d.ts +124 -31
- package/dist-types/ts3.4/models/models_0.d.ts +0 -49
- package/package.json +41 -41
|
@@ -68,11 +68,14 @@ export declare namespace AsyncInvokeOutputDataConfig {
|
|
|
68
68
|
s3OutputDataConfig?: never;
|
|
69
69
|
$unknown: [string, any];
|
|
70
70
|
}
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated unused in schema-serde mode.
|
|
73
|
+
*
|
|
74
|
+
*/
|
|
71
75
|
interface Visitor<T> {
|
|
72
76
|
s3OutputDataConfig: (value: AsyncInvokeS3OutputDataConfig) => T;
|
|
73
77
|
_: (name: string, value: any) => T;
|
|
74
78
|
}
|
|
75
|
-
const visit: <T>(value: AsyncInvokeOutputDataConfig, visitor: Visitor<T>) => T;
|
|
76
79
|
}
|
|
77
80
|
/**
|
|
78
81
|
* @public
|
|
@@ -442,11 +445,14 @@ export declare namespace GuardrailImageSource {
|
|
|
442
445
|
bytes?: never;
|
|
443
446
|
$unknown: [string, any];
|
|
444
447
|
}
|
|
448
|
+
/**
|
|
449
|
+
* @deprecated unused in schema-serde mode.
|
|
450
|
+
*
|
|
451
|
+
*/
|
|
445
452
|
interface Visitor<T> {
|
|
446
453
|
bytes: (value: Uint8Array) => T;
|
|
447
454
|
_: (name: string, value: any) => T;
|
|
448
455
|
}
|
|
449
|
-
const visit: <T>(value: GuardrailImageSource, visitor: Visitor<T>) => T;
|
|
450
456
|
}
|
|
451
457
|
/**
|
|
452
458
|
* <p>Contain an image which user wants guarded. This block is accepted by the guardrails independent API.</p>
|
|
@@ -528,12 +534,15 @@ export declare namespace GuardrailContentBlock {
|
|
|
528
534
|
image?: never;
|
|
529
535
|
$unknown: [string, any];
|
|
530
536
|
}
|
|
537
|
+
/**
|
|
538
|
+
* @deprecated unused in schema-serde mode.
|
|
539
|
+
*
|
|
540
|
+
*/
|
|
531
541
|
interface Visitor<T> {
|
|
532
542
|
text: (value: GuardrailTextBlock) => T;
|
|
533
543
|
image: (value: GuardrailImageBlock) => T;
|
|
534
544
|
_: (name: string, value: any) => T;
|
|
535
545
|
}
|
|
536
|
-
const visit: <T>(value: GuardrailContentBlock, visitor: Visitor<T>) => T;
|
|
537
546
|
}
|
|
538
547
|
/**
|
|
539
548
|
* @public
|
|
@@ -972,6 +981,10 @@ export declare namespace GuardrailAutomatedReasoningFinding {
|
|
|
972
981
|
noTranslations?: never;
|
|
973
982
|
$unknown: [string, any];
|
|
974
983
|
}
|
|
984
|
+
/**
|
|
985
|
+
* @deprecated unused in schema-serde mode.
|
|
986
|
+
*
|
|
987
|
+
*/
|
|
975
988
|
interface Visitor<T> {
|
|
976
989
|
valid: (value: GuardrailAutomatedReasoningValidFinding) => T;
|
|
977
990
|
invalid: (value: GuardrailAutomatedReasoningInvalidFinding) => T;
|
|
@@ -982,7 +995,6 @@ export declare namespace GuardrailAutomatedReasoningFinding {
|
|
|
982
995
|
noTranslations: (value: GuardrailAutomatedReasoningNoTranslationsFinding) => T;
|
|
983
996
|
_: (name: string, value: any) => T;
|
|
984
997
|
}
|
|
985
|
-
const visit: <T>(value: GuardrailAutomatedReasoningFinding, visitor: Visitor<T>) => T;
|
|
986
998
|
}
|
|
987
999
|
/**
|
|
988
1000
|
* <p>Contains the results of automated reasoning policy evaluation, including logical findings about the validity of claims made in the input content.</p>
|
|
@@ -1863,6 +1875,10 @@ export declare namespace CitationLocation {
|
|
|
1863
1875
|
documentChunk?: never;
|
|
1864
1876
|
$unknown: [string, any];
|
|
1865
1877
|
}
|
|
1878
|
+
/**
|
|
1879
|
+
* @deprecated unused in schema-serde mode.
|
|
1880
|
+
*
|
|
1881
|
+
*/
|
|
1866
1882
|
interface Visitor<T> {
|
|
1867
1883
|
web: (value: WebLocation) => T;
|
|
1868
1884
|
documentChar: (value: DocumentCharLocation) => T;
|
|
@@ -1870,7 +1886,6 @@ export declare namespace CitationLocation {
|
|
|
1870
1886
|
documentChunk: (value: DocumentChunkLocation) => T;
|
|
1871
1887
|
_: (name: string, value: any) => T;
|
|
1872
1888
|
}
|
|
1873
|
-
const visit: <T>(value: CitationLocation, visitor: Visitor<T>) => T;
|
|
1874
1889
|
}
|
|
1875
1890
|
/**
|
|
1876
1891
|
* <p>Contains the actual text content from a source document that is being cited or referenced in the model's response.</p>
|
|
@@ -1896,11 +1911,14 @@ export declare namespace CitationSourceContent {
|
|
|
1896
1911
|
text?: never;
|
|
1897
1912
|
$unknown: [string, any];
|
|
1898
1913
|
}
|
|
1914
|
+
/**
|
|
1915
|
+
* @deprecated unused in schema-serde mode.
|
|
1916
|
+
*
|
|
1917
|
+
*/
|
|
1899
1918
|
interface Visitor<T> {
|
|
1900
1919
|
text: (value: string) => T;
|
|
1901
1920
|
_: (name: string, value: any) => T;
|
|
1902
1921
|
}
|
|
1903
|
-
const visit: <T>(value: CitationSourceContent, visitor: Visitor<T>) => T;
|
|
1904
1922
|
}
|
|
1905
1923
|
/**
|
|
1906
1924
|
* <p>Contains information about a citation that references a specific source document. Citations provide traceability between the model's generated response and the source documents that informed that response.</p>
|
|
@@ -1947,11 +1965,14 @@ export declare namespace CitationGeneratedContent {
|
|
|
1947
1965
|
text?: never;
|
|
1948
1966
|
$unknown: [string, any];
|
|
1949
1967
|
}
|
|
1968
|
+
/**
|
|
1969
|
+
* @deprecated unused in schema-serde mode.
|
|
1970
|
+
*
|
|
1971
|
+
*/
|
|
1950
1972
|
interface Visitor<T> {
|
|
1951
1973
|
text: (value: string) => T;
|
|
1952
1974
|
_: (name: string, value: any) => T;
|
|
1953
1975
|
}
|
|
1954
|
-
const visit: <T>(value: CitationGeneratedContent, visitor: Visitor<T>) => T;
|
|
1955
1976
|
}
|
|
1956
1977
|
/**
|
|
1957
1978
|
* <p>A content block that contains both generated text and associated citation information. This block type is returned when document citations are enabled, providing traceability between the generated content and the source documents that informed the response.</p>
|
|
@@ -2023,11 +2044,14 @@ export declare namespace DocumentContentBlock {
|
|
|
2023
2044
|
text?: never;
|
|
2024
2045
|
$unknown: [string, any];
|
|
2025
2046
|
}
|
|
2047
|
+
/**
|
|
2048
|
+
* @deprecated unused in schema-serde mode.
|
|
2049
|
+
*
|
|
2050
|
+
*/
|
|
2026
2051
|
interface Visitor<T> {
|
|
2027
2052
|
text: (value: string) => T;
|
|
2028
2053
|
_: (name: string, value: any) => T;
|
|
2029
2054
|
}
|
|
2030
|
-
const visit: <T>(value: DocumentContentBlock, visitor: Visitor<T>) => T;
|
|
2031
2055
|
}
|
|
2032
2056
|
/**
|
|
2033
2057
|
* <p>A storage location in an Amazon S3 bucket.</p>
|
|
@@ -2108,6 +2132,10 @@ export declare namespace DocumentSource {
|
|
|
2108
2132
|
content?: never;
|
|
2109
2133
|
$unknown: [string, any];
|
|
2110
2134
|
}
|
|
2135
|
+
/**
|
|
2136
|
+
* @deprecated unused in schema-serde mode.
|
|
2137
|
+
*
|
|
2138
|
+
*/
|
|
2111
2139
|
interface Visitor<T> {
|
|
2112
2140
|
bytes: (value: Uint8Array) => T;
|
|
2113
2141
|
s3Location: (value: S3Location) => T;
|
|
@@ -2115,7 +2143,6 @@ export declare namespace DocumentSource {
|
|
|
2115
2143
|
content: (value: DocumentContentBlock[]) => T;
|
|
2116
2144
|
_: (name: string, value: any) => T;
|
|
2117
2145
|
}
|
|
2118
|
-
const visit: <T>(value: DocumentSource, visitor: Visitor<T>) => T;
|
|
2119
2146
|
}
|
|
2120
2147
|
/**
|
|
2121
2148
|
* <p>A document to include in a message.</p>
|
|
@@ -2184,11 +2211,14 @@ export declare namespace GuardrailConverseImageSource {
|
|
|
2184
2211
|
bytes?: never;
|
|
2185
2212
|
$unknown: [string, any];
|
|
2186
2213
|
}
|
|
2214
|
+
/**
|
|
2215
|
+
* @deprecated unused in schema-serde mode.
|
|
2216
|
+
*
|
|
2217
|
+
*/
|
|
2187
2218
|
interface Visitor<T> {
|
|
2188
2219
|
bytes: (value: Uint8Array) => T;
|
|
2189
2220
|
_: (name: string, value: any) => T;
|
|
2190
2221
|
}
|
|
2191
|
-
const visit: <T>(value: GuardrailConverseImageSource, visitor: Visitor<T>) => T;
|
|
2192
2222
|
}
|
|
2193
2223
|
/**
|
|
2194
2224
|
* <p>An image block that contains images that you want to assess with a guardrail.</p>
|
|
@@ -2270,12 +2300,15 @@ export declare namespace GuardrailConverseContentBlock {
|
|
|
2270
2300
|
image?: never;
|
|
2271
2301
|
$unknown: [string, any];
|
|
2272
2302
|
}
|
|
2303
|
+
/**
|
|
2304
|
+
* @deprecated unused in schema-serde mode.
|
|
2305
|
+
*
|
|
2306
|
+
*/
|
|
2273
2307
|
interface Visitor<T> {
|
|
2274
2308
|
text: (value: GuardrailConverseTextBlock) => T;
|
|
2275
2309
|
image: (value: GuardrailConverseImageBlock) => T;
|
|
2276
2310
|
_: (name: string, value: any) => T;
|
|
2277
2311
|
}
|
|
2278
|
-
const visit: <T>(value: GuardrailConverseContentBlock, visitor: Visitor<T>) => T;
|
|
2279
2312
|
}
|
|
2280
2313
|
/**
|
|
2281
2314
|
* @public
|
|
@@ -2326,12 +2359,15 @@ export declare namespace ImageSource {
|
|
|
2326
2359
|
s3Location?: never;
|
|
2327
2360
|
$unknown: [string, any];
|
|
2328
2361
|
}
|
|
2362
|
+
/**
|
|
2363
|
+
* @deprecated unused in schema-serde mode.
|
|
2364
|
+
*
|
|
2365
|
+
*/
|
|
2329
2366
|
interface Visitor<T> {
|
|
2330
2367
|
bytes: (value: Uint8Array) => T;
|
|
2331
2368
|
s3Location: (value: S3Location) => T;
|
|
2332
2369
|
_: (name: string, value: any) => T;
|
|
2333
2370
|
}
|
|
2334
|
-
const visit: <T>(value: ImageSource, visitor: Visitor<T>) => T;
|
|
2335
2371
|
}
|
|
2336
2372
|
/**
|
|
2337
2373
|
* <p>Image content for a message.</p>
|
|
@@ -2400,12 +2436,15 @@ export declare namespace ReasoningContentBlock {
|
|
|
2400
2436
|
redactedContent?: never;
|
|
2401
2437
|
$unknown: [string, any];
|
|
2402
2438
|
}
|
|
2439
|
+
/**
|
|
2440
|
+
* @deprecated unused in schema-serde mode.
|
|
2441
|
+
*
|
|
2442
|
+
*/
|
|
2403
2443
|
interface Visitor<T> {
|
|
2404
2444
|
reasoningText: (value: ReasoningTextBlock) => T;
|
|
2405
2445
|
redactedContent: (value: Uint8Array) => T;
|
|
2406
2446
|
_: (name: string, value: any) => T;
|
|
2407
2447
|
}
|
|
2408
|
-
const visit: <T>(value: ReasoningContentBlock, visitor: Visitor<T>) => T;
|
|
2409
2448
|
}
|
|
2410
2449
|
/**
|
|
2411
2450
|
* @public
|
|
@@ -2461,12 +2500,15 @@ export declare namespace VideoSource {
|
|
|
2461
2500
|
s3Location?: never;
|
|
2462
2501
|
$unknown: [string, any];
|
|
2463
2502
|
}
|
|
2503
|
+
/**
|
|
2504
|
+
* @deprecated unused in schema-serde mode.
|
|
2505
|
+
*
|
|
2506
|
+
*/
|
|
2464
2507
|
interface Visitor<T> {
|
|
2465
2508
|
bytes: (value: Uint8Array) => T;
|
|
2466
2509
|
s3Location: (value: S3Location) => T;
|
|
2467
2510
|
_: (name: string, value: any) => T;
|
|
2468
2511
|
}
|
|
2469
|
-
const visit: <T>(value: VideoSource, visitor: Visitor<T>) => T;
|
|
2470
2512
|
}
|
|
2471
2513
|
/**
|
|
2472
2514
|
* <p>A video block.</p>
|
|
@@ -2564,6 +2606,10 @@ export declare namespace ToolResultContentBlock {
|
|
|
2564
2606
|
video?: never;
|
|
2565
2607
|
$unknown: [string, any];
|
|
2566
2608
|
}
|
|
2609
|
+
/**
|
|
2610
|
+
* @deprecated unused in schema-serde mode.
|
|
2611
|
+
*
|
|
2612
|
+
*/
|
|
2567
2613
|
interface Visitor<T> {
|
|
2568
2614
|
json: (value: __DocumentType) => T;
|
|
2569
2615
|
text: (value: string) => T;
|
|
@@ -2572,7 +2618,6 @@ export declare namespace ToolResultContentBlock {
|
|
|
2572
2618
|
video: (value: VideoBlock) => T;
|
|
2573
2619
|
_: (name: string, value: any) => T;
|
|
2574
2620
|
}
|
|
2575
|
-
const visit: <T>(value: ToolResultContentBlock, visitor: Visitor<T>) => T;
|
|
2576
2621
|
}
|
|
2577
2622
|
/**
|
|
2578
2623
|
* @public
|
|
@@ -2844,6 +2889,10 @@ export declare namespace ContentBlock {
|
|
|
2844
2889
|
citationsContent?: never;
|
|
2845
2890
|
$unknown: [string, any];
|
|
2846
2891
|
}
|
|
2892
|
+
/**
|
|
2893
|
+
* @deprecated unused in schema-serde mode.
|
|
2894
|
+
*
|
|
2895
|
+
*/
|
|
2847
2896
|
interface Visitor<T> {
|
|
2848
2897
|
text: (value: string) => T;
|
|
2849
2898
|
image: (value: ImageBlock) => T;
|
|
@@ -2857,7 +2906,6 @@ export declare namespace ContentBlock {
|
|
|
2857
2906
|
citationsContent: (value: CitationsContentBlock) => T;
|
|
2858
2907
|
_: (name: string, value: any) => T;
|
|
2859
2908
|
}
|
|
2860
|
-
const visit: <T>(value: ContentBlock, visitor: Visitor<T>) => T;
|
|
2861
2909
|
}
|
|
2862
2910
|
/**
|
|
2863
2911
|
* @public
|
|
@@ -2934,11 +2982,14 @@ export declare namespace PromptVariableValues {
|
|
|
2934
2982
|
text?: never;
|
|
2935
2983
|
$unknown: [string, any];
|
|
2936
2984
|
}
|
|
2985
|
+
/**
|
|
2986
|
+
* @deprecated unused in schema-serde mode.
|
|
2987
|
+
*
|
|
2988
|
+
*/
|
|
2937
2989
|
interface Visitor<T> {
|
|
2938
2990
|
text: (value: string) => T;
|
|
2939
2991
|
_: (name: string, value: any) => T;
|
|
2940
2992
|
}
|
|
2941
|
-
const visit: <T>(value: PromptVariableValues, visitor: Visitor<T>) => T;
|
|
2942
2993
|
}
|
|
2943
2994
|
/**
|
|
2944
2995
|
* <p>Contains configurations for instructions to provide the model for how to handle input. To learn more, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference-call.html">Using the Converse API</a>.</p>
|
|
@@ -2988,13 +3039,16 @@ export declare namespace SystemContentBlock {
|
|
|
2988
3039
|
cachePoint?: never;
|
|
2989
3040
|
$unknown: [string, any];
|
|
2990
3041
|
}
|
|
3042
|
+
/**
|
|
3043
|
+
* @deprecated unused in schema-serde mode.
|
|
3044
|
+
*
|
|
3045
|
+
*/
|
|
2991
3046
|
interface Visitor<T> {
|
|
2992
3047
|
text: (value: string) => T;
|
|
2993
3048
|
guardContent: (value: GuardrailConverseContentBlock) => T;
|
|
2994
3049
|
cachePoint: (value: CachePointBlock) => T;
|
|
2995
3050
|
_: (name: string, value: any) => T;
|
|
2996
3051
|
}
|
|
2997
|
-
const visit: <T>(value: SystemContentBlock, visitor: Visitor<T>) => T;
|
|
2998
3052
|
}
|
|
2999
3053
|
/**
|
|
3000
3054
|
* <p>The model must request at least one tool (no text is generated). For example, <code>\{"any" : \{\}\}</code>. 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>
|
|
@@ -3067,13 +3121,16 @@ export declare namespace ToolChoice {
|
|
|
3067
3121
|
tool?: never;
|
|
3068
3122
|
$unknown: [string, any];
|
|
3069
3123
|
}
|
|
3124
|
+
/**
|
|
3125
|
+
* @deprecated unused in schema-serde mode.
|
|
3126
|
+
*
|
|
3127
|
+
*/
|
|
3070
3128
|
interface Visitor<T> {
|
|
3071
3129
|
auto: (value: AutoToolChoice) => T;
|
|
3072
3130
|
any: (value: AnyToolChoice) => T;
|
|
3073
3131
|
tool: (value: SpecificToolChoice) => T;
|
|
3074
3132
|
_: (name: string, value: any) => T;
|
|
3075
3133
|
}
|
|
3076
|
-
const visit: <T>(value: ToolChoice, visitor: Visitor<T>) => T;
|
|
3077
3134
|
}
|
|
3078
3135
|
/**
|
|
3079
3136
|
* <p>Specifies a system-defined tool for the model to use. <i>System-defined tools</i> are tools that are created and provided by the model provider.</p>
|
|
@@ -3110,11 +3167,14 @@ export declare namespace ToolInputSchema {
|
|
|
3110
3167
|
json?: never;
|
|
3111
3168
|
$unknown: [string, any];
|
|
3112
3169
|
}
|
|
3170
|
+
/**
|
|
3171
|
+
* @deprecated unused in schema-serde mode.
|
|
3172
|
+
*
|
|
3173
|
+
*/
|
|
3113
3174
|
interface Visitor<T> {
|
|
3114
3175
|
json: (value: __DocumentType) => T;
|
|
3115
3176
|
_: (name: string, value: any) => T;
|
|
3116
3177
|
}
|
|
3117
|
-
const visit: <T>(value: ToolInputSchema, visitor: Visitor<T>) => T;
|
|
3118
3178
|
}
|
|
3119
3179
|
/**
|
|
3120
3180
|
* <p>The specification for the tool. 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>
|
|
@@ -3185,13 +3245,16 @@ export declare namespace Tool {
|
|
|
3185
3245
|
cachePoint?: never;
|
|
3186
3246
|
$unknown: [string, any];
|
|
3187
3247
|
}
|
|
3248
|
+
/**
|
|
3249
|
+
* @deprecated unused in schema-serde mode.
|
|
3250
|
+
*
|
|
3251
|
+
*/
|
|
3188
3252
|
interface Visitor<T> {
|
|
3189
3253
|
toolSpec: (value: ToolSpecification) => T;
|
|
3190
3254
|
systemTool: (value: SystemTool) => T;
|
|
3191
3255
|
cachePoint: (value: CachePointBlock) => T;
|
|
3192
3256
|
_: (name: string, value: any) => T;
|
|
3193
3257
|
}
|
|
3194
|
-
const visit: <T>(value: Tool, visitor: Visitor<T>) => T;
|
|
3195
3258
|
}
|
|
3196
3259
|
/**
|
|
3197
3260
|
* <p>Configuration information for the tools that you pass to a model. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/tool-use.html">Tool use (function calling)</a> in the Amazon Bedrock User Guide.</p>
|
|
@@ -3304,11 +3367,14 @@ export declare namespace ConverseOutput {
|
|
|
3304
3367
|
message?: never;
|
|
3305
3368
|
$unknown: [string, any];
|
|
3306
3369
|
}
|
|
3370
|
+
/**
|
|
3371
|
+
* @deprecated unused in schema-serde mode.
|
|
3372
|
+
*
|
|
3373
|
+
*/
|
|
3307
3374
|
interface Visitor<T> {
|
|
3308
3375
|
message: (value: Message) => T;
|
|
3309
3376
|
_: (name: string, value: any) => T;
|
|
3310
3377
|
}
|
|
3311
|
-
const visit: <T>(value: ConverseOutput, visitor: Visitor<T>) => T;
|
|
3312
3378
|
}
|
|
3313
3379
|
/**
|
|
3314
3380
|
* @public
|
|
@@ -3676,13 +3742,16 @@ export declare namespace ReasoningContentBlockDelta {
|
|
|
3676
3742
|
signature?: never;
|
|
3677
3743
|
$unknown: [string, any];
|
|
3678
3744
|
}
|
|
3745
|
+
/**
|
|
3746
|
+
* @deprecated unused in schema-serde mode.
|
|
3747
|
+
*
|
|
3748
|
+
*/
|
|
3679
3749
|
interface Visitor<T> {
|
|
3680
3750
|
text: (value: string) => T;
|
|
3681
3751
|
redactedContent: (value: Uint8Array) => T;
|
|
3682
3752
|
signature: (value: string) => T;
|
|
3683
3753
|
_: (name: string, value: any) => T;
|
|
3684
3754
|
}
|
|
3685
|
-
const visit: <T>(value: ReasoningContentBlockDelta, visitor: Visitor<T>) => T;
|
|
3686
3755
|
}
|
|
3687
3756
|
/**
|
|
3688
3757
|
* <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>
|
|
@@ -3708,11 +3777,14 @@ export declare namespace ToolResultBlockDelta {
|
|
|
3708
3777
|
text?: never;
|
|
3709
3778
|
$unknown: [string, any];
|
|
3710
3779
|
}
|
|
3780
|
+
/**
|
|
3781
|
+
* @deprecated unused in schema-serde mode.
|
|
3782
|
+
*
|
|
3783
|
+
*/
|
|
3711
3784
|
interface Visitor<T> {
|
|
3712
3785
|
text: (value: string) => T;
|
|
3713
3786
|
_: (name: string, value: any) => T;
|
|
3714
3787
|
}
|
|
3715
|
-
const visit: <T>(value: ToolResultBlockDelta, visitor: Visitor<T>) => T;
|
|
3716
3788
|
}
|
|
3717
3789
|
/**
|
|
3718
3790
|
* <p>The delta for a tool use block.</p>
|
|
@@ -3805,6 +3877,10 @@ export declare namespace ContentBlockDelta {
|
|
|
3805
3877
|
citation?: never;
|
|
3806
3878
|
$unknown: [string, any];
|
|
3807
3879
|
}
|
|
3880
|
+
/**
|
|
3881
|
+
* @deprecated unused in schema-serde mode.
|
|
3882
|
+
*
|
|
3883
|
+
*/
|
|
3808
3884
|
interface Visitor<T> {
|
|
3809
3885
|
text: (value: string) => T;
|
|
3810
3886
|
toolUse: (value: ToolUseBlockDelta) => T;
|
|
@@ -3813,7 +3889,6 @@ export declare namespace ContentBlockDelta {
|
|
|
3813
3889
|
citation: (value: CitationsDelta) => T;
|
|
3814
3890
|
_: (name: string, value: any) => T;
|
|
3815
3891
|
}
|
|
3816
|
-
const visit: <T>(value: ContentBlockDelta, visitor: Visitor<T>) => T;
|
|
3817
3892
|
}
|
|
3818
3893
|
/**
|
|
3819
3894
|
* <p>The content block delta event.</p>
|
|
@@ -3908,12 +3983,15 @@ export declare namespace ContentBlockStart {
|
|
|
3908
3983
|
toolResult?: never;
|
|
3909
3984
|
$unknown: [string, any];
|
|
3910
3985
|
}
|
|
3986
|
+
/**
|
|
3987
|
+
* @deprecated unused in schema-serde mode.
|
|
3988
|
+
*
|
|
3989
|
+
*/
|
|
3911
3990
|
interface Visitor<T> {
|
|
3912
3991
|
toolUse: (value: ToolUseBlockStart) => T;
|
|
3913
3992
|
toolResult: (value: ToolResultBlockStart) => T;
|
|
3914
3993
|
_: (name: string, value: any) => T;
|
|
3915
3994
|
}
|
|
3916
|
-
const visit: <T>(value: ContentBlockStart, visitor: Visitor<T>) => T;
|
|
3917
3995
|
}
|
|
3918
3996
|
/**
|
|
3919
3997
|
* <p>Content block start event.</p>
|
|
@@ -4268,6 +4346,10 @@ export declare namespace ConverseStreamOutput {
|
|
|
4268
4346
|
serviceUnavailableException?: never;
|
|
4269
4347
|
$unknown: [string, any];
|
|
4270
4348
|
}
|
|
4349
|
+
/**
|
|
4350
|
+
* @deprecated unused in schema-serde mode.
|
|
4351
|
+
*
|
|
4352
|
+
*/
|
|
4271
4353
|
interface Visitor<T> {
|
|
4272
4354
|
messageStart: (value: MessageStartEvent) => T;
|
|
4273
4355
|
contentBlockStart: (value: ContentBlockStartEvent) => T;
|
|
@@ -4282,7 +4364,6 @@ export declare namespace ConverseStreamOutput {
|
|
|
4282
4364
|
serviceUnavailableException: (value: ServiceUnavailableException) => T;
|
|
4283
4365
|
_: (name: string, value: any) => T;
|
|
4284
4366
|
}
|
|
4285
|
-
const visit: <T>(value: ConverseStreamOutput, visitor: Visitor<T>) => T;
|
|
4286
4367
|
}
|
|
4287
4368
|
/**
|
|
4288
4369
|
* @public
|
|
@@ -4407,11 +4488,14 @@ export declare namespace InvokeModelWithBidirectionalStreamInput {
|
|
|
4407
4488
|
chunk?: never;
|
|
4408
4489
|
$unknown: [string, any];
|
|
4409
4490
|
}
|
|
4491
|
+
/**
|
|
4492
|
+
* @deprecated unused in schema-serde mode.
|
|
4493
|
+
*
|
|
4494
|
+
*/
|
|
4410
4495
|
interface Visitor<T> {
|
|
4411
4496
|
chunk: (value: BidirectionalInputPayloadPart) => T;
|
|
4412
4497
|
_: (name: string, value: any) => T;
|
|
4413
4498
|
}
|
|
4414
|
-
const visit: <T>(value: InvokeModelWithBidirectionalStreamInput, visitor: Visitor<T>) => T;
|
|
4415
4499
|
}
|
|
4416
4500
|
/**
|
|
4417
4501
|
* @public
|
|
@@ -4559,6 +4643,10 @@ export declare namespace InvokeModelWithBidirectionalStreamOutput {
|
|
|
4559
4643
|
serviceUnavailableException?: never;
|
|
4560
4644
|
$unknown: [string, any];
|
|
4561
4645
|
}
|
|
4646
|
+
/**
|
|
4647
|
+
* @deprecated unused in schema-serde mode.
|
|
4648
|
+
*
|
|
4649
|
+
*/
|
|
4562
4650
|
interface Visitor<T> {
|
|
4563
4651
|
chunk: (value: BidirectionalOutputPayloadPart) => T;
|
|
4564
4652
|
internalServerException: (value: InternalServerException) => T;
|
|
@@ -4569,7 +4657,6 @@ export declare namespace InvokeModelWithBidirectionalStreamOutput {
|
|
|
4569
4657
|
serviceUnavailableException: (value: ServiceUnavailableException) => T;
|
|
4570
4658
|
_: (name: string, value: any) => T;
|
|
4571
4659
|
}
|
|
4572
|
-
const visit: <T>(value: InvokeModelWithBidirectionalStreamOutput, visitor: Visitor<T>) => T;
|
|
4573
4660
|
}
|
|
4574
4661
|
/**
|
|
4575
4662
|
* @public
|
|
@@ -4757,6 +4844,10 @@ export declare namespace ResponseStream {
|
|
|
4757
4844
|
serviceUnavailableException?: never;
|
|
4758
4845
|
$unknown: [string, any];
|
|
4759
4846
|
}
|
|
4847
|
+
/**
|
|
4848
|
+
* @deprecated unused in schema-serde mode.
|
|
4849
|
+
*
|
|
4850
|
+
*/
|
|
4760
4851
|
interface Visitor<T> {
|
|
4761
4852
|
chunk: (value: PayloadPart) => T;
|
|
4762
4853
|
internalServerException: (value: InternalServerException) => T;
|
|
@@ -4767,7 +4858,6 @@ export declare namespace ResponseStream {
|
|
|
4767
4858
|
serviceUnavailableException: (value: ServiceUnavailableException) => T;
|
|
4768
4859
|
_: (name: string, value: any) => T;
|
|
4769
4860
|
}
|
|
4770
|
-
const visit: <T>(value: ResponseStream, visitor: Visitor<T>) => T;
|
|
4771
4861
|
}
|
|
4772
4862
|
/**
|
|
4773
4863
|
* @public
|
|
@@ -4851,12 +4941,15 @@ export declare namespace CountTokensInput {
|
|
|
4851
4941
|
converse?: never;
|
|
4852
4942
|
$unknown: [string, any];
|
|
4853
4943
|
}
|
|
4944
|
+
/**
|
|
4945
|
+
* @deprecated unused in schema-serde mode.
|
|
4946
|
+
*
|
|
4947
|
+
*/
|
|
4854
4948
|
interface Visitor<T> {
|
|
4855
4949
|
invokeModel: (value: InvokeModelTokensRequest) => T;
|
|
4856
4950
|
converse: (value: ConverseTokensRequest) => T;
|
|
4857
4951
|
_: (name: string, value: any) => T;
|
|
4858
4952
|
}
|
|
4859
|
-
const visit: <T>(value: CountTokensInput, visitor: Visitor<T>) => T;
|
|
4860
4953
|
}
|
|
4861
4954
|
/**
|
|
4862
4955
|
* @public
|