@aws-sdk/client-bedrock-agent-runtime 3.774.0 → 3.777.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 (39) hide show
  1. package/dist-cjs/auth/httpAuthSchemeProvider.js +1 -3
  2. package/dist-cjs/index.js +38 -18
  3. package/dist-es/BedrockAgentRuntimeClient.js +2 -1
  4. package/dist-es/auth/httpAuthSchemeProvider.js +1 -3
  5. package/dist-es/endpoint/EndpointParameters.js +2 -3
  6. package/dist-es/models/models_0.js +7 -0
  7. package/dist-es/protocols/Aws_restJson1.js +14 -0
  8. package/dist-es/runtimeExtensions.js +2 -14
  9. package/dist-types/commands/CreateInvocationCommand.d.ts +1 -0
  10. package/dist-types/commands/CreateSessionCommand.d.ts +1 -0
  11. package/dist-types/commands/DeleteAgentMemoryCommand.d.ts +1 -0
  12. package/dist-types/commands/DeleteSessionCommand.d.ts +1 -0
  13. package/dist-types/commands/EndSessionCommand.d.ts +1 -0
  14. package/dist-types/commands/GenerateQueryCommand.d.ts +1 -0
  15. package/dist-types/commands/GetAgentMemoryCommand.d.ts +1 -0
  16. package/dist-types/commands/GetInvocationStepCommand.d.ts +1 -0
  17. package/dist-types/commands/GetSessionCommand.d.ts +1 -0
  18. package/dist-types/commands/InvokeAgentCommand.d.ts +1 -19
  19. package/dist-types/commands/InvokeFlowCommand.d.ts +8 -0
  20. package/dist-types/commands/InvokeInlineAgentCommand.d.ts +1 -0
  21. package/dist-types/commands/ListInvocationStepsCommand.d.ts +1 -0
  22. package/dist-types/commands/ListInvocationsCommand.d.ts +1 -0
  23. package/dist-types/commands/ListSessionsCommand.d.ts +1 -0
  24. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -0
  25. package/dist-types/commands/OptimizePromptCommand.d.ts +1 -0
  26. package/dist-types/commands/PutInvocationStepCommand.d.ts +1 -0
  27. package/dist-types/commands/RerankCommand.d.ts +1 -0
  28. package/dist-types/commands/RetrieveAndGenerateCommand.d.ts +1 -0
  29. package/dist-types/commands/RetrieveAndGenerateStreamCommand.d.ts +1 -0
  30. package/dist-types/commands/RetrieveCommand.d.ts +1 -0
  31. package/dist-types/commands/TagResourceCommand.d.ts +1 -0
  32. package/dist-types/commands/UntagResourceCommand.d.ts +1 -0
  33. package/dist-types/commands/UpdateSessionCommand.d.ts +3 -1
  34. package/dist-types/models/models_0.d.ts +73 -36
  35. package/dist-types/models/models_1.d.ts +31 -1
  36. package/dist-types/ts3.4/commands/UpdateSessionCommand.d.ts +2 -4
  37. package/dist-types/ts3.4/models/models_0.d.ts +23 -7
  38. package/dist-types/ts3.4/models/models_1.d.ts +8 -0
  39. package/package.json +36 -36
@@ -40,8 +40,6 @@ const defaultBedrockAgentRuntimeHttpAuthSchemeProvider = (authParameters) => {
40
40
  exports.defaultBedrockAgentRuntimeHttpAuthSchemeProvider = defaultBedrockAgentRuntimeHttpAuthSchemeProvider;
41
41
  const resolveHttpAuthSchemeConfig = (config) => {
42
42
  const config_0 = (0, core_1.resolveAwsSdkSigV4Config)(config);
43
- return {
44
- ...config_0,
45
- };
43
+ return Object.assign(config_0, {});
46
44
  };
47
45
  exports.resolveHttpAuthSchemeConfig = resolveHttpAuthSchemeConfig;
package/dist-cjs/index.js CHANGED
@@ -96,6 +96,7 @@ __export(index_exports, {
96
96
  FlowTraceConditionNodeResultEventFilterSensitiveLog: () => FlowTraceConditionNodeResultEventFilterSensitiveLog,
97
97
  FlowTraceEventFilterSensitiveLog: () => FlowTraceEventFilterSensitiveLog,
98
98
  FlowTraceFilterSensitiveLog: () => FlowTraceFilterSensitiveLog,
99
+ FlowTraceNodeActionEventFilterSensitiveLog: () => FlowTraceNodeActionEventFilterSensitiveLog,
99
100
  FlowTraceNodeInputContent: () => FlowTraceNodeInputContent,
100
101
  FlowTraceNodeInputContentFilterSensitiveLog: () => FlowTraceNodeInputContentFilterSensitiveLog,
101
102
  FlowTraceNodeInputEventFilterSensitiveLog: () => FlowTraceNodeInputEventFilterSensitiveLog,
@@ -338,12 +339,11 @@ var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
338
339
 
339
340
  // src/endpoint/EndpointParameters.ts
340
341
  var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
341
- return {
342
- ...options,
342
+ return Object.assign(options, {
343
343
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
344
344
  useFipsEndpoint: options.useFipsEndpoint ?? false,
345
345
  defaultSigningName: "bedrock"
346
- };
346
+ });
347
347
  }, "resolveClientEndpointParameters");
348
348
  var commonParams = {
349
349
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -400,22 +400,21 @@ var resolveHttpAuthRuntimeConfig = /* @__PURE__ */ __name((config) => {
400
400
  }, "resolveHttpAuthRuntimeConfig");
401
401
 
402
402
  // src/runtimeExtensions.ts
403
- var asPartial = /* @__PURE__ */ __name((t) => t, "asPartial");
404
403
  var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
405
- const extensionConfiguration = {
406
- ...asPartial((0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig)),
407
- ...asPartial((0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig)),
408
- ...asPartial((0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
409
- ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig))
410
- };
404
+ const extensionConfiguration = Object.assign(
405
+ (0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
406
+ (0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
407
+ (0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
408
+ getHttpAuthExtensionConfiguration(runtimeConfig)
409
+ );
411
410
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
412
- return {
413
- ...runtimeConfig,
414
- ...(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
415
- ...(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
416
- ...(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
417
- ...resolveHttpAuthRuntimeConfig(extensionConfiguration)
418
- };
411
+ return Object.assign(
412
+ runtimeConfig,
413
+ (0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
414
+ (0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
415
+ (0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
416
+ resolveHttpAuthRuntimeConfig(extensionConfiguration)
417
+ );
419
418
  }, "resolveRuntimeExtensions");
420
419
 
421
420
  // src/BedrockAgentRuntimeClient.ts
@@ -429,6 +428,8 @@ var BedrockAgentRuntimeClient = class extends import_smithy_client.Client {
429
428
  config;
430
429
  constructor(...[configuration]) {
431
430
  const _config_0 = (0, import_runtimeConfig.getRuntimeConfig)(configuration || {});
431
+ super(_config_0);
432
+ this.initConfig = _config_0;
432
433
  const _config_1 = resolveClientEndpointParameters(_config_0);
433
434
  const _config_2 = (0, import_middleware_user_agent.resolveUserAgentConfig)(_config_1);
434
435
  const _config_3 = (0, import_middleware_retry.resolveRetryConfig)(_config_2);
@@ -438,7 +439,6 @@ var BedrockAgentRuntimeClient = class extends import_smithy_client.Client {
438
439
  const _config_7 = (0, import_eventstream_serde_config_resolver.resolveEventStreamSerdeConfig)(_config_6);
439
440
  const _config_8 = (0, import_httpAuthSchemeProvider.resolveHttpAuthSchemeConfig)(_config_7);
440
441
  const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
441
- super(_config_9);
442
442
  this.config = _config_9;
443
443
  this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
444
444
  this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
@@ -763,6 +763,7 @@ var FlowTrace;
763
763
  if (value.nodeOutputTrace !== void 0) return visitor.nodeOutputTrace(value.nodeOutputTrace);
764
764
  if (value.conditionNodeResultTrace !== void 0)
765
765
  return visitor.conditionNodeResultTrace(value.conditionNodeResultTrace);
766
+ if (value.nodeActionTrace !== void 0) return visitor.nodeActionTrace(value.nodeActionTrace);
766
767
  return visitor._(value.$unknown[0], value.$unknown[1]);
767
768
  }, "visit");
768
769
  })(FlowTrace || (FlowTrace = {}));
@@ -1433,6 +1434,9 @@ var FlowTraceConditionNodeResultEventFilterSensitiveLog = /* @__PURE__ */ __name
1433
1434
  ...obj,
1434
1435
  ...obj.satisfiedConditions && { satisfiedConditions: import_smithy_client.SENSITIVE_STRING }
1435
1436
  }), "FlowTraceConditionNodeResultEventFilterSensitiveLog");
1437
+ var FlowTraceNodeActionEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
1438
+ ...obj
1439
+ }), "FlowTraceNodeActionEventFilterSensitiveLog");
1436
1440
  var FlowTraceNodeInputContentFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1437
1441
  if (obj.document !== void 0) return { document: obj.document };
1438
1442
  if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
@@ -1457,6 +1461,7 @@ var FlowTraceFilterSensitiveLog = /* @__PURE__ */ __name((obj) => {
1457
1461
  if (obj.nodeInputTrace !== void 0) return { nodeInputTrace: import_smithy_client.SENSITIVE_STRING };
1458
1462
  if (obj.nodeOutputTrace !== void 0) return { nodeOutputTrace: import_smithy_client.SENSITIVE_STRING };
1459
1463
  if (obj.conditionNodeResultTrace !== void 0) return { conditionNodeResultTrace: import_smithy_client.SENSITIVE_STRING };
1464
+ if (obj.nodeActionTrace !== void 0) return { nodeActionTrace: import_smithy_client.SENSITIVE_STRING };
1460
1465
  if (obj.$unknown !== void 0) return { [obj.$unknown[0]]: "UNKNOWN" };
1461
1466
  }, "FlowTraceFilterSensitiveLog");
1462
1467
  var FlowTraceEventFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
@@ -4285,6 +4290,11 @@ var de_FlowTrace = /* @__PURE__ */ __name((output, context) => {
4285
4290
  conditionNodeResultTrace: de_FlowTraceConditionNodeResultEvent(output.conditionNodeResultTrace, context)
4286
4291
  };
4287
4292
  }
4293
+ if (output.nodeActionTrace != null) {
4294
+ return {
4295
+ nodeActionTrace: de_FlowTraceNodeActionEvent(output.nodeActionTrace, context)
4296
+ };
4297
+ }
4288
4298
  if (output.nodeInputTrace != null) {
4289
4299
  return {
4290
4300
  nodeInputTrace: de_FlowTraceNodeInputEvent(output.nodeInputTrace, context)
@@ -4309,6 +4319,15 @@ var de_FlowTraceEvent = /* @__PURE__ */ __name((output, context) => {
4309
4319
  trace: /* @__PURE__ */ __name((_) => de_FlowTrace((0, import_core2.awsExpectUnion)(_), context), "trace")
4310
4320
  });
4311
4321
  }, "de_FlowTraceEvent");
4322
+ var de_FlowTraceNodeActionEvent = /* @__PURE__ */ __name((output, context) => {
4323
+ return (0, import_smithy_client.take)(output, {
4324
+ nodeName: import_smithy_client.expectString,
4325
+ operationName: import_smithy_client.expectString,
4326
+ requestId: import_smithy_client.expectString,
4327
+ serviceName: import_smithy_client.expectString,
4328
+ timestamp: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseRfc3339DateTimeWithOffset)(_)), "timestamp")
4329
+ });
4330
+ }, "de_FlowTraceNodeActionEvent");
4312
4331
  var de_FlowTraceNodeInputContent = /* @__PURE__ */ __name((output, context) => {
4313
4332
  if (output.document != null) {
4314
4333
  return {
@@ -5490,6 +5509,7 @@ var paginateRetrieve = (0, import_core.createPaginator)(BedrockAgentRuntimeClien
5490
5509
  FlowOutputEventFilterSensitiveLog,
5491
5510
  FlowTraceConditionFilterSensitiveLog,
5492
5511
  FlowTraceConditionNodeResultEventFilterSensitiveLog,
5512
+ FlowTraceNodeActionEventFilterSensitiveLog,
5493
5513
  FlowTraceNodeInputContentFilterSensitiveLog,
5494
5514
  FlowTraceNodeInputFieldFilterSensitiveLog,
5495
5515
  FlowTraceNodeInputEventFilterSensitiveLog,
@@ -18,6 +18,8 @@ export class BedrockAgentRuntimeClient extends __Client {
18
18
  config;
19
19
  constructor(...[configuration]) {
20
20
  const _config_0 = __getRuntimeConfig(configuration || {});
21
+ super(_config_0);
22
+ this.initConfig = _config_0;
21
23
  const _config_1 = resolveClientEndpointParameters(_config_0);
22
24
  const _config_2 = resolveUserAgentConfig(_config_1);
23
25
  const _config_3 = resolveRetryConfig(_config_2);
@@ -27,7 +29,6 @@ export class BedrockAgentRuntimeClient extends __Client {
27
29
  const _config_7 = resolveEventStreamSerdeConfig(_config_6);
28
30
  const _config_8 = resolveHttpAuthSchemeConfig(_config_7);
29
31
  const _config_9 = resolveRuntimeExtensions(_config_8, configuration?.extensions || []);
30
- super(_config_9);
31
32
  this.config = _config_9;
32
33
  this.middlewareStack.use(getUserAgentPlugin(this.config));
33
34
  this.middlewareStack.use(getRetryPlugin(this.config));
@@ -35,7 +35,5 @@ export const defaultBedrockAgentRuntimeHttpAuthSchemeProvider = (authParameters)
35
35
  };
36
36
  export const resolveHttpAuthSchemeConfig = (config) => {
37
37
  const config_0 = resolveAwsSdkSigV4Config(config);
38
- return {
39
- ...config_0,
40
- };
38
+ return Object.assign(config_0, {});
41
39
  };
@@ -1,10 +1,9 @@
1
1
  export const resolveClientEndpointParameters = (options) => {
2
- return {
3
- ...options,
2
+ return Object.assign(options, {
4
3
  useDualstackEndpoint: options.useDualstackEndpoint ?? false,
5
4
  useFipsEndpoint: options.useFipsEndpoint ?? false,
6
5
  defaultSigningName: "bedrock",
7
- };
6
+ });
8
7
  };
9
8
  export const commonParams = {
10
9
  UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
@@ -241,6 +241,8 @@ export var FlowTrace;
241
241
  return visitor.nodeOutputTrace(value.nodeOutputTrace);
242
242
  if (value.conditionNodeResultTrace !== undefined)
243
243
  return visitor.conditionNodeResultTrace(value.conditionNodeResultTrace);
244
+ if (value.nodeActionTrace !== undefined)
245
+ return visitor.nodeActionTrace(value.nodeActionTrace);
244
246
  return visitor._(value.$unknown[0], value.$unknown[1]);
245
247
  };
246
248
  })(FlowTrace || (FlowTrace = {}));
@@ -960,6 +962,9 @@ export const FlowTraceConditionNodeResultEventFilterSensitiveLog = (obj) => ({
960
962
  ...obj,
961
963
  ...(obj.satisfiedConditions && { satisfiedConditions: SENSITIVE_STRING }),
962
964
  });
965
+ export const FlowTraceNodeActionEventFilterSensitiveLog = (obj) => ({
966
+ ...obj,
967
+ });
963
968
  export const FlowTraceNodeInputContentFilterSensitiveLog = (obj) => {
964
969
  if (obj.document !== undefined)
965
970
  return { document: obj.document };
@@ -989,6 +994,8 @@ export const FlowTraceFilterSensitiveLog = (obj) => {
989
994
  return { nodeOutputTrace: SENSITIVE_STRING };
990
995
  if (obj.conditionNodeResultTrace !== undefined)
991
996
  return { conditionNodeResultTrace: SENSITIVE_STRING };
997
+ if (obj.nodeActionTrace !== undefined)
998
+ return { nodeActionTrace: SENSITIVE_STRING };
992
999
  if (obj.$unknown !== undefined)
993
1000
  return { [obj.$unknown[0]]: "UNKNOWN" };
994
1001
  };
@@ -1993,6 +1993,11 @@ const de_FlowTrace = (output, context) => {
1993
1993
  conditionNodeResultTrace: de_FlowTraceConditionNodeResultEvent(output.conditionNodeResultTrace, context),
1994
1994
  };
1995
1995
  }
1996
+ if (output.nodeActionTrace != null) {
1997
+ return {
1998
+ nodeActionTrace: de_FlowTraceNodeActionEvent(output.nodeActionTrace, context),
1999
+ };
2000
+ }
1996
2001
  if (output.nodeInputTrace != null) {
1997
2002
  return {
1998
2003
  nodeInputTrace: de_FlowTraceNodeInputEvent(output.nodeInputTrace, context),
@@ -2017,6 +2022,15 @@ const de_FlowTraceEvent = (output, context) => {
2017
2022
  trace: (_) => de_FlowTrace(__expectUnion(_), context),
2018
2023
  });
2019
2024
  };
2025
+ const de_FlowTraceNodeActionEvent = (output, context) => {
2026
+ return take(output, {
2027
+ nodeName: __expectString,
2028
+ operationName: __expectString,
2029
+ requestId: __expectString,
2030
+ serviceName: __expectString,
2031
+ timestamp: (_) => __expectNonNull(__parseRfc3339DateTimeWithOffset(_)),
2032
+ });
2033
+ };
2020
2034
  const de_FlowTraceNodeInputContent = (output, context) => {
2021
2035
  if (output.document != null) {
2022
2036
  return {
@@ -2,20 +2,8 @@ import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfigurat
2
2
  import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
3
  import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
4
4
  import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
- const asPartial = (t) => t;
6
5
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
7
- const extensionConfiguration = {
8
- ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)),
9
- ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
10
- ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
11
- ...asPartial(getHttpAuthExtensionConfiguration(runtimeConfig)),
12
- };
6
+ const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
13
7
  extensions.forEach((extension) => extension.configure(extensionConfiguration));
14
- return {
15
- ...runtimeConfig,
16
- ...resolveAwsRegionExtensionConfiguration(extensionConfiguration),
17
- ...resolveDefaultRuntimeConfig(extensionConfiguration),
18
- ...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
19
- ...resolveHttpAuthRuntimeConfig(extensionConfiguration),
20
- };
8
+ return Object.assign(runtimeConfig, resolveAwsRegionExtensionConfiguration(extensionConfiguration), resolveDefaultRuntimeConfig(extensionConfiguration), resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
21
9
  };
@@ -98,6 +98,7 @@ declare const CreateInvocationCommand_base: {
98
98
  * @throws {@link BedrockAgentRuntimeServiceException}
99
99
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
100
100
  *
101
+ *
101
102
  * @public
102
103
  */
103
104
  export declare class CreateInvocationCommand extends CreateInvocationCommand_base {
@@ -116,6 +116,7 @@ declare const CreateSessionCommand_base: {
116
116
  * @throws {@link BedrockAgentRuntimeServiceException}
117
117
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
118
118
  *
119
+ *
119
120
  * @public
120
121
  */
121
122
  export declare class CreateSessionCommand extends CreateSessionCommand_base {
@@ -82,6 +82,7 @@ declare const DeleteAgentMemoryCommand_base: {
82
82
  * @throws {@link BedrockAgentRuntimeServiceException}
83
83
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
84
84
  *
85
+ *
85
86
  * @public
86
87
  */
87
88
  export declare class DeleteAgentMemoryCommand extends DeleteAgentMemoryCommand_base {
@@ -72,6 +72,7 @@ declare const DeleteSessionCommand_base: {
72
72
  * @throws {@link BedrockAgentRuntimeServiceException}
73
73
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
74
74
  *
75
+ *
75
76
  * @public
76
77
  */
77
78
  export declare class DeleteSessionCommand extends DeleteSessionCommand_base {
@@ -76,6 +76,7 @@ declare const EndSessionCommand_base: {
76
76
  * @throws {@link BedrockAgentRuntimeServiceException}
77
77
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
78
78
  *
79
+ *
79
80
  * @public
80
81
  */
81
82
  export declare class EndSessionCommand extends EndSessionCommand_base {
@@ -98,6 +98,7 @@ declare const GenerateQueryCommand_base: {
98
98
  * @throws {@link BedrockAgentRuntimeServiceException}
99
99
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
100
100
  *
101
+ *
101
102
  * @public
102
103
  */
103
104
  export declare class GenerateQueryCommand extends GenerateQueryCommand_base {
@@ -97,6 +97,7 @@ declare const GetAgentMemoryCommand_base: {
97
97
  * @throws {@link BedrockAgentRuntimeServiceException}
98
98
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
99
99
  *
100
+ *
100
101
  * @public
101
102
  */
102
103
  export declare class GetAgentMemoryCommand extends GetAgentMemoryCommand_base {
@@ -92,6 +92,7 @@ declare const GetInvocationStepCommand_base: {
92
92
  * @throws {@link BedrockAgentRuntimeServiceException}
93
93
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
94
94
  *
95
+ *
95
96
  * @public
96
97
  */
97
98
  export declare class GetInvocationStepCommand extends GetInvocationStepCommand_base {
@@ -77,6 +77,7 @@ declare const GetSessionCommand_base: {
77
77
  * @throws {@link BedrockAgentRuntimeServiceException}
78
78
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
79
79
  *
80
+ *
80
81
  * @public
81
82
  */
82
83
  export declare class GetSessionCommand extends GetSessionCommand_base {
@@ -39,25 +39,6 @@ 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>
61
42
  * <p>End a conversation by setting <code>endSession</code> to <code>true</code>.</p>
62
43
  * </li>
63
44
  * <li>
@@ -1224,6 +1205,7 @@ declare const InvokeAgentCommand_base: {
1224
1205
  * @throws {@link BedrockAgentRuntimeServiceException}
1225
1206
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
1226
1207
  *
1208
+ *
1227
1209
  * @public
1228
1210
  */
1229
1211
  export declare class InvokeAgentCommand extends InvokeAgentCommand_base {
@@ -107,6 +107,13 @@ declare const InvokeFlowCommand_base: {
107
107
  * // },
108
108
  * // ],
109
109
  * // },
110
+ * // nodeActionTrace: { // FlowTraceNodeActionEvent
111
+ * // nodeName: "STRING_VALUE", // required
112
+ * // timestamp: new Date("TIMESTAMP"), // required
113
+ * // requestId: "STRING_VALUE", // required
114
+ * // serviceName: "STRING_VALUE", // required
115
+ * // operationName: "STRING_VALUE", // required
116
+ * // },
110
117
  * // },
111
118
  * // },
112
119
  * // internalServerException: { // InternalServerException
@@ -188,6 +195,7 @@ declare const InvokeFlowCommand_base: {
188
195
  * @throws {@link BedrockAgentRuntimeServiceException}
189
196
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
190
197
  *
198
+ *
191
199
  * @public
192
200
  */
193
201
  export declare class InvokeFlowCommand extends InvokeFlowCommand_base {
@@ -1381,6 +1381,7 @@ declare const InvokeInlineAgentCommand_base: {
1381
1381
  * @throws {@link BedrockAgentRuntimeServiceException}
1382
1382
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
1383
1383
  *
1384
+ *
1384
1385
  * @public
1385
1386
  */
1386
1387
  export declare class InvokeInlineAgentCommand extends InvokeInlineAgentCommand_base {
@@ -80,6 +80,7 @@ declare const ListInvocationStepsCommand_base: {
80
80
  * @throws {@link BedrockAgentRuntimeServiceException}
81
81
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
82
82
  *
83
+ *
83
84
  * @public
84
85
  */
85
86
  export declare class ListInvocationStepsCommand extends ListInvocationStepsCommand_base {
@@ -78,6 +78,7 @@ declare const ListInvocationsCommand_base: {
78
78
  * @throws {@link BedrockAgentRuntimeServiceException}
79
79
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
80
80
  *
81
+ *
81
82
  * @public
82
83
  */
83
84
  export declare class ListInvocationsCommand extends ListInvocationsCommand_base {
@@ -76,6 +76,7 @@ declare const ListSessionsCommand_base: {
76
76
  * @throws {@link BedrockAgentRuntimeServiceException}
77
77
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
78
78
  *
79
+ *
79
80
  * @public
80
81
  */
81
82
  export declare class ListSessionsCommand extends ListSessionsCommand_base {
@@ -71,6 +71,7 @@ declare const ListTagsForResourceCommand_base: {
71
71
  * @throws {@link BedrockAgentRuntimeServiceException}
72
72
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
73
73
  *
74
+ *
74
75
  * @public
75
76
  */
76
77
  export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
@@ -109,6 +109,7 @@ declare const OptimizePromptCommand_base: {
109
109
  * @throws {@link BedrockAgentRuntimeServiceException}
110
110
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
111
111
  *
112
+ *
112
113
  * @public
113
114
  */
114
115
  export declare class OptimizePromptCommand extends OptimizePromptCommand_base {
@@ -117,6 +117,7 @@ declare const PutInvocationStepCommand_base: {
117
117
  * @throws {@link BedrockAgentRuntimeServiceException}
118
118
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
119
119
  *
120
+ *
120
121
  * @public
121
122
  */
122
123
  export declare class PutInvocationStepCommand extends PutInvocationStepCommand_base {
@@ -126,6 +126,7 @@ declare const RerankCommand_base: {
126
126
  * @throws {@link BedrockAgentRuntimeServiceException}
127
127
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
128
128
  *
129
+ *
129
130
  * @public
130
131
  */
131
132
  export declare class RerankCommand extends RerankCommand_base {
@@ -343,6 +343,7 @@ declare const RetrieveAndGenerateCommand_base: {
343
343
  * @throws {@link BedrockAgentRuntimeServiceException}
344
344
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
345
345
  *
346
+ *
346
347
  * @public
347
348
  */
348
349
  export declare class RetrieveAndGenerateCommand extends RetrieveAndGenerateCommand_base {
@@ -436,6 +436,7 @@ declare const RetrieveAndGenerateStreamCommand_base: {
436
436
  * @throws {@link BedrockAgentRuntimeServiceException}
437
437
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
438
438
  *
439
+ *
439
440
  * @public
440
441
  */
441
442
  export declare class RetrieveAndGenerateStreamCommand extends RetrieveAndGenerateStreamCommand_base {
@@ -233,6 +233,7 @@ declare const RetrieveCommand_base: {
233
233
  * @throws {@link BedrockAgentRuntimeServiceException}
234
234
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
235
235
  *
236
+ *
236
237
  * @public
237
238
  */
238
239
  export declare class RetrieveCommand extends RetrieveCommand_base {
@@ -73,6 +73,7 @@ declare const TagResourceCommand_base: {
73
73
  * @throws {@link BedrockAgentRuntimeServiceException}
74
74
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
75
75
  *
76
+ *
76
77
  * @public
77
78
  */
78
79
  export declare class TagResourceCommand extends TagResourceCommand_base {
@@ -70,6 +70,7 @@ declare const UntagResourceCommand_base: {
70
70
  * @throws {@link BedrockAgentRuntimeServiceException}
71
71
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
72
72
  *
73
+ *
73
74
  * @public
74
75
  */
75
76
  export declare class UntagResourceCommand extends UntagResourceCommand_base {
@@ -1,7 +1,8 @@
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 { UpdateSessionRequest, UpdateSessionResponse } from "../models/models_0";
4
+ import { UpdateSessionRequest } from "../models/models_0";
5
+ import { UpdateSessionResponse } from "../models/models_1";
5
6
  /**
6
7
  * @public
7
8
  */
@@ -79,6 +80,7 @@ declare const UpdateSessionCommand_base: {
79
80
  * @throws {@link BedrockAgentRuntimeServiceException}
80
81
  * <p>Base exception class for all service exceptions from BedrockAgentRuntime service.</p>
81
82
  *
83
+ *
82
84
  * @public
83
85
  */
84
86
  export declare class UpdateSessionCommand extends UpdateSessionCommand_base {
@@ -1496,6 +1496,38 @@ export interface FlowTraceConditionNodeResultEvent {
1496
1496
  */
1497
1497
  satisfiedConditions: FlowTraceCondition[] | undefined;
1498
1498
  }
1499
+ /**
1500
+ * <p>Contains information about an action (operation) called by a node in an Amazon Bedrock flow. The service generates action events for calls made by prompt nodes,
1501
+ * agent nodes, and Amazon Web Services Lambda nodes. </p>
1502
+ * @public
1503
+ */
1504
+ export interface FlowTraceNodeActionEvent {
1505
+ /**
1506
+ * <p>The name of the node that called the operation.</p>
1507
+ * @public
1508
+ */
1509
+ nodeName: string | undefined;
1510
+ /**
1511
+ * <p>The date and time that the operation was called.</p>
1512
+ * @public
1513
+ */
1514
+ timestamp: Date | undefined;
1515
+ /**
1516
+ * <p>The ID of the request that the node made to the operation.</p>
1517
+ * @public
1518
+ */
1519
+ requestId: string | undefined;
1520
+ /**
1521
+ * <p>The name of the service that the node called.</p>
1522
+ * @public
1523
+ */
1524
+ serviceName: string | undefined;
1525
+ /**
1526
+ * <p>The name of the operation that the node called.</p>
1527
+ * @public
1528
+ */
1529
+ operationName: string | undefined;
1530
+ }
1499
1531
  /**
1500
1532
  * <p>Contains the content of the node input. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>
1501
1533
  * @public
@@ -1634,7 +1666,7 @@ export interface FlowTraceNodeOutputEvent {
1634
1666
  * <p>Contains information about an input or output for a node in the flow. For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>
1635
1667
  * @public
1636
1668
  */
1637
- export type FlowTrace = FlowTrace.ConditionNodeResultTraceMember | FlowTrace.NodeInputTraceMember | FlowTrace.NodeOutputTraceMember | FlowTrace.$UnknownMember;
1669
+ export type FlowTrace = FlowTrace.ConditionNodeResultTraceMember | FlowTrace.NodeActionTraceMember | FlowTrace.NodeInputTraceMember | FlowTrace.NodeOutputTraceMember | FlowTrace.$UnknownMember;
1638
1670
  /**
1639
1671
  * @public
1640
1672
  */
@@ -1647,6 +1679,7 @@ export declare namespace FlowTrace {
1647
1679
  nodeInputTrace: FlowTraceNodeInputEvent;
1648
1680
  nodeOutputTrace?: never;
1649
1681
  conditionNodeResultTrace?: never;
1682
+ nodeActionTrace?: never;
1650
1683
  $unknown?: never;
1651
1684
  }
1652
1685
  /**
@@ -1657,6 +1690,7 @@ export declare namespace FlowTrace {
1657
1690
  nodeInputTrace?: never;
1658
1691
  nodeOutputTrace: FlowTraceNodeOutputEvent;
1659
1692
  conditionNodeResultTrace?: never;
1693
+ nodeActionTrace?: never;
1660
1694
  $unknown?: never;
1661
1695
  }
1662
1696
  /**
@@ -1667,6 +1701,19 @@ export declare namespace FlowTrace {
1667
1701
  nodeInputTrace?: never;
1668
1702
  nodeOutputTrace?: never;
1669
1703
  conditionNodeResultTrace: FlowTraceConditionNodeResultEvent;
1704
+ nodeActionTrace?: never;
1705
+ $unknown?: never;
1706
+ }
1707
+ /**
1708
+ * <p>Contains information about an action (operation) called by a node.
1709
+ * For more information, see <a href="https://docs.aws.amazon.com/bedrock/latest/userguide/flows-trace.html">Track each step in your prompt flow by viewing its trace in Amazon Bedrock</a>.</p>
1710
+ * @public
1711
+ */
1712
+ interface NodeActionTraceMember {
1713
+ nodeInputTrace?: never;
1714
+ nodeOutputTrace?: never;
1715
+ conditionNodeResultTrace?: never;
1716
+ nodeActionTrace: FlowTraceNodeActionEvent;
1670
1717
  $unknown?: never;
1671
1718
  }
1672
1719
  /**
@@ -1676,12 +1723,14 @@ export declare namespace FlowTrace {
1676
1723
  nodeInputTrace?: never;
1677
1724
  nodeOutputTrace?: never;
1678
1725
  conditionNodeResultTrace?: never;
1726
+ nodeActionTrace?: never;
1679
1727
  $unknown: [string, any];
1680
1728
  }
1681
1729
  interface Visitor<T> {
1682
1730
  nodeInputTrace: (value: FlowTraceNodeInputEvent) => T;
1683
1731
  nodeOutputTrace: (value: FlowTraceNodeOutputEvent) => T;
1684
1732
  conditionNodeResultTrace: (value: FlowTraceConditionNodeResultEvent) => T;
1733
+ nodeActionTrace: (value: FlowTraceNodeActionEvent) => T;
1685
1734
  _: (name: string, value: any) => T;
1686
1735
  }
1687
1736
  const visit: <T>(value: FlowTrace, visitor: Visitor<T>) => T;
@@ -2616,8 +2665,7 @@ export interface VectorSearchRerankingConfiguration {
2616
2665
  bedrockRerankingConfiguration?: VectorSearchBedrockRerankingConfiguration | undefined;
2617
2666
  }
2618
2667
  /**
2619
- * <p>
2620
- * Configurations for streaming.</p>
2668
+ * <p>Configurations for streaming.</p>
2621
2669
  * @public
2622
2670
  */
2623
2671
  export interface StreamingConfigurations {
@@ -2629,9 +2677,24 @@ export interface StreamingConfigurations {
2629
2677
  */
2630
2678
  streamFinalResponse?: boolean | undefined;
2631
2679
  /**
2632
- * <p>
2633
- * The guardrail interval to apply as response is generated.
2634
- * </p>
2680
+ * <p> The guardrail interval to apply as response is generated. By default, the guardrail
2681
+ * interval is set to 50 characters. If a larger interval is specified, the response will
2682
+ * be generated in larger chunks with fewer <code>ApplyGuardrail</code> calls. The
2683
+ * following examples show the response generated for <i>Hello, I am an
2684
+ * agent</i> input string.</p>
2685
+ * <p>
2686
+ * <b>Example response in chunks: Interval set to 3 characters</b>
2687
+ * </p>
2688
+ * <p>
2689
+ * <code>'Hel', 'lo, ','I am', ' an', ' Age', 'nt'</code>
2690
+ * </p>
2691
+ * <p>Each chunk has at least 3 characters except for the last chunk</p>
2692
+ * <p>
2693
+ * <b>Example response in chunks: Interval set to 20 or more characters</b>
2694
+ * </p>
2695
+ * <p>
2696
+ * <code>Hello, I am an Agent</code>
2697
+ * </p>
2635
2698
  * @public
2636
2699
  */
2637
2700
  applyGuardrailInterval?: number | undefined;
@@ -7828,36 +7891,6 @@ export interface UpdateSessionRequest {
7828
7891
  */
7829
7892
  sessionIdentifier: string | undefined;
7830
7893
  }
7831
- /**
7832
- * @public
7833
- */
7834
- export interface UpdateSessionResponse {
7835
- /**
7836
- * <p>The unique identifier of the session you updated.</p>
7837
- * @public
7838
- */
7839
- sessionId: string | undefined;
7840
- /**
7841
- * <p>The Amazon Resource Name (ARN) of the session that was updated.</p>
7842
- * @public
7843
- */
7844
- sessionArn: string | undefined;
7845
- /**
7846
- * <p>The status of the session you updated.</p>
7847
- * @public
7848
- */
7849
- sessionStatus: SessionStatus | undefined;
7850
- /**
7851
- * <p>The timestamp for when the session was created.</p>
7852
- * @public
7853
- */
7854
- createdAt: Date | undefined;
7855
- /**
7856
- * <p>The timestamp for when the session was last modified.</p>
7857
- * @public
7858
- */
7859
- lastUpdatedAt: Date | undefined;
7860
- }
7861
7894
  /**
7862
7895
  * @internal
7863
7896
  */
@@ -7958,6 +7991,10 @@ export declare const FlowTraceConditionFilterSensitiveLog: (obj: FlowTraceCondit
7958
7991
  * @internal
7959
7992
  */
7960
7993
  export declare const FlowTraceConditionNodeResultEventFilterSensitiveLog: (obj: FlowTraceConditionNodeResultEvent) => any;
7994
+ /**
7995
+ * @internal
7996
+ */
7997
+ export declare const FlowTraceNodeActionEventFilterSensitiveLog: (obj: FlowTraceNodeActionEvent) => any;
7961
7998
  /**
7962
7999
  * @internal
7963
8000
  */
@@ -1,4 +1,34 @@
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";
1
+ import { AgentActionGroup, AgentCollaboration, BedrockModelConfigurations, CollaboratorConfiguration, ConversationHistory, ExternalSourcesRetrieveAndGenerateConfiguration, FilterAttribute, GenerationConfiguration, GuardrailConfiguration, GuardrailConfigurationWithArn, ImplicitFilterConfiguration, InlineBedrockModelConfigurations, InlineSessionState, InputFile, InvocationResultMember, KnowledgeBaseQuery, OrchestrationConfiguration, PromptOverrideConfiguration, RetrieveAndGenerateInput, RetrieveAndGenerateSessionConfiguration, RetrieveAndGenerateType, SearchType, SessionStatus, StreamingConfigurations, VectorSearchRerankingConfiguration } from "./models_0";
2
+ /**
3
+ * @public
4
+ */
5
+ export interface UpdateSessionResponse {
6
+ /**
7
+ * <p>The unique identifier of the session you updated.</p>
8
+ * @public
9
+ */
10
+ sessionId: string | undefined;
11
+ /**
12
+ * <p>The Amazon Resource Name (ARN) of the session that was updated.</p>
13
+ * @public
14
+ */
15
+ sessionArn: string | undefined;
16
+ /**
17
+ * <p>The status of the session you updated.</p>
18
+ * @public
19
+ */
20
+ sessionStatus: SessionStatus | undefined;
21
+ /**
22
+ * <p>The timestamp for when the session was created.</p>
23
+ * @public
24
+ */
25
+ createdAt: Date | undefined;
26
+ /**
27
+ * <p>The timestamp for when the session was last modified.</p>
28
+ * @public
29
+ */
30
+ lastUpdatedAt: Date | undefined;
31
+ }
2
32
  /**
3
33
  * @public
4
34
  */
@@ -5,10 +5,8 @@ import {
5
5
  ServiceInputTypes,
6
6
  ServiceOutputTypes,
7
7
  } from "../BedrockAgentRuntimeClient";
8
- import {
9
- UpdateSessionRequest,
10
- UpdateSessionResponse,
11
- } from "../models/models_0";
8
+ import { UpdateSessionRequest } from "../models/models_0";
9
+ import { UpdateSessionResponse } from "../models/models_1";
12
10
  export { __MetadataBearer };
13
11
  export { $Command };
14
12
  export interface UpdateSessionCommandInput extends UpdateSessionRequest {}
@@ -502,6 +502,13 @@ export interface FlowTraceConditionNodeResultEvent {
502
502
  timestamp: Date | undefined;
503
503
  satisfiedConditions: FlowTraceCondition[] | undefined;
504
504
  }
505
+ export interface FlowTraceNodeActionEvent {
506
+ nodeName: string | undefined;
507
+ timestamp: Date | undefined;
508
+ requestId: string | undefined;
509
+ serviceName: string | undefined;
510
+ operationName: string | undefined;
511
+ }
505
512
  export type FlowTraceNodeInputContent =
506
513
  | FlowTraceNodeInputContent.DocumentMember
507
514
  | FlowTraceNodeInputContent.$UnknownMember;
@@ -558,6 +565,7 @@ export interface FlowTraceNodeOutputEvent {
558
565
  }
559
566
  export type FlowTrace =
560
567
  | FlowTrace.ConditionNodeResultTraceMember
568
+ | FlowTrace.NodeActionTraceMember
561
569
  | FlowTrace.NodeInputTraceMember
562
570
  | FlowTrace.NodeOutputTraceMember
563
571
  | FlowTrace.$UnknownMember;
@@ -566,30 +574,42 @@ export declare namespace FlowTrace {
566
574
  nodeInputTrace: FlowTraceNodeInputEvent;
567
575
  nodeOutputTrace?: never;
568
576
  conditionNodeResultTrace?: never;
577
+ nodeActionTrace?: never;
569
578
  $unknown?: never;
570
579
  }
571
580
  interface NodeOutputTraceMember {
572
581
  nodeInputTrace?: never;
573
582
  nodeOutputTrace: FlowTraceNodeOutputEvent;
574
583
  conditionNodeResultTrace?: never;
584
+ nodeActionTrace?: never;
575
585
  $unknown?: never;
576
586
  }
577
587
  interface ConditionNodeResultTraceMember {
578
588
  nodeInputTrace?: never;
579
589
  nodeOutputTrace?: never;
580
590
  conditionNodeResultTrace: FlowTraceConditionNodeResultEvent;
591
+ nodeActionTrace?: never;
592
+ $unknown?: never;
593
+ }
594
+ interface NodeActionTraceMember {
595
+ nodeInputTrace?: never;
596
+ nodeOutputTrace?: never;
597
+ conditionNodeResultTrace?: never;
598
+ nodeActionTrace: FlowTraceNodeActionEvent;
581
599
  $unknown?: never;
582
600
  }
583
601
  interface $UnknownMember {
584
602
  nodeInputTrace?: never;
585
603
  nodeOutputTrace?: never;
586
604
  conditionNodeResultTrace?: never;
605
+ nodeActionTrace?: never;
587
606
  $unknown: [string, any];
588
607
  }
589
608
  interface Visitor<T> {
590
609
  nodeInputTrace: (value: FlowTraceNodeInputEvent) => T;
591
610
  nodeOutputTrace: (value: FlowTraceNodeOutputEvent) => T;
592
611
  conditionNodeResultTrace: (value: FlowTraceConditionNodeResultEvent) => T;
612
+ nodeActionTrace: (value: FlowTraceNodeActionEvent) => T;
593
613
  _: (name: string, value: any) => T;
594
614
  }
595
615
  const visit: <T>(value: FlowTrace, visitor: Visitor<T>) => T;
@@ -3319,13 +3339,6 @@ export interface UpdateSessionRequest {
3319
3339
  sessionMetadata?: Record<string, string> | undefined;
3320
3340
  sessionIdentifier: string | undefined;
3321
3341
  }
3322
- export interface UpdateSessionResponse {
3323
- sessionId: string | undefined;
3324
- sessionArn: string | undefined;
3325
- sessionStatus: SessionStatus | undefined;
3326
- createdAt: Date | undefined;
3327
- lastUpdatedAt: Date | undefined;
3328
- }
3329
3342
  export declare const ActionGroupInvocationInputFilterSensitiveLog: (
3330
3343
  obj: ActionGroupInvocationInput
3331
3344
  ) => any;
@@ -3395,6 +3408,9 @@ export declare const FlowTraceConditionFilterSensitiveLog: (
3395
3408
  export declare const FlowTraceConditionNodeResultEventFilterSensitiveLog: (
3396
3409
  obj: FlowTraceConditionNodeResultEvent
3397
3410
  ) => any;
3411
+ export declare const FlowTraceNodeActionEventFilterSensitiveLog: (
3412
+ obj: FlowTraceNodeActionEvent
3413
+ ) => any;
3398
3414
  export declare const FlowTraceNodeInputContentFilterSensitiveLog: (
3399
3415
  obj: FlowTraceNodeInputContent
3400
3416
  ) => any;
@@ -21,9 +21,17 @@ import {
21
21
  RetrieveAndGenerateSessionConfiguration,
22
22
  RetrieveAndGenerateType,
23
23
  SearchType,
24
+ SessionStatus,
24
25
  StreamingConfigurations,
25
26
  VectorSearchRerankingConfiguration,
26
27
  } from "./models_0";
28
+ export interface UpdateSessionResponse {
29
+ sessionId: string | undefined;
30
+ sessionArn: string | undefined;
31
+ sessionStatus: SessionStatus | undefined;
32
+ createdAt: Date | undefined;
33
+ lastUpdatedAt: Date | undefined;
34
+ }
27
35
  export interface ListTagsForResourceRequest {
28
36
  resourceArn: string | undefined;
29
37
  }
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.774.0",
4
+ "version": "3.777.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",
@@ -20,44 +20,44 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.774.0",
24
- "@aws-sdk/credential-provider-node": "3.774.0",
25
- "@aws-sdk/middleware-host-header": "3.774.0",
26
- "@aws-sdk/middleware-logger": "3.734.0",
27
- "@aws-sdk/middleware-recursion-detection": "3.772.0",
28
- "@aws-sdk/middleware-user-agent": "3.774.0",
29
- "@aws-sdk/region-config-resolver": "3.734.0",
30
- "@aws-sdk/types": "3.734.0",
31
- "@aws-sdk/util-endpoints": "3.743.0",
32
- "@aws-sdk/util-user-agent-browser": "3.734.0",
33
- "@aws-sdk/util-user-agent-node": "3.774.0",
34
- "@smithy/config-resolver": "^4.0.1",
35
- "@smithy/core": "^3.1.5",
36
- "@smithy/eventstream-serde-browser": "^4.0.1",
37
- "@smithy/eventstream-serde-config-resolver": "^4.0.1",
38
- "@smithy/eventstream-serde-node": "^4.0.1",
39
- "@smithy/fetch-http-handler": "^5.0.1",
40
- "@smithy/hash-node": "^4.0.1",
41
- "@smithy/invalid-dependency": "^4.0.1",
42
- "@smithy/middleware-content-length": "^4.0.1",
43
- "@smithy/middleware-endpoint": "^4.0.6",
44
- "@smithy/middleware-retry": "^4.0.7",
45
- "@smithy/middleware-serde": "^4.0.2",
46
- "@smithy/middleware-stack": "^4.0.1",
47
- "@smithy/node-config-provider": "^4.0.1",
48
- "@smithy/node-http-handler": "^4.0.3",
49
- "@smithy/protocol-http": "^5.0.1",
50
- "@smithy/smithy-client": "^4.1.6",
51
- "@smithy/types": "^4.1.0",
52
- "@smithy/url-parser": "^4.0.1",
23
+ "@aws-sdk/core": "3.775.0",
24
+ "@aws-sdk/credential-provider-node": "3.777.0",
25
+ "@aws-sdk/middleware-host-header": "3.775.0",
26
+ "@aws-sdk/middleware-logger": "3.775.0",
27
+ "@aws-sdk/middleware-recursion-detection": "3.775.0",
28
+ "@aws-sdk/middleware-user-agent": "3.775.0",
29
+ "@aws-sdk/region-config-resolver": "3.775.0",
30
+ "@aws-sdk/types": "3.775.0",
31
+ "@aws-sdk/util-endpoints": "3.775.0",
32
+ "@aws-sdk/util-user-agent-browser": "3.775.0",
33
+ "@aws-sdk/util-user-agent-node": "3.775.0",
34
+ "@smithy/config-resolver": "^4.1.0",
35
+ "@smithy/core": "^3.2.0",
36
+ "@smithy/eventstream-serde-browser": "^4.0.2",
37
+ "@smithy/eventstream-serde-config-resolver": "^4.1.0",
38
+ "@smithy/eventstream-serde-node": "^4.0.2",
39
+ "@smithy/fetch-http-handler": "^5.0.2",
40
+ "@smithy/hash-node": "^4.0.2",
41
+ "@smithy/invalid-dependency": "^4.0.2",
42
+ "@smithy/middleware-content-length": "^4.0.2",
43
+ "@smithy/middleware-endpoint": "^4.1.0",
44
+ "@smithy/middleware-retry": "^4.1.0",
45
+ "@smithy/middleware-serde": "^4.0.3",
46
+ "@smithy/middleware-stack": "^4.0.2",
47
+ "@smithy/node-config-provider": "^4.0.2",
48
+ "@smithy/node-http-handler": "^4.0.4",
49
+ "@smithy/protocol-http": "^5.1.0",
50
+ "@smithy/smithy-client": "^4.2.0",
51
+ "@smithy/types": "^4.2.0",
52
+ "@smithy/url-parser": "^4.0.2",
53
53
  "@smithy/util-base64": "^4.0.0",
54
54
  "@smithy/util-body-length-browser": "^4.0.0",
55
55
  "@smithy/util-body-length-node": "^4.0.0",
56
- "@smithy/util-defaults-mode-browser": "^4.0.7",
57
- "@smithy/util-defaults-mode-node": "^4.0.7",
58
- "@smithy/util-endpoints": "^3.0.1",
59
- "@smithy/util-middleware": "^4.0.1",
60
- "@smithy/util-retry": "^4.0.1",
56
+ "@smithy/util-defaults-mode-browser": "^4.0.8",
57
+ "@smithy/util-defaults-mode-node": "^4.0.8",
58
+ "@smithy/util-endpoints": "^3.0.2",
59
+ "@smithy/util-middleware": "^4.0.2",
60
+ "@smithy/util-retry": "^4.0.2",
61
61
  "@smithy/util-utf8": "^4.0.0",
62
62
  "tslib": "^2.6.2"
63
63
  },