@aws-sdk/client-bedrock-agent-runtime 3.716.0 → 3.717.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist-cjs/index.js CHANGED
@@ -171,6 +171,7 @@ __export(src_exports, {
171
171
  MetadataConfigurationForRerankingFilterSensitiveLog: () => MetadataConfigurationForRerankingFilterSensitiveLog,
172
172
  MetadataFilterSensitiveLog: () => MetadataFilterSensitiveLog,
173
173
  ModelInvocationInputFilterSensitiveLog: () => ModelInvocationInputFilterSensitiveLog,
174
+ ModelNotReadyException: () => ModelNotReadyException,
174
175
  NodeType: () => NodeType,
175
176
  ObservationFilterSensitiveLog: () => ObservationFilterSensitiveLog,
176
177
  OptimizePromptCommand: () => OptimizePromptCommand,
@@ -189,6 +190,7 @@ __export(src_exports, {
189
190
  ParameterType: () => ParameterType,
190
191
  PayloadPartFilterSensitiveLog: () => PayloadPartFilterSensitiveLog,
191
192
  PayloadType: () => PayloadType,
193
+ PerformanceConfigLatency: () => PerformanceConfigLatency,
192
194
  PostProcessingModelInvocationOutputFilterSensitiveLog: () => PostProcessingModelInvocationOutputFilterSensitiveLog,
193
195
  PostProcessingParsedResponseFilterSensitiveLog: () => PostProcessingParsedResponseFilterSensitiveLog,
194
196
  PostProcessingTrace: () => PostProcessingTrace,
@@ -632,6 +634,10 @@ var FlowInputContent;
632
634
  return visitor._(value.$unknown[0], value.$unknown[1]);
633
635
  }, "visit");
634
636
  })(FlowInputContent || (FlowInputContent = {}));
637
+ var PerformanceConfigLatency = {
638
+ OPTIMIZED: "optimized",
639
+ STANDARD: "standard"
640
+ };
635
641
  var FlowCompletionReason = {
636
642
  SUCCESS: "SUCCESS"
637
643
  };
@@ -860,6 +866,23 @@ var RetrievalResultLocationType = {
860
866
  SQL: "SQL",
861
867
  WEB: "WEB"
862
868
  };
869
+ var _ModelNotReadyException = class _ModelNotReadyException extends BedrockAgentRuntimeServiceException {
870
+ /**
871
+ * @internal
872
+ */
873
+ constructor(opts) {
874
+ super({
875
+ name: "ModelNotReadyException",
876
+ $fault: "client",
877
+ ...opts
878
+ });
879
+ this.name = "ModelNotReadyException";
880
+ this.$fault = "client";
881
+ Object.setPrototypeOf(this, _ModelNotReadyException.prototype);
882
+ }
883
+ };
884
+ __name(_ModelNotReadyException, "ModelNotReadyException");
885
+ var ModelNotReadyException = _ModelNotReadyException;
863
886
  var Caller;
864
887
  ((Caller2) => {
865
888
  Caller2.visit = /* @__PURE__ */ __name((value, visitor) => {
@@ -1066,6 +1089,8 @@ var ResponseStream;
1066
1089
  return visitor.dependencyFailedException(value.dependencyFailedException);
1067
1090
  if (value.badGatewayException !== void 0)
1068
1091
  return visitor.badGatewayException(value.badGatewayException);
1092
+ if (value.modelNotReadyException !== void 0)
1093
+ return visitor.modelNotReadyException(value.modelNotReadyException);
1069
1094
  if (value.files !== void 0)
1070
1095
  return visitor.files(value.files);
1071
1096
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -1815,6 +1840,8 @@ var ResponseStreamFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1815
1840
  return { dependencyFailedException: obj.dependencyFailedException };
1816
1841
  if (obj.badGatewayException !== void 0)
1817
1842
  return { badGatewayException: obj.badGatewayException };
1843
+ if (obj.modelNotReadyException !== void 0)
1844
+ return { modelNotReadyException: obj.modelNotReadyException };
1818
1845
  if (obj.files !== void 0)
1819
1846
  return { files: FilePartFilterSensitiveLog(obj.files) };
1820
1847
  if (obj.$unknown !== void 0)
@@ -2220,7 +2247,8 @@ var se_DeleteAgentMemoryCommand = /* @__PURE__ */ __name(async (input, context)
2220
2247
  b.p("agentId", () => input.agentId, "{agentId}", false);
2221
2248
  b.p("agentAliasId", () => input.agentAliasId, "{agentAliasId}", false);
2222
2249
  const query = (0, import_smithy_client.map)({
2223
- [_mI]: [, input[_mI]]
2250
+ [_mI]: [, input[_mI]],
2251
+ [_sI]: [, input[_sI]]
2224
2252
  });
2225
2253
  let body;
2226
2254
  b.m("DELETE").h(headers).q(query).b(body);
@@ -2271,6 +2299,7 @@ var se_InvokeAgentCommand = /* @__PURE__ */ __name(async (input, context) => {
2271
2299
  let body;
2272
2300
  body = JSON.stringify(
2273
2301
  (0, import_smithy_client.take)(input, {
2302
+ bedrockModelConfigurations: (_) => (0, import_smithy_client._json)(_),
2274
2303
  enableTrace: [],
2275
2304
  endSession: [],
2276
2305
  inputText: [],
@@ -2294,7 +2323,8 @@ var se_InvokeFlowCommand = /* @__PURE__ */ __name(async (input, context) => {
2294
2323
  body = JSON.stringify(
2295
2324
  (0, import_smithy_client.take)(input, {
2296
2325
  enableTrace: [],
2297
- inputs: (_) => se_FlowInputs(_, context)
2326
+ inputs: (_) => se_FlowInputs(_, context),
2327
+ modelPerformanceConfiguration: (_) => (0, import_smithy_client._json)(_)
2298
2328
  })
2299
2329
  );
2300
2330
  b.m("POST").h(headers).b(body);
@@ -2311,6 +2341,7 @@ var se_InvokeInlineAgentCommand = /* @__PURE__ */ __name(async (input, context)
2311
2341
  body = JSON.stringify(
2312
2342
  (0, import_smithy_client.take)(input, {
2313
2343
  actionGroups: (_) => (0, import_smithy_client._json)(_),
2344
+ bedrockModelConfigurations: (_) => (0, import_smithy_client._json)(_),
2314
2345
  customerEncryptionKeyArn: [],
2315
2346
  enableTrace: [],
2316
2347
  endSession: [],
@@ -2598,6 +2629,9 @@ var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
2598
2629
  case "ValidationException":
2599
2630
  case "com.amazonaws.bedrockagentruntime#ValidationException":
2600
2631
  throw await de_ValidationExceptionRes(parsedOutput, context);
2632
+ case "ModelNotReadyException":
2633
+ case "com.amazonaws.bedrockagentruntime#ModelNotReadyException":
2634
+ throw await de_ModelNotReadyExceptionRes(parsedOutput, context);
2601
2635
  default:
2602
2636
  const parsedBody = parsedOutput.body;
2603
2637
  return throwDefaultError({
@@ -2675,6 +2709,19 @@ var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput,
2675
2709
  });
2676
2710
  return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2677
2711
  }, "de_InternalServerExceptionRes");
2712
+ var de_ModelNotReadyExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2713
+ const contents = (0, import_smithy_client.map)({});
2714
+ const data = parsedOutput.body;
2715
+ const doc = (0, import_smithy_client.take)(data, {
2716
+ message: import_smithy_client.expectString
2717
+ });
2718
+ Object.assign(contents, doc);
2719
+ const exception = new ModelNotReadyException({
2720
+ $metadata: deserializeMetadata(parsedOutput),
2721
+ ...contents
2722
+ });
2723
+ return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
2724
+ }, "de_ModelNotReadyExceptionRes");
2678
2725
  var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
2679
2726
  const contents = (0, import_smithy_client.map)({});
2680
2727
  const data = parsedOutput.body;
@@ -2999,6 +3046,11 @@ var de_ResponseStream = /* @__PURE__ */ __name((output, context) => {
2999
3046
  badGatewayException: await de_BadGatewayException_event(event["badGatewayException"], context)
3000
3047
  };
3001
3048
  }
3049
+ if (event["modelNotReadyException"] != null) {
3050
+ return {
3051
+ modelNotReadyException: await de_ModelNotReadyException_event(event["modelNotReadyException"], context)
3052
+ };
3053
+ }
3002
3054
  if (event["files"] != null) {
3003
3055
  return {
3004
3056
  files: await de_FilePart_event(event["files"], context)
@@ -3182,6 +3234,13 @@ var de_InternalServerException_event = /* @__PURE__ */ __name(async (output, con
3182
3234
  };
3183
3235
  return de_InternalServerExceptionRes(parsedOutput, context);
3184
3236
  }, "de_InternalServerException_event");
3237
+ var de_ModelNotReadyException_event = /* @__PURE__ */ __name(async (output, context) => {
3238
+ const parsedOutput = {
3239
+ ...output,
3240
+ body: await (0, import_core2.parseJsonBody)(output.body, context)
3241
+ };
3242
+ return de_ModelNotReadyExceptionRes(parsedOutput, context);
3243
+ }, "de_ModelNotReadyException_event");
3185
3244
  var de_OptimizedPromptEvent_event = /* @__PURE__ */ __name(async (output, context) => {
3186
3245
  const contents = {};
3187
3246
  const data = await (0, import_core2.parseJsonBody)(output.body, context);
@@ -3294,6 +3353,7 @@ var se_ExternalSourcesGenerationConfiguration = /* @__PURE__ */ __name((input, c
3294
3353
  additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
3295
3354
  guardrailConfiguration: import_smithy_client._json,
3296
3355
  inferenceConfig: (_) => se_InferenceConfig(_, context),
3356
+ performanceConfig: import_smithy_client._json,
3297
3357
  promptTemplate: import_smithy_client._json
3298
3358
  });
3299
3359
  }, "se_ExternalSourcesGenerationConfiguration");
@@ -3343,6 +3403,7 @@ var se_GenerationConfiguration = /* @__PURE__ */ __name((input, context) => {
3343
3403
  additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
3344
3404
  guardrailConfiguration: import_smithy_client._json,
3345
3405
  inferenceConfig: (_) => se_InferenceConfig(_, context),
3406
+ performanceConfig: import_smithy_client._json,
3346
3407
  promptTemplate: import_smithy_client._json
3347
3408
  });
3348
3409
  }, "se_GenerationConfiguration");
@@ -3431,6 +3492,7 @@ var se_OrchestrationConfiguration = /* @__PURE__ */ __name((input, context) => {
3431
3492
  return (0, import_smithy_client.take)(input, {
3432
3493
  additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
3433
3494
  inferenceConfig: (_) => se_InferenceConfig(_, context),
3495
+ performanceConfig: import_smithy_client._json,
3434
3496
  promptTemplate: import_smithy_client._json,
3435
3497
  queryTransformationConfiguration: import_smithy_client._json
3436
3498
  });
@@ -4247,6 +4309,7 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
4247
4309
  DependencyFailedException,
4248
4310
  InternalServerException,
4249
4311
  FlowInputContent,
4312
+ PerformanceConfigLatency,
4250
4313
  FlowCompletionReason,
4251
4314
  FlowOutputContent,
4252
4315
  NodeType,
@@ -4274,6 +4337,7 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
4274
4337
  RetrievalResultContentColumnType,
4275
4338
  RetrievalResultContentType,
4276
4339
  RetrievalResultLocationType,
4340
+ ModelNotReadyException,
4277
4341
  Caller,
4278
4342
  GuardrailAction,
4279
4343
  GuardrailContentPolicyAction,
@@ -157,6 +157,10 @@ export var FlowInputContent;
157
157
  return visitor._(value.$unknown[0], value.$unknown[1]);
158
158
  };
159
159
  })(FlowInputContent || (FlowInputContent = {}));
160
+ export const PerformanceConfigLatency = {
161
+ OPTIMIZED: "optimized",
162
+ STANDARD: "standard",
163
+ };
160
164
  export const FlowCompletionReason = {
161
165
  SUCCESS: "SUCCESS",
162
166
  };
@@ -365,6 +369,18 @@ export const RetrievalResultLocationType = {
365
369
  SQL: "SQL",
366
370
  WEB: "WEB",
367
371
  };
372
+ export class ModelNotReadyException extends __BaseException {
373
+ constructor(opts) {
374
+ super({
375
+ name: "ModelNotReadyException",
376
+ $fault: "client",
377
+ ...opts,
378
+ });
379
+ this.name = "ModelNotReadyException";
380
+ this.$fault = "client";
381
+ Object.setPrototypeOf(this, ModelNotReadyException.prototype);
382
+ }
383
+ }
368
384
  export var Caller;
369
385
  (function (Caller) {
370
386
  Caller.visit = (value, visitor) => {
@@ -571,6 +587,8 @@ export var ResponseStream;
571
587
  return visitor.dependencyFailedException(value.dependencyFailedException);
572
588
  if (value.badGatewayException !== undefined)
573
589
  return visitor.badGatewayException(value.badGatewayException);
590
+ if (value.modelNotReadyException !== undefined)
591
+ return visitor.modelNotReadyException(value.modelNotReadyException);
574
592
  if (value.files !== undefined)
575
593
  return visitor.files(value.files);
576
594
  return visitor._(value.$unknown[0], value.$unknown[1]);
@@ -1310,6 +1328,8 @@ export const ResponseStreamFilterSensitiveLog = (obj) => {
1310
1328
  return { dependencyFailedException: obj.dependencyFailedException };
1311
1329
  if (obj.badGatewayException !== undefined)
1312
1330
  return { badGatewayException: obj.badGatewayException };
1331
+ if (obj.modelNotReadyException !== undefined)
1332
+ return { modelNotReadyException: obj.modelNotReadyException };
1313
1333
  if (obj.files !== undefined)
1314
1334
  return { files: FilePartFilterSensitiveLog(obj.files) };
1315
1335
  if (obj.$unknown !== undefined)
@@ -2,7 +2,7 @@ import { awsExpectUnion as __expectUnion, loadRestJsonErrorCode, parseJsonBody a
2
2
  import { requestBuilder as rb } from "@smithy/core";
3
3
  import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, isSerializableHeaderValue, limitedParseDouble as __limitedParseDouble, limitedParseFloat32 as __limitedParseFloat32, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, serializeFloat as __serializeFloat, take, withBaseException, } from "@smithy/smithy-client";
4
4
  import { BedrockAgentRuntimeServiceException as __BaseException } from "../models/BedrockAgentRuntimeServiceException";
5
- import { AccessDeniedException, BadGatewayException, ConflictException, DependencyFailedException, FlowInputContent, InternalServerException, ResourceNotFoundException, RetrievalFilter, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
5
+ import { AccessDeniedException, BadGatewayException, ConflictException, DependencyFailedException, FlowInputContent, InternalServerException, ModelNotReadyException, ResourceNotFoundException, RetrievalFilter, ServiceQuotaExceededException, ThrottlingException, ValidationException, } from "../models/models_0";
6
6
  export const se_DeleteAgentMemoryCommand = async (input, context) => {
7
7
  const b = rb(input, context);
8
8
  const headers = {};
@@ -11,6 +11,7 @@ export const se_DeleteAgentMemoryCommand = async (input, context) => {
11
11
  b.p("agentAliasId", () => input.agentAliasId, "{agentAliasId}", false);
12
12
  const query = map({
13
13
  [_mI]: [, input[_mI]],
14
+ [_sI]: [, input[_sI]],
14
15
  });
15
16
  let body;
16
17
  b.m("DELETE").h(headers).q(query).b(body);
@@ -58,6 +59,7 @@ export const se_InvokeAgentCommand = async (input, context) => {
58
59
  b.p("sessionId", () => input.sessionId, "{sessionId}", false);
59
60
  let body;
60
61
  body = JSON.stringify(take(input, {
62
+ bedrockModelConfigurations: (_) => _json(_),
61
63
  enableTrace: [],
62
64
  endSession: [],
63
65
  inputText: [],
@@ -80,6 +82,7 @@ export const se_InvokeFlowCommand = async (input, context) => {
80
82
  body = JSON.stringify(take(input, {
81
83
  enableTrace: [],
82
84
  inputs: (_) => se_FlowInputs(_, context),
85
+ modelPerformanceConfiguration: (_) => _json(_),
83
86
  }));
84
87
  b.m("POST").h(headers).b(body);
85
88
  return b.build();
@@ -94,6 +97,7 @@ export const se_InvokeInlineAgentCommand = async (input, context) => {
94
97
  let body;
95
98
  body = JSON.stringify(take(input, {
96
99
  actionGroups: (_) => _json(_),
100
+ bedrockModelConfigurations: (_) => _json(_),
97
101
  customerEncryptionKeyArn: [],
98
102
  enableTrace: [],
99
103
  endSession: [],
@@ -370,6 +374,9 @@ const de_CommandError = async (output, context) => {
370
374
  case "ValidationException":
371
375
  case "com.amazonaws.bedrockagentruntime#ValidationException":
372
376
  throw await de_ValidationExceptionRes(parsedOutput, context);
377
+ case "ModelNotReadyException":
378
+ case "com.amazonaws.bedrockagentruntime#ModelNotReadyException":
379
+ throw await de_ModelNotReadyExceptionRes(parsedOutput, context);
373
380
  default:
374
381
  const parsedBody = parsedOutput.body;
375
382
  return throwDefaultError({
@@ -447,6 +454,19 @@ const de_InternalServerExceptionRes = async (parsedOutput, context) => {
447
454
  });
448
455
  return __decorateServiceException(exception, parsedOutput.body);
449
456
  };
457
+ const de_ModelNotReadyExceptionRes = async (parsedOutput, context) => {
458
+ const contents = map({});
459
+ const data = parsedOutput.body;
460
+ const doc = take(data, {
461
+ message: __expectString,
462
+ });
463
+ Object.assign(contents, doc);
464
+ const exception = new ModelNotReadyException({
465
+ $metadata: deserializeMetadata(parsedOutput),
466
+ ...contents,
467
+ });
468
+ return __decorateServiceException(exception, parsedOutput.body);
469
+ };
450
470
  const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
451
471
  const contents = map({});
452
472
  const data = parsedOutput.body;
@@ -741,6 +761,11 @@ const de_ResponseStream = (output, context) => {
741
761
  badGatewayException: await de_BadGatewayException_event(event["badGatewayException"], context),
742
762
  };
743
763
  }
764
+ if (event["modelNotReadyException"] != null) {
765
+ return {
766
+ modelNotReadyException: await de_ModelNotReadyException_event(event["modelNotReadyException"], context),
767
+ };
768
+ }
744
769
  if (event["files"] != null) {
745
770
  return {
746
771
  files: await de_FilePart_event(event["files"], context),
@@ -915,6 +940,13 @@ const de_InternalServerException_event = async (output, context) => {
915
940
  };
916
941
  return de_InternalServerExceptionRes(parsedOutput, context);
917
942
  };
943
+ const de_ModelNotReadyException_event = async (output, context) => {
944
+ const parsedOutput = {
945
+ ...output,
946
+ body: await parseBody(output.body, context),
947
+ };
948
+ return de_ModelNotReadyExceptionRes(parsedOutput, context);
949
+ };
918
950
  const de_OptimizedPromptEvent_event = async (output, context) => {
919
951
  const contents = {};
920
952
  const data = await parseBody(output.body, context);
@@ -1029,6 +1061,7 @@ const se_ExternalSourcesGenerationConfiguration = (input, context) => {
1029
1061
  additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
1030
1062
  guardrailConfiguration: _json,
1031
1063
  inferenceConfig: (_) => se_InferenceConfig(_, context),
1064
+ performanceConfig: _json,
1032
1065
  promptTemplate: _json,
1033
1066
  });
1034
1067
  };
@@ -1080,6 +1113,7 @@ const se_GenerationConfiguration = (input, context) => {
1080
1113
  additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
1081
1114
  guardrailConfiguration: _json,
1082
1115
  inferenceConfig: (_) => se_InferenceConfig(_, context),
1116
+ performanceConfig: _json,
1083
1117
  promptTemplate: _json,
1084
1118
  });
1085
1119
  };
@@ -1174,6 +1208,7 @@ const se_OrchestrationConfiguration = (input, context) => {
1174
1208
  return take(input, {
1175
1209
  additionalModelRequestFields: (_) => se_AdditionalModelRequestFields(_, context),
1176
1210
  inferenceConfig: (_) => se_InferenceConfig(_, context),
1211
+ performanceConfig: _json,
1177
1212
  promptTemplate: _json,
1178
1213
  queryTransformationConfiguration: _json,
1179
1214
  });
@@ -38,6 +38,7 @@ declare const DeleteAgentMemoryCommand_base: {
38
38
  * agentId: "STRING_VALUE", // required
39
39
  * agentAliasId: "STRING_VALUE", // required
40
40
  * memoryId: "STRING_VALUE",
41
+ * sessionId: "STRING_VALUE",
41
42
  * };
42
43
  * const command = new DeleteAgentMemoryCommand(input);
43
44
  * const response = await client.send(command);
@@ -39,6 +39,25 @@ declare const InvokeAgentCommand_base: {
39
39
  * <p>To activate trace enablement, turn <code>enableTrace</code> to <code>true</code>. Trace enablement helps you follow the agent's reasoning process that led it to the information it processed, the actions it took, and the final result it yielded. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/agents-test.html#trace-events">Trace enablement</a>.</p>
40
40
  * </li>
41
41
  * <li>
42
+ * <p>To stream agent responses, make sure that only orchestration prompt is enabled. Agent streaming is not supported for the following steps:
43
+ * </p>
44
+ * <ul>
45
+ * <li>
46
+ * <p>
47
+ * <code>Pre-processing</code>
48
+ * </p>
49
+ * </li>
50
+ * <li>
51
+ * <p>
52
+ * <code>Post-processing</code>
53
+ * </p>
54
+ * </li>
55
+ * <li>
56
+ * <p>Agent with 1 Knowledge base and <code>User Input</code> not enabled</p>
57
+ * </li>
58
+ * </ul>
59
+ * </li>
60
+ * <li>
42
61
  * <p>End a conversation by setting <code>endSession</code> to <code>true</code>.</p>
43
62
  * </li>
44
63
  * <li>
@@ -81,13 +100,13 @@ declare const InvokeAgentCommand_base: {
81
100
  * httpMethod: "STRING_VALUE",
82
101
  * apiPath: "STRING_VALUE",
83
102
  * confirmationState: "CONFIRM" || "DENY",
103
+ * responseState: "FAILURE" || "REPROMPT",
104
+ * httpStatusCode: Number("int"),
84
105
  * responseBody: { // ResponseBody
85
106
  * "<keys>": { // ContentBody
86
107
  * body: "STRING_VALUE",
87
108
  * },
88
109
  * },
89
- * httpStatusCode: Number("int"),
90
- * responseState: "FAILURE" || "REPROMPT",
91
110
  * agentId: "STRING_VALUE",
92
111
  * },
93
112
  * functionResult: { // FunctionResult
@@ -241,6 +260,11 @@ declare const InvokeAgentCommand_base: {
241
260
  * enableTrace: true || false,
242
261
  * inputText: "STRING_VALUE",
243
262
  * memoryId: "STRING_VALUE",
263
+ * bedrockModelConfigurations: { // BedrockModelConfigurations
264
+ * performanceConfig: { // PerformanceConfiguration
265
+ * latency: "standard" || "optimized",
266
+ * },
267
+ * },
244
268
  * streamingConfigurations: { // StreamingConfigurations
245
269
  * streamFinalResponse: true || false,
246
270
  * applyGuardrailInterval: Number("int"),
@@ -525,13 +549,13 @@ declare const InvokeAgentCommand_base: {
525
549
  * // httpMethod: "STRING_VALUE",
526
550
  * // apiPath: "STRING_VALUE",
527
551
  * // confirmationState: "CONFIRM" || "DENY",
552
+ * // responseState: "FAILURE" || "REPROMPT",
553
+ * // httpStatusCode: Number("int"),
528
554
  * // responseBody: { // ResponseBody
529
555
  * // "<keys>": { // ContentBody
530
556
  * // body: "STRING_VALUE",
531
557
  * // },
532
558
  * // },
533
- * // httpStatusCode: Number("int"),
534
- * // responseState: "FAILURE" || "REPROMPT",
535
559
  * // agentId: "STRING_VALUE",
536
560
  * // },
537
561
  * // functionResult: { // FunctionResult
@@ -788,13 +812,13 @@ declare const InvokeAgentCommand_base: {
788
812
  * // httpMethod: "STRING_VALUE",
789
813
  * // apiPath: "STRING_VALUE",
790
814
  * // confirmationState: "CONFIRM" || "DENY",
815
+ * // responseState: "FAILURE" || "REPROMPT",
816
+ * // httpStatusCode: Number("int"),
791
817
  * // responseBody: {
792
818
  * // "<keys>": {
793
819
  * // body: "STRING_VALUE",
794
820
  * // },
795
821
  * // },
796
- * // httpStatusCode: Number("int"),
797
- * // responseState: "FAILURE" || "REPROMPT",
798
822
  * // agentId: "STRING_VALUE",
799
823
  * // },
800
824
  * // functionResult: {
@@ -1064,6 +1088,9 @@ declare const InvokeAgentCommand_base: {
1064
1088
  * // message: "STRING_VALUE",
1065
1089
  * // resourceName: "STRING_VALUE",
1066
1090
  * // },
1091
+ * // modelNotReadyException: { // ModelNotReadyException
1092
+ * // message: "STRING_VALUE",
1093
+ * // },
1067
1094
  * // files: { // FilePart
1068
1095
  * // files: [ // OutputFiles
1069
1096
  * // { // OutputFile
@@ -1102,6 +1129,14 @@ declare const InvokeAgentCommand_base: {
1102
1129
  * @throws {@link InternalServerException} (server fault)
1103
1130
  * <p>An internal server error occurred. Retry your request.</p>
1104
1131
  *
1132
+ * @throws {@link ModelNotReadyException} (client fault)
1133
+ * <p>
1134
+ * The model specified in the request is not ready to serve inference requests. The AWS SDK
1135
+ * will automatically retry the operation up to 5 times. For information about configuring
1136
+ * automatic retries, see <a href="https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html">Retry behavior</a> in the <i>AWS SDKs and Tools</i>
1137
+ * reference guide.
1138
+ * </p>
1139
+ *
1105
1140
  * @throws {@link ResourceNotFoundException} (client fault)
1106
1141
  * <p>The specified resource Amazon Resource Name (ARN) was not found. Check the Amazon Resource Name (ARN) and try your request again.</p>
1107
1142
  *
@@ -50,6 +50,11 @@ declare const InvokeFlowCommand_base: {
50
50
  * },
51
51
  * ],
52
52
  * enableTrace: true || false,
53
+ * modelPerformanceConfiguration: { // ModelPerformanceConfiguration
54
+ * performanceConfig: { // PerformanceConfiguration
55
+ * latency: "standard" || "optimized",
56
+ * },
57
+ * },
53
58
  * };
54
59
  * const command = new InvokeFlowCommand(input);
55
60
  * const response = await client.send(command);
@@ -79,13 +79,13 @@ declare const InvokeInlineAgentCommand_base: {
79
79
  * httpMethod: "STRING_VALUE",
80
80
  * apiPath: "STRING_VALUE",
81
81
  * confirmationState: "CONFIRM" || "DENY",
82
+ * responseState: "FAILURE" || "REPROMPT",
83
+ * httpStatusCode: Number("int"),
82
84
  * responseBody: { // ResponseBody
83
85
  * "<keys>": { // ContentBody
84
86
  * body: "STRING_VALUE",
85
87
  * },
86
88
  * },
87
- * httpStatusCode: Number("int"),
88
- * responseState: "FAILURE" || "REPROMPT",
89
89
  * agentId: "STRING_VALUE",
90
90
  * },
91
91
  * functionResult: { // FunctionResult
@@ -283,6 +283,11 @@ declare const InvokeInlineAgentCommand_base: {
283
283
  * ],
284
284
  * overrideLambda: "STRING_VALUE",
285
285
  * },
286
+ * bedrockModelConfigurations: { // InlineBedrockModelConfigurations
287
+ * performanceConfig: { // PerformanceConfiguration
288
+ * latency: "standard" || "optimized",
289
+ * },
290
+ * },
286
291
  * };
287
292
  * const command = new InvokeInlineAgentCommand(input);
288
293
  * const response = await client.send(command);
@@ -562,13 +567,13 @@ declare const InvokeInlineAgentCommand_base: {
562
567
  * // httpMethod: "STRING_VALUE",
563
568
  * // apiPath: "STRING_VALUE",
564
569
  * // confirmationState: "CONFIRM" || "DENY",
570
+ * // responseState: "FAILURE" || "REPROMPT",
571
+ * // httpStatusCode: Number("int"),
565
572
  * // responseBody: { // ResponseBody
566
573
  * // "<keys>": { // ContentBody
567
574
  * // body: "STRING_VALUE",
568
575
  * // },
569
576
  * // },
570
- * // httpStatusCode: Number("int"),
571
- * // responseState: "FAILURE" || "REPROMPT",
572
577
  * // agentId: "STRING_VALUE",
573
578
  * // },
574
579
  * // functionResult: { // FunctionResult
@@ -825,13 +830,13 @@ declare const InvokeInlineAgentCommand_base: {
825
830
  * // httpMethod: "STRING_VALUE",
826
831
  * // apiPath: "STRING_VALUE",
827
832
  * // confirmationState: "CONFIRM" || "DENY",
833
+ * // responseState: "FAILURE" || "REPROMPT",
834
+ * // httpStatusCode: Number("int"),
828
835
  * // responseBody: {
829
836
  * // "<keys>": {
830
837
  * // body: "STRING_VALUE",
831
838
  * // },
832
839
  * // },
833
- * // httpStatusCode: Number("int"),
834
- * // responseState: "FAILURE" || "REPROMPT",
835
840
  * // agentId: "STRING_VALUE",
836
841
  * // },
837
842
  * // functionResult: {
@@ -160,6 +160,9 @@ declare const RetrieveAndGenerateCommand_base: {
160
160
  * additionalModelRequestFields: {
161
161
  * "<keys>": "DOCUMENT_VALUE",
162
162
  * },
163
+ * performanceConfig: { // PerformanceConfiguration
164
+ * latency: "standard" || "optimized",
165
+ * },
163
166
  * },
164
167
  * orchestrationConfiguration: { // OrchestrationConfiguration
165
168
  * promptTemplate: {
@@ -181,6 +184,9 @@ declare const RetrieveAndGenerateCommand_base: {
181
184
  * queryTransformationConfiguration: { // QueryTransformationConfiguration
182
185
  * type: "QUERY_DECOMPOSITION", // required
183
186
  * },
187
+ * performanceConfig: {
188
+ * latency: "standard" || "optimized",
189
+ * },
184
190
  * },
185
191
  * },
186
192
  * externalSourcesConfiguration: { // ExternalSourcesRetrieveAndGenerateConfiguration
@@ -219,6 +225,9 @@ declare const RetrieveAndGenerateCommand_base: {
219
225
  * additionalModelRequestFields: {
220
226
  * "<keys>": "DOCUMENT_VALUE",
221
227
  * },
228
+ * performanceConfig: {
229
+ * latency: "standard" || "optimized",
230
+ * },
222
231
  * },
223
232
  * },
224
233
  * },
@@ -163,6 +163,9 @@ declare const RetrieveAndGenerateStreamCommand_base: {
163
163
  * additionalModelRequestFields: {
164
164
  * "<keys>": "DOCUMENT_VALUE",
165
165
  * },
166
+ * performanceConfig: { // PerformanceConfiguration
167
+ * latency: "standard" || "optimized",
168
+ * },
166
169
  * },
167
170
  * orchestrationConfiguration: { // OrchestrationConfiguration
168
171
  * promptTemplate: {
@@ -184,6 +187,9 @@ declare const RetrieveAndGenerateStreamCommand_base: {
184
187
  * queryTransformationConfiguration: { // QueryTransformationConfiguration
185
188
  * type: "QUERY_DECOMPOSITION", // required
186
189
  * },
190
+ * performanceConfig: {
191
+ * latency: "standard" || "optimized",
192
+ * },
187
193
  * },
188
194
  * },
189
195
  * externalSourcesConfiguration: { // ExternalSourcesRetrieveAndGenerateConfiguration
@@ -222,6 +228,9 @@ declare const RetrieveAndGenerateStreamCommand_base: {
222
228
  * additionalModelRequestFields: {
223
229
  * "<keys>": "DOCUMENT_VALUE",
224
230
  * },
231
+ * performanceConfig: {
232
+ * latency: "standard" || "optimized",
233
+ * },
225
234
  * },
226
235
  * },
227
236
  * },
@@ -425,7 +425,7 @@ export interface AgentActionGroup {
425
425
  * <p>To allow your agent to generate, run, and troubleshoot code when trying to complete a task, set this field to <code>AMAZON.CodeInterpreter</code>. You must
426
426
  * leave the <code>description</code>, <code>apiSchema</code>, and <code>actionGroupExecutor</code> fields blank for this action group.</p>
427
427
  * <p>During orchestration, if your agent determines that it needs to invoke an API in an action group, but doesn't have enough information to complete the API request,
428
- * it will invoke this action group instead and return an <a href="https://docs.aws.amazon.com/https:/docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Observation.html">Observation</a> reprompting the user for more information.</p>
428
+ * it will invoke this action group instead and return an <a href="https://docs.aws.amazon.com/bedrock/latest/APIReference/API_agent-runtime_Observation.html">Observation</a> reprompting the user for more information.</p>
429
429
  * @public
430
430
  */
431
431
  parentActionGroupSignature?: ActionGroupSignature | undefined;
@@ -528,20 +528,20 @@ export interface ApiResult {
528
528
  */
529
529
  confirmationState?: ConfirmationState | undefined;
530
530
  /**
531
- * <p>The response body from the API operation. The key of the object is the content type (currently, only <code>TEXT</code> is supported). The response may be returned directly or from the Lambda function.</p>
531
+ * <p>Controls the final response state returned to end user when API/Function execution failed. When this state is FAILURE, the request would fail with dependency failure exception. When this state is REPROMPT, the API/function response will be sent to model for re-prompt</p>
532
532
  * @public
533
533
  */
534
- responseBody?: Record<string, ContentBody> | undefined;
534
+ responseState?: ResponseState | undefined;
535
535
  /**
536
536
  * <p>http status code from API execution response (for example: 200, 400, 500).</p>
537
537
  * @public
538
538
  */
539
539
  httpStatusCode?: number | undefined;
540
540
  /**
541
- * <p>Controls the final response state returned to end user when API/Function execution failed. When this state is FAILURE, the request would fail with dependency failure exception. When this state is REPROMPT, the API/function response will be sent to model for re-prompt</p>
541
+ * <p>The response body from the API operation. The key of the object is the content type (currently, only <code>TEXT</code> is supported). The response may be returned directly or from the Lambda function.</p>
542
542
  * @public
543
543
  */
544
- responseState?: ResponseState | undefined;
544
+ responseBody?: Record<string, ContentBody> | undefined;
545
545
  /**
546
546
  * <p>The agent's ID.</p>
547
547
  * @public
@@ -1118,6 +1118,40 @@ export interface FlowInput {
1118
1118
  */
1119
1119
  content: FlowInputContent | undefined;
1120
1120
  }
1121
+ /**
1122
+ * @public
1123
+ * @enum
1124
+ */
1125
+ export declare const PerformanceConfigLatency: {
1126
+ readonly OPTIMIZED: "optimized";
1127
+ readonly STANDARD: "standard";
1128
+ };
1129
+ /**
1130
+ * @public
1131
+ */
1132
+ export type PerformanceConfigLatency = (typeof PerformanceConfigLatency)[keyof typeof PerformanceConfigLatency];
1133
+ /**
1134
+ * <p>Performance settings for a model.</p>
1135
+ * @public
1136
+ */
1137
+ export interface PerformanceConfiguration {
1138
+ /**
1139
+ * <p>To use a latency-optimized version of the model, set to <code>optimized</code>.</p>
1140
+ * @public
1141
+ */
1142
+ latency?: PerformanceConfigLatency | undefined;
1143
+ }
1144
+ /**
1145
+ * <p>The performance configuration for a model called with <a>InvokeFlow</a>.</p>
1146
+ * @public
1147
+ */
1148
+ export interface ModelPerformanceConfiguration {
1149
+ /**
1150
+ * <p>The latency configuration for the model.</p>
1151
+ * @public
1152
+ */
1153
+ performanceConfig?: PerformanceConfiguration | undefined;
1154
+ }
1121
1155
  /**
1122
1156
  * @public
1123
1157
  */
@@ -1142,6 +1176,11 @@ export interface InvokeFlowRequest {
1142
1176
  * @public
1143
1177
  */
1144
1178
  enableTrace?: boolean | undefined;
1179
+ /**
1180
+ * <p>Model performance settings for the request.</p>
1181
+ * @public
1182
+ */
1183
+ modelPerformanceConfiguration?: ModelPerformanceConfiguration | undefined;
1145
1184
  }
1146
1185
  /**
1147
1186
  * @public
@@ -1940,6 +1979,17 @@ export interface GenerateQueryResponse {
1940
1979
  */
1941
1980
  queries?: GeneratedQuery[] | undefined;
1942
1981
  }
1982
+ /**
1983
+ * <p>Settings for a model called with <a>InvokeAgent</a>.</p>
1984
+ * @public
1985
+ */
1986
+ export interface BedrockModelConfigurations {
1987
+ /**
1988
+ * <p>The performance configuration for the model.</p>
1989
+ * @public
1990
+ */
1991
+ performanceConfig?: PerformanceConfiguration | undefined;
1992
+ }
1943
1993
  /**
1944
1994
  * <p>A content block.</p>
1945
1995
  * @public
@@ -2336,8 +2386,7 @@ export interface VectorSearchRerankingConfiguration {
2336
2386
  }
2337
2387
  /**
2338
2388
  * <p>
2339
- * Configurations for streaming.
2340
- * </p>
2389
+ * Configurations for streaming.</p>
2341
2390
  * @public
2342
2391
  */
2343
2392
  export interface StreamingConfigurations {
@@ -2828,6 +2877,23 @@ export interface FilePart {
2828
2877
  */
2829
2878
  files?: OutputFile[] | undefined;
2830
2879
  }
2880
+ /**
2881
+ * <p>
2882
+ * The model specified in the request is not ready to serve inference requests. The AWS SDK
2883
+ * will automatically retry the operation up to 5 times. For information about configuring
2884
+ * automatic retries, see <a href="https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html">Retry behavior</a> in the <i>AWS SDKs and Tools</i>
2885
+ * reference guide.
2886
+ * </p>
2887
+ * @public
2888
+ */
2889
+ export declare class ModelNotReadyException extends __BaseException {
2890
+ readonly name: "ModelNotReadyException";
2891
+ readonly $fault: "client";
2892
+ /**
2893
+ * @internal
2894
+ */
2895
+ constructor(opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>);
2896
+ }
2831
2897
  /**
2832
2898
  * <p>Details about a caller.</p>
2833
2899
  * @public
@@ -4293,7 +4359,7 @@ export interface TracePart {
4293
4359
  * <p>The response from invoking the agent and associated citations and trace information.</p>
4294
4360
  * @public
4295
4361
  */
4296
- export type ResponseStream = ResponseStream.AccessDeniedExceptionMember | ResponseStream.BadGatewayExceptionMember | ResponseStream.ChunkMember | ResponseStream.ConflictExceptionMember | ResponseStream.DependencyFailedExceptionMember | ResponseStream.FilesMember | ResponseStream.InternalServerExceptionMember | ResponseStream.ResourceNotFoundExceptionMember | ResponseStream.ReturnControlMember | ResponseStream.ServiceQuotaExceededExceptionMember | ResponseStream.ThrottlingExceptionMember | ResponseStream.TraceMember | ResponseStream.ValidationExceptionMember | ResponseStream.$UnknownMember;
4362
+ export type ResponseStream = ResponseStream.AccessDeniedExceptionMember | ResponseStream.BadGatewayExceptionMember | ResponseStream.ChunkMember | ResponseStream.ConflictExceptionMember | ResponseStream.DependencyFailedExceptionMember | ResponseStream.FilesMember | ResponseStream.InternalServerExceptionMember | ResponseStream.ModelNotReadyExceptionMember | ResponseStream.ResourceNotFoundExceptionMember | ResponseStream.ReturnControlMember | ResponseStream.ServiceQuotaExceededExceptionMember | ResponseStream.ThrottlingExceptionMember | ResponseStream.TraceMember | ResponseStream.ValidationExceptionMember | ResponseStream.$UnknownMember;
4297
4363
  /**
4298
4364
  * @public
4299
4365
  */
@@ -4315,6 +4381,7 @@ export declare namespace ResponseStream {
4315
4381
  conflictException?: never;
4316
4382
  dependencyFailedException?: never;
4317
4383
  badGatewayException?: never;
4384
+ modelNotReadyException?: never;
4318
4385
  files?: never;
4319
4386
  $unknown?: never;
4320
4387
  }
@@ -4335,6 +4402,7 @@ export declare namespace ResponseStream {
4335
4402
  conflictException?: never;
4336
4403
  dependencyFailedException?: never;
4337
4404
  badGatewayException?: never;
4405
+ modelNotReadyException?: never;
4338
4406
  files?: never;
4339
4407
  $unknown?: never;
4340
4408
  }
@@ -4355,6 +4423,7 @@ export declare namespace ResponseStream {
4355
4423
  conflictException?: never;
4356
4424
  dependencyFailedException?: never;
4357
4425
  badGatewayException?: never;
4426
+ modelNotReadyException?: never;
4358
4427
  files?: never;
4359
4428
  $unknown?: never;
4360
4429
  }
@@ -4375,6 +4444,7 @@ export declare namespace ResponseStream {
4375
4444
  conflictException?: never;
4376
4445
  dependencyFailedException?: never;
4377
4446
  badGatewayException?: never;
4447
+ modelNotReadyException?: never;
4378
4448
  files?: never;
4379
4449
  $unknown?: never;
4380
4450
  }
@@ -4395,6 +4465,7 @@ export declare namespace ResponseStream {
4395
4465
  conflictException?: never;
4396
4466
  dependencyFailedException?: never;
4397
4467
  badGatewayException?: never;
4468
+ modelNotReadyException?: never;
4398
4469
  files?: never;
4399
4470
  $unknown?: never;
4400
4471
  }
@@ -4415,6 +4486,7 @@ export declare namespace ResponseStream {
4415
4486
  conflictException?: never;
4416
4487
  dependencyFailedException?: never;
4417
4488
  badGatewayException?: never;
4489
+ modelNotReadyException?: never;
4418
4490
  files?: never;
4419
4491
  $unknown?: never;
4420
4492
  }
@@ -4435,6 +4507,7 @@ export declare namespace ResponseStream {
4435
4507
  conflictException?: never;
4436
4508
  dependencyFailedException?: never;
4437
4509
  badGatewayException?: never;
4510
+ modelNotReadyException?: never;
4438
4511
  files?: never;
4439
4512
  $unknown?: never;
4440
4513
  }
@@ -4455,6 +4528,7 @@ export declare namespace ResponseStream {
4455
4528
  conflictException?: never;
4456
4529
  dependencyFailedException?: never;
4457
4530
  badGatewayException?: never;
4531
+ modelNotReadyException?: never;
4458
4532
  files?: never;
4459
4533
  $unknown?: never;
4460
4534
  }
@@ -4475,6 +4549,7 @@ export declare namespace ResponseStream {
4475
4549
  conflictException?: never;
4476
4550
  dependencyFailedException?: never;
4477
4551
  badGatewayException?: never;
4552
+ modelNotReadyException?: never;
4478
4553
  files?: never;
4479
4554
  $unknown?: never;
4480
4555
  }
@@ -4495,6 +4570,7 @@ export declare namespace ResponseStream {
4495
4570
  conflictException: ConflictException;
4496
4571
  dependencyFailedException?: never;
4497
4572
  badGatewayException?: never;
4573
+ modelNotReadyException?: never;
4498
4574
  files?: never;
4499
4575
  $unknown?: never;
4500
4576
  }
@@ -4515,6 +4591,7 @@ export declare namespace ResponseStream {
4515
4591
  conflictException?: never;
4516
4592
  dependencyFailedException: DependencyFailedException;
4517
4593
  badGatewayException?: never;
4594
+ modelNotReadyException?: never;
4518
4595
  files?: never;
4519
4596
  $unknown?: never;
4520
4597
  }
@@ -4535,6 +4612,33 @@ export declare namespace ResponseStream {
4535
4612
  conflictException?: never;
4536
4613
  dependencyFailedException?: never;
4537
4614
  badGatewayException: BadGatewayException;
4615
+ modelNotReadyException?: never;
4616
+ files?: never;
4617
+ $unknown?: never;
4618
+ }
4619
+ /**
4620
+ * <p>
4621
+ * The model specified in the request is not ready to serve Inference requests. The AWS SDK
4622
+ * will automatically retry the operation up to 5 times. For information about configuring
4623
+ * automatic retries, see <a href="https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html">Retry behavior</a> in the <i>AWS SDKs and Tools</i>
4624
+ * reference guide.
4625
+ * </p>
4626
+ * @public
4627
+ */
4628
+ interface ModelNotReadyExceptionMember {
4629
+ chunk?: never;
4630
+ trace?: never;
4631
+ returnControl?: never;
4632
+ internalServerException?: never;
4633
+ validationException?: never;
4634
+ resourceNotFoundException?: never;
4635
+ serviceQuotaExceededException?: never;
4636
+ throttlingException?: never;
4637
+ accessDeniedException?: never;
4638
+ conflictException?: never;
4639
+ dependencyFailedException?: never;
4640
+ badGatewayException?: never;
4641
+ modelNotReadyException: ModelNotReadyException;
4538
4642
  files?: never;
4539
4643
  $unknown?: never;
4540
4644
  }
@@ -4555,6 +4659,7 @@ export declare namespace ResponseStream {
4555
4659
  conflictException?: never;
4556
4660
  dependencyFailedException?: never;
4557
4661
  badGatewayException?: never;
4662
+ modelNotReadyException?: never;
4558
4663
  files: FilePart;
4559
4664
  $unknown?: never;
4560
4665
  }
@@ -4574,6 +4679,7 @@ export declare namespace ResponseStream {
4574
4679
  conflictException?: never;
4575
4680
  dependencyFailedException?: never;
4576
4681
  badGatewayException?: never;
4682
+ modelNotReadyException?: never;
4577
4683
  files?: never;
4578
4684
  $unknown: [string, any];
4579
4685
  }
@@ -4590,6 +4696,7 @@ export declare namespace ResponseStream {
4590
4696
  conflictException: (value: ConflictException) => T;
4591
4697
  dependencyFailedException: (value: DependencyFailedException) => T;
4592
4698
  badGatewayException: (value: BadGatewayException) => T;
4699
+ modelNotReadyException: (value: ModelNotReadyException) => T;
4593
4700
  files: (value: FilePart) => T;
4594
4701
  _: (name: string, value: any) => T;
4595
4702
  }
@@ -4620,6 +4727,17 @@ export interface InvokeAgentResponse {
4620
4727
  */
4621
4728
  memoryId?: string | undefined;
4622
4729
  }
4730
+ /**
4731
+ * <p>Settings for a model called with <a>InvokeInlineAgent</a>.</p>
4732
+ * @public
4733
+ */
4734
+ export interface InlineBedrockModelConfigurations {
4735
+ /**
4736
+ * <p>The latency configuration for the model.</p>
4737
+ * @public
4738
+ */
4739
+ performanceConfig?: PerformanceConfiguration | undefined;
4740
+ }
4623
4741
  /**
4624
4742
  * <p>
4625
4743
  * The configuration details for the guardrail.
@@ -5205,6 +5323,11 @@ export interface DeleteAgentMemoryRequest {
5205
5323
  * @public
5206
5324
  */
5207
5325
  memoryId?: string | undefined;
5326
+ /**
5327
+ * <p>The unique session identifier of the memory.</p>
5328
+ * @public
5329
+ */
5330
+ sessionId?: string | undefined;
5208
5331
  }
5209
5332
  /**
5210
5333
  * @public
@@ -5969,6 +6092,11 @@ export interface ExternalSourcesGenerationConfiguration {
5969
6092
  * @public
5970
6093
  */
5971
6094
  additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
6095
+ /**
6096
+ * <p>The latency configuration for the model.</p>
6097
+ * @public
6098
+ */
6099
+ performanceConfig?: PerformanceConfiguration | undefined;
5972
6100
  }
5973
6101
  /**
5974
6102
  * <p>This property contains the document to chat with, along with its attributes.</p>
@@ -6089,6 +6217,11 @@ export interface GenerationConfiguration {
6089
6217
  * @public
6090
6218
  */
6091
6219
  additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
6220
+ /**
6221
+ * <p>The latency configuration for the model.</p>
6222
+ * @public
6223
+ */
6224
+ performanceConfig?: PerformanceConfiguration | undefined;
6092
6225
  }
6093
6226
  /**
6094
6227
  * @public
@@ -6139,6 +6272,11 @@ export interface OrchestrationConfiguration {
6139
6272
  * @public
6140
6273
  */
6141
6274
  queryTransformationConfiguration?: QueryTransformationConfiguration | undefined;
6275
+ /**
6276
+ * <p>The latency configuration for the model.</p>
6277
+ * @public
6278
+ */
6279
+ performanceConfig?: PerformanceConfiguration | undefined;
6142
6280
  }
6143
6281
  /**
6144
6282
  * @public
@@ -7305,6 +7443,11 @@ export interface InvokeInlineAgentRequest {
7305
7443
  * @public
7306
7444
  */
7307
7445
  promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
7446
+ /**
7447
+ * <p>Model settings for the request.</p>
7448
+ * @public
7449
+ */
7450
+ bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined;
7308
7451
  }
7309
7452
  /**
7310
7453
  * @public
@@ -7450,10 +7593,18 @@ export interface InvokeAgentRequest {
7450
7593
  * @public
7451
7594
  */
7452
7595
  memoryId?: string | undefined;
7596
+ /**
7597
+ * <p>Model performance settings for the request.</p>
7598
+ * @public
7599
+ */
7600
+ bedrockModelConfigurations?: BedrockModelConfigurations | undefined;
7453
7601
  /**
7454
7602
  * <p>
7455
7603
  * Specifies the configurations for streaming.
7456
7604
  * </p>
7605
+ * <note>
7606
+ * <p>To use agent streaming, you need permissions to perform the <code>bedrock:InvokeModelWithResponseStream</code> action.</p>
7607
+ * </note>
7457
7608
  * @public
7458
7609
  */
7459
7610
  streamingConfigurations?: StreamingConfigurations | undefined;
@@ -180,9 +180,9 @@ export interface ApiResult {
180
180
  httpMethod?: string | undefined;
181
181
  apiPath?: string | undefined;
182
182
  confirmationState?: ConfirmationState | undefined;
183
- responseBody?: Record<string, ContentBody> | undefined;
184
- httpStatusCode?: number | undefined;
185
183
  responseState?: ResponseState | undefined;
184
+ httpStatusCode?: number | undefined;
185
+ responseBody?: Record<string, ContentBody> | undefined;
186
186
  agentId?: string | undefined;
187
187
  }
188
188
  export interface FunctionResult {
@@ -365,11 +365,24 @@ export interface FlowInput {
365
365
  nodeOutputName: string | undefined;
366
366
  content: FlowInputContent | undefined;
367
367
  }
368
+ export declare const PerformanceConfigLatency: {
369
+ readonly OPTIMIZED: "optimized";
370
+ readonly STANDARD: "standard";
371
+ };
372
+ export type PerformanceConfigLatency =
373
+ (typeof PerformanceConfigLatency)[keyof typeof PerformanceConfigLatency];
374
+ export interface PerformanceConfiguration {
375
+ latency?: PerformanceConfigLatency | undefined;
376
+ }
377
+ export interface ModelPerformanceConfiguration {
378
+ performanceConfig?: PerformanceConfiguration | undefined;
379
+ }
368
380
  export interface InvokeFlowRequest {
369
381
  flowIdentifier: string | undefined;
370
382
  flowAliasIdentifier: string | undefined;
371
383
  inputs: FlowInput[] | undefined;
372
384
  enableTrace?: boolean | undefined;
385
+ modelPerformanceConfiguration?: ModelPerformanceConfiguration | undefined;
373
386
  }
374
387
  export declare const FlowCompletionReason: {
375
388
  readonly SUCCESS: "SUCCESS";
@@ -819,6 +832,9 @@ export interface GeneratedQuery {
819
832
  export interface GenerateQueryResponse {
820
833
  queries?: GeneratedQuery[] | undefined;
821
834
  }
835
+ export interface BedrockModelConfigurations {
836
+ performanceConfig?: PerformanceConfiguration | undefined;
837
+ }
822
838
  export type ContentBlock =
823
839
  | ContentBlock.TextMember
824
840
  | ContentBlock.$UnknownMember;
@@ -1084,6 +1100,13 @@ export interface OutputFile {
1084
1100
  export interface FilePart {
1085
1101
  files?: OutputFile[] | undefined;
1086
1102
  }
1103
+ export declare class ModelNotReadyException extends __BaseException {
1104
+ readonly name: "ModelNotReadyException";
1105
+ readonly $fault: "client";
1106
+ constructor(
1107
+ opts: __ExceptionOptionType<ModelNotReadyException, __BaseException>
1108
+ );
1109
+ }
1087
1110
  export type Caller = Caller.AgentAliasArnMember | Caller.$UnknownMember;
1088
1111
  export declare namespace Caller {
1089
1112
  interface AgentAliasArnMember {
@@ -1692,6 +1715,7 @@ export type ResponseStream =
1692
1715
  | ResponseStream.DependencyFailedExceptionMember
1693
1716
  | ResponseStream.FilesMember
1694
1717
  | ResponseStream.InternalServerExceptionMember
1718
+ | ResponseStream.ModelNotReadyExceptionMember
1695
1719
  | ResponseStream.ResourceNotFoundExceptionMember
1696
1720
  | ResponseStream.ReturnControlMember
1697
1721
  | ResponseStream.ServiceQuotaExceededExceptionMember
@@ -1713,6 +1737,7 @@ export declare namespace ResponseStream {
1713
1737
  conflictException?: never;
1714
1738
  dependencyFailedException?: never;
1715
1739
  badGatewayException?: never;
1740
+ modelNotReadyException?: never;
1716
1741
  files?: never;
1717
1742
  $unknown?: never;
1718
1743
  }
@@ -1729,6 +1754,7 @@ export declare namespace ResponseStream {
1729
1754
  conflictException?: never;
1730
1755
  dependencyFailedException?: never;
1731
1756
  badGatewayException?: never;
1757
+ modelNotReadyException?: never;
1732
1758
  files?: never;
1733
1759
  $unknown?: never;
1734
1760
  }
@@ -1745,6 +1771,7 @@ export declare namespace ResponseStream {
1745
1771
  conflictException?: never;
1746
1772
  dependencyFailedException?: never;
1747
1773
  badGatewayException?: never;
1774
+ modelNotReadyException?: never;
1748
1775
  files?: never;
1749
1776
  $unknown?: never;
1750
1777
  }
@@ -1761,6 +1788,7 @@ export declare namespace ResponseStream {
1761
1788
  conflictException?: never;
1762
1789
  dependencyFailedException?: never;
1763
1790
  badGatewayException?: never;
1791
+ modelNotReadyException?: never;
1764
1792
  files?: never;
1765
1793
  $unknown?: never;
1766
1794
  }
@@ -1777,6 +1805,7 @@ export declare namespace ResponseStream {
1777
1805
  conflictException?: never;
1778
1806
  dependencyFailedException?: never;
1779
1807
  badGatewayException?: never;
1808
+ modelNotReadyException?: never;
1780
1809
  files?: never;
1781
1810
  $unknown?: never;
1782
1811
  }
@@ -1793,6 +1822,7 @@ export declare namespace ResponseStream {
1793
1822
  conflictException?: never;
1794
1823
  dependencyFailedException?: never;
1795
1824
  badGatewayException?: never;
1825
+ modelNotReadyException?: never;
1796
1826
  files?: never;
1797
1827
  $unknown?: never;
1798
1828
  }
@@ -1809,6 +1839,7 @@ export declare namespace ResponseStream {
1809
1839
  conflictException?: never;
1810
1840
  dependencyFailedException?: never;
1811
1841
  badGatewayException?: never;
1842
+ modelNotReadyException?: never;
1812
1843
  files?: never;
1813
1844
  $unknown?: never;
1814
1845
  }
@@ -1825,6 +1856,7 @@ export declare namespace ResponseStream {
1825
1856
  conflictException?: never;
1826
1857
  dependencyFailedException?: never;
1827
1858
  badGatewayException?: never;
1859
+ modelNotReadyException?: never;
1828
1860
  files?: never;
1829
1861
  $unknown?: never;
1830
1862
  }
@@ -1841,6 +1873,7 @@ export declare namespace ResponseStream {
1841
1873
  conflictException?: never;
1842
1874
  dependencyFailedException?: never;
1843
1875
  badGatewayException?: never;
1876
+ modelNotReadyException?: never;
1844
1877
  files?: never;
1845
1878
  $unknown?: never;
1846
1879
  }
@@ -1857,6 +1890,7 @@ export declare namespace ResponseStream {
1857
1890
  conflictException: ConflictException;
1858
1891
  dependencyFailedException?: never;
1859
1892
  badGatewayException?: never;
1893
+ modelNotReadyException?: never;
1860
1894
  files?: never;
1861
1895
  $unknown?: never;
1862
1896
  }
@@ -1873,6 +1907,7 @@ export declare namespace ResponseStream {
1873
1907
  conflictException?: never;
1874
1908
  dependencyFailedException: DependencyFailedException;
1875
1909
  badGatewayException?: never;
1910
+ modelNotReadyException?: never;
1876
1911
  files?: never;
1877
1912
  $unknown?: never;
1878
1913
  }
@@ -1889,6 +1924,24 @@ export declare namespace ResponseStream {
1889
1924
  conflictException?: never;
1890
1925
  dependencyFailedException?: never;
1891
1926
  badGatewayException: BadGatewayException;
1927
+ modelNotReadyException?: never;
1928
+ files?: never;
1929
+ $unknown?: never;
1930
+ }
1931
+ interface ModelNotReadyExceptionMember {
1932
+ chunk?: never;
1933
+ trace?: never;
1934
+ returnControl?: never;
1935
+ internalServerException?: never;
1936
+ validationException?: never;
1937
+ resourceNotFoundException?: never;
1938
+ serviceQuotaExceededException?: never;
1939
+ throttlingException?: never;
1940
+ accessDeniedException?: never;
1941
+ conflictException?: never;
1942
+ dependencyFailedException?: never;
1943
+ badGatewayException?: never;
1944
+ modelNotReadyException: ModelNotReadyException;
1892
1945
  files?: never;
1893
1946
  $unknown?: never;
1894
1947
  }
@@ -1905,6 +1958,7 @@ export declare namespace ResponseStream {
1905
1958
  conflictException?: never;
1906
1959
  dependencyFailedException?: never;
1907
1960
  badGatewayException?: never;
1961
+ modelNotReadyException?: never;
1908
1962
  files: FilePart;
1909
1963
  $unknown?: never;
1910
1964
  }
@@ -1921,6 +1975,7 @@ export declare namespace ResponseStream {
1921
1975
  conflictException?: never;
1922
1976
  dependencyFailedException?: never;
1923
1977
  badGatewayException?: never;
1978
+ modelNotReadyException?: never;
1924
1979
  files?: never;
1925
1980
  $unknown: [string, any];
1926
1981
  }
@@ -1937,6 +1992,7 @@ export declare namespace ResponseStream {
1937
1992
  conflictException: (value: ConflictException) => T;
1938
1993
  dependencyFailedException: (value: DependencyFailedException) => T;
1939
1994
  badGatewayException: (value: BadGatewayException) => T;
1995
+ modelNotReadyException: (value: ModelNotReadyException) => T;
1940
1996
  files: (value: FilePart) => T;
1941
1997
  _: (name: string, value: any) => T;
1942
1998
  }
@@ -1948,6 +2004,9 @@ export interface InvokeAgentResponse {
1948
2004
  sessionId: string | undefined;
1949
2005
  memoryId?: string | undefined;
1950
2006
  }
2007
+ export interface InlineBedrockModelConfigurations {
2008
+ performanceConfig?: PerformanceConfiguration | undefined;
2009
+ }
1951
2010
  export interface GuardrailConfigurationWithArn {
1952
2011
  guardrailIdentifier: string | undefined;
1953
2012
  guardrailVersion: string | undefined;
@@ -2258,6 +2317,7 @@ export interface DeleteAgentMemoryRequest {
2258
2317
  agentId: string | undefined;
2259
2318
  agentAliasId: string | undefined;
2260
2319
  memoryId?: string | undefined;
2320
+ sessionId?: string | undefined;
2261
2321
  }
2262
2322
  export interface DeleteAgentMemoryResponse {}
2263
2323
  export declare const MemoryType: {
@@ -2562,6 +2622,7 @@ export interface ExternalSourcesGenerationConfiguration {
2562
2622
  guardrailConfiguration?: GuardrailConfiguration | undefined;
2563
2623
  inferenceConfig?: InferenceConfig | undefined;
2564
2624
  additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
2625
+ performanceConfig?: PerformanceConfiguration | undefined;
2565
2626
  }
2566
2627
  export interface ByteContentDoc {
2567
2628
  identifier: string | undefined;
@@ -2592,6 +2653,7 @@ export interface GenerationConfiguration {
2592
2653
  guardrailConfiguration?: GuardrailConfiguration | undefined;
2593
2654
  inferenceConfig?: InferenceConfig | undefined;
2594
2655
  additionalModelRequestFields?: Record<string, __DocumentType> | undefined;
2656
+ performanceConfig?: PerformanceConfiguration | undefined;
2595
2657
  }
2596
2658
  export declare const QueryTransformationType: {
2597
2659
  readonly QUERY_DECOMPOSITION: "QUERY_DECOMPOSITION";
@@ -2608,6 +2670,7 @@ export interface OrchestrationConfiguration {
2608
2670
  queryTransformationConfiguration?:
2609
2671
  | QueryTransformationConfiguration
2610
2672
  | undefined;
2673
+ performanceConfig?: PerformanceConfiguration | undefined;
2611
2674
  }
2612
2675
  export declare const RetrieveAndGenerateType: {
2613
2676
  readonly EXTERNAL_SOURCES: "EXTERNAL_SOURCES";
@@ -3204,6 +3267,7 @@ export interface InvokeInlineAgentRequest {
3204
3267
  knowledgeBases?: KnowledgeBase[] | undefined;
3205
3268
  guardrailConfiguration?: GuardrailConfigurationWithArn | undefined;
3206
3269
  promptOverrideConfiguration?: PromptOverrideConfiguration | undefined;
3270
+ bedrockModelConfigurations?: InlineBedrockModelConfigurations | undefined;
3207
3271
  }
3208
3272
  export interface RetrieveAndGenerateRequest {
3209
3273
  sessionId?: string | undefined;
@@ -3239,6 +3303,7 @@ export interface InvokeAgentRequest {
3239
3303
  enableTrace?: boolean | undefined;
3240
3304
  inputText?: string | undefined;
3241
3305
  memoryId?: string | undefined;
3306
+ bedrockModelConfigurations?: BedrockModelConfigurations | undefined;
3242
3307
  streamingConfigurations?: StreamingConfigurations | undefined;
3243
3308
  sourceArn?: string | undefined;
3244
3309
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-bedrock-agent-runtime",
3
3
  "description": "AWS SDK for JavaScript Bedrock Agent Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.716.0",
4
+ "version": "3.717.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-bedrock-agent-runtime",