@aws-sdk/client-bedrock-agentcore 3.1008.0 → 3.1010.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/README.md CHANGED
@@ -9,8 +9,9 @@ AWS SDK for JavaScript BedrockAgentCore Client for Node.js, Browser and React Na
9
9
  <p>Welcome to the Amazon Bedrock AgentCore Data Plane API reference. Data Plane actions process and handle data or workloads within Amazon Web Services services. </p>
10
10
 
11
11
  ## Installing
12
- To install this package, simply type add or install @aws-sdk/client-bedrock-agentcore
13
- using your favorite package manager:
12
+
13
+ To install this package, use the CLI of your favorite package manager:
14
+
14
15
  - `npm install @aws-sdk/client-bedrock-agentcore`
15
16
  - `yarn add @aws-sdk/client-bedrock-agentcore`
16
17
  - `pnpm add @aws-sdk/client-bedrock-agentcore`
@@ -35,15 +36,15 @@ import { BedrockAgentCoreClient, ListActorsCommand } from "@aws-sdk/client-bedro
35
36
 
36
37
  ### Usage
37
38
 
38
- To send a request, you:
39
+ To send a request:
39
40
 
40
- - Initiate client with configuration (e.g. credentials, region).
41
- - Initiate command with input parameters.
42
- - Call `send` operation on client with command object as input.
43
- - If you are using a custom http handler, you may call `destroy()` to close open connections.
41
+ - Instantiate a client with configuration (e.g. credentials, region).
42
+ - See [docs/CLIENTS](https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/CLIENTS.md) for configuration details.
43
+ - See [@aws-sdk/config](https://github.com/aws/aws-sdk-js-v3/blob/main/packages/config/README.md) for additional options.
44
+ - Instantiate a command with input parameters.
45
+ - Call the `send` operation on the client, providing the command object as input.
44
46
 
45
47
  ```js
46
- // a client can be shared by different commands.
47
48
  const client = new BedrockAgentCoreClient({ region: "REGION" });
48
49
 
49
50
  const params = { /** input parameters */ };
@@ -52,7 +53,7 @@ const command = new ListActorsCommand(params);
52
53
 
53
54
  #### Async/await
54
55
 
55
- We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
56
+ We recommend using the [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await)
56
57
  operator to wait for the promise returned by send operation as follows:
57
58
 
58
59
  ```js
@@ -67,26 +68,9 @@ try {
67
68
  }
68
69
  ```
69
70
 
70
- Async-await is clean, concise, intuitive, easy to debug and has better error handling
71
- as compared to using Promise chains or callbacks.
72
-
73
71
  #### Promises
74
72
 
75
- You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining)
76
- to execute send operation.
77
-
78
- ```js
79
- client.send(command).then(
80
- (data) => {
81
- // process data.
82
- },
83
- (error) => {
84
- // error handling.
85
- }
86
- );
87
- ```
88
-
89
- Promises can also be called using `.catch()` and `.finally()` as follows:
73
+ You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining).
90
74
 
91
75
  ```js
92
76
  client
@@ -102,27 +86,21 @@ client
102
86
  });
103
87
  ```
104
88
 
105
- #### Callbacks
89
+ #### Aggregated client
106
90
 
107
- We do not recommend using callbacks because of [callback hell](http://callbackhell.com/),
108
- but they are supported by the send operation.
91
+ The aggregated client class is exported from the same package, but without the "Client" suffix.
109
92
 
110
- ```js
111
- // callbacks.
112
- client.send(command, (err, data) => {
113
- // process err and data.
114
- });
115
- ```
116
-
117
- #### v2 compatible style
93
+ `BedrockAgentCore` extends `BedrockAgentCoreClient` and additionally supports all operations, waiters, and paginators as methods.
94
+ This style may be familiar to you from the AWS SDK for JavaScript v2.
118
95
 
119
- The client can also send requests using v2 compatible style.
120
- However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post
121
- on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/)
96
+ If you are bundling the AWS SDK, we recommend using only the bare-bones client (`BedrockAgentCoreClient`).
97
+ More details are in the blog post on
98
+ [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/).
122
99
 
123
100
  ```ts
124
- import * as AWS from "@aws-sdk/client-bedrock-agentcore";
125
- const client = new AWS.BedrockAgentCore({ region: "REGION" });
101
+ import { BedrockAgentCore } from "@aws-sdk/client-bedrock-agentcore";
102
+
103
+ const client = new BedrockAgentCore({ region: "REGION" });
126
104
 
127
105
  // async/await.
128
106
  try {
@@ -142,7 +120,7 @@ client
142
120
  // error handling.
143
121
  });
144
122
 
145
- // callbacks.
123
+ // callbacks (not recommended).
146
124
  client.listActors(params, (err, data) => {
147
125
  // process err and data.
148
126
  });
@@ -170,12 +148,14 @@ try {
170
148
  }
171
149
  ```
172
150
 
151
+ See also [docs/ERROR_HANDLING](https://github.com/aws/aws-sdk-js-v3/blob/main/supplemental-docs/ERROR_HANDLING.md).
152
+
173
153
  ## Getting Help
174
154
 
175
155
  Please use these community resources for getting help.
176
- We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
156
+ We use GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them.
177
157
 
178
- - Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
158
+ - Visit the [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html)
179
159
  or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html).
180
160
  - Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/)
181
161
  on AWS Developer Blog.
@@ -334,6 +314,13 @@ InvokeAgentRuntime
334
314
  </details>
335
315
  <details>
336
316
  <summary>
317
+ InvokeAgentRuntimeCommand
318
+ </summary>
319
+
320
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/InvokeAgentRuntimeCommandCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/InvokeAgentRuntimeCommandCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/InvokeAgentRuntimeCommandCommandOutput/)
321
+ </details>
322
+ <details>
323
+ <summary>
337
324
  InvokeCodeInterpreter
338
325
  </summary>
339
326
 
package/dist-cjs/index.js CHANGED
@@ -343,6 +343,22 @@ class InvokeAgentRuntimeCommand extends smithyClient.Command
343
343
  .build() {
344
344
  }
345
345
 
346
+ class InvokeAgentRuntimeCommandCommand extends smithyClient.Command
347
+ .classBuilder()
348
+ .ep(commonParams)
349
+ .m(function (Command, cs, config, o) {
350
+ return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
351
+ })
352
+ .s("AmazonBedrockAgentCore", "InvokeAgentRuntimeCommand", {
353
+ eventStream: {
354
+ output: true,
355
+ },
356
+ })
357
+ .n("BedrockAgentCoreClient", "InvokeAgentRuntimeCommandCommand")
358
+ .sc(schemas_0.InvokeAgentRuntimeCommand$)
359
+ .build() {
360
+ }
361
+
346
362
  class InvokeCodeInterpreterCommand extends smithyClient.Command
347
363
  .classBuilder()
348
364
  .ep(commonParams)
@@ -583,6 +599,7 @@ const commands = {
583
599
  GetWorkloadAccessTokenForJWTCommand,
584
600
  GetWorkloadAccessTokenForUserIdCommand,
585
601
  InvokeAgentRuntimeCommand,
602
+ InvokeAgentRuntimeCommandCommand,
586
603
  InvokeCodeInterpreterCommand,
587
604
  ListActorsCommand,
588
605
  ListBrowserSessionsCommand,
@@ -620,6 +637,10 @@ const ValidationExceptionReason = {
620
637
  RESOURCE_CONFLICT: "ResourceConflict",
621
638
  ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession",
622
639
  };
640
+ const CommandExecutionStatus = {
641
+ COMPLETED: "COMPLETED",
642
+ TIMED_OUT: "TIMED_OUT",
643
+ };
623
644
  const BrowserSessionStatus = {
624
645
  READY: "READY",
625
646
  TERMINATED: "TERMINATED",
@@ -703,6 +724,7 @@ exports.BedrockAgentCore = BedrockAgentCore;
703
724
  exports.BedrockAgentCoreClient = BedrockAgentCoreClient;
704
725
  exports.BrowserSessionStatus = BrowserSessionStatus;
705
726
  exports.CodeInterpreterSessionStatus = CodeInterpreterSessionStatus;
727
+ exports.CommandExecutionStatus = CommandExecutionStatus;
706
728
  exports.CompleteResourceTokenAuthCommand = CompleteResourceTokenAuthCommand;
707
729
  exports.ContentBlockType = ContentBlockType;
708
730
  exports.CreateEventCommand = CreateEventCommand;
@@ -721,6 +743,7 @@ exports.GetWorkloadAccessTokenCommand = GetWorkloadAccessTokenCommand;
721
743
  exports.GetWorkloadAccessTokenForJWTCommand = GetWorkloadAccessTokenForJWTCommand;
722
744
  exports.GetWorkloadAccessTokenForUserIdCommand = GetWorkloadAccessTokenForUserIdCommand;
723
745
  exports.InvokeAgentRuntimeCommand = InvokeAgentRuntimeCommand;
746
+ exports.InvokeAgentRuntimeCommandCommand = InvokeAgentRuntimeCommandCommand;
724
747
  exports.InvokeCodeInterpreterCommand = InvokeCodeInterpreterCommand;
725
748
  exports.ListActorsCommand = ListActorsCommand;
726
749
  exports.ListBrowserSessionsCommand = ListBrowserSessionsCommand;
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ExternalProxy$ = exports.EventMetadataFilterExpression$ = exports.Event$ = exports.EvaluationResultContent$ = exports.EvaluateResponse$ = exports.EvaluateRequest$ = exports.DeleteMemoryRecordOutput$ = exports.DeleteMemoryRecordInput$ = exports.DeleteEventOutput$ = exports.DeleteEventInput$ = exports.CreateEventOutput$ = exports.CreateEventInput$ = exports.Conversational$ = exports.ContentBlock$ = exports.CompleteResourceTokenAuthResponse$ = exports.CompleteResourceTokenAuthRequest$ = exports.CodeInterpreterSessionSummary$ = exports.CodeInterpreterResult$ = exports.BrowserSessionSummary$ = exports.BrowserSessionStream$ = exports.BrowserProfileConfiguration$ = exports.BrowserExtension$ = exports.BranchFilter$ = exports.Branch$ = exports.BatchUpdateMemoryRecordsOutput$ = exports.BatchUpdateMemoryRecordsInput$ = exports.BatchDeleteMemoryRecordsOutput$ = exports.BatchDeleteMemoryRecordsInput$ = exports.BatchCreateMemoryRecordsOutput$ = exports.BatchCreateMemoryRecordsInput$ = exports.BasicAuth$ = exports.AutomationStreamUpdate$ = exports.AutomationStream$ = exports.ActorSummary$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.UnauthorizedException$ = exports.ThrottlingException$ = exports.ThrottledException$ = exports.ServiceQuotaExceededException$ = exports.ServiceException$ = exports.RuntimeClientError$ = exports.RetryableConflictException$ = exports.ResourceNotFoundException$ = exports.InvalidInputException$ = exports.InternalServerException$ = exports.DuplicateIdException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.BedrockAgentCoreServiceException$ = void 0;
4
- exports.MemoryRecordSummary$ = exports.MemoryRecordOutput$ = exports.MemoryRecordDeleteInput$ = exports.MemoryRecordCreateInput$ = exports.MemoryRecord$ = exports.MemoryMetadataFilterExpression$ = exports.LiveViewStream$ = exports.ListSessionsOutput$ = exports.ListSessionsInput$ = exports.ListMemoryRecordsOutput$ = exports.ListMemoryRecordsInput$ = exports.ListMemoryExtractionJobsOutput$ = exports.ListMemoryExtractionJobsInput$ = exports.ListEventsOutput$ = exports.ListEventsInput$ = exports.ListCodeInterpreterSessionsResponse$ = exports.ListCodeInterpreterSessionsRequest$ = exports.ListBrowserSessionsResponse$ = exports.ListBrowserSessionsRequest$ = exports.ListActorsOutput$ = exports.ListActorsInput$ = exports.InvokeCodeInterpreterResponse$ = exports.InvokeCodeInterpreterRequest$ = exports.InvokeAgentRuntimeResponse$ = exports.InvokeAgentRuntimeRequest$ = exports.InputContentBlock$ = exports.GetWorkloadAccessTokenResponse$ = exports.GetWorkloadAccessTokenRequest$ = exports.GetWorkloadAccessTokenForUserIdResponse$ = exports.GetWorkloadAccessTokenForUserIdRequest$ = exports.GetWorkloadAccessTokenForJWTResponse$ = exports.GetWorkloadAccessTokenForJWTRequest$ = exports.GetResourceOauth2TokenResponse$ = exports.GetResourceOauth2TokenRequest$ = exports.GetResourceApiKeyResponse$ = exports.GetResourceApiKeyRequest$ = exports.GetMemoryRecordOutput$ = exports.GetMemoryRecordInput$ = exports.GetEventOutput$ = exports.GetEventInput$ = exports.GetCodeInterpreterSessionResponse$ = exports.GetCodeInterpreterSessionRequest$ = exports.GetBrowserSessionResponse$ = exports.GetBrowserSessionRequest$ = exports.GetAgentCardResponse$ = exports.GetAgentCardRequest$ = exports.FilterInput$ = exports.ExtractionJobMetadata$ = exports.ExtractionJobFilterInput$ = exports.ExtractionJob$ = void 0;
5
- exports.BatchDeleteMemoryRecords$ = exports.BatchCreateMemoryRecords$ = exports.UserIdentifier$ = exports.StreamUpdate$ = exports.RightExpression$ = exports.ResourceLocation$ = exports.ProxyCredentials$ = exports.Proxy$ = exports.PayloadType$ = exports.MetadataValue$ = exports.MemoryContent$ = exports.LeftExpression$ = exports.ExtractionJobMessages$ = exports.EvaluationTarget$ = exports.EvaluationInput$ = exports.Context$ = exports.Content$ = exports.CodeInterpreterStreamOutput$ = exports.ViewPort$ = exports.ValidationExceptionField$ = exports.UpdateBrowserStreamResponse$ = exports.UpdateBrowserStreamRequest$ = exports.ToolResultStructuredContent$ = exports.ToolArguments$ = exports.TokenUsage$ = exports.StopRuntimeSessionResponse$ = exports.StopRuntimeSessionRequest$ = exports.StopCodeInterpreterSessionResponse$ = exports.StopCodeInterpreterSessionRequest$ = exports.StopBrowserSessionResponse$ = exports.StopBrowserSessionRequest$ = exports.StartMemoryExtractionJobOutput$ = exports.StartMemoryExtractionJobInput$ = exports.StartCodeInterpreterSessionResponse$ = exports.StartCodeInterpreterSessionRequest$ = exports.StartBrowserSessionResponse$ = exports.StartBrowserSessionRequest$ = exports.SpanContext$ = exports.SessionSummary$ = exports.SearchCriteria$ = exports.SaveBrowserSessionProfileResponse$ = exports.SaveBrowserSessionProfileRequest$ = exports.S3Location$ = exports.RetrieveMemoryRecordsOutput$ = exports.RetrieveMemoryRecordsInput$ = exports.ResourceContent$ = exports.ProxyConfiguration$ = exports.ProxyBypass$ = exports.MessageMetadata$ = exports.MemoryRecordUpdateInput$ = void 0;
6
- exports.UpdateBrowserStream$ = exports.StopRuntimeSession$ = exports.StopCodeInterpreterSession$ = exports.StopBrowserSession$ = exports.StartMemoryExtractionJob$ = exports.StartCodeInterpreterSession$ = exports.StartBrowserSession$ = exports.SaveBrowserSessionProfile$ = exports.RetrieveMemoryRecords$ = exports.ListSessions$ = exports.ListMemoryRecords$ = exports.ListMemoryExtractionJobs$ = exports.ListEvents$ = exports.ListCodeInterpreterSessions$ = exports.ListBrowserSessions$ = exports.ListActors$ = exports.InvokeCodeInterpreter$ = exports.InvokeAgentRuntime$ = exports.GetWorkloadAccessTokenForUserId$ = exports.GetWorkloadAccessTokenForJWT$ = exports.GetWorkloadAccessToken$ = exports.GetResourceOauth2Token$ = exports.GetResourceApiKey$ = exports.GetMemoryRecord$ = exports.GetEvent$ = exports.GetCodeInterpreterSession$ = exports.GetBrowserSession$ = exports.GetAgentCard$ = exports.Evaluate$ = exports.DeleteMemoryRecord$ = exports.DeleteEvent$ = exports.CreateEvent$ = exports.CompleteResourceTokenAuth$ = exports.BatchUpdateMemoryRecords$ = void 0;
3
+ exports.EvaluationResultContent$ = exports.EvaluateResponse$ = exports.EvaluateRequest$ = exports.DeleteMemoryRecordOutput$ = exports.DeleteMemoryRecordInput$ = exports.DeleteEventOutput$ = exports.DeleteEventInput$ = exports.CreateEventOutput$ = exports.CreateEventInput$ = exports.Conversational$ = exports.ContentStopEvent$ = exports.ContentStartEvent$ = exports.ContentDeltaEvent$ = exports.ContentBlock$ = exports.CompleteResourceTokenAuthResponse$ = exports.CompleteResourceTokenAuthRequest$ = exports.CodeInterpreterSessionSummary$ = exports.CodeInterpreterResult$ = exports.BrowserSessionSummary$ = exports.BrowserSessionStream$ = exports.BrowserProfileConfiguration$ = exports.BrowserExtension$ = exports.BranchFilter$ = exports.Branch$ = exports.BatchUpdateMemoryRecordsOutput$ = exports.BatchUpdateMemoryRecordsInput$ = exports.BatchDeleteMemoryRecordsOutput$ = exports.BatchDeleteMemoryRecordsInput$ = exports.BatchCreateMemoryRecordsOutput$ = exports.BatchCreateMemoryRecordsInput$ = exports.BasicAuth$ = exports.AutomationStreamUpdate$ = exports.AutomationStream$ = exports.ActorSummary$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.UnauthorizedException$ = exports.ThrottlingException$ = exports.ThrottledException$ = exports.ServiceQuotaExceededException$ = exports.ServiceException$ = exports.RuntimeClientError$ = exports.RetryableConflictException$ = exports.ResourceNotFoundException$ = exports.InvalidInputException$ = exports.InternalServerException$ = exports.DuplicateIdException$ = exports.ConflictException$ = exports.AccessDeniedException$ = exports.BedrockAgentCoreServiceException$ = void 0;
4
+ exports.LiveViewStream$ = exports.ListSessionsOutput$ = exports.ListSessionsInput$ = exports.ListMemoryRecordsOutput$ = exports.ListMemoryRecordsInput$ = exports.ListMemoryExtractionJobsOutput$ = exports.ListMemoryExtractionJobsInput$ = exports.ListEventsOutput$ = exports.ListEventsInput$ = exports.ListCodeInterpreterSessionsResponse$ = exports.ListCodeInterpreterSessionsRequest$ = exports.ListBrowserSessionsResponse$ = exports.ListBrowserSessionsRequest$ = exports.ListActorsOutput$ = exports.ListActorsInput$ = exports.InvokeCodeInterpreterResponse$ = exports.InvokeCodeInterpreterRequest$ = exports.InvokeAgentRuntimeResponse$ = exports.InvokeAgentRuntimeRequest$ = exports.InvokeAgentRuntimeCommandResponse$ = exports.InvokeAgentRuntimeCommandRequestBody$ = exports.InvokeAgentRuntimeCommandRequest$ = exports.InputContentBlock$ = exports.GetWorkloadAccessTokenResponse$ = exports.GetWorkloadAccessTokenRequest$ = exports.GetWorkloadAccessTokenForUserIdResponse$ = exports.GetWorkloadAccessTokenForUserIdRequest$ = exports.GetWorkloadAccessTokenForJWTResponse$ = exports.GetWorkloadAccessTokenForJWTRequest$ = exports.GetResourceOauth2TokenResponse$ = exports.GetResourceOauth2TokenRequest$ = exports.GetResourceApiKeyResponse$ = exports.GetResourceApiKeyRequest$ = exports.GetMemoryRecordOutput$ = exports.GetMemoryRecordInput$ = exports.GetEventOutput$ = exports.GetEventInput$ = exports.GetCodeInterpreterSessionResponse$ = exports.GetCodeInterpreterSessionRequest$ = exports.GetBrowserSessionResponse$ = exports.GetBrowserSessionRequest$ = exports.GetAgentCardResponse$ = exports.GetAgentCardRequest$ = exports.FilterInput$ = exports.ExtractionJobMetadata$ = exports.ExtractionJobFilterInput$ = exports.ExtractionJob$ = exports.ExternalProxy$ = exports.EventMetadataFilterExpression$ = exports.Event$ = void 0;
5
+ exports.PayloadType$ = exports.MetadataValue$ = exports.MemoryContent$ = exports.LeftExpression$ = exports.InvokeAgentRuntimeCommandStreamOutput$ = exports.ExtractionJobMessages$ = exports.EvaluationTarget$ = exports.EvaluationInput$ = exports.Context$ = exports.Content$ = exports.CodeInterpreterStreamOutput$ = exports.ViewPort$ = exports.ValidationExceptionField$ = exports.UpdateBrowserStreamResponse$ = exports.UpdateBrowserStreamRequest$ = exports.ToolResultStructuredContent$ = exports.ToolArguments$ = exports.TokenUsage$ = exports.StopRuntimeSessionResponse$ = exports.StopRuntimeSessionRequest$ = exports.StopCodeInterpreterSessionResponse$ = exports.StopCodeInterpreterSessionRequest$ = exports.StopBrowserSessionResponse$ = exports.StopBrowserSessionRequest$ = exports.StartMemoryExtractionJobOutput$ = exports.StartMemoryExtractionJobInput$ = exports.StartCodeInterpreterSessionResponse$ = exports.StartCodeInterpreterSessionRequest$ = exports.StartBrowserSessionResponse$ = exports.StartBrowserSessionRequest$ = exports.SpanContext$ = exports.SessionSummary$ = exports.SearchCriteria$ = exports.SaveBrowserSessionProfileResponse$ = exports.SaveBrowserSessionProfileRequest$ = exports.S3Location$ = exports.RetrieveMemoryRecordsOutput$ = exports.RetrieveMemoryRecordsInput$ = exports.ResponseChunk$ = exports.ResourceContent$ = exports.ProxyConfiguration$ = exports.ProxyBypass$ = exports.MessageMetadata$ = exports.MemoryRecordUpdateInput$ = exports.MemoryRecordSummary$ = exports.MemoryRecordOutput$ = exports.MemoryRecordDeleteInput$ = exports.MemoryRecordCreateInput$ = exports.MemoryRecord$ = exports.MemoryMetadataFilterExpression$ = void 0;
6
+ exports.UpdateBrowserStream$ = exports.StopRuntimeSession$ = exports.StopCodeInterpreterSession$ = exports.StopBrowserSession$ = exports.StartMemoryExtractionJob$ = exports.StartCodeInterpreterSession$ = exports.StartBrowserSession$ = exports.SaveBrowserSessionProfile$ = exports.RetrieveMemoryRecords$ = exports.ListSessions$ = exports.ListMemoryRecords$ = exports.ListMemoryExtractionJobs$ = exports.ListEvents$ = exports.ListCodeInterpreterSessions$ = exports.ListBrowserSessions$ = exports.ListActors$ = exports.InvokeCodeInterpreter$ = exports.InvokeAgentRuntimeCommand$ = exports.InvokeAgentRuntime$ = exports.GetWorkloadAccessTokenForUserId$ = exports.GetWorkloadAccessTokenForJWT$ = exports.GetWorkloadAccessToken$ = exports.GetResourceOauth2Token$ = exports.GetResourceApiKey$ = exports.GetMemoryRecord$ = exports.GetEvent$ = exports.GetCodeInterpreterSession$ = exports.GetBrowserSession$ = exports.GetAgentCard$ = exports.Evaluate$ = exports.DeleteMemoryRecord$ = exports.DeleteEvent$ = exports.CreateEvent$ = exports.CompleteResourceTokenAuth$ = exports.BatchUpdateMemoryRecords$ = exports.BatchDeleteMemoryRecords$ = exports.BatchCreateMemoryRecords$ = exports.UserIdentifier$ = exports.StreamUpdate$ = exports.RightExpression$ = exports.ResourceLocation$ = exports.ProxyCredentials$ = exports.Proxy$ = void 0;
7
7
  const _A = "Accept";
8
8
  const _ADE = "AccessDeniedException";
9
9
  const _AKT = "ApiKeyType";
@@ -35,6 +35,7 @@ const _Br = "Branch";
35
35
  const _C = "Conversational";
36
36
  const _CB = "ContentBlock";
37
37
  const _CBL = "ContentBlockList";
38
+ const _CDE = "ContentDeltaEvent";
38
39
  const _CE = "ConflictException";
39
40
  const _CEI = "CreateEventInput";
40
41
  const _CEO = "CreateEventOutput";
@@ -48,6 +49,8 @@ const _CRTA = "CompleteResourceTokenAuth";
48
49
  const _CRTAR = "CompleteResourceTokenAuthRequest";
49
50
  const _CRTARo = "CompleteResourceTokenAuthResponse";
50
51
  const _CRVT = "CustomRequestValueType";
52
+ const _CSE = "ContentStartEvent";
53
+ const _CSEo = "ContentStopEvent";
51
54
  const _CT = "Content-Type";
52
55
  const _Co = "Content";
53
56
  const _Con = "Context";
@@ -109,6 +112,11 @@ const _GWATFUIRe = "GetWorkloadAccessTokenForUserIdResponse";
109
112
  const _GWATR = "GetWorkloadAccessTokenRequest";
110
113
  const _GWATRe = "GetWorkloadAccessTokenResponse";
111
114
  const _IAR = "InvokeAgentRuntime";
115
+ const _IARC = "InvokeAgentRuntimeCommand";
116
+ const _IARCR = "InvokeAgentRuntimeCommandRequest";
117
+ const _IARCRB = "InvokeAgentRuntimeCommandRequestBody";
118
+ const _IARCRn = "InvokeAgentRuntimeCommandResponse";
119
+ const _IARCSO = "InvokeAgentRuntimeCommandStreamOutput";
112
120
  const _IARR = "InvokeAgentRuntimeRequest";
113
121
  const _IARRn = "InvokeAgentRuntimeResponse";
114
122
  const _ICB = "InputContentBlock";
@@ -171,6 +179,7 @@ const _Pr = "Proxy";
171
179
  const _RC = "ResourceContent";
172
180
  const _RCE = "RetryableConflictException";
173
181
  const _RCEu = "RuntimeClientError";
182
+ const _RCe = "ResponseChunk";
174
183
  const _RE = "RightExpression";
175
184
  const _RL = "ResourceLocation";
176
185
  const _RMR = "RetrieveMemoryRecords";
@@ -247,17 +256,22 @@ const _bA = "basicAuth";
247
256
  const _bI = "browserIdentifier";
248
257
  const _ba = "baggage";
249
258
  const _bl = "blob";
259
+ const _bo = "body";
250
260
  const _bu = "bucket";
251
261
  const _by = "bypass";
252
262
  const _c = "client";
253
263
  const _cA = "createdAt";
254
264
  const _cC = "clearContext";
265
+ const _cD = "contentDelta";
255
266
  const _cE = "conflictException";
256
267
  const _cII = "codeInterpreterIdentifier";
257
268
  const _cP = "customParameters";
258
269
  const _cS = "customState";
270
+ const _cSo = "contentStart";
271
+ const _cSon = "contentStop";
259
272
  const _cT = "clientToken";
260
273
  const _cTo = "contentType";
274
+ const _ch = "chunk";
261
275
  const _co = "content";
262
276
  const _cod = "code";
263
277
  const _com = "command";
@@ -270,8 +284,8 @@ const _dPi = "directoryPath";
270
284
  const _de = "description";
271
285
  const _e = "error";
272
286
  const _eA = "evaluatorArn";
273
- const _eC = "errorCode";
274
- const _eCx = "exitCode";
287
+ const _eC = "exitCode";
288
+ const _eCr = "errorCode";
275
289
  const _eI = "eventId";
276
290
  const _eIv = "evaluatorId";
277
291
  const _eIva = "evaluationInput";
@@ -349,6 +363,7 @@ const _pr = "proxies";
349
363
  const _pre = "prefix";
350
364
  const _q = "qualifier";
351
365
  const _r = "reason";
366
+ const _rCE = "runtimeClientError";
352
367
  const _rCPN = "resourceCredentialProviderName";
353
368
  const _rEI = "rootEventId";
354
369
  const _rI = "requestIdentifier";
@@ -409,7 +424,8 @@ const _tSa = "taskStatus";
409
424
  const _tT = "totalTokens";
410
425
  const _tU = "tokenUsage";
411
426
  const _te = "text";
412
- const _ti = "timestamp";
427
+ const _ti = "timeout";
428
+ const _tim = "timestamp";
413
429
  const _tr = "traceparent";
414
430
  const _tra = "tracestate";
415
431
  const _u = "uri";
@@ -639,6 +655,21 @@ exports.ContentBlock$ = [3, n0, _CB,
639
655
  [_t, _te, _d, _mT, _u, _n, _de, _si, _res],
640
656
  [0, 0, 21, 0, 0, 0, 0, 1, () => exports.ResourceContent$], 1
641
657
  ];
658
+ exports.ContentDeltaEvent$ = [3, n0, _CDE,
659
+ 0,
660
+ [_std, _stde],
661
+ [0, 0]
662
+ ];
663
+ exports.ContentStartEvent$ = [3, n0, _CSE,
664
+ 0,
665
+ [],
666
+ []
667
+ ];
668
+ exports.ContentStopEvent$ = [3, n0, _CSEo,
669
+ 0,
670
+ [_eC, _sta],
671
+ [1, 0], 2
672
+ ];
642
673
  exports.Conversational$ = [3, n0, _C,
643
674
  0,
644
675
  [_co, _ro],
@@ -686,7 +717,7 @@ exports.EvaluateResponse$ = [3, n0, _ERv,
686
717
  ];
687
718
  exports.EvaluationResultContent$ = [3, n0, _ERC,
688
719
  0,
689
- [_eA, _eIv, _eN, _con, _ex, _v, _la, _tU, _eM, _eC],
720
+ [_eA, _eIv, _eN, _con, _ex, _v, _la, _tU, _eM, _eCr],
690
721
  [0, 0, 0, () => exports.Context$, [() => EvaluationExplanation, 0], 1, 0, () => exports.TokenUsage$, 0, 0], 4
691
722
  ];
692
723
  exports.Event$ = [3, n0, _E,
@@ -829,6 +860,21 @@ exports.InputContentBlock$ = [3, n0, _ICB,
829
860
  [_pa, _te, _bl],
830
861
  [0, 0, [() => Body, 0]], 1
831
862
  ];
863
+ exports.InvokeAgentRuntimeCommandRequest$ = [3, n0, _IARCR,
864
+ 0,
865
+ [_aRA, _bo, _cTo, _a, _rSI, _tI, _tP, _tS, _ba, _q, _aIc],
866
+ [[0, 1], [() => exports.InvokeAgentRuntimeCommandRequestBody$, 16], [0, { [_hH]: _CT }], [0, { [_hH]: _A }], [0, { [_hH]: _XABARSI, [_iT]: 1 }], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], [0, { [_hH]: _tra }], [0, { [_hH]: _ba }], [0, { [_hQ]: _q }], [0, { [_hQ]: _aIc }]], 2
867
+ ];
868
+ exports.InvokeAgentRuntimeCommandRequestBody$ = [3, n0, _IARCRB,
869
+ 0,
870
+ [_com, _ti],
871
+ [0, 1], 1
872
+ ];
873
+ exports.InvokeAgentRuntimeCommandResponse$ = [3, n0, _IARCRn,
874
+ 0,
875
+ [_cTo, _stre, _rSI, _tI, _tP, _tS, _ba, _sCt],
876
+ [[0, { [_hH]: _CT }], [() => exports.InvokeAgentRuntimeCommandStreamOutput$, 16], [0, { [_hH]: _XABARSI }], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], [0, { [_hH]: _tra }], [0, { [_hH]: _ba }], [1, 32]], 2
877
+ ];
832
878
  exports.InvokeAgentRuntimeRequest$ = [3, n0, _IARR,
833
879
  0,
834
880
  [_aRA, _p, _cTo, _a, _mSI, _rSI, _mPV, _rUI, _tI, _tP, _tS, _ba, _q, _aIc],
@@ -936,7 +982,7 @@ exports.MemoryRecord$ = [3, n0, _MR,
936
982
  ];
937
983
  exports.MemoryRecordCreateInput$ = [3, n0, _MRCI,
938
984
  0,
939
- [_rI, _nam, _co, _ti, _mSIe],
985
+ [_rI, _nam, _co, _tim, _mSIe],
940
986
  [0, 64 | 0, [() => exports.MemoryContent$, 0], 4, 0], 4
941
987
  ];
942
988
  exports.MemoryRecordDeleteInput$ = [3, n0, _MRDI,
@@ -946,7 +992,7 @@ exports.MemoryRecordDeleteInput$ = [3, n0, _MRDI,
946
992
  ];
947
993
  exports.MemoryRecordOutput$ = [3, n0, _MRO,
948
994
  0,
949
- [_mRI, _sta, _rI, _eC, _eM],
995
+ [_mRI, _sta, _rI, _eCr, _eM],
950
996
  [0, 0, 0, 1, 0], 2
951
997
  ];
952
998
  exports.MemoryRecordSummary$ = [3, n0, _MRS,
@@ -956,7 +1002,7 @@ exports.MemoryRecordSummary$ = [3, n0, _MRS,
956
1002
  ];
957
1003
  exports.MemoryRecordUpdateInput$ = [3, n0, _MRUI,
958
1004
  0,
959
- [_mRI, _ti, _co, _nam, _mSIe],
1005
+ [_mRI, _tim, _co, _nam, _mSIe],
960
1006
  [0, 4, [() => exports.MemoryContent$, 0], 64 | 0, 0], 2
961
1007
  ];
962
1008
  exports.MessageMetadata$ = [3, n0, _MM,
@@ -979,6 +1025,11 @@ exports.ResourceContent$ = [3, n0, _RC,
979
1025
  [_t, _u, _mT, _te, _bl],
980
1026
  [0, 0, 0, 0, 21], 1
981
1027
  ];
1028
+ exports.ResponseChunk$ = [3, n0, _RCe,
1029
+ 0,
1030
+ [_cSo, _cD, _cSon],
1031
+ [() => exports.ContentStartEvent$, () => exports.ContentDeltaEvent$, () => exports.ContentStopEvent$]
1032
+ ];
982
1033
  exports.RetrieveMemoryRecordsInput$ = [3, n0, _RMRI,
983
1034
  0,
984
1035
  [_mI, _na, _sCe, _nT, _mRa],
@@ -1091,7 +1142,7 @@ exports.ToolArguments$ = [3, n0, _TA,
1091
1142
  ];
1092
1143
  exports.ToolResultStructuredContent$ = [3, n0, _TRSC,
1093
1144
  0,
1094
- [_tIa, _tSa, _std, _stde, _eCx, _eTx],
1145
+ [_tIa, _tSa, _std, _stde, _eC, _eTx],
1095
1146
  [0, 0, 0, 0, 1, 1]
1096
1147
  ];
1097
1148
  exports.UpdateBrowserStreamRequest$ = [3, n0, _UBSR,
@@ -1232,6 +1283,11 @@ exports.ExtractionJobMessages$ = [4, n0, _EJMx,
1232
1283
  [_mL],
1233
1284
  [() => MessagesList]
1234
1285
  ];
1286
+ exports.InvokeAgentRuntimeCommandStreamOutput$ = [4, n0, _IARCSO,
1287
+ { [_st]: 1 },
1288
+ [_ch, _aDE, _iSE, _rNFE, _sQEE, _tE, _vE, _rCE],
1289
+ [() => exports.ResponseChunk$, [() => exports.AccessDeniedException$, 0], [() => exports.InternalServerException$, 0], [() => exports.ResourceNotFoundException$, 0], [() => exports.ServiceQuotaExceededException$, 0], [() => exports.ThrottlingException$, 0], [() => exports.ValidationException$, 0], [() => exports.RuntimeClientError$, 0]]
1290
+ ];
1235
1291
  exports.LeftExpression$ = [4, n0, _LE,
1236
1292
  0,
1237
1293
  [_mK],
@@ -1339,6 +1395,9 @@ exports.GetWorkloadAccessTokenForUserId$ = [9, n0, _GWATFUI,
1339
1395
  exports.InvokeAgentRuntime$ = [9, n0, _IAR,
1340
1396
  { [_ht]: ["POST", "/runtimes/{agentRuntimeArn}/invocations", 200] }, () => exports.InvokeAgentRuntimeRequest$, () => exports.InvokeAgentRuntimeResponse$
1341
1397
  ];
1398
+ exports.InvokeAgentRuntimeCommand$ = [9, n0, _IARC,
1399
+ { [_ht]: ["POST", "/runtimes/{agentRuntimeArn}/commands", 200] }, () => exports.InvokeAgentRuntimeCommandRequest$, () => exports.InvokeAgentRuntimeCommandResponse$
1400
+ ];
1342
1401
  exports.InvokeCodeInterpreter$ = [9, n0, _ICI,
1343
1402
  { [_ht]: ["POST", "/code-interpreters/{codeInterpreterIdentifier}/tools/invoke", 200] }, () => exports.InvokeCodeInterpreterRequest$, () => exports.InvokeCodeInterpreterResponse$
1344
1403
  ];
@@ -19,6 +19,7 @@ import { GetWorkloadAccessTokenCommand, } from "./commands/GetWorkloadAccessToke
19
19
  import { GetWorkloadAccessTokenForJWTCommand, } from "./commands/GetWorkloadAccessTokenForJWTCommand";
20
20
  import { GetWorkloadAccessTokenForUserIdCommand, } from "./commands/GetWorkloadAccessTokenForUserIdCommand";
21
21
  import { InvokeAgentRuntimeCommand, } from "./commands/InvokeAgentRuntimeCommand";
22
+ import { InvokeAgentRuntimeCommandCommand, } from "./commands/InvokeAgentRuntimeCommandCommand";
22
23
  import { InvokeCodeInterpreterCommand, } from "./commands/InvokeCodeInterpreterCommand";
23
24
  import { ListActorsCommand } from "./commands/ListActorsCommand";
24
25
  import { ListBrowserSessionsCommand, } from "./commands/ListBrowserSessionsCommand";
@@ -62,6 +63,7 @@ const commands = {
62
63
  GetWorkloadAccessTokenForJWTCommand,
63
64
  GetWorkloadAccessTokenForUserIdCommand,
64
65
  InvokeAgentRuntimeCommand,
66
+ InvokeAgentRuntimeCommandCommand,
65
67
  InvokeCodeInterpreterCommand,
66
68
  ListActorsCommand,
67
69
  ListBrowserSessionsCommand,
@@ -0,0 +1,20 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { InvokeAgentRuntimeCommand$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class InvokeAgentRuntimeCommandCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("AmazonBedrockAgentCore", "InvokeAgentRuntimeCommand", {
13
+ eventStream: {
14
+ output: true,
15
+ },
16
+ })
17
+ .n("BedrockAgentCoreClient", "InvokeAgentRuntimeCommandCommand")
18
+ .sc(InvokeAgentRuntimeCommand$)
19
+ .build() {
20
+ }
@@ -17,6 +17,7 @@ export * from "./GetWorkloadAccessTokenCommand";
17
17
  export * from "./GetWorkloadAccessTokenForJWTCommand";
18
18
  export * from "./GetWorkloadAccessTokenForUserIdCommand";
19
19
  export * from "./InvokeAgentRuntimeCommand";
20
+ export * from "./InvokeAgentRuntimeCommandCommand";
20
21
  export * from "./InvokeCodeInterpreterCommand";
21
22
  export * from "./ListActorsCommand";
22
23
  export * from "./ListBrowserSessionsCommand";
@@ -5,6 +5,10 @@ export const ValidationExceptionReason = {
5
5
  RESOURCE_CONFLICT: "ResourceConflict",
6
6
  ROOT_EVENT_IN_OTHER_SESSION: "EventInOtherSession",
7
7
  };
8
+ export const CommandExecutionStatus = {
9
+ COMPLETED: "COMPLETED",
10
+ TIMED_OUT: "TIMED_OUT",
11
+ };
8
12
  export const BrowserSessionStatus = {
9
13
  READY: "READY",
10
14
  TERMINATED: "TERMINATED",