@aws-sdk/client-bedrock-agent-runtime 3.755.0 → 3.764.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.
Files changed (92) hide show
  1. package/README.md +119 -7
  2. package/dist-cjs/index.js +1035 -78
  3. package/dist-es/BedrockAgentRuntime.js +28 -0
  4. package/dist-es/commands/CreateInvocationCommand.js +22 -0
  5. package/dist-es/commands/CreateSessionCommand.js +22 -0
  6. package/dist-es/commands/DeleteSessionCommand.js +22 -0
  7. package/dist-es/commands/EndSessionCommand.js +22 -0
  8. package/dist-es/commands/GetInvocationStepCommand.js +23 -0
  9. package/dist-es/commands/GetSessionCommand.js +22 -0
  10. package/dist-es/commands/InvokeAgentCommand.js +2 -1
  11. package/dist-es/commands/InvokeInlineAgentCommand.js +2 -1
  12. package/dist-es/commands/ListInvocationStepsCommand.js +22 -0
  13. package/dist-es/commands/ListInvocationsCommand.js +22 -0
  14. package/dist-es/commands/ListSessionsCommand.js +22 -0
  15. package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
  16. package/dist-es/commands/PutInvocationStepCommand.js +23 -0
  17. package/dist-es/commands/RetrieveAndGenerateCommand.js +2 -1
  18. package/dist-es/commands/RetrieveAndGenerateStreamCommand.js +2 -1
  19. package/dist-es/commands/RetrieveCommand.js +2 -1
  20. package/dist-es/commands/TagResourceCommand.js +22 -0
  21. package/dist-es/commands/UntagResourceCommand.js +22 -0
  22. package/dist-es/commands/UpdateSessionCommand.js +22 -0
  23. package/dist-es/commands/index.js +14 -0
  24. package/dist-es/models/index.js +1 -0
  25. package/dist-es/models/models_0.js +76 -156
  26. package/dist-es/models/models_1.js +181 -0
  27. package/dist-es/pagination/ListInvocationStepsPaginator.js +4 -0
  28. package/dist-es/pagination/ListInvocationsPaginator.js +4 -0
  29. package/dist-es/pagination/ListSessionsPaginator.js +4 -0
  30. package/dist-es/pagination/index.js +3 -0
  31. package/dist-es/protocols/Aws_restJson1.js +560 -8
  32. package/dist-types/BedrockAgentRuntime.d.ts +100 -0
  33. package/dist-types/BedrockAgentRuntimeClient.d.ts +16 -2
  34. package/dist-types/commands/CreateInvocationCommand.d.ts +115 -0
  35. package/dist-types/commands/CreateSessionCommand.d.ts +133 -0
  36. package/dist-types/commands/DeleteSessionCommand.d.ts +89 -0
  37. package/dist-types/commands/EndSessionCommand.d.ts +93 -0
  38. package/dist-types/commands/GetInvocationStepCommand.d.ts +109 -0
  39. package/dist-types/commands/GetSessionCommand.d.ts +94 -0
  40. package/dist-types/commands/InvokeAgentCommand.d.ts +3 -1
  41. package/dist-types/commands/InvokeInlineAgentCommand.d.ts +216 -64
  42. package/dist-types/commands/ListInvocationStepsCommand.d.ts +97 -0
  43. package/dist-types/commands/ListInvocationsCommand.d.ts +95 -0
  44. package/dist-types/commands/ListSessionsCommand.d.ts +93 -0
  45. package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
  46. package/dist-types/commands/PutInvocationStepCommand.d.ts +134 -0
  47. package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +2 -1
  48. package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -1
  49. package/dist-types/commands/RetrieveCommand.d.ts +2 -1
  50. package/dist-types/commands/TagResourceCommand.d.ts +91 -0
  51. package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
  52. package/dist-types/commands/UpdateSessionCommand.d.ts +96 -0
  53. package/dist-types/commands/index.d.ts +14 -0
  54. package/dist-types/models/index.d.ts +1 -0
  55. package/dist-types/models/models_0.d.ts +605 -684
  56. package/dist-types/models/models_1.d.ts +1055 -0
  57. package/dist-types/pagination/ListInvocationStepsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/ListInvocationsPaginator.d.ts +7 -0
  59. package/dist-types/pagination/ListSessionsPaginator.d.ts +7 -0
  60. package/dist-types/pagination/index.d.ts +3 -0
  61. package/dist-types/protocols/Aws_restJson1.d.ts +126 -0
  62. package/dist-types/ts3.4/BedrockAgentRuntime.d.ts +240 -0
  63. package/dist-types/ts3.4/BedrockAgentRuntimeClient.d.ts +86 -2
  64. package/dist-types/ts3.4/commands/CreateInvocationCommand.d.ts +50 -0
  65. package/dist-types/ts3.4/commands/CreateSessionCommand.d.ts +50 -0
  66. package/dist-types/ts3.4/commands/DeleteSessionCommand.d.ts +50 -0
  67. package/dist-types/ts3.4/commands/EndSessionCommand.d.ts +47 -0
  68. package/dist-types/ts3.4/commands/GetInvocationStepCommand.d.ts +51 -0
  69. package/dist-types/ts3.4/commands/GetSessionCommand.d.ts +47 -0
  70. package/dist-types/ts3.4/commands/InvokeAgentCommand.d.ts +2 -1
  71. package/dist-types/ts3.4/commands/InvokeInlineAgentCommand.d.ts +2 -4
  72. package/dist-types/ts3.4/commands/ListInvocationStepsCommand.d.ts +51 -0
  73. package/dist-types/ts3.4/commands/ListInvocationsCommand.d.ts +50 -0
  74. package/dist-types/ts3.4/commands/ListSessionsCommand.d.ts +47 -0
  75. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
  76. package/dist-types/ts3.4/commands/PutInvocationStepCommand.d.ts +51 -0
  77. package/dist-types/ts3.4/commands/RetrieveAndGenerateCommand.d.ts +2 -4
  78. package/dist-types/ts3.4/commands/RetrieveAndGenerateStreamCommand.d.ts +2 -4
  79. package/dist-types/ts3.4/commands/RetrieveCommand.d.ts +2 -1
  80. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +48 -0
  81. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +50 -0
  82. package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +50 -0
  83. package/dist-types/ts3.4/commands/index.d.ts +14 -0
  84. package/dist-types/ts3.4/models/index.d.ts +1 -0
  85. package/dist-types/ts3.4/models/models_0.d.ts +250 -374
  86. package/dist-types/ts3.4/models/models_1.d.ts +441 -0
  87. package/dist-types/ts3.4/pagination/ListInvocationStepsPaginator.d.ts +11 -0
  88. package/dist-types/ts3.4/pagination/ListInvocationsPaginator.d.ts +11 -0
  89. package/dist-types/ts3.4/pagination/ListSessionsPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  91. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +168 -0
  92. package/package.json +12 -12
@@ -0,0 +1,1055 @@
1
+ import { AgentActionGroup, AgentCollaboration, BedrockModelConfigurations, CollaboratorConfiguration, ConversationHistory, ExternalSourcesRetrieveAndGenerateConfiguration, FilterAttribute, GenerationConfiguration, GuardrailConfiguration, GuardrailConfigurationWithArn, ImplicitFilterConfiguration, InlineBedrockModelConfigurations, InlineSessionState, InputFile, InvocationResultMember, KnowledgeBaseQuery, OrchestrationConfiguration, PromptOverrideConfiguration, RetrieveAndGenerateInput, RetrieveAndGenerateSessionConfiguration, RetrieveAndGenerateType, SearchType, StreamingConfigurations, VectorSearchRerankingConfiguration } from "./models_0";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface TagResourceResponse {
6
+ }
7
+ /**
8
+ * @public
9
+ */
10
+ export interface UntagResourceRequest {
11
+ /**
12
+ * <p>The Amazon Resource Name (ARN) of the resource from which to remove tags.</p>
13
+ * @public
14
+ */
15
+ resourceArn: string | undefined;
16
+ /**
17
+ * <p>A list of keys of the tags to remove from the resource.</p>
18
+ * @public
19
+ */
20
+ tagKeys: string[] | undefined;
21
+ }
22
+ /**
23
+ * @public
24
+ */
25
+ export interface UntagResourceResponse {
26
+ }
27
+ /**
28
+ * <p>Specifies the filters to use on the metadata attributes in the knowledge base data sources before returning results. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html">Query configurations</a>. See the examples below to see how to use these filters.</p>
29
+ * <p>This data type is used in the following API operations:</p>
30
+ * <ul>
31
+ * <li>
32
+ * <p>
33
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax">Retrieve request</a> – in the <code>filter</code> field</p>
34
+ * </li>
35
+ * <li>
36
+ * <p>
37
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax">RetrieveAndGenerate request</a> – in the <code>filter</code> field</p>
38
+ * </li>
39
+ * </ul>
40
+ * @public
41
+ */
42
+ export type RetrievalFilter = RetrievalFilter.AndAllMember | RetrievalFilter.EqualsMember | RetrievalFilter.GreaterThanMember | RetrievalFilter.GreaterThanOrEqualsMember | RetrievalFilter.InMember | RetrievalFilter.LessThanMember | RetrievalFilter.LessThanOrEqualsMember | RetrievalFilter.ListContainsMember | RetrievalFilter.NotEqualsMember | RetrievalFilter.NotInMember | RetrievalFilter.OrAllMember | RetrievalFilter.StartsWithMember | RetrievalFilter.StringContainsMember | RetrievalFilter.$UnknownMember;
43
+ /**
44
+ * @public
45
+ */
46
+ export declare namespace RetrievalFilter {
47
+ /**
48
+ * <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value matches the <code>value</code> in this object.</p>
49
+ * <p>The following example would return data sources with an <code>animal</code> attribute whose value is <code>cat</code>:</p>
50
+ * <p>
51
+ * <code>"equals": \{ "key": "animal", "value": "cat" \}</code>
52
+ * </p>
53
+ * @public
54
+ */
55
+ interface EqualsMember {
56
+ equals: FilterAttribute;
57
+ notEquals?: never;
58
+ greaterThan?: never;
59
+ greaterThanOrEquals?: never;
60
+ lessThan?: never;
61
+ lessThanOrEquals?: never;
62
+ in?: never;
63
+ notIn?: never;
64
+ startsWith?: never;
65
+ listContains?: never;
66
+ stringContains?: never;
67
+ andAll?: never;
68
+ orAll?: never;
69
+ $unknown?: never;
70
+ }
71
+ /**
72
+ * <p>Knowledge base data sources that contain a metadata attribute whose name matches the <code>key</code> and whose value doesn't match the <code>value</code> in this object are returned.</p>
73
+ * <p>The following example would return data sources that don't contain an <code>animal</code> attribute whose value is <code>cat</code>.</p>
74
+ * <p>
75
+ * <code>"notEquals": \{ "key": "animal", "value": "cat" \}</code>
76
+ * </p>
77
+ * @public
78
+ */
79
+ interface NotEqualsMember {
80
+ equals?: never;
81
+ notEquals: FilterAttribute;
82
+ greaterThan?: never;
83
+ greaterThanOrEquals?: never;
84
+ lessThan?: never;
85
+ lessThanOrEquals?: never;
86
+ in?: never;
87
+ notIn?: never;
88
+ startsWith?: never;
89
+ listContains?: never;
90
+ stringContains?: never;
91
+ andAll?: never;
92
+ orAll?: never;
93
+ $unknown?: never;
94
+ }
95
+ /**
96
+ * <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value is greater than the <code>value</code> in this object.</p>
97
+ * <p>The following example would return data sources with an <code>year</code> attribute whose value is greater than <code>1989</code>:</p>
98
+ * <p>
99
+ * <code>"greaterThan": \{ "key": "year", "value": 1989 \}</code>
100
+ * </p>
101
+ * @public
102
+ */
103
+ interface GreaterThanMember {
104
+ equals?: never;
105
+ notEquals?: never;
106
+ greaterThan: FilterAttribute;
107
+ greaterThanOrEquals?: never;
108
+ lessThan?: never;
109
+ lessThanOrEquals?: never;
110
+ in?: never;
111
+ notIn?: never;
112
+ startsWith?: never;
113
+ listContains?: never;
114
+ stringContains?: never;
115
+ andAll?: never;
116
+ orAll?: never;
117
+ $unknown?: never;
118
+ }
119
+ /**
120
+ * <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value is greater than or equal to the <code>value</code> in this object.</p>
121
+ * <p>The following example would return data sources with an <code>year</code> attribute whose value is greater than or equal to <code>1989</code>:</p>
122
+ * <p>
123
+ * <code>"greaterThanOrEquals": \{ "key": "year", "value": 1989 \}</code>
124
+ * </p>
125
+ * @public
126
+ */
127
+ interface GreaterThanOrEqualsMember {
128
+ equals?: never;
129
+ notEquals?: never;
130
+ greaterThan?: never;
131
+ greaterThanOrEquals: FilterAttribute;
132
+ lessThan?: never;
133
+ lessThanOrEquals?: never;
134
+ in?: never;
135
+ notIn?: never;
136
+ startsWith?: never;
137
+ listContains?: never;
138
+ stringContains?: never;
139
+ andAll?: never;
140
+ orAll?: never;
141
+ $unknown?: never;
142
+ }
143
+ /**
144
+ * <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value is less than the <code>value</code> in this object.</p>
145
+ * <p>The following example would return data sources with an <code>year</code> attribute whose value is less than to <code>1989</code>.</p>
146
+ * <p>
147
+ * <code>"lessThan": \{ "key": "year", "value": 1989 \}</code>
148
+ * </p>
149
+ * @public
150
+ */
151
+ interface LessThanMember {
152
+ equals?: never;
153
+ notEquals?: never;
154
+ greaterThan?: never;
155
+ greaterThanOrEquals?: never;
156
+ lessThan: FilterAttribute;
157
+ lessThanOrEquals?: never;
158
+ in?: never;
159
+ notIn?: never;
160
+ startsWith?: never;
161
+ listContains?: never;
162
+ stringContains?: never;
163
+ andAll?: never;
164
+ orAll?: never;
165
+ $unknown?: never;
166
+ }
167
+ /**
168
+ * <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value is less than or equal to the <code>value</code> in this object.</p>
169
+ * <p>The following example would return data sources with an <code>year</code> attribute whose value is less than or equal to <code>1989</code>.</p>
170
+ * <p>
171
+ * <code>"lessThanOrEquals": \{ "key": "year", "value": 1989 \}</code>
172
+ * </p>
173
+ * @public
174
+ */
175
+ interface LessThanOrEqualsMember {
176
+ equals?: never;
177
+ notEquals?: never;
178
+ greaterThan?: never;
179
+ greaterThanOrEquals?: never;
180
+ lessThan?: never;
181
+ lessThanOrEquals: FilterAttribute;
182
+ in?: never;
183
+ notIn?: never;
184
+ startsWith?: never;
185
+ listContains?: never;
186
+ stringContains?: never;
187
+ andAll?: never;
188
+ orAll?: never;
189
+ $unknown?: never;
190
+ }
191
+ /**
192
+ * <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value is in the list specified in the <code>value</code> in this object.</p>
193
+ * <p>The following example would return data sources with an <code>animal</code> attribute that is either <code>cat</code> or <code>dog</code>:</p>
194
+ * <p>
195
+ * <code>"in": \{ "key": "animal", "value": ["cat", "dog"] \}</code>
196
+ * </p>
197
+ * @public
198
+ */
199
+ interface InMember {
200
+ equals?: never;
201
+ notEquals?: never;
202
+ greaterThan?: never;
203
+ greaterThanOrEquals?: never;
204
+ lessThan?: never;
205
+ lessThanOrEquals?: never;
206
+ in: FilterAttribute;
207
+ notIn?: never;
208
+ startsWith?: never;
209
+ listContains?: never;
210
+ stringContains?: never;
211
+ andAll?: never;
212
+ orAll?: never;
213
+ $unknown?: never;
214
+ }
215
+ /**
216
+ * <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value isn't in the list specified in the <code>value</code> in this object.</p>
217
+ * <p>The following example would return data sources whose <code>animal</code> attribute is neither <code>cat</code> nor <code>dog</code>.</p>
218
+ * <p>
219
+ * <code>"notIn": \{ "key": "animal", "value": ["cat", "dog"] \}</code>
220
+ * </p>
221
+ * @public
222
+ */
223
+ interface NotInMember {
224
+ equals?: never;
225
+ notEquals?: never;
226
+ greaterThan?: never;
227
+ greaterThanOrEquals?: never;
228
+ lessThan?: never;
229
+ lessThanOrEquals?: never;
230
+ in?: never;
231
+ notIn: FilterAttribute;
232
+ startsWith?: never;
233
+ listContains?: never;
234
+ stringContains?: never;
235
+ andAll?: never;
236
+ orAll?: never;
237
+ $unknown?: never;
238
+ }
239
+ /**
240
+ * <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value starts with the <code>value</code> in this object. This filter is currently only supported for Amazon OpenSearch Serverless vector stores.</p>
241
+ * <p>The following example would return data sources with an <code>animal</code> attribute starts with <code>ca</code> (for example, <code>cat</code> or <code>camel</code>).</p>
242
+ * <p>
243
+ * <code>"startsWith": \{ "key": "animal", "value": "ca" \}</code>
244
+ * </p>
245
+ * @public
246
+ */
247
+ interface StartsWithMember {
248
+ equals?: never;
249
+ notEquals?: never;
250
+ greaterThan?: never;
251
+ greaterThanOrEquals?: never;
252
+ lessThan?: never;
253
+ lessThanOrEquals?: never;
254
+ in?: never;
255
+ notIn?: never;
256
+ startsWith: FilterAttribute;
257
+ listContains?: never;
258
+ stringContains?: never;
259
+ andAll?: never;
260
+ orAll?: never;
261
+ $unknown?: never;
262
+ }
263
+ /**
264
+ * <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value is a list that contains the <code>value</code> as one of its members.</p>
265
+ * <p>The following example would return data sources with an <code>animals</code> attribute that is a list containing a <code>cat</code> member (for example <code>["dog", "cat"]</code>).</p>
266
+ * <p>
267
+ * <code>"listContains": \{ "key": "animals", "value": "cat" \}</code>
268
+ * </p>
269
+ * @public
270
+ */
271
+ interface ListContainsMember {
272
+ equals?: never;
273
+ notEquals?: never;
274
+ greaterThan?: never;
275
+ greaterThanOrEquals?: never;
276
+ lessThan?: never;
277
+ lessThanOrEquals?: never;
278
+ in?: never;
279
+ notIn?: never;
280
+ startsWith?: never;
281
+ listContains: FilterAttribute;
282
+ stringContains?: never;
283
+ andAll?: never;
284
+ orAll?: never;
285
+ $unknown?: never;
286
+ }
287
+ /**
288
+ * <p>Knowledge base data sources are returned if they contain a metadata attribute whose name matches the <code>key</code> and whose value is one of the following:</p>
289
+ * <ul>
290
+ * <li>
291
+ * <p>A string that contains the <code>value</code> as a substring. The following example would return data sources with an <code>animal</code> attribute that contains the substring <code>at</code> (for example <code>cat</code>).</p>
292
+ * <p>
293
+ * <code>"stringContains": \{ "key": "animal", "value": "at" \}</code>
294
+ * </p>
295
+ * </li>
296
+ * <li>
297
+ * <p>A list with a member that contains the <code>value</code> as a substring. The following example would return data sources with an <code>animals</code> attribute that is a list containing a member that contains the substring <code>at</code> (for example <code>["dog", "cat"]</code>).</p>
298
+ * <p>
299
+ * <code>"stringContains": \{ "key": "animals", "value": "at" \}</code>
300
+ * </p>
301
+ * </li>
302
+ * </ul>
303
+ * @public
304
+ */
305
+ interface StringContainsMember {
306
+ equals?: never;
307
+ notEquals?: never;
308
+ greaterThan?: never;
309
+ greaterThanOrEquals?: never;
310
+ lessThan?: never;
311
+ lessThanOrEquals?: never;
312
+ in?: never;
313
+ notIn?: never;
314
+ startsWith?: never;
315
+ listContains?: never;
316
+ stringContains: FilterAttribute;
317
+ andAll?: never;
318
+ orAll?: never;
319
+ $unknown?: never;
320
+ }
321
+ /**
322
+ * <p>Knowledge base data sources are returned if their metadata attributes fulfill all the filter conditions inside this list.</p>
323
+ * @public
324
+ */
325
+ interface AndAllMember {
326
+ equals?: never;
327
+ notEquals?: never;
328
+ greaterThan?: never;
329
+ greaterThanOrEquals?: never;
330
+ lessThan?: never;
331
+ lessThanOrEquals?: never;
332
+ in?: never;
333
+ notIn?: never;
334
+ startsWith?: never;
335
+ listContains?: never;
336
+ stringContains?: never;
337
+ andAll: RetrievalFilter[];
338
+ orAll?: never;
339
+ $unknown?: never;
340
+ }
341
+ /**
342
+ * <p>Knowledge base data sources are returned if their metadata attributes fulfill at least one of the filter conditions inside this list.</p>
343
+ * @public
344
+ */
345
+ interface OrAllMember {
346
+ equals?: never;
347
+ notEquals?: never;
348
+ greaterThan?: never;
349
+ greaterThanOrEquals?: never;
350
+ lessThan?: never;
351
+ lessThanOrEquals?: never;
352
+ in?: never;
353
+ notIn?: never;
354
+ startsWith?: never;
355
+ listContains?: never;
356
+ stringContains?: never;
357
+ andAll?: never;
358
+ orAll: RetrievalFilter[];
359
+ $unknown?: never;
360
+ }
361
+ /**
362
+ * @public
363
+ */
364
+ interface $UnknownMember {
365
+ equals?: never;
366
+ notEquals?: never;
367
+ greaterThan?: never;
368
+ greaterThanOrEquals?: never;
369
+ lessThan?: never;
370
+ lessThanOrEquals?: never;
371
+ in?: never;
372
+ notIn?: never;
373
+ startsWith?: never;
374
+ listContains?: never;
375
+ stringContains?: never;
376
+ andAll?: never;
377
+ orAll?: never;
378
+ $unknown: [string, any];
379
+ }
380
+ interface Visitor<T> {
381
+ equals: (value: FilterAttribute) => T;
382
+ notEquals: (value: FilterAttribute) => T;
383
+ greaterThan: (value: FilterAttribute) => T;
384
+ greaterThanOrEquals: (value: FilterAttribute) => T;
385
+ lessThan: (value: FilterAttribute) => T;
386
+ lessThanOrEquals: (value: FilterAttribute) => T;
387
+ in: (value: FilterAttribute) => T;
388
+ notIn: (value: FilterAttribute) => T;
389
+ startsWith: (value: FilterAttribute) => T;
390
+ listContains: (value: FilterAttribute) => T;
391
+ stringContains: (value: FilterAttribute) => T;
392
+ andAll: (value: RetrievalFilter[]) => T;
393
+ orAll: (value: RetrievalFilter[]) => T;
394
+ _: (name: string, value: any) => T;
395
+ }
396
+ const visit: <T>(value: RetrievalFilter, visitor: Visitor<T>) => T;
397
+ }
398
+ /**
399
+ * <p>Configurations for how to perform the search query and return results. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html">Query configurations</a>.</p>
400
+ * <p>This data type is used in the following API operations:</p>
401
+ * <ul>
402
+ * <li>
403
+ * <p>
404
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax">Retrieve request</a> – in the <code>vectorSearchConfiguration</code> field</p>
405
+ * </li>
406
+ * <li>
407
+ * <p>
408
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax">RetrieveAndGenerate request</a> – in the <code>vectorSearchConfiguration</code> field</p>
409
+ * </li>
410
+ * </ul>
411
+ * @public
412
+ */
413
+ export interface KnowledgeBaseVectorSearchConfiguration {
414
+ /**
415
+ * <p>The number of source chunks to retrieve.</p>
416
+ * @public
417
+ */
418
+ numberOfResults?: number | undefined;
419
+ /**
420
+ * <p>By default, Amazon Bedrock decides a search strategy for you. If you're using an Amazon OpenSearch Serverless vector store that contains a filterable text field, you can specify whether to query the knowledge base with a <code>HYBRID</code> search using both vector embeddings and raw text, or <code>SEMANTIC</code> search using only vector embeddings. For other vector store configurations, only <code>SEMANTIC</code> search is available. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/knowledge-base-test.html">Test a knowledge base</a>.</p>
421
+ * @public
422
+ */
423
+ overrideSearchType?: SearchType | undefined;
424
+ /**
425
+ * <p>Specifies the filters to use on the metadata in the knowledge base data sources before returning results. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html">Query configurations</a>.</p>
426
+ * @public
427
+ */
428
+ filter?: RetrievalFilter | undefined;
429
+ /**
430
+ * <p>Contains configurations for reranking the retrieved results. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/rerank.html">Improve the relevance of query responses with a reranker model</a>.</p>
431
+ * @public
432
+ */
433
+ rerankingConfiguration?: VectorSearchRerankingConfiguration | undefined;
434
+ /**
435
+ * <p>Settings for implicit filtering.</p>
436
+ * @public
437
+ */
438
+ implicitFilterConfiguration?: ImplicitFilterConfiguration | undefined;
439
+ }
440
+ /**
441
+ * <p>Contains configurations for knowledge base query. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html">Query configurations</a>.</p>
442
+ * <p>This data type is used in the following API operations:</p>
443
+ * <ul>
444
+ * <li>
445
+ * <p>
446
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax">Retrieve request</a> – in the <code>retrievalConfiguration</code> field</p>
447
+ * </li>
448
+ * <li>
449
+ * <p>
450
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax">RetrieveAndGenerate request</a> – in the <code>retrievalConfiguration</code> field</p>
451
+ * </li>
452
+ * </ul>
453
+ * @public
454
+ */
455
+ export interface KnowledgeBaseRetrievalConfiguration {
456
+ /**
457
+ * <p>Contains details about how the results from the vector search should be returned. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html">Query configurations</a>.</p>
458
+ * @public
459
+ */
460
+ vectorSearchConfiguration: KnowledgeBaseVectorSearchConfiguration | undefined;
461
+ }
462
+ /**
463
+ * <p>
464
+ * Details of the knowledge base associated withe inline agent.
465
+ * </p>
466
+ * @public
467
+ */
468
+ export interface KnowledgeBase {
469
+ /**
470
+ * <p>
471
+ * The unique identifier for a knowledge base associated with the inline agent.
472
+ * </p>
473
+ * @public
474
+ */
475
+ knowledgeBaseId: string | undefined;
476
+ /**
477
+ * <p>
478
+ * The description of the knowledge base associated with the inline agent.
479
+ * </p>
480
+ * @public
481
+ */
482
+ description: string | undefined;
483
+ /**
484
+ * <p>
485
+ * The configurations to apply to the knowledge base during query. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html">Query configurations</a>.
486
+ * </p>
487
+ * @public
488
+ */
489
+ retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
490
+ }
491
+ /**
492
+ * <p>Configurations to apply to a knowledge base attached to the agent during query. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html#session-state-kb">Knowledge base retrieval configurations</a>.</p>
493
+ * @public
494
+ */
495
+ export interface KnowledgeBaseConfiguration {
496
+ /**
497
+ * <p>The unique identifier for a knowledge base attached to the agent.</p>
498
+ * @public
499
+ */
500
+ knowledgeBaseId: string | undefined;
501
+ /**
502
+ * <p>The configurations to apply to the knowledge base during query. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html">Query configurations</a>.</p>
503
+ * @public
504
+ */
505
+ retrievalConfiguration: KnowledgeBaseRetrievalConfiguration | undefined;
506
+ }
507
+ /**
508
+ * <p>Contains details about the resource being queried.</p>
509
+ * <p>This data type is used in the following API operations:</p>
510
+ * <ul>
511
+ * <li>
512
+ * <p>
513
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Retrieve.html#API_agent-runtime_Retrieve_RequestSyntax">Retrieve request</a> – in the <code>knowledgeBaseConfiguration</code> field</p>
514
+ * </li>
515
+ * <li>
516
+ * <p>
517
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax">RetrieveAndGenerate request</a> – in the <code>knowledgeBaseConfiguration</code> field</p>
518
+ * </li>
519
+ * </ul>
520
+ * @public
521
+ */
522
+ export interface KnowledgeBaseRetrieveAndGenerateConfiguration {
523
+ /**
524
+ * <p>The unique identifier of the knowledge base that is queried.</p>
525
+ * @public
526
+ */
527
+ knowledgeBaseId: string | undefined;
528
+ /**
529
+ * <p>The ARN of the foundation model or <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/cross-region-inference.html">inference profile</a> used to generate a response.</p>
530
+ * @public
531
+ */
532
+ modelArn: string | undefined;
533
+ /**
534
+ * <p>Contains configurations for how to retrieve and return the knowledge base query.</p>
535
+ * @public
536
+ */
537
+ retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
538
+ /**
539
+ * <p>Contains configurations for response generation based on the knowledge base query results.</p>
540
+ * @public
541
+ */
542
+ generationConfiguration?: GenerationConfiguration | undefined;
543
+ /**
544
+ * <p>Settings for how the model processes the prompt prior to retrieval and generation.</p>
545
+ * @public
546
+ */
547
+ orchestrationConfiguration?: OrchestrationConfiguration | undefined;
548
+ }
549
+ /**
550
+ * @public
551
+ */
552
+ export interface RetrieveRequest {
553
+ /**
554
+ * <p>The unique identifier of the knowledge base to query.</p>
555
+ * @public
556
+ */
557
+ knowledgeBaseId: string | undefined;
558
+ /**
559
+ * <p>Contains the query to send the knowledge base.</p>
560
+ * @public
561
+ */
562
+ retrievalQuery: KnowledgeBaseQuery | undefined;
563
+ /**
564
+ * <p>Contains configurations for the knowledge base query and retrieval process. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html">Query configurations</a>.</p>
565
+ * @public
566
+ */
567
+ retrievalConfiguration?: KnowledgeBaseRetrievalConfiguration | undefined;
568
+ /**
569
+ * <p>Guardrail settings.</p>
570
+ * @public
571
+ */
572
+ guardrailConfiguration?: GuardrailConfiguration | undefined;
573
+ /**
574
+ * <p>If there are more results than can fit in the response, the response returns a <code>nextToken</code>. Use this token in the <code>nextToken</code> field of another request to retrieve the next batch of results.</p>
575
+ * @public
576
+ */
577
+ nextToken?: string | undefined;
578
+ }
579
+ /**
580
+ * <p>Contains details about the resource being queried.</p>
581
+ * <p>This data type is used in the following API operations:</p>
582
+ * <ul>
583
+ * <li>
584
+ * <p>
585
+ * <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_RetrieveAndGenerate.html#API_agent-runtime_RetrieveAndGenerate_RequestSyntax">RetrieveAndGenerate request</a> – in the <code>retrieveAndGenerateConfiguration</code> field</p>
586
+ * </li>
587
+ * </ul>
588
+ * @public
589
+ */
590
+ export interface RetrieveAndGenerateConfiguration {
591
+ /**
592
+ * <p>The type of resource that contains your data for retrieving information and generating responses.</p>
593
+ * <p>If you choose to use <code>EXTERNAL_SOURCES</code>, then currently only Anthropic Claude 3 Sonnet models for knowledge bases are supported.</p>
594
+ * @public
595
+ */
596
+ type: RetrieveAndGenerateType | undefined;
597
+ /**
598
+ * <p>Contains details about the knowledge base for retrieving information and generating responses.</p>
599
+ * @public
600
+ */
601
+ knowledgeBaseConfiguration?: KnowledgeBaseRetrieveAndGenerateConfiguration | undefined;
602
+ /**
603
+ * <p>The configuration for the external source wrapper object in the <code>retrieveAndGenerate</code> function.</p>
604
+ * @public
605
+ */
606
+ externalSourcesConfiguration?: ExternalSourcesRetrieveAndGenerateConfiguration | undefined;
607
+ }
608
+ /**
609
+ * <p>
610
+ * List of inline collaborators.
611
+ * </p>
612
+ * @public
613
+ */
614
+ export interface Collaborator {
615
+ /**
616
+ * <p>
617
+ * The Amazon Resource Name (ARN) of the AWS KMS key that encrypts the inline collaborator.
618
+ * </p>
619
+ * @public
620
+ */
621
+ customerEncryptionKeyArn?: string | undefined;
622
+ /**
623
+ * <p>
624
+ * The foundation model used by the inline collaborator agent.
625
+ * </p>
626
+ * @public
627
+ */
628
+ foundationModel: string | undefined;
629
+ /**
630
+ * <p>
631
+ * Instruction that tell the inline collaborator agent what it should do and how it should interact with users.
632
+ * </p>
633
+ * @public
634
+ */
635
+ instruction: string | undefined;
636
+ /**
637
+ * <p>
638
+ * The number of seconds for which the Amazon Bedrock keeps information about the user's conversation with the inline collaborator agent.</p>
639
+ * <p>A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and Amazon Bedrock deletes any data provided before the timeout.
640
+ * </p>
641
+ * @public
642
+ */
643
+ idleSessionTTLInSeconds?: number | undefined;
644
+ /**
645
+ * <p>
646
+ * List of action groups with each action group defining tasks the inline collaborator agent needs to carry out.
647
+ * </p>
648
+ * @public
649
+ */
650
+ actionGroups?: AgentActionGroup[] | undefined;
651
+ /**
652
+ * <p>
653
+ * Knowledge base associated with the inline collaborator agent.
654
+ * </p>
655
+ * @public
656
+ */
657
+ knowledgeBases?: KnowledgeBase[] | undefined;
658
+ /**
659
+ * <p>
660
+ * Details of the guardwrail associated with the inline collaborator.
661
+ * </p>
662
+ * @public
663
+ */
664
+ guardrailConfiguration?: GuardrailConfigurationWithArn | undefined;
665
+ /**
666
+ * <p>
667
+ * Contains configurations to override prompt templates in different parts of an inline collaborator sequence. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/advanced-prompts.html">Advanced prompts</a>.
668
+ * </p>
669
+ * @public
670
+ */
671
+ promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
672
+ /**
673
+ * <p>
674
+ * Defines how the inline supervisor agent handles information across multiple collaborator agents to coordinate a final response.
675
+ * </p>
676
+ * @public
677
+ */
678
+ agentCollaboration?: AgentCollaboration | undefined;
679
+ /**
680
+ * <p>
681
+ * Settings of the collaborator agent.
682
+ * </p>
683
+ * @public
684
+ */
685
+ collaboratorConfigurations?: CollaboratorConfiguration[] | undefined;
686
+ /**
687
+ * <p>
688
+ * Name of the inline collaborator agent which must be the same name as specified for <code>collaboratorName</code>.
689
+ * </p>
690
+ * @public
691
+ */
692
+ agentName?: string | undefined;
693
+ }
694
+ /**
695
+ * @public
696
+ */
697
+ export interface RetrieveAndGenerateRequest {
698
+ /**
699
+ * <p>The unique identifier of the session. When you first make a <code>RetrieveAndGenerate</code> request, Amazon Bedrock automatically generates this value. You must reuse this value for all subsequent requests in the same conversational session. This value allows Amazon Bedrock to maintain context and knowledge from previous interactions. You can't explicitly set the <code>sessionId</code> yourself.</p>
700
+ * @public
701
+ */
702
+ sessionId?: string | undefined;
703
+ /**
704
+ * <p>Contains the query to be made to the knowledge base.</p>
705
+ * @public
706
+ */
707
+ input: RetrieveAndGenerateInput | undefined;
708
+ /**
709
+ * <p>Contains configurations for the knowledge base query and retrieval process. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html">Query configurations</a>.</p>
710
+ * @public
711
+ */
712
+ retrieveAndGenerateConfiguration?: RetrieveAndGenerateConfiguration | undefined;
713
+ /**
714
+ * <p>Contains details about the session with the knowledge base.</p>
715
+ * @public
716
+ */
717
+ sessionConfiguration?: RetrieveAndGenerateSessionConfiguration | undefined;
718
+ }
719
+ /**
720
+ * @public
721
+ */
722
+ export interface RetrieveAndGenerateStreamRequest {
723
+ /**
724
+ * <p>The unique identifier of the session. When you first make a <code>RetrieveAndGenerate</code> request, Amazon Bedrock automatically generates this value. You must reuse this value for all subsequent requests in the same conversational session. This value allows Amazon Bedrock to maintain context and knowledge from previous interactions. You can't explicitly set the <code>sessionId</code> yourself.</p>
725
+ * @public
726
+ */
727
+ sessionId?: string | undefined;
728
+ /**
729
+ * <p>Contains the query to be made to the knowledge base.</p>
730
+ * @public
731
+ */
732
+ input: RetrieveAndGenerateInput | undefined;
733
+ /**
734
+ * <p>Contains configurations for the knowledge base query and retrieval process. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/kb-test-config.html">Query configurations</a>.</p>
735
+ * @public
736
+ */
737
+ retrieveAndGenerateConfiguration?: RetrieveAndGenerateConfiguration | undefined;
738
+ /**
739
+ * <p>Contains details about the session with the knowledge base.</p>
740
+ * @public
741
+ */
742
+ sessionConfiguration?: RetrieveAndGenerateSessionConfiguration | undefined;
743
+ }
744
+ /**
745
+ * <p>Contains parameters that specify various attributes that persist across a session or prompt. You can define session state attributes as key-value pairs when writing a <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-lambda.html">Lambda function</a> for an action group or pass them when making an <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeAgent.html">InvokeAgent</a> request. Use session state attributes to control and provide conversational context for your agent and to help customize your agent's behavior. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html">Control session context</a>.</p>
746
+ * @public
747
+ */
748
+ export interface SessionState {
749
+ /**
750
+ * <p>Contains attributes that persist across a session and the values of those attributes.</p>
751
+ * @public
752
+ */
753
+ sessionAttributes?: Record<string, string> | undefined;
754
+ /**
755
+ * <p>Contains attributes that persist across a prompt and the values of those attributes. These attributes replace the $prompt_session_attributes$ placeholder variable in the orchestration prompt template. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/prompt-placeholders.html">Prompt template placeholder variables</a>.</p>
756
+ * @public
757
+ */
758
+ promptSessionAttributes?: Record<string, string> | undefined;
759
+ /**
760
+ * <p>Contains information about the results from the action group invocation. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html">Return control to the agent developer</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html">Control session context</a>.</p>
761
+ * <note>
762
+ * <p>If you include this field, the <code>inputText</code> field will be ignored.</p>
763
+ * </note>
764
+ * @public
765
+ */
766
+ returnControlInvocationResults?: InvocationResultMember[] | undefined;
767
+ /**
768
+ * <p>The identifier of the invocation of an action. This value must match the <code>invocationId</code> returned in the <code>InvokeAgent</code> response for the action whose results are provided in the <code>returnControlInvocationResults</code> field. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-returncontrol.html">Return control to the agent developer</a> and <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html">Control session context</a>.</p>
769
+ * @public
770
+ */
771
+ invocationId?: string | undefined;
772
+ /**
773
+ * <p>Contains information about the files used by code interpreter.</p>
774
+ * @public
775
+ */
776
+ files?: InputFile[] | undefined;
777
+ /**
778
+ * <p>An array of configurations, each of which applies to a knowledge base attached to the agent.</p>
779
+ * @public
780
+ */
781
+ knowledgeBaseConfigurations?: KnowledgeBaseConfiguration[] | undefined;
782
+ /**
783
+ * <p>The state's conversation history.</p>
784
+ * @public
785
+ */
786
+ conversationHistory?: ConversationHistory | undefined;
787
+ }
788
+ /**
789
+ * @public
790
+ */
791
+ export interface InvokeAgentRequest {
792
+ /**
793
+ * <p>Contains parameters that specify various attributes of the session. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html">Control session context</a>.</p>
794
+ * <note>
795
+ * <p>If you include <code>returnControlInvocationResults</code> in the <code>sessionState</code> field, the <code>inputText</code> field will be ignored.</p>
796
+ * </note>
797
+ * @public
798
+ */
799
+ sessionState?: SessionState | undefined;
800
+ /**
801
+ * <p>The unique identifier of the agent to use.</p>
802
+ * @public
803
+ */
804
+ agentId: string | undefined;
805
+ /**
806
+ * <p>The alias of the agent to use.</p>
807
+ * @public
808
+ */
809
+ agentAliasId: string | undefined;
810
+ /**
811
+ * <p>The unique identifier of the session. Use the same value across requests to continue the same conversation.</p>
812
+ * @public
813
+ */
814
+ sessionId: string | undefined;
815
+ /**
816
+ * <p>Specifies whether to end the session with the agent or not.</p>
817
+ * @public
818
+ */
819
+ endSession?: boolean | undefined;
820
+ /**
821
+ * <p>Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-test.html#trace-events">Trace enablement</a>.</p>
822
+ * @public
823
+ */
824
+ enableTrace?: boolean | undefined;
825
+ /**
826
+ * <p>The prompt text to send the agent.</p>
827
+ * <note>
828
+ * <p>If you include <code>returnControlInvocationResults</code> in the <code>sessionState</code> field, the <code>inputText</code> field will be ignored.</p>
829
+ * </note>
830
+ * @public
831
+ */
832
+ inputText?: string | undefined;
833
+ /**
834
+ * <p>The unique identifier of the agent memory.</p>
835
+ * @public
836
+ */
837
+ memoryId?: string | undefined;
838
+ /**
839
+ * <p>Model performance settings for the request.</p>
840
+ * @public
841
+ */
842
+ bedrockModelConfigurations?: BedrockModelConfigurations | undefined;
843
+ /**
844
+ * <p>
845
+ * Specifies the configurations for streaming.
846
+ * </p>
847
+ * <note>
848
+ * <p>To use agent streaming, you need permissions to perform the <code>bedrock:InvokeModelWithResponseStream</code> action.</p>
849
+ * </note>
850
+ * @public
851
+ */
852
+ streamingConfigurations?: StreamingConfigurations | undefined;
853
+ /**
854
+ * <p>The ARN of the resource making the request.</p>
855
+ * @public
856
+ */
857
+ sourceArn?: string | undefined;
858
+ }
859
+ /**
860
+ * @public
861
+ */
862
+ export interface InvokeInlineAgentRequest {
863
+ /**
864
+ * <p>
865
+ * The Amazon Resource Name (ARN) of the Amazon Web Services KMS key to use to encrypt your inline agent.
866
+ * </p>
867
+ * @public
868
+ */
869
+ customerEncryptionKeyArn?: string | undefined;
870
+ /**
871
+ * <p>
872
+ * The <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/model-ids.html#model-ids-arns">model identifier (ID)</a> of the model to use for orchestration by the inline agent. For example, <code>meta.llama3-1-70b-instruct-v1:0</code>.
873
+ * </p>
874
+ * @public
875
+ */
876
+ foundationModel: string | undefined;
877
+ /**
878
+ * <p>
879
+ * The instructions that tell the inline agent what it should do and how it should interact with users.
880
+ * </p>
881
+ * @public
882
+ */
883
+ instruction: string | undefined;
884
+ /**
885
+ * <p>
886
+ * The number of seconds for which the inline agent should maintain session information. After this time expires, the subsequent <code>InvokeInlineAgent</code> request begins a new session.
887
+ * </p>
888
+ * <p>A user interaction remains active for the amount of time specified. If no conversation occurs during this time, the session expires and the data provided before the timeout is deleted.</p>
889
+ * @public
890
+ */
891
+ idleSessionTTLInSeconds?: number | undefined;
892
+ /**
893
+ * <p>
894
+ * A list of action groups with each action group defining the action the inline agent needs to carry out.
895
+ * </p>
896
+ * @public
897
+ */
898
+ actionGroups?: AgentActionGroup[] | undefined;
899
+ /**
900
+ * <p>
901
+ * Contains information of the knowledge bases to associate with.
902
+ * </p>
903
+ * @public
904
+ */
905
+ knowledgeBases?: KnowledgeBase[] | undefined;
906
+ /**
907
+ * <p>
908
+ * The <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/guardrails.html">guardrails</a> to assign to the inline agent.
909
+ * </p>
910
+ * @public
911
+ */
912
+ guardrailConfiguration?: GuardrailConfigurationWithArn | undefined;
913
+ /**
914
+ * <p>
915
+ * Configurations for advanced prompts used to override the default prompts to enhance the accuracy of the inline agent.
916
+ * </p>
917
+ * @public
918
+ */
919
+ promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
920
+ /**
921
+ * <p>
922
+ * Defines how the inline collaborator agent handles information across multiple collaborator agents to coordinate a final response. The inline collaborator agent can also be the supervisor.
923
+ * </p>
924
+ * @public
925
+ */
926
+ agentCollaboration?: AgentCollaboration | undefined;
927
+ /**
928
+ * <p>
929
+ * Settings for an inline agent collaborator called with <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_InvokeInlineAgent.html">InvokeInlineAgent</a>.
930
+ * </p>
931
+ * @public
932
+ */
933
+ collaboratorConfigurations?: CollaboratorConfiguration[] | undefined;
934
+ /**
935
+ * <p>
936
+ * The unique identifier of the session. Use the same value across requests to continue the same conversation.
937
+ * </p>
938
+ * @public
939
+ */
940
+ sessionId: string | undefined;
941
+ /**
942
+ * <p>
943
+ * Specifies whether to end the session with the inline agent or not.
944
+ * </p>
945
+ * @public
946
+ */
947
+ endSession?: boolean | undefined;
948
+ /**
949
+ * <p>
950
+ * Specifies whether to turn on the trace or not to track the agent's reasoning process. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/trace-events.html">Using trace</a>.
951
+ *
952
+ * </p>
953
+ * @public
954
+ */
955
+ enableTrace?: boolean | undefined;
956
+ /**
957
+ * <p>
958
+ * The prompt text to send to the agent.
959
+ * </p>
960
+ * <note>
961
+ * <p>If you include <code>returnControlInvocationResults</code> in the <code>sessionState</code> field, the <code>inputText</code> field will be ignored.</p>
962
+ * </note>
963
+ * @public
964
+ */
965
+ inputText?: string | undefined;
966
+ /**
967
+ * <p>
968
+ * Specifies the configurations for streaming.
969
+ * </p>
970
+ * <note>
971
+ * <p>To use agent streaming, you need permissions to perform the <code>bedrock:InvokeModelWithResponseStream</code> action.</p>
972
+ * </note>
973
+ * @public
974
+ */
975
+ streamingConfigurations?: StreamingConfigurations | undefined;
976
+ /**
977
+ * <p>
978
+ * Parameters that specify the various attributes of a sessions. You can include attributes for the session or prompt or, if you configured an
979
+ * action group to return control, results from invocation of the action group. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-session-state.html">Control session context</a>.
980
+ * </p>
981
+ * <note>
982
+ * <p>If you include <code>returnControlInvocationResults</code> in the <code>sessionState</code> field, the <code>inputText</code> field will be ignored.</p>
983
+ * </note>
984
+ * @public
985
+ */
986
+ inlineSessionState?: InlineSessionState | undefined;
987
+ /**
988
+ * <p>
989
+ * List of collaborator inline agents.
990
+ * </p>
991
+ * @public
992
+ */
993
+ collaborators?: Collaborator[] | undefined;
994
+ /**
995
+ * <p>Model settings for the request.</p>
996
+ * @public
997
+ */
998
+ bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined;
999
+ }
1000
+ /**
1001
+ * @internal
1002
+ */
1003
+ export declare const RetrievalFilterFilterSensitiveLog: (obj: RetrievalFilter) => any;
1004
+ /**
1005
+ * @internal
1006
+ */
1007
+ export declare const KnowledgeBaseVectorSearchConfigurationFilterSensitiveLog: (obj: KnowledgeBaseVectorSearchConfiguration) => any;
1008
+ /**
1009
+ * @internal
1010
+ */
1011
+ export declare const KnowledgeBaseRetrievalConfigurationFilterSensitiveLog: (obj: KnowledgeBaseRetrievalConfiguration) => any;
1012
+ /**
1013
+ * @internal
1014
+ */
1015
+ export declare const KnowledgeBaseFilterSensitiveLog: (obj: KnowledgeBase) => any;
1016
+ /**
1017
+ * @internal
1018
+ */
1019
+ export declare const KnowledgeBaseConfigurationFilterSensitiveLog: (obj: KnowledgeBaseConfiguration) => any;
1020
+ /**
1021
+ * @internal
1022
+ */
1023
+ export declare const KnowledgeBaseRetrieveAndGenerateConfigurationFilterSensitiveLog: (obj: KnowledgeBaseRetrieveAndGenerateConfiguration) => any;
1024
+ /**
1025
+ * @internal
1026
+ */
1027
+ export declare const RetrieveRequestFilterSensitiveLog: (obj: RetrieveRequest) => any;
1028
+ /**
1029
+ * @internal
1030
+ */
1031
+ export declare const RetrieveAndGenerateConfigurationFilterSensitiveLog: (obj: RetrieveAndGenerateConfiguration) => any;
1032
+ /**
1033
+ * @internal
1034
+ */
1035
+ export declare const CollaboratorFilterSensitiveLog: (obj: Collaborator) => any;
1036
+ /**
1037
+ * @internal
1038
+ */
1039
+ export declare const RetrieveAndGenerateRequestFilterSensitiveLog: (obj: RetrieveAndGenerateRequest) => any;
1040
+ /**
1041
+ * @internal
1042
+ */
1043
+ export declare const RetrieveAndGenerateStreamRequestFilterSensitiveLog: (obj: RetrieveAndGenerateStreamRequest) => any;
1044
+ /**
1045
+ * @internal
1046
+ */
1047
+ export declare const SessionStateFilterSensitiveLog: (obj: SessionState) => any;
1048
+ /**
1049
+ * @internal
1050
+ */
1051
+ export declare const InvokeAgentRequestFilterSensitiveLog: (obj: InvokeAgentRequest) => any;
1052
+ /**
1053
+ * @internal
1054
+ */
1055
+ export declare const InvokeInlineAgentRequestFilterSensitiveLog: (obj: InvokeInlineAgentRequest) => any;