@aws-sdk/client-bedrock-agent-runtime 3.461.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/LICENSE +201 -0
- package/README.md +229 -0
- package/dist-cjs/BedrockAgentRuntime.js +17 -0
- package/dist-cjs/BedrockAgentRuntimeClient.js +45 -0
- package/dist-cjs/commands/InvokeAgentCommand.js +52 -0
- package/dist-cjs/commands/RetrieveAndGenerateCommand.js +52 -0
- package/dist-cjs/commands/RetrieveCommand.js +52 -0
- package/dist-cjs/commands/index.js +6 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/BedrockAgentRuntimeServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +439 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/RetrievePaginator.js +28 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +689 -0
- package/dist-cjs/runtimeConfig.browser.js +41 -0
- package/dist-cjs/runtimeConfig.js +52 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +24 -0
- package/dist-cjs/runtimeExtensions.js +22 -0
- package/dist-es/BedrockAgentRuntime.js +13 -0
- package/dist-es/BedrockAgentRuntimeClient.js +41 -0
- package/dist-es/commands/InvokeAgentCommand.js +48 -0
- package/dist-es/commands/RetrieveAndGenerateCommand.js +48 -0
- package/dist-es/commands/RetrieveCommand.js +48 -0
- package/dist-es/commands/index.js +3 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/BedrockAgentRuntimeServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +396 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/RetrievePaginator.js +24 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +680 -0
- package/dist-es/runtimeConfig.browser.js +36 -0
- package/dist-es/runtimeConfig.js +47 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +20 -0
- package/dist-es/runtimeExtensions.js +18 -0
- package/dist-types/BedrockAgentRuntime.d.ts +31 -0
- package/dist-types/BedrockAgentRuntimeClient.d.ts +177 -0
- package/dist-types/commands/InvokeAgentCommand.d.ts +321 -0
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +142 -0
- package/dist-types/commands/RetrieveCommand.d.ts +123 -0
- package/dist-types/commands/index.d.ts +3 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +22 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +8 -0
- package/dist-types/index.d.ts +15 -0
- package/dist-types/models/BedrockAgentRuntimeServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1598 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/RetrievePaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +29 -0
- package/dist-types/runtimeConfig.browser.d.ts +47 -0
- package/dist-types/runtimeConfig.d.ts +47 -0
- package/dist-types/runtimeConfig.native.d.ts +46 -0
- package/dist-types/runtimeConfig.shared.d.ts +19 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +58 -0
- package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +147 -0
- package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/index.d.ts +3 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +33 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +7 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/BedrockAgentRuntimeServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +737 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/RetrievePaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +44 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +100 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +105 -0
|
@@ -0,0 +1,1598 @@
|
|
|
1
|
+
import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
|
|
2
|
+
import { BedrockAgentRuntimeServiceException as __BaseException } from "./BedrockAgentRuntimeServiceException";
|
|
3
|
+
/**
|
|
4
|
+
* @public
|
|
5
|
+
* This exception is thrown when a request is denied per access permissions
|
|
6
|
+
*/
|
|
7
|
+
export declare class AccessDeniedException extends __BaseException {
|
|
8
|
+
readonly name: "AccessDeniedException";
|
|
9
|
+
readonly $fault: "client";
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(opts: __ExceptionOptionType<AccessDeniedException, __BaseException>);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @public
|
|
17
|
+
* parameters included in action group invocation
|
|
18
|
+
*/
|
|
19
|
+
export interface Parameter {
|
|
20
|
+
/**
|
|
21
|
+
* @public
|
|
22
|
+
* Name of parameter
|
|
23
|
+
*/
|
|
24
|
+
name?: string;
|
|
25
|
+
/**
|
|
26
|
+
* @public
|
|
27
|
+
* Type of parameter
|
|
28
|
+
*/
|
|
29
|
+
type?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @public
|
|
32
|
+
* Value of parameter
|
|
33
|
+
*/
|
|
34
|
+
value?: string;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* @public
|
|
38
|
+
* Request Body Content Map
|
|
39
|
+
*/
|
|
40
|
+
export interface RequestBody {
|
|
41
|
+
/**
|
|
42
|
+
* @public
|
|
43
|
+
* Content type paramter map
|
|
44
|
+
*/
|
|
45
|
+
content?: Record<string, Parameter[]>;
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* @public
|
|
49
|
+
* input to lambda used in action group
|
|
50
|
+
*/
|
|
51
|
+
export interface ActionGroupInvocationInput {
|
|
52
|
+
/**
|
|
53
|
+
* @public
|
|
54
|
+
* Agent Trace Action Group Name
|
|
55
|
+
*/
|
|
56
|
+
actionGroupName?: string;
|
|
57
|
+
/**
|
|
58
|
+
* @public
|
|
59
|
+
* Agent Trace Action Group Action verb
|
|
60
|
+
*/
|
|
61
|
+
verb?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @public
|
|
64
|
+
* Agent Trace Action Group API path
|
|
65
|
+
*/
|
|
66
|
+
apiPath?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @public
|
|
69
|
+
* list of parameters included in action group invocation
|
|
70
|
+
*/
|
|
71
|
+
parameters?: Parameter[];
|
|
72
|
+
/**
|
|
73
|
+
* @public
|
|
74
|
+
* Request Body Content Map
|
|
75
|
+
*/
|
|
76
|
+
requestBody?: RequestBody;
|
|
77
|
+
}
|
|
78
|
+
/**
|
|
79
|
+
* @public
|
|
80
|
+
* output from lambda used in action group
|
|
81
|
+
*/
|
|
82
|
+
export interface ActionGroupInvocationOutput {
|
|
83
|
+
/**
|
|
84
|
+
* @public
|
|
85
|
+
* Agent Trace Action Group Lambda Invocation Output String
|
|
86
|
+
*/
|
|
87
|
+
text?: string;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* @public
|
|
91
|
+
* This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource
|
|
92
|
+
*/
|
|
93
|
+
export declare class BadGatewayException extends __BaseException {
|
|
94
|
+
readonly name: "BadGatewayException";
|
|
95
|
+
readonly $fault: "server";
|
|
96
|
+
/**
|
|
97
|
+
* @public
|
|
98
|
+
* Non Blank String
|
|
99
|
+
*/
|
|
100
|
+
resourceName?: string;
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
constructor(opts: __ExceptionOptionType<BadGatewayException, __BaseException>);
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* @public
|
|
108
|
+
* This exception is thrown when there is a conflict performing an operation
|
|
109
|
+
*/
|
|
110
|
+
export declare class ConflictException extends __BaseException {
|
|
111
|
+
readonly name: "ConflictException";
|
|
112
|
+
readonly $fault: "client";
|
|
113
|
+
/**
|
|
114
|
+
* @internal
|
|
115
|
+
*/
|
|
116
|
+
constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* @public
|
|
120
|
+
* This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource due to a customer fault (i.e. bad configuration)
|
|
121
|
+
*/
|
|
122
|
+
export declare class DependencyFailedException extends __BaseException {
|
|
123
|
+
readonly name: "DependencyFailedException";
|
|
124
|
+
readonly $fault: "client";
|
|
125
|
+
/**
|
|
126
|
+
* @public
|
|
127
|
+
* Non Blank String
|
|
128
|
+
*/
|
|
129
|
+
resourceName?: string;
|
|
130
|
+
/**
|
|
131
|
+
* @internal
|
|
132
|
+
*/
|
|
133
|
+
constructor(opts: __ExceptionOptionType<DependencyFailedException, __BaseException>);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* @public
|
|
137
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
138
|
+
*/
|
|
139
|
+
export declare class InternalServerException extends __BaseException {
|
|
140
|
+
readonly name: "InternalServerException";
|
|
141
|
+
readonly $fault: "server";
|
|
142
|
+
/**
|
|
143
|
+
* @internal
|
|
144
|
+
*/
|
|
145
|
+
constructor(opts: __ExceptionOptionType<InternalServerException, __BaseException>);
|
|
146
|
+
}
|
|
147
|
+
/**
|
|
148
|
+
* @public
|
|
149
|
+
* Session state provided
|
|
150
|
+
*/
|
|
151
|
+
export interface SessionState {
|
|
152
|
+
/**
|
|
153
|
+
* @public
|
|
154
|
+
* Session Attributes
|
|
155
|
+
*/
|
|
156
|
+
sessionAttributes?: Record<string, string>;
|
|
157
|
+
/**
|
|
158
|
+
* @public
|
|
159
|
+
* Prompt Session Attributes
|
|
160
|
+
*/
|
|
161
|
+
promptSessionAttributes?: Record<string, string>;
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* @public
|
|
165
|
+
* InvokeAgent Request
|
|
166
|
+
*/
|
|
167
|
+
export interface InvokeAgentRequest {
|
|
168
|
+
/**
|
|
169
|
+
* @public
|
|
170
|
+
* Session state passed by customer. Base64 encoded json string representation of SessionState.
|
|
171
|
+
*/
|
|
172
|
+
sessionState?: SessionState;
|
|
173
|
+
/**
|
|
174
|
+
* @public
|
|
175
|
+
* Identifier for Agent
|
|
176
|
+
*/
|
|
177
|
+
agentId: string | undefined;
|
|
178
|
+
/**
|
|
179
|
+
* @public
|
|
180
|
+
* Identifier for Agent Alias
|
|
181
|
+
*/
|
|
182
|
+
agentAliasId: string | undefined;
|
|
183
|
+
/**
|
|
184
|
+
* @public
|
|
185
|
+
* Identifier used for the current session
|
|
186
|
+
*/
|
|
187
|
+
sessionId: string | undefined;
|
|
188
|
+
/**
|
|
189
|
+
* @public
|
|
190
|
+
* End current session
|
|
191
|
+
*/
|
|
192
|
+
endSession?: boolean;
|
|
193
|
+
/**
|
|
194
|
+
* @public
|
|
195
|
+
* Enable agent trace events for improved debugging
|
|
196
|
+
*/
|
|
197
|
+
enableTrace?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* @public
|
|
200
|
+
* Input data in the format specified in the Content-Type request header.
|
|
201
|
+
*/
|
|
202
|
+
inputText: string | undefined;
|
|
203
|
+
}
|
|
204
|
+
/**
|
|
205
|
+
* @public
|
|
206
|
+
* Span of text
|
|
207
|
+
*/
|
|
208
|
+
export interface Span {
|
|
209
|
+
/**
|
|
210
|
+
* @public
|
|
211
|
+
* Start of span
|
|
212
|
+
*/
|
|
213
|
+
start?: number;
|
|
214
|
+
/**
|
|
215
|
+
* @public
|
|
216
|
+
* End of span
|
|
217
|
+
*/
|
|
218
|
+
end?: number;
|
|
219
|
+
}
|
|
220
|
+
/**
|
|
221
|
+
* @public
|
|
222
|
+
* Text response part
|
|
223
|
+
*/
|
|
224
|
+
export interface TextResponsePart {
|
|
225
|
+
/**
|
|
226
|
+
* @public
|
|
227
|
+
* Response part in text
|
|
228
|
+
*/
|
|
229
|
+
text?: string;
|
|
230
|
+
/**
|
|
231
|
+
* @public
|
|
232
|
+
* Span of text
|
|
233
|
+
*/
|
|
234
|
+
span?: Span;
|
|
235
|
+
}
|
|
236
|
+
/**
|
|
237
|
+
* @public
|
|
238
|
+
* Generate response part
|
|
239
|
+
*/
|
|
240
|
+
export interface GeneratedResponsePart {
|
|
241
|
+
/**
|
|
242
|
+
* @public
|
|
243
|
+
* Text response part
|
|
244
|
+
*/
|
|
245
|
+
textResponsePart?: TextResponsePart;
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* @public
|
|
249
|
+
* Content of a retrieval result.
|
|
250
|
+
*/
|
|
251
|
+
export interface RetrievalResultContent {
|
|
252
|
+
/**
|
|
253
|
+
* @public
|
|
254
|
+
* Content of a retrieval result in text
|
|
255
|
+
*/
|
|
256
|
+
text: string | undefined;
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* @public
|
|
260
|
+
* The S3 location of a retrieval result.
|
|
261
|
+
*/
|
|
262
|
+
export interface RetrievalResultS3Location {
|
|
263
|
+
/**
|
|
264
|
+
* @public
|
|
265
|
+
* URI of S3 location
|
|
266
|
+
*/
|
|
267
|
+
uri?: string;
|
|
268
|
+
}
|
|
269
|
+
/**
|
|
270
|
+
* @public
|
|
271
|
+
* @enum
|
|
272
|
+
*/
|
|
273
|
+
export declare const RetrievalResultLocationType: {
|
|
274
|
+
readonly S3: "S3";
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* @public
|
|
278
|
+
*/
|
|
279
|
+
export type RetrievalResultLocationType = (typeof RetrievalResultLocationType)[keyof typeof RetrievalResultLocationType];
|
|
280
|
+
/**
|
|
281
|
+
* @public
|
|
282
|
+
* The source location of a retrieval result.
|
|
283
|
+
*/
|
|
284
|
+
export interface RetrievalResultLocation {
|
|
285
|
+
/**
|
|
286
|
+
* @public
|
|
287
|
+
* The location type of a retrieval result.
|
|
288
|
+
*/
|
|
289
|
+
type: RetrievalResultLocationType | undefined;
|
|
290
|
+
/**
|
|
291
|
+
* @public
|
|
292
|
+
* The S3 location of a retrieval result.
|
|
293
|
+
*/
|
|
294
|
+
s3Location?: RetrievalResultS3Location;
|
|
295
|
+
}
|
|
296
|
+
/**
|
|
297
|
+
* @public
|
|
298
|
+
* Retrieved reference
|
|
299
|
+
*/
|
|
300
|
+
export interface RetrievedReference {
|
|
301
|
+
/**
|
|
302
|
+
* @public
|
|
303
|
+
* Content of a retrieval result.
|
|
304
|
+
*/
|
|
305
|
+
content?: RetrievalResultContent;
|
|
306
|
+
/**
|
|
307
|
+
* @public
|
|
308
|
+
* The source location of a retrieval result.
|
|
309
|
+
*/
|
|
310
|
+
location?: RetrievalResultLocation;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* @public
|
|
314
|
+
* Citation associated with the agent response
|
|
315
|
+
*/
|
|
316
|
+
export interface Citation {
|
|
317
|
+
/**
|
|
318
|
+
* @public
|
|
319
|
+
* Generate response part
|
|
320
|
+
*/
|
|
321
|
+
generatedResponsePart?: GeneratedResponsePart;
|
|
322
|
+
/**
|
|
323
|
+
* @public
|
|
324
|
+
* list of retrieved references
|
|
325
|
+
*/
|
|
326
|
+
retrievedReferences?: RetrievedReference[];
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* @public
|
|
330
|
+
* Citations associated with final agent response
|
|
331
|
+
*/
|
|
332
|
+
export interface Attribution {
|
|
333
|
+
/**
|
|
334
|
+
* @public
|
|
335
|
+
* List of citations
|
|
336
|
+
*/
|
|
337
|
+
citations?: Citation[];
|
|
338
|
+
}
|
|
339
|
+
/**
|
|
340
|
+
* @public
|
|
341
|
+
* Base 64 endoded byte response
|
|
342
|
+
*/
|
|
343
|
+
export interface PayloadPart {
|
|
344
|
+
/**
|
|
345
|
+
* @public
|
|
346
|
+
* PartBody of the payload in bytes
|
|
347
|
+
*/
|
|
348
|
+
bytes?: Uint8Array;
|
|
349
|
+
/**
|
|
350
|
+
* @public
|
|
351
|
+
* Citations associated with final agent response
|
|
352
|
+
*/
|
|
353
|
+
attribution?: Attribution;
|
|
354
|
+
}
|
|
355
|
+
/**
|
|
356
|
+
* @public
|
|
357
|
+
* This exception is thrown when a resource referenced by the operation does not exist
|
|
358
|
+
*/
|
|
359
|
+
export declare class ResourceNotFoundException extends __BaseException {
|
|
360
|
+
readonly name: "ResourceNotFoundException";
|
|
361
|
+
readonly $fault: "client";
|
|
362
|
+
/**
|
|
363
|
+
* @internal
|
|
364
|
+
*/
|
|
365
|
+
constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
|
|
366
|
+
}
|
|
367
|
+
/**
|
|
368
|
+
* @public
|
|
369
|
+
* This exception is thrown when a request is made beyond the service quota
|
|
370
|
+
*/
|
|
371
|
+
export declare class ServiceQuotaExceededException extends __BaseException {
|
|
372
|
+
readonly name: "ServiceQuotaExceededException";
|
|
373
|
+
readonly $fault: "client";
|
|
374
|
+
/**
|
|
375
|
+
* @internal
|
|
376
|
+
*/
|
|
377
|
+
constructor(opts: __ExceptionOptionType<ServiceQuotaExceededException, __BaseException>);
|
|
378
|
+
}
|
|
379
|
+
/**
|
|
380
|
+
* @public
|
|
381
|
+
* This exception is thrown when the number of requests exceeds the limit
|
|
382
|
+
*/
|
|
383
|
+
export declare class ThrottlingException extends __BaseException {
|
|
384
|
+
readonly name: "ThrottlingException";
|
|
385
|
+
readonly $fault: "client";
|
|
386
|
+
/**
|
|
387
|
+
* @internal
|
|
388
|
+
*/
|
|
389
|
+
constructor(opts: __ExceptionOptionType<ThrottlingException, __BaseException>);
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* @public
|
|
393
|
+
* Trace Part which is emitted when agent trace could not be generated
|
|
394
|
+
*/
|
|
395
|
+
export interface FailureTrace {
|
|
396
|
+
/**
|
|
397
|
+
* @public
|
|
398
|
+
* Identifier for trace
|
|
399
|
+
*/
|
|
400
|
+
traceId?: string;
|
|
401
|
+
/**
|
|
402
|
+
* @public
|
|
403
|
+
* Agent Trace Failed Reason String
|
|
404
|
+
*/
|
|
405
|
+
failureReason?: string;
|
|
406
|
+
}
|
|
407
|
+
/**
|
|
408
|
+
* @public
|
|
409
|
+
* @enum
|
|
410
|
+
*/
|
|
411
|
+
export declare const InvocationType: {
|
|
412
|
+
readonly ACTION_GROUP: "ACTION_GROUP";
|
|
413
|
+
readonly FINISH: "FINISH";
|
|
414
|
+
readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
|
|
415
|
+
};
|
|
416
|
+
/**
|
|
417
|
+
* @public
|
|
418
|
+
*/
|
|
419
|
+
export type InvocationType = (typeof InvocationType)[keyof typeof InvocationType];
|
|
420
|
+
/**
|
|
421
|
+
* @public
|
|
422
|
+
* Input to lambda used in action group
|
|
423
|
+
*/
|
|
424
|
+
export interface KnowledgeBaseLookupInput {
|
|
425
|
+
/**
|
|
426
|
+
* @public
|
|
427
|
+
* Agent Trace Action Group Lambda Invocation Output String
|
|
428
|
+
*/
|
|
429
|
+
text?: string;
|
|
430
|
+
/**
|
|
431
|
+
* @public
|
|
432
|
+
* Agent Trace Action Group Knowledge Base Id
|
|
433
|
+
*/
|
|
434
|
+
knowledgeBaseId?: string;
|
|
435
|
+
}
|
|
436
|
+
/**
|
|
437
|
+
* @public
|
|
438
|
+
* Trace Part which contains input details for action group or knowledge base
|
|
439
|
+
*/
|
|
440
|
+
export interface InvocationInput {
|
|
441
|
+
/**
|
|
442
|
+
* @public
|
|
443
|
+
* Identifier for trace
|
|
444
|
+
*/
|
|
445
|
+
traceId?: string;
|
|
446
|
+
/**
|
|
447
|
+
* @public
|
|
448
|
+
* types of invocations
|
|
449
|
+
*/
|
|
450
|
+
invocationType?: InvocationType;
|
|
451
|
+
/**
|
|
452
|
+
* @public
|
|
453
|
+
* input to lambda used in action group
|
|
454
|
+
*/
|
|
455
|
+
actionGroupInvocationInput?: ActionGroupInvocationInput;
|
|
456
|
+
/**
|
|
457
|
+
* @public
|
|
458
|
+
* Input to lambda used in action group
|
|
459
|
+
*/
|
|
460
|
+
knowledgeBaseLookupInput?: KnowledgeBaseLookupInput;
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* @public
|
|
464
|
+
* Configurations for controlling the inference response of an InvokeAgent API call
|
|
465
|
+
*/
|
|
466
|
+
export interface InferenceConfiguration {
|
|
467
|
+
/**
|
|
468
|
+
* @public
|
|
469
|
+
* Controls randomness, higher values increase diversity
|
|
470
|
+
*/
|
|
471
|
+
temperature?: number;
|
|
472
|
+
/**
|
|
473
|
+
* @public
|
|
474
|
+
* Cumulative probability cutoff for token selection
|
|
475
|
+
*/
|
|
476
|
+
topP?: number;
|
|
477
|
+
/**
|
|
478
|
+
* @public
|
|
479
|
+
* Sample from the k most likely next tokens
|
|
480
|
+
*/
|
|
481
|
+
topK?: number;
|
|
482
|
+
/**
|
|
483
|
+
* @public
|
|
484
|
+
* Maximum length of output
|
|
485
|
+
*/
|
|
486
|
+
maximumLength?: number;
|
|
487
|
+
/**
|
|
488
|
+
* @public
|
|
489
|
+
* List of stop sequences
|
|
490
|
+
*/
|
|
491
|
+
stopSequences?: string[];
|
|
492
|
+
}
|
|
493
|
+
/**
|
|
494
|
+
* @public
|
|
495
|
+
* @enum
|
|
496
|
+
*/
|
|
497
|
+
export declare const CreationMode: {
|
|
498
|
+
readonly DEFAULT: "DEFAULT";
|
|
499
|
+
readonly OVERRIDDEN: "OVERRIDDEN";
|
|
500
|
+
};
|
|
501
|
+
/**
|
|
502
|
+
* @public
|
|
503
|
+
*/
|
|
504
|
+
export type CreationMode = (typeof CreationMode)[keyof typeof CreationMode];
|
|
505
|
+
/**
|
|
506
|
+
* @public
|
|
507
|
+
* @enum
|
|
508
|
+
*/
|
|
509
|
+
export declare const PromptType: {
|
|
510
|
+
readonly KNOWLEDGE_BASE_RESPONSE_GENERATION: "KNOWLEDGE_BASE_RESPONSE_GENERATION";
|
|
511
|
+
readonly ORCHESTRATION: "ORCHESTRATION";
|
|
512
|
+
readonly POST_PROCESSING: "POST_PROCESSING";
|
|
513
|
+
readonly PRE_PROCESSING: "PRE_PROCESSING";
|
|
514
|
+
};
|
|
515
|
+
/**
|
|
516
|
+
* @public
|
|
517
|
+
*/
|
|
518
|
+
export type PromptType = (typeof PromptType)[keyof typeof PromptType];
|
|
519
|
+
/**
|
|
520
|
+
* @public
|
|
521
|
+
* Trace Part which contains information used to call Invoke Model
|
|
522
|
+
*/
|
|
523
|
+
export interface ModelInvocationInput {
|
|
524
|
+
/**
|
|
525
|
+
* @public
|
|
526
|
+
* Identifier for trace
|
|
527
|
+
*/
|
|
528
|
+
traceId?: string;
|
|
529
|
+
/**
|
|
530
|
+
* @public
|
|
531
|
+
* Prompt Message
|
|
532
|
+
*/
|
|
533
|
+
text?: string;
|
|
534
|
+
/**
|
|
535
|
+
* @public
|
|
536
|
+
* types of prompts
|
|
537
|
+
*/
|
|
538
|
+
type?: PromptType;
|
|
539
|
+
/**
|
|
540
|
+
* @public
|
|
541
|
+
* Configurations for controlling the inference response of an InvokeAgent API call
|
|
542
|
+
*/
|
|
543
|
+
inferenceConfiguration?: InferenceConfiguration;
|
|
544
|
+
/**
|
|
545
|
+
* @public
|
|
546
|
+
* ARN of a Lambda.
|
|
547
|
+
*/
|
|
548
|
+
overrideLambda?: string;
|
|
549
|
+
/**
|
|
550
|
+
* @public
|
|
551
|
+
* indicates if agent uses default prompt or overriden prompt
|
|
552
|
+
*/
|
|
553
|
+
promptCreationMode?: CreationMode;
|
|
554
|
+
/**
|
|
555
|
+
* @public
|
|
556
|
+
* indicates if agent uses default prompt or overriden prompt
|
|
557
|
+
*/
|
|
558
|
+
parserMode?: CreationMode;
|
|
559
|
+
}
|
|
560
|
+
/**
|
|
561
|
+
* @public
|
|
562
|
+
* Agent finish output
|
|
563
|
+
*/
|
|
564
|
+
export interface FinalResponse {
|
|
565
|
+
/**
|
|
566
|
+
* @public
|
|
567
|
+
* Agent Trace Action Group Lambda Invocation Output String
|
|
568
|
+
*/
|
|
569
|
+
text?: string;
|
|
570
|
+
}
|
|
571
|
+
/**
|
|
572
|
+
* @public
|
|
573
|
+
* Input to lambda used in action group
|
|
574
|
+
*/
|
|
575
|
+
export interface KnowledgeBaseLookupOutput {
|
|
576
|
+
/**
|
|
577
|
+
* @public
|
|
578
|
+
* list of retrieved references
|
|
579
|
+
*/
|
|
580
|
+
retrievedReferences?: RetrievedReference[];
|
|
581
|
+
}
|
|
582
|
+
/**
|
|
583
|
+
* @public
|
|
584
|
+
* @enum
|
|
585
|
+
*/
|
|
586
|
+
export declare const Source: {
|
|
587
|
+
readonly ACTION_GROUP: "ACTION_GROUP";
|
|
588
|
+
readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
|
|
589
|
+
readonly PARSER: "PARSER";
|
|
590
|
+
};
|
|
591
|
+
/**
|
|
592
|
+
* @public
|
|
593
|
+
*/
|
|
594
|
+
export type Source = (typeof Source)[keyof typeof Source];
|
|
595
|
+
/**
|
|
596
|
+
* @public
|
|
597
|
+
* Observation information if there were reprompts
|
|
598
|
+
*/
|
|
599
|
+
export interface RepromptResponse {
|
|
600
|
+
/**
|
|
601
|
+
* @public
|
|
602
|
+
* Reprompt response text
|
|
603
|
+
*/
|
|
604
|
+
text?: string;
|
|
605
|
+
/**
|
|
606
|
+
* @public
|
|
607
|
+
* Parsing error source
|
|
608
|
+
*/
|
|
609
|
+
source?: Source;
|
|
610
|
+
}
|
|
611
|
+
/**
|
|
612
|
+
* @public
|
|
613
|
+
* @enum
|
|
614
|
+
*/
|
|
615
|
+
export declare const Type: {
|
|
616
|
+
readonly ACTION_GROUP: "ACTION_GROUP";
|
|
617
|
+
readonly ASK_USER: "ASK_USER";
|
|
618
|
+
readonly FINISH: "FINISH";
|
|
619
|
+
readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
|
|
620
|
+
readonly REPROMPT: "REPROMPT";
|
|
621
|
+
};
|
|
622
|
+
/**
|
|
623
|
+
* @public
|
|
624
|
+
*/
|
|
625
|
+
export type Type = (typeof Type)[keyof typeof Type];
|
|
626
|
+
/**
|
|
627
|
+
* @public
|
|
628
|
+
* Trace Part which contains output details for action group or knowledge base or final response
|
|
629
|
+
*/
|
|
630
|
+
export interface Observation {
|
|
631
|
+
/**
|
|
632
|
+
* @public
|
|
633
|
+
* Identifier for trace
|
|
634
|
+
*/
|
|
635
|
+
traceId?: string;
|
|
636
|
+
/**
|
|
637
|
+
* @public
|
|
638
|
+
* types of observations
|
|
639
|
+
*/
|
|
640
|
+
type?: Type;
|
|
641
|
+
/**
|
|
642
|
+
* @public
|
|
643
|
+
* output from lambda used in action group
|
|
644
|
+
*/
|
|
645
|
+
actionGroupInvocationOutput?: ActionGroupInvocationOutput;
|
|
646
|
+
/**
|
|
647
|
+
* @public
|
|
648
|
+
* Input to lambda used in action group
|
|
649
|
+
*/
|
|
650
|
+
knowledgeBaseLookupOutput?: KnowledgeBaseLookupOutput;
|
|
651
|
+
/**
|
|
652
|
+
* @public
|
|
653
|
+
* Agent finish output
|
|
654
|
+
*/
|
|
655
|
+
finalResponse?: FinalResponse;
|
|
656
|
+
/**
|
|
657
|
+
* @public
|
|
658
|
+
* Observation information if there were reprompts
|
|
659
|
+
*/
|
|
660
|
+
repromptResponse?: RepromptResponse;
|
|
661
|
+
}
|
|
662
|
+
/**
|
|
663
|
+
* @public
|
|
664
|
+
* Trace Part which contains information related to reasoning
|
|
665
|
+
*/
|
|
666
|
+
export interface Rationale {
|
|
667
|
+
/**
|
|
668
|
+
* @public
|
|
669
|
+
* Identifier for trace
|
|
670
|
+
*/
|
|
671
|
+
traceId?: string;
|
|
672
|
+
/**
|
|
673
|
+
* @public
|
|
674
|
+
* Agent Trace Rationale String
|
|
675
|
+
*/
|
|
676
|
+
text?: string;
|
|
677
|
+
}
|
|
678
|
+
/**
|
|
679
|
+
* @public
|
|
680
|
+
* Trace contains intermidate response during orchestration
|
|
681
|
+
*/
|
|
682
|
+
export type OrchestrationTrace = OrchestrationTrace.InvocationInputMember | OrchestrationTrace.ModelInvocationInputMember | OrchestrationTrace.ObservationMember | OrchestrationTrace.RationaleMember | OrchestrationTrace.$UnknownMember;
|
|
683
|
+
/**
|
|
684
|
+
* @public
|
|
685
|
+
*/
|
|
686
|
+
export declare namespace OrchestrationTrace {
|
|
687
|
+
/**
|
|
688
|
+
* @public
|
|
689
|
+
* Trace Part which contains information related to reasoning
|
|
690
|
+
*/
|
|
691
|
+
interface RationaleMember {
|
|
692
|
+
rationale: Rationale;
|
|
693
|
+
invocationInput?: never;
|
|
694
|
+
observation?: never;
|
|
695
|
+
modelInvocationInput?: never;
|
|
696
|
+
$unknown?: never;
|
|
697
|
+
}
|
|
698
|
+
/**
|
|
699
|
+
* @public
|
|
700
|
+
* Trace Part which contains input details for action group or knowledge base
|
|
701
|
+
*/
|
|
702
|
+
interface InvocationInputMember {
|
|
703
|
+
rationale?: never;
|
|
704
|
+
invocationInput: InvocationInput;
|
|
705
|
+
observation?: never;
|
|
706
|
+
modelInvocationInput?: never;
|
|
707
|
+
$unknown?: never;
|
|
708
|
+
}
|
|
709
|
+
/**
|
|
710
|
+
* @public
|
|
711
|
+
* Trace Part which contains output details for action group or knowledge base or final response
|
|
712
|
+
*/
|
|
713
|
+
interface ObservationMember {
|
|
714
|
+
rationale?: never;
|
|
715
|
+
invocationInput?: never;
|
|
716
|
+
observation: Observation;
|
|
717
|
+
modelInvocationInput?: never;
|
|
718
|
+
$unknown?: never;
|
|
719
|
+
}
|
|
720
|
+
/**
|
|
721
|
+
* @public
|
|
722
|
+
* Trace Part which contains information used to call Invoke Model
|
|
723
|
+
*/
|
|
724
|
+
interface ModelInvocationInputMember {
|
|
725
|
+
rationale?: never;
|
|
726
|
+
invocationInput?: never;
|
|
727
|
+
observation?: never;
|
|
728
|
+
modelInvocationInput: ModelInvocationInput;
|
|
729
|
+
$unknown?: never;
|
|
730
|
+
}
|
|
731
|
+
/**
|
|
732
|
+
* @public
|
|
733
|
+
*/
|
|
734
|
+
interface $UnknownMember {
|
|
735
|
+
rationale?: never;
|
|
736
|
+
invocationInput?: never;
|
|
737
|
+
observation?: never;
|
|
738
|
+
modelInvocationInput?: never;
|
|
739
|
+
$unknown: [string, any];
|
|
740
|
+
}
|
|
741
|
+
interface Visitor<T> {
|
|
742
|
+
rationale: (value: Rationale) => T;
|
|
743
|
+
invocationInput: (value: InvocationInput) => T;
|
|
744
|
+
observation: (value: Observation) => T;
|
|
745
|
+
modelInvocationInput: (value: ModelInvocationInput) => T;
|
|
746
|
+
_: (name: string, value: any) => T;
|
|
747
|
+
}
|
|
748
|
+
const visit: <T>(value: OrchestrationTrace, visitor: Visitor<T>) => T;
|
|
749
|
+
}
|
|
750
|
+
/**
|
|
751
|
+
* @public
|
|
752
|
+
* Trace Part which contains information if preprocessing was successful
|
|
753
|
+
*/
|
|
754
|
+
export interface PostProcessingParsedResponse {
|
|
755
|
+
/**
|
|
756
|
+
* @public
|
|
757
|
+
* Agent Trace Output String
|
|
758
|
+
*/
|
|
759
|
+
text?: string;
|
|
760
|
+
}
|
|
761
|
+
/**
|
|
762
|
+
* @public
|
|
763
|
+
* Trace Part which contains information related to postprocessing
|
|
764
|
+
*/
|
|
765
|
+
export interface PostProcessingModelInvocationOutput {
|
|
766
|
+
/**
|
|
767
|
+
* @public
|
|
768
|
+
* Identifier for trace
|
|
769
|
+
*/
|
|
770
|
+
traceId?: string;
|
|
771
|
+
/**
|
|
772
|
+
* @public
|
|
773
|
+
* Trace Part which contains information if preprocessing was successful
|
|
774
|
+
*/
|
|
775
|
+
parsedResponse?: PostProcessingParsedResponse;
|
|
776
|
+
}
|
|
777
|
+
/**
|
|
778
|
+
* @public
|
|
779
|
+
* Trace Part which contains information related to post processing step
|
|
780
|
+
*/
|
|
781
|
+
export type PostProcessingTrace = PostProcessingTrace.ModelInvocationInputMember | PostProcessingTrace.ModelInvocationOutputMember | PostProcessingTrace.$UnknownMember;
|
|
782
|
+
/**
|
|
783
|
+
* @public
|
|
784
|
+
*/
|
|
785
|
+
export declare namespace PostProcessingTrace {
|
|
786
|
+
/**
|
|
787
|
+
* @public
|
|
788
|
+
* Trace Part which contains information used to call Invoke Model
|
|
789
|
+
*/
|
|
790
|
+
interface ModelInvocationInputMember {
|
|
791
|
+
modelInvocationInput: ModelInvocationInput;
|
|
792
|
+
modelInvocationOutput?: never;
|
|
793
|
+
$unknown?: never;
|
|
794
|
+
}
|
|
795
|
+
/**
|
|
796
|
+
* @public
|
|
797
|
+
* Trace Part which contains information related to postprocessing
|
|
798
|
+
*/
|
|
799
|
+
interface ModelInvocationOutputMember {
|
|
800
|
+
modelInvocationInput?: never;
|
|
801
|
+
modelInvocationOutput: PostProcessingModelInvocationOutput;
|
|
802
|
+
$unknown?: never;
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* @public
|
|
806
|
+
*/
|
|
807
|
+
interface $UnknownMember {
|
|
808
|
+
modelInvocationInput?: never;
|
|
809
|
+
modelInvocationOutput?: never;
|
|
810
|
+
$unknown: [string, any];
|
|
811
|
+
}
|
|
812
|
+
interface Visitor<T> {
|
|
813
|
+
modelInvocationInput: (value: ModelInvocationInput) => T;
|
|
814
|
+
modelInvocationOutput: (value: PostProcessingModelInvocationOutput) => T;
|
|
815
|
+
_: (name: string, value: any) => T;
|
|
816
|
+
}
|
|
817
|
+
const visit: <T>(value: PostProcessingTrace, visitor: Visitor<T>) => T;
|
|
818
|
+
}
|
|
819
|
+
/**
|
|
820
|
+
* @public
|
|
821
|
+
* Trace Part which contains information if preprocessing was successful
|
|
822
|
+
*/
|
|
823
|
+
export interface PreProcessingParsedResponse {
|
|
824
|
+
/**
|
|
825
|
+
* @public
|
|
826
|
+
* Agent Trace Rationale String
|
|
827
|
+
*/
|
|
828
|
+
rationale?: string;
|
|
829
|
+
/**
|
|
830
|
+
* @public
|
|
831
|
+
* Boolean value
|
|
832
|
+
*/
|
|
833
|
+
isValid?: boolean;
|
|
834
|
+
}
|
|
835
|
+
/**
|
|
836
|
+
* @public
|
|
837
|
+
* Trace Part which contains information related to preprocessing
|
|
838
|
+
*/
|
|
839
|
+
export interface PreProcessingModelInvocationOutput {
|
|
840
|
+
/**
|
|
841
|
+
* @public
|
|
842
|
+
* Identifier for trace
|
|
843
|
+
*/
|
|
844
|
+
traceId?: string;
|
|
845
|
+
/**
|
|
846
|
+
* @public
|
|
847
|
+
* Trace Part which contains information if preprocessing was successful
|
|
848
|
+
*/
|
|
849
|
+
parsedResponse?: PreProcessingParsedResponse;
|
|
850
|
+
}
|
|
851
|
+
/**
|
|
852
|
+
* @public
|
|
853
|
+
* Trace Part which contains information related to preprocessing step
|
|
854
|
+
*/
|
|
855
|
+
export type PreProcessingTrace = PreProcessingTrace.ModelInvocationInputMember | PreProcessingTrace.ModelInvocationOutputMember | PreProcessingTrace.$UnknownMember;
|
|
856
|
+
/**
|
|
857
|
+
* @public
|
|
858
|
+
*/
|
|
859
|
+
export declare namespace PreProcessingTrace {
|
|
860
|
+
/**
|
|
861
|
+
* @public
|
|
862
|
+
* Trace Part which contains information used to call Invoke Model
|
|
863
|
+
*/
|
|
864
|
+
interface ModelInvocationInputMember {
|
|
865
|
+
modelInvocationInput: ModelInvocationInput;
|
|
866
|
+
modelInvocationOutput?: never;
|
|
867
|
+
$unknown?: never;
|
|
868
|
+
}
|
|
869
|
+
/**
|
|
870
|
+
* @public
|
|
871
|
+
* Trace Part which contains information related to preprocessing
|
|
872
|
+
*/
|
|
873
|
+
interface ModelInvocationOutputMember {
|
|
874
|
+
modelInvocationInput?: never;
|
|
875
|
+
modelInvocationOutput: PreProcessingModelInvocationOutput;
|
|
876
|
+
$unknown?: never;
|
|
877
|
+
}
|
|
878
|
+
/**
|
|
879
|
+
* @public
|
|
880
|
+
*/
|
|
881
|
+
interface $UnknownMember {
|
|
882
|
+
modelInvocationInput?: never;
|
|
883
|
+
modelInvocationOutput?: never;
|
|
884
|
+
$unknown: [string, any];
|
|
885
|
+
}
|
|
886
|
+
interface Visitor<T> {
|
|
887
|
+
modelInvocationInput: (value: ModelInvocationInput) => T;
|
|
888
|
+
modelInvocationOutput: (value: PreProcessingModelInvocationOutput) => T;
|
|
889
|
+
_: (name: string, value: any) => T;
|
|
890
|
+
}
|
|
891
|
+
const visit: <T>(value: PreProcessingTrace, visitor: Visitor<T>) => T;
|
|
892
|
+
}
|
|
893
|
+
/**
|
|
894
|
+
* @public
|
|
895
|
+
* Trace contains intermidate response for customer
|
|
896
|
+
*/
|
|
897
|
+
export type Trace = Trace.FailureTraceMember | Trace.OrchestrationTraceMember | Trace.PostProcessingTraceMember | Trace.PreProcessingTraceMember | Trace.$UnknownMember;
|
|
898
|
+
/**
|
|
899
|
+
* @public
|
|
900
|
+
*/
|
|
901
|
+
export declare namespace Trace {
|
|
902
|
+
/**
|
|
903
|
+
* @public
|
|
904
|
+
* Trace Part which contains information related to preprocessing step
|
|
905
|
+
*/
|
|
906
|
+
interface PreProcessingTraceMember {
|
|
907
|
+
preProcessingTrace: PreProcessingTrace;
|
|
908
|
+
orchestrationTrace?: never;
|
|
909
|
+
postProcessingTrace?: never;
|
|
910
|
+
failureTrace?: never;
|
|
911
|
+
$unknown?: never;
|
|
912
|
+
}
|
|
913
|
+
/**
|
|
914
|
+
* @public
|
|
915
|
+
* Trace contains intermidate response during orchestration
|
|
916
|
+
*/
|
|
917
|
+
interface OrchestrationTraceMember {
|
|
918
|
+
preProcessingTrace?: never;
|
|
919
|
+
orchestrationTrace: OrchestrationTrace;
|
|
920
|
+
postProcessingTrace?: never;
|
|
921
|
+
failureTrace?: never;
|
|
922
|
+
$unknown?: never;
|
|
923
|
+
}
|
|
924
|
+
/**
|
|
925
|
+
* @public
|
|
926
|
+
* Trace Part which contains information related to post processing step
|
|
927
|
+
*/
|
|
928
|
+
interface PostProcessingTraceMember {
|
|
929
|
+
preProcessingTrace?: never;
|
|
930
|
+
orchestrationTrace?: never;
|
|
931
|
+
postProcessingTrace: PostProcessingTrace;
|
|
932
|
+
failureTrace?: never;
|
|
933
|
+
$unknown?: never;
|
|
934
|
+
}
|
|
935
|
+
/**
|
|
936
|
+
* @public
|
|
937
|
+
* Trace Part which is emitted when agent trace could not be generated
|
|
938
|
+
*/
|
|
939
|
+
interface FailureTraceMember {
|
|
940
|
+
preProcessingTrace?: never;
|
|
941
|
+
orchestrationTrace?: never;
|
|
942
|
+
postProcessingTrace?: never;
|
|
943
|
+
failureTrace: FailureTrace;
|
|
944
|
+
$unknown?: never;
|
|
945
|
+
}
|
|
946
|
+
/**
|
|
947
|
+
* @public
|
|
948
|
+
*/
|
|
949
|
+
interface $UnknownMember {
|
|
950
|
+
preProcessingTrace?: never;
|
|
951
|
+
orchestrationTrace?: never;
|
|
952
|
+
postProcessingTrace?: never;
|
|
953
|
+
failureTrace?: never;
|
|
954
|
+
$unknown: [string, any];
|
|
955
|
+
}
|
|
956
|
+
interface Visitor<T> {
|
|
957
|
+
preProcessingTrace: (value: PreProcessingTrace) => T;
|
|
958
|
+
orchestrationTrace: (value: OrchestrationTrace) => T;
|
|
959
|
+
postProcessingTrace: (value: PostProcessingTrace) => T;
|
|
960
|
+
failureTrace: (value: FailureTrace) => T;
|
|
961
|
+
_: (name: string, value: any) => T;
|
|
962
|
+
}
|
|
963
|
+
const visit: <T>(value: Trace, visitor: Visitor<T>) => T;
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* @public
|
|
967
|
+
* Trace Part which contains intermidate response for customer
|
|
968
|
+
*/
|
|
969
|
+
export interface TracePart {
|
|
970
|
+
/**
|
|
971
|
+
* @public
|
|
972
|
+
* Identifier of the agent.
|
|
973
|
+
*/
|
|
974
|
+
agentId?: string;
|
|
975
|
+
/**
|
|
976
|
+
* @public
|
|
977
|
+
* Identifier of the agent alias.
|
|
978
|
+
*/
|
|
979
|
+
agentAliasId?: string;
|
|
980
|
+
/**
|
|
981
|
+
* @public
|
|
982
|
+
* Identifier of the session.
|
|
983
|
+
*/
|
|
984
|
+
sessionId?: string;
|
|
985
|
+
/**
|
|
986
|
+
* @public
|
|
987
|
+
* Trace contains intermidate response for customer
|
|
988
|
+
*/
|
|
989
|
+
trace?: Trace;
|
|
990
|
+
}
|
|
991
|
+
/**
|
|
992
|
+
* @public
|
|
993
|
+
* This exception is thrown when the request's input validation fails
|
|
994
|
+
*/
|
|
995
|
+
export declare class ValidationException extends __BaseException {
|
|
996
|
+
readonly name: "ValidationException";
|
|
997
|
+
readonly $fault: "client";
|
|
998
|
+
/**
|
|
999
|
+
* @internal
|
|
1000
|
+
*/
|
|
1001
|
+
constructor(opts: __ExceptionOptionType<ValidationException, __BaseException>);
|
|
1002
|
+
}
|
|
1003
|
+
/**
|
|
1004
|
+
* @public
|
|
1005
|
+
* Response body of is a stream
|
|
1006
|
+
*/
|
|
1007
|
+
export type ResponseStream = ResponseStream.AccessDeniedExceptionMember | ResponseStream.BadGatewayExceptionMember | ResponseStream.ChunkMember | ResponseStream.ConflictExceptionMember | ResponseStream.DependencyFailedExceptionMember | ResponseStream.InternalServerExceptionMember | ResponseStream.ResourceNotFoundExceptionMember | ResponseStream.ServiceQuotaExceededExceptionMember | ResponseStream.ThrottlingExceptionMember | ResponseStream.TraceMember | ResponseStream.ValidationExceptionMember | ResponseStream.$UnknownMember;
|
|
1008
|
+
/**
|
|
1009
|
+
* @public
|
|
1010
|
+
*/
|
|
1011
|
+
export declare namespace ResponseStream {
|
|
1012
|
+
/**
|
|
1013
|
+
* @public
|
|
1014
|
+
* Base 64 endoded byte response
|
|
1015
|
+
*/
|
|
1016
|
+
interface ChunkMember {
|
|
1017
|
+
chunk: PayloadPart;
|
|
1018
|
+
trace?: never;
|
|
1019
|
+
internalServerException?: never;
|
|
1020
|
+
validationException?: never;
|
|
1021
|
+
resourceNotFoundException?: never;
|
|
1022
|
+
serviceQuotaExceededException?: never;
|
|
1023
|
+
throttlingException?: never;
|
|
1024
|
+
accessDeniedException?: never;
|
|
1025
|
+
conflictException?: never;
|
|
1026
|
+
dependencyFailedException?: never;
|
|
1027
|
+
badGatewayException?: never;
|
|
1028
|
+
$unknown?: never;
|
|
1029
|
+
}
|
|
1030
|
+
/**
|
|
1031
|
+
* @public
|
|
1032
|
+
* Trace Part which contains intermidate response for customer
|
|
1033
|
+
*/
|
|
1034
|
+
interface TraceMember {
|
|
1035
|
+
chunk?: never;
|
|
1036
|
+
trace: TracePart;
|
|
1037
|
+
internalServerException?: never;
|
|
1038
|
+
validationException?: never;
|
|
1039
|
+
resourceNotFoundException?: never;
|
|
1040
|
+
serviceQuotaExceededException?: never;
|
|
1041
|
+
throttlingException?: never;
|
|
1042
|
+
accessDeniedException?: never;
|
|
1043
|
+
conflictException?: never;
|
|
1044
|
+
dependencyFailedException?: never;
|
|
1045
|
+
badGatewayException?: never;
|
|
1046
|
+
$unknown?: never;
|
|
1047
|
+
}
|
|
1048
|
+
/**
|
|
1049
|
+
* @public
|
|
1050
|
+
* This exception is thrown if there was an unexpected error during processing of request
|
|
1051
|
+
*/
|
|
1052
|
+
interface InternalServerExceptionMember {
|
|
1053
|
+
chunk?: never;
|
|
1054
|
+
trace?: never;
|
|
1055
|
+
internalServerException: InternalServerException;
|
|
1056
|
+
validationException?: never;
|
|
1057
|
+
resourceNotFoundException?: never;
|
|
1058
|
+
serviceQuotaExceededException?: never;
|
|
1059
|
+
throttlingException?: never;
|
|
1060
|
+
accessDeniedException?: never;
|
|
1061
|
+
conflictException?: never;
|
|
1062
|
+
dependencyFailedException?: never;
|
|
1063
|
+
badGatewayException?: never;
|
|
1064
|
+
$unknown?: never;
|
|
1065
|
+
}
|
|
1066
|
+
/**
|
|
1067
|
+
* @public
|
|
1068
|
+
* This exception is thrown when the request's input validation fails
|
|
1069
|
+
*/
|
|
1070
|
+
interface ValidationExceptionMember {
|
|
1071
|
+
chunk?: never;
|
|
1072
|
+
trace?: never;
|
|
1073
|
+
internalServerException?: never;
|
|
1074
|
+
validationException: ValidationException;
|
|
1075
|
+
resourceNotFoundException?: never;
|
|
1076
|
+
serviceQuotaExceededException?: never;
|
|
1077
|
+
throttlingException?: never;
|
|
1078
|
+
accessDeniedException?: never;
|
|
1079
|
+
conflictException?: never;
|
|
1080
|
+
dependencyFailedException?: never;
|
|
1081
|
+
badGatewayException?: never;
|
|
1082
|
+
$unknown?: never;
|
|
1083
|
+
}
|
|
1084
|
+
/**
|
|
1085
|
+
* @public
|
|
1086
|
+
* This exception is thrown when a resource referenced by the operation does not exist
|
|
1087
|
+
*/
|
|
1088
|
+
interface ResourceNotFoundExceptionMember {
|
|
1089
|
+
chunk?: never;
|
|
1090
|
+
trace?: never;
|
|
1091
|
+
internalServerException?: never;
|
|
1092
|
+
validationException?: never;
|
|
1093
|
+
resourceNotFoundException: ResourceNotFoundException;
|
|
1094
|
+
serviceQuotaExceededException?: never;
|
|
1095
|
+
throttlingException?: never;
|
|
1096
|
+
accessDeniedException?: never;
|
|
1097
|
+
conflictException?: never;
|
|
1098
|
+
dependencyFailedException?: never;
|
|
1099
|
+
badGatewayException?: never;
|
|
1100
|
+
$unknown?: never;
|
|
1101
|
+
}
|
|
1102
|
+
/**
|
|
1103
|
+
* @public
|
|
1104
|
+
* This exception is thrown when a request is made beyond the service quota
|
|
1105
|
+
*/
|
|
1106
|
+
interface ServiceQuotaExceededExceptionMember {
|
|
1107
|
+
chunk?: never;
|
|
1108
|
+
trace?: never;
|
|
1109
|
+
internalServerException?: never;
|
|
1110
|
+
validationException?: never;
|
|
1111
|
+
resourceNotFoundException?: never;
|
|
1112
|
+
serviceQuotaExceededException: ServiceQuotaExceededException;
|
|
1113
|
+
throttlingException?: never;
|
|
1114
|
+
accessDeniedException?: never;
|
|
1115
|
+
conflictException?: never;
|
|
1116
|
+
dependencyFailedException?: never;
|
|
1117
|
+
badGatewayException?: never;
|
|
1118
|
+
$unknown?: never;
|
|
1119
|
+
}
|
|
1120
|
+
/**
|
|
1121
|
+
* @public
|
|
1122
|
+
* This exception is thrown when the number of requests exceeds the limit
|
|
1123
|
+
*/
|
|
1124
|
+
interface ThrottlingExceptionMember {
|
|
1125
|
+
chunk?: never;
|
|
1126
|
+
trace?: never;
|
|
1127
|
+
internalServerException?: never;
|
|
1128
|
+
validationException?: never;
|
|
1129
|
+
resourceNotFoundException?: never;
|
|
1130
|
+
serviceQuotaExceededException?: never;
|
|
1131
|
+
throttlingException: ThrottlingException;
|
|
1132
|
+
accessDeniedException?: never;
|
|
1133
|
+
conflictException?: never;
|
|
1134
|
+
dependencyFailedException?: never;
|
|
1135
|
+
badGatewayException?: never;
|
|
1136
|
+
$unknown?: never;
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* @public
|
|
1140
|
+
* This exception is thrown when a request is denied per access permissions
|
|
1141
|
+
*/
|
|
1142
|
+
interface AccessDeniedExceptionMember {
|
|
1143
|
+
chunk?: never;
|
|
1144
|
+
trace?: never;
|
|
1145
|
+
internalServerException?: never;
|
|
1146
|
+
validationException?: never;
|
|
1147
|
+
resourceNotFoundException?: never;
|
|
1148
|
+
serviceQuotaExceededException?: never;
|
|
1149
|
+
throttlingException?: never;
|
|
1150
|
+
accessDeniedException: AccessDeniedException;
|
|
1151
|
+
conflictException?: never;
|
|
1152
|
+
dependencyFailedException?: never;
|
|
1153
|
+
badGatewayException?: never;
|
|
1154
|
+
$unknown?: never;
|
|
1155
|
+
}
|
|
1156
|
+
/**
|
|
1157
|
+
* @public
|
|
1158
|
+
* This exception is thrown when there is a conflict performing an operation
|
|
1159
|
+
*/
|
|
1160
|
+
interface ConflictExceptionMember {
|
|
1161
|
+
chunk?: never;
|
|
1162
|
+
trace?: never;
|
|
1163
|
+
internalServerException?: never;
|
|
1164
|
+
validationException?: never;
|
|
1165
|
+
resourceNotFoundException?: never;
|
|
1166
|
+
serviceQuotaExceededException?: never;
|
|
1167
|
+
throttlingException?: never;
|
|
1168
|
+
accessDeniedException?: never;
|
|
1169
|
+
conflictException: ConflictException;
|
|
1170
|
+
dependencyFailedException?: never;
|
|
1171
|
+
badGatewayException?: never;
|
|
1172
|
+
$unknown?: never;
|
|
1173
|
+
}
|
|
1174
|
+
/**
|
|
1175
|
+
* @public
|
|
1176
|
+
* This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource due to a customer fault (i.e. bad configuration)
|
|
1177
|
+
*/
|
|
1178
|
+
interface DependencyFailedExceptionMember {
|
|
1179
|
+
chunk?: never;
|
|
1180
|
+
trace?: never;
|
|
1181
|
+
internalServerException?: never;
|
|
1182
|
+
validationException?: never;
|
|
1183
|
+
resourceNotFoundException?: never;
|
|
1184
|
+
serviceQuotaExceededException?: never;
|
|
1185
|
+
throttlingException?: never;
|
|
1186
|
+
accessDeniedException?: never;
|
|
1187
|
+
conflictException?: never;
|
|
1188
|
+
dependencyFailedException: DependencyFailedException;
|
|
1189
|
+
badGatewayException?: never;
|
|
1190
|
+
$unknown?: never;
|
|
1191
|
+
}
|
|
1192
|
+
/**
|
|
1193
|
+
* @public
|
|
1194
|
+
* This exception is thrown when a request fails due to dependency like Lambda, Bedrock, STS resource
|
|
1195
|
+
*/
|
|
1196
|
+
interface BadGatewayExceptionMember {
|
|
1197
|
+
chunk?: never;
|
|
1198
|
+
trace?: never;
|
|
1199
|
+
internalServerException?: never;
|
|
1200
|
+
validationException?: never;
|
|
1201
|
+
resourceNotFoundException?: never;
|
|
1202
|
+
serviceQuotaExceededException?: never;
|
|
1203
|
+
throttlingException?: never;
|
|
1204
|
+
accessDeniedException?: never;
|
|
1205
|
+
conflictException?: never;
|
|
1206
|
+
dependencyFailedException?: never;
|
|
1207
|
+
badGatewayException: BadGatewayException;
|
|
1208
|
+
$unknown?: never;
|
|
1209
|
+
}
|
|
1210
|
+
/**
|
|
1211
|
+
* @public
|
|
1212
|
+
*/
|
|
1213
|
+
interface $UnknownMember {
|
|
1214
|
+
chunk?: never;
|
|
1215
|
+
trace?: never;
|
|
1216
|
+
internalServerException?: never;
|
|
1217
|
+
validationException?: never;
|
|
1218
|
+
resourceNotFoundException?: never;
|
|
1219
|
+
serviceQuotaExceededException?: never;
|
|
1220
|
+
throttlingException?: never;
|
|
1221
|
+
accessDeniedException?: never;
|
|
1222
|
+
conflictException?: never;
|
|
1223
|
+
dependencyFailedException?: never;
|
|
1224
|
+
badGatewayException?: never;
|
|
1225
|
+
$unknown: [string, any];
|
|
1226
|
+
}
|
|
1227
|
+
interface Visitor<T> {
|
|
1228
|
+
chunk: (value: PayloadPart) => T;
|
|
1229
|
+
trace: (value: TracePart) => T;
|
|
1230
|
+
internalServerException: (value: InternalServerException) => T;
|
|
1231
|
+
validationException: (value: ValidationException) => T;
|
|
1232
|
+
resourceNotFoundException: (value: ResourceNotFoundException) => T;
|
|
1233
|
+
serviceQuotaExceededException: (value: ServiceQuotaExceededException) => T;
|
|
1234
|
+
throttlingException: (value: ThrottlingException) => T;
|
|
1235
|
+
accessDeniedException: (value: AccessDeniedException) => T;
|
|
1236
|
+
conflictException: (value: ConflictException) => T;
|
|
1237
|
+
dependencyFailedException: (value: DependencyFailedException) => T;
|
|
1238
|
+
badGatewayException: (value: BadGatewayException) => T;
|
|
1239
|
+
_: (name: string, value: any) => T;
|
|
1240
|
+
}
|
|
1241
|
+
const visit: <T>(value: ResponseStream, visitor: Visitor<T>) => T;
|
|
1242
|
+
}
|
|
1243
|
+
/**
|
|
1244
|
+
* @public
|
|
1245
|
+
* InvokeAgent Response
|
|
1246
|
+
*/
|
|
1247
|
+
export interface InvokeAgentResponse {
|
|
1248
|
+
/**
|
|
1249
|
+
* @public
|
|
1250
|
+
* Inference response from the model in the format specified in the Content-Type response header.
|
|
1251
|
+
*/
|
|
1252
|
+
completion: AsyncIterable<ResponseStream> | undefined;
|
|
1253
|
+
/**
|
|
1254
|
+
* @public
|
|
1255
|
+
* streaming response mimetype of the model
|
|
1256
|
+
*/
|
|
1257
|
+
contentType: string | undefined;
|
|
1258
|
+
/**
|
|
1259
|
+
* @public
|
|
1260
|
+
* streaming response mimetype of the model
|
|
1261
|
+
*/
|
|
1262
|
+
sessionId: string | undefined;
|
|
1263
|
+
}
|
|
1264
|
+
/**
|
|
1265
|
+
* @public
|
|
1266
|
+
* Customer input of the turn
|
|
1267
|
+
*/
|
|
1268
|
+
export interface RetrieveAndGenerateInput {
|
|
1269
|
+
/**
|
|
1270
|
+
* @public
|
|
1271
|
+
* Customer input of the turn in text
|
|
1272
|
+
*/
|
|
1273
|
+
text: string | undefined;
|
|
1274
|
+
}
|
|
1275
|
+
/**
|
|
1276
|
+
* @public
|
|
1277
|
+
* Configurations for retrieval and generation for knowledge base.
|
|
1278
|
+
*/
|
|
1279
|
+
export interface KnowledgeBaseRetrieveAndGenerateConfiguration {
|
|
1280
|
+
/**
|
|
1281
|
+
* @public
|
|
1282
|
+
* Identifier of the KnowledgeBase
|
|
1283
|
+
*/
|
|
1284
|
+
knowledgeBaseId: string | undefined;
|
|
1285
|
+
/**
|
|
1286
|
+
* @public
|
|
1287
|
+
* Arn of a Bedrock model.
|
|
1288
|
+
*/
|
|
1289
|
+
modelArn: string | undefined;
|
|
1290
|
+
}
|
|
1291
|
+
/**
|
|
1292
|
+
* @public
|
|
1293
|
+
* @enum
|
|
1294
|
+
*/
|
|
1295
|
+
export declare const RetrieveAndGenerateType: {
|
|
1296
|
+
readonly KNOWLEDGE_BASE: "KNOWLEDGE_BASE";
|
|
1297
|
+
};
|
|
1298
|
+
/**
|
|
1299
|
+
* @public
|
|
1300
|
+
*/
|
|
1301
|
+
export type RetrieveAndGenerateType = (typeof RetrieveAndGenerateType)[keyof typeof RetrieveAndGenerateType];
|
|
1302
|
+
/**
|
|
1303
|
+
* @public
|
|
1304
|
+
* Configures the retrieval and generation for the session.
|
|
1305
|
+
*/
|
|
1306
|
+
export interface RetrieveAndGenerateConfiguration {
|
|
1307
|
+
/**
|
|
1308
|
+
* @public
|
|
1309
|
+
* The type of RetrieveAndGenerate.
|
|
1310
|
+
*/
|
|
1311
|
+
type: RetrieveAndGenerateType | undefined;
|
|
1312
|
+
/**
|
|
1313
|
+
* @public
|
|
1314
|
+
* Configurations for retrieval and generation for knowledge base.
|
|
1315
|
+
*/
|
|
1316
|
+
knowledgeBaseConfiguration?: KnowledgeBaseRetrieveAndGenerateConfiguration;
|
|
1317
|
+
}
|
|
1318
|
+
/**
|
|
1319
|
+
* @public
|
|
1320
|
+
* Configures common parameters of the session.
|
|
1321
|
+
*/
|
|
1322
|
+
export interface RetrieveAndGenerateSessionConfiguration {
|
|
1323
|
+
/**
|
|
1324
|
+
* @public
|
|
1325
|
+
* The KMS key arn to encrypt the customer data of the session.
|
|
1326
|
+
*/
|
|
1327
|
+
kmsKeyArn: string | undefined;
|
|
1328
|
+
}
|
|
1329
|
+
/**
|
|
1330
|
+
* @public
|
|
1331
|
+
*/
|
|
1332
|
+
export interface RetrieveAndGenerateRequest {
|
|
1333
|
+
/**
|
|
1334
|
+
* @public
|
|
1335
|
+
* Identifier of the session.
|
|
1336
|
+
*/
|
|
1337
|
+
sessionId?: string;
|
|
1338
|
+
/**
|
|
1339
|
+
* @public
|
|
1340
|
+
* Customer input of the turn
|
|
1341
|
+
*/
|
|
1342
|
+
input: RetrieveAndGenerateInput | undefined;
|
|
1343
|
+
/**
|
|
1344
|
+
* @public
|
|
1345
|
+
* Configures the retrieval and generation for the session.
|
|
1346
|
+
*/
|
|
1347
|
+
retrieveAndGenerateConfiguration?: RetrieveAndGenerateConfiguration;
|
|
1348
|
+
/**
|
|
1349
|
+
* @public
|
|
1350
|
+
* Configures common parameters of the session.
|
|
1351
|
+
*/
|
|
1352
|
+
sessionConfiguration?: RetrieveAndGenerateSessionConfiguration;
|
|
1353
|
+
}
|
|
1354
|
+
/**
|
|
1355
|
+
* @public
|
|
1356
|
+
* Service response of the turn
|
|
1357
|
+
*/
|
|
1358
|
+
export interface RetrieveAndGenerateOutput {
|
|
1359
|
+
/**
|
|
1360
|
+
* @public
|
|
1361
|
+
* Service response of the turn in text
|
|
1362
|
+
*/
|
|
1363
|
+
text: string | undefined;
|
|
1364
|
+
}
|
|
1365
|
+
/**
|
|
1366
|
+
* @public
|
|
1367
|
+
*/
|
|
1368
|
+
export interface RetrieveAndGenerateResponse {
|
|
1369
|
+
/**
|
|
1370
|
+
* @public
|
|
1371
|
+
* Identifier of the session.
|
|
1372
|
+
*/
|
|
1373
|
+
sessionId: string | undefined;
|
|
1374
|
+
/**
|
|
1375
|
+
* @public
|
|
1376
|
+
* Service response of the turn
|
|
1377
|
+
*/
|
|
1378
|
+
output: RetrieveAndGenerateOutput | undefined;
|
|
1379
|
+
/**
|
|
1380
|
+
* @public
|
|
1381
|
+
* List of citations
|
|
1382
|
+
*/
|
|
1383
|
+
citations?: Citation[];
|
|
1384
|
+
}
|
|
1385
|
+
/**
|
|
1386
|
+
* @public
|
|
1387
|
+
* Knowledge base vector search configuration
|
|
1388
|
+
*/
|
|
1389
|
+
export interface KnowledgeBaseVectorSearchConfiguration {
|
|
1390
|
+
/**
|
|
1391
|
+
* @public
|
|
1392
|
+
* Top-K results to retrieve from knowledge base.
|
|
1393
|
+
*/
|
|
1394
|
+
numberOfResults: number | undefined;
|
|
1395
|
+
}
|
|
1396
|
+
/**
|
|
1397
|
+
* @public
|
|
1398
|
+
* Search parameters for retrieving from knowledge base.
|
|
1399
|
+
*/
|
|
1400
|
+
export interface KnowledgeBaseRetrievalConfiguration {
|
|
1401
|
+
/**
|
|
1402
|
+
* @public
|
|
1403
|
+
* Knowledge base vector search configuration
|
|
1404
|
+
*/
|
|
1405
|
+
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfiguration | undefined;
|
|
1406
|
+
}
|
|
1407
|
+
/**
|
|
1408
|
+
* @public
|
|
1409
|
+
* Knowledge base input query.
|
|
1410
|
+
*/
|
|
1411
|
+
export interface KnowledgeBaseQuery {
|
|
1412
|
+
/**
|
|
1413
|
+
* @public
|
|
1414
|
+
* Knowledge base input query in text
|
|
1415
|
+
*/
|
|
1416
|
+
text: string | undefined;
|
|
1417
|
+
}
|
|
1418
|
+
/**
|
|
1419
|
+
* @public
|
|
1420
|
+
*/
|
|
1421
|
+
export interface RetrieveRequest {
|
|
1422
|
+
/**
|
|
1423
|
+
* @public
|
|
1424
|
+
* Identifier of the KnowledgeBase
|
|
1425
|
+
*/
|
|
1426
|
+
knowledgeBaseId: string | undefined;
|
|
1427
|
+
/**
|
|
1428
|
+
* @public
|
|
1429
|
+
* Knowledge base input query.
|
|
1430
|
+
*/
|
|
1431
|
+
retrievalQuery: KnowledgeBaseQuery | undefined;
|
|
1432
|
+
/**
|
|
1433
|
+
* @public
|
|
1434
|
+
* Search parameters for retrieving from knowledge base.
|
|
1435
|
+
*/
|
|
1436
|
+
retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration;
|
|
1437
|
+
/**
|
|
1438
|
+
* @public
|
|
1439
|
+
* Opaque continuation token of previous paginated response.
|
|
1440
|
+
*/
|
|
1441
|
+
nextToken?: string;
|
|
1442
|
+
}
|
|
1443
|
+
/**
|
|
1444
|
+
* @public
|
|
1445
|
+
* Result item returned from a knowledge base retrieval.
|
|
1446
|
+
*/
|
|
1447
|
+
export interface KnowledgeBaseRetrievalResult {
|
|
1448
|
+
/**
|
|
1449
|
+
* @public
|
|
1450
|
+
* Content of a retrieval result.
|
|
1451
|
+
*/
|
|
1452
|
+
content: RetrievalResultContent | undefined;
|
|
1453
|
+
/**
|
|
1454
|
+
* @public
|
|
1455
|
+
* The source location of a retrieval result.
|
|
1456
|
+
*/
|
|
1457
|
+
location?: RetrievalResultLocation;
|
|
1458
|
+
/**
|
|
1459
|
+
* @public
|
|
1460
|
+
* The relevance score of a result.
|
|
1461
|
+
*/
|
|
1462
|
+
score?: number;
|
|
1463
|
+
}
|
|
1464
|
+
/**
|
|
1465
|
+
* @public
|
|
1466
|
+
*/
|
|
1467
|
+
export interface RetrieveResponse {
|
|
1468
|
+
/**
|
|
1469
|
+
* @public
|
|
1470
|
+
* List of knowledge base retrieval results
|
|
1471
|
+
*/
|
|
1472
|
+
retrievalResults: KnowledgeBaseRetrievalResult[] | undefined;
|
|
1473
|
+
/**
|
|
1474
|
+
* @public
|
|
1475
|
+
* Opaque continuation token of previous paginated response.
|
|
1476
|
+
*/
|
|
1477
|
+
nextToken?: string;
|
|
1478
|
+
}
|
|
1479
|
+
/**
|
|
1480
|
+
* @internal
|
|
1481
|
+
*/
|
|
1482
|
+
export declare const ActionGroupInvocationInputFilterSensitiveLog: (obj: ActionGroupInvocationInput) => any;
|
|
1483
|
+
/**
|
|
1484
|
+
* @internal
|
|
1485
|
+
*/
|
|
1486
|
+
export declare const ActionGroupInvocationOutputFilterSensitiveLog: (obj: ActionGroupInvocationOutput) => any;
|
|
1487
|
+
/**
|
|
1488
|
+
* @internal
|
|
1489
|
+
*/
|
|
1490
|
+
export declare const InvokeAgentRequestFilterSensitiveLog: (obj: InvokeAgentRequest) => any;
|
|
1491
|
+
/**
|
|
1492
|
+
* @internal
|
|
1493
|
+
*/
|
|
1494
|
+
export declare const PayloadPartFilterSensitiveLog: (obj: PayloadPart) => any;
|
|
1495
|
+
/**
|
|
1496
|
+
* @internal
|
|
1497
|
+
*/
|
|
1498
|
+
export declare const FailureTraceFilterSensitiveLog: (obj: FailureTrace) => any;
|
|
1499
|
+
/**
|
|
1500
|
+
* @internal
|
|
1501
|
+
*/
|
|
1502
|
+
export declare const KnowledgeBaseLookupInputFilterSensitiveLog: (obj: KnowledgeBaseLookupInput) => any;
|
|
1503
|
+
/**
|
|
1504
|
+
* @internal
|
|
1505
|
+
*/
|
|
1506
|
+
export declare const InvocationInputFilterSensitiveLog: (obj: InvocationInput) => any;
|
|
1507
|
+
/**
|
|
1508
|
+
* @internal
|
|
1509
|
+
*/
|
|
1510
|
+
export declare const ModelInvocationInputFilterSensitiveLog: (obj: ModelInvocationInput) => any;
|
|
1511
|
+
/**
|
|
1512
|
+
* @internal
|
|
1513
|
+
*/
|
|
1514
|
+
export declare const FinalResponseFilterSensitiveLog: (obj: FinalResponse) => any;
|
|
1515
|
+
/**
|
|
1516
|
+
* @internal
|
|
1517
|
+
*/
|
|
1518
|
+
export declare const RepromptResponseFilterSensitiveLog: (obj: RepromptResponse) => any;
|
|
1519
|
+
/**
|
|
1520
|
+
* @internal
|
|
1521
|
+
*/
|
|
1522
|
+
export declare const ObservationFilterSensitiveLog: (obj: Observation) => any;
|
|
1523
|
+
/**
|
|
1524
|
+
* @internal
|
|
1525
|
+
*/
|
|
1526
|
+
export declare const RationaleFilterSensitiveLog: (obj: Rationale) => any;
|
|
1527
|
+
/**
|
|
1528
|
+
* @internal
|
|
1529
|
+
*/
|
|
1530
|
+
export declare const OrchestrationTraceFilterSensitiveLog: (obj: OrchestrationTrace) => any;
|
|
1531
|
+
/**
|
|
1532
|
+
* @internal
|
|
1533
|
+
*/
|
|
1534
|
+
export declare const PostProcessingParsedResponseFilterSensitiveLog: (obj: PostProcessingParsedResponse) => any;
|
|
1535
|
+
/**
|
|
1536
|
+
* @internal
|
|
1537
|
+
*/
|
|
1538
|
+
export declare const PostProcessingModelInvocationOutputFilterSensitiveLog: (obj: PostProcessingModelInvocationOutput) => any;
|
|
1539
|
+
/**
|
|
1540
|
+
* @internal
|
|
1541
|
+
*/
|
|
1542
|
+
export declare const PostProcessingTraceFilterSensitiveLog: (obj: PostProcessingTrace) => any;
|
|
1543
|
+
/**
|
|
1544
|
+
* @internal
|
|
1545
|
+
*/
|
|
1546
|
+
export declare const PreProcessingParsedResponseFilterSensitiveLog: (obj: PreProcessingParsedResponse) => any;
|
|
1547
|
+
/**
|
|
1548
|
+
* @internal
|
|
1549
|
+
*/
|
|
1550
|
+
export declare const PreProcessingModelInvocationOutputFilterSensitiveLog: (obj: PreProcessingModelInvocationOutput) => any;
|
|
1551
|
+
/**
|
|
1552
|
+
* @internal
|
|
1553
|
+
*/
|
|
1554
|
+
export declare const PreProcessingTraceFilterSensitiveLog: (obj: PreProcessingTrace) => any;
|
|
1555
|
+
/**
|
|
1556
|
+
* @internal
|
|
1557
|
+
*/
|
|
1558
|
+
export declare const TraceFilterSensitiveLog: (obj: Trace) => any;
|
|
1559
|
+
/**
|
|
1560
|
+
* @internal
|
|
1561
|
+
*/
|
|
1562
|
+
export declare const TracePartFilterSensitiveLog: (obj: TracePart) => any;
|
|
1563
|
+
/**
|
|
1564
|
+
* @internal
|
|
1565
|
+
*/
|
|
1566
|
+
export declare const ResponseStreamFilterSensitiveLog: (obj: ResponseStream) => any;
|
|
1567
|
+
/**
|
|
1568
|
+
* @internal
|
|
1569
|
+
*/
|
|
1570
|
+
export declare const InvokeAgentResponseFilterSensitiveLog: (obj: InvokeAgentResponse) => any;
|
|
1571
|
+
/**
|
|
1572
|
+
* @internal
|
|
1573
|
+
*/
|
|
1574
|
+
export declare const RetrieveAndGenerateInputFilterSensitiveLog: (obj: RetrieveAndGenerateInput) => any;
|
|
1575
|
+
/**
|
|
1576
|
+
* @internal
|
|
1577
|
+
*/
|
|
1578
|
+
export declare const RetrieveAndGenerateRequestFilterSensitiveLog: (obj: RetrieveAndGenerateRequest) => any;
|
|
1579
|
+
/**
|
|
1580
|
+
* @internal
|
|
1581
|
+
*/
|
|
1582
|
+
export declare const RetrieveAndGenerateOutputFilterSensitiveLog: (obj: RetrieveAndGenerateOutput) => any;
|
|
1583
|
+
/**
|
|
1584
|
+
* @internal
|
|
1585
|
+
*/
|
|
1586
|
+
export declare const RetrieveAndGenerateResponseFilterSensitiveLog: (obj: RetrieveAndGenerateResponse) => any;
|
|
1587
|
+
/**
|
|
1588
|
+
* @internal
|
|
1589
|
+
*/
|
|
1590
|
+
export declare const KnowledgeBaseQueryFilterSensitiveLog: (obj: KnowledgeBaseQuery) => any;
|
|
1591
|
+
/**
|
|
1592
|
+
* @internal
|
|
1593
|
+
*/
|
|
1594
|
+
export declare const RetrieveRequestFilterSensitiveLog: (obj: RetrieveRequest) => any;
|
|
1595
|
+
/**
|
|
1596
|
+
* @internal
|
|
1597
|
+
*/
|
|
1598
|
+
export declare const RetrieveResponseFilterSensitiveLog: (obj: RetrieveResponse) => any;
|