@aws-sdk/client-bedrock-runtime 3.934.0 → 3.936.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 +239 -213
- 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 -358
- package/dist-es/schemas/schemas_0.js +35 -10
- package/dist-types/commands/ConverseCommand.d.ts +60 -0
- package/dist-types/commands/ConverseStreamCommand.d.ts +36 -0
- package/dist-types/commands/CountTokensCommand.d.ts +30 -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 +135 -656
- package/dist-types/schemas/schemas_0.d.ts +4 -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 +121 -359
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +4 -0
- package/package.json +23 -23
- 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,13 +1,50 @@
|
|
|
1
|
-
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
1
|
import { DocumentType as __DocumentType } from "@smithy/types";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
import {
|
|
3
|
+
AsyncInvokeStatus,
|
|
4
|
+
CachePointType,
|
|
5
|
+
ConversationRole,
|
|
6
|
+
DocumentFormat,
|
|
7
|
+
GuardrailAction,
|
|
8
|
+
GuardrailAutomatedReasoningLogicWarningType,
|
|
9
|
+
GuardrailContentFilterConfidence,
|
|
10
|
+
GuardrailContentFilterStrength,
|
|
11
|
+
GuardrailContentFilterType,
|
|
12
|
+
GuardrailContentPolicyAction,
|
|
13
|
+
GuardrailContentQualifier,
|
|
14
|
+
GuardrailContentSource,
|
|
15
|
+
GuardrailContextualGroundingFilterType,
|
|
16
|
+
GuardrailContextualGroundingPolicyAction,
|
|
17
|
+
GuardrailConverseContentQualifier,
|
|
18
|
+
GuardrailConverseImageFormat,
|
|
19
|
+
GuardrailImageFormat,
|
|
20
|
+
GuardrailManagedWordType,
|
|
21
|
+
GuardrailOutputScope,
|
|
22
|
+
GuardrailPiiEntityType,
|
|
23
|
+
GuardrailSensitiveInformationPolicyAction,
|
|
24
|
+
GuardrailStreamProcessingMode,
|
|
25
|
+
GuardrailTopicPolicyAction,
|
|
26
|
+
GuardrailTopicType,
|
|
27
|
+
GuardrailTrace,
|
|
28
|
+
GuardrailWordPolicyAction,
|
|
29
|
+
ImageFormat,
|
|
30
|
+
PerformanceConfigLatency,
|
|
31
|
+
ServiceTierType,
|
|
32
|
+
SortAsyncInvocationBy,
|
|
33
|
+
SortOrder,
|
|
34
|
+
StopReason,
|
|
35
|
+
ToolResultStatus,
|
|
36
|
+
ToolUseType,
|
|
37
|
+
Trace,
|
|
38
|
+
VideoFormat,
|
|
39
|
+
} from "./enums";
|
|
40
|
+
import {
|
|
41
|
+
InternalServerException,
|
|
42
|
+
ModelStreamErrorException,
|
|
43
|
+
ModelTimeoutException,
|
|
44
|
+
ServiceUnavailableException,
|
|
45
|
+
ThrottlingException,
|
|
46
|
+
ValidationException,
|
|
47
|
+
} from "./errors";
|
|
11
48
|
export interface GetAsyncInvokeRequest {
|
|
12
49
|
invocationArn: string | undefined;
|
|
13
50
|
}
|
|
@@ -33,13 +70,6 @@ export declare namespace AsyncInvokeOutputDataConfig {
|
|
|
33
70
|
_: (name: string, value: any) => T;
|
|
34
71
|
}
|
|
35
72
|
}
|
|
36
|
-
export declare const AsyncInvokeStatus: {
|
|
37
|
-
readonly COMPLETED: "Completed";
|
|
38
|
-
readonly FAILED: "Failed";
|
|
39
|
-
readonly IN_PROGRESS: "InProgress";
|
|
40
|
-
};
|
|
41
|
-
export type AsyncInvokeStatus =
|
|
42
|
-
(typeof AsyncInvokeStatus)[keyof typeof AsyncInvokeStatus];
|
|
43
73
|
export interface GetAsyncInvokeResponse {
|
|
44
74
|
invocationArn: string | undefined;
|
|
45
75
|
modelArn: string | undefined;
|
|
@@ -51,37 +81,6 @@ export interface GetAsyncInvokeResponse {
|
|
|
51
81
|
endTime?: Date | undefined;
|
|
52
82
|
outputDataConfig: AsyncInvokeOutputDataConfig | undefined;
|
|
53
83
|
}
|
|
54
|
-
export declare class InternalServerException extends __BaseException {
|
|
55
|
-
readonly name: "InternalServerException";
|
|
56
|
-
readonly $fault: "server";
|
|
57
|
-
constructor(
|
|
58
|
-
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
59
|
-
);
|
|
60
|
-
}
|
|
61
|
-
export declare class ThrottlingException extends __BaseException {
|
|
62
|
-
readonly name: "ThrottlingException";
|
|
63
|
-
readonly $fault: "client";
|
|
64
|
-
constructor(
|
|
65
|
-
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
export declare class ValidationException extends __BaseException {
|
|
69
|
-
readonly name: "ValidationException";
|
|
70
|
-
readonly $fault: "client";
|
|
71
|
-
constructor(
|
|
72
|
-
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
73
|
-
);
|
|
74
|
-
}
|
|
75
|
-
export declare const SortAsyncInvocationBy: {
|
|
76
|
-
readonly SUBMISSION_TIME: "SubmissionTime";
|
|
77
|
-
};
|
|
78
|
-
export type SortAsyncInvocationBy =
|
|
79
|
-
(typeof SortAsyncInvocationBy)[keyof typeof SortAsyncInvocationBy];
|
|
80
|
-
export declare const SortOrder: {
|
|
81
|
-
readonly ASCENDING: "Ascending";
|
|
82
|
-
readonly DESCENDING: "Descending";
|
|
83
|
-
};
|
|
84
|
-
export type SortOrder = (typeof SortOrder)[keyof typeof SortOrder];
|
|
85
84
|
export interface ListAsyncInvokesRequest {
|
|
86
85
|
submitTimeAfter?: Date | undefined;
|
|
87
86
|
submitTimeBefore?: Date | undefined;
|
|
@@ -106,32 +105,6 @@ export interface ListAsyncInvokesResponse {
|
|
|
106
105
|
nextToken?: string | undefined;
|
|
107
106
|
asyncInvokeSummaries?: AsyncInvokeSummary[] | undefined;
|
|
108
107
|
}
|
|
109
|
-
export declare class ConflictException extends __BaseException {
|
|
110
|
-
readonly name: "ConflictException";
|
|
111
|
-
readonly $fault: "client";
|
|
112
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
113
|
-
}
|
|
114
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
115
|
-
readonly name: "ResourceNotFoundException";
|
|
116
|
-
readonly $fault: "client";
|
|
117
|
-
constructor(
|
|
118
|
-
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
119
|
-
);
|
|
120
|
-
}
|
|
121
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
122
|
-
readonly name: "ServiceQuotaExceededException";
|
|
123
|
-
readonly $fault: "client";
|
|
124
|
-
constructor(
|
|
125
|
-
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
export declare class ServiceUnavailableException extends __BaseException {
|
|
129
|
-
readonly name: "ServiceUnavailableException";
|
|
130
|
-
readonly $fault: "server";
|
|
131
|
-
constructor(
|
|
132
|
-
opts: __ExceptionOptionType<ServiceUnavailableException, __BaseException>
|
|
133
|
-
);
|
|
134
|
-
}
|
|
135
108
|
export interface Tag {
|
|
136
109
|
key: string | undefined;
|
|
137
110
|
value: string | undefined;
|
|
@@ -146,12 +119,6 @@ export interface StartAsyncInvokeRequest {
|
|
|
146
119
|
export interface StartAsyncInvokeResponse {
|
|
147
120
|
invocationArn: string | undefined;
|
|
148
121
|
}
|
|
149
|
-
export declare const GuardrailImageFormat: {
|
|
150
|
-
readonly JPEG: "jpeg";
|
|
151
|
-
readonly PNG: "png";
|
|
152
|
-
};
|
|
153
|
-
export type GuardrailImageFormat =
|
|
154
|
-
(typeof GuardrailImageFormat)[keyof typeof GuardrailImageFormat];
|
|
155
122
|
export type GuardrailImageSource =
|
|
156
123
|
| GuardrailImageSource.BytesMember
|
|
157
124
|
| GuardrailImageSource.$UnknownMember;
|
|
@@ -173,13 +140,6 @@ export interface GuardrailImageBlock {
|
|
|
173
140
|
format: GuardrailImageFormat | undefined;
|
|
174
141
|
source: GuardrailImageSource | undefined;
|
|
175
142
|
}
|
|
176
|
-
export declare const GuardrailContentQualifier: {
|
|
177
|
-
readonly GROUNDING_SOURCE: "grounding_source";
|
|
178
|
-
readonly GUARD_CONTENT: "guard_content";
|
|
179
|
-
readonly QUERY: "query";
|
|
180
|
-
};
|
|
181
|
-
export type GuardrailContentQualifier =
|
|
182
|
-
(typeof GuardrailContentQualifier)[keyof typeof GuardrailContentQualifier];
|
|
183
143
|
export interface GuardrailTextBlock {
|
|
184
144
|
text: string | undefined;
|
|
185
145
|
qualifiers?: GuardrailContentQualifier[] | undefined;
|
|
@@ -210,18 +170,6 @@ export declare namespace GuardrailContentBlock {
|
|
|
210
170
|
_: (name: string, value: any) => T;
|
|
211
171
|
}
|
|
212
172
|
}
|
|
213
|
-
export declare const GuardrailOutputScope: {
|
|
214
|
-
readonly FULL: "FULL";
|
|
215
|
-
readonly INTERVENTIONS: "INTERVENTIONS";
|
|
216
|
-
};
|
|
217
|
-
export type GuardrailOutputScope =
|
|
218
|
-
(typeof GuardrailOutputScope)[keyof typeof GuardrailOutputScope];
|
|
219
|
-
export declare const GuardrailContentSource: {
|
|
220
|
-
readonly INPUT: "INPUT";
|
|
221
|
-
readonly OUTPUT: "OUTPUT";
|
|
222
|
-
};
|
|
223
|
-
export type GuardrailContentSource =
|
|
224
|
-
(typeof GuardrailContentSource)[keyof typeof GuardrailContentSource];
|
|
225
173
|
export interface ApplyGuardrailRequest {
|
|
226
174
|
guardrailIdentifier: string | undefined;
|
|
227
175
|
guardrailVersion: string | undefined;
|
|
@@ -229,12 +177,6 @@ export interface ApplyGuardrailRequest {
|
|
|
229
177
|
content: GuardrailContentBlock[] | undefined;
|
|
230
178
|
outputScope?: GuardrailOutputScope | undefined;
|
|
231
179
|
}
|
|
232
|
-
export declare const GuardrailAction: {
|
|
233
|
-
readonly GUARDRAIL_INTERVENED: "GUARDRAIL_INTERVENED";
|
|
234
|
-
readonly NONE: "NONE";
|
|
235
|
-
};
|
|
236
|
-
export type GuardrailAction =
|
|
237
|
-
(typeof GuardrailAction)[keyof typeof GuardrailAction];
|
|
238
180
|
export interface GuardrailAutomatedReasoningRule {
|
|
239
181
|
identifier?: string | undefined;
|
|
240
182
|
policyVersionArn?: string | undefined;
|
|
@@ -243,12 +185,6 @@ export interface GuardrailAutomatedReasoningStatement {
|
|
|
243
185
|
logic?: string | undefined;
|
|
244
186
|
naturalLanguage?: string | undefined;
|
|
245
187
|
}
|
|
246
|
-
export declare const GuardrailAutomatedReasoningLogicWarningType: {
|
|
247
|
-
readonly ALWAYS_FALSE: "ALWAYS_FALSE";
|
|
248
|
-
readonly ALWAYS_TRUE: "ALWAYS_TRUE";
|
|
249
|
-
};
|
|
250
|
-
export type GuardrailAutomatedReasoningLogicWarningType =
|
|
251
|
-
(typeof GuardrailAutomatedReasoningLogicWarningType)[keyof typeof GuardrailAutomatedReasoningLogicWarningType];
|
|
252
188
|
export interface GuardrailAutomatedReasoningLogicWarning {
|
|
253
189
|
type?: GuardrailAutomatedReasoningLogicWarningType | undefined;
|
|
254
190
|
premises?: GuardrailAutomatedReasoningStatement[] | undefined;
|
|
@@ -410,38 +346,6 @@ export declare namespace GuardrailAutomatedReasoningFinding {
|
|
|
410
346
|
export interface GuardrailAutomatedReasoningPolicyAssessment {
|
|
411
347
|
findings?: GuardrailAutomatedReasoningFinding[] | undefined;
|
|
412
348
|
}
|
|
413
|
-
export declare const GuardrailContentPolicyAction: {
|
|
414
|
-
readonly BLOCKED: "BLOCKED";
|
|
415
|
-
readonly NONE: "NONE";
|
|
416
|
-
};
|
|
417
|
-
export type GuardrailContentPolicyAction =
|
|
418
|
-
(typeof GuardrailContentPolicyAction)[keyof typeof GuardrailContentPolicyAction];
|
|
419
|
-
export declare const GuardrailContentFilterConfidence: {
|
|
420
|
-
readonly HIGH: "HIGH";
|
|
421
|
-
readonly LOW: "LOW";
|
|
422
|
-
readonly MEDIUM: "MEDIUM";
|
|
423
|
-
readonly NONE: "NONE";
|
|
424
|
-
};
|
|
425
|
-
export type GuardrailContentFilterConfidence =
|
|
426
|
-
(typeof GuardrailContentFilterConfidence)[keyof typeof GuardrailContentFilterConfidence];
|
|
427
|
-
export declare const GuardrailContentFilterStrength: {
|
|
428
|
-
readonly HIGH: "HIGH";
|
|
429
|
-
readonly LOW: "LOW";
|
|
430
|
-
readonly MEDIUM: "MEDIUM";
|
|
431
|
-
readonly NONE: "NONE";
|
|
432
|
-
};
|
|
433
|
-
export type GuardrailContentFilterStrength =
|
|
434
|
-
(typeof GuardrailContentFilterStrength)[keyof typeof GuardrailContentFilterStrength];
|
|
435
|
-
export declare const GuardrailContentFilterType: {
|
|
436
|
-
readonly HATE: "HATE";
|
|
437
|
-
readonly INSULTS: "INSULTS";
|
|
438
|
-
readonly MISCONDUCT: "MISCONDUCT";
|
|
439
|
-
readonly PROMPT_ATTACK: "PROMPT_ATTACK";
|
|
440
|
-
readonly SEXUAL: "SEXUAL";
|
|
441
|
-
readonly VIOLENCE: "VIOLENCE";
|
|
442
|
-
};
|
|
443
|
-
export type GuardrailContentFilterType =
|
|
444
|
-
(typeof GuardrailContentFilterType)[keyof typeof GuardrailContentFilterType];
|
|
445
349
|
export interface GuardrailContentFilter {
|
|
446
350
|
type: GuardrailContentFilterType | undefined;
|
|
447
351
|
confidence: GuardrailContentFilterConfidence | undefined;
|
|
@@ -452,18 +356,6 @@ export interface GuardrailContentFilter {
|
|
|
452
356
|
export interface GuardrailContentPolicyAssessment {
|
|
453
357
|
filters: GuardrailContentFilter[] | undefined;
|
|
454
358
|
}
|
|
455
|
-
export declare const GuardrailContextualGroundingPolicyAction: {
|
|
456
|
-
readonly BLOCKED: "BLOCKED";
|
|
457
|
-
readonly NONE: "NONE";
|
|
458
|
-
};
|
|
459
|
-
export type GuardrailContextualGroundingPolicyAction =
|
|
460
|
-
(typeof GuardrailContextualGroundingPolicyAction)[keyof typeof GuardrailContextualGroundingPolicyAction];
|
|
461
|
-
export declare const GuardrailContextualGroundingFilterType: {
|
|
462
|
-
readonly GROUNDING: "GROUNDING";
|
|
463
|
-
readonly RELEVANCE: "RELEVANCE";
|
|
464
|
-
};
|
|
465
|
-
export type GuardrailContextualGroundingFilterType =
|
|
466
|
-
(typeof GuardrailContextualGroundingFilterType)[keyof typeof GuardrailContextualGroundingFilterType];
|
|
467
359
|
export interface GuardrailContextualGroundingFilter {
|
|
468
360
|
type: GuardrailContextualGroundingFilterType | undefined;
|
|
469
361
|
threshold: number | undefined;
|
|
@@ -502,48 +394,6 @@ export interface GuardrailInvocationMetrics {
|
|
|
502
394
|
usage?: GuardrailUsage | undefined;
|
|
503
395
|
guardrailCoverage?: GuardrailCoverage | undefined;
|
|
504
396
|
}
|
|
505
|
-
export declare const GuardrailSensitiveInformationPolicyAction: {
|
|
506
|
-
readonly ANONYMIZED: "ANONYMIZED";
|
|
507
|
-
readonly BLOCKED: "BLOCKED";
|
|
508
|
-
readonly NONE: "NONE";
|
|
509
|
-
};
|
|
510
|
-
export type GuardrailSensitiveInformationPolicyAction =
|
|
511
|
-
(typeof GuardrailSensitiveInformationPolicyAction)[keyof typeof GuardrailSensitiveInformationPolicyAction];
|
|
512
|
-
export declare const GuardrailPiiEntityType: {
|
|
513
|
-
readonly ADDRESS: "ADDRESS";
|
|
514
|
-
readonly AGE: "AGE";
|
|
515
|
-
readonly AWS_ACCESS_KEY: "AWS_ACCESS_KEY";
|
|
516
|
-
readonly AWS_SECRET_KEY: "AWS_SECRET_KEY";
|
|
517
|
-
readonly CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER";
|
|
518
|
-
readonly CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER";
|
|
519
|
-
readonly CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV";
|
|
520
|
-
readonly CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY";
|
|
521
|
-
readonly CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER";
|
|
522
|
-
readonly DRIVER_ID: "DRIVER_ID";
|
|
523
|
-
readonly EMAIL: "EMAIL";
|
|
524
|
-
readonly INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER";
|
|
525
|
-
readonly IP_ADDRESS: "IP_ADDRESS";
|
|
526
|
-
readonly LICENSE_PLATE: "LICENSE_PLATE";
|
|
527
|
-
readonly MAC_ADDRESS: "MAC_ADDRESS";
|
|
528
|
-
readonly NAME: "NAME";
|
|
529
|
-
readonly PASSWORD: "PASSWORD";
|
|
530
|
-
readonly PHONE: "PHONE";
|
|
531
|
-
readonly PIN: "PIN";
|
|
532
|
-
readonly SWIFT_CODE: "SWIFT_CODE";
|
|
533
|
-
readonly UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER";
|
|
534
|
-
readonly UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER";
|
|
535
|
-
readonly UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER";
|
|
536
|
-
readonly URL: "URL";
|
|
537
|
-
readonly USERNAME: "USERNAME";
|
|
538
|
-
readonly US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER";
|
|
539
|
-
readonly US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER";
|
|
540
|
-
readonly US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER";
|
|
541
|
-
readonly US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER";
|
|
542
|
-
readonly US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER";
|
|
543
|
-
readonly VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER";
|
|
544
|
-
};
|
|
545
|
-
export type GuardrailPiiEntityType =
|
|
546
|
-
(typeof GuardrailPiiEntityType)[keyof typeof GuardrailPiiEntityType];
|
|
547
397
|
export interface GuardrailPiiEntityFilter {
|
|
548
398
|
match: string | undefined;
|
|
549
399
|
type: GuardrailPiiEntityType | undefined;
|
|
@@ -561,17 +411,6 @@ export interface GuardrailSensitiveInformationPolicyAssessment {
|
|
|
561
411
|
piiEntities: GuardrailPiiEntityFilter[] | undefined;
|
|
562
412
|
regexes: GuardrailRegexFilter[] | undefined;
|
|
563
413
|
}
|
|
564
|
-
export declare const GuardrailTopicPolicyAction: {
|
|
565
|
-
readonly BLOCKED: "BLOCKED";
|
|
566
|
-
readonly NONE: "NONE";
|
|
567
|
-
};
|
|
568
|
-
export type GuardrailTopicPolicyAction =
|
|
569
|
-
(typeof GuardrailTopicPolicyAction)[keyof typeof GuardrailTopicPolicyAction];
|
|
570
|
-
export declare const GuardrailTopicType: {
|
|
571
|
-
readonly DENY: "DENY";
|
|
572
|
-
};
|
|
573
|
-
export type GuardrailTopicType =
|
|
574
|
-
(typeof GuardrailTopicType)[keyof typeof GuardrailTopicType];
|
|
575
414
|
export interface GuardrailTopic {
|
|
576
415
|
name: string | undefined;
|
|
577
416
|
type: GuardrailTopicType | undefined;
|
|
@@ -581,22 +420,11 @@ export interface GuardrailTopic {
|
|
|
581
420
|
export interface GuardrailTopicPolicyAssessment {
|
|
582
421
|
topics: GuardrailTopic[] | undefined;
|
|
583
422
|
}
|
|
584
|
-
export declare const GuardrailWordPolicyAction: {
|
|
585
|
-
readonly BLOCKED: "BLOCKED";
|
|
586
|
-
readonly NONE: "NONE";
|
|
587
|
-
};
|
|
588
|
-
export type GuardrailWordPolicyAction =
|
|
589
|
-
(typeof GuardrailWordPolicyAction)[keyof typeof GuardrailWordPolicyAction];
|
|
590
423
|
export interface GuardrailCustomWord {
|
|
591
424
|
match: string | undefined;
|
|
592
425
|
action: GuardrailWordPolicyAction | undefined;
|
|
593
426
|
detected?: boolean | undefined;
|
|
594
427
|
}
|
|
595
|
-
export declare const GuardrailManagedWordType: {
|
|
596
|
-
readonly PROFANITY: "PROFANITY";
|
|
597
|
-
};
|
|
598
|
-
export type GuardrailManagedWordType =
|
|
599
|
-
(typeof GuardrailManagedWordType)[keyof typeof GuardrailManagedWordType];
|
|
600
428
|
export interface GuardrailManagedWord {
|
|
601
429
|
match: string | undefined;
|
|
602
430
|
type: GuardrailManagedWordType | undefined;
|
|
@@ -633,13 +461,6 @@ export interface ApplyGuardrailResponse {
|
|
|
633
461
|
assessments: GuardrailAssessment[] | undefined;
|
|
634
462
|
guardrailCoverage?: GuardrailCoverage | undefined;
|
|
635
463
|
}
|
|
636
|
-
export declare const GuardrailTrace: {
|
|
637
|
-
readonly DISABLED: "disabled";
|
|
638
|
-
readonly ENABLED: "enabled";
|
|
639
|
-
readonly ENABLED_FULL: "enabled_full";
|
|
640
|
-
};
|
|
641
|
-
export type GuardrailTrace =
|
|
642
|
-
(typeof GuardrailTrace)[keyof typeof GuardrailTrace];
|
|
643
464
|
export interface GuardrailConfiguration {
|
|
644
465
|
guardrailIdentifier: string | undefined;
|
|
645
466
|
guardrailVersion: string | undefined;
|
|
@@ -651,11 +472,6 @@ export interface InferenceConfiguration {
|
|
|
651
472
|
topP?: number | undefined;
|
|
652
473
|
stopSequences?: string[] | undefined;
|
|
653
474
|
}
|
|
654
|
-
export declare const CachePointType: {
|
|
655
|
-
readonly DEFAULT: "default";
|
|
656
|
-
};
|
|
657
|
-
export type CachePointType =
|
|
658
|
-
(typeof CachePointType)[keyof typeof CachePointType];
|
|
659
475
|
export interface CachePointBlock {
|
|
660
476
|
type: CachePointType | undefined;
|
|
661
477
|
}
|
|
@@ -674,6 +490,11 @@ export interface DocumentPageLocation {
|
|
|
674
490
|
start?: number | undefined;
|
|
675
491
|
end?: number | undefined;
|
|
676
492
|
}
|
|
493
|
+
export interface SearchResultLocation {
|
|
494
|
+
searchResultIndex?: number | undefined;
|
|
495
|
+
start?: number | undefined;
|
|
496
|
+
end?: number | undefined;
|
|
497
|
+
}
|
|
677
498
|
export interface WebLocation {
|
|
678
499
|
url?: string | undefined;
|
|
679
500
|
domain?: string | undefined;
|
|
@@ -682,6 +503,7 @@ export type CitationLocation =
|
|
|
682
503
|
| CitationLocation.DocumentCharMember
|
|
683
504
|
| CitationLocation.DocumentChunkMember
|
|
684
505
|
| CitationLocation.DocumentPageMember
|
|
506
|
+
| CitationLocation.SearchResultLocationMember
|
|
685
507
|
| CitationLocation.WebMember
|
|
686
508
|
| CitationLocation.$UnknownMember;
|
|
687
509
|
export declare namespace CitationLocation {
|
|
@@ -690,6 +512,7 @@ export declare namespace CitationLocation {
|
|
|
690
512
|
documentChar?: never;
|
|
691
513
|
documentPage?: never;
|
|
692
514
|
documentChunk?: never;
|
|
515
|
+
searchResultLocation?: never;
|
|
693
516
|
$unknown?: never;
|
|
694
517
|
}
|
|
695
518
|
interface DocumentCharMember {
|
|
@@ -697,6 +520,7 @@ export declare namespace CitationLocation {
|
|
|
697
520
|
documentChar: DocumentCharLocation;
|
|
698
521
|
documentPage?: never;
|
|
699
522
|
documentChunk?: never;
|
|
523
|
+
searchResultLocation?: never;
|
|
700
524
|
$unknown?: never;
|
|
701
525
|
}
|
|
702
526
|
interface DocumentPageMember {
|
|
@@ -704,6 +528,7 @@ export declare namespace CitationLocation {
|
|
|
704
528
|
documentChar?: never;
|
|
705
529
|
documentPage: DocumentPageLocation;
|
|
706
530
|
documentChunk?: never;
|
|
531
|
+
searchResultLocation?: never;
|
|
707
532
|
$unknown?: never;
|
|
708
533
|
}
|
|
709
534
|
interface DocumentChunkMember {
|
|
@@ -711,6 +536,15 @@ export declare namespace CitationLocation {
|
|
|
711
536
|
documentChar?: never;
|
|
712
537
|
documentPage?: never;
|
|
713
538
|
documentChunk: DocumentChunkLocation;
|
|
539
|
+
searchResultLocation?: never;
|
|
540
|
+
$unknown?: never;
|
|
541
|
+
}
|
|
542
|
+
interface SearchResultLocationMember {
|
|
543
|
+
web?: never;
|
|
544
|
+
documentChar?: never;
|
|
545
|
+
documentPage?: never;
|
|
546
|
+
documentChunk?: never;
|
|
547
|
+
searchResultLocation: SearchResultLocation;
|
|
714
548
|
$unknown?: never;
|
|
715
549
|
}
|
|
716
550
|
interface $UnknownMember {
|
|
@@ -718,6 +552,7 @@ export declare namespace CitationLocation {
|
|
|
718
552
|
documentChar?: never;
|
|
719
553
|
documentPage?: never;
|
|
720
554
|
documentChunk?: never;
|
|
555
|
+
searchResultLocation?: never;
|
|
721
556
|
$unknown: [string, any];
|
|
722
557
|
}
|
|
723
558
|
interface Visitor<T> {
|
|
@@ -725,6 +560,7 @@ export declare namespace CitationLocation {
|
|
|
725
560
|
documentChar: (value: DocumentCharLocation) => T;
|
|
726
561
|
documentPage: (value: DocumentPageLocation) => T;
|
|
727
562
|
documentChunk: (value: DocumentChunkLocation) => T;
|
|
563
|
+
searchResultLocation: (value: SearchResultLocation) => T;
|
|
728
564
|
_: (name: string, value: any) => T;
|
|
729
565
|
}
|
|
730
566
|
}
|
|
@@ -747,6 +583,7 @@ export declare namespace CitationSourceContent {
|
|
|
747
583
|
}
|
|
748
584
|
export interface Citation {
|
|
749
585
|
title?: string | undefined;
|
|
586
|
+
source?: string | undefined;
|
|
750
587
|
sourceContent?: CitationSourceContent[] | undefined;
|
|
751
588
|
location?: CitationLocation | undefined;
|
|
752
589
|
}
|
|
@@ -774,19 +611,6 @@ export interface CitationsContentBlock {
|
|
|
774
611
|
export interface CitationsConfig {
|
|
775
612
|
enabled: boolean | undefined;
|
|
776
613
|
}
|
|
777
|
-
export declare const DocumentFormat: {
|
|
778
|
-
readonly CSV: "csv";
|
|
779
|
-
readonly DOC: "doc";
|
|
780
|
-
readonly DOCX: "docx";
|
|
781
|
-
readonly HTML: "html";
|
|
782
|
-
readonly MD: "md";
|
|
783
|
-
readonly PDF: "pdf";
|
|
784
|
-
readonly TXT: "txt";
|
|
785
|
-
readonly XLS: "xls";
|
|
786
|
-
readonly XLSX: "xlsx";
|
|
787
|
-
};
|
|
788
|
-
export type DocumentFormat =
|
|
789
|
-
(typeof DocumentFormat)[keyof typeof DocumentFormat];
|
|
790
614
|
export type DocumentContentBlock =
|
|
791
615
|
| DocumentContentBlock.TextMember
|
|
792
616
|
| DocumentContentBlock.$UnknownMember;
|
|
@@ -865,12 +689,6 @@ export interface DocumentBlock {
|
|
|
865
689
|
context?: string | undefined;
|
|
866
690
|
citations?: CitationsConfig | undefined;
|
|
867
691
|
}
|
|
868
|
-
export declare const GuardrailConverseImageFormat: {
|
|
869
|
-
readonly JPEG: "jpeg";
|
|
870
|
-
readonly PNG: "png";
|
|
871
|
-
};
|
|
872
|
-
export type GuardrailConverseImageFormat =
|
|
873
|
-
(typeof GuardrailConverseImageFormat)[keyof typeof GuardrailConverseImageFormat];
|
|
874
692
|
export type GuardrailConverseImageSource =
|
|
875
693
|
| GuardrailConverseImageSource.BytesMember
|
|
876
694
|
| GuardrailConverseImageSource.$UnknownMember;
|
|
@@ -892,13 +710,6 @@ export interface GuardrailConverseImageBlock {
|
|
|
892
710
|
format: GuardrailConverseImageFormat | undefined;
|
|
893
711
|
source: GuardrailConverseImageSource | undefined;
|
|
894
712
|
}
|
|
895
|
-
export declare const GuardrailConverseContentQualifier: {
|
|
896
|
-
readonly GROUNDING_SOURCE: "grounding_source";
|
|
897
|
-
readonly GUARD_CONTENT: "guard_content";
|
|
898
|
-
readonly QUERY: "query";
|
|
899
|
-
};
|
|
900
|
-
export type GuardrailConverseContentQualifier =
|
|
901
|
-
(typeof GuardrailConverseContentQualifier)[keyof typeof GuardrailConverseContentQualifier];
|
|
902
713
|
export interface GuardrailConverseTextBlock {
|
|
903
714
|
text: string | undefined;
|
|
904
715
|
qualifiers?: GuardrailConverseContentQualifier[] | undefined;
|
|
@@ -929,13 +740,6 @@ export declare namespace GuardrailConverseContentBlock {
|
|
|
929
740
|
_: (name: string, value: any) => T;
|
|
930
741
|
}
|
|
931
742
|
}
|
|
932
|
-
export declare const ImageFormat: {
|
|
933
|
-
readonly GIF: "gif";
|
|
934
|
-
readonly JPEG: "jpeg";
|
|
935
|
-
readonly PNG: "png";
|
|
936
|
-
readonly WEBP: "webp";
|
|
937
|
-
};
|
|
938
|
-
export type ImageFormat = (typeof ImageFormat)[keyof typeof ImageFormat];
|
|
939
743
|
export type ImageSource =
|
|
940
744
|
| ImageSource.BytesMember
|
|
941
745
|
| ImageSource.S3LocationMember
|
|
@@ -996,18 +800,15 @@ export declare namespace ReasoningContentBlock {
|
|
|
996
800
|
_: (name: string, value: any) => T;
|
|
997
801
|
}
|
|
998
802
|
}
|
|
999
|
-
export
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
readonly WMV: "wmv";
|
|
1009
|
-
};
|
|
1010
|
-
export type VideoFormat = (typeof VideoFormat)[keyof typeof VideoFormat];
|
|
803
|
+
export interface SearchResultContentBlock {
|
|
804
|
+
text: string | undefined;
|
|
805
|
+
}
|
|
806
|
+
export interface SearchResultBlock {
|
|
807
|
+
source: string | undefined;
|
|
808
|
+
title: string | undefined;
|
|
809
|
+
content: SearchResultContentBlock[] | undefined;
|
|
810
|
+
citations?: CitationsConfig | undefined;
|
|
811
|
+
}
|
|
1011
812
|
export type VideoSource =
|
|
1012
813
|
| VideoSource.BytesMember
|
|
1013
814
|
| VideoSource.S3LocationMember
|
|
@@ -1042,6 +843,7 @@ export type ToolResultContentBlock =
|
|
|
1042
843
|
| ToolResultContentBlock.DocumentMember
|
|
1043
844
|
| ToolResultContentBlock.ImageMember
|
|
1044
845
|
| ToolResultContentBlock.JsonMember
|
|
846
|
+
| ToolResultContentBlock.SearchResultMember
|
|
1045
847
|
| ToolResultContentBlock.TextMember
|
|
1046
848
|
| ToolResultContentBlock.VideoMember
|
|
1047
849
|
| ToolResultContentBlock.$UnknownMember;
|
|
@@ -1052,6 +854,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
1052
854
|
image?: never;
|
|
1053
855
|
document?: never;
|
|
1054
856
|
video?: never;
|
|
857
|
+
searchResult?: never;
|
|
1055
858
|
$unknown?: never;
|
|
1056
859
|
}
|
|
1057
860
|
interface TextMember {
|
|
@@ -1060,6 +863,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
1060
863
|
image?: never;
|
|
1061
864
|
document?: never;
|
|
1062
865
|
video?: never;
|
|
866
|
+
searchResult?: never;
|
|
1063
867
|
$unknown?: never;
|
|
1064
868
|
}
|
|
1065
869
|
interface ImageMember {
|
|
@@ -1068,6 +872,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
1068
872
|
image: ImageBlock;
|
|
1069
873
|
document?: never;
|
|
1070
874
|
video?: never;
|
|
875
|
+
searchResult?: never;
|
|
1071
876
|
$unknown?: never;
|
|
1072
877
|
}
|
|
1073
878
|
interface DocumentMember {
|
|
@@ -1076,6 +881,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
1076
881
|
image?: never;
|
|
1077
882
|
document: DocumentBlock;
|
|
1078
883
|
video?: never;
|
|
884
|
+
searchResult?: never;
|
|
1079
885
|
$unknown?: never;
|
|
1080
886
|
}
|
|
1081
887
|
interface VideoMember {
|
|
@@ -1084,6 +890,16 @@ export declare namespace ToolResultContentBlock {
|
|
|
1084
890
|
image?: never;
|
|
1085
891
|
document?: never;
|
|
1086
892
|
video: VideoBlock;
|
|
893
|
+
searchResult?: never;
|
|
894
|
+
$unknown?: never;
|
|
895
|
+
}
|
|
896
|
+
interface SearchResultMember {
|
|
897
|
+
json?: never;
|
|
898
|
+
text?: never;
|
|
899
|
+
image?: never;
|
|
900
|
+
document?: never;
|
|
901
|
+
video?: never;
|
|
902
|
+
searchResult: SearchResultBlock;
|
|
1087
903
|
$unknown?: never;
|
|
1088
904
|
}
|
|
1089
905
|
interface $UnknownMember {
|
|
@@ -1092,6 +908,7 @@ export declare namespace ToolResultContentBlock {
|
|
|
1092
908
|
image?: never;
|
|
1093
909
|
document?: never;
|
|
1094
910
|
video?: never;
|
|
911
|
+
searchResult?: never;
|
|
1095
912
|
$unknown: [string, any];
|
|
1096
913
|
}
|
|
1097
914
|
interface Visitor<T> {
|
|
@@ -1100,25 +917,16 @@ export declare namespace ToolResultContentBlock {
|
|
|
1100
917
|
image: (value: ImageBlock) => T;
|
|
1101
918
|
document: (value: DocumentBlock) => T;
|
|
1102
919
|
video: (value: VideoBlock) => T;
|
|
920
|
+
searchResult: (value: SearchResultBlock) => T;
|
|
1103
921
|
_: (name: string, value: any) => T;
|
|
1104
922
|
}
|
|
1105
923
|
}
|
|
1106
|
-
export declare const ToolResultStatus: {
|
|
1107
|
-
readonly ERROR: "error";
|
|
1108
|
-
readonly SUCCESS: "success";
|
|
1109
|
-
};
|
|
1110
|
-
export type ToolResultStatus =
|
|
1111
|
-
(typeof ToolResultStatus)[keyof typeof ToolResultStatus];
|
|
1112
924
|
export interface ToolResultBlock {
|
|
1113
925
|
toolUseId: string | undefined;
|
|
1114
926
|
content: ToolResultContentBlock[] | undefined;
|
|
1115
927
|
status?: ToolResultStatus | undefined;
|
|
1116
928
|
type?: string | undefined;
|
|
1117
929
|
}
|
|
1118
|
-
export declare const ToolUseType: {
|
|
1119
|
-
readonly SERVER_TOOL_USE: "server_tool_use";
|
|
1120
|
-
};
|
|
1121
|
-
export type ToolUseType = (typeof ToolUseType)[keyof typeof ToolUseType];
|
|
1122
930
|
export interface ToolUseBlock {
|
|
1123
931
|
toolUseId: string | undefined;
|
|
1124
932
|
name: string | undefined;
|
|
@@ -1132,6 +940,7 @@ export type ContentBlock =
|
|
|
1132
940
|
| ContentBlock.GuardContentMember
|
|
1133
941
|
| ContentBlock.ImageMember
|
|
1134
942
|
| ContentBlock.ReasoningContentMember
|
|
943
|
+
| ContentBlock.SearchResultMember
|
|
1135
944
|
| ContentBlock.TextMember
|
|
1136
945
|
| ContentBlock.ToolResultMember
|
|
1137
946
|
| ContentBlock.ToolUseMember
|
|
@@ -1149,6 +958,7 @@ export declare namespace ContentBlock {
|
|
|
1149
958
|
cachePoint?: never;
|
|
1150
959
|
reasoningContent?: never;
|
|
1151
960
|
citationsContent?: never;
|
|
961
|
+
searchResult?: never;
|
|
1152
962
|
$unknown?: never;
|
|
1153
963
|
}
|
|
1154
964
|
interface ImageMember {
|
|
@@ -1162,6 +972,7 @@ export declare namespace ContentBlock {
|
|
|
1162
972
|
cachePoint?: never;
|
|
1163
973
|
reasoningContent?: never;
|
|
1164
974
|
citationsContent?: never;
|
|
975
|
+
searchResult?: never;
|
|
1165
976
|
$unknown?: never;
|
|
1166
977
|
}
|
|
1167
978
|
interface DocumentMember {
|
|
@@ -1175,6 +986,7 @@ export declare namespace ContentBlock {
|
|
|
1175
986
|
cachePoint?: never;
|
|
1176
987
|
reasoningContent?: never;
|
|
1177
988
|
citationsContent?: never;
|
|
989
|
+
searchResult?: never;
|
|
1178
990
|
$unknown?: never;
|
|
1179
991
|
}
|
|
1180
992
|
interface VideoMember {
|
|
@@ -1188,6 +1000,7 @@ export declare namespace ContentBlock {
|
|
|
1188
1000
|
cachePoint?: never;
|
|
1189
1001
|
reasoningContent?: never;
|
|
1190
1002
|
citationsContent?: never;
|
|
1003
|
+
searchResult?: never;
|
|
1191
1004
|
$unknown?: never;
|
|
1192
1005
|
}
|
|
1193
1006
|
interface ToolUseMember {
|
|
@@ -1201,6 +1014,7 @@ export declare namespace ContentBlock {
|
|
|
1201
1014
|
cachePoint?: never;
|
|
1202
1015
|
reasoningContent?: never;
|
|
1203
1016
|
citationsContent?: never;
|
|
1017
|
+
searchResult?: never;
|
|
1204
1018
|
$unknown?: never;
|
|
1205
1019
|
}
|
|
1206
1020
|
interface ToolResultMember {
|
|
@@ -1214,6 +1028,7 @@ export declare namespace ContentBlock {
|
|
|
1214
1028
|
cachePoint?: never;
|
|
1215
1029
|
reasoningContent?: never;
|
|
1216
1030
|
citationsContent?: never;
|
|
1031
|
+
searchResult?: never;
|
|
1217
1032
|
$unknown?: never;
|
|
1218
1033
|
}
|
|
1219
1034
|
interface GuardContentMember {
|
|
@@ -1227,6 +1042,7 @@ export declare namespace ContentBlock {
|
|
|
1227
1042
|
cachePoint?: never;
|
|
1228
1043
|
reasoningContent?: never;
|
|
1229
1044
|
citationsContent?: never;
|
|
1045
|
+
searchResult?: never;
|
|
1230
1046
|
$unknown?: never;
|
|
1231
1047
|
}
|
|
1232
1048
|
interface CachePointMember {
|
|
@@ -1240,6 +1056,7 @@ export declare namespace ContentBlock {
|
|
|
1240
1056
|
cachePoint: CachePointBlock;
|
|
1241
1057
|
reasoningContent?: never;
|
|
1242
1058
|
citationsContent?: never;
|
|
1059
|
+
searchResult?: never;
|
|
1243
1060
|
$unknown?: never;
|
|
1244
1061
|
}
|
|
1245
1062
|
interface ReasoningContentMember {
|
|
@@ -1253,6 +1070,7 @@ export declare namespace ContentBlock {
|
|
|
1253
1070
|
cachePoint?: never;
|
|
1254
1071
|
reasoningContent: ReasoningContentBlock;
|
|
1255
1072
|
citationsContent?: never;
|
|
1073
|
+
searchResult?: never;
|
|
1256
1074
|
$unknown?: never;
|
|
1257
1075
|
}
|
|
1258
1076
|
interface CitationsContentMember {
|
|
@@ -1266,6 +1084,21 @@ export declare namespace ContentBlock {
|
|
|
1266
1084
|
cachePoint?: never;
|
|
1267
1085
|
reasoningContent?: never;
|
|
1268
1086
|
citationsContent: CitationsContentBlock;
|
|
1087
|
+
searchResult?: never;
|
|
1088
|
+
$unknown?: never;
|
|
1089
|
+
}
|
|
1090
|
+
interface SearchResultMember {
|
|
1091
|
+
text?: never;
|
|
1092
|
+
image?: never;
|
|
1093
|
+
document?: never;
|
|
1094
|
+
video?: never;
|
|
1095
|
+
toolUse?: never;
|
|
1096
|
+
toolResult?: never;
|
|
1097
|
+
guardContent?: never;
|
|
1098
|
+
cachePoint?: never;
|
|
1099
|
+
reasoningContent?: never;
|
|
1100
|
+
citationsContent?: never;
|
|
1101
|
+
searchResult: SearchResultBlock;
|
|
1269
1102
|
$unknown?: never;
|
|
1270
1103
|
}
|
|
1271
1104
|
interface $UnknownMember {
|
|
@@ -1279,6 +1112,7 @@ export declare namespace ContentBlock {
|
|
|
1279
1112
|
cachePoint?: never;
|
|
1280
1113
|
reasoningContent?: never;
|
|
1281
1114
|
citationsContent?: never;
|
|
1115
|
+
searchResult?: never;
|
|
1282
1116
|
$unknown: [string, any];
|
|
1283
1117
|
}
|
|
1284
1118
|
interface Visitor<T> {
|
|
@@ -1292,25 +1126,14 @@ export declare namespace ContentBlock {
|
|
|
1292
1126
|
cachePoint: (value: CachePointBlock) => T;
|
|
1293
1127
|
reasoningContent: (value: ReasoningContentBlock) => T;
|
|
1294
1128
|
citationsContent: (value: CitationsContentBlock) => T;
|
|
1129
|
+
searchResult: (value: SearchResultBlock) => T;
|
|
1295
1130
|
_: (name: string, value: any) => T;
|
|
1296
1131
|
}
|
|
1297
1132
|
}
|
|
1298
|
-
export declare const ConversationRole: {
|
|
1299
|
-
readonly ASSISTANT: "assistant";
|
|
1300
|
-
readonly USER: "user";
|
|
1301
|
-
};
|
|
1302
|
-
export type ConversationRole =
|
|
1303
|
-
(typeof ConversationRole)[keyof typeof ConversationRole];
|
|
1304
1133
|
export interface Message {
|
|
1305
1134
|
role: ConversationRole | undefined;
|
|
1306
1135
|
content: ContentBlock[] | undefined;
|
|
1307
1136
|
}
|
|
1308
|
-
export declare const PerformanceConfigLatency: {
|
|
1309
|
-
readonly OPTIMIZED: "optimized";
|
|
1310
|
-
readonly STANDARD: "standard";
|
|
1311
|
-
};
|
|
1312
|
-
export type PerformanceConfigLatency =
|
|
1313
|
-
(typeof PerformanceConfigLatency)[keyof typeof PerformanceConfigLatency];
|
|
1314
1137
|
export interface PerformanceConfiguration {
|
|
1315
1138
|
latency?: PerformanceConfigLatency | undefined;
|
|
1316
1139
|
}
|
|
@@ -1331,13 +1154,6 @@ export declare namespace PromptVariableValues {
|
|
|
1331
1154
|
_: (name: string, value: any) => T;
|
|
1332
1155
|
}
|
|
1333
1156
|
}
|
|
1334
|
-
export declare const ServiceTierType: {
|
|
1335
|
-
readonly DEFAULT: "default";
|
|
1336
|
-
readonly FLEX: "flex";
|
|
1337
|
-
readonly PRIORITY: "priority";
|
|
1338
|
-
};
|
|
1339
|
-
export type ServiceTierType =
|
|
1340
|
-
(typeof ServiceTierType)[keyof typeof ServiceTierType];
|
|
1341
1157
|
export interface ServiceTier {
|
|
1342
1158
|
type: ServiceTierType | undefined;
|
|
1343
1159
|
}
|
|
@@ -1520,16 +1336,6 @@ export declare namespace ConverseOutput {
|
|
|
1520
1336
|
_: (name: string, value: any) => T;
|
|
1521
1337
|
}
|
|
1522
1338
|
}
|
|
1523
|
-
export declare const StopReason: {
|
|
1524
|
-
readonly CONTENT_FILTERED: "content_filtered";
|
|
1525
|
-
readonly END_TURN: "end_turn";
|
|
1526
|
-
readonly GUARDRAIL_INTERVENED: "guardrail_intervened";
|
|
1527
|
-
readonly MAX_TOKENS: "max_tokens";
|
|
1528
|
-
readonly MODEL_CONTEXT_WINDOW_EXCEEDED: "model_context_window_exceeded";
|
|
1529
|
-
readonly STOP_SEQUENCE: "stop_sequence";
|
|
1530
|
-
readonly TOOL_USE: "tool_use";
|
|
1531
|
-
};
|
|
1532
|
-
export type StopReason = (typeof StopReason)[keyof typeof StopReason];
|
|
1533
1339
|
export interface GuardrailTraceAssessment {
|
|
1534
1340
|
modelOutput?: string[] | undefined;
|
|
1535
1341
|
inputAssessment?: Record<string, GuardrailAssessment> | undefined;
|
|
@@ -1560,36 +1366,6 @@ export interface ConverseResponse {
|
|
|
1560
1366
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
1561
1367
|
serviceTier?: ServiceTier | undefined;
|
|
1562
1368
|
}
|
|
1563
|
-
export declare class ModelErrorException extends __BaseException {
|
|
1564
|
-
readonly name: "ModelErrorException";
|
|
1565
|
-
readonly $fault: "client";
|
|
1566
|
-
originalStatusCode?: number | undefined;
|
|
1567
|
-
resourceName?: string | undefined;
|
|
1568
|
-
constructor(
|
|
1569
|
-
opts: __ExceptionOptionType<ModelErrorException, __BaseException>
|
|
1570
|
-
);
|
|
1571
|
-
}
|
|
1572
|
-
export declare class ModelNotReadyException extends __BaseException {
|
|
1573
|
-
readonly name: "ModelNotReadyException";
|
|
1574
|
-
readonly $fault: "client";
|
|
1575
|
-
$retryable: {};
|
|
1576
|
-
constructor(
|
|
1577
|
-
opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>
|
|
1578
|
-
);
|
|
1579
|
-
}
|
|
1580
|
-
export declare class ModelTimeoutException extends __BaseException {
|
|
1581
|
-
readonly name: "ModelTimeoutException";
|
|
1582
|
-
readonly $fault: "client";
|
|
1583
|
-
constructor(
|
|
1584
|
-
opts: __ExceptionOptionType<ModelTimeoutException, __BaseException>
|
|
1585
|
-
);
|
|
1586
|
-
}
|
|
1587
|
-
export declare const GuardrailStreamProcessingMode: {
|
|
1588
|
-
readonly ASYNC: "async";
|
|
1589
|
-
readonly SYNC: "sync";
|
|
1590
|
-
};
|
|
1591
|
-
export type GuardrailStreamProcessingMode =
|
|
1592
|
-
(typeof GuardrailStreamProcessingMode)[keyof typeof GuardrailStreamProcessingMode];
|
|
1593
1369
|
export interface GuardrailStreamConfiguration {
|
|
1594
1370
|
guardrailIdentifier: string | undefined;
|
|
1595
1371
|
guardrailVersion: string | undefined;
|
|
@@ -1615,6 +1391,7 @@ export interface CitationSourceContentDelta {
|
|
|
1615
1391
|
}
|
|
1616
1392
|
export interface CitationsDelta {
|
|
1617
1393
|
title?: string | undefined;
|
|
1394
|
+
source?: string | undefined;
|
|
1618
1395
|
sourceContent?: CitationSourceContentDelta[] | undefined;
|
|
1619
1396
|
location?: CitationLocation | undefined;
|
|
1620
1397
|
}
|
|
@@ -1808,15 +1585,6 @@ export interface ConverseStreamMetadataEvent {
|
|
|
1808
1585
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
1809
1586
|
serviceTier?: ServiceTier | undefined;
|
|
1810
1587
|
}
|
|
1811
|
-
export declare class ModelStreamErrorException extends __BaseException {
|
|
1812
|
-
readonly name: "ModelStreamErrorException";
|
|
1813
|
-
readonly $fault: "client";
|
|
1814
|
-
originalStatusCode?: number | undefined;
|
|
1815
|
-
originalMessage?: string | undefined;
|
|
1816
|
-
constructor(
|
|
1817
|
-
opts: __ExceptionOptionType<ModelStreamErrorException, __BaseException>
|
|
1818
|
-
);
|
|
1819
|
-
}
|
|
1820
1588
|
export type ConverseStreamOutput =
|
|
1821
1589
|
| ConverseStreamOutput.ContentBlockDeltaMember
|
|
1822
1590
|
| ConverseStreamOutput.ContentBlockStartMember
|
|
@@ -2017,12 +1785,6 @@ export declare namespace ConverseStreamOutput {
|
|
|
2017
1785
|
export interface ConverseStreamResponse {
|
|
2018
1786
|
stream?: AsyncIterable<ConverseStreamOutput> | undefined;
|
|
2019
1787
|
}
|
|
2020
|
-
export declare const Trace: {
|
|
2021
|
-
readonly DISABLED: "DISABLED";
|
|
2022
|
-
readonly ENABLED: "ENABLED";
|
|
2023
|
-
readonly ENABLED_FULL: "ENABLED_FULL";
|
|
2024
|
-
};
|
|
2025
|
-
export type Trace = (typeof Trace)[keyof typeof Trace];
|
|
2026
1788
|
export interface InvokeModelRequest {
|
|
2027
1789
|
body?: Uint8Array | undefined;
|
|
2028
1790
|
contentType?: string | undefined;
|