@aws-sdk/client-bedrock-agent-runtime 3.751.0 → 3.758.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/README.md +119 -7
- package/dist-cjs/index.js +1009 -55
- package/dist-es/BedrockAgentRuntime.js +28 -0
- package/dist-es/commands/CreateInvocationCommand.js +22 -0
- package/dist-es/commands/CreateSessionCommand.js +22 -0
- package/dist-es/commands/DeleteSessionCommand.js +22 -0
- package/dist-es/commands/EndSessionCommand.js +22 -0
- package/dist-es/commands/GetInvocationStepCommand.js +23 -0
- package/dist-es/commands/GetSessionCommand.js +22 -0
- package/dist-es/commands/InvokeAgentCommand.js +2 -1
- package/dist-es/commands/InvokeInlineAgentCommand.js +2 -1
- package/dist-es/commands/ListInvocationStepsCommand.js +22 -0
- package/dist-es/commands/ListInvocationsCommand.js +22 -0
- package/dist-es/commands/ListSessionsCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/PutInvocationStepCommand.js +23 -0
- package/dist-es/commands/RetrieveAndGenerateCommand.js +2 -1
- package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +2 -1
- package/dist-es/commands/RetrieveCommand.js +2 -1
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/UpdateSessionCommand.js +22 -0
- package/dist-es/commands/index.js +14 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +78 -151
- package/dist-es/models/models_1.js +164 -0
- package/dist-es/pagination/ListInvocationStepsPaginator.js +4 -0
- package/dist-es/pagination/ListInvocationsPaginator.js +4 -0
- package/dist-es/pagination/ListSessionsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +574 -11
- package/dist-types/BedrockAgentRuntime.d.ts +100 -0
- package/dist-types/BedrockAgentRuntimeClient.d.ts +16 -2
- package/dist-types/commands/CreateInvocationCommand.d.ts +115 -0
- package/dist-types/commands/CreateSessionCommand.d.ts +133 -0
- package/dist-types/commands/DeleteSessionCommand.d.ts +89 -0
- package/dist-types/commands/EndSessionCommand.d.ts +93 -0
- package/dist-types/commands/GetInvocationStepCommand.d.ts +109 -0
- package/dist-types/commands/GetSessionCommand.d.ts +94 -0
- package/dist-types/commands/InvokeAgentCommand.d.ts +23 -1
- package/dist-types/commands/InvokeInlineAgentCommand.d.ts +23 -1
- package/dist-types/commands/ListInvocationStepsCommand.d.ts +97 -0
- package/dist-types/commands/ListInvocationsCommand.d.ts +95 -0
- package/dist-types/commands/ListSessionsCommand.d.ts +93 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
- package/dist-types/commands/PutInvocationStepCommand.d.ts +134 -0
- package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +2 -1
- package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -1
- package/dist-types/commands/RetrieveCommand.d.ts +2 -1
- package/dist-types/commands/TagResourceCommand.d.ts +90 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
- package/dist-types/commands/UpdateSessionCommand.d.ts +96 -0
- package/dist-types/commands/index.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +582 -635
- package/dist-types/models/models_1.d.ts +919 -0
- package/dist-types/pagination/ListInvocationStepsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListInvocationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
- package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +240 -0
- package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +86 -2
- package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -4
- package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +2 -1
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +14 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +262 -365
- package/dist-types/ts3.4/models/models_1.d.ts +416 -0
- package/dist-types/ts3.4/pagination/ListInvocationStepsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListInvocationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
- package/package.json +12 -12
|
@@ -0,0 +1,416 @@
|
|
|
1
|
+
import {
|
|
2
|
+
AgentActionGroup,
|
|
3
|
+
BedrockModelConfigurations,
|
|
4
|
+
ConversationHistory,
|
|
5
|
+
ExternalSourcesRetrieveAndGenerateConfiguration,
|
|
6
|
+
FilterAttribute,
|
|
7
|
+
GenerationConfiguration,
|
|
8
|
+
GuardrailConfiguration,
|
|
9
|
+
GuardrailConfigurationWithArn,
|
|
10
|
+
ImplicitFilterConfiguration,
|
|
11
|
+
InlineBedrockModelConfigurations,
|
|
12
|
+
InlineSessionState,
|
|
13
|
+
InputFile,
|
|
14
|
+
InvocationResultMember,
|
|
15
|
+
KnowledgeBaseQuery,
|
|
16
|
+
OrchestrationConfiguration,
|
|
17
|
+
PromptOverrideConfiguration,
|
|
18
|
+
RetrieveAndGenerateInput,
|
|
19
|
+
RetrieveAndGenerateSessionConfiguration,
|
|
20
|
+
RetrieveAndGenerateType,
|
|
21
|
+
SearchType,
|
|
22
|
+
StreamingConfigurations,
|
|
23
|
+
VectorSearchRerankingConfiguration,
|
|
24
|
+
} from "./models_0";
|
|
25
|
+
export type RetrievalFilter =
|
|
26
|
+
| RetrievalFilter.AndAllMember
|
|
27
|
+
| RetrievalFilter.EqualsMember
|
|
28
|
+
| RetrievalFilter.GreaterThanMember
|
|
29
|
+
| RetrievalFilter.GreaterThanOrEqualsMember
|
|
30
|
+
| RetrievalFilter.InMember
|
|
31
|
+
| RetrievalFilter.LessThanMember
|
|
32
|
+
| RetrievalFilter.LessThanOrEqualsMember
|
|
33
|
+
| RetrievalFilter.ListContainsMember
|
|
34
|
+
| RetrievalFilter.NotEqualsMember
|
|
35
|
+
| RetrievalFilter.NotInMember
|
|
36
|
+
| RetrievalFilter.OrAllMember
|
|
37
|
+
| RetrievalFilter.StartsWithMember
|
|
38
|
+
| RetrievalFilter.StringContainsMember
|
|
39
|
+
| RetrievalFilter.$UnknownMember;
|
|
40
|
+
export declare namespace RetrievalFilter {
|
|
41
|
+
interface EqualsMember {
|
|
42
|
+
equals: FilterAttribute;
|
|
43
|
+
notEquals?: never;
|
|
44
|
+
greaterThan?: never;
|
|
45
|
+
greaterThanOrEquals?: never;
|
|
46
|
+
lessThan?: never;
|
|
47
|
+
lessThanOrEquals?: never;
|
|
48
|
+
in?: never;
|
|
49
|
+
notIn?: never;
|
|
50
|
+
startsWith?: never;
|
|
51
|
+
listContains?: never;
|
|
52
|
+
stringContains?: never;
|
|
53
|
+
andAll?: never;
|
|
54
|
+
orAll?: never;
|
|
55
|
+
$unknown?: never;
|
|
56
|
+
}
|
|
57
|
+
interface NotEqualsMember {
|
|
58
|
+
equals?: never;
|
|
59
|
+
notEquals: FilterAttribute;
|
|
60
|
+
greaterThan?: never;
|
|
61
|
+
greaterThanOrEquals?: never;
|
|
62
|
+
lessThan?: never;
|
|
63
|
+
lessThanOrEquals?: never;
|
|
64
|
+
in?: never;
|
|
65
|
+
notIn?: never;
|
|
66
|
+
startsWith?: never;
|
|
67
|
+
listContains?: never;
|
|
68
|
+
stringContains?: never;
|
|
69
|
+
andAll?: never;
|
|
70
|
+
orAll?: never;
|
|
71
|
+
$unknown?: never;
|
|
72
|
+
}
|
|
73
|
+
interface GreaterThanMember {
|
|
74
|
+
equals?: never;
|
|
75
|
+
notEquals?: never;
|
|
76
|
+
greaterThan: FilterAttribute;
|
|
77
|
+
greaterThanOrEquals?: never;
|
|
78
|
+
lessThan?: never;
|
|
79
|
+
lessThanOrEquals?: never;
|
|
80
|
+
in?: never;
|
|
81
|
+
notIn?: never;
|
|
82
|
+
startsWith?: never;
|
|
83
|
+
listContains?: never;
|
|
84
|
+
stringContains?: never;
|
|
85
|
+
andAll?: never;
|
|
86
|
+
orAll?: never;
|
|
87
|
+
$unknown?: never;
|
|
88
|
+
}
|
|
89
|
+
interface GreaterThanOrEqualsMember {
|
|
90
|
+
equals?: never;
|
|
91
|
+
notEquals?: never;
|
|
92
|
+
greaterThan?: never;
|
|
93
|
+
greaterThanOrEquals: FilterAttribute;
|
|
94
|
+
lessThan?: never;
|
|
95
|
+
lessThanOrEquals?: never;
|
|
96
|
+
in?: never;
|
|
97
|
+
notIn?: never;
|
|
98
|
+
startsWith?: never;
|
|
99
|
+
listContains?: never;
|
|
100
|
+
stringContains?: never;
|
|
101
|
+
andAll?: never;
|
|
102
|
+
orAll?: never;
|
|
103
|
+
$unknown?: never;
|
|
104
|
+
}
|
|
105
|
+
interface LessThanMember {
|
|
106
|
+
equals?: never;
|
|
107
|
+
notEquals?: never;
|
|
108
|
+
greaterThan?: never;
|
|
109
|
+
greaterThanOrEquals?: never;
|
|
110
|
+
lessThan: FilterAttribute;
|
|
111
|
+
lessThanOrEquals?: never;
|
|
112
|
+
in?: never;
|
|
113
|
+
notIn?: never;
|
|
114
|
+
startsWith?: never;
|
|
115
|
+
listContains?: never;
|
|
116
|
+
stringContains?: never;
|
|
117
|
+
andAll?: never;
|
|
118
|
+
orAll?: never;
|
|
119
|
+
$unknown?: never;
|
|
120
|
+
}
|
|
121
|
+
interface LessThanOrEqualsMember {
|
|
122
|
+
equals?: never;
|
|
123
|
+
notEquals?: never;
|
|
124
|
+
greaterThan?: never;
|
|
125
|
+
greaterThanOrEquals?: never;
|
|
126
|
+
lessThan?: never;
|
|
127
|
+
lessThanOrEquals: FilterAttribute;
|
|
128
|
+
in?: never;
|
|
129
|
+
notIn?: never;
|
|
130
|
+
startsWith?: never;
|
|
131
|
+
listContains?: never;
|
|
132
|
+
stringContains?: never;
|
|
133
|
+
andAll?: never;
|
|
134
|
+
orAll?: never;
|
|
135
|
+
$unknown?: never;
|
|
136
|
+
}
|
|
137
|
+
interface InMember {
|
|
138
|
+
equals?: never;
|
|
139
|
+
notEquals?: never;
|
|
140
|
+
greaterThan?: never;
|
|
141
|
+
greaterThanOrEquals?: never;
|
|
142
|
+
lessThan?: never;
|
|
143
|
+
lessThanOrEquals?: never;
|
|
144
|
+
in: FilterAttribute;
|
|
145
|
+
notIn?: never;
|
|
146
|
+
startsWith?: never;
|
|
147
|
+
listContains?: never;
|
|
148
|
+
stringContains?: never;
|
|
149
|
+
andAll?: never;
|
|
150
|
+
orAll?: never;
|
|
151
|
+
$unknown?: never;
|
|
152
|
+
}
|
|
153
|
+
interface NotInMember {
|
|
154
|
+
equals?: never;
|
|
155
|
+
notEquals?: never;
|
|
156
|
+
greaterThan?: never;
|
|
157
|
+
greaterThanOrEquals?: never;
|
|
158
|
+
lessThan?: never;
|
|
159
|
+
lessThanOrEquals?: never;
|
|
160
|
+
in?: never;
|
|
161
|
+
notIn: FilterAttribute;
|
|
162
|
+
startsWith?: never;
|
|
163
|
+
listContains?: never;
|
|
164
|
+
stringContains?: never;
|
|
165
|
+
andAll?: never;
|
|
166
|
+
orAll?: never;
|
|
167
|
+
$unknown?: never;
|
|
168
|
+
}
|
|
169
|
+
interface StartsWithMember {
|
|
170
|
+
equals?: never;
|
|
171
|
+
notEquals?: never;
|
|
172
|
+
greaterThan?: never;
|
|
173
|
+
greaterThanOrEquals?: never;
|
|
174
|
+
lessThan?: never;
|
|
175
|
+
lessThanOrEquals?: never;
|
|
176
|
+
in?: never;
|
|
177
|
+
notIn?: never;
|
|
178
|
+
startsWith: FilterAttribute;
|
|
179
|
+
listContains?: never;
|
|
180
|
+
stringContains?: never;
|
|
181
|
+
andAll?: never;
|
|
182
|
+
orAll?: never;
|
|
183
|
+
$unknown?: never;
|
|
184
|
+
}
|
|
185
|
+
interface ListContainsMember {
|
|
186
|
+
equals?: never;
|
|
187
|
+
notEquals?: never;
|
|
188
|
+
greaterThan?: never;
|
|
189
|
+
greaterThanOrEquals?: never;
|
|
190
|
+
lessThan?: never;
|
|
191
|
+
lessThanOrEquals?: never;
|
|
192
|
+
in?: never;
|
|
193
|
+
notIn?: never;
|
|
194
|
+
startsWith?: never;
|
|
195
|
+
listContains: FilterAttribute;
|
|
196
|
+
stringContains?: never;
|
|
197
|
+
andAll?: never;
|
|
198
|
+
orAll?: never;
|
|
199
|
+
$unknown?: never;
|
|
200
|
+
}
|
|
201
|
+
interface StringContainsMember {
|
|
202
|
+
equals?: never;
|
|
203
|
+
notEquals?: never;
|
|
204
|
+
greaterThan?: never;
|
|
205
|
+
greaterThanOrEquals?: never;
|
|
206
|
+
lessThan?: never;
|
|
207
|
+
lessThanOrEquals?: never;
|
|
208
|
+
in?: never;
|
|
209
|
+
notIn?: never;
|
|
210
|
+
startsWith?: never;
|
|
211
|
+
listContains?: never;
|
|
212
|
+
stringContains: FilterAttribute;
|
|
213
|
+
andAll?: never;
|
|
214
|
+
orAll?: never;
|
|
215
|
+
$unknown?: never;
|
|
216
|
+
}
|
|
217
|
+
interface AndAllMember {
|
|
218
|
+
equals?: never;
|
|
219
|
+
notEquals?: never;
|
|
220
|
+
greaterThan?: never;
|
|
221
|
+
greaterThanOrEquals?: never;
|
|
222
|
+
lessThan?: never;
|
|
223
|
+
lessThanOrEquals?: never;
|
|
224
|
+
in?: never;
|
|
225
|
+
notIn?: never;
|
|
226
|
+
startsWith?: never;
|
|
227
|
+
listContains?: never;
|
|
228
|
+
stringContains?: never;
|
|
229
|
+
andAll: RetrievalFilter[];
|
|
230
|
+
orAll?: never;
|
|
231
|
+
$unknown?: never;
|
|
232
|
+
}
|
|
233
|
+
interface OrAllMember {
|
|
234
|
+
equals?: never;
|
|
235
|
+
notEquals?: never;
|
|
236
|
+
greaterThan?: never;
|
|
237
|
+
greaterThanOrEquals?: never;
|
|
238
|
+
lessThan?: never;
|
|
239
|
+
lessThanOrEquals?: never;
|
|
240
|
+
in?: never;
|
|
241
|
+
notIn?: never;
|
|
242
|
+
startsWith?: never;
|
|
243
|
+
listContains?: never;
|
|
244
|
+
stringContains?: never;
|
|
245
|
+
andAll?: never;
|
|
246
|
+
orAll: RetrievalFilter[];
|
|
247
|
+
$unknown?: never;
|
|
248
|
+
}
|
|
249
|
+
interface $UnknownMember {
|
|
250
|
+
equals?: never;
|
|
251
|
+
notEquals?: never;
|
|
252
|
+
greaterThan?: never;
|
|
253
|
+
greaterThanOrEquals?: never;
|
|
254
|
+
lessThan?: never;
|
|
255
|
+
lessThanOrEquals?: never;
|
|
256
|
+
in?: never;
|
|
257
|
+
notIn?: never;
|
|
258
|
+
startsWith?: never;
|
|
259
|
+
listContains?: never;
|
|
260
|
+
stringContains?: never;
|
|
261
|
+
andAll?: never;
|
|
262
|
+
orAll?: never;
|
|
263
|
+
$unknown: [string, any];
|
|
264
|
+
}
|
|
265
|
+
interface Visitor<T> {
|
|
266
|
+
equals: (value: FilterAttribute) => T;
|
|
267
|
+
notEquals: (value: FilterAttribute) => T;
|
|
268
|
+
greaterThan: (value: FilterAttribute) => T;
|
|
269
|
+
greaterThanOrEquals: (value: FilterAttribute) => T;
|
|
270
|
+
lessThan: (value: FilterAttribute) => T;
|
|
271
|
+
lessThanOrEquals: (value: FilterAttribute) => T;
|
|
272
|
+
in: (value: FilterAttribute) => T;
|
|
273
|
+
notIn: (value: FilterAttribute) => T;
|
|
274
|
+
startsWith: (value: FilterAttribute) => T;
|
|
275
|
+
listContains: (value: FilterAttribute) => T;
|
|
276
|
+
stringContains: (value: FilterAttribute) => T;
|
|
277
|
+
andAll: (value: RetrievalFilter[]) => T;
|
|
278
|
+
orAll: (value: RetrievalFilter[]) => T;
|
|
279
|
+
_: (name: string, value: any) => T;
|
|
280
|
+
}
|
|
281
|
+
const visit: <T>(value: RetrievalFilter, visitor: Visitor<T>) => T;
|
|
282
|
+
}
|
|
283
|
+
export interface KnowledgeBaseVectorSearchConfiguration {
|
|
284
|
+
numberOfResults?: number | undefined;
|
|
285
|
+
overrideSearchType?: SearchType | undefined;
|
|
286
|
+
filter?: RetrievalFilter | undefined;
|
|
287
|
+
rerankingConfiguration?: VectorSearchRerankingConfiguration | undefined;
|
|
288
|
+
implicitFilterConfiguration?: ImplicitFilterConfiguration | undefined;
|
|
289
|
+
}
|
|
290
|
+
export interface KnowledgeBaseRetrievalConfiguration {
|
|
291
|
+
vectorSearchConfiguration: KnowledgeBaseVectorSearchConfiguration | undefined;
|
|
292
|
+
}
|
|
293
|
+
export interface KnowledgeBase {
|
|
294
|
+
knowledgeBaseId: string | undefined;
|
|
295
|
+
description: string | undefined;
|
|
296
|
+
retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
297
|
+
}
|
|
298
|
+
export interface KnowledgeBaseConfiguration {
|
|
299
|
+
knowledgeBaseId: string | undefined;
|
|
300
|
+
retrievalConfiguration: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
301
|
+
}
|
|
302
|
+
export interface KnowledgeBaseRetrieveAndGenerateConfiguration {
|
|
303
|
+
knowledgeBaseId: string | undefined;
|
|
304
|
+
modelArn: string | undefined;
|
|
305
|
+
retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
306
|
+
generationConfiguration?: GenerationConfiguration | undefined;
|
|
307
|
+
orchestrationConfiguration?: OrchestrationConfiguration | undefined;
|
|
308
|
+
}
|
|
309
|
+
export interface RetrieveRequest {
|
|
310
|
+
knowledgeBaseId: string | undefined;
|
|
311
|
+
retrievalQuery: KnowledgeBaseQuery | undefined;
|
|
312
|
+
retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
|
|
313
|
+
guardrailConfiguration?: GuardrailConfiguration | undefined;
|
|
314
|
+
nextToken?: string | undefined;
|
|
315
|
+
}
|
|
316
|
+
export interface RetrieveAndGenerateConfiguration {
|
|
317
|
+
type: RetrieveAndGenerateType | undefined;
|
|
318
|
+
knowledgeBaseConfiguration?:
|
|
319
|
+
| KnowledgeBaseRetrieveAndGenerateConfiguration
|
|
320
|
+
| undefined;
|
|
321
|
+
externalSourcesConfiguration?:
|
|
322
|
+
| ExternalSourcesRetrieveAndGenerateConfiguration
|
|
323
|
+
| undefined;
|
|
324
|
+
}
|
|
325
|
+
export interface InvokeInlineAgentRequest {
|
|
326
|
+
sessionId: string | undefined;
|
|
327
|
+
customerEncryptionKeyArn?: string | undefined;
|
|
328
|
+
endSession?: boolean | undefined;
|
|
329
|
+
enableTrace?: boolean | undefined;
|
|
330
|
+
inputText?: string | undefined;
|
|
331
|
+
inlineSessionState?: InlineSessionState | undefined;
|
|
332
|
+
foundationModel: string | undefined;
|
|
333
|
+
instruction: string | undefined;
|
|
334
|
+
idleSessionTTLInSeconds?: number | undefined;
|
|
335
|
+
actionGroups?: AgentActionGroup[] | undefined;
|
|
336
|
+
knowledgeBases?: KnowledgeBase[] | undefined;
|
|
337
|
+
guardrailConfiguration?: GuardrailConfigurationWithArn | undefined;
|
|
338
|
+
promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
|
|
339
|
+
bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined;
|
|
340
|
+
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
341
|
+
}
|
|
342
|
+
export interface RetrieveAndGenerateRequest {
|
|
343
|
+
sessionId?: string | undefined;
|
|
344
|
+
input: RetrieveAndGenerateInput | undefined;
|
|
345
|
+
retrieveAndGenerateConfiguration?:
|
|
346
|
+
| RetrieveAndGenerateConfiguration
|
|
347
|
+
| undefined;
|
|
348
|
+
sessionConfiguration?: RetrieveAndGenerateSessionConfiguration | undefined;
|
|
349
|
+
}
|
|
350
|
+
export interface RetrieveAndGenerateStreamRequest {
|
|
351
|
+
sessionId?: string | undefined;
|
|
352
|
+
input: RetrieveAndGenerateInput | undefined;
|
|
353
|
+
retrieveAndGenerateConfiguration?:
|
|
354
|
+
| RetrieveAndGenerateConfiguration
|
|
355
|
+
| undefined;
|
|
356
|
+
sessionConfiguration?: RetrieveAndGenerateSessionConfiguration | undefined;
|
|
357
|
+
}
|
|
358
|
+
export interface SessionState {
|
|
359
|
+
sessionAttributes?: Record<string, string> | undefined;
|
|
360
|
+
promptSessionAttributes?: Record<string, string> | undefined;
|
|
361
|
+
returnControlInvocationResults?: InvocationResultMember[] | undefined;
|
|
362
|
+
invocationId?: string | undefined;
|
|
363
|
+
files?: InputFile[] | undefined;
|
|
364
|
+
knowledgeBaseConfigurations?: KnowledgeBaseConfiguration[] | undefined;
|
|
365
|
+
conversationHistory?: ConversationHistory | undefined;
|
|
366
|
+
}
|
|
367
|
+
export interface InvokeAgentRequest {
|
|
368
|
+
sessionState?: SessionState | undefined;
|
|
369
|
+
agentId: string | undefined;
|
|
370
|
+
agentAliasId: string | undefined;
|
|
371
|
+
sessionId: string | undefined;
|
|
372
|
+
endSession?: boolean | undefined;
|
|
373
|
+
enableTrace?: boolean | undefined;
|
|
374
|
+
inputText?: string | undefined;
|
|
375
|
+
memoryId?: string | undefined;
|
|
376
|
+
bedrockModelConfigurations?: BedrockModelConfigurations | undefined;
|
|
377
|
+
streamingConfigurations?: StreamingConfigurations | undefined;
|
|
378
|
+
sourceArn?: string | undefined;
|
|
379
|
+
}
|
|
380
|
+
export declare const RetrievalFilterFilterSensitiveLog: (
|
|
381
|
+
obj: RetrievalFilter
|
|
382
|
+
) => any;
|
|
383
|
+
export declare const KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog: (
|
|
384
|
+
obj: KnowledgeBaseVectorSearchConfiguration
|
|
385
|
+
) => any;
|
|
386
|
+
export declare const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog: (
|
|
387
|
+
obj: KnowledgeBaseRetrievalConfiguration
|
|
388
|
+
) => any;
|
|
389
|
+
export declare const KnowledgeBaseFilterSensitiveLog: (
|
|
390
|
+
obj: KnowledgeBase
|
|
391
|
+
) => any;
|
|
392
|
+
export declare const KnowledgeBaseConfigurationFilterSensitiveLog: (
|
|
393
|
+
obj: KnowledgeBaseConfiguration
|
|
394
|
+
) => any;
|
|
395
|
+
export declare const KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog: (
|
|
396
|
+
obj: KnowledgeBaseRetrieveAndGenerateConfiguration
|
|
397
|
+
) => any;
|
|
398
|
+
export declare const RetrieveRequestFilterSensitiveLog: (
|
|
399
|
+
obj: RetrieveRequest
|
|
400
|
+
) => any;
|
|
401
|
+
export declare const RetrieveAndGenerateConfigurationFilterSensitiveLog: (
|
|
402
|
+
obj: RetrieveAndGenerateConfiguration
|
|
403
|
+
) => any;
|
|
404
|
+
export declare const InvokeInlineAgentRequestFilterSensitiveLog: (
|
|
405
|
+
obj: InvokeInlineAgentRequest
|
|
406
|
+
) => any;
|
|
407
|
+
export declare const RetrieveAndGenerateRequestFilterSensitiveLog: (
|
|
408
|
+
obj: RetrieveAndGenerateRequest
|
|
409
|
+
) => any;
|
|
410
|
+
export declare const RetrieveAndGenerateStreamRequestFilterSensitiveLog: (
|
|
411
|
+
obj: RetrieveAndGenerateStreamRequest
|
|
412
|
+
) => any;
|
|
413
|
+
export declare const SessionStateFilterSensitiveLog: (obj: SessionState) => any;
|
|
414
|
+
export declare const InvokeAgentRequestFilterSensitiveLog: (
|
|
415
|
+
obj: InvokeAgentRequest
|
|
416
|
+
) => any;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListInvocationStepsCommandInput,
|
|
4
|
+
ListInvocationStepsCommandOutput,
|
|
5
|
+
} from "../commands/ListInvocationStepsCommand";
|
|
6
|
+
import { BedrockAgentRuntimePaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListInvocationSteps: (
|
|
8
|
+
config: BedrockAgentRuntimePaginationConfiguration,
|
|
9
|
+
input: ListInvocationStepsCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListInvocationStepsCommandOutput>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListInvocationsCommandInput,
|
|
4
|
+
ListInvocationsCommandOutput,
|
|
5
|
+
} from "../commands/ListInvocationsCommand";
|
|
6
|
+
import { BedrockAgentRuntimePaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListInvocations: (
|
|
8
|
+
config: BedrockAgentRuntimePaginationConfiguration,
|
|
9
|
+
input: ListInvocationsCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListInvocationsCommandOutput>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Paginator } from "@smithy/types";
|
|
2
|
+
import {
|
|
3
|
+
ListSessionsCommandInput,
|
|
4
|
+
ListSessionsCommandOutput,
|
|
5
|
+
} from "../commands/ListSessionsCommand";
|
|
6
|
+
import { BedrockAgentRuntimePaginationConfiguration } from "./Interfaces";
|
|
7
|
+
export declare const paginateListSessions: (
|
|
8
|
+
config: BedrockAgentRuntimePaginationConfiguration,
|
|
9
|
+
input: ListSessionsCommandInput,
|
|
10
|
+
...rest: any[]
|
|
11
|
+
) => Paginator<ListSessionsCommandOutput>;
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
export * from "./GetAgentMemoryPaginator";
|
|
2
2
|
export * from "./Interfaces";
|
|
3
|
+
export * from "./ListInvocationStepsPaginator";
|
|
4
|
+
export * from "./ListInvocationsPaginator";
|
|
5
|
+
export * from "./ListSessionsPaginator";
|
|
3
6
|
export * from "./RerankPaginator";
|
|
4
7
|
export * from "./RetrievePaginator";
|