@aws-sdk/client-bedrock-runtime 3.933.0 → 3.935.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 +290 -224
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +204 -0
- package/dist-es/models/errors.js +154 -0
- package/dist-es/models/models_0.js +1 -353
- package/dist-es/schemas/schemas_0.js +85 -26
- package/dist-types/commands/ConverseCommand.d.ts +66 -0
- package/dist-types/commands/ConverseStreamCommand.d.ts +42 -0
- package/dist-types/commands/CountTokensCommand.d.ts +55 -0
- package/dist-types/commands/InvokeModelCommand.d.ts +2 -0
- package/dist-types/commands/InvokeModelWithResponseStreamCommand.d.ts +2 -0
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +492 -0
- package/dist-types/models/errors.d.ts +167 -0
- package/dist-types/models/models_0.d.ts +190 -637
- package/dist-types/schemas/schemas_0.d.ts +5 -0
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +270 -0
- package/dist-types/ts3.4/models/errors.d.ts +89 -0
- package/dist-types/ts3.4/models/models_0.d.ts +134 -352
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +5 -0
- package/package.json +13 -13
- package/dist-es/models/index.js +0 -1
- package/dist-types/models/index.d.ts +0 -1
- package/dist-types/ts3.4/models/index.d.ts +0 -1
|
@@ -1,18 +1,6 @@
|
|
|
1
|
-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
1
|
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
* <p>The request is denied because you do not have sufficient permissions to perform the requested action. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-access-denied">AccessDeniedException</a> in the Amazon Bedrock User Guide</p>
|
|
6
|
-
* @public
|
|
7
|
-
*/
|
|
8
|
-
export declare class AccessDeniedException extends __BaseException {
|
|
9
|
-
readonly name: "AccessDeniedException";
|
|
10
|
-
readonly $fault: "client";
|
|
11
|
-
/**
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
15
|
-
}
|
|
2
|
+
import { AsyncInvokeStatus, CachePointType, ConversationRole, DocumentFormat, GuardrailAction, GuardrailAutomatedReasoningLogicWarningType, GuardrailContentFilterConfidence, GuardrailContentFilterStrength, GuardrailContentFilterType, GuardrailContentPolicyAction, GuardrailContentQualifier, GuardrailContentSource, GuardrailContextualGroundingFilterType, GuardrailContextualGroundingPolicyAction, GuardrailConverseContentQualifier, GuardrailConverseImageFormat, GuardrailImageFormat, GuardrailManagedWordType, GuardrailOutputScope, GuardrailPiiEntityType, GuardrailSensitiveInformationPolicyAction, GuardrailStreamProcessingMode, GuardrailTopicPolicyAction, GuardrailTopicType, GuardrailTrace, GuardrailWordPolicyAction, ImageFormat, PerformanceConfigLatency, ServiceTierType, SortAsyncInvocationBy, SortOrder, StopReason, ToolResultStatus, ToolUseType, Trace, VideoFormat } from "./enums";
|
|
3
|
+
import { InternalServerException, ModelStreamErrorException, ModelTimeoutException, ServiceUnavailableException, ThrottlingException, ValidationException } from "./errors";
|
|
16
4
|
/**
|
|
17
5
|
* @public
|
|
18
6
|
*/
|
|
@@ -77,19 +65,6 @@ export declare namespace AsyncInvokeOutputDataConfig {
|
|
|
77
65
|
_: (name: string, value: any) => T;
|
|
78
66
|
}
|
|
79
67
|
}
|
|
80
|
-
/**
|
|
81
|
-
* @public
|
|
82
|
-
* @enum
|
|
83
|
-
*/
|
|
84
|
-
export declare const AsyncInvokeStatus: {
|
|
85
|
-
readonly COMPLETED: "Completed";
|
|
86
|
-
readonly FAILED: "Failed";
|
|
87
|
-
readonly IN_PROGRESS: "InProgress";
|
|
88
|
-
};
|
|
89
|
-
/**
|
|
90
|
-
* @public
|
|
91
|
-
*/
|
|
92
|
-
export type AsyncInvokeStatus = (typeof AsyncInvokeStatus)[keyof typeof AsyncInvokeStatus];
|
|
93
68
|
/**
|
|
94
69
|
* @public
|
|
95
70
|
*/
|
|
@@ -140,65 +115,6 @@ export interface GetAsyncInvokeResponse {
|
|
|
140
115
|
*/
|
|
141
116
|
outputDataConfig: AsyncInvokeOutputDataConfig | undefined;
|
|
142
117
|
}
|
|
143
|
-
/**
|
|
144
|
-
* <p>An internal server error occurred. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-internal-failure">InternalFailure</a> in the Amazon Bedrock User Guide</p>
|
|
145
|
-
* @public
|
|
146
|
-
*/
|
|
147
|
-
export declare class InternalServerException extends __BaseException {
|
|
148
|
-
readonly name: "InternalServerException";
|
|
149
|
-
readonly $fault: "server";
|
|
150
|
-
/**
|
|
151
|
-
* @internal
|
|
152
|
-
*/
|
|
153
|
-
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* <p>Your request was denied due to exceeding the account quotas for <i>Amazon Bedrock</i>. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-throttling-exception">ThrottlingException</a> in the Amazon Bedrock User Guide</p>
|
|
157
|
-
* @public
|
|
158
|
-
*/
|
|
159
|
-
export declare class ThrottlingException extends __BaseException {
|
|
160
|
-
readonly name: "ThrottlingException";
|
|
161
|
-
readonly $fault: "client";
|
|
162
|
-
/**
|
|
163
|
-
* @internal
|
|
164
|
-
*/
|
|
165
|
-
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
166
|
-
}
|
|
167
|
-
/**
|
|
168
|
-
* <p>The input fails to satisfy the constraints specified by <i>Amazon Bedrock</i>. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-validation-error">ValidationError</a> in the Amazon Bedrock User Guide</p>
|
|
169
|
-
* @public
|
|
170
|
-
*/
|
|
171
|
-
export declare class ValidationException extends __BaseException {
|
|
172
|
-
readonly name: "ValidationException";
|
|
173
|
-
readonly $fault: "client";
|
|
174
|
-
/**
|
|
175
|
-
* @internal
|
|
176
|
-
*/
|
|
177
|
-
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
178
|
-
}
|
|
179
|
-
/**
|
|
180
|
-
* @public
|
|
181
|
-
* @enum
|
|
182
|
-
*/
|
|
183
|
-
export declare const SortAsyncInvocationBy: {
|
|
184
|
-
readonly SUBMISSION_TIME: "SubmissionTime";
|
|
185
|
-
};
|
|
186
|
-
/**
|
|
187
|
-
* @public
|
|
188
|
-
*/
|
|
189
|
-
export type SortAsyncInvocationBy = (typeof SortAsyncInvocationBy)[keyof typeof SortAsyncInvocationBy];
|
|
190
|
-
/**
|
|
191
|
-
* @public
|
|
192
|
-
* @enum
|
|
193
|
-
*/
|
|
194
|
-
export declare const SortOrder: {
|
|
195
|
-
readonly ASCENDING: "Ascending";
|
|
196
|
-
readonly DESCENDING: "Descending";
|
|
197
|
-
};
|
|
198
|
-
/**
|
|
199
|
-
* @public
|
|
200
|
-
*/
|
|
201
|
-
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
202
118
|
/**
|
|
203
119
|
* @public
|
|
204
120
|
*/
|
|
@@ -305,54 +221,6 @@ export interface ListAsyncInvokesResponse {
|
|
|
305
221
|
*/
|
|
306
222
|
asyncInvokeSummaries?: AsyncInvokeSummary[] | undefined;
|
|
307
223
|
}
|
|
308
|
-
/**
|
|
309
|
-
* <p>Error occurred because of a conflict while performing an operation.</p>
|
|
310
|
-
* @public
|
|
311
|
-
*/
|
|
312
|
-
export declare class ConflictException extends __BaseException {
|
|
313
|
-
readonly name: "ConflictException";
|
|
314
|
-
readonly $fault: "client";
|
|
315
|
-
/**
|
|
316
|
-
* @internal
|
|
317
|
-
*/
|
|
318
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
319
|
-
}
|
|
320
|
-
/**
|
|
321
|
-
* <p>The specified resource ARN was not found. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-resource-not-found">ResourceNotFound</a> in the Amazon Bedrock User Guide</p>
|
|
322
|
-
* @public
|
|
323
|
-
*/
|
|
324
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
325
|
-
readonly name: "ResourceNotFoundException";
|
|
326
|
-
readonly $fault: "client";
|
|
327
|
-
/**
|
|
328
|
-
* @internal
|
|
329
|
-
*/
|
|
330
|
-
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* <p>Your request exceeds the service quota for your account. You can view your quotas at <a href="https://docs.aws.amazon.com/servicequotas/latest/userguide/gs-request-quota.html">Viewing service quotas</a>. You can resubmit your request later.</p>
|
|
334
|
-
* @public
|
|
335
|
-
*/
|
|
336
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
337
|
-
readonly name: "ServiceQuotaExceededException";
|
|
338
|
-
readonly $fault: "client";
|
|
339
|
-
/**
|
|
340
|
-
* @internal
|
|
341
|
-
*/
|
|
342
|
-
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
343
|
-
}
|
|
344
|
-
/**
|
|
345
|
-
* <p>The service isn't currently available. For troubleshooting this error, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/troubleshooting-api-error-codes.html#ts-service-unavailable">ServiceUnavailable</a> in the Amazon Bedrock User Guide</p>
|
|
346
|
-
* @public
|
|
347
|
-
*/
|
|
348
|
-
export declare class ServiceUnavailableException extends __BaseException {
|
|
349
|
-
readonly name: "ServiceUnavailableException";
|
|
350
|
-
readonly $fault: "server";
|
|
351
|
-
/**
|
|
352
|
-
* @internal
|
|
353
|
-
*/
|
|
354
|
-
constructor(opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>);
|
|
355
|
-
}
|
|
356
224
|
/**
|
|
357
225
|
* <p>A tag.</p>
|
|
358
226
|
* @public
|
|
@@ -409,18 +277,6 @@ export interface StartAsyncInvokeResponse {
|
|
|
409
277
|
*/
|
|
410
278
|
invocationArn: string | undefined;
|
|
411
279
|
}
|
|
412
|
-
/**
|
|
413
|
-
* @public
|
|
414
|
-
* @enum
|
|
415
|
-
*/
|
|
416
|
-
export declare const GuardrailImageFormat: {
|
|
417
|
-
readonly JPEG: "jpeg";
|
|
418
|
-
readonly PNG: "png";
|
|
419
|
-
};
|
|
420
|
-
/**
|
|
421
|
-
* @public
|
|
422
|
-
*/
|
|
423
|
-
export type GuardrailImageFormat = (typeof GuardrailImageFormat)[keyof typeof GuardrailImageFormat];
|
|
424
280
|
/**
|
|
425
281
|
* <p>The image source (image bytes) of the guardrail image source. Object used in independent api.</p>
|
|
426
282
|
* @public
|
|
@@ -470,19 +326,6 @@ export interface GuardrailImageBlock {
|
|
|
470
326
|
*/
|
|
471
327
|
source: GuardrailImageSource | undefined;
|
|
472
328
|
}
|
|
473
|
-
/**
|
|
474
|
-
* @public
|
|
475
|
-
* @enum
|
|
476
|
-
*/
|
|
477
|
-
export declare const GuardrailContentQualifier: {
|
|
478
|
-
readonly GROUNDING_SOURCE: "grounding_source";
|
|
479
|
-
readonly GUARD_CONTENT: "guard_content";
|
|
480
|
-
readonly QUERY: "query";
|
|
481
|
-
};
|
|
482
|
-
/**
|
|
483
|
-
* @public
|
|
484
|
-
*/
|
|
485
|
-
export type GuardrailContentQualifier = (typeof GuardrailContentQualifier)[keyof typeof GuardrailContentQualifier];
|
|
486
329
|
/**
|
|
487
330
|
* <p>The text block to be evaluated by the guardrail.</p>
|
|
488
331
|
* @public
|
|
@@ -544,30 +387,6 @@ export declare namespace GuardrailContentBlock {
|
|
|
544
387
|
_: (name: string, value: any) => T;
|
|
545
388
|
}
|
|
546
389
|
}
|
|
547
|
-
/**
|
|
548
|
-
* @public
|
|
549
|
-
* @enum
|
|
550
|
-
*/
|
|
551
|
-
export declare const GuardrailOutputScope: {
|
|
552
|
-
readonly FULL: "FULL";
|
|
553
|
-
readonly INTERVENTIONS: "INTERVENTIONS";
|
|
554
|
-
};
|
|
555
|
-
/**
|
|
556
|
-
* @public
|
|
557
|
-
*/
|
|
558
|
-
export type GuardrailOutputScope = (typeof GuardrailOutputScope)[keyof typeof GuardrailOutputScope];
|
|
559
|
-
/**
|
|
560
|
-
* @public
|
|
561
|
-
* @enum
|
|
562
|
-
*/
|
|
563
|
-
export declare const GuardrailContentSource: {
|
|
564
|
-
readonly INPUT: "INPUT";
|
|
565
|
-
readonly OUTPUT: "OUTPUT";
|
|
566
|
-
};
|
|
567
|
-
/**
|
|
568
|
-
* @public
|
|
569
|
-
*/
|
|
570
|
-
export type GuardrailContentSource = (typeof GuardrailContentSource)[keyof typeof GuardrailContentSource];
|
|
571
390
|
/**
|
|
572
391
|
* @public
|
|
573
392
|
*/
|
|
@@ -598,18 +417,6 @@ export interface ApplyGuardrailRequest {
|
|
|
598
417
|
*/
|
|
599
418
|
outputScope?: GuardrailOutputScope | undefined;
|
|
600
419
|
}
|
|
601
|
-
/**
|
|
602
|
-
* @public
|
|
603
|
-
* @enum
|
|
604
|
-
*/
|
|
605
|
-
export declare const GuardrailAction: {
|
|
606
|
-
readonly GUARDRAIL_INTERVENED: "GUARDRAIL_INTERVENED";
|
|
607
|
-
readonly NONE: "NONE";
|
|
608
|
-
};
|
|
609
|
-
/**
|
|
610
|
-
* @public
|
|
611
|
-
*/
|
|
612
|
-
export type GuardrailAction = (typeof GuardrailAction)[keyof typeof GuardrailAction];
|
|
613
420
|
/**
|
|
614
421
|
* <p>References a specific automated reasoning policy rule that was applied during evaluation.</p>
|
|
615
422
|
* @public
|
|
@@ -642,18 +449,6 @@ export interface GuardrailAutomatedReasoningStatement {
|
|
|
642
449
|
*/
|
|
643
450
|
naturalLanguage?: string | undefined;
|
|
644
451
|
}
|
|
645
|
-
/**
|
|
646
|
-
* @public
|
|
647
|
-
* @enum
|
|
648
|
-
*/
|
|
649
|
-
export declare const GuardrailAutomatedReasoningLogicWarningType: {
|
|
650
|
-
readonly ALWAYS_FALSE: "ALWAYS_FALSE";
|
|
651
|
-
readonly ALWAYS_TRUE: "ALWAYS_TRUE";
|
|
652
|
-
};
|
|
653
|
-
/**
|
|
654
|
-
* @public
|
|
655
|
-
*/
|
|
656
|
-
export type GuardrailAutomatedReasoningLogicWarningType = (typeof GuardrailAutomatedReasoningLogicWarningType)[keyof typeof GuardrailAutomatedReasoningLogicWarningType];
|
|
657
452
|
/**
|
|
658
453
|
* <p>Identifies logical issues in the translated statements that exist independent of any policy rules, such as statements that are always true or always false.</p>
|
|
659
454
|
* @public
|
|
@@ -1007,62 +802,6 @@ export interface GuardrailAutomatedReasoningPolicyAssessment {
|
|
|
1007
802
|
*/
|
|
1008
803
|
findings?: GuardrailAutomatedReasoningFinding[] | undefined;
|
|
1009
804
|
}
|
|
1010
|
-
/**
|
|
1011
|
-
* @public
|
|
1012
|
-
* @enum
|
|
1013
|
-
*/
|
|
1014
|
-
export declare const GuardrailContentPolicyAction: {
|
|
1015
|
-
readonly BLOCKED: "BLOCKED";
|
|
1016
|
-
readonly NONE: "NONE";
|
|
1017
|
-
};
|
|
1018
|
-
/**
|
|
1019
|
-
* @public
|
|
1020
|
-
*/
|
|
1021
|
-
export type GuardrailContentPolicyAction = (typeof GuardrailContentPolicyAction)[keyof typeof GuardrailContentPolicyAction];
|
|
1022
|
-
/**
|
|
1023
|
-
* @public
|
|
1024
|
-
* @enum
|
|
1025
|
-
*/
|
|
1026
|
-
export declare const GuardrailContentFilterConfidence: {
|
|
1027
|
-
readonly HIGH: "HIGH";
|
|
1028
|
-
readonly LOW: "LOW";
|
|
1029
|
-
readonly MEDIUM: "MEDIUM";
|
|
1030
|
-
readonly NONE: "NONE";
|
|
1031
|
-
};
|
|
1032
|
-
/**
|
|
1033
|
-
* @public
|
|
1034
|
-
*/
|
|
1035
|
-
export type GuardrailContentFilterConfidence = (typeof GuardrailContentFilterConfidence)[keyof typeof GuardrailContentFilterConfidence];
|
|
1036
|
-
/**
|
|
1037
|
-
* @public
|
|
1038
|
-
* @enum
|
|
1039
|
-
*/
|
|
1040
|
-
export declare const GuardrailContentFilterStrength: {
|
|
1041
|
-
readonly HIGH: "HIGH";
|
|
1042
|
-
readonly LOW: "LOW";
|
|
1043
|
-
readonly MEDIUM: "MEDIUM";
|
|
1044
|
-
readonly NONE: "NONE";
|
|
1045
|
-
};
|
|
1046
|
-
/**
|
|
1047
|
-
* @public
|
|
1048
|
-
*/
|
|
1049
|
-
export type GuardrailContentFilterStrength = (typeof GuardrailContentFilterStrength)[keyof typeof GuardrailContentFilterStrength];
|
|
1050
|
-
/**
|
|
1051
|
-
* @public
|
|
1052
|
-
* @enum
|
|
1053
|
-
*/
|
|
1054
|
-
export declare const GuardrailContentFilterType: {
|
|
1055
|
-
readonly HATE: "HATE";
|
|
1056
|
-
readonly INSULTS: "INSULTS";
|
|
1057
|
-
readonly MISCONDUCT: "MISCONDUCT";
|
|
1058
|
-
readonly PROMPT_ATTACK: "PROMPT_ATTACK";
|
|
1059
|
-
readonly SEXUAL: "SEXUAL";
|
|
1060
|
-
readonly VIOLENCE: "VIOLENCE";
|
|
1061
|
-
};
|
|
1062
|
-
/**
|
|
1063
|
-
* @public
|
|
1064
|
-
*/
|
|
1065
|
-
export type GuardrailContentFilterType = (typeof GuardrailContentFilterType)[keyof typeof GuardrailContentFilterType];
|
|
1066
805
|
/**
|
|
1067
806
|
* <p>The content filter for a guardrail.</p>
|
|
1068
807
|
* @public
|
|
@@ -1105,30 +844,6 @@ export interface GuardrailContentPolicyAssessment {
|
|
|
1105
844
|
*/
|
|
1106
845
|
filters: GuardrailContentFilter[] | undefined;
|
|
1107
846
|
}
|
|
1108
|
-
/**
|
|
1109
|
-
* @public
|
|
1110
|
-
* @enum
|
|
1111
|
-
*/
|
|
1112
|
-
export declare const GuardrailContextualGroundingPolicyAction: {
|
|
1113
|
-
readonly BLOCKED: "BLOCKED";
|
|
1114
|
-
readonly NONE: "NONE";
|
|
1115
|
-
};
|
|
1116
|
-
/**
|
|
1117
|
-
* @public
|
|
1118
|
-
*/
|
|
1119
|
-
export type GuardrailContextualGroundingPolicyAction = (typeof GuardrailContextualGroundingPolicyAction)[keyof typeof GuardrailContextualGroundingPolicyAction];
|
|
1120
|
-
/**
|
|
1121
|
-
* @public
|
|
1122
|
-
* @enum
|
|
1123
|
-
*/
|
|
1124
|
-
export declare const GuardrailContextualGroundingFilterType: {
|
|
1125
|
-
readonly GROUNDING: "GROUNDING";
|
|
1126
|
-
readonly RELEVANCE: "RELEVANCE";
|
|
1127
|
-
};
|
|
1128
|
-
/**
|
|
1129
|
-
* @public
|
|
1130
|
-
*/
|
|
1131
|
-
export type GuardrailContextualGroundingFilterType = (typeof GuardrailContextualGroundingFilterType)[keyof typeof GuardrailContextualGroundingFilterType];
|
|
1132
847
|
/**
|
|
1133
848
|
* <p>The details for the guardrails contextual grounding filter.</p>
|
|
1134
849
|
* @public
|
|
@@ -1291,60 +1006,6 @@ export interface GuardrailInvocationMetrics {
|
|
|
1291
1006
|
*/
|
|
1292
1007
|
guardrailCoverage?: GuardrailCoverage | undefined;
|
|
1293
1008
|
}
|
|
1294
|
-
/**
|
|
1295
|
-
* @public
|
|
1296
|
-
* @enum
|
|
1297
|
-
*/
|
|
1298
|
-
export declare const GuardrailSensitiveInformationPolicyAction: {
|
|
1299
|
-
readonly ANONYMIZED: "ANONYMIZED";
|
|
1300
|
-
readonly BLOCKED: "BLOCKED";
|
|
1301
|
-
readonly NONE: "NONE";
|
|
1302
|
-
};
|
|
1303
|
-
/**
|
|
1304
|
-
* @public
|
|
1305
|
-
*/
|
|
1306
|
-
export type GuardrailSensitiveInformationPolicyAction = (typeof GuardrailSensitiveInformationPolicyAction)[keyof typeof GuardrailSensitiveInformationPolicyAction];
|
|
1307
|
-
/**
|
|
1308
|
-
* @public
|
|
1309
|
-
* @enum
|
|
1310
|
-
*/
|
|
1311
|
-
export declare const GuardrailPiiEntityType: {
|
|
1312
|
-
readonly ADDRESS: "ADDRESS";
|
|
1313
|
-
readonly AGE: "AGE";
|
|
1314
|
-
readonly AWS_ACCESS_KEY: "AWS_ACCESS_KEY";
|
|
1315
|
-
readonly AWS_SECRET_KEY: "AWS_SECRET_KEY";
|
|
1316
|
-
readonly CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER";
|
|
1317
|
-
readonly CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER";
|
|
1318
|
-
readonly CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV";
|
|
1319
|
-
readonly CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY";
|
|
1320
|
-
readonly CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER";
|
|
1321
|
-
readonly DRIVER_ID: "DRIVER_ID";
|
|
1322
|
-
readonly EMAIL: "EMAIL";
|
|
1323
|
-
readonly INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER";
|
|
1324
|
-
readonly IP_ADDRESS: "IP_ADDRESS";
|
|
1325
|
-
readonly LICENSE_PLATE: "LICENSE_PLATE";
|
|
1326
|
-
readonly MAC_ADDRESS: "MAC_ADDRESS";
|
|
1327
|
-
readonly NAME: "NAME";
|
|
1328
|
-
readonly PASSWORD: "PASSWORD";
|
|
1329
|
-
readonly PHONE: "PHONE";
|
|
1330
|
-
readonly PIN: "PIN";
|
|
1331
|
-
readonly SWIFT_CODE: "SWIFT_CODE";
|
|
1332
|
-
readonly UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER";
|
|
1333
|
-
readonly UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER";
|
|
1334
|
-
readonly UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER";
|
|
1335
|
-
readonly URL: "URL";
|
|
1336
|
-
readonly USERNAME: "USERNAME";
|
|
1337
|
-
readonly US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER";
|
|
1338
|
-
readonly US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER";
|
|
1339
|
-
readonly US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER";
|
|
1340
|
-
readonly US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER";
|
|
1341
|
-
readonly US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER";
|
|
1342
|
-
readonly VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER";
|
|
1343
|
-
};
|
|
1344
|
-
/**
|
|
1345
|
-
* @public
|
|
1346
|
-
*/
|
|
1347
|
-
export type GuardrailPiiEntityType = (typeof GuardrailPiiEntityType)[keyof typeof GuardrailPiiEntityType];
|
|
1348
1009
|
/**
|
|
1349
1010
|
* <p>A Personally Identifiable Information (PII) entity configured in a guardrail.</p>
|
|
1350
1011
|
* @public
|
|
@@ -1418,29 +1079,6 @@ export interface GuardrailSensitiveInformationPolicyAssessment {
|
|
|
1418
1079
|
*/
|
|
1419
1080
|
regexes: GuardrailRegexFilter[] | undefined;
|
|
1420
1081
|
}
|
|
1421
|
-
/**
|
|
1422
|
-
* @public
|
|
1423
|
-
* @enum
|
|
1424
|
-
*/
|
|
1425
|
-
export declare const GuardrailTopicPolicyAction: {
|
|
1426
|
-
readonly BLOCKED: "BLOCKED";
|
|
1427
|
-
readonly NONE: "NONE";
|
|
1428
|
-
};
|
|
1429
|
-
/**
|
|
1430
|
-
* @public
|
|
1431
|
-
*/
|
|
1432
|
-
export type GuardrailTopicPolicyAction = (typeof GuardrailTopicPolicyAction)[keyof typeof GuardrailTopicPolicyAction];
|
|
1433
|
-
/**
|
|
1434
|
-
* @public
|
|
1435
|
-
* @enum
|
|
1436
|
-
*/
|
|
1437
|
-
export declare const GuardrailTopicType: {
|
|
1438
|
-
readonly DENY: "DENY";
|
|
1439
|
-
};
|
|
1440
|
-
/**
|
|
1441
|
-
* @public
|
|
1442
|
-
*/
|
|
1443
|
-
export type GuardrailTopicType = (typeof GuardrailTopicType)[keyof typeof GuardrailTopicType];
|
|
1444
1082
|
/**
|
|
1445
1083
|
* <p>Information about a topic guardrail.</p>
|
|
1446
1084
|
* @public
|
|
@@ -1478,18 +1116,6 @@ export interface GuardrailTopicPolicyAssessment {
|
|
|
1478
1116
|
*/
|
|
1479
1117
|
topics: GuardrailTopic[] | undefined;
|
|
1480
1118
|
}
|
|
1481
|
-
/**
|
|
1482
|
-
* @public
|
|
1483
|
-
* @enum
|
|
1484
|
-
*/
|
|
1485
|
-
export declare const GuardrailWordPolicyAction: {
|
|
1486
|
-
readonly BLOCKED: "BLOCKED";
|
|
1487
|
-
readonly NONE: "NONE";
|
|
1488
|
-
};
|
|
1489
|
-
/**
|
|
1490
|
-
* @public
|
|
1491
|
-
*/
|
|
1492
|
-
export type GuardrailWordPolicyAction = (typeof GuardrailWordPolicyAction)[keyof typeof GuardrailWordPolicyAction];
|
|
1493
1119
|
/**
|
|
1494
1120
|
* <p>A custom word configured in a guardrail.</p>
|
|
1495
1121
|
* @public
|
|
@@ -1511,17 +1137,6 @@ export interface GuardrailCustomWord {
|
|
|
1511
1137
|
*/
|
|
1512
1138
|
detected?: boolean | undefined;
|
|
1513
1139
|
}
|
|
1514
|
-
/**
|
|
1515
|
-
* @public
|
|
1516
|
-
* @enum
|
|
1517
|
-
*/
|
|
1518
|
-
export declare const GuardrailManagedWordType: {
|
|
1519
|
-
readonly PROFANITY: "PROFANITY";
|
|
1520
|
-
};
|
|
1521
|
-
/**
|
|
1522
|
-
* @public
|
|
1523
|
-
*/
|
|
1524
|
-
export type GuardrailManagedWordType = (typeof GuardrailManagedWordType)[keyof typeof GuardrailManagedWordType];
|
|
1525
1140
|
/**
|
|
1526
1141
|
* <p>A managed word configured in a guardrail.</p>
|
|
1527
1142
|
* @public
|
|
@@ -1651,19 +1266,6 @@ export interface ApplyGuardrailResponse {
|
|
|
1651
1266
|
*/
|
|
1652
1267
|
guardrailCoverage?: GuardrailCoverage | undefined;
|
|
1653
1268
|
}
|
|
1654
|
-
/**
|
|
1655
|
-
* @public
|
|
1656
|
-
* @enum
|
|
1657
|
-
*/
|
|
1658
|
-
export declare const GuardrailTrace: {
|
|
1659
|
-
readonly DISABLED: "disabled";
|
|
1660
|
-
readonly ENABLED: "enabled";
|
|
1661
|
-
readonly ENABLED_FULL: "enabled_full";
|
|
1662
|
-
};
|
|
1663
|
-
/**
|
|
1664
|
-
* @public
|
|
1665
|
-
*/
|
|
1666
|
-
export type GuardrailTrace = (typeof GuardrailTrace)[keyof typeof GuardrailTrace];
|
|
1667
1269
|
/**
|
|
1668
1270
|
* <p>Configuration information for a guardrail that you use with the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html">Converse</a> operation.</p>
|
|
1669
1271
|
* @public
|
|
@@ -1711,17 +1313,6 @@ export interface InferenceConfiguration {
|
|
|
1711
1313
|
*/
|
|
1712
1314
|
stopSequences?: string[] | undefined;
|
|
1713
1315
|
}
|
|
1714
|
-
/**
|
|
1715
|
-
* @public
|
|
1716
|
-
* @enum
|
|
1717
|
-
*/
|
|
1718
|
-
export declare const CachePointType: {
|
|
1719
|
-
readonly DEFAULT: "default";
|
|
1720
|
-
};
|
|
1721
|
-
/**
|
|
1722
|
-
* @public
|
|
1723
|
-
*/
|
|
1724
|
-
export type CachePointType = (typeof CachePointType)[keyof typeof CachePointType];
|
|
1725
1316
|
/**
|
|
1726
1317
|
* <p>Defines a section of content to be cached for reuse in subsequent API calls.</p>
|
|
1727
1318
|
* @public
|
|
@@ -1796,6 +1387,27 @@ export interface DocumentPageLocation {
|
|
|
1796
1387
|
*/
|
|
1797
1388
|
end?: number | undefined;
|
|
1798
1389
|
}
|
|
1390
|
+
/**
|
|
1391
|
+
* <p>Specifies a search result location within the content array, providing positioning information for cited content using search result index and block positions.</p>
|
|
1392
|
+
* @public
|
|
1393
|
+
*/
|
|
1394
|
+
export interface SearchResultLocation {
|
|
1395
|
+
/**
|
|
1396
|
+
* <p>The index of the search result content block where the cited content is found.</p>
|
|
1397
|
+
* @public
|
|
1398
|
+
*/
|
|
1399
|
+
searchResultIndex?: number | undefined;
|
|
1400
|
+
/**
|
|
1401
|
+
* <p>The starting position in the content array where the cited content begins.</p>
|
|
1402
|
+
* @public
|
|
1403
|
+
*/
|
|
1404
|
+
start?: number | undefined;
|
|
1405
|
+
/**
|
|
1406
|
+
* <p>The ending position in the content array where the cited content ends.</p>
|
|
1407
|
+
* @public
|
|
1408
|
+
*/
|
|
1409
|
+
end?: number | undefined;
|
|
1410
|
+
}
|
|
1799
1411
|
/**
|
|
1800
1412
|
* <p>Provides the URL and domain information for the website that was cited when performing a web search.</p>
|
|
1801
1413
|
* @public
|
|
@@ -1816,7 +1428,7 @@ export interface WebLocation {
|
|
|
1816
1428
|
* <p>Specifies the precise location within a source document where cited content can be found. This can include character-level positions, page numbers, or document chunks depending on the document type and indexing method.</p>
|
|
1817
1429
|
* @public
|
|
1818
1430
|
*/
|
|
1819
|
-
export type CitationLocation = CitationLocation.DocumentCharMember | CitationLocation.DocumentChunkMember | CitationLocation.DocumentPageMember | CitationLocation.WebMember | CitationLocation.$UnknownMember;
|
|
1431
|
+
export type CitationLocation = CitationLocation.DocumentCharMember | CitationLocation.DocumentChunkMember | CitationLocation.DocumentPageMember | CitationLocation.SearchResultLocationMember | CitationLocation.WebMember | CitationLocation.$UnknownMember;
|
|
1820
1432
|
/**
|
|
1821
1433
|
* @public
|
|
1822
1434
|
*/
|
|
@@ -1830,6 +1442,7 @@ export declare namespace CitationLocation {
|
|
|
1830
1442
|
documentChar?: never;
|
|
1831
1443
|
documentPage?: never;
|
|
1832
1444
|
documentChunk?: never;
|
|
1445
|
+
searchResultLocation?: never;
|
|
1833
1446
|
$unknown?: never;
|
|
1834
1447
|
}
|
|
1835
1448
|
/**
|
|
@@ -1841,6 +1454,7 @@ export declare namespace CitationLocation {
|
|
|
1841
1454
|
documentChar: DocumentCharLocation;
|
|
1842
1455
|
documentPage?: never;
|
|
1843
1456
|
documentChunk?: never;
|
|
1457
|
+
searchResultLocation?: never;
|
|
1844
1458
|
$unknown?: never;
|
|
1845
1459
|
}
|
|
1846
1460
|
/**
|
|
@@ -1852,6 +1466,7 @@ export declare namespace CitationLocation {
|
|
|
1852
1466
|
documentChar?: never;
|
|
1853
1467
|
documentPage: DocumentPageLocation;
|
|
1854
1468
|
documentChunk?: never;
|
|
1469
|
+
searchResultLocation?: never;
|
|
1855
1470
|
$unknown?: never;
|
|
1856
1471
|
}
|
|
1857
1472
|
/**
|
|
@@ -1863,6 +1478,19 @@ export declare namespace CitationLocation {
|
|
|
1863
1478
|
documentChar?: never;
|
|
1864
1479
|
documentPage?: never;
|
|
1865
1480
|
documentChunk: DocumentChunkLocation;
|
|
1481
|
+
searchResultLocation?: never;
|
|
1482
|
+
$unknown?: never;
|
|
1483
|
+
}
|
|
1484
|
+
/**
|
|
1485
|
+
* <p>The search result location where the cited content is found, including the search result index and block positions within the content array.</p>
|
|
1486
|
+
* @public
|
|
1487
|
+
*/
|
|
1488
|
+
interface SearchResultLocationMember {
|
|
1489
|
+
web?: never;
|
|
1490
|
+
documentChar?: never;
|
|
1491
|
+
documentPage?: never;
|
|
1492
|
+
documentChunk?: never;
|
|
1493
|
+
searchResultLocation: SearchResultLocation;
|
|
1866
1494
|
$unknown?: never;
|
|
1867
1495
|
}
|
|
1868
1496
|
/**
|
|
@@ -1873,6 +1501,7 @@ export declare namespace CitationLocation {
|
|
|
1873
1501
|
documentChar?: never;
|
|
1874
1502
|
documentPage?: never;
|
|
1875
1503
|
documentChunk?: never;
|
|
1504
|
+
searchResultLocation?: never;
|
|
1876
1505
|
$unknown: [string, any];
|
|
1877
1506
|
}
|
|
1878
1507
|
/**
|
|
@@ -1884,6 +1513,7 @@ export declare namespace CitationLocation {
|
|
|
1884
1513
|
documentChar: (value: DocumentCharLocation) => T;
|
|
1885
1514
|
documentPage: (value: DocumentPageLocation) => T;
|
|
1886
1515
|
documentChunk: (value: DocumentChunkLocation) => T;
|
|
1516
|
+
searchResultLocation: (value: SearchResultLocation) => T;
|
|
1887
1517
|
_: (name: string, value: any) => T;
|
|
1888
1518
|
}
|
|
1889
1519
|
}
|
|
@@ -1930,6 +1560,11 @@ export interface Citation {
|
|
|
1930
1560
|
* @public
|
|
1931
1561
|
*/
|
|
1932
1562
|
title?: string | undefined;
|
|
1563
|
+
/**
|
|
1564
|
+
* <p>The source from the original search result that provided the cited content.</p>
|
|
1565
|
+
* @public
|
|
1566
|
+
*/
|
|
1567
|
+
source?: string | undefined;
|
|
1933
1568
|
/**
|
|
1934
1569
|
* <p>The specific content from the source document that was referenced or cited in the generated response.</p>
|
|
1935
1570
|
* @public
|
|
@@ -2001,25 +1636,6 @@ export interface CitationsConfig {
|
|
|
2001
1636
|
*/
|
|
2002
1637
|
enabled: boolean | undefined;
|
|
2003
1638
|
}
|
|
2004
|
-
/**
|
|
2005
|
-
* @public
|
|
2006
|
-
* @enum
|
|
2007
|
-
*/
|
|
2008
|
-
export declare const DocumentFormat: {
|
|
2009
|
-
readonly CSV: "csv";
|
|
2010
|
-
readonly DOC: "doc";
|
|
2011
|
-
readonly DOCX: "docx";
|
|
2012
|
-
readonly HTML: "html";
|
|
2013
|
-
readonly MD: "md";
|
|
2014
|
-
readonly PDF: "pdf";
|
|
2015
|
-
readonly TXT: "txt";
|
|
2016
|
-
readonly XLS: "xls";
|
|
2017
|
-
readonly XLSX: "xlsx";
|
|
2018
|
-
};
|
|
2019
|
-
/**
|
|
2020
|
-
* @public
|
|
2021
|
-
*/
|
|
2022
|
-
export type DocumentFormat = (typeof DocumentFormat)[keyof typeof DocumentFormat];
|
|
2023
1639
|
/**
|
|
2024
1640
|
* <p>Contains the actual content of a document that can be processed by the model and potentially cited in the response.</p>
|
|
2025
1641
|
* @public
|
|
@@ -2175,18 +1791,6 @@ export interface DocumentBlock {
|
|
|
2175
1791
|
*/
|
|
2176
1792
|
citations?: CitationsConfig | undefined;
|
|
2177
1793
|
}
|
|
2178
|
-
/**
|
|
2179
|
-
* @public
|
|
2180
|
-
* @enum
|
|
2181
|
-
*/
|
|
2182
|
-
export declare const GuardrailConverseImageFormat: {
|
|
2183
|
-
readonly JPEG: "jpeg";
|
|
2184
|
-
readonly PNG: "png";
|
|
2185
|
-
};
|
|
2186
|
-
/**
|
|
2187
|
-
* @public
|
|
2188
|
-
*/
|
|
2189
|
-
export type GuardrailConverseImageFormat = (typeof GuardrailConverseImageFormat)[keyof typeof GuardrailConverseImageFormat];
|
|
2190
1794
|
/**
|
|
2191
1795
|
* <p>The image source (image bytes) of the guardrail converse image source.</p>
|
|
2192
1796
|
* @public
|
|
@@ -2236,19 +1840,6 @@ export interface GuardrailConverseImageBlock {
|
|
|
2236
1840
|
*/
|
|
2237
1841
|
source: GuardrailConverseImageSource | undefined;
|
|
2238
1842
|
}
|
|
2239
|
-
/**
|
|
2240
|
-
* @public
|
|
2241
|
-
* @enum
|
|
2242
|
-
*/
|
|
2243
|
-
export declare const GuardrailConverseContentQualifier: {
|
|
2244
|
-
readonly GROUNDING_SOURCE: "grounding_source";
|
|
2245
|
-
readonly GUARD_CONTENT: "guard_content";
|
|
2246
|
-
readonly QUERY: "query";
|
|
2247
|
-
};
|
|
2248
|
-
/**
|
|
2249
|
-
* @public
|
|
2250
|
-
*/
|
|
2251
|
-
export type GuardrailConverseContentQualifier = (typeof GuardrailConverseContentQualifier)[keyof typeof GuardrailConverseContentQualifier];
|
|
2252
1843
|
/**
|
|
2253
1844
|
* <p>A text block that contains text that you want to assess with a guardrail. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_GuardrailConverseContentBlock.html">GuardrailConverseContentBlock</a>.</p>
|
|
2254
1845
|
* @public
|
|
@@ -2310,20 +1901,6 @@ export declare namespace GuardrailConverseContentBlock {
|
|
|
2310
1901
|
_: (name: string, value: any) => T;
|
|
2311
1902
|
}
|
|
2312
1903
|
}
|
|
2313
|
-
/**
|
|
2314
|
-
* @public
|
|
2315
|
-
* @enum
|
|
2316
|
-
*/
|
|
2317
|
-
export declare const ImageFormat: {
|
|
2318
|
-
readonly GIF: "gif";
|
|
2319
|
-
readonly JPEG: "jpeg";
|
|
2320
|
-
readonly PNG: "png";
|
|
2321
|
-
readonly WEBP: "webp";
|
|
2322
|
-
};
|
|
2323
|
-
/**
|
|
2324
|
-
* @public
|
|
2325
|
-
*/
|
|
2326
|
-
export type ImageFormat = (typeof ImageFormat)[keyof typeof ImageFormat];
|
|
2327
1904
|
/**
|
|
2328
1905
|
* <p>The source for an image.</p>
|
|
2329
1906
|
* @public
|
|
@@ -2447,24 +2024,42 @@ export declare namespace ReasoningContentBlock {
|
|
|
2447
2024
|
}
|
|
2448
2025
|
}
|
|
2449
2026
|
/**
|
|
2027
|
+
* <p>A block within a search result that contains the content.</p>
|
|
2450
2028
|
* @public
|
|
2451
|
-
* @enum
|
|
2452
2029
|
*/
|
|
2453
|
-
export
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
readonly THREE_GP: "three_gp";
|
|
2461
|
-
readonly WEBM: "webm";
|
|
2462
|
-
readonly WMV: "wmv";
|
|
2463
|
-
};
|
|
2030
|
+
export interface SearchResultContentBlock {
|
|
2031
|
+
/**
|
|
2032
|
+
* <p>The actual text content</p>
|
|
2033
|
+
* @public
|
|
2034
|
+
*/
|
|
2035
|
+
text: string | undefined;
|
|
2036
|
+
}
|
|
2464
2037
|
/**
|
|
2038
|
+
* <p>A search result block that enables natural citations with proper source attribution for retrieved content.</p> <note> <p>This field is only supported by Anthropic Claude Opus 4.1, Opus 4, Sonnet 4.5, Sonnet 4, Sonnet 3.7, and 3.5 Haiku models.</p> </note>
|
|
2465
2039
|
* @public
|
|
2466
2040
|
*/
|
|
2467
|
-
export
|
|
2041
|
+
export interface SearchResultBlock {
|
|
2042
|
+
/**
|
|
2043
|
+
* <p>The source URL or identifier for the content.</p>
|
|
2044
|
+
* @public
|
|
2045
|
+
*/
|
|
2046
|
+
source: string | undefined;
|
|
2047
|
+
/**
|
|
2048
|
+
* <p>A descriptive title for the search result.</p>
|
|
2049
|
+
* @public
|
|
2050
|
+
*/
|
|
2051
|
+
title: string | undefined;
|
|
2052
|
+
/**
|
|
2053
|
+
* <p>An array of search result content block.</p>
|
|
2054
|
+
* @public
|
|
2055
|
+
*/
|
|
2056
|
+
content: SearchResultContentBlock[] | undefined;
|
|
2057
|
+
/**
|
|
2058
|
+
* <p>Configuration setting for citations</p>
|
|
2059
|
+
* @public
|
|
2060
|
+
*/
|
|
2061
|
+
citations?: CitationsConfig | undefined;
|
|
2062
|
+
}
|
|
2468
2063
|
/**
|
|
2469
2064
|
* <p>A video source. You can upload a smaller video as a base64-encoded string as long as the encoded file is less than 25MB. You can also transfer videos up to 1GB in size from an S3 bucket.</p>
|
|
2470
2065
|
* @public
|
|
@@ -2530,7 +2125,7 @@ export interface VideoBlock {
|
|
|
2530
2125
|
* <p>The tool result content 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>
|
|
2531
2126
|
* @public
|
|
2532
2127
|
*/
|
|
2533
|
-
export type ToolResultContentBlock = ToolResultContentBlock.DocumentMember | ToolResultContentBlock.ImageMember | ToolResultContentBlock.JsonMember | ToolResultContentBlock.TextMember | ToolResultContentBlock.VideoMember | ToolResultContentBlock.$UnknownMember;
|
|
2128
|
+
export type ToolResultContentBlock = ToolResultContentBlock.DocumentMember | ToolResultContentBlock.ImageMember | ToolResultContentBlock.JsonMember | ToolResultContentBlock.SearchResultMember | ToolResultContentBlock.TextMember | ToolResultContentBlock.VideoMember | ToolResultContentBlock.$UnknownMember;
|
|
2534
2129
|
/**
|
|
2535
2130
|
* @public
|
|
2536
2131
|
*/
|
|
@@ -2545,6 +2140,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
2545
2140
|
image?: never;
|
|
2546
2141
|
document?: never;
|
|
2547
2142
|
video?: never;
|
|
2143
|
+
searchResult?: never;
|
|
2548
2144
|
$unknown?: never;
|
|
2549
2145
|
}
|
|
2550
2146
|
/**
|
|
@@ -2557,6 +2153,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
2557
2153
|
image?: never;
|
|
2558
2154
|
document?: never;
|
|
2559
2155
|
video?: never;
|
|
2156
|
+
searchResult?: never;
|
|
2560
2157
|
$unknown?: never;
|
|
2561
2158
|
}
|
|
2562
2159
|
/**
|
|
@@ -2569,6 +2166,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
2569
2166
|
image: ImageBlock;
|
|
2570
2167
|
document?: never;
|
|
2571
2168
|
video?: never;
|
|
2169
|
+
searchResult?: never;
|
|
2572
2170
|
$unknown?: never;
|
|
2573
2171
|
}
|
|
2574
2172
|
/**
|
|
@@ -2581,6 +2179,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
2581
2179
|
image?: never;
|
|
2582
2180
|
document: DocumentBlock;
|
|
2583
2181
|
video?: never;
|
|
2182
|
+
searchResult?: never;
|
|
2584
2183
|
$unknown?: never;
|
|
2585
2184
|
}
|
|
2586
2185
|
/**
|
|
@@ -2593,6 +2192,20 @@ export declare namespace ToolResultContentBlock {
|
|
|
2593
2192
|
image?: never;
|
|
2594
2193
|
document?: never;
|
|
2595
2194
|
video: VideoBlock;
|
|
2195
|
+
searchResult?: never;
|
|
2196
|
+
$unknown?: never;
|
|
2197
|
+
}
|
|
2198
|
+
/**
|
|
2199
|
+
* <p>A tool result that is a search result.</p>
|
|
2200
|
+
* @public
|
|
2201
|
+
*/
|
|
2202
|
+
interface SearchResultMember {
|
|
2203
|
+
json?: never;
|
|
2204
|
+
text?: never;
|
|
2205
|
+
image?: never;
|
|
2206
|
+
document?: never;
|
|
2207
|
+
video?: never;
|
|
2208
|
+
searchResult: SearchResultBlock;
|
|
2596
2209
|
$unknown?: never;
|
|
2597
2210
|
}
|
|
2598
2211
|
/**
|
|
@@ -2604,6 +2217,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
2604
2217
|
image?: never;
|
|
2605
2218
|
document?: never;
|
|
2606
2219
|
video?: never;
|
|
2220
|
+
searchResult?: never;
|
|
2607
2221
|
$unknown: [string, any];
|
|
2608
2222
|
}
|
|
2609
2223
|
/**
|
|
@@ -2616,21 +2230,10 @@ export declare namespace ToolResultContentBlock {
|
|
|
2616
2230
|
image: (value: ImageBlock) => T;
|
|
2617
2231
|
document: (value: DocumentBlock) => T;
|
|
2618
2232
|
video: (value: VideoBlock) => T;
|
|
2233
|
+
searchResult: (value: SearchResultBlock) => T;
|
|
2619
2234
|
_: (name: string, value: any) => T;
|
|
2620
2235
|
}
|
|
2621
2236
|
}
|
|
2622
|
-
/**
|
|
2623
|
-
* @public
|
|
2624
|
-
* @enum
|
|
2625
|
-
*/
|
|
2626
|
-
export declare const ToolResultStatus: {
|
|
2627
|
-
readonly ERROR: "error";
|
|
2628
|
-
readonly SUCCESS: "success";
|
|
2629
|
-
};
|
|
2630
|
-
/**
|
|
2631
|
-
* @public
|
|
2632
|
-
*/
|
|
2633
|
-
export type ToolResultStatus = (typeof ToolResultStatus)[keyof typeof ToolResultStatus];
|
|
2634
2237
|
/**
|
|
2635
2238
|
* <p>A tool result block that contains the results for a tool request that the model previously made. 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>
|
|
2636
2239
|
* @public
|
|
@@ -2657,17 +2260,6 @@ export interface ToolResultBlock {
|
|
|
2657
2260
|
*/
|
|
2658
2261
|
type?: string | undefined;
|
|
2659
2262
|
}
|
|
2660
|
-
/**
|
|
2661
|
-
* @public
|
|
2662
|
-
* @enum
|
|
2663
|
-
*/
|
|
2664
|
-
export declare const ToolUseType: {
|
|
2665
|
-
readonly SERVER_TOOL_USE: "server_tool_use";
|
|
2666
|
-
};
|
|
2667
|
-
/**
|
|
2668
|
-
* @public
|
|
2669
|
-
*/
|
|
2670
|
-
export type ToolUseType = (typeof ToolUseType)[keyof typeof ToolUseType];
|
|
2671
2263
|
/**
|
|
2672
2264
|
* <p>A tool use content block. Contains information about a tool that the model is requesting be run., The model uses the result from the tool to generate a response. 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>
|
|
2673
2265
|
* @public
|
|
@@ -2698,7 +2290,7 @@ export interface ToolUseBlock {
|
|
|
2698
2290
|
* <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>
|
|
2699
2291
|
* @public
|
|
2700
2292
|
*/
|
|
2701
|
-
export type ContentBlock = ContentBlock.CachePointMember | ContentBlock.CitationsContentMember | ContentBlock.DocumentMember | ContentBlock.GuardContentMember | ContentBlock.ImageMember | ContentBlock.ReasoningContentMember | ContentBlock.TextMember | ContentBlock.ToolResultMember | ContentBlock.ToolUseMember | ContentBlock.VideoMember | ContentBlock.$UnknownMember;
|
|
2293
|
+
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;
|
|
2702
2294
|
/**
|
|
2703
2295
|
* @public
|
|
2704
2296
|
*/
|
|
@@ -2718,6 +2310,7 @@ export declare namespace ContentBlock {
|
|
|
2718
2310
|
cachePoint?: never;
|
|
2719
2311
|
reasoningContent?: never;
|
|
2720
2312
|
citationsContent?: never;
|
|
2313
|
+
searchResult?: never;
|
|
2721
2314
|
$unknown?: never;
|
|
2722
2315
|
}
|
|
2723
2316
|
/**
|
|
@@ -2735,6 +2328,7 @@ export declare namespace ContentBlock {
|
|
|
2735
2328
|
cachePoint?: never;
|
|
2736
2329
|
reasoningContent?: never;
|
|
2737
2330
|
citationsContent?: never;
|
|
2331
|
+
searchResult?: never;
|
|
2738
2332
|
$unknown?: never;
|
|
2739
2333
|
}
|
|
2740
2334
|
/**
|
|
@@ -2752,6 +2346,7 @@ export declare namespace ContentBlock {
|
|
|
2752
2346
|
cachePoint?: never;
|
|
2753
2347
|
reasoningContent?: never;
|
|
2754
2348
|
citationsContent?: never;
|
|
2349
|
+
searchResult?: never;
|
|
2755
2350
|
$unknown?: never;
|
|
2756
2351
|
}
|
|
2757
2352
|
/**
|
|
@@ -2769,6 +2364,7 @@ export declare namespace ContentBlock {
|
|
|
2769
2364
|
cachePoint?: never;
|
|
2770
2365
|
reasoningContent?: never;
|
|
2771
2366
|
citationsContent?: never;
|
|
2367
|
+
searchResult?: never;
|
|
2772
2368
|
$unknown?: never;
|
|
2773
2369
|
}
|
|
2774
2370
|
/**
|
|
@@ -2786,6 +2382,7 @@ export declare namespace ContentBlock {
|
|
|
2786
2382
|
cachePoint?: never;
|
|
2787
2383
|
reasoningContent?: never;
|
|
2788
2384
|
citationsContent?: never;
|
|
2385
|
+
searchResult?: never;
|
|
2789
2386
|
$unknown?: never;
|
|
2790
2387
|
}
|
|
2791
2388
|
/**
|
|
@@ -2803,6 +2400,7 @@ export declare namespace ContentBlock {
|
|
|
2803
2400
|
cachePoint?: never;
|
|
2804
2401
|
reasoningContent?: never;
|
|
2805
2402
|
citationsContent?: never;
|
|
2403
|
+
searchResult?: never;
|
|
2806
2404
|
$unknown?: never;
|
|
2807
2405
|
}
|
|
2808
2406
|
/**
|
|
@@ -2820,6 +2418,7 @@ export declare namespace ContentBlock {
|
|
|
2820
2418
|
cachePoint?: never;
|
|
2821
2419
|
reasoningContent?: never;
|
|
2822
2420
|
citationsContent?: never;
|
|
2421
|
+
searchResult?: never;
|
|
2823
2422
|
$unknown?: never;
|
|
2824
2423
|
}
|
|
2825
2424
|
/**
|
|
@@ -2837,6 +2436,7 @@ export declare namespace ContentBlock {
|
|
|
2837
2436
|
cachePoint: CachePointBlock;
|
|
2838
2437
|
reasoningContent?: never;
|
|
2839
2438
|
citationsContent?: never;
|
|
2439
|
+
searchResult?: never;
|
|
2840
2440
|
$unknown?: never;
|
|
2841
2441
|
}
|
|
2842
2442
|
/**
|
|
@@ -2854,6 +2454,7 @@ export declare namespace ContentBlock {
|
|
|
2854
2454
|
cachePoint?: never;
|
|
2855
2455
|
reasoningContent: ReasoningContentBlock;
|
|
2856
2456
|
citationsContent?: never;
|
|
2457
|
+
searchResult?: never;
|
|
2857
2458
|
$unknown?: never;
|
|
2858
2459
|
}
|
|
2859
2460
|
/**
|
|
@@ -2871,6 +2472,25 @@ export declare namespace ContentBlock {
|
|
|
2871
2472
|
cachePoint?: never;
|
|
2872
2473
|
reasoningContent?: never;
|
|
2873
2474
|
citationsContent: CitationsContentBlock;
|
|
2475
|
+
searchResult?: never;
|
|
2476
|
+
$unknown?: never;
|
|
2477
|
+
}
|
|
2478
|
+
/**
|
|
2479
|
+
* <p>Search result to include in the message.</p>
|
|
2480
|
+
* @public
|
|
2481
|
+
*/
|
|
2482
|
+
interface SearchResultMember {
|
|
2483
|
+
text?: never;
|
|
2484
|
+
image?: never;
|
|
2485
|
+
document?: never;
|
|
2486
|
+
video?: never;
|
|
2487
|
+
toolUse?: never;
|
|
2488
|
+
toolResult?: never;
|
|
2489
|
+
guardContent?: never;
|
|
2490
|
+
cachePoint?: never;
|
|
2491
|
+
reasoningContent?: never;
|
|
2492
|
+
citationsContent?: never;
|
|
2493
|
+
searchResult: SearchResultBlock;
|
|
2874
2494
|
$unknown?: never;
|
|
2875
2495
|
}
|
|
2876
2496
|
/**
|
|
@@ -2887,6 +2507,7 @@ export declare namespace ContentBlock {
|
|
|
2887
2507
|
cachePoint?: never;
|
|
2888
2508
|
reasoningContent?: never;
|
|
2889
2509
|
citationsContent?: never;
|
|
2510
|
+
searchResult?: never;
|
|
2890
2511
|
$unknown: [string, any];
|
|
2891
2512
|
}
|
|
2892
2513
|
/**
|
|
@@ -2904,21 +2525,10 @@ export declare namespace ContentBlock {
|
|
|
2904
2525
|
cachePoint: (value: CachePointBlock) => T;
|
|
2905
2526
|
reasoningContent: (value: ReasoningContentBlock) => T;
|
|
2906
2527
|
citationsContent: (value: CitationsContentBlock) => T;
|
|
2528
|
+
searchResult: (value: SearchResultBlock) => T;
|
|
2907
2529
|
_: (name: string, value: any) => T;
|
|
2908
2530
|
}
|
|
2909
2531
|
}
|
|
2910
|
-
/**
|
|
2911
|
-
* @public
|
|
2912
|
-
* @enum
|
|
2913
|
-
*/
|
|
2914
|
-
export declare const ConversationRole: {
|
|
2915
|
-
readonly ASSISTANT: "assistant";
|
|
2916
|
-
readonly USER: "user";
|
|
2917
|
-
};
|
|
2918
|
-
/**
|
|
2919
|
-
* @public
|
|
2920
|
-
*/
|
|
2921
|
-
export type ConversationRole = (typeof ConversationRole)[keyof typeof ConversationRole];
|
|
2922
2532
|
/**
|
|
2923
2533
|
* <p>A message input, or returned from, a call to <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>.</p>
|
|
2924
2534
|
* @public
|
|
@@ -2935,18 +2545,6 @@ export interface Message {
|
|
|
2935
2545
|
*/
|
|
2936
2546
|
content: ContentBlock[] | undefined;
|
|
2937
2547
|
}
|
|
2938
|
-
/**
|
|
2939
|
-
* @public
|
|
2940
|
-
* @enum
|
|
2941
|
-
*/
|
|
2942
|
-
export declare const PerformanceConfigLatency: {
|
|
2943
|
-
readonly OPTIMIZED: "optimized";
|
|
2944
|
-
readonly STANDARD: "standard";
|
|
2945
|
-
};
|
|
2946
|
-
/**
|
|
2947
|
-
* @public
|
|
2948
|
-
*/
|
|
2949
|
-
export type PerformanceConfigLatency = (typeof PerformanceConfigLatency)[keyof typeof PerformanceConfigLatency];
|
|
2950
2548
|
/**
|
|
2951
2549
|
* <p>Performance settings for a model.</p>
|
|
2952
2550
|
* @public
|
|
@@ -2991,6 +2589,17 @@ export declare namespace PromptVariableValues {
|
|
|
2991
2589
|
_: (name: string, value: any) => T;
|
|
2992
2590
|
}
|
|
2993
2591
|
}
|
|
2592
|
+
/**
|
|
2593
|
+
* <p>Specifies the processing tier configuration used for serving the request.</p>
|
|
2594
|
+
* @public
|
|
2595
|
+
*/
|
|
2596
|
+
export interface ServiceTier {
|
|
2597
|
+
/**
|
|
2598
|
+
* <p>Specifies the processing tier type used for serving the request.</p>
|
|
2599
|
+
* @public
|
|
2600
|
+
*/
|
|
2601
|
+
type: ServiceTierType | undefined;
|
|
2602
|
+
}
|
|
2994
2603
|
/**
|
|
2995
2604
|
* <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>
|
|
2996
2605
|
* @public
|
|
@@ -3331,6 +2940,11 @@ export interface ConverseRequest {
|
|
|
3331
2940
|
* @public
|
|
3332
2941
|
*/
|
|
3333
2942
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
2943
|
+
/**
|
|
2944
|
+
* <p>Specifies the processing tier configuration used for serving the request.</p>
|
|
2945
|
+
* @public
|
|
2946
|
+
*/
|
|
2947
|
+
serviceTier?: ServiceTier | undefined;
|
|
3334
2948
|
}
|
|
3335
2949
|
/**
|
|
3336
2950
|
* <p>Metrics for a call to <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_Converse.html">Converse</a>.</p>
|
|
@@ -3376,23 +2990,6 @@ export declare namespace ConverseOutput {
|
|
|
3376
2990
|
_: (name: string, value: any) => T;
|
|
3377
2991
|
}
|
|
3378
2992
|
}
|
|
3379
|
-
/**
|
|
3380
|
-
* @public
|
|
3381
|
-
* @enum
|
|
3382
|
-
*/
|
|
3383
|
-
export declare const StopReason: {
|
|
3384
|
-
readonly CONTENT_FILTERED: "content_filtered";
|
|
3385
|
-
readonly END_TURN: "end_turn";
|
|
3386
|
-
readonly GUARDRAIL_INTERVENED: "guardrail_intervened";
|
|
3387
|
-
readonly MAX_TOKENS: "max_tokens";
|
|
3388
|
-
readonly MODEL_CONTEXT_WINDOW_EXCEEDED: "model_context_window_exceeded";
|
|
3389
|
-
readonly STOP_SEQUENCE: "stop_sequence";
|
|
3390
|
-
readonly TOOL_USE: "tool_use";
|
|
3391
|
-
};
|
|
3392
|
-
/**
|
|
3393
|
-
* @public
|
|
3394
|
-
*/
|
|
3395
|
-
export type StopReason = (typeof StopReason)[keyof typeof StopReason];
|
|
3396
2993
|
/**
|
|
3397
2994
|
* <p>A Top level guardrail trace object. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseTrace.html">ConverseTrace</a>.</p>
|
|
3398
2995
|
* @public
|
|
@@ -3516,66 +3113,12 @@ export interface ConverseResponse {
|
|
|
3516
3113
|
* @public
|
|
3517
3114
|
*/
|
|
3518
3115
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
3519
|
-
}
|
|
3520
|
-
/**
|
|
3521
|
-
* <p>The request failed due to an error while processing the model.</p>
|
|
3522
|
-
* @public
|
|
3523
|
-
*/
|
|
3524
|
-
export declare class ModelErrorException extends __BaseException {
|
|
3525
|
-
readonly name: "ModelErrorException";
|
|
3526
|
-
readonly $fault: "client";
|
|
3527
|
-
/**
|
|
3528
|
-
* <p>The original status code.</p>
|
|
3529
|
-
* @public
|
|
3530
|
-
*/
|
|
3531
|
-
originalStatusCode?: number | undefined;
|
|
3532
3116
|
/**
|
|
3533
|
-
* <p>
|
|
3117
|
+
* <p>Specifies the processing tier configuration used for serving the request.</p>
|
|
3534
3118
|
* @public
|
|
3535
3119
|
*/
|
|
3536
|
-
|
|
3537
|
-
/**
|
|
3538
|
-
* @internal
|
|
3539
|
-
*/
|
|
3540
|
-
constructor(opts: __ExceptionOptionType<ModelErrorException, __BaseException>);
|
|
3541
|
-
}
|
|
3542
|
-
/**
|
|
3543
|
-
* <p>The model specified in the request is not ready to serve inference requests. The AWS SDK will automatically retry the operation up to 5 times. For information about configuring automatic retries, see <a href="https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html">Retry behavior</a> in the <i>AWS SDKs and Tools</i> reference guide.</p>
|
|
3544
|
-
* @public
|
|
3545
|
-
*/
|
|
3546
|
-
export declare class ModelNotReadyException extends __BaseException {
|
|
3547
|
-
readonly name: "ModelNotReadyException";
|
|
3548
|
-
readonly $fault: "client";
|
|
3549
|
-
$retryable: {};
|
|
3550
|
-
/**
|
|
3551
|
-
* @internal
|
|
3552
|
-
*/
|
|
3553
|
-
constructor(opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>);
|
|
3120
|
+
serviceTier?: ServiceTier | undefined;
|
|
3554
3121
|
}
|
|
3555
|
-
/**
|
|
3556
|
-
* <p>The request took too long to process. Processing time exceeded the model timeout length.</p>
|
|
3557
|
-
* @public
|
|
3558
|
-
*/
|
|
3559
|
-
export declare class ModelTimeoutException extends __BaseException {
|
|
3560
|
-
readonly name: "ModelTimeoutException";
|
|
3561
|
-
readonly $fault: "client";
|
|
3562
|
-
/**
|
|
3563
|
-
* @internal
|
|
3564
|
-
*/
|
|
3565
|
-
constructor(opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>);
|
|
3566
|
-
}
|
|
3567
|
-
/**
|
|
3568
|
-
* @public
|
|
3569
|
-
* @enum
|
|
3570
|
-
*/
|
|
3571
|
-
export declare const GuardrailStreamProcessingMode: {
|
|
3572
|
-
readonly ASYNC: "async";
|
|
3573
|
-
readonly SYNC: "sync";
|
|
3574
|
-
};
|
|
3575
|
-
/**
|
|
3576
|
-
* @public
|
|
3577
|
-
*/
|
|
3578
|
-
export type GuardrailStreamProcessingMode = (typeof GuardrailStreamProcessingMode)[keyof typeof GuardrailStreamProcessingMode];
|
|
3579
3122
|
/**
|
|
3580
3123
|
* <p>Configuration information for a guardrail that you use with the <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_runtime_ConverseStream.html">ConverseStream</a> action. </p>
|
|
3581
3124
|
* @public
|
|
@@ -3661,6 +3204,11 @@ export interface ConverseStreamRequest {
|
|
|
3661
3204
|
* @public
|
|
3662
3205
|
*/
|
|
3663
3206
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
3207
|
+
/**
|
|
3208
|
+
* <p>Specifies the processing tier configuration used for serving the request.</p>
|
|
3209
|
+
* @public
|
|
3210
|
+
*/
|
|
3211
|
+
serviceTier?: ServiceTier | undefined;
|
|
3664
3212
|
}
|
|
3665
3213
|
/**
|
|
3666
3214
|
* <p>Contains incremental updates to the source content text during streaming responses, allowing clients to build up the cited content progressively.</p>
|
|
@@ -3683,6 +3231,11 @@ export interface CitationsDelta {
|
|
|
3683
3231
|
* @public
|
|
3684
3232
|
*/
|
|
3685
3233
|
title?: string | undefined;
|
|
3234
|
+
/**
|
|
3235
|
+
* <p>The source from the original search result that provided the cited content.</p>
|
|
3236
|
+
* @public
|
|
3237
|
+
*/
|
|
3238
|
+
source?: string | undefined;
|
|
3686
3239
|
/**
|
|
3687
3240
|
* <p>The specific content from the source document that was referenced or cited in the generated response.</p>
|
|
3688
3241
|
* @public
|
|
@@ -4099,28 +3652,11 @@ export interface ConverseStreamMetadataEvent {
|
|
|
4099
3652
|
* @public
|
|
4100
3653
|
*/
|
|
4101
3654
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
4102
|
-
}
|
|
4103
|
-
/**
|
|
4104
|
-
* <p>An error occurred while streaming the response. Retry your request.</p>
|
|
4105
|
-
* @public
|
|
4106
|
-
*/
|
|
4107
|
-
export declare class ModelStreamErrorException extends __BaseException {
|
|
4108
|
-
readonly name: "ModelStreamErrorException";
|
|
4109
|
-
readonly $fault: "client";
|
|
4110
|
-
/**
|
|
4111
|
-
* <p>The original status code.</p>
|
|
4112
|
-
* @public
|
|
4113
|
-
*/
|
|
4114
|
-
originalStatusCode?: number | undefined;
|
|
4115
3655
|
/**
|
|
4116
|
-
* <p>
|
|
3656
|
+
* <p>Specifies the processing tier configuration used for serving the request.</p>
|
|
4117
3657
|
* @public
|
|
4118
3658
|
*/
|
|
4119
|
-
|
|
4120
|
-
/**
|
|
4121
|
-
* @internal
|
|
4122
|
-
*/
|
|
4123
|
-
constructor(opts: __ExceptionOptionType<ModelStreamErrorException, __BaseException>);
|
|
3659
|
+
serviceTier?: ServiceTier | undefined;
|
|
4124
3660
|
}
|
|
4125
3661
|
/**
|
|
4126
3662
|
* <p>The messages output stream</p>
|
|
@@ -4375,19 +3911,6 @@ export interface ConverseStreamResponse {
|
|
|
4375
3911
|
*/
|
|
4376
3912
|
stream?: AsyncIterable<ConverseStreamOutput> | undefined;
|
|
4377
3913
|
}
|
|
4378
|
-
/**
|
|
4379
|
-
* @public
|
|
4380
|
-
* @enum
|
|
4381
|
-
*/
|
|
4382
|
-
export declare const Trace: {
|
|
4383
|
-
readonly DISABLED: "DISABLED";
|
|
4384
|
-
readonly ENABLED: "ENABLED";
|
|
4385
|
-
readonly ENABLED_FULL: "ENABLED_FULL";
|
|
4386
|
-
};
|
|
4387
|
-
/**
|
|
4388
|
-
* @public
|
|
4389
|
-
*/
|
|
4390
|
-
export type Trace = (typeof Trace)[keyof typeof Trace];
|
|
4391
3914
|
/**
|
|
4392
3915
|
* @public
|
|
4393
3916
|
*/
|
|
@@ -4432,6 +3955,11 @@ export interface InvokeModelRequest {
|
|
|
4432
3955
|
* @public
|
|
4433
3956
|
*/
|
|
4434
3957
|
performanceConfigLatency?: PerformanceConfigLatency | undefined;
|
|
3958
|
+
/**
|
|
3959
|
+
* <p>Specifies the processing tier type used for serving the request.</p>
|
|
3960
|
+
* @public
|
|
3961
|
+
*/
|
|
3962
|
+
serviceTier?: ServiceTierType | undefined;
|
|
4435
3963
|
}
|
|
4436
3964
|
/**
|
|
4437
3965
|
* @public
|
|
@@ -4452,6 +3980,11 @@ export interface InvokeModelResponse {
|
|
|
4452
3980
|
* @public
|
|
4453
3981
|
*/
|
|
4454
3982
|
performanceConfigLatency?: PerformanceConfigLatency | undefined;
|
|
3983
|
+
/**
|
|
3984
|
+
* <p>Specifies the processing tier type used for serving the request.</p>
|
|
3985
|
+
* @public
|
|
3986
|
+
*/
|
|
3987
|
+
serviceTier?: ServiceTierType | undefined;
|
|
4455
3988
|
}
|
|
4456
3989
|
/**
|
|
4457
3990
|
* <p>Payload content for the bidirectional input. The input is an audio stream.</p>
|
|
@@ -4712,6 +4245,11 @@ export interface InvokeModelWithResponseStreamRequest {
|
|
|
4712
4245
|
* @public
|
|
4713
4246
|
*/
|
|
4714
4247
|
performanceConfigLatency?: PerformanceConfigLatency | undefined;
|
|
4248
|
+
/**
|
|
4249
|
+
* <p>Specifies the processing tier type used for serving the request.</p>
|
|
4250
|
+
* @public
|
|
4251
|
+
*/
|
|
4252
|
+
serviceTier?: ServiceTierType | undefined;
|
|
4715
4253
|
}
|
|
4716
4254
|
/**
|
|
4717
4255
|
* <p>Payload content included in the response.</p>
|
|
@@ -4878,6 +4416,11 @@ export interface InvokeModelWithResponseStreamResponse {
|
|
|
4878
4416
|
* @public
|
|
4879
4417
|
*/
|
|
4880
4418
|
performanceConfigLatency?: PerformanceConfigLatency | undefined;
|
|
4419
|
+
/**
|
|
4420
|
+
* <p>Specifies the processing tier type used for serving the request.</p>
|
|
4421
|
+
* @public
|
|
4422
|
+
*/
|
|
4423
|
+
serviceTier?: ServiceTierType | undefined;
|
|
4881
4424
|
}
|
|
4882
4425
|
/**
|
|
4883
4426
|
* <p>The inputs from a <code>Converse</code> API request for token counting.</p> <p>This structure mirrors the input format for the <code>Converse</code> operation, allowing you to count tokens for conversation-based inference requests.</p>
|
|
@@ -4894,6 +4437,16 @@ export interface ConverseTokensRequest {
|
|
|
4894
4437
|
* @public
|
|
4895
4438
|
*/
|
|
4896
4439
|
system?: SystemContentBlock[] | undefined;
|
|
4440
|
+
/**
|
|
4441
|
+
* <p>The toolConfig of Converse input request to count tokens for. Configuration information for the tools that the model can use when generating a response.</p>
|
|
4442
|
+
* @public
|
|
4443
|
+
*/
|
|
4444
|
+
toolConfig?: ToolConfiguration | undefined;
|
|
4445
|
+
/**
|
|
4446
|
+
* <p>The additionalModelRequestFields of Converse input request to count tokens for. Use this field when you want to pass additional parameters that the model supports.</p>
|
|
4447
|
+
* @public
|
|
4448
|
+
*/
|
|
4449
|
+
additionalModelRequestFields?: __DocumentType | undefined;
|
|
4897
4450
|
}
|
|
4898
4451
|
/**
|
|
4899
4452
|
* <p>The body of an <code>InvokeModel</code> API request for token counting. This structure mirrors the input format for the <code>InvokeModel</code> operation, allowing you to count tokens for raw text inference requests.</p>
|