@aws-sdk/client-bedrock-agent-runtime 3.758.0 → 3.765.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.
@@ -60,66 +60,7 @@ declare const InvokeInlineAgentCommand_base: {
60
60
  * // const { BedrockAgentRuntimeClient, InvokeInlineAgentCommand } = require("@aws-sdk/client-bedrock-agent-runtime"); // CommonJS import
61
61
  * const client = new BedrockAgentRuntimeClient(config);
62
62
  * const input = { // InvokeInlineAgentRequest
63
- * sessionId: "STRING_VALUE", // required
64
63
  * customerEncryptionKeyArn: "STRING_VALUE",
65
- * endSession: true || false,
66
- * enableTrace: true || false,
67
- * inputText: "STRING_VALUE",
68
- * inlineSessionState: { // InlineSessionState
69
- * sessionAttributes: { // SessionAttributesMap
70
- * "<keys>": "STRING_VALUE",
71
- * },
72
- * promptSessionAttributes: { // PromptSessionAttributesMap
73
- * "<keys>": "STRING_VALUE",
74
- * },
75
- * returnControlInvocationResults: [ // ReturnControlInvocationResults
76
- * { // InvocationResultMember Union: only one key present
77
- * apiResult: { // ApiResult
78
- * actionGroup: "STRING_VALUE", // required
79
- * httpMethod: "STRING_VALUE",
80
- * apiPath: "STRING_VALUE",
81
- * confirmationState: "CONFIRM" || "DENY",
82
- * responseState: "FAILURE" || "REPROMPT",
83
- * httpStatusCode: Number("int"),
84
- * responseBody: { // ResponseBody
85
- * "<keys>": { // ContentBody
86
- * body: "STRING_VALUE",
87
- * },
88
- * },
89
- * agentId: "STRING_VALUE",
90
- * },
91
- * functionResult: { // FunctionResult
92
- * actionGroup: "STRING_VALUE", // required
93
- * confirmationState: "CONFIRM" || "DENY",
94
- * function: "STRING_VALUE",
95
- * responseBody: {
96
- * "<keys>": {
97
- * body: "STRING_VALUE",
98
- * },
99
- * },
100
- * responseState: "FAILURE" || "REPROMPT",
101
- * agentId: "STRING_VALUE",
102
- * },
103
- * },
104
- * ],
105
- * invocationId: "STRING_VALUE",
106
- * files: [ // InputFiles
107
- * { // InputFile
108
- * name: "STRING_VALUE", // required
109
- * source: { // FileSource
110
- * sourceType: "S3" || "BYTE_CONTENT", // required
111
- * s3Location: { // S3ObjectFile
112
- * uri: "STRING_VALUE", // required
113
- * },
114
- * byteContent: { // ByteContentFile
115
- * mediaType: "STRING_VALUE", // required
116
- * data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
117
- * },
118
- * },
119
- * useCase: "CODE_INTERPRETER" || "CHAT", // required
120
- * },
121
- * ],
122
- * },
123
64
  * foundationModel: "STRING_VALUE", // required
124
65
  * instruction: "STRING_VALUE", // required
125
66
  * idleSessionTTLInSeconds: Number("int"),
@@ -127,7 +68,7 @@ declare const InvokeInlineAgentCommand_base: {
127
68
  * { // AgentActionGroup
128
69
  * actionGroupName: "STRING_VALUE", // required
129
70
  * description: "STRING_VALUE",
130
- * parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter",
71
+ * parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter" || "ANTHROPIC.Computer" || "ANTHROPIC.Bash" || "ANTHROPIC.TextEditor",
131
72
  * actionGroupExecutor: { // ActionGroupExecutor Union: only one key present
132
73
  * lambda: "STRING_VALUE",
133
74
  * customControl: "RETURN_CONTROL",
@@ -155,6 +96,9 @@ declare const InvokeInlineAgentCommand_base: {
155
96
  * },
156
97
  * ],
157
98
  * },
99
+ * parentActionGroupSignatureParams: { // ActionGroupSignatureParams
100
+ * "<keys>": "STRING_VALUE",
101
+ * },
158
102
  * },
159
103
  * ],
160
104
  * knowledgeBases: [ // KnowledgeBases
@@ -279,20 +223,249 @@ declare const InvokeInlineAgentCommand_base: {
279
223
  * ],
280
224
  * },
281
225
  * parserMode: "DEFAULT" || "OVERRIDDEN",
226
+ * foundationModel: "STRING_VALUE",
282
227
  * additionalModelRequestFields: "DOCUMENT_VALUE",
283
228
  * },
284
229
  * ],
285
230
  * overrideLambda: "STRING_VALUE",
286
231
  * },
287
- * bedrockModelConfigurations: { // InlineBedrockModelConfigurations
288
- * performanceConfig: { // PerformanceConfiguration
289
- * latency: "standard" || "optimized",
232
+ * agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED",
233
+ * collaboratorConfigurations: [ // CollaboratorConfigurations
234
+ * { // CollaboratorConfiguration
235
+ * collaboratorName: "STRING_VALUE", // required
236
+ * collaboratorInstruction: "STRING_VALUE", // required
237
+ * agentAliasArn: "STRING_VALUE",
238
+ * relayConversationHistory: "TO_COLLABORATOR" || "DISABLED",
290
239
  * },
291
- * },
240
+ * ],
241
+ * sessionId: "STRING_VALUE", // required
242
+ * endSession: true || false,
243
+ * enableTrace: true || false,
244
+ * inputText: "STRING_VALUE",
292
245
  * streamingConfigurations: { // StreamingConfigurations
293
246
  * streamFinalResponse: true || false,
294
247
  * applyGuardrailInterval: Number("int"),
295
248
  * },
249
+ * inlineSessionState: { // InlineSessionState
250
+ * sessionAttributes: { // SessionAttributesMap
251
+ * "<keys>": "STRING_VALUE",
252
+ * },
253
+ * promptSessionAttributes: { // PromptSessionAttributesMap
254
+ * "<keys>": "STRING_VALUE",
255
+ * },
256
+ * returnControlInvocationResults: [ // ReturnControlInvocationResults
257
+ * { // InvocationResultMember Union: only one key present
258
+ * apiResult: { // ApiResult
259
+ * actionGroup: "STRING_VALUE", // required
260
+ * httpMethod: "STRING_VALUE",
261
+ * apiPath: "STRING_VALUE",
262
+ * confirmationState: "CONFIRM" || "DENY",
263
+ * responseState: "FAILURE" || "REPROMPT",
264
+ * httpStatusCode: Number("int"),
265
+ * responseBody: { // ResponseBody
266
+ * "<keys>": { // ContentBody
267
+ * body: "STRING_VALUE",
268
+ * images: [ // ImageInputs
269
+ * { // ImageInput
270
+ * format: "png" || "jpeg" || "gif" || "webp", // required
271
+ * source: { // ImageInputSource Union: only one key present
272
+ * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
273
+ * },
274
+ * },
275
+ * ],
276
+ * },
277
+ * },
278
+ * agentId: "STRING_VALUE",
279
+ * },
280
+ * functionResult: { // FunctionResult
281
+ * actionGroup: "STRING_VALUE", // required
282
+ * confirmationState: "CONFIRM" || "DENY",
283
+ * function: "STRING_VALUE",
284
+ * responseBody: {
285
+ * "<keys>": {
286
+ * body: "STRING_VALUE",
287
+ * images: [
288
+ * {
289
+ * format: "png" || "jpeg" || "gif" || "webp", // required
290
+ * source: {// Union: only one key present
291
+ * bytes: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("")
292
+ * },
293
+ * },
294
+ * ],
295
+ * },
296
+ * },
297
+ * responseState: "FAILURE" || "REPROMPT",
298
+ * agentId: "STRING_VALUE",
299
+ * },
300
+ * },
301
+ * ],
302
+ * invocationId: "STRING_VALUE",
303
+ * files: [ // InputFiles
304
+ * { // InputFile
305
+ * name: "STRING_VALUE", // required
306
+ * source: { // FileSource
307
+ * sourceType: "S3" || "BYTE_CONTENT", // required
308
+ * s3Location: { // S3ObjectFile
309
+ * uri: "STRING_VALUE", // required
310
+ * },
311
+ * byteContent: { // ByteContentFile
312
+ * mediaType: "STRING_VALUE", // required
313
+ * data: new Uint8Array(), // e.g. Buffer.from("") or new TextEncoder().encode("") // required
314
+ * },
315
+ * },
316
+ * useCase: "CODE_INTERPRETER" || "CHAT", // required
317
+ * },
318
+ * ],
319
+ * conversationHistory: { // ConversationHistory
320
+ * messages: [ // Messages
321
+ * { // Message
322
+ * role: "user" || "assistant", // required
323
+ * content: [ // ContentBlocks // required
324
+ * { // ContentBlock Union: only one key present
325
+ * text: "STRING_VALUE",
326
+ * },
327
+ * ],
328
+ * },
329
+ * ],
330
+ * },
331
+ * },
332
+ * collaborators: [ // Collaborators
333
+ * { // Collaborator
334
+ * customerEncryptionKeyArn: "STRING_VALUE",
335
+ * foundationModel: "STRING_VALUE", // required
336
+ * instruction: "STRING_VALUE", // required
337
+ * idleSessionTTLInSeconds: Number("int"),
338
+ * actionGroups: [
339
+ * {
340
+ * actionGroupName: "STRING_VALUE", // required
341
+ * description: "STRING_VALUE",
342
+ * parentActionGroupSignature: "AMAZON.UserInput" || "AMAZON.CodeInterpreter" || "ANTHROPIC.Computer" || "ANTHROPIC.Bash" || "ANTHROPIC.TextEditor",
343
+ * actionGroupExecutor: {// Union: only one key present
344
+ * lambda: "STRING_VALUE",
345
+ * customControl: "RETURN_CONTROL",
346
+ * },
347
+ * apiSchema: {// Union: only one key present
348
+ * s3: {
349
+ * s3BucketName: "STRING_VALUE",
350
+ * s3ObjectKey: "STRING_VALUE",
351
+ * },
352
+ * payload: "STRING_VALUE",
353
+ * },
354
+ * functionSchema: {// Union: only one key present
355
+ * functions: [
356
+ * {
357
+ * name: "STRING_VALUE", // required
358
+ * description: "STRING_VALUE",
359
+ * parameters: {
360
+ * "<keys>": {
361
+ * description: "STRING_VALUE",
362
+ * type: "string" || "number" || "integer" || "boolean" || "array", // required
363
+ * required: true || false,
364
+ * },
365
+ * },
366
+ * requireConfirmation: "ENABLED" || "DISABLED",
367
+ * },
368
+ * ],
369
+ * },
370
+ * parentActionGroupSignatureParams: {
371
+ * "<keys>": "STRING_VALUE",
372
+ * },
373
+ * },
374
+ * ],
375
+ * knowledgeBases: [
376
+ * {
377
+ * knowledgeBaseId: "STRING_VALUE", // required
378
+ * description: "STRING_VALUE", // required
379
+ * retrievalConfiguration: {
380
+ * vectorSearchConfiguration: {
381
+ * numberOfResults: Number("int"),
382
+ * overrideSearchType: "HYBRID" || "SEMANTIC",
383
+ * filter: "<RetrievalFilter>",
384
+ * rerankingConfiguration: {
385
+ * type: "BEDROCK_RERANKING_MODEL", // required
386
+ * bedrockRerankingConfiguration: {
387
+ * modelConfiguration: {
388
+ * modelArn: "STRING_VALUE", // required
389
+ * additionalModelRequestFields: {
390
+ * "<keys>": "DOCUMENT_VALUE",
391
+ * },
392
+ * },
393
+ * numberOfRerankedResults: Number("int"),
394
+ * metadataConfiguration: {
395
+ * selectionMode: "SELECTIVE" || "ALL", // required
396
+ * selectiveModeConfiguration: {// Union: only one key present
397
+ * fieldsToInclude: [
398
+ * {
399
+ * fieldName: "STRING_VALUE", // required
400
+ * },
401
+ * ],
402
+ * fieldsToExclude: [
403
+ * {
404
+ * fieldName: "STRING_VALUE", // required
405
+ * },
406
+ * ],
407
+ * },
408
+ * },
409
+ * },
410
+ * },
411
+ * implicitFilterConfiguration: {
412
+ * metadataAttributes: [ // required
413
+ * {
414
+ * key: "STRING_VALUE", // required
415
+ * type: "STRING" || "NUMBER" || "BOOLEAN" || "STRING_LIST", // required
416
+ * description: "STRING_VALUE", // required
417
+ * },
418
+ * ],
419
+ * modelArn: "STRING_VALUE", // required
420
+ * },
421
+ * },
422
+ * },
423
+ * },
424
+ * ],
425
+ * guardrailConfiguration: {
426
+ * guardrailIdentifier: "STRING_VALUE", // required
427
+ * guardrailVersion: "STRING_VALUE", // required
428
+ * },
429
+ * promptOverrideConfiguration: {
430
+ * promptConfigurations: [ // required
431
+ * {
432
+ * promptType: "PRE_PROCESSING" || "ORCHESTRATION" || "KNOWLEDGE_BASE_RESPONSE_GENERATION" || "POST_PROCESSING" || "ROUTING_CLASSIFIER",
433
+ * promptCreationMode: "DEFAULT" || "OVERRIDDEN",
434
+ * promptState: "ENABLED" || "DISABLED",
435
+ * basePromptTemplate: "STRING_VALUE",
436
+ * inferenceConfiguration: {
437
+ * temperature: Number("float"),
438
+ * topP: Number("float"),
439
+ * topK: Number("int"),
440
+ * maximumLength: Number("int"),
441
+ * stopSequences: [
442
+ * "STRING_VALUE",
443
+ * ],
444
+ * },
445
+ * parserMode: "DEFAULT" || "OVERRIDDEN",
446
+ * foundationModel: "STRING_VALUE",
447
+ * additionalModelRequestFields: "DOCUMENT_VALUE",
448
+ * },
449
+ * ],
450
+ * overrideLambda: "STRING_VALUE",
451
+ * },
452
+ * agentCollaboration: "SUPERVISOR" || "SUPERVISOR_ROUTER" || "DISABLED",
453
+ * collaboratorConfigurations: [
454
+ * {
455
+ * collaboratorName: "STRING_VALUE", // required
456
+ * collaboratorInstruction: "STRING_VALUE", // required
457
+ * agentAliasArn: "STRING_VALUE",
458
+ * relayConversationHistory: "TO_COLLABORATOR" || "DISABLED",
459
+ * },
460
+ * ],
461
+ * agentName: "STRING_VALUE",
462
+ * },
463
+ * ],
464
+ * bedrockModelConfigurations: { // InlineBedrockModelConfigurations
465
+ * performanceConfig: { // PerformanceConfiguration
466
+ * latency: "standard" || "optimized",
467
+ * },
468
+ * },
296
469
  * };
297
470
  * const command = new InvokeInlineAgentCommand(input);
298
471
  * const response = await client.send(command);
@@ -584,6 +757,14 @@ declare const InvokeInlineAgentCommand_base: {
584
757
  * // responseBody: { // ResponseBody
585
758
  * // "<keys>": { // ContentBody
586
759
  * // body: "STRING_VALUE",
760
+ * // images: [ // ImageInputs
761
+ * // { // ImageInput
762
+ * // format: "png" || "jpeg" || "gif" || "webp", // required
763
+ * // source: { // ImageInputSource Union: only one key present
764
+ * // bytes: new Uint8Array(),
765
+ * // },
766
+ * // },
767
+ * // ],
587
768
  * // },
588
769
  * // },
589
770
  * // agentId: "STRING_VALUE",
@@ -595,6 +776,14 @@ declare const InvokeInlineAgentCommand_base: {
595
776
  * // responseBody: {
596
777
  * // "<keys>": {
597
778
  * // body: "STRING_VALUE",
779
+ * // images: [
780
+ * // {
781
+ * // format: "png" || "jpeg" || "gif" || "webp", // required
782
+ * // source: {// Union: only one key present
783
+ * // bytes: new Uint8Array(),
784
+ * // },
785
+ * // },
786
+ * // ],
598
787
  * // },
599
788
  * // },
600
789
  * // responseState: "FAILURE" || "REPROMPT",
@@ -861,6 +1050,14 @@ declare const InvokeInlineAgentCommand_base: {
861
1050
  * // responseBody: {
862
1051
  * // "<keys>": {
863
1052
  * // body: "STRING_VALUE",
1053
+ * // images: [
1054
+ * // {
1055
+ * // format: "png" || "jpeg" || "gif" || "webp", // required
1056
+ * // source: {// Union: only one key present
1057
+ * // bytes: new Uint8Array(),
1058
+ * // },
1059
+ * // },
1060
+ * // ],
864
1061
  * // },
865
1062
  * // },
866
1063
  * // agentId: "STRING_VALUE",
@@ -872,6 +1069,14 @@ declare const InvokeInlineAgentCommand_base: {
872
1069
  * // responseBody: {
873
1070
  * // "<keys>": {
874
1071
  * // body: "STRING_VALUE",
1072
+ * // images: [
1073
+ * // {
1074
+ * // format: "png" || "jpeg" || "gif" || "webp", // required
1075
+ * // source: {// Union: only one key present
1076
+ * // bytes: new Uint8Array(),
1077
+ * // },
1078
+ * // },
1079
+ * // ],
875
1080
  * // },
876
1081
  * // },
877
1082
  * // responseState: "FAILURE" || "REPROMPT",
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
- import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_0";
4
+ import { ListTagsForResourceRequest, ListTagsForResourceResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
- import { TagResourceRequest, TagResourceResponse } from "../models/models_0";
4
+ import { TagResourceRequest, TagResourceResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import { BedrockAgentRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentRuntimeClient";
4
- import { UntagResourceRequest, UntagResourceResponse } from "../models/models_0";
4
+ import { UntagResourceRequest, UntagResourceResponse } from "../models/models_1";
5
5
  /**
6
6
  * @public
7
7
  */