@aws-sdk/client-bedrock-agent-runtime 3.934.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 +345 -345
- package/dist-es/index.js +2 -1
- package/dist-es/models/enums.js +330 -0
- package/dist-es/models/errors.js +127 -0
- package/dist-es/models/models_0.js +1 -431
- package/dist-es/schemas/schemas_0.js +1 -1
- package/dist-types/commands/CreateInvocationCommand.d.ts +1 -1
- package/dist-types/commands/CreateSessionCommand.d.ts +1 -1
- package/dist-types/commands/DeleteSessionCommand.d.ts +1 -1
- package/dist-types/commands/EndSessionCommand.d.ts +1 -1
- package/dist-types/commands/GetInvocationStepCommand.d.ts +1 -1
- package/dist-types/commands/GetSessionCommand.d.ts +1 -1
- package/dist-types/commands/InvokeAgentCommand.d.ts +1 -2
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +1 -2
- package/dist-types/commands/ListInvocationStepsCommand.d.ts +1 -1
- package/dist-types/commands/ListInvocationsCommand.d.ts +1 -1
- package/dist-types/commands/ListSessionsCommand.d.ts +1 -1
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/commands/PutInvocationStepCommand.d.ts +1 -1
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +1 -1
- package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +1 -1
- package/dist-types/commands/RetrieveCommand.d.ts +1 -1
- package/dist-types/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSessionCommand.d.ts +1 -1
- package/dist-types/index.d.ts +3 -1
- package/dist-types/models/enums.d.ts +850 -0
- package/dist-types/models/errors.d.ts +137 -0
- package/dist-types/models/models_0.d.ts +2078 -914
- package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +1 -2
- package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +4 -2
- package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +1 -1
- package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +1 -1
- package/dist-types/ts3.4/index.d.ts +3 -1
- package/dist-types/ts3.4/models/enums.d.ts +442 -0
- package/dist-types/ts3.4/models/errors.d.ts +73 -0
- package/dist-types/ts3.4/models/models_0.d.ts +968 -479
- package/package.json +12 -12
- package/dist-es/models/index.js +0 -2
- package/dist-es/models/models_1.js +0 -26
- package/dist-types/models/index.d.ts +0 -2
- package/dist-types/models/models_1.d.ts +0 -2151
- package/dist-types/ts3.4/models/index.d.ts +0 -2
- package/dist-types/ts3.4/models/models_1.d.ts +0 -969
|
@@ -1,18 +1,83 @@
|
|
|
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
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
2
|
+
import {
|
|
3
|
+
ActionGroupSignature,
|
|
4
|
+
ActionInvocationType,
|
|
5
|
+
AgentCollaboration,
|
|
6
|
+
AttributeType,
|
|
7
|
+
ConfirmationState,
|
|
8
|
+
ConversationRole,
|
|
9
|
+
CreationMode,
|
|
10
|
+
CustomControlMethod,
|
|
11
|
+
ExecutionType,
|
|
12
|
+
ExternalSourceType,
|
|
13
|
+
FileSourceType,
|
|
14
|
+
FileUseCase,
|
|
15
|
+
FlowCompletionReason,
|
|
16
|
+
FlowControlNodeType,
|
|
17
|
+
FlowErrorCode,
|
|
18
|
+
FlowExecutionErrorType,
|
|
19
|
+
FlowExecutionEventType,
|
|
20
|
+
FlowExecutionStatus,
|
|
21
|
+
FlowNodeInputCategory,
|
|
22
|
+
FlowNodeIODataType,
|
|
23
|
+
GeneratedQueryType,
|
|
24
|
+
GuadrailAction,
|
|
25
|
+
GuardrailAction,
|
|
26
|
+
GuardrailContentFilterConfidence,
|
|
27
|
+
GuardrailContentFilterType,
|
|
28
|
+
GuardrailContentPolicyAction,
|
|
29
|
+
GuardrailManagedWordType,
|
|
30
|
+
GuardrailPiiEntityType,
|
|
31
|
+
GuardrailSensitiveInformationPolicyAction,
|
|
32
|
+
GuardrailTopicPolicyAction,
|
|
33
|
+
GuardrailTopicType,
|
|
34
|
+
GuardrailWordPolicyAction,
|
|
35
|
+
ImageFormat,
|
|
36
|
+
ImageInputFormat,
|
|
37
|
+
InputQueryType,
|
|
38
|
+
InvocationType,
|
|
39
|
+
MemoryType,
|
|
40
|
+
NodeErrorCode,
|
|
41
|
+
NodeType,
|
|
42
|
+
OrchestrationType,
|
|
43
|
+
ParameterType,
|
|
44
|
+
PayloadType,
|
|
45
|
+
PerformanceConfigLatency,
|
|
46
|
+
PromptState,
|
|
47
|
+
PromptType,
|
|
48
|
+
QueryTransformationMode,
|
|
49
|
+
QueryTransformationType,
|
|
50
|
+
RelayConversationHistory,
|
|
51
|
+
RequireConfirmation,
|
|
52
|
+
RerankDocumentType,
|
|
53
|
+
RerankingConfigurationType,
|
|
54
|
+
RerankingMetadataSelectionMode,
|
|
55
|
+
RerankQueryContentType,
|
|
56
|
+
RerankSourceType,
|
|
57
|
+
ResponseState,
|
|
58
|
+
RetrievalResultContentColumnType,
|
|
59
|
+
RetrievalResultContentType,
|
|
60
|
+
RetrievalResultLocationType,
|
|
61
|
+
RetrieveAndGenerateType,
|
|
62
|
+
SearchType,
|
|
63
|
+
SessionStatus,
|
|
64
|
+
Source,
|
|
65
|
+
TextToSqlConfigurationType,
|
|
66
|
+
Type,
|
|
67
|
+
VectorSearchRerankingConfigurationType,
|
|
68
|
+
} from "./enums";
|
|
69
|
+
import {
|
|
70
|
+
AccessDeniedException,
|
|
71
|
+
BadGatewayException,
|
|
72
|
+
ConflictException,
|
|
73
|
+
DependencyFailedException,
|
|
74
|
+
InternalServerException,
|
|
75
|
+
ModelNotReadyException,
|
|
76
|
+
ResourceNotFoundException,
|
|
77
|
+
ServiceQuotaExceededException,
|
|
78
|
+
ThrottlingException,
|
|
79
|
+
ValidationException,
|
|
80
|
+
} from "./errors";
|
|
16
81
|
export type ActionGroupExecutor =
|
|
17
82
|
| ActionGroupExecutor.CustomControlMember
|
|
18
83
|
| ActionGroupExecutor.LambdaMember
|
|
@@ -39,11 +104,6 @@ export declare namespace ActionGroupExecutor {
|
|
|
39
104
|
_: (name: string, value: any) => T;
|
|
40
105
|
}
|
|
41
106
|
}
|
|
42
|
-
export declare const ExecutionType: {
|
|
43
|
-
readonly LAMBDA: "LAMBDA";
|
|
44
|
-
readonly RETURN_CONTROL: "RETURN_CONTROL";
|
|
45
|
-
};
|
|
46
|
-
export type ExecutionType = (typeof ExecutionType)[keyof typeof ExecutionType];
|
|
47
107
|
export interface Parameter {
|
|
48
108
|
name?: string | undefined;
|
|
49
109
|
type?: string | undefined;
|
|
@@ -78,22 +138,6 @@ export interface ActionGroupInvocationOutput {
|
|
|
78
138
|
text?: string | undefined;
|
|
79
139
|
metadata?: Metadata | undefined;
|
|
80
140
|
}
|
|
81
|
-
export declare const ActionGroupSignature: {
|
|
82
|
-
readonly AMAZON_CODEINTERPRETER: "AMAZON.CodeInterpreter";
|
|
83
|
-
readonly AMAZON_USERINPUT: "AMAZON.UserInput";
|
|
84
|
-
readonly ANTHROPIC_BASH: "ANTHROPIC.Bash";
|
|
85
|
-
readonly ANTHROPIC_COMPUTER: "ANTHROPIC.Computer";
|
|
86
|
-
readonly ANTHROPIC_TEXTEDITOR: "ANTHROPIC.TextEditor";
|
|
87
|
-
};
|
|
88
|
-
export type ActionGroupSignature =
|
|
89
|
-
(typeof ActionGroupSignature)[keyof typeof ActionGroupSignature];
|
|
90
|
-
export declare const ActionInvocationType: {
|
|
91
|
-
readonly RESULT: "RESULT";
|
|
92
|
-
readonly USER_CONFIRMATION: "USER_CONFIRMATION";
|
|
93
|
-
readonly USER_CONFIRMATION_AND_RESULT: "USER_CONFIRMATION_AND_RESULT";
|
|
94
|
-
};
|
|
95
|
-
export type ActionInvocationType =
|
|
96
|
-
(typeof ActionInvocationType)[keyof typeof ActionInvocationType];
|
|
97
141
|
export interface S3Identifier {
|
|
98
142
|
s3BucketName?: string | undefined;
|
|
99
143
|
s3ObjectKey?: string | undefined;
|
|
@@ -124,25 +168,11 @@ export declare namespace APISchema {
|
|
|
124
168
|
_: (name: string, value: any) => T;
|
|
125
169
|
}
|
|
126
170
|
}
|
|
127
|
-
export declare const ParameterType: {
|
|
128
|
-
readonly ARRAY: "array";
|
|
129
|
-
readonly BOOLEAN: "boolean";
|
|
130
|
-
readonly INTEGER: "integer";
|
|
131
|
-
readonly NUMBER: "number";
|
|
132
|
-
readonly STRING: "string";
|
|
133
|
-
};
|
|
134
|
-
export type ParameterType = (typeof ParameterType)[keyof typeof ParameterType];
|
|
135
171
|
export interface ParameterDetail {
|
|
136
172
|
description?: string | undefined;
|
|
137
173
|
type: ParameterType | undefined;
|
|
138
174
|
required?: boolean | undefined;
|
|
139
175
|
}
|
|
140
|
-
export declare const RequireConfirmation: {
|
|
141
|
-
readonly DISABLED: "DISABLED";
|
|
142
|
-
readonly ENABLED: "ENABLED";
|
|
143
|
-
};
|
|
144
|
-
export type RequireConfirmation =
|
|
145
|
-
(typeof RequireConfirmation)[keyof typeof RequireConfirmation];
|
|
146
176
|
export interface FunctionDefinition {
|
|
147
177
|
name: string | undefined;
|
|
148
178
|
description?: string | undefined;
|
|
@@ -175,27 +205,6 @@ export interface AgentActionGroup {
|
|
|
175
205
|
functionSchema?: FunctionSchema | undefined;
|
|
176
206
|
parentActionGroupSignatureParams?: Record<string, string> | undefined;
|
|
177
207
|
}
|
|
178
|
-
export declare const AgentCollaboration: {
|
|
179
|
-
readonly DISABLED: "DISABLED";
|
|
180
|
-
readonly SUPERVISOR: "SUPERVISOR";
|
|
181
|
-
readonly SUPERVISOR_ROUTER: "SUPERVISOR_ROUTER";
|
|
182
|
-
};
|
|
183
|
-
export type AgentCollaboration =
|
|
184
|
-
(typeof AgentCollaboration)[keyof typeof AgentCollaboration];
|
|
185
|
-
export declare const ConfirmationState: {
|
|
186
|
-
readonly CONFIRM: "CONFIRM";
|
|
187
|
-
readonly DENY: "DENY";
|
|
188
|
-
};
|
|
189
|
-
export type ConfirmationState =
|
|
190
|
-
(typeof ConfirmationState)[keyof typeof ConfirmationState];
|
|
191
|
-
export declare const ImageInputFormat: {
|
|
192
|
-
readonly GIF: "gif";
|
|
193
|
-
readonly JPEG: "jpeg";
|
|
194
|
-
readonly PNG: "png";
|
|
195
|
-
readonly WEBP: "webp";
|
|
196
|
-
};
|
|
197
|
-
export type ImageInputFormat =
|
|
198
|
-
(typeof ImageInputFormat)[keyof typeof ImageInputFormat];
|
|
199
208
|
export type ImageInputSource =
|
|
200
209
|
| ImageInputSource.BytesMember
|
|
201
210
|
| ImageInputSource.$UnknownMember;
|
|
@@ -221,11 +230,6 @@ export interface ContentBody {
|
|
|
221
230
|
body?: string | undefined;
|
|
222
231
|
images?: ImageInput[] | undefined;
|
|
223
232
|
}
|
|
224
|
-
export declare const ResponseState: {
|
|
225
|
-
readonly FAILURE: "FAILURE";
|
|
226
|
-
readonly REPROMPT: "REPROMPT";
|
|
227
|
-
};
|
|
228
|
-
export type ResponseState = (typeof ResponseState)[keyof typeof ResponseState];
|
|
229
233
|
export interface ApiResult {
|
|
230
234
|
actionGroup: string | undefined;
|
|
231
235
|
httpMethod?: string | undefined;
|
|
@@ -274,11 +278,6 @@ export interface ReturnControlResults {
|
|
|
274
278
|
invocationId?: string | undefined;
|
|
275
279
|
returnControlInvocationResults?: InvocationResultMember[] | undefined;
|
|
276
280
|
}
|
|
277
|
-
export declare const PayloadType: {
|
|
278
|
-
readonly RETURN_CONTROL: "RETURN_CONTROL";
|
|
279
|
-
readonly TEXT: "TEXT";
|
|
280
|
-
};
|
|
281
|
-
export type PayloadType = (typeof PayloadType)[keyof typeof PayloadType];
|
|
282
281
|
export interface AgentCollaboratorInputPayload {
|
|
283
282
|
type?: PayloadType | undefined;
|
|
284
283
|
text?: string | undefined;
|
|
@@ -392,35 +391,6 @@ export interface FailureTrace {
|
|
|
392
391
|
failureCode?: number | undefined;
|
|
393
392
|
metadata?: Metadata | undefined;
|
|
394
393
|
}
|
|
395
|
-
export declare const GuardrailAction: {
|
|
396
|
-
readonly INTERVENED: "INTERVENED";
|
|
397
|
-
readonly NONE: "NONE";
|
|
398
|
-
};
|
|
399
|
-
export type GuardrailAction =
|
|
400
|
-
(typeof GuardrailAction)[keyof typeof GuardrailAction];
|
|
401
|
-
export declare const GuardrailContentPolicyAction: {
|
|
402
|
-
readonly BLOCKED: "BLOCKED";
|
|
403
|
-
};
|
|
404
|
-
export type GuardrailContentPolicyAction =
|
|
405
|
-
(typeof GuardrailContentPolicyAction)[keyof typeof GuardrailContentPolicyAction];
|
|
406
|
-
export declare const GuardrailContentFilterConfidence: {
|
|
407
|
-
readonly HIGH: "HIGH";
|
|
408
|
-
readonly LOW: "LOW";
|
|
409
|
-
readonly MEDIUM: "MEDIUM";
|
|
410
|
-
readonly NONE: "NONE";
|
|
411
|
-
};
|
|
412
|
-
export type GuardrailContentFilterConfidence =
|
|
413
|
-
(typeof GuardrailContentFilterConfidence)[keyof typeof GuardrailContentFilterConfidence];
|
|
414
|
-
export declare const GuardrailContentFilterType: {
|
|
415
|
-
readonly HATE: "HATE";
|
|
416
|
-
readonly INSULTS: "INSULTS";
|
|
417
|
-
readonly MISCONDUCT: "MISCONDUCT";
|
|
418
|
-
readonly PROMPT_ATTACK: "PROMPT_ATTACK";
|
|
419
|
-
readonly SEXUAL: "SEXUAL";
|
|
420
|
-
readonly VIOLENCE: "VIOLENCE";
|
|
421
|
-
};
|
|
422
|
-
export type GuardrailContentFilterType =
|
|
423
|
-
(typeof GuardrailContentFilterType)[keyof typeof GuardrailContentFilterType];
|
|
424
394
|
export interface GuardrailContentFilter {
|
|
425
395
|
type?: GuardrailContentFilterType | undefined;
|
|
426
396
|
confidence?: GuardrailContentFilterConfidence | undefined;
|
|
@@ -429,47 +399,6 @@ export interface GuardrailContentFilter {
|
|
|
429
399
|
export interface GuardrailContentPolicyAssessment {
|
|
430
400
|
filters?: GuardrailContentFilter[] | undefined;
|
|
431
401
|
}
|
|
432
|
-
export declare const GuardrailSensitiveInformationPolicyAction: {
|
|
433
|
-
readonly ANONYMIZED: "ANONYMIZED";
|
|
434
|
-
readonly BLOCKED: "BLOCKED";
|
|
435
|
-
};
|
|
436
|
-
export type GuardrailSensitiveInformationPolicyAction =
|
|
437
|
-
(typeof GuardrailSensitiveInformationPolicyAction)[keyof typeof GuardrailSensitiveInformationPolicyAction];
|
|
438
|
-
export declare const GuardrailPiiEntityType: {
|
|
439
|
-
readonly ADDRESS: "ADDRESS";
|
|
440
|
-
readonly AGE: "AGE";
|
|
441
|
-
readonly AWS_ACCESS_KEY: "AWS_ACCESS_KEY";
|
|
442
|
-
readonly AWS_SECRET_KEY: "AWS_SECRET_KEY";
|
|
443
|
-
readonly CA_HEALTH_NUMBER: "CA_HEALTH_NUMBER";
|
|
444
|
-
readonly CA_SOCIAL_INSURANCE_NUMBER: "CA_SOCIAL_INSURANCE_NUMBER";
|
|
445
|
-
readonly CREDIT_DEBIT_CARD_CVV: "CREDIT_DEBIT_CARD_CVV";
|
|
446
|
-
readonly CREDIT_DEBIT_CARD_EXPIRY: "CREDIT_DEBIT_CARD_EXPIRY";
|
|
447
|
-
readonly CREDIT_DEBIT_CARD_NUMBER: "CREDIT_DEBIT_CARD_NUMBER";
|
|
448
|
-
readonly DRIVER_ID: "DRIVER_ID";
|
|
449
|
-
readonly EMAIL: "EMAIL";
|
|
450
|
-
readonly INTERNATIONAL_BANK_ACCOUNT_NUMBER: "INTERNATIONAL_BANK_ACCOUNT_NUMBER";
|
|
451
|
-
readonly IP_ADDRESS: "IP_ADDRESS";
|
|
452
|
-
readonly LICENSE_PLATE: "LICENSE_PLATE";
|
|
453
|
-
readonly MAC_ADDRESS: "MAC_ADDRESS";
|
|
454
|
-
readonly NAME: "NAME";
|
|
455
|
-
readonly PASSWORD: "PASSWORD";
|
|
456
|
-
readonly PHONE: "PHONE";
|
|
457
|
-
readonly PIN: "PIN";
|
|
458
|
-
readonly SWIFT_CODE: "SWIFT_CODE";
|
|
459
|
-
readonly UK_NATIONAL_HEALTH_SERVICE_NUMBER: "UK_NATIONAL_HEALTH_SERVICE_NUMBER";
|
|
460
|
-
readonly UK_NATIONAL_INSURANCE_NUMBER: "UK_NATIONAL_INSURANCE_NUMBER";
|
|
461
|
-
readonly UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER: "UK_UNIQUE_TAXPAYER_REFERENCE_NUMBER";
|
|
462
|
-
readonly URL: "URL";
|
|
463
|
-
readonly USERNAME: "USERNAME";
|
|
464
|
-
readonly US_BANK_ACCOUNT_NUMBER: "US_BANK_ACCOUNT_NUMBER";
|
|
465
|
-
readonly US_BANK_ROUTING_NUMBER: "US_BANK_ROUTING_NUMBER";
|
|
466
|
-
readonly US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER: "US_INDIVIDUAL_TAX_IDENTIFICATION_NUMBER";
|
|
467
|
-
readonly US_PASSPORT_NUMBER: "US_PASSPORT_NUMBER";
|
|
468
|
-
readonly US_SOCIAL_SECURITY_NUMBER: "US_SOCIAL_SECURITY_NUMBER";
|
|
469
|
-
readonly VEHICLE_IDENTIFICATION_NUMBER: "VEHICLE_IDENTIFICATION_NUMBER";
|
|
470
|
-
};
|
|
471
|
-
export type GuardrailPiiEntityType =
|
|
472
|
-
(typeof GuardrailPiiEntityType)[keyof typeof GuardrailPiiEntityType];
|
|
473
402
|
export interface GuardrailPiiEntityFilter {
|
|
474
403
|
type?: GuardrailPiiEntityType | undefined;
|
|
475
404
|
match?: string | undefined;
|
|
@@ -485,16 +414,6 @@ export interface GuardrailSensitiveInformationPolicyAssessment {
|
|
|
485
414
|
piiEntities?: GuardrailPiiEntityFilter[] | undefined;
|
|
486
415
|
regexes?: GuardrailRegexFilter[] | undefined;
|
|
487
416
|
}
|
|
488
|
-
export declare const GuardrailTopicPolicyAction: {
|
|
489
|
-
readonly BLOCKED: "BLOCKED";
|
|
490
|
-
};
|
|
491
|
-
export type GuardrailTopicPolicyAction =
|
|
492
|
-
(typeof GuardrailTopicPolicyAction)[keyof typeof GuardrailTopicPolicyAction];
|
|
493
|
-
export declare const GuardrailTopicType: {
|
|
494
|
-
readonly DENY: "DENY";
|
|
495
|
-
};
|
|
496
|
-
export type GuardrailTopicType =
|
|
497
|
-
(typeof GuardrailTopicType)[keyof typeof GuardrailTopicType];
|
|
498
417
|
export interface GuardrailTopic {
|
|
499
418
|
name?: string | undefined;
|
|
500
419
|
type?: GuardrailTopicType | undefined;
|
|
@@ -503,20 +422,10 @@ export interface GuardrailTopic {
|
|
|
503
422
|
export interface GuardrailTopicPolicyAssessment {
|
|
504
423
|
topics?: GuardrailTopic[] | undefined;
|
|
505
424
|
}
|
|
506
|
-
export declare const GuardrailWordPolicyAction: {
|
|
507
|
-
readonly BLOCKED: "BLOCKED";
|
|
508
|
-
};
|
|
509
|
-
export type GuardrailWordPolicyAction =
|
|
510
|
-
(typeof GuardrailWordPolicyAction)[keyof typeof GuardrailWordPolicyAction];
|
|
511
425
|
export interface GuardrailCustomWord {
|
|
512
426
|
match?: string | undefined;
|
|
513
427
|
action?: GuardrailWordPolicyAction | undefined;
|
|
514
428
|
}
|
|
515
|
-
export declare const GuardrailManagedWordType: {
|
|
516
|
-
readonly PROFANITY: "PROFANITY";
|
|
517
|
-
};
|
|
518
|
-
export type GuardrailManagedWordType =
|
|
519
|
-
(typeof GuardrailManagedWordType)[keyof typeof GuardrailManagedWordType];
|
|
520
429
|
export interface GuardrailManagedWord {
|
|
521
430
|
match?: string | undefined;
|
|
522
431
|
type?: GuardrailManagedWordType | undefined;
|
|
@@ -545,15 +454,6 @@ export interface CodeInterpreterInvocationInput {
|
|
|
545
454
|
code?: string | undefined;
|
|
546
455
|
files?: string[] | undefined;
|
|
547
456
|
}
|
|
548
|
-
export declare const InvocationType: {
|
|
549
|
-
readonly ACTION_GROUP: "ACTION_GROUP";
|
|
550
|
-
readonly ACTION_GROUP_CODE_INTERPRETER: "ACTION_GROUP_CODE_INTERPRETER";
|
|
551
|
-
readonly AGENT_COLLABORATOR: "AGENT_COLLABORATOR";
|
|
552
|
-
readonly FINISH: "FINISH";
|
|
553
|
-
readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
|
|
554
|
-
};
|
|
555
|
-
export type InvocationType =
|
|
556
|
-
(typeof InvocationType)[keyof typeof InvocationType];
|
|
557
457
|
export interface KnowledgeBaseLookupInput {
|
|
558
458
|
text?: string | undefined;
|
|
559
459
|
knowledgeBaseId?: string | undefined;
|
|
@@ -575,19 +475,6 @@ export interface InferenceConfiguration {
|
|
|
575
475
|
maximumLength?: number | undefined;
|
|
576
476
|
stopSequences?: string[] | undefined;
|
|
577
477
|
}
|
|
578
|
-
export declare const CreationMode: {
|
|
579
|
-
readonly DEFAULT: "DEFAULT";
|
|
580
|
-
readonly OVERRIDDEN: "OVERRIDDEN";
|
|
581
|
-
};
|
|
582
|
-
export type CreationMode = (typeof CreationMode)[keyof typeof CreationMode];
|
|
583
|
-
export declare const PromptType: {
|
|
584
|
-
readonly KNOWLEDGE_BASE_RESPONSE_GENERATION: "KNOWLEDGE_BASE_RESPONSE_GENERATION";
|
|
585
|
-
readonly ORCHESTRATION: "ORCHESTRATION";
|
|
586
|
-
readonly POST_PROCESSING: "POST_PROCESSING";
|
|
587
|
-
readonly PRE_PROCESSING: "PRE_PROCESSING";
|
|
588
|
-
readonly ROUTING_CLASSIFIER: "ROUTING_CLASSIFIER";
|
|
589
|
-
};
|
|
590
|
-
export type PromptType = (typeof PromptType)[keyof typeof PromptType];
|
|
591
478
|
export interface ModelInvocationInput {
|
|
592
479
|
traceId?: string | undefined;
|
|
593
480
|
text?: string | undefined;
|
|
@@ -648,28 +535,11 @@ export interface FinalResponse {
|
|
|
648
535
|
text?: string | undefined;
|
|
649
536
|
metadata?: Metadata | undefined;
|
|
650
537
|
}
|
|
651
|
-
export declare const RetrievalResultContentColumnType: {
|
|
652
|
-
readonly BLOB: "BLOB";
|
|
653
|
-
readonly BOOLEAN: "BOOLEAN";
|
|
654
|
-
readonly DOUBLE: "DOUBLE";
|
|
655
|
-
readonly LONG: "LONG";
|
|
656
|
-
readonly NULL: "NULL";
|
|
657
|
-
readonly STRING: "STRING";
|
|
658
|
-
};
|
|
659
|
-
export type RetrievalResultContentColumnType =
|
|
660
|
-
(typeof RetrievalResultContentColumnType)[keyof typeof RetrievalResultContentColumnType];
|
|
661
538
|
export interface RetrievalResultContentColumn {
|
|
662
539
|
columnName?: string | undefined;
|
|
663
540
|
columnValue?: string | undefined;
|
|
664
541
|
type?: RetrievalResultContentColumnType | undefined;
|
|
665
542
|
}
|
|
666
|
-
export declare const RetrievalResultContentType: {
|
|
667
|
-
readonly IMAGE: "IMAGE";
|
|
668
|
-
readonly ROW: "ROW";
|
|
669
|
-
readonly TEXT: "TEXT";
|
|
670
|
-
};
|
|
671
|
-
export type RetrievalResultContentType =
|
|
672
|
-
(typeof RetrievalResultContentType)[keyof typeof RetrievalResultContentType];
|
|
673
543
|
export interface RetrievalResultContent {
|
|
674
544
|
type?: RetrievalResultContentType | undefined;
|
|
675
545
|
text?: string | undefined;
|
|
@@ -697,18 +567,6 @@ export interface RetrievalResultSharePointLocation {
|
|
|
697
567
|
export interface RetrievalResultSqlLocation {
|
|
698
568
|
query?: string | undefined;
|
|
699
569
|
}
|
|
700
|
-
export declare const RetrievalResultLocationType: {
|
|
701
|
-
readonly CONFLUENCE: "CONFLUENCE";
|
|
702
|
-
readonly CUSTOM: "CUSTOM";
|
|
703
|
-
readonly KENDRA: "KENDRA";
|
|
704
|
-
readonly S3: "S3";
|
|
705
|
-
readonly SALESFORCE: "SALESFORCE";
|
|
706
|
-
readonly SHAREPOINT: "SHAREPOINT";
|
|
707
|
-
readonly SQL: "SQL";
|
|
708
|
-
readonly WEB: "WEB";
|
|
709
|
-
};
|
|
710
|
-
export type RetrievalResultLocationType =
|
|
711
|
-
(typeof RetrievalResultLocationType)[keyof typeof RetrievalResultLocationType];
|
|
712
570
|
export interface RetrievalResultWebLocation {
|
|
713
571
|
url?: string | undefined;
|
|
714
572
|
}
|
|
@@ -732,25 +590,10 @@ export interface KnowledgeBaseLookupOutput {
|
|
|
732
590
|
retrievedReferences?: RetrievedReference[] | undefined;
|
|
733
591
|
metadata?: Metadata | undefined;
|
|
734
592
|
}
|
|
735
|
-
export declare const Source: {
|
|
736
|
-
readonly ACTION_GROUP: "ACTION_GROUP";
|
|
737
|
-
readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
|
|
738
|
-
readonly PARSER: "PARSER";
|
|
739
|
-
};
|
|
740
|
-
export type Source = (typeof Source)[keyof typeof Source];
|
|
741
593
|
export interface RepromptResponse {
|
|
742
594
|
text?: string | undefined;
|
|
743
595
|
source?: Source | undefined;
|
|
744
596
|
}
|
|
745
|
-
export declare const Type: {
|
|
746
|
-
readonly ACTION_GROUP: "ACTION_GROUP";
|
|
747
|
-
readonly AGENT_COLLABORATOR: "AGENT_COLLABORATOR";
|
|
748
|
-
readonly ASK_USER: "ASK_USER";
|
|
749
|
-
readonly FINISH: "FINISH";
|
|
750
|
-
readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
|
|
751
|
-
readonly REPROMPT: "REPROMPT";
|
|
752
|
-
};
|
|
753
|
-
export type Type = (typeof Type)[keyof typeof Type];
|
|
754
597
|
export interface Observation {
|
|
755
598
|
traceId?: string | undefined;
|
|
756
599
|
type?: Type | undefined;
|
|
@@ -1084,59 +927,16 @@ export interface GetExecutionFlowSnapshotResponse {
|
|
|
1084
927
|
definition: string | undefined;
|
|
1085
928
|
customerEncryptionKeyArn?: string | undefined;
|
|
1086
929
|
}
|
|
1087
|
-
export declare class InternalServerException extends __BaseException {
|
|
1088
|
-
readonly name: "InternalServerException";
|
|
1089
|
-
readonly $fault: "server";
|
|
1090
|
-
reason?: string | undefined;
|
|
1091
|
-
constructor(
|
|
1092
|
-
opts: __ExceptionOptionType<InternalServerException, __BaseException>
|
|
1093
|
-
);
|
|
1094
|
-
}
|
|
1095
|
-
export declare class ResourceNotFoundException extends __BaseException {
|
|
1096
|
-
readonly name: "ResourceNotFoundException";
|
|
1097
|
-
readonly $fault: "client";
|
|
1098
|
-
constructor(
|
|
1099
|
-
opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
|
|
1100
|
-
);
|
|
1101
|
-
}
|
|
1102
|
-
export declare class ThrottlingException extends __BaseException {
|
|
1103
|
-
readonly name: "ThrottlingException";
|
|
1104
|
-
readonly $fault: "client";
|
|
1105
|
-
constructor(
|
|
1106
|
-
opts: __ExceptionOptionType<ThrottlingException, __BaseException>
|
|
1107
|
-
);
|
|
1108
|
-
}
|
|
1109
|
-
export declare class ValidationException extends __BaseException {
|
|
1110
|
-
readonly name: "ValidationException";
|
|
1111
|
-
readonly $fault: "client";
|
|
1112
|
-
constructor(
|
|
1113
|
-
opts: __ExceptionOptionType<ValidationException, __BaseException>
|
|
1114
|
-
);
|
|
1115
|
-
}
|
|
1116
930
|
export interface GetFlowExecutionRequest {
|
|
1117
931
|
flowIdentifier: string | undefined;
|
|
1118
932
|
flowAliasIdentifier: string | undefined;
|
|
1119
933
|
executionIdentifier: string | undefined;
|
|
1120
934
|
}
|
|
1121
|
-
export declare const FlowExecutionErrorType: {
|
|
1122
|
-
readonly TIMED_OUT: "ExecutionTimedOut";
|
|
1123
|
-
};
|
|
1124
|
-
export type FlowExecutionErrorType =
|
|
1125
|
-
(typeof FlowExecutionErrorType)[keyof typeof FlowExecutionErrorType];
|
|
1126
935
|
export interface FlowExecutionError {
|
|
1127
936
|
nodeName?: string | undefined;
|
|
1128
937
|
error?: FlowExecutionErrorType | undefined;
|
|
1129
938
|
message?: string | undefined;
|
|
1130
939
|
}
|
|
1131
|
-
export declare const FlowExecutionStatus: {
|
|
1132
|
-
readonly ABORTED: "Aborted";
|
|
1133
|
-
readonly FAILED: "Failed";
|
|
1134
|
-
readonly RUNNING: "Running";
|
|
1135
|
-
readonly SUCCEEDED: "Succeeded";
|
|
1136
|
-
readonly TIMED_OUT: "TimedOut";
|
|
1137
|
-
};
|
|
1138
|
-
export type FlowExecutionStatus =
|
|
1139
|
-
(typeof FlowExecutionStatus)[keyof typeof FlowExecutionStatus];
|
|
1140
940
|
export interface GetFlowExecutionResponse {
|
|
1141
941
|
executionArn: string | undefined;
|
|
1142
942
|
status: FlowExecutionStatus | undefined;
|
|
@@ -1147,12 +947,6 @@ export interface GetFlowExecutionResponse {
|
|
|
1147
947
|
flowIdentifier: string | undefined;
|
|
1148
948
|
flowVersion: string | undefined;
|
|
1149
949
|
}
|
|
1150
|
-
export declare const FlowExecutionEventType: {
|
|
1151
|
-
readonly FLOW: "Flow";
|
|
1152
|
-
readonly NODE: "Node";
|
|
1153
|
-
};
|
|
1154
|
-
export type FlowExecutionEventType =
|
|
1155
|
-
(typeof FlowExecutionEventType)[keyof typeof FlowExecutionEventType];
|
|
1156
950
|
export interface ListFlowExecutionEventsRequest {
|
|
1157
951
|
flowIdentifier: string | undefined;
|
|
1158
952
|
flowAliasIdentifier: string | undefined;
|
|
@@ -1169,12 +963,6 @@ export interface ConditionResultEvent {
|
|
|
1169
963
|
timestamp: Date | undefined;
|
|
1170
964
|
satisfiedConditions: SatisfiedCondition[] | undefined;
|
|
1171
965
|
}
|
|
1172
|
-
export declare const FlowErrorCode: {
|
|
1173
|
-
readonly INTERNAL_SERVER: "INTERNAL_SERVER";
|
|
1174
|
-
readonly NODE_EXECUTION_FAILED: "NODE_EXECUTION_FAILED";
|
|
1175
|
-
readonly VALIDATION: "VALIDATION";
|
|
1176
|
-
};
|
|
1177
|
-
export type FlowErrorCode = (typeof FlowErrorCode)[keyof typeof FlowErrorCode];
|
|
1178
966
|
export interface FlowFailureEvent {
|
|
1179
967
|
timestamp: Date | undefined;
|
|
1180
968
|
errorCode: FlowErrorCode | undefined;
|
|
@@ -1246,26 +1034,12 @@ export interface NodeDependencyEvent {
|
|
|
1246
1034
|
timestamp: Date | undefined;
|
|
1247
1035
|
traceElements: NodeTraceElements | undefined;
|
|
1248
1036
|
}
|
|
1249
|
-
export declare const NodeErrorCode: {
|
|
1250
|
-
readonly BAD_GATEWAY: "BAD_GATEWAY";
|
|
1251
|
-
readonly DEPENDENCY_FAILED: "DEPENDENCY_FAILED";
|
|
1252
|
-
readonly INTERNAL_SERVER: "INTERNAL_SERVER";
|
|
1253
|
-
readonly VALIDATION: "VALIDATION";
|
|
1254
|
-
};
|
|
1255
|
-
export type NodeErrorCode = (typeof NodeErrorCode)[keyof typeof NodeErrorCode];
|
|
1256
1037
|
export interface NodeFailureEvent {
|
|
1257
1038
|
nodeName: string | undefined;
|
|
1258
1039
|
timestamp: Date | undefined;
|
|
1259
1040
|
errorCode: NodeErrorCode | undefined;
|
|
1260
1041
|
errorMessage: string | undefined;
|
|
1261
1042
|
}
|
|
1262
|
-
export declare const FlowNodeInputCategory: {
|
|
1263
|
-
readonly EXIT_LOOP: "ExitLoop";
|
|
1264
|
-
readonly LOOP_CONDITION: "LoopCondition";
|
|
1265
|
-
readonly RETURN_VALUE_TO_LOOP_START: "ReturnValueToLoopStart";
|
|
1266
|
-
};
|
|
1267
|
-
export type FlowNodeInputCategory =
|
|
1268
|
-
(typeof FlowNodeInputCategory)[keyof typeof FlowNodeInputCategory];
|
|
1269
1043
|
export type NodeExecutionContent =
|
|
1270
1044
|
| NodeExecutionContent.DocumentMember
|
|
1271
1045
|
| NodeExecutionContent.$UnknownMember;
|
|
@@ -1283,12 +1057,6 @@ export declare namespace NodeExecutionContent {
|
|
|
1283
1057
|
_: (name: string, value: any) => T;
|
|
1284
1058
|
}
|
|
1285
1059
|
}
|
|
1286
|
-
export declare const FlowControlNodeType: {
|
|
1287
|
-
readonly ITERATOR: "Iterator";
|
|
1288
|
-
readonly LOOP: "Loop";
|
|
1289
|
-
};
|
|
1290
|
-
export type FlowControlNodeType =
|
|
1291
|
-
(typeof FlowControlNodeType)[keyof typeof FlowControlNodeType];
|
|
1292
1060
|
export interface NodeInputExecutionChainItem {
|
|
1293
1061
|
nodeName: string | undefined;
|
|
1294
1062
|
index?: number | undefined;
|
|
@@ -1299,15 +1067,6 @@ export interface NodeInputSource {
|
|
|
1299
1067
|
outputFieldName: string | undefined;
|
|
1300
1068
|
expression: string | undefined;
|
|
1301
1069
|
}
|
|
1302
|
-
export declare const FlowNodeIODataType: {
|
|
1303
|
-
readonly ARRAY: "Array";
|
|
1304
|
-
readonly BOOLEAN: "Boolean";
|
|
1305
|
-
readonly NUMBER: "Number";
|
|
1306
|
-
readonly OBJECT: "Object";
|
|
1307
|
-
readonly STRING: "String";
|
|
1308
|
-
};
|
|
1309
|
-
export type FlowNodeIODataType =
|
|
1310
|
-
(typeof FlowNodeIODataType)[keyof typeof FlowNodeIODataType];
|
|
1311
1070
|
export interface NodeInputField {
|
|
1312
1071
|
name: string | undefined;
|
|
1313
1072
|
content: NodeExecutionContent | undefined;
|
|
@@ -1504,34 +1263,6 @@ export interface ListFlowExecutionsResponse {
|
|
|
1504
1263
|
flowExecutionSummaries: FlowExecutionSummary[] | undefined;
|
|
1505
1264
|
nextToken?: string | undefined;
|
|
1506
1265
|
}
|
|
1507
|
-
export declare class BadGatewayException extends __BaseException {
|
|
1508
|
-
readonly name: "BadGatewayException";
|
|
1509
|
-
readonly $fault: "server";
|
|
1510
|
-
resourceName?: string | undefined;
|
|
1511
|
-
constructor(
|
|
1512
|
-
opts: __ExceptionOptionType<BadGatewayException, __BaseException>
|
|
1513
|
-
);
|
|
1514
|
-
}
|
|
1515
|
-
export declare class ConflictException extends __BaseException {
|
|
1516
|
-
readonly name: "ConflictException";
|
|
1517
|
-
readonly $fault: "client";
|
|
1518
|
-
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
1519
|
-
}
|
|
1520
|
-
export declare class DependencyFailedException extends __BaseException {
|
|
1521
|
-
readonly name: "DependencyFailedException";
|
|
1522
|
-
readonly $fault: "client";
|
|
1523
|
-
resourceName?: string | undefined;
|
|
1524
|
-
constructor(
|
|
1525
|
-
opts: __ExceptionOptionType<DependencyFailedException, __BaseException>
|
|
1526
|
-
);
|
|
1527
|
-
}
|
|
1528
|
-
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
1529
|
-
readonly name: "ServiceQuotaExceededException";
|
|
1530
|
-
readonly $fault: "client";
|
|
1531
|
-
constructor(
|
|
1532
|
-
opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>
|
|
1533
|
-
);
|
|
1534
|
-
}
|
|
1535
1266
|
export type FlowInputContent =
|
|
1536
1267
|
| FlowInputContent.DocumentMember
|
|
1537
1268
|
| FlowInputContent.$UnknownMember;
|
|
@@ -1555,12 +1286,6 @@ export interface FlowInput {
|
|
|
1555
1286
|
content: FlowInputContent | undefined;
|
|
1556
1287
|
nodeInputName?: string | undefined;
|
|
1557
1288
|
}
|
|
1558
|
-
export declare const PerformanceConfigLatency: {
|
|
1559
|
-
readonly OPTIMIZED: "optimized";
|
|
1560
|
-
readonly STANDARD: "standard";
|
|
1561
|
-
};
|
|
1562
|
-
export type PerformanceConfigLatency =
|
|
1563
|
-
(typeof PerformanceConfigLatency)[keyof typeof PerformanceConfigLatency];
|
|
1564
1289
|
export interface PerformanceConfiguration {
|
|
1565
1290
|
latency?: PerformanceConfigLatency | undefined;
|
|
1566
1291
|
}
|
|
@@ -1594,12 +1319,6 @@ export interface InvokeFlowRequest {
|
|
|
1594
1319
|
modelPerformanceConfiguration?: ModelPerformanceConfiguration | undefined;
|
|
1595
1320
|
executionId?: string | undefined;
|
|
1596
1321
|
}
|
|
1597
|
-
export declare const FlowCompletionReason: {
|
|
1598
|
-
readonly INPUT_REQUIRED: "INPUT_REQUIRED";
|
|
1599
|
-
readonly SUCCESS: "SUCCESS";
|
|
1600
|
-
};
|
|
1601
|
-
export type FlowCompletionReason =
|
|
1602
|
-
(typeof FlowCompletionReason)[keyof typeof FlowCompletionReason];
|
|
1603
1322
|
export interface FlowCompletionEvent {
|
|
1604
1323
|
completionReason: FlowCompletionReason | undefined;
|
|
1605
1324
|
}
|
|
@@ -1620,16 +1339,6 @@ export declare namespace FlowMultiTurnInputContent {
|
|
|
1620
1339
|
_: (name: string, value: any) => T;
|
|
1621
1340
|
}
|
|
1622
1341
|
}
|
|
1623
|
-
export declare const NodeType: {
|
|
1624
|
-
readonly CONDITION_NODE: "ConditionNode";
|
|
1625
|
-
readonly FLOW_INPUT_NODE: "FlowInputNode";
|
|
1626
|
-
readonly FLOW_OUTPUT_NODE: "FlowOutputNode";
|
|
1627
|
-
readonly KNOWLEDGE_BASE_NODE: "KnowledgeBaseNode";
|
|
1628
|
-
readonly LAMBDA_FUNCTION_NODE: "LambdaFunctionNode";
|
|
1629
|
-
readonly LEX_NODE: "LexNode";
|
|
1630
|
-
readonly PROMPT_NODE: "PromptNode";
|
|
1631
|
-
};
|
|
1632
|
-
export type NodeType = (typeof NodeType)[keyof typeof NodeType];
|
|
1633
1342
|
export interface FlowMultiTurnInputRequestEvent {
|
|
1634
1343
|
nodeName: string | undefined;
|
|
1635
1344
|
nodeType: NodeType | undefined;
|
|
@@ -2099,28 +1808,13 @@ export interface InvokeFlowResponse {
|
|
|
2099
1808
|
responseStream: AsyncIterable<FlowResponseStream> | undefined;
|
|
2100
1809
|
executionId?: string | undefined;
|
|
2101
1810
|
}
|
|
2102
|
-
export declare const InputQueryType: {
|
|
2103
|
-
readonly TEXT: "TEXT";
|
|
2104
|
-
};
|
|
2105
|
-
export type InputQueryType =
|
|
2106
|
-
(typeof InputQueryType)[keyof typeof InputQueryType];
|
|
2107
1811
|
export interface QueryGenerationInput {
|
|
2108
1812
|
type: InputQueryType | undefined;
|
|
2109
1813
|
text: string | undefined;
|
|
2110
1814
|
}
|
|
2111
|
-
export declare const QueryTransformationMode: {
|
|
2112
|
-
readonly TEXT_TO_SQL: "TEXT_TO_SQL";
|
|
2113
|
-
};
|
|
2114
|
-
export type QueryTransformationMode =
|
|
2115
|
-
(typeof QueryTransformationMode)[keyof typeof QueryTransformationMode];
|
|
2116
1815
|
export interface TextToSqlKnowledgeBaseConfiguration {
|
|
2117
1816
|
knowledgeBaseArn: string | undefined;
|
|
2118
1817
|
}
|
|
2119
|
-
export declare const TextToSqlConfigurationType: {
|
|
2120
|
-
readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
|
|
2121
|
-
};
|
|
2122
|
-
export type TextToSqlConfigurationType =
|
|
2123
|
-
(typeof TextToSqlConfigurationType)[keyof typeof TextToSqlConfigurationType];
|
|
2124
1818
|
export interface TextToSqlConfiguration {
|
|
2125
1819
|
type: TextToSqlConfigurationType | undefined;
|
|
2126
1820
|
knowledgeBaseConfiguration?: TextToSqlKnowledgeBaseConfiguration | undefined;
|
|
@@ -2133,11 +1827,6 @@ export interface GenerateQueryRequest {
|
|
|
2133
1827
|
queryGenerationInput: QueryGenerationInput | undefined;
|
|
2134
1828
|
transformationConfiguration: TransformationConfiguration | undefined;
|
|
2135
1829
|
}
|
|
2136
|
-
export declare const GeneratedQueryType: {
|
|
2137
|
-
readonly REDSHIFT_SQL: "REDSHIFT_SQL";
|
|
2138
|
-
};
|
|
2139
|
-
export type GeneratedQueryType =
|
|
2140
|
-
(typeof GeneratedQueryType)[keyof typeof GeneratedQueryType];
|
|
2141
1830
|
export interface GeneratedQuery {
|
|
2142
1831
|
type?: GeneratedQueryType | undefined;
|
|
2143
1832
|
sql?: string | undefined;
|
|
@@ -2169,12 +1858,6 @@ export declare namespace ContentBlock {
|
|
|
2169
1858
|
_: (name: string, value: any) => T;
|
|
2170
1859
|
}
|
|
2171
1860
|
}
|
|
2172
|
-
export declare const ConversationRole: {
|
|
2173
|
-
readonly ASSISTANT: "assistant";
|
|
2174
|
-
readonly USER: "user";
|
|
2175
|
-
};
|
|
2176
|
-
export type ConversationRole =
|
|
2177
|
-
(typeof ConversationRole)[keyof typeof ConversationRole];
|
|
2178
1861
|
export interface Message {
|
|
2179
1862
|
role: ConversationRole | undefined;
|
|
2180
1863
|
content: ContentBlock[] | undefined;
|
|
@@ -2189,22 +1872,11 @@ export interface ByteContentFile {
|
|
|
2189
1872
|
export interface S3ObjectFile {
|
|
2190
1873
|
uri: string | undefined;
|
|
2191
1874
|
}
|
|
2192
|
-
export declare const FileSourceType: {
|
|
2193
|
-
readonly BYTE_CONTENT: "BYTE_CONTENT";
|
|
2194
|
-
readonly S3: "S3";
|
|
2195
|
-
};
|
|
2196
|
-
export type FileSourceType =
|
|
2197
|
-
(typeof FileSourceType)[keyof typeof FileSourceType];
|
|
2198
1875
|
export interface FileSource {
|
|
2199
1876
|
sourceType: FileSourceType | undefined;
|
|
2200
1877
|
s3Location?: S3ObjectFile | undefined;
|
|
2201
1878
|
byteContent?: ByteContentFile | undefined;
|
|
2202
1879
|
}
|
|
2203
|
-
export declare const FileUseCase: {
|
|
2204
|
-
readonly CHAT: "CHAT";
|
|
2205
|
-
readonly CODE_INTERPRETER: "CODE_INTERPRETER";
|
|
2206
|
-
};
|
|
2207
|
-
export type FileUseCase = (typeof FileUseCase)[keyof typeof FileUseCase];
|
|
2208
1880
|
export interface InputFile {
|
|
2209
1881
|
name: string | undefined;
|
|
2210
1882
|
source: FileSource | undefined;
|
|
@@ -2214,13 +1886,6 @@ export interface FilterAttribute {
|
|
|
2214
1886
|
key: string | undefined;
|
|
2215
1887
|
value: __DocumentType | undefined;
|
|
2216
1888
|
}
|
|
2217
|
-
export declare const AttributeType: {
|
|
2218
|
-
readonly BOOLEAN: "BOOLEAN";
|
|
2219
|
-
readonly NUMBER: "NUMBER";
|
|
2220
|
-
readonly STRING: "STRING";
|
|
2221
|
-
readonly STRING_LIST: "STRING_LIST";
|
|
2222
|
-
};
|
|
2223
|
-
export type AttributeType = (typeof AttributeType)[keyof typeof AttributeType];
|
|
2224
1889
|
export interface MetadataAttributeSchema {
|
|
2225
1890
|
key: string | undefined;
|
|
2226
1891
|
type: AttributeType | undefined;
|
|
@@ -2230,17 +1895,6 @@ export interface ImplicitFilterConfiguration {
|
|
|
2230
1895
|
metadataAttributes: MetadataAttributeSchema[] | undefined;
|
|
2231
1896
|
modelArn: string | undefined;
|
|
2232
1897
|
}
|
|
2233
|
-
export declare const SearchType: {
|
|
2234
|
-
readonly HYBRID: "HYBRID";
|
|
2235
|
-
readonly SEMANTIC: "SEMANTIC";
|
|
2236
|
-
};
|
|
2237
|
-
export type SearchType = (typeof SearchType)[keyof typeof SearchType];
|
|
2238
|
-
export declare const RerankingMetadataSelectionMode: {
|
|
2239
|
-
readonly ALL: "ALL";
|
|
2240
|
-
readonly SELECTIVE: "SELECTIVE";
|
|
2241
|
-
};
|
|
2242
|
-
export type RerankingMetadataSelectionMode =
|
|
2243
|
-
(typeof RerankingMetadataSelectionMode)[keyof typeof RerankingMetadataSelectionMode];
|
|
2244
1898
|
export interface FieldForReranking {
|
|
2245
1899
|
fieldName: string | undefined;
|
|
2246
1900
|
}
|
|
@@ -2287,11 +1941,6 @@ export interface VectorSearchBedrockRerankingConfiguration {
|
|
|
2287
1941
|
numberOfRerankedResults?: number | undefined;
|
|
2288
1942
|
metadataConfiguration?: MetadataConfigurationForReranking | undefined;
|
|
2289
1943
|
}
|
|
2290
|
-
export declare const VectorSearchRerankingConfigurationType: {
|
|
2291
|
-
readonly BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL";
|
|
2292
|
-
};
|
|
2293
|
-
export type VectorSearchRerankingConfigurationType =
|
|
2294
|
-
(typeof VectorSearchRerankingConfigurationType)[keyof typeof VectorSearchRerankingConfigurationType];
|
|
2295
1944
|
export interface VectorSearchRerankingConfiguration {
|
|
2296
1945
|
type: VectorSearchRerankingConfigurationType | undefined;
|
|
2297
1946
|
bedrockRerankingConfiguration?:
|
|
@@ -2332,13 +1981,6 @@ export interface OutputFile {
|
|
|
2332
1981
|
export interface FilePart {
|
|
2333
1982
|
files?: OutputFile[] | undefined;
|
|
2334
1983
|
}
|
|
2335
|
-
export declare class ModelNotReadyException extends __BaseException {
|
|
2336
|
-
readonly name: "ModelNotReadyException";
|
|
2337
|
-
readonly $fault: "client";
|
|
2338
|
-
constructor(
|
|
2339
|
-
opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>
|
|
2340
|
-
);
|
|
2341
|
-
}
|
|
2342
1984
|
export type ResponseStream =
|
|
2343
1985
|
| ResponseStream.AccessDeniedExceptionMember
|
|
2344
1986
|
| ResponseStream.BadGatewayExceptionMember
|
|
@@ -2638,12 +2280,6 @@ export interface InvokeAgentResponse {
|
|
|
2638
2280
|
export interface InlineBedrockModelConfigurations {
|
|
2639
2281
|
performanceConfig?: PerformanceConfiguration | undefined;
|
|
2640
2282
|
}
|
|
2641
|
-
export declare const RelayConversationHistory: {
|
|
2642
|
-
readonly DISABLED: "DISABLED";
|
|
2643
|
-
readonly TO_COLLABORATOR: "TO_COLLABORATOR";
|
|
2644
|
-
};
|
|
2645
|
-
export type RelayConversationHistory =
|
|
2646
|
-
(typeof RelayConversationHistory)[keyof typeof RelayConversationHistory];
|
|
2647
2283
|
export interface CollaboratorConfiguration {
|
|
2648
2284
|
collaboratorName: string | undefined;
|
|
2649
2285
|
collaboratorInstruction: string | undefined;
|
|
@@ -2654,11 +2290,6 @@ export interface GuardrailConfigurationWithArn {
|
|
|
2654
2290
|
guardrailIdentifier: string | undefined;
|
|
2655
2291
|
guardrailVersion: string | undefined;
|
|
2656
2292
|
}
|
|
2657
|
-
export declare const PromptState: {
|
|
2658
|
-
readonly DISABLED: "DISABLED";
|
|
2659
|
-
readonly ENABLED: "ENABLED";
|
|
2660
|
-
};
|
|
2661
|
-
export type PromptState = (typeof PromptState)[keyof typeof PromptState];
|
|
2662
2293
|
export interface PromptConfiguration {
|
|
2663
2294
|
promptType?: PromptType | undefined;
|
|
2664
2295
|
promptCreationMode?: CreationMode | undefined;
|
|
@@ -2701,12 +2332,6 @@ export interface InlineSessionState {
|
|
|
2701
2332
|
files?: InputFile[] | undefined;
|
|
2702
2333
|
conversationHistory?: ConversationHistory | undefined;
|
|
2703
2334
|
}
|
|
2704
|
-
export declare const OrchestrationType: {
|
|
2705
|
-
readonly CUSTOM_ORCHESTRATION: "CUSTOM_ORCHESTRATION";
|
|
2706
|
-
readonly DEFAULT: "DEFAULT";
|
|
2707
|
-
};
|
|
2708
|
-
export type OrchestrationType =
|
|
2709
|
-
(typeof OrchestrationType)[keyof typeof OrchestrationType];
|
|
2710
2335
|
export interface InlineAgentPayloadPart {
|
|
2711
2336
|
bytes?: Uint8Array | undefined;
|
|
2712
2337
|
attribution?: Attribution | undefined;
|
|
@@ -2994,10 +2619,6 @@ export interface DeleteAgentMemoryRequest {
|
|
|
2994
2619
|
sessionId?: string | undefined;
|
|
2995
2620
|
}
|
|
2996
2621
|
export interface DeleteAgentMemoryResponse {}
|
|
2997
|
-
export declare const MemoryType: {
|
|
2998
|
-
readonly SESSION_SUMMARY: "SESSION_SUMMARY";
|
|
2999
|
-
};
|
|
3000
|
-
export type MemoryType = (typeof MemoryType)[keyof typeof MemoryType];
|
|
3001
2622
|
export interface GetAgentMemoryRequest {
|
|
3002
2623
|
nextToken?: string | undefined;
|
|
3003
2624
|
maxItems?: number | undefined;
|
|
@@ -3207,11 +2828,6 @@ export interface OptimizePromptResponse {
|
|
|
3207
2828
|
export interface RerankTextDocument {
|
|
3208
2829
|
text?: string | undefined;
|
|
3209
2830
|
}
|
|
3210
|
-
export declare const RerankQueryContentType: {
|
|
3211
|
-
readonly TEXT: "TEXT";
|
|
3212
|
-
};
|
|
3213
|
-
export type RerankQueryContentType =
|
|
3214
|
-
(typeof RerankQueryContentType)[keyof typeof RerankQueryContentType];
|
|
3215
2831
|
export interface RerankQuery {
|
|
3216
2832
|
type: RerankQueryContentType | undefined;
|
|
3217
2833
|
textQuery: RerankTextDocument | undefined;
|
|
@@ -3224,31 +2840,15 @@ export interface BedrockRerankingConfiguration {
|
|
|
3224
2840
|
numberOfResults?: number | undefined;
|
|
3225
2841
|
modelConfiguration: BedrockRerankingModelConfiguration | undefined;
|
|
3226
2842
|
}
|
|
3227
|
-
export declare const RerankingConfigurationType: {
|
|
3228
|
-
readonly BEDROCK_RERANKING_MODEL: "BEDROCK_RERANKING_MODEL";
|
|
3229
|
-
};
|
|
3230
|
-
export type RerankingConfigurationType =
|
|
3231
|
-
(typeof RerankingConfigurationType)[keyof typeof RerankingConfigurationType];
|
|
3232
2843
|
export interface RerankingConfiguration {
|
|
3233
2844
|
type: RerankingConfigurationType | undefined;
|
|
3234
2845
|
bedrockRerankingConfiguration: BedrockRerankingConfiguration | undefined;
|
|
3235
2846
|
}
|
|
3236
|
-
export declare const RerankDocumentType: {
|
|
3237
|
-
readonly JSON: "JSON";
|
|
3238
|
-
readonly TEXT: "TEXT";
|
|
3239
|
-
};
|
|
3240
|
-
export type RerankDocumentType =
|
|
3241
|
-
(typeof RerankDocumentType)[keyof typeof RerankDocumentType];
|
|
3242
2847
|
export interface RerankDocument {
|
|
3243
2848
|
type: RerankDocumentType | undefined;
|
|
3244
2849
|
textDocument?: RerankTextDocument | undefined;
|
|
3245
2850
|
jsonDocument?: __DocumentType | undefined;
|
|
3246
2851
|
}
|
|
3247
|
-
export declare const RerankSourceType: {
|
|
3248
|
-
readonly INLINE: "INLINE";
|
|
3249
|
-
};
|
|
3250
|
-
export type RerankSourceType =
|
|
3251
|
-
(typeof RerankSourceType)[keyof typeof RerankSourceType];
|
|
3252
2852
|
export interface RerankSource {
|
|
3253
2853
|
type: RerankSourceType | undefined;
|
|
3254
2854
|
inlineDocumentSource: RerankDocument | undefined;
|
|
@@ -3302,3 +2902,892 @@ export interface ByteContentDoc {
|
|
|
3302
2902
|
export interface S3ObjectDoc {
|
|
3303
2903
|
uri: string | undefined;
|
|
3304
2904
|
}
|
|
2905
|
+
export interface ExternalSource {
|
|
2906
|
+
sourceType: ExternalSourceType | undefined;
|
|
2907
|
+
s3Location?: S3ObjectDoc | undefined;
|
|
2908
|
+
byteContent?: ByteContentDoc | undefined;
|
|
2909
|
+
}
|
|
2910
|
+
export interface ExternalSourcesRetrieveAndGenerateConfiguration {
|
|
2911
|
+
modelArn: string | undefined;
|
|
2912
|
+
sources: ExternalSource[] | undefined;
|
|
2913
|
+
generationConfiguration?: ExternalSourcesGenerationConfiguration | undefined;
|
|
2914
|
+
}
|
|
2915
|
+
export interface GenerationConfiguration {
|
|
2916
|
+
promptTemplate?: PromptTemplate | undefined;
|
|
2917
|
+
guardrailConfiguration?: GuardrailConfiguration | undefined;
|
|
2918
|
+
inferenceConfig?: InferenceConfig | undefined;
|
|
2919
|
+
additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
|
|
2920
|
+
performanceConfig?: PerformanceConfiguration | undefined;
|
|
2921
|
+
}
|
|
2922
|
+
export interface QueryTransformationConfiguration {
|
|
2923
|
+
type: QueryTransformationType | undefined;
|
|
2924
|
+
}
|
|
2925
|
+
export interface OrchestrationConfiguration {
|
|
2926
|
+
promptTemplate?: PromptTemplate | undefined;
|
|
2927
|
+
inferenceConfig?: InferenceConfig | undefined;
|
|
2928
|
+
additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
|
|
2929
|
+
queryTransformationConfiguration?:
|
|
2930
|
+
| QueryTransformationConfiguration
|
|
2931
|
+
| undefined;
|
|
2932
|
+
performanceConfig?: PerformanceConfiguration | undefined;
|
|
2933
|
+
}
|
|
2934
|
+
export interface RetrieveAndGenerateSessionConfiguration {
|
|
2935
|
+
kmsKeyArn: string | undefined;
|
|
2936
|
+
}
|
|
2937
|
+
export interface RetrieveAndGenerateOutput {
|
|
2938
|
+
text: string | undefined;
|
|
2939
|
+
}
|
|
2940
|
+
export interface RetrieveAndGenerateResponse {
|
|
2941
|
+
sessionId: string | undefined;
|
|
2942
|
+
output: RetrieveAndGenerateOutput | undefined;
|
|
2943
|
+
citations?: Citation[] | undefined;
|
|
2944
|
+
guardrailAction?: GuadrailAction | undefined;
|
|
2945
|
+
}
|
|
2946
|
+
export interface CitationEvent {
|
|
2947
|
+
citation?: Citation | undefined;
|
|
2948
|
+
generatedResponsePart?: GeneratedResponsePart | undefined;
|
|
2949
|
+
retrievedReferences?: RetrievedReference[] | undefined;
|
|
2950
|
+
}
|
|
2951
|
+
export interface GuardrailEvent {
|
|
2952
|
+
action?: GuadrailAction | undefined;
|
|
2953
|
+
}
|
|
2954
|
+
export interface RetrieveAndGenerateOutputEvent {
|
|
2955
|
+
text: string | undefined;
|
|
2956
|
+
}
|
|
2957
|
+
export type RetrieveAndGenerateStreamResponseOutput =
|
|
2958
|
+
| RetrieveAndGenerateStreamResponseOutput.AccessDeniedExceptionMember
|
|
2959
|
+
| RetrieveAndGenerateStreamResponseOutput.BadGatewayExceptionMember
|
|
2960
|
+
| RetrieveAndGenerateStreamResponseOutput.CitationMember
|
|
2961
|
+
| RetrieveAndGenerateStreamResponseOutput.ConflictExceptionMember
|
|
2962
|
+
| RetrieveAndGenerateStreamResponseOutput.DependencyFailedExceptionMember
|
|
2963
|
+
| RetrieveAndGenerateStreamResponseOutput.GuardrailMember
|
|
2964
|
+
| RetrieveAndGenerateStreamResponseOutput.InternalServerExceptionMember
|
|
2965
|
+
| RetrieveAndGenerateStreamResponseOutput.OutputMember
|
|
2966
|
+
| RetrieveAndGenerateStreamResponseOutput.ResourceNotFoundExceptionMember
|
|
2967
|
+
| RetrieveAndGenerateStreamResponseOutput.ServiceQuotaExceededExceptionMember
|
|
2968
|
+
| RetrieveAndGenerateStreamResponseOutput.ThrottlingExceptionMember
|
|
2969
|
+
| RetrieveAndGenerateStreamResponseOutput.ValidationExceptionMember
|
|
2970
|
+
| RetrieveAndGenerateStreamResponseOutput.$UnknownMember;
|
|
2971
|
+
export declare namespace RetrieveAndGenerateStreamResponseOutput {
|
|
2972
|
+
interface OutputMember {
|
|
2973
|
+
output: RetrieveAndGenerateOutputEvent;
|
|
2974
|
+
citation?: never;
|
|
2975
|
+
guardrail?: never;
|
|
2976
|
+
internalServerException?: never;
|
|
2977
|
+
validationException?: never;
|
|
2978
|
+
resourceNotFoundException?: never;
|
|
2979
|
+
serviceQuotaExceededException?: never;
|
|
2980
|
+
throttlingException?: never;
|
|
2981
|
+
accessDeniedException?: never;
|
|
2982
|
+
conflictException?: never;
|
|
2983
|
+
dependencyFailedException?: never;
|
|
2984
|
+
badGatewayException?: never;
|
|
2985
|
+
$unknown?: never;
|
|
2986
|
+
}
|
|
2987
|
+
interface CitationMember {
|
|
2988
|
+
output?: never;
|
|
2989
|
+
citation: CitationEvent;
|
|
2990
|
+
guardrail?: never;
|
|
2991
|
+
internalServerException?: never;
|
|
2992
|
+
validationException?: never;
|
|
2993
|
+
resourceNotFoundException?: never;
|
|
2994
|
+
serviceQuotaExceededException?: never;
|
|
2995
|
+
throttlingException?: never;
|
|
2996
|
+
accessDeniedException?: never;
|
|
2997
|
+
conflictException?: never;
|
|
2998
|
+
dependencyFailedException?: never;
|
|
2999
|
+
badGatewayException?: never;
|
|
3000
|
+
$unknown?: never;
|
|
3001
|
+
}
|
|
3002
|
+
interface GuardrailMember {
|
|
3003
|
+
output?: never;
|
|
3004
|
+
citation?: never;
|
|
3005
|
+
guardrail: GuardrailEvent;
|
|
3006
|
+
internalServerException?: never;
|
|
3007
|
+
validationException?: never;
|
|
3008
|
+
resourceNotFoundException?: never;
|
|
3009
|
+
serviceQuotaExceededException?: never;
|
|
3010
|
+
throttlingException?: never;
|
|
3011
|
+
accessDeniedException?: never;
|
|
3012
|
+
conflictException?: never;
|
|
3013
|
+
dependencyFailedException?: never;
|
|
3014
|
+
badGatewayException?: never;
|
|
3015
|
+
$unknown?: never;
|
|
3016
|
+
}
|
|
3017
|
+
interface InternalServerExceptionMember {
|
|
3018
|
+
output?: never;
|
|
3019
|
+
citation?: never;
|
|
3020
|
+
guardrail?: never;
|
|
3021
|
+
internalServerException: InternalServerException;
|
|
3022
|
+
validationException?: never;
|
|
3023
|
+
resourceNotFoundException?: never;
|
|
3024
|
+
serviceQuotaExceededException?: never;
|
|
3025
|
+
throttlingException?: never;
|
|
3026
|
+
accessDeniedException?: never;
|
|
3027
|
+
conflictException?: never;
|
|
3028
|
+
dependencyFailedException?: never;
|
|
3029
|
+
badGatewayException?: never;
|
|
3030
|
+
$unknown?: never;
|
|
3031
|
+
}
|
|
3032
|
+
interface ValidationExceptionMember {
|
|
3033
|
+
output?: never;
|
|
3034
|
+
citation?: never;
|
|
3035
|
+
guardrail?: never;
|
|
3036
|
+
internalServerException?: never;
|
|
3037
|
+
validationException: ValidationException;
|
|
3038
|
+
resourceNotFoundException?: never;
|
|
3039
|
+
serviceQuotaExceededException?: never;
|
|
3040
|
+
throttlingException?: never;
|
|
3041
|
+
accessDeniedException?: never;
|
|
3042
|
+
conflictException?: never;
|
|
3043
|
+
dependencyFailedException?: never;
|
|
3044
|
+
badGatewayException?: never;
|
|
3045
|
+
$unknown?: never;
|
|
3046
|
+
}
|
|
3047
|
+
interface ResourceNotFoundExceptionMember {
|
|
3048
|
+
output?: never;
|
|
3049
|
+
citation?: never;
|
|
3050
|
+
guardrail?: never;
|
|
3051
|
+
internalServerException?: never;
|
|
3052
|
+
validationException?: never;
|
|
3053
|
+
resourceNotFoundException: ResourceNotFoundException;
|
|
3054
|
+
serviceQuotaExceededException?: never;
|
|
3055
|
+
throttlingException?: never;
|
|
3056
|
+
accessDeniedException?: never;
|
|
3057
|
+
conflictException?: never;
|
|
3058
|
+
dependencyFailedException?: never;
|
|
3059
|
+
badGatewayException?: never;
|
|
3060
|
+
$unknown?: never;
|
|
3061
|
+
}
|
|
3062
|
+
interface ServiceQuotaExceededExceptionMember {
|
|
3063
|
+
output?: never;
|
|
3064
|
+
citation?: never;
|
|
3065
|
+
guardrail?: never;
|
|
3066
|
+
internalServerException?: never;
|
|
3067
|
+
validationException?: never;
|
|
3068
|
+
resourceNotFoundException?: never;
|
|
3069
|
+
serviceQuotaExceededException: ServiceQuotaExceededException;
|
|
3070
|
+
throttlingException?: never;
|
|
3071
|
+
accessDeniedException?: never;
|
|
3072
|
+
conflictException?: never;
|
|
3073
|
+
dependencyFailedException?: never;
|
|
3074
|
+
badGatewayException?: never;
|
|
3075
|
+
$unknown?: never;
|
|
3076
|
+
}
|
|
3077
|
+
interface ThrottlingExceptionMember {
|
|
3078
|
+
output?: never;
|
|
3079
|
+
citation?: never;
|
|
3080
|
+
guardrail?: never;
|
|
3081
|
+
internalServerException?: never;
|
|
3082
|
+
validationException?: never;
|
|
3083
|
+
resourceNotFoundException?: never;
|
|
3084
|
+
serviceQuotaExceededException?: never;
|
|
3085
|
+
throttlingException: ThrottlingException;
|
|
3086
|
+
accessDeniedException?: never;
|
|
3087
|
+
conflictException?: never;
|
|
3088
|
+
dependencyFailedException?: never;
|
|
3089
|
+
badGatewayException?: never;
|
|
3090
|
+
$unknown?: never;
|
|
3091
|
+
}
|
|
3092
|
+
interface AccessDeniedExceptionMember {
|
|
3093
|
+
output?: never;
|
|
3094
|
+
citation?: never;
|
|
3095
|
+
guardrail?: never;
|
|
3096
|
+
internalServerException?: never;
|
|
3097
|
+
validationException?: never;
|
|
3098
|
+
resourceNotFoundException?: never;
|
|
3099
|
+
serviceQuotaExceededException?: never;
|
|
3100
|
+
throttlingException?: never;
|
|
3101
|
+
accessDeniedException: AccessDeniedException;
|
|
3102
|
+
conflictException?: never;
|
|
3103
|
+
dependencyFailedException?: never;
|
|
3104
|
+
badGatewayException?: never;
|
|
3105
|
+
$unknown?: never;
|
|
3106
|
+
}
|
|
3107
|
+
interface ConflictExceptionMember {
|
|
3108
|
+
output?: never;
|
|
3109
|
+
citation?: never;
|
|
3110
|
+
guardrail?: never;
|
|
3111
|
+
internalServerException?: never;
|
|
3112
|
+
validationException?: never;
|
|
3113
|
+
resourceNotFoundException?: never;
|
|
3114
|
+
serviceQuotaExceededException?: never;
|
|
3115
|
+
throttlingException?: never;
|
|
3116
|
+
accessDeniedException?: never;
|
|
3117
|
+
conflictException: ConflictException;
|
|
3118
|
+
dependencyFailedException?: never;
|
|
3119
|
+
badGatewayException?: never;
|
|
3120
|
+
$unknown?: never;
|
|
3121
|
+
}
|
|
3122
|
+
interface DependencyFailedExceptionMember {
|
|
3123
|
+
output?: never;
|
|
3124
|
+
citation?: never;
|
|
3125
|
+
guardrail?: never;
|
|
3126
|
+
internalServerException?: never;
|
|
3127
|
+
validationException?: never;
|
|
3128
|
+
resourceNotFoundException?: never;
|
|
3129
|
+
serviceQuotaExceededException?: never;
|
|
3130
|
+
throttlingException?: never;
|
|
3131
|
+
accessDeniedException?: never;
|
|
3132
|
+
conflictException?: never;
|
|
3133
|
+
dependencyFailedException: DependencyFailedException;
|
|
3134
|
+
badGatewayException?: never;
|
|
3135
|
+
$unknown?: never;
|
|
3136
|
+
}
|
|
3137
|
+
interface BadGatewayExceptionMember {
|
|
3138
|
+
output?: never;
|
|
3139
|
+
citation?: never;
|
|
3140
|
+
guardrail?: never;
|
|
3141
|
+
internalServerException?: never;
|
|
3142
|
+
validationException?: never;
|
|
3143
|
+
resourceNotFoundException?: never;
|
|
3144
|
+
serviceQuotaExceededException?: never;
|
|
3145
|
+
throttlingException?: never;
|
|
3146
|
+
accessDeniedException?: never;
|
|
3147
|
+
conflictException?: never;
|
|
3148
|
+
dependencyFailedException?: never;
|
|
3149
|
+
badGatewayException: BadGatewayException;
|
|
3150
|
+
$unknown?: never;
|
|
3151
|
+
}
|
|
3152
|
+
interface $UnknownMember {
|
|
3153
|
+
output?: never;
|
|
3154
|
+
citation?: never;
|
|
3155
|
+
guardrail?: never;
|
|
3156
|
+
internalServerException?: never;
|
|
3157
|
+
validationException?: never;
|
|
3158
|
+
resourceNotFoundException?: never;
|
|
3159
|
+
serviceQuotaExceededException?: never;
|
|
3160
|
+
throttlingException?: never;
|
|
3161
|
+
accessDeniedException?: never;
|
|
3162
|
+
conflictException?: never;
|
|
3163
|
+
dependencyFailedException?: never;
|
|
3164
|
+
badGatewayException?: never;
|
|
3165
|
+
$unknown: [string, any];
|
|
3166
|
+
}
|
|
3167
|
+
interface Visitor<T> {
|
|
3168
|
+
output: (value: RetrieveAndGenerateOutputEvent) => T;
|
|
3169
|
+
citation: (value: CitationEvent) => T;
|
|
3170
|
+
guardrail: (value: GuardrailEvent) => T;
|
|
3171
|
+
internalServerException: (value: InternalServerException) => T;
|
|
3172
|
+
validationException: (value: ValidationException) => T;
|
|
3173
|
+
resourceNotFoundException: (value: ResourceNotFoundException) => T;
|
|
3174
|
+
serviceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
|
|
3175
|
+
throttlingException: (value: ThrottlingException) => T;
|
|
3176
|
+
accessDeniedException: (value: AccessDeniedException) => T;
|
|
3177
|
+
conflictException: (value: ConflictException) => T;
|
|
3178
|
+
dependencyFailedException: (value: DependencyFailedException) => T;
|
|
3179
|
+
badGatewayException: (value: BadGatewayException) => T;
|
|
3180
|
+
_: (name: string, value: any) => T;
|
|
3181
|
+
}
|
|
3182
|
+
}
|
|
3183
|
+
export interface RetrieveAndGenerateStreamResponse {
|
|
3184
|
+
stream: AsyncIterable<RetrieveAndGenerateStreamResponseOutput> | undefined;
|
|
3185
|
+
sessionId: string | undefined;
|
|
3186
|
+
}
|
|
3187
|
+
export interface KnowledgeBaseQuery {
|
|
3188
|
+
text: string | undefined;
|
|
3189
|
+
}
|
|
3190
|
+
export interface KnowledgeBaseRetrievalResult {
|
|
3191
|
+
content: RetrievalResultContent | undefined;
|
|
3192
|
+
location?: RetrievalResultLocation | undefined;
|
|
3193
|
+
score?: number | undefined;
|
|
3194
|
+
metadata?: Record<string, __DocumentType> | undefined;
|
|
3195
|
+
}
|
|
3196
|
+
export interface RetrieveResponse {
|
|
3197
|
+
retrievalResults: KnowledgeBaseRetrievalResult[] | undefined;
|
|
3198
|
+
guardrailAction?: GuadrailAction | undefined;
|
|
3199
|
+
nextToken?: string | undefined;
|
|
3200
|
+
}
|
|
3201
|
+
export interface CreateSessionRequest {
|
|
3202
|
+
sessionMetadata?: Record<string, string> | undefined;
|
|
3203
|
+
encryptionKeyArn?: string | undefined;
|
|
3204
|
+
tags?: Record<string, string> | undefined;
|
|
3205
|
+
}
|
|
3206
|
+
export interface CreateSessionResponse {
|
|
3207
|
+
sessionId: string | undefined;
|
|
3208
|
+
sessionArn: string | undefined;
|
|
3209
|
+
sessionStatus: SessionStatus | undefined;
|
|
3210
|
+
createdAt: Date | undefined;
|
|
3211
|
+
}
|
|
3212
|
+
export interface DeleteSessionRequest {
|
|
3213
|
+
sessionIdentifier: string | undefined;
|
|
3214
|
+
}
|
|
3215
|
+
export interface DeleteSessionResponse {}
|
|
3216
|
+
export interface EndSessionRequest {
|
|
3217
|
+
sessionIdentifier: string | undefined;
|
|
3218
|
+
}
|
|
3219
|
+
export interface EndSessionResponse {
|
|
3220
|
+
sessionId: string | undefined;
|
|
3221
|
+
sessionArn: string | undefined;
|
|
3222
|
+
sessionStatus: SessionStatus | undefined;
|
|
3223
|
+
}
|
|
3224
|
+
export interface GetSessionRequest {
|
|
3225
|
+
sessionIdentifier: string | undefined;
|
|
3226
|
+
}
|
|
3227
|
+
export interface GetSessionResponse {
|
|
3228
|
+
sessionId: string | undefined;
|
|
3229
|
+
sessionArn: string | undefined;
|
|
3230
|
+
sessionStatus: SessionStatus | undefined;
|
|
3231
|
+
createdAt: Date | undefined;
|
|
3232
|
+
lastUpdatedAt: Date | undefined;
|
|
3233
|
+
sessionMetadata?: Record<string, string> | undefined;
|
|
3234
|
+
encryptionKeyArn?: string | undefined;
|
|
3235
|
+
}
|
|
3236
|
+
export interface CreateInvocationRequest {
|
|
3237
|
+
invocationId?: string | undefined;
|
|
3238
|
+
description?: string | undefined;
|
|
3239
|
+
sessionIdentifier: string | undefined;
|
|
3240
|
+
}
|
|
3241
|
+
export interface CreateInvocationResponse {
|
|
3242
|
+
sessionId: string | undefined;
|
|
3243
|
+
invocationId: string | undefined;
|
|
3244
|
+
createdAt: Date | undefined;
|
|
3245
|
+
}
|
|
3246
|
+
export interface ListInvocationsRequest {
|
|
3247
|
+
nextToken?: string | undefined;
|
|
3248
|
+
maxResults?: number | undefined;
|
|
3249
|
+
sessionIdentifier: string | undefined;
|
|
3250
|
+
}
|
|
3251
|
+
export interface InvocationSummary {
|
|
3252
|
+
sessionId: string | undefined;
|
|
3253
|
+
invocationId: string | undefined;
|
|
3254
|
+
createdAt: Date | undefined;
|
|
3255
|
+
}
|
|
3256
|
+
export interface ListInvocationsResponse {
|
|
3257
|
+
invocationSummaries: InvocationSummary[] | undefined;
|
|
3258
|
+
nextToken?: string | undefined;
|
|
3259
|
+
}
|
|
3260
|
+
export interface GetInvocationStepRequest {
|
|
3261
|
+
invocationIdentifier: string | undefined;
|
|
3262
|
+
invocationStepId: string | undefined;
|
|
3263
|
+
sessionIdentifier: string | undefined;
|
|
3264
|
+
}
|
|
3265
|
+
export interface S3Location {
|
|
3266
|
+
uri: string | undefined;
|
|
3267
|
+
}
|
|
3268
|
+
export type ImageSource =
|
|
3269
|
+
| ImageSource.BytesMember
|
|
3270
|
+
| ImageSource.S3LocationMember
|
|
3271
|
+
| ImageSource.$UnknownMember;
|
|
3272
|
+
export declare namespace ImageSource {
|
|
3273
|
+
interface BytesMember {
|
|
3274
|
+
bytes: Uint8Array;
|
|
3275
|
+
s3Location?: never;
|
|
3276
|
+
$unknown?: never;
|
|
3277
|
+
}
|
|
3278
|
+
interface S3LocationMember {
|
|
3279
|
+
bytes?: never;
|
|
3280
|
+
s3Location: S3Location;
|
|
3281
|
+
$unknown?: never;
|
|
3282
|
+
}
|
|
3283
|
+
interface $UnknownMember {
|
|
3284
|
+
bytes?: never;
|
|
3285
|
+
s3Location?: never;
|
|
3286
|
+
$unknown: [string, any];
|
|
3287
|
+
}
|
|
3288
|
+
interface Visitor<T> {
|
|
3289
|
+
bytes: (value: Uint8Array) => T;
|
|
3290
|
+
s3Location: (value: S3Location) => T;
|
|
3291
|
+
_: (name: string, value: any) => T;
|
|
3292
|
+
}
|
|
3293
|
+
}
|
|
3294
|
+
export interface ImageBlock {
|
|
3295
|
+
format: ImageFormat | undefined;
|
|
3296
|
+
source: ImageSource | undefined;
|
|
3297
|
+
}
|
|
3298
|
+
export type BedrockSessionContentBlock =
|
|
3299
|
+
| BedrockSessionContentBlock.ImageMember
|
|
3300
|
+
| BedrockSessionContentBlock.TextMember
|
|
3301
|
+
| BedrockSessionContentBlock.$UnknownMember;
|
|
3302
|
+
export declare namespace BedrockSessionContentBlock {
|
|
3303
|
+
interface TextMember {
|
|
3304
|
+
text: string;
|
|
3305
|
+
image?: never;
|
|
3306
|
+
$unknown?: never;
|
|
3307
|
+
}
|
|
3308
|
+
interface ImageMember {
|
|
3309
|
+
text?: never;
|
|
3310
|
+
image: ImageBlock;
|
|
3311
|
+
$unknown?: never;
|
|
3312
|
+
}
|
|
3313
|
+
interface $UnknownMember {
|
|
3314
|
+
text?: never;
|
|
3315
|
+
image?: never;
|
|
3316
|
+
$unknown: [string, any];
|
|
3317
|
+
}
|
|
3318
|
+
interface Visitor<T> {
|
|
3319
|
+
text: (value: string) => T;
|
|
3320
|
+
image: (value: ImageBlock) => T;
|
|
3321
|
+
_: (name: string, value: any) => T;
|
|
3322
|
+
}
|
|
3323
|
+
}
|
|
3324
|
+
export type InvocationStepPayload =
|
|
3325
|
+
| InvocationStepPayload.ContentBlocksMember
|
|
3326
|
+
| InvocationStepPayload.$UnknownMember;
|
|
3327
|
+
export declare namespace InvocationStepPayload {
|
|
3328
|
+
interface ContentBlocksMember {
|
|
3329
|
+
contentBlocks: BedrockSessionContentBlock[];
|
|
3330
|
+
$unknown?: never;
|
|
3331
|
+
}
|
|
3332
|
+
interface $UnknownMember {
|
|
3333
|
+
contentBlocks?: never;
|
|
3334
|
+
$unknown: [string, any];
|
|
3335
|
+
}
|
|
3336
|
+
interface Visitor<T> {
|
|
3337
|
+
contentBlocks: (value: BedrockSessionContentBlock[]) => T;
|
|
3338
|
+
_: (name: string, value: any) => T;
|
|
3339
|
+
}
|
|
3340
|
+
}
|
|
3341
|
+
export interface InvocationStep {
|
|
3342
|
+
sessionId: string | undefined;
|
|
3343
|
+
invocationId: string | undefined;
|
|
3344
|
+
invocationStepId: string | undefined;
|
|
3345
|
+
invocationStepTime: Date | undefined;
|
|
3346
|
+
payload: InvocationStepPayload | undefined;
|
|
3347
|
+
}
|
|
3348
|
+
export interface GetInvocationStepResponse {
|
|
3349
|
+
invocationStep: InvocationStep | undefined;
|
|
3350
|
+
}
|
|
3351
|
+
export interface ListInvocationStepsRequest {
|
|
3352
|
+
invocationIdentifier?: string | undefined;
|
|
3353
|
+
nextToken?: string | undefined;
|
|
3354
|
+
maxResults?: number | undefined;
|
|
3355
|
+
sessionIdentifier: string | undefined;
|
|
3356
|
+
}
|
|
3357
|
+
export interface InvocationStepSummary {
|
|
3358
|
+
sessionId: string | undefined;
|
|
3359
|
+
invocationId: string | undefined;
|
|
3360
|
+
invocationStepId: string | undefined;
|
|
3361
|
+
invocationStepTime: Date | undefined;
|
|
3362
|
+
}
|
|
3363
|
+
export interface ListInvocationStepsResponse {
|
|
3364
|
+
invocationStepSummaries: InvocationStepSummary[] | undefined;
|
|
3365
|
+
nextToken?: string | undefined;
|
|
3366
|
+
}
|
|
3367
|
+
export interface PutInvocationStepRequest {
|
|
3368
|
+
sessionIdentifier: string | undefined;
|
|
3369
|
+
invocationIdentifier: string | undefined;
|
|
3370
|
+
invocationStepTime: Date | undefined;
|
|
3371
|
+
payload: InvocationStepPayload | undefined;
|
|
3372
|
+
invocationStepId?: string | undefined;
|
|
3373
|
+
}
|
|
3374
|
+
export interface PutInvocationStepResponse {
|
|
3375
|
+
invocationStepId: string | undefined;
|
|
3376
|
+
}
|
|
3377
|
+
export interface ListSessionsRequest {
|
|
3378
|
+
maxResults?: number | undefined;
|
|
3379
|
+
nextToken?: string | undefined;
|
|
3380
|
+
}
|
|
3381
|
+
export interface SessionSummary {
|
|
3382
|
+
sessionId: string | undefined;
|
|
3383
|
+
sessionArn: string | undefined;
|
|
3384
|
+
sessionStatus: SessionStatus | undefined;
|
|
3385
|
+
createdAt: Date | undefined;
|
|
3386
|
+
lastUpdatedAt: Date | undefined;
|
|
3387
|
+
}
|
|
3388
|
+
export interface ListSessionsResponse {
|
|
3389
|
+
sessionSummaries: SessionSummary[] | undefined;
|
|
3390
|
+
nextToken?: string | undefined;
|
|
3391
|
+
}
|
|
3392
|
+
export interface UpdateSessionRequest {
|
|
3393
|
+
sessionMetadata?: Record<string, string> | undefined;
|
|
3394
|
+
sessionIdentifier: string | undefined;
|
|
3395
|
+
}
|
|
3396
|
+
export interface UpdateSessionResponse {
|
|
3397
|
+
sessionId: string | undefined;
|
|
3398
|
+
sessionArn: string | undefined;
|
|
3399
|
+
sessionStatus: SessionStatus | undefined;
|
|
3400
|
+
createdAt: Date | undefined;
|
|
3401
|
+
lastUpdatedAt: Date | undefined;
|
|
3402
|
+
}
|
|
3403
|
+
export interface ListTagsForResourceRequest {
|
|
3404
|
+
resourceArn: string | undefined;
|
|
3405
|
+
}
|
|
3406
|
+
export interface ListTagsForResourceResponse {
|
|
3407
|
+
tags?: Record<string, string> | undefined;
|
|
3408
|
+
}
|
|
3409
|
+
export interface TagResourceRequest {
|
|
3410
|
+
resourceArn: string | undefined;
|
|
3411
|
+
tags: Record<string, string> | undefined;
|
|
3412
|
+
}
|
|
3413
|
+
export interface TagResourceResponse {}
|
|
3414
|
+
export interface UntagResourceRequest {
|
|
3415
|
+
resourceArn: string | undefined;
|
|
3416
|
+
tagKeys: string[] | undefined;
|
|
3417
|
+
}
|
|
3418
|
+
export interface UntagResourceResponse {}
|
|
3419
|
+
export type RetrievalFilter =
|
|
3420
|
+
| RetrievalFilter.AndAllMember
|
|
3421
|
+
| RetrievalFilter.EqualsMember
|
|
3422
|
+
| RetrievalFilter.GreaterThanMember
|
|
3423
|
+
| RetrievalFilter.GreaterThanOrEqualsMember
|
|
3424
|
+
| RetrievalFilter.InMember
|
|
3425
|
+
| RetrievalFilter.LessThanMember
|
|
3426
|
+
| RetrievalFilter.LessThanOrEqualsMember
|
|
3427
|
+
| RetrievalFilter.ListContainsMember
|
|
3428
|
+
| RetrievalFilter.NotEqualsMember
|
|
3429
|
+
| RetrievalFilter.NotInMember
|
|
3430
|
+
| RetrievalFilter.OrAllMember
|
|
3431
|
+
| RetrievalFilter.StartsWithMember
|
|
3432
|
+
| RetrievalFilter.StringContainsMember
|
|
3433
|
+
| RetrievalFilter.$UnknownMember;
|
|
3434
|
+
export declare namespace RetrievalFilter {
|
|
3435
|
+
interface EqualsMember {
|
|
3436
|
+
equals: FilterAttribute;
|
|
3437
|
+
notEquals?: never;
|
|
3438
|
+
greaterThan?: never;
|
|
3439
|
+
greaterThanOrEquals?: never;
|
|
3440
|
+
lessThan?: never;
|
|
3441
|
+
lessThanOrEquals?: never;
|
|
3442
|
+
in?: never;
|
|
3443
|
+
notIn?: never;
|
|
3444
|
+
startsWith?: never;
|
|
3445
|
+
listContains?: never;
|
|
3446
|
+
stringContains?: never;
|
|
3447
|
+
andAll?: never;
|
|
3448
|
+
orAll?: never;
|
|
3449
|
+
$unknown?: never;
|
|
3450
|
+
}
|
|
3451
|
+
interface NotEqualsMember {
|
|
3452
|
+
equals?: never;
|
|
3453
|
+
notEquals: FilterAttribute;
|
|
3454
|
+
greaterThan?: never;
|
|
3455
|
+
greaterThanOrEquals?: never;
|
|
3456
|
+
lessThan?: never;
|
|
3457
|
+
lessThanOrEquals?: never;
|
|
3458
|
+
in?: never;
|
|
3459
|
+
notIn?: never;
|
|
3460
|
+
startsWith?: never;
|
|
3461
|
+
listContains?: never;
|
|
3462
|
+
stringContains?: never;
|
|
3463
|
+
andAll?: never;
|
|
3464
|
+
orAll?: never;
|
|
3465
|
+
$unknown?: never;
|
|
3466
|
+
}
|
|
3467
|
+
interface GreaterThanMember {
|
|
3468
|
+
equals?: never;
|
|
3469
|
+
notEquals?: never;
|
|
3470
|
+
greaterThan: FilterAttribute;
|
|
3471
|
+
greaterThanOrEquals?: never;
|
|
3472
|
+
lessThan?: never;
|
|
3473
|
+
lessThanOrEquals?: never;
|
|
3474
|
+
in?: never;
|
|
3475
|
+
notIn?: never;
|
|
3476
|
+
startsWith?: never;
|
|
3477
|
+
listContains?: never;
|
|
3478
|
+
stringContains?: never;
|
|
3479
|
+
andAll?: never;
|
|
3480
|
+
orAll?: never;
|
|
3481
|
+
$unknown?: never;
|
|
3482
|
+
}
|
|
3483
|
+
interface GreaterThanOrEqualsMember {
|
|
3484
|
+
equals?: never;
|
|
3485
|
+
notEquals?: never;
|
|
3486
|
+
greaterThan?: never;
|
|
3487
|
+
greaterThanOrEquals: FilterAttribute;
|
|
3488
|
+
lessThan?: never;
|
|
3489
|
+
lessThanOrEquals?: never;
|
|
3490
|
+
in?: never;
|
|
3491
|
+
notIn?: never;
|
|
3492
|
+
startsWith?: never;
|
|
3493
|
+
listContains?: never;
|
|
3494
|
+
stringContains?: never;
|
|
3495
|
+
andAll?: never;
|
|
3496
|
+
orAll?: never;
|
|
3497
|
+
$unknown?: never;
|
|
3498
|
+
}
|
|
3499
|
+
interface LessThanMember {
|
|
3500
|
+
equals?: never;
|
|
3501
|
+
notEquals?: never;
|
|
3502
|
+
greaterThan?: never;
|
|
3503
|
+
greaterThanOrEquals?: never;
|
|
3504
|
+
lessThan: FilterAttribute;
|
|
3505
|
+
lessThanOrEquals?: never;
|
|
3506
|
+
in?: never;
|
|
3507
|
+
notIn?: never;
|
|
3508
|
+
startsWith?: never;
|
|
3509
|
+
listContains?: never;
|
|
3510
|
+
stringContains?: never;
|
|
3511
|
+
andAll?: never;
|
|
3512
|
+
orAll?: never;
|
|
3513
|
+
$unknown?: never;
|
|
3514
|
+
}
|
|
3515
|
+
interface LessThanOrEqualsMember {
|
|
3516
|
+
equals?: never;
|
|
3517
|
+
notEquals?: never;
|
|
3518
|
+
greaterThan?: never;
|
|
3519
|
+
greaterThanOrEquals?: never;
|
|
3520
|
+
lessThan?: never;
|
|
3521
|
+
lessThanOrEquals: FilterAttribute;
|
|
3522
|
+
in?: never;
|
|
3523
|
+
notIn?: never;
|
|
3524
|
+
startsWith?: never;
|
|
3525
|
+
listContains?: never;
|
|
3526
|
+
stringContains?: never;
|
|
3527
|
+
andAll?: never;
|
|
3528
|
+
orAll?: never;
|
|
3529
|
+
$unknown?: never;
|
|
3530
|
+
}
|
|
3531
|
+
interface InMember {
|
|
3532
|
+
equals?: never;
|
|
3533
|
+
notEquals?: never;
|
|
3534
|
+
greaterThan?: never;
|
|
3535
|
+
greaterThanOrEquals?: never;
|
|
3536
|
+
lessThan?: never;
|
|
3537
|
+
lessThanOrEquals?: never;
|
|
3538
|
+
in: FilterAttribute;
|
|
3539
|
+
notIn?: never;
|
|
3540
|
+
startsWith?: never;
|
|
3541
|
+
listContains?: never;
|
|
3542
|
+
stringContains?: never;
|
|
3543
|
+
andAll?: never;
|
|
3544
|
+
orAll?: never;
|
|
3545
|
+
$unknown?: never;
|
|
3546
|
+
}
|
|
3547
|
+
interface NotInMember {
|
|
3548
|
+
equals?: never;
|
|
3549
|
+
notEquals?: never;
|
|
3550
|
+
greaterThan?: never;
|
|
3551
|
+
greaterThanOrEquals?: never;
|
|
3552
|
+
lessThan?: never;
|
|
3553
|
+
lessThanOrEquals?: never;
|
|
3554
|
+
in?: never;
|
|
3555
|
+
notIn: FilterAttribute;
|
|
3556
|
+
startsWith?: never;
|
|
3557
|
+
listContains?: never;
|
|
3558
|
+
stringContains?: never;
|
|
3559
|
+
andAll?: never;
|
|
3560
|
+
orAll?: never;
|
|
3561
|
+
$unknown?: never;
|
|
3562
|
+
}
|
|
3563
|
+
interface StartsWithMember {
|
|
3564
|
+
equals?: never;
|
|
3565
|
+
notEquals?: never;
|
|
3566
|
+
greaterThan?: never;
|
|
3567
|
+
greaterThanOrEquals?: never;
|
|
3568
|
+
lessThan?: never;
|
|
3569
|
+
lessThanOrEquals?: never;
|
|
3570
|
+
in?: never;
|
|
3571
|
+
notIn?: never;
|
|
3572
|
+
startsWith: FilterAttribute;
|
|
3573
|
+
listContains?: never;
|
|
3574
|
+
stringContains?: never;
|
|
3575
|
+
andAll?: never;
|
|
3576
|
+
orAll?: never;
|
|
3577
|
+
$unknown?: never;
|
|
3578
|
+
}
|
|
3579
|
+
interface ListContainsMember {
|
|
3580
|
+
equals?: never;
|
|
3581
|
+
notEquals?: never;
|
|
3582
|
+
greaterThan?: never;
|
|
3583
|
+
greaterThanOrEquals?: never;
|
|
3584
|
+
lessThan?: never;
|
|
3585
|
+
lessThanOrEquals?: never;
|
|
3586
|
+
in?: never;
|
|
3587
|
+
notIn?: never;
|
|
3588
|
+
startsWith?: never;
|
|
3589
|
+
listContains: FilterAttribute;
|
|
3590
|
+
stringContains?: never;
|
|
3591
|
+
andAll?: never;
|
|
3592
|
+
orAll?: never;
|
|
3593
|
+
$unknown?: never;
|
|
3594
|
+
}
|
|
3595
|
+
interface StringContainsMember {
|
|
3596
|
+
equals?: never;
|
|
3597
|
+
notEquals?: never;
|
|
3598
|
+
greaterThan?: never;
|
|
3599
|
+
greaterThanOrEquals?: never;
|
|
3600
|
+
lessThan?: never;
|
|
3601
|
+
lessThanOrEquals?: never;
|
|
3602
|
+
in?: never;
|
|
3603
|
+
notIn?: never;
|
|
3604
|
+
startsWith?: never;
|
|
3605
|
+
listContains?: never;
|
|
3606
|
+
stringContains: FilterAttribute;
|
|
3607
|
+
andAll?: never;
|
|
3608
|
+
orAll?: never;
|
|
3609
|
+
$unknown?: never;
|
|
3610
|
+
}
|
|
3611
|
+
interface AndAllMember {
|
|
3612
|
+
equals?: never;
|
|
3613
|
+
notEquals?: never;
|
|
3614
|
+
greaterThan?: never;
|
|
3615
|
+
greaterThanOrEquals?: never;
|
|
3616
|
+
lessThan?: never;
|
|
3617
|
+
lessThanOrEquals?: never;
|
|
3618
|
+
in?: never;
|
|
3619
|
+
notIn?: never;
|
|
3620
|
+
startsWith?: never;
|
|
3621
|
+
listContains?: never;
|
|
3622
|
+
stringContains?: never;
|
|
3623
|
+
andAll: RetrievalFilter[];
|
|
3624
|
+
orAll?: never;
|
|
3625
|
+
$unknown?: never;
|
|
3626
|
+
}
|
|
3627
|
+
interface OrAllMember {
|
|
3628
|
+
equals?: never;
|
|
3629
|
+
notEquals?: never;
|
|
3630
|
+
greaterThan?: never;
|
|
3631
|
+
greaterThanOrEquals?: never;
|
|
3632
|
+
lessThan?: never;
|
|
3633
|
+
lessThanOrEquals?: never;
|
|
3634
|
+
in?: never;
|
|
3635
|
+
notIn?: never;
|
|
3636
|
+
startsWith?: never;
|
|
3637
|
+
listContains?: never;
|
|
3638
|
+
stringContains?: never;
|
|
3639
|
+
andAll?: never;
|
|
3640
|
+
orAll: RetrievalFilter[];
|
|
3641
|
+
$unknown?: never;
|
|
3642
|
+
}
|
|
3643
|
+
interface $UnknownMember {
|
|
3644
|
+
equals?: never;
|
|
3645
|
+
notEquals?: never;
|
|
3646
|
+
greaterThan?: never;
|
|
3647
|
+
greaterThanOrEquals?: never;
|
|
3648
|
+
lessThan?: never;
|
|
3649
|
+
lessThanOrEquals?: never;
|
|
3650
|
+
in?: never;
|
|
3651
|
+
notIn?: never;
|
|
3652
|
+
startsWith?: never;
|
|
3653
|
+
listContains?: never;
|
|
3654
|
+
stringContains?: never;
|
|
3655
|
+
andAll?: never;
|
|
3656
|
+
orAll?: never;
|
|
3657
|
+
$unknown: [string, any];
|
|
3658
|
+
}
|
|
3659
|
+
interface Visitor<T> {
|
|
3660
|
+
equals: (value: FilterAttribute) => T;
|
|
3661
|
+
notEquals: (value: FilterAttribute) => T;
|
|
3662
|
+
greaterThan: (value: FilterAttribute) => T;
|
|
3663
|
+
greaterThanOrEquals: (value: FilterAttribute) => T;
|
|
3664
|
+
lessThan: (value: FilterAttribute) => T;
|
|
3665
|
+
lessThanOrEquals: (value: FilterAttribute) => T;
|
|
3666
|
+
in: (value: FilterAttribute) => T;
|
|
3667
|
+
notIn: (value: FilterAttribute) => T;
|
|
3668
|
+
startsWith: (value: FilterAttribute) => T;
|
|
3669
|
+
listContains: (value: FilterAttribute) => T;
|
|
3670
|
+
stringContains: (value: FilterAttribute) => T;
|
|
3671
|
+
andAll: (value: RetrievalFilter[]) => T;
|
|
3672
|
+
orAll: (value: RetrievalFilter[]) => T;
|
|
3673
|
+
_: (name: string, value: any) => T;
|
|
3674
|
+
}
|
|
3675
|
+
}
|
|
3676
|
+
export interface KnowledgeBaseVectorSearchConfiguration {
|
|
3677
|
+
numberOfResults?: number | undefined;
|
|
3678
|
+
overrideSearchType?: SearchType | undefined;
|
|
3679
|
+
filter?: RetrievalFilter | undefined;
|
|
3680
|
+
rerankingConfiguration?: VectorSearchRerankingConfiguration | undefined;
|
|
3681
|
+
implicitFilterConfiguration?: ImplicitFilterConfiguration | undefined;
|
|
3682
|
+
}
|
|
3683
|
+
export interface KnowledgeBaseRetrievalConfiguration {
|
|
3684
|
+
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfiguration | undefined;
|
|
3685
|
+
}
|
|
3686
|
+
export interface KnowledgeBase {
|
|
3687
|
+
knowledgeBaseId: string | undefined;
|
|
3688
|
+
description: string | undefined;
|
|
3689
|
+
retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
3690
|
+
}
|
|
3691
|
+
export interface KnowledgeBaseConfiguration {
|
|
3692
|
+
knowledgeBaseId: string | undefined;
|
|
3693
|
+
retrievalConfiguration: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
3694
|
+
}
|
|
3695
|
+
export interface KnowledgeBaseRetrieveAndGenerateConfiguration {
|
|
3696
|
+
knowledgeBaseId: string | undefined;
|
|
3697
|
+
modelArn: string | undefined;
|
|
3698
|
+
retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
3699
|
+
generationConfiguration?: GenerationConfiguration | undefined;
|
|
3700
|
+
orchestrationConfiguration?: OrchestrationConfiguration | undefined;
|
|
3701
|
+
}
|
|
3702
|
+
export interface RetrieveRequest {
|
|
3703
|
+
knowledgeBaseId: string | undefined;
|
|
3704
|
+
retrievalQuery: KnowledgeBaseQuery | undefined;
|
|
3705
|
+
retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
3706
|
+
guardrailConfiguration?: GuardrailConfiguration | undefined;
|
|
3707
|
+
nextToken?: string | undefined;
|
|
3708
|
+
}
|
|
3709
|
+
export interface RetrieveAndGenerateConfiguration {
|
|
3710
|
+
type: RetrieveAndGenerateType | undefined;
|
|
3711
|
+
knowledgeBaseConfiguration?:
|
|
3712
|
+
| KnowledgeBaseRetrieveAndGenerateConfiguration
|
|
3713
|
+
| undefined;
|
|
3714
|
+
externalSourcesConfiguration?:
|
|
3715
|
+
| ExternalSourcesRetrieveAndGenerateConfiguration
|
|
3716
|
+
| undefined;
|
|
3717
|
+
}
|
|
3718
|
+
export interface Collaborator {
|
|
3719
|
+
customerEncryptionKeyArn?: string | undefined;
|
|
3720
|
+
foundationModel: string | undefined;
|
|
3721
|
+
instruction: string | undefined;
|
|
3722
|
+
idleSessionTTLInSeconds?: number | undefined;
|
|
3723
|
+
actionGroups?: AgentActionGroup[] | undefined;
|
|
3724
|
+
knowledgeBases?: KnowledgeBase[] | undefined;
|
|
3725
|
+
guardrailConfiguration?: GuardrailConfigurationWithArn | undefined;
|
|
3726
|
+
promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
|
|
3727
|
+
agentCollaboration?: AgentCollaboration | undefined;
|
|
3728
|
+
collaboratorConfigurations?: CollaboratorConfiguration[] | undefined;
|
|
3729
|
+
agentName?: string | undefined;
|
|
3730
|
+
}
|
|
3731
|
+
export interface RetrieveAndGenerateRequest {
|
|
3732
|
+
sessionId?: string | undefined;
|
|
3733
|
+
input: RetrieveAndGenerateInput | undefined;
|
|
3734
|
+
retrieveAndGenerateConfiguration?:
|
|
3735
|
+
| RetrieveAndGenerateConfiguration
|
|
3736
|
+
| undefined;
|
|
3737
|
+
sessionConfiguration?: RetrieveAndGenerateSessionConfiguration | undefined;
|
|
3738
|
+
}
|
|
3739
|
+
export interface RetrieveAndGenerateStreamRequest {
|
|
3740
|
+
sessionId?: string | undefined;
|
|
3741
|
+
input: RetrieveAndGenerateInput | undefined;
|
|
3742
|
+
retrieveAndGenerateConfiguration?:
|
|
3743
|
+
| RetrieveAndGenerateConfiguration
|
|
3744
|
+
| undefined;
|
|
3745
|
+
sessionConfiguration?: RetrieveAndGenerateSessionConfiguration | undefined;
|
|
3746
|
+
}
|
|
3747
|
+
export interface SessionState {
|
|
3748
|
+
sessionAttributes?: Record<string, string> | undefined;
|
|
3749
|
+
promptSessionAttributes?: Record<string, string> | undefined;
|
|
3750
|
+
returnControlInvocationResults?: InvocationResultMember[] | undefined;
|
|
3751
|
+
invocationId?: string | undefined;
|
|
3752
|
+
files?: InputFile[] | undefined;
|
|
3753
|
+
knowledgeBaseConfigurations?: KnowledgeBaseConfiguration[] | undefined;
|
|
3754
|
+
conversationHistory?: ConversationHistory | undefined;
|
|
3755
|
+
}
|
|
3756
|
+
export interface InvokeAgentRequest {
|
|
3757
|
+
sessionState?: SessionState | undefined;
|
|
3758
|
+
agentId: string | undefined;
|
|
3759
|
+
agentAliasId: string | undefined;
|
|
3760
|
+
sessionId: string | undefined;
|
|
3761
|
+
endSession?: boolean | undefined;
|
|
3762
|
+
enableTrace?: boolean | undefined;
|
|
3763
|
+
inputText?: string | undefined;
|
|
3764
|
+
memoryId?: string | undefined;
|
|
3765
|
+
bedrockModelConfigurations?: BedrockModelConfigurations | undefined;
|
|
3766
|
+
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
3767
|
+
promptCreationConfigurations?: PromptCreationConfigurations | undefined;
|
|
3768
|
+
sourceArn?: string | undefined;
|
|
3769
|
+
}
|
|
3770
|
+
export interface InvokeInlineAgentRequest {
|
|
3771
|
+
customerEncryptionKeyArn?: string | undefined;
|
|
3772
|
+
foundationModel: string | undefined;
|
|
3773
|
+
instruction: string | undefined;
|
|
3774
|
+
idleSessionTTLInSeconds?: number | undefined;
|
|
3775
|
+
actionGroups?: AgentActionGroup[] | undefined;
|
|
3776
|
+
knowledgeBases?: KnowledgeBase[] | undefined;
|
|
3777
|
+
guardrailConfiguration?: GuardrailConfigurationWithArn | undefined;
|
|
3778
|
+
promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
|
|
3779
|
+
agentCollaboration?: AgentCollaboration | undefined;
|
|
3780
|
+
collaboratorConfigurations?: CollaboratorConfiguration[] | undefined;
|
|
3781
|
+
agentName?: string | undefined;
|
|
3782
|
+
sessionId: string | undefined;
|
|
3783
|
+
endSession?: boolean | undefined;
|
|
3784
|
+
enableTrace?: boolean | undefined;
|
|
3785
|
+
inputText?: string | undefined;
|
|
3786
|
+
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
3787
|
+
promptCreationConfigurations?: PromptCreationConfigurations | undefined;
|
|
3788
|
+
inlineSessionState?: InlineSessionState | undefined;
|
|
3789
|
+
collaborators?: Collaborator[] | undefined;
|
|
3790
|
+
bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined;
|
|
3791
|
+
orchestrationType?: OrchestrationType | undefined;
|
|
3792
|
+
customOrchestration?: CustomOrchestration | undefined;
|
|
3793
|
+
}
|