@aws-sdk/client-bedrock-agentcore 3.1136.0 → 3.1138.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
@@ -70,7 +70,7 @@ const commonParams = {
70
70
  UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
71
71
  };
72
72
 
73
- var version = "3.1135.0";
73
+ var version = "3.1137.0";
74
74
  var packageInfo = {
75
75
  version: version};
76
76
 
@@ -576,6 +576,7 @@ const _HCBSEa = "HarnessContentBlockStopEvent";
576
576
  const _HCBa = "HarnessContentBlock";
577
577
  const _HGMC = "HarnessGeminiModelConfig";
578
578
  const _HGOA = "HarnessGatewayOutboundAuth";
579
+ const _HHE = "HarnessHookEvent";
579
580
  const _HHM = "HttpHeadersMap";
580
581
  const _HIFC = "HarnessInlineFunctionConfig";
581
582
  const _HIFD = "HarnessInlineFunctionDescription";
@@ -587,6 +588,7 @@ const _HME = "HarnessMetadataEvent";
587
588
  const _HMSE = "HarnessMessageStartEvent";
588
589
  const _HMSEa = "HarnessMessageStopEvent";
589
590
  const _HMa = "HarnessMessages";
591
+ const _HOAAB = "HarnessOpenAiApiBase";
590
592
  const _HOAMC = "HarnessOpenAiModelConfig";
591
593
  const _HRCB = "HarnessReasoningContentBlock";
592
594
  const _HRCBD = "HarnessReasoningContentBlockDelta";
@@ -1047,7 +1049,8 @@ const _dX = "deltaX";
1047
1049
  const _dY = "deltaY";
1048
1050
  const _da = "data";
1049
1051
  const _de = "delta";
1050
- const _dec = "decimals";
1052
+ const _dec = "decision";
1053
+ const _deci = "decimals";
1051
1054
  const _des = "descriptors";
1052
1055
  const _e = "error";
1053
1056
  const _eA = "evaluatorArn";
@@ -1121,6 +1124,8 @@ const _go = "google";
1121
1124
  const _h = "headers";
1122
1125
  const _hA = "harnessArn";
1123
1126
  const _hE = "httpError";
1127
+ const _hEI = "hookEventId";
1128
+ const _hEo = "hookEvent";
1124
1129
  const _hH = "httpHeader";
1125
1130
  const _hQ = "httpQuery";
1126
1131
  const _he = "height";
@@ -1464,10 +1469,10 @@ const _xabsi = "x-amzn-browser-session-id";
1464
1469
  const _xacisi = "x-amzn-code-interpreter-session-id";
1465
1470
  const _y = "y";
1466
1471
  const n0 = "com.amazonaws.bedrockagentcore";
1467
- const _s_registry = TypeRegistry.for(_s);
1472
+ const _s_registry = new TypeRegistry(_s);
1468
1473
  var BedrockAgentCoreServiceException$ = [-3, _s, "BedrockAgentCoreServiceException", 0, [], []];
1469
1474
  _s_registry.registerError(BedrockAgentCoreServiceException$, BedrockAgentCoreServiceException);
1470
- const n0_registry = TypeRegistry.for(n0);
1475
+ const n0_registry = new TypeRegistry(n0);
1471
1476
  var AccessDeniedException$ = [-3, n0, _ADE,
1472
1477
  { [_e]: _c, [_hE]: 403 },
1473
1478
  [_m],
@@ -1573,6 +1578,7 @@ var Email = [0, n0, _E, 8, 0];
1573
1578
  var EvaluationExplanation = [0, n0, _EE, 8, 0];
1574
1579
  var HarnessInlineFunctionDescription = [0, n0, _HIFD, 8, 0];
1575
1580
  var HarnessLiteLlmApiBase = [0, n0, _HLLAB, 8, 0];
1581
+ var HarnessOpenAiApiBase = [0, n0, _HOAAB, 8, 0];
1576
1582
  var HarnessRemoteMcpUrl = [0, n0, _HRMU, 8, 0];
1577
1583
  var MemoryDocument = [0, n0, _MD, 8, 15];
1578
1584
  var MemoryJsonDataContent = [0, n0, _MJDC, 8, 15];
@@ -2332,6 +2338,11 @@ var HarnessGeminiModelConfig$ = [3, n0, _HGMC,
2332
2338
  [_mIo, _aKA, _mTa, _tem, _tPo, _tK, _aP],
2333
2339
  [0, 0, 1, 1, 1, 1, 15], 2
2334
2340
  ];
2341
+ var HarnessHookEvent$ = [3, n0, _HHE,
2342
+ 0,
2343
+ [_hEI, _n, _t, _dec, _r],
2344
+ [0, 0, 0, 0, 0], 3
2345
+ ];
2335
2346
  var HarnessInlineFunctionConfig$ = [3, n0, _HIFC,
2336
2347
  0,
2337
2348
  [_d, _iS],
@@ -2364,8 +2375,8 @@ var HarnessMetadataEvent$ = [3, n0, _HME,
2364
2375
  ];
2365
2376
  var HarnessOpenAiModelConfig$ = [3, n0, _HOAMC,
2366
2377
  0,
2367
- [_mIo, _aKA, _mTa, _tem, _tPo, _aF, _aP],
2368
- [0, 0, 1, 1, 1, 0, 15], 2
2378
+ [_mIo, _aKA, _aB, _mTa, _tem, _tPo, _aF, _aP],
2379
+ [0, 0, [() => HarnessOpenAiApiBase, 0], 1, 1, 1, 0, 15], 2
2369
2380
  ];
2370
2381
  var HarnessReasoningTextBlock$ = [3, n0, _HRTB,
2371
2382
  8,
@@ -3139,7 +3150,7 @@ var TargetRef$ = [3, n0, _TR,
3139
3150
  ];
3140
3151
  var TokenBalance$ = [3, n0, _TB,
3141
3152
  0,
3142
- [_am, _dec, _to, _ne, _ch],
3153
+ [_am, _deci, _to, _ne, _ch],
3143
3154
  [0, 1, 0, 0, 0], 5
3144
3155
  ];
3145
3156
  var TokenUsage$ = [3, n0, _TU,
@@ -3606,7 +3617,7 @@ var HarnessGatewayOutboundAuth$ = [4, n0, _HGOA,
3606
3617
  var HarnessModelConfiguration$ = [4, n0, _HMC,
3607
3618
  0,
3608
3619
  [_bMC, _oAMC, _gMC, _lLMC],
3609
- [() => HarnessBedrockModelConfig$, () => HarnessOpenAiModelConfig$, () => HarnessGeminiModelConfig$, [() => HarnessLiteLlmModelConfig$, 0]]
3620
+ [() => HarnessBedrockModelConfig$, [() => HarnessOpenAiModelConfig$, 0], () => HarnessGeminiModelConfig$, [() => HarnessLiteLlmModelConfig$, 0]]
3610
3621
  ];
3611
3622
  var HarnessReasoningContentBlock$ = [4, n0, _HRCB,
3612
3623
  8,
@@ -3655,8 +3666,8 @@ var InvokeAgentRuntimeCommandStreamOutput$ = [4, n0, _IARCSO,
3655
3666
  ];
3656
3667
  var InvokeHarnessStreamOutput$ = [4, n0, _IHSO,
3657
3668
  { [_st]: 1 },
3658
- [_mSe, _cBS, _cBD, _cBSo, _mSes, _met, _iSE, _vE, _rCE],
3659
- [() => HarnessMessageStartEvent$, () => HarnessContentBlockStartEvent$, [() => HarnessContentBlockDeltaEvent$, 0], () => HarnessContentBlockStopEvent$, () => HarnessMessageStopEvent$, () => HarnessMetadataEvent$, [() => InternalServerException$, 0], [() => ValidationException$, 0], [() => RuntimeClientError$, 0]]
3669
+ [_mSe, _cBS, _cBD, _cBSo, _mSes, _met, _iSE, _vE, _rCE, _hEo],
3670
+ [() => HarnessMessageStartEvent$, () => HarnessContentBlockStartEvent$, [() => HarnessContentBlockDeltaEvent$, 0], () => HarnessContentBlockStopEvent$, () => HarnessMessageStopEvent$, () => HarnessMetadataEvent$, [() => InternalServerException$, 0], [() => ValidationException$, 0], [() => RuntimeClientError$, 0], () => HarnessHookEvent$]
3660
3671
  ];
3661
3672
  var LeftExpression$ = [4, n0, _LE,
3662
3673
  0,
@@ -4679,9 +4690,20 @@ const HarnessToolType = {
4679
4690
  INLINE_FUNCTION: "inline_function",
4680
4691
  REMOTE_MCP: "remote_mcp",
4681
4692
  };
4693
+ const HarnessHookDecision = {
4694
+ ALLOW: "allow",
4695
+ DENY: "deny",
4696
+ };
4697
+ const HarnessHookEventType = {
4698
+ AFTER_INVOCATION: "after_invocation",
4699
+ AFTER_TOOL_CALL: "after_tool_call",
4700
+ BEFORE_INVOCATION: "before_invocation",
4701
+ BEFORE_TOOL_CALL: "before_tool_call",
4702
+ };
4682
4703
  const HarnessStopReason = {
4683
4704
  CONTENT_FILTERED: "content_filtered",
4684
4705
  END_TURN: "end_turn",
4706
+ HOOK_STOPPED: "hook_stopped",
4685
4707
  INTERRUPTED: "interrupted",
4686
4708
  MALFORMED_MODEL_OUTPUT: "malformed_model_output",
4687
4709
  MALFORMED_TOOL_USE: "malformed_tool_use",
@@ -5053,6 +5075,9 @@ exports.HarnessContentBlockStopEvent$ = HarnessContentBlockStopEvent$;
5053
5075
  exports.HarnessConversationRole = HarnessConversationRole;
5054
5076
  exports.HarnessGatewayOutboundAuth$ = HarnessGatewayOutboundAuth$;
5055
5077
  exports.HarnessGeminiModelConfig$ = HarnessGeminiModelConfig$;
5078
+ exports.HarnessHookDecision = HarnessHookDecision;
5079
+ exports.HarnessHookEvent$ = HarnessHookEvent$;
5080
+ exports.HarnessHookEventType = HarnessHookEventType;
5056
5081
  exports.HarnessInlineFunctionConfig$ = HarnessInlineFunctionConfig$;
5057
5082
  exports.HarnessLiteLlmModelConfig$ = HarnessLiteLlmModelConfig$;
5058
5083
  exports.HarnessMessage$ = HarnessMessage$;
@@ -220,9 +220,20 @@ export const HarnessToolType = {
220
220
  INLINE_FUNCTION: "inline_function",
221
221
  REMOTE_MCP: "remote_mcp",
222
222
  };
223
+ export const HarnessHookDecision = {
224
+ ALLOW: "allow",
225
+ DENY: "deny",
226
+ };
227
+ export const HarnessHookEventType = {
228
+ AFTER_INVOCATION: "after_invocation",
229
+ AFTER_TOOL_CALL: "after_tool_call",
230
+ BEFORE_INVOCATION: "before_invocation",
231
+ BEFORE_TOOL_CALL: "before_tool_call",
232
+ };
223
233
  export const HarnessStopReason = {
224
234
  CONTENT_FILTERED: "content_filtered",
225
235
  END_TURN: "end_turn",
236
+ HOOK_STOPPED: "hook_stopped",
226
237
  INTERRUPTED: "interrupted",
227
238
  MALFORMED_MODEL_OUTPUT: "malformed_model_output",
228
239
  MALFORMED_TOOL_USE: "malformed_tool_use",
@@ -245,6 +245,7 @@ const _HCBSEa = "HarnessContentBlockStopEvent";
245
245
  const _HCBa = "HarnessContentBlock";
246
246
  const _HGMC = "HarnessGeminiModelConfig";
247
247
  const _HGOA = "HarnessGatewayOutboundAuth";
248
+ const _HHE = "HarnessHookEvent";
248
249
  const _HHM = "HttpHeadersMap";
249
250
  const _HIFC = "HarnessInlineFunctionConfig";
250
251
  const _HIFD = "HarnessInlineFunctionDescription";
@@ -256,6 +257,7 @@ const _HME = "HarnessMetadataEvent";
256
257
  const _HMSE = "HarnessMessageStartEvent";
257
258
  const _HMSEa = "HarnessMessageStopEvent";
258
259
  const _HMa = "HarnessMessages";
260
+ const _HOAAB = "HarnessOpenAiApiBase";
259
261
  const _HOAMC = "HarnessOpenAiModelConfig";
260
262
  const _HRCB = "HarnessReasoningContentBlock";
261
263
  const _HRCBD = "HarnessReasoningContentBlockDelta";
@@ -716,7 +718,8 @@ const _dX = "deltaX";
716
718
  const _dY = "deltaY";
717
719
  const _da = "data";
718
720
  const _de = "delta";
719
- const _dec = "decimals";
721
+ const _dec = "decision";
722
+ const _deci = "decimals";
720
723
  const _des = "descriptors";
721
724
  const _e = "error";
722
725
  const _eA = "evaluatorArn";
@@ -790,6 +793,8 @@ const _go = "google";
790
793
  const _h = "headers";
791
794
  const _hA = "harnessArn";
792
795
  const _hE = "httpError";
796
+ const _hEI = "hookEventId";
797
+ const _hEo = "hookEvent";
793
798
  const _hH = "httpHeader";
794
799
  const _hQ = "httpQuery";
795
800
  const _he = "height";
@@ -1136,10 +1141,10 @@ const n0 = "com.amazonaws.bedrockagentcore";
1136
1141
  import { TypeRegistry } from "@smithy/core/schema";
1137
1142
  import { BedrockAgentCoreServiceException } from "../models/BedrockAgentCoreServiceException";
1138
1143
  import { AccessDeniedException, ConflictException, DuplicateIdException, InternalServerException, InvalidInputException, ResourceNotFoundException, RetryableConflictException, RuntimeClientError, ServiceException, ServiceQuotaExceededException, SubscriptionRequiredException, ThrottledException, ThrottlingException, UnauthorizedException, ValidationException, } from "../models/errors";
1139
- const _s_registry = TypeRegistry.for(_s);
1144
+ const _s_registry = new TypeRegistry(_s);
1140
1145
  export var BedrockAgentCoreServiceException$ = [-3, _s, "BedrockAgentCoreServiceException", 0, [], []];
1141
1146
  _s_registry.registerError(BedrockAgentCoreServiceException$, BedrockAgentCoreServiceException);
1142
- const n0_registry = TypeRegistry.for(n0);
1147
+ const n0_registry = new TypeRegistry(n0);
1143
1148
  export var AccessDeniedException$ = [-3, n0, _ADE,
1144
1149
  { [_e]: _c, [_hE]: 403 },
1145
1150
  [_m],
@@ -1245,6 +1250,7 @@ var Email = [0, n0, _E, 8, 0];
1245
1250
  var EvaluationExplanation = [0, n0, _EE, 8, 0];
1246
1251
  var HarnessInlineFunctionDescription = [0, n0, _HIFD, 8, 0];
1247
1252
  var HarnessLiteLlmApiBase = [0, n0, _HLLAB, 8, 0];
1253
+ var HarnessOpenAiApiBase = [0, n0, _HOAAB, 8, 0];
1248
1254
  var HarnessRemoteMcpUrl = [0, n0, _HRMU, 8, 0];
1249
1255
  var MemoryDocument = [0, n0, _MD, 8, 15];
1250
1256
  var MemoryJsonDataContent = [0, n0, _MJDC, 8, 15];
@@ -2004,6 +2010,11 @@ export var HarnessGeminiModelConfig$ = [3, n0, _HGMC,
2004
2010
  [_mIo, _aKA, _mTa, _tem, _tPo, _tK, _aP],
2005
2011
  [0, 0, 1, 1, 1, 1, 15], 2
2006
2012
  ];
2013
+ export var HarnessHookEvent$ = [3, n0, _HHE,
2014
+ 0,
2015
+ [_hEI, _n, _t, _dec, _r],
2016
+ [0, 0, 0, 0, 0], 3
2017
+ ];
2007
2018
  export var HarnessInlineFunctionConfig$ = [3, n0, _HIFC,
2008
2019
  0,
2009
2020
  [_d, _iS],
@@ -2036,8 +2047,8 @@ export var HarnessMetadataEvent$ = [3, n0, _HME,
2036
2047
  ];
2037
2048
  export var HarnessOpenAiModelConfig$ = [3, n0, _HOAMC,
2038
2049
  0,
2039
- [_mIo, _aKA, _mTa, _tem, _tPo, _aF, _aP],
2040
- [0, 0, 1, 1, 1, 0, 15], 2
2050
+ [_mIo, _aKA, _aB, _mTa, _tem, _tPo, _aF, _aP],
2051
+ [0, 0, [() => HarnessOpenAiApiBase, 0], 1, 1, 1, 0, 15], 2
2041
2052
  ];
2042
2053
  export var HarnessReasoningTextBlock$ = [3, n0, _HRTB,
2043
2054
  8,
@@ -2811,7 +2822,7 @@ export var TargetRef$ = [3, n0, _TR,
2811
2822
  ];
2812
2823
  export var TokenBalance$ = [3, n0, _TB,
2813
2824
  0,
2814
- [_am, _dec, _to, _ne, _ch],
2825
+ [_am, _deci, _to, _ne, _ch],
2815
2826
  [0, 1, 0, 0, 0], 5
2816
2827
  ];
2817
2828
  export var TokenUsage$ = [3, n0, _TU,
@@ -3307,7 +3318,7 @@ export var HarnessGatewayOutboundAuth$ = [4, n0, _HGOA,
3307
3318
  export var HarnessModelConfiguration$ = [4, n0, _HMC,
3308
3319
  0,
3309
3320
  [_bMC, _oAMC, _gMC, _lLMC],
3310
- [() => HarnessBedrockModelConfig$, () => HarnessOpenAiModelConfig$, () => HarnessGeminiModelConfig$, [() => HarnessLiteLlmModelConfig$, 0]]
3321
+ [() => HarnessBedrockModelConfig$, [() => HarnessOpenAiModelConfig$, 0], () => HarnessGeminiModelConfig$, [() => HarnessLiteLlmModelConfig$, 0]]
3311
3322
  ];
3312
3323
  export var HarnessReasoningContentBlock$ = [4, n0, _HRCB,
3313
3324
  8,
@@ -3356,8 +3367,8 @@ export var InvokeAgentRuntimeCommandStreamOutput$ = [4, n0, _IARCSO,
3356
3367
  ];
3357
3368
  export var InvokeHarnessStreamOutput$ = [4, n0, _IHSO,
3358
3369
  { [_st]: 1 },
3359
- [_mSe, _cBS, _cBD, _cBSo, _mSes, _met, _iSE, _vE, _rCE],
3360
- [() => HarnessMessageStartEvent$, () => HarnessContentBlockStartEvent$, [() => HarnessContentBlockDeltaEvent$, 0], () => HarnessContentBlockStopEvent$, () => HarnessMessageStopEvent$, () => HarnessMetadataEvent$, [() => InternalServerException$, 0], [() => ValidationException$, 0], [() => RuntimeClientError$, 0]]
3370
+ [_mSe, _cBS, _cBD, _cBSo, _mSes, _met, _iSE, _vE, _rCE, _hEo],
3371
+ [() => HarnessMessageStartEvent$, () => HarnessContentBlockStartEvent$, [() => HarnessContentBlockDeltaEvent$, 0], () => HarnessContentBlockStopEvent$, () => HarnessMessageStopEvent$, () => HarnessMetadataEvent$, [() => InternalServerException$, 0], [() => ValidationException$, 0], [() => RuntimeClientError$, 0], () => HarnessHookEvent$]
3361
3372
  ];
3362
3373
  export var LeftExpression$ = [4, n0, _LE,
3363
3374
  0,