@aws-sdk/client-bedrock-agentcore 3.1009.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 +7 -0
- package/dist-cjs/index.js +23 -0
- package/dist-cjs/schemas/schemas_0.js +71 -12
- package/dist-es/BedrockAgentCore.js +2 -0
- package/dist-es/commands/InvokeAgentRuntimeCommandCommand.js +20 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/enums.js +4 -0
- package/dist-es/schemas/schemas_0.js +67 -8
- package/dist-types/BedrockAgentCore.d.ts +7 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +3 -2
- package/dist-types/commands/InvokeAgentRuntimeCommand.d.ts +1 -1
- package/dist-types/commands/InvokeAgentRuntimeCommandCommand.d.ts +156 -0
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/enums.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +350 -8
- package/dist-types/schemas/schemas_0.d.ts +9 -0
- package/dist-types/ts3.4/BedrockAgentCore.d.ts +17 -0
- package/dist-types/ts3.4/BedrockAgentCoreClient.d.ts +6 -0
- package/dist-types/ts3.4/commands/InvokeAgentRuntimeCommandCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/enums.d.ts +6 -0
- package/dist-types/ts3.4/models/models_0.d.ts +165 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +9 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -314,6 +314,13 @@ InvokeAgentRuntime
|
|
|
314
314
|
</details>
|
|
315
315
|
<details>
|
|
316
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>
|
|
317
324
|
InvokeCodeInterpreter
|
|
318
325
|
</summary>
|
|
319
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.
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
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 = "
|
|
274
|
-
const
|
|
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 = "
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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,
|
|
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";
|
package/dist-es/models/enums.js
CHANGED
|
@@ -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",
|
|
@@ -29,6 +29,7 @@ const _Br = "Branch";
|
|
|
29
29
|
const _C = "Conversational";
|
|
30
30
|
const _CB = "ContentBlock";
|
|
31
31
|
const _CBL = "ContentBlockList";
|
|
32
|
+
const _CDE = "ContentDeltaEvent";
|
|
32
33
|
const _CE = "ConflictException";
|
|
33
34
|
const _CEI = "CreateEventInput";
|
|
34
35
|
const _CEO = "CreateEventOutput";
|
|
@@ -42,6 +43,8 @@ const _CRTA = "CompleteResourceTokenAuth";
|
|
|
42
43
|
const _CRTAR = "CompleteResourceTokenAuthRequest";
|
|
43
44
|
const _CRTARo = "CompleteResourceTokenAuthResponse";
|
|
44
45
|
const _CRVT = "CustomRequestValueType";
|
|
46
|
+
const _CSE = "ContentStartEvent";
|
|
47
|
+
const _CSEo = "ContentStopEvent";
|
|
45
48
|
const _CT = "Content-Type";
|
|
46
49
|
const _Co = "Content";
|
|
47
50
|
const _Con = "Context";
|
|
@@ -103,6 +106,11 @@ const _GWATFUIRe = "GetWorkloadAccessTokenForUserIdResponse";
|
|
|
103
106
|
const _GWATR = "GetWorkloadAccessTokenRequest";
|
|
104
107
|
const _GWATRe = "GetWorkloadAccessTokenResponse";
|
|
105
108
|
const _IAR = "InvokeAgentRuntime";
|
|
109
|
+
const _IARC = "InvokeAgentRuntimeCommand";
|
|
110
|
+
const _IARCR = "InvokeAgentRuntimeCommandRequest";
|
|
111
|
+
const _IARCRB = "InvokeAgentRuntimeCommandRequestBody";
|
|
112
|
+
const _IARCRn = "InvokeAgentRuntimeCommandResponse";
|
|
113
|
+
const _IARCSO = "InvokeAgentRuntimeCommandStreamOutput";
|
|
106
114
|
const _IARR = "InvokeAgentRuntimeRequest";
|
|
107
115
|
const _IARRn = "InvokeAgentRuntimeResponse";
|
|
108
116
|
const _ICB = "InputContentBlock";
|
|
@@ -165,6 +173,7 @@ const _Pr = "Proxy";
|
|
|
165
173
|
const _RC = "ResourceContent";
|
|
166
174
|
const _RCE = "RetryableConflictException";
|
|
167
175
|
const _RCEu = "RuntimeClientError";
|
|
176
|
+
const _RCe = "ResponseChunk";
|
|
168
177
|
const _RE = "RightExpression";
|
|
169
178
|
const _RL = "ResourceLocation";
|
|
170
179
|
const _RMR = "RetrieveMemoryRecords";
|
|
@@ -241,17 +250,22 @@ const _bA = "basicAuth";
|
|
|
241
250
|
const _bI = "browserIdentifier";
|
|
242
251
|
const _ba = "baggage";
|
|
243
252
|
const _bl = "blob";
|
|
253
|
+
const _bo = "body";
|
|
244
254
|
const _bu = "bucket";
|
|
245
255
|
const _by = "bypass";
|
|
246
256
|
const _c = "client";
|
|
247
257
|
const _cA = "createdAt";
|
|
248
258
|
const _cC = "clearContext";
|
|
259
|
+
const _cD = "contentDelta";
|
|
249
260
|
const _cE = "conflictException";
|
|
250
261
|
const _cII = "codeInterpreterIdentifier";
|
|
251
262
|
const _cP = "customParameters";
|
|
252
263
|
const _cS = "customState";
|
|
264
|
+
const _cSo = "contentStart";
|
|
265
|
+
const _cSon = "contentStop";
|
|
253
266
|
const _cT = "clientToken";
|
|
254
267
|
const _cTo = "contentType";
|
|
268
|
+
const _ch = "chunk";
|
|
255
269
|
const _co = "content";
|
|
256
270
|
const _cod = "code";
|
|
257
271
|
const _com = "command";
|
|
@@ -264,8 +278,8 @@ const _dPi = "directoryPath";
|
|
|
264
278
|
const _de = "description";
|
|
265
279
|
const _e = "error";
|
|
266
280
|
const _eA = "evaluatorArn";
|
|
267
|
-
const _eC = "
|
|
268
|
-
const
|
|
281
|
+
const _eC = "exitCode";
|
|
282
|
+
const _eCr = "errorCode";
|
|
269
283
|
const _eI = "eventId";
|
|
270
284
|
const _eIv = "evaluatorId";
|
|
271
285
|
const _eIva = "evaluationInput";
|
|
@@ -343,6 +357,7 @@ const _pr = "proxies";
|
|
|
343
357
|
const _pre = "prefix";
|
|
344
358
|
const _q = "qualifier";
|
|
345
359
|
const _r = "reason";
|
|
360
|
+
const _rCE = "runtimeClientError";
|
|
346
361
|
const _rCPN = "resourceCredentialProviderName";
|
|
347
362
|
const _rEI = "rootEventId";
|
|
348
363
|
const _rI = "requestIdentifier";
|
|
@@ -403,7 +418,8 @@ const _tSa = "taskStatus";
|
|
|
403
418
|
const _tT = "totalTokens";
|
|
404
419
|
const _tU = "tokenUsage";
|
|
405
420
|
const _te = "text";
|
|
406
|
-
const _ti = "
|
|
421
|
+
const _ti = "timeout";
|
|
422
|
+
const _tim = "timestamp";
|
|
407
423
|
const _tr = "traceparent";
|
|
408
424
|
const _tra = "tracestate";
|
|
409
425
|
const _u = "uri";
|
|
@@ -633,6 +649,21 @@ export var ContentBlock$ = [3, n0, _CB,
|
|
|
633
649
|
[_t, _te, _d, _mT, _u, _n, _de, _si, _res],
|
|
634
650
|
[0, 0, 21, 0, 0, 0, 0, 1, () => ResourceContent$], 1
|
|
635
651
|
];
|
|
652
|
+
export var ContentDeltaEvent$ = [3, n0, _CDE,
|
|
653
|
+
0,
|
|
654
|
+
[_std, _stde],
|
|
655
|
+
[0, 0]
|
|
656
|
+
];
|
|
657
|
+
export var ContentStartEvent$ = [3, n0, _CSE,
|
|
658
|
+
0,
|
|
659
|
+
[],
|
|
660
|
+
[]
|
|
661
|
+
];
|
|
662
|
+
export var ContentStopEvent$ = [3, n0, _CSEo,
|
|
663
|
+
0,
|
|
664
|
+
[_eC, _sta],
|
|
665
|
+
[1, 0], 2
|
|
666
|
+
];
|
|
636
667
|
export var Conversational$ = [3, n0, _C,
|
|
637
668
|
0,
|
|
638
669
|
[_co, _ro],
|
|
@@ -680,7 +711,7 @@ export var EvaluateResponse$ = [3, n0, _ERv,
|
|
|
680
711
|
];
|
|
681
712
|
export var EvaluationResultContent$ = [3, n0, _ERC,
|
|
682
713
|
0,
|
|
683
|
-
[_eA, _eIv, _eN, _con, _ex, _v, _la, _tU, _eM,
|
|
714
|
+
[_eA, _eIv, _eN, _con, _ex, _v, _la, _tU, _eM, _eCr],
|
|
684
715
|
[0, 0, 0, () => Context$, [() => EvaluationExplanation, 0], 1, 0, () => TokenUsage$, 0, 0], 4
|
|
685
716
|
];
|
|
686
717
|
export var Event$ = [3, n0, _E,
|
|
@@ -823,6 +854,21 @@ export var InputContentBlock$ = [3, n0, _ICB,
|
|
|
823
854
|
[_pa, _te, _bl],
|
|
824
855
|
[0, 0, [() => Body, 0]], 1
|
|
825
856
|
];
|
|
857
|
+
export var InvokeAgentRuntimeCommandRequest$ = [3, n0, _IARCR,
|
|
858
|
+
0,
|
|
859
|
+
[_aRA, _bo, _cTo, _a, _rSI, _tI, _tP, _tS, _ba, _q, _aIc],
|
|
860
|
+
[[0, 1], [() => 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
|
|
861
|
+
];
|
|
862
|
+
export var InvokeAgentRuntimeCommandRequestBody$ = [3, n0, _IARCRB,
|
|
863
|
+
0,
|
|
864
|
+
[_com, _ti],
|
|
865
|
+
[0, 1], 1
|
|
866
|
+
];
|
|
867
|
+
export var InvokeAgentRuntimeCommandResponse$ = [3, n0, _IARCRn,
|
|
868
|
+
0,
|
|
869
|
+
[_cTo, _stre, _rSI, _tI, _tP, _tS, _ba, _sCt],
|
|
870
|
+
[[0, { [_hH]: _CT }], [() => InvokeAgentRuntimeCommandStreamOutput$, 16], [0, { [_hH]: _XABARSI }], [0, { [_hH]: _XATI }], [0, { [_hH]: _tr }], [0, { [_hH]: _tra }], [0, { [_hH]: _ba }], [1, 32]], 2
|
|
871
|
+
];
|
|
826
872
|
export var InvokeAgentRuntimeRequest$ = [3, n0, _IARR,
|
|
827
873
|
0,
|
|
828
874
|
[_aRA, _p, _cTo, _a, _mSI, _rSI, _mPV, _rUI, _tI, _tP, _tS, _ba, _q, _aIc],
|
|
@@ -930,7 +976,7 @@ export var MemoryRecord$ = [3, n0, _MR,
|
|
|
930
976
|
];
|
|
931
977
|
export var MemoryRecordCreateInput$ = [3, n0, _MRCI,
|
|
932
978
|
0,
|
|
933
|
-
[_rI, _nam, _co,
|
|
979
|
+
[_rI, _nam, _co, _tim, _mSIe],
|
|
934
980
|
[0, 64 | 0, [() => MemoryContent$, 0], 4, 0], 4
|
|
935
981
|
];
|
|
936
982
|
export var MemoryRecordDeleteInput$ = [3, n0, _MRDI,
|
|
@@ -940,7 +986,7 @@ export var MemoryRecordDeleteInput$ = [3, n0, _MRDI,
|
|
|
940
986
|
];
|
|
941
987
|
export var MemoryRecordOutput$ = [3, n0, _MRO,
|
|
942
988
|
0,
|
|
943
|
-
[_mRI, _sta, _rI,
|
|
989
|
+
[_mRI, _sta, _rI, _eCr, _eM],
|
|
944
990
|
[0, 0, 0, 1, 0], 2
|
|
945
991
|
];
|
|
946
992
|
export var MemoryRecordSummary$ = [3, n0, _MRS,
|
|
@@ -950,7 +996,7 @@ export var MemoryRecordSummary$ = [3, n0, _MRS,
|
|
|
950
996
|
];
|
|
951
997
|
export var MemoryRecordUpdateInput$ = [3, n0, _MRUI,
|
|
952
998
|
0,
|
|
953
|
-
[_mRI,
|
|
999
|
+
[_mRI, _tim, _co, _nam, _mSIe],
|
|
954
1000
|
[0, 4, [() => MemoryContent$, 0], 64 | 0, 0], 2
|
|
955
1001
|
];
|
|
956
1002
|
export var MessageMetadata$ = [3, n0, _MM,
|
|
@@ -973,6 +1019,11 @@ export var ResourceContent$ = [3, n0, _RC,
|
|
|
973
1019
|
[_t, _u, _mT, _te, _bl],
|
|
974
1020
|
[0, 0, 0, 0, 21], 1
|
|
975
1021
|
];
|
|
1022
|
+
export var ResponseChunk$ = [3, n0, _RCe,
|
|
1023
|
+
0,
|
|
1024
|
+
[_cSo, _cD, _cSon],
|
|
1025
|
+
[() => ContentStartEvent$, () => ContentDeltaEvent$, () => ContentStopEvent$]
|
|
1026
|
+
];
|
|
976
1027
|
export var RetrieveMemoryRecordsInput$ = [3, n0, _RMRI,
|
|
977
1028
|
0,
|
|
978
1029
|
[_mI, _na, _sCe, _nT, _mRa],
|
|
@@ -1085,7 +1136,7 @@ export var ToolArguments$ = [3, n0, _TA,
|
|
|
1085
1136
|
];
|
|
1086
1137
|
export var ToolResultStructuredContent$ = [3, n0, _TRSC,
|
|
1087
1138
|
0,
|
|
1088
|
-
[_tIa, _tSa, _std, _stde,
|
|
1139
|
+
[_tIa, _tSa, _std, _stde, _eC, _eTx],
|
|
1089
1140
|
[0, 0, 0, 0, 1, 1]
|
|
1090
1141
|
];
|
|
1091
1142
|
export var UpdateBrowserStreamRequest$ = [3, n0, _UBSR,
|
|
@@ -1226,6 +1277,11 @@ export var ExtractionJobMessages$ = [4, n0, _EJMx,
|
|
|
1226
1277
|
[_mL],
|
|
1227
1278
|
[() => MessagesList]
|
|
1228
1279
|
];
|
|
1280
|
+
export var InvokeAgentRuntimeCommandStreamOutput$ = [4, n0, _IARCSO,
|
|
1281
|
+
{ [_st]: 1 },
|
|
1282
|
+
[_ch, _aDE, _iSE, _rNFE, _sQEE, _tE, _vE, _rCE],
|
|
1283
|
+
[() => ResponseChunk$, [() => AccessDeniedException$, 0], [() => InternalServerException$, 0], [() => ResourceNotFoundException$, 0], [() => ServiceQuotaExceededException$, 0], [() => ThrottlingException$, 0], [() => ValidationException$, 0], [() => RuntimeClientError$, 0]]
|
|
1284
|
+
];
|
|
1229
1285
|
export var LeftExpression$ = [4, n0, _LE,
|
|
1230
1286
|
0,
|
|
1231
1287
|
[_mK],
|
|
@@ -1333,6 +1389,9 @@ export var GetWorkloadAccessTokenForUserId$ = [9, n0, _GWATFUI,
|
|
|
1333
1389
|
export var InvokeAgentRuntime$ = [9, n0, _IAR,
|
|
1334
1390
|
{ [_ht]: ["POST", "/runtimes/{agentRuntimeArn}/invocations", 200] }, () => InvokeAgentRuntimeRequest$, () => InvokeAgentRuntimeResponse$
|
|
1335
1391
|
];
|
|
1392
|
+
export var InvokeAgentRuntimeCommand$ = [9, n0, _IARC,
|
|
1393
|
+
{ [_ht]: ["POST", "/runtimes/{agentRuntimeArn}/commands", 200] }, () => InvokeAgentRuntimeCommandRequest$, () => InvokeAgentRuntimeCommandResponse$
|
|
1394
|
+
];
|
|
1336
1395
|
export var InvokeCodeInterpreter$ = [9, n0, _ICI,
|
|
1337
1396
|
{ [_ht]: ["POST", "/code-interpreters/{codeInterpreterIdentifier}/tools/invoke", 200] }, () => InvokeCodeInterpreterRequest$, () => InvokeCodeInterpreterResponse$
|
|
1338
1397
|
];
|
|
@@ -19,6 +19,7 @@ import { GetWorkloadAccessTokenCommandInput, GetWorkloadAccessTokenCommandOutput
|
|
|
19
19
|
import { GetWorkloadAccessTokenForJWTCommandInput, GetWorkloadAccessTokenForJWTCommandOutput } from "./commands/GetWorkloadAccessTokenForJWTCommand";
|
|
20
20
|
import { GetWorkloadAccessTokenForUserIdCommandInput, GetWorkloadAccessTokenForUserIdCommandOutput } from "./commands/GetWorkloadAccessTokenForUserIdCommand";
|
|
21
21
|
import { InvokeAgentRuntimeCommandInput, InvokeAgentRuntimeCommandOutput } from "./commands/InvokeAgentRuntimeCommand";
|
|
22
|
+
import { InvokeAgentRuntimeCommandCommandInput, InvokeAgentRuntimeCommandCommandOutput } from "./commands/InvokeAgentRuntimeCommandCommand";
|
|
22
23
|
import { InvokeCodeInterpreterCommandInput, InvokeCodeInterpreterCommandOutput } from "./commands/InvokeCodeInterpreterCommand";
|
|
23
24
|
import { ListActorsCommandInput, ListActorsCommandOutput } from "./commands/ListActorsCommand";
|
|
24
25
|
import { ListBrowserSessionsCommandInput, ListBrowserSessionsCommandOutput } from "./commands/ListBrowserSessionsCommand";
|
|
@@ -151,6 +152,12 @@ export interface BedrockAgentCore {
|
|
|
151
152
|
invokeAgentRuntime(args: InvokeAgentRuntimeCommandInput, options?: __HttpHandlerOptions): Promise<InvokeAgentRuntimeCommandOutput>;
|
|
152
153
|
invokeAgentRuntime(args: InvokeAgentRuntimeCommandInput, cb: (err: any, data?: InvokeAgentRuntimeCommandOutput) => void): void;
|
|
153
154
|
invokeAgentRuntime(args: InvokeAgentRuntimeCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeAgentRuntimeCommandOutput) => void): void;
|
|
155
|
+
/**
|
|
156
|
+
* @see {@link InvokeAgentRuntimeCommandCommand}
|
|
157
|
+
*/
|
|
158
|
+
invokeAgentRuntimeCommand(args: InvokeAgentRuntimeCommandCommandInput, options?: __HttpHandlerOptions): Promise<InvokeAgentRuntimeCommandCommandOutput>;
|
|
159
|
+
invokeAgentRuntimeCommand(args: InvokeAgentRuntimeCommandCommandInput, cb: (err: any, data?: InvokeAgentRuntimeCommandCommandOutput) => void): void;
|
|
160
|
+
invokeAgentRuntimeCommand(args: InvokeAgentRuntimeCommandCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: InvokeAgentRuntimeCommandCommandOutput) => void): void;
|
|
154
161
|
/**
|
|
155
162
|
* @see {@link InvokeCodeInterpreterCommand}
|
|
156
163
|
*/
|
|
@@ -27,6 +27,7 @@ import { GetWorkloadAccessTokenCommandInput, GetWorkloadAccessTokenCommandOutput
|
|
|
27
27
|
import { GetWorkloadAccessTokenForJWTCommandInput, GetWorkloadAccessTokenForJWTCommandOutput } from "./commands/GetWorkloadAccessTokenForJWTCommand";
|
|
28
28
|
import { GetWorkloadAccessTokenForUserIdCommandInput, GetWorkloadAccessTokenForUserIdCommandOutput } from "./commands/GetWorkloadAccessTokenForUserIdCommand";
|
|
29
29
|
import { InvokeAgentRuntimeCommandInput, InvokeAgentRuntimeCommandOutput } from "./commands/InvokeAgentRuntimeCommand";
|
|
30
|
+
import { InvokeAgentRuntimeCommandCommandInput, InvokeAgentRuntimeCommandCommandOutput } from "./commands/InvokeAgentRuntimeCommandCommand";
|
|
30
31
|
import { InvokeCodeInterpreterCommandInput, InvokeCodeInterpreterCommandOutput } from "./commands/InvokeCodeInterpreterCommand";
|
|
31
32
|
import { ListActorsCommandInput, ListActorsCommandOutput } from "./commands/ListActorsCommand";
|
|
32
33
|
import { ListBrowserSessionsCommandInput, ListBrowserSessionsCommandOutput } from "./commands/ListBrowserSessionsCommand";
|
|
@@ -50,11 +51,11 @@ export { __Client };
|
|
|
50
51
|
/**
|
|
51
52
|
* @public
|
|
52
53
|
*/
|
|
53
|
-
export type ServiceInputTypes = BatchCreateMemoryRecordsCommandInput | BatchDeleteMemoryRecordsCommandInput | BatchUpdateMemoryRecordsCommandInput | CompleteResourceTokenAuthCommandInput | CreateEventCommandInput | DeleteEventCommandInput | DeleteMemoryRecordCommandInput | EvaluateCommandInput | GetAgentCardCommandInput | GetBrowserSessionCommandInput | GetCodeInterpreterSessionCommandInput | GetEventCommandInput | GetMemoryRecordCommandInput | GetResourceApiKeyCommandInput | GetResourceOauth2TokenCommandInput | GetWorkloadAccessTokenCommandInput | GetWorkloadAccessTokenForJWTCommandInput | GetWorkloadAccessTokenForUserIdCommandInput | InvokeAgentRuntimeCommandInput | InvokeCodeInterpreterCommandInput | ListActorsCommandInput | ListBrowserSessionsCommandInput | ListCodeInterpreterSessionsCommandInput | ListEventsCommandInput | ListMemoryExtractionJobsCommandInput | ListMemoryRecordsCommandInput | ListSessionsCommandInput | RetrieveMemoryRecordsCommandInput | SaveBrowserSessionProfileCommandInput | StartBrowserSessionCommandInput | StartCodeInterpreterSessionCommandInput | StartMemoryExtractionJobCommandInput | StopBrowserSessionCommandInput | StopCodeInterpreterSessionCommandInput | StopRuntimeSessionCommandInput | UpdateBrowserStreamCommandInput;
|
|
54
|
+
export type ServiceInputTypes = BatchCreateMemoryRecordsCommandInput | BatchDeleteMemoryRecordsCommandInput | BatchUpdateMemoryRecordsCommandInput | CompleteResourceTokenAuthCommandInput | CreateEventCommandInput | DeleteEventCommandInput | DeleteMemoryRecordCommandInput | EvaluateCommandInput | GetAgentCardCommandInput | GetBrowserSessionCommandInput | GetCodeInterpreterSessionCommandInput | GetEventCommandInput | GetMemoryRecordCommandInput | GetResourceApiKeyCommandInput | GetResourceOauth2TokenCommandInput | GetWorkloadAccessTokenCommandInput | GetWorkloadAccessTokenForJWTCommandInput | GetWorkloadAccessTokenForUserIdCommandInput | InvokeAgentRuntimeCommandCommandInput | InvokeAgentRuntimeCommandInput | InvokeCodeInterpreterCommandInput | ListActorsCommandInput | ListBrowserSessionsCommandInput | ListCodeInterpreterSessionsCommandInput | ListEventsCommandInput | ListMemoryExtractionJobsCommandInput | ListMemoryRecordsCommandInput | ListSessionsCommandInput | RetrieveMemoryRecordsCommandInput | SaveBrowserSessionProfileCommandInput | StartBrowserSessionCommandInput | StartCodeInterpreterSessionCommandInput | StartMemoryExtractionJobCommandInput | StopBrowserSessionCommandInput | StopCodeInterpreterSessionCommandInput | StopRuntimeSessionCommandInput | UpdateBrowserStreamCommandInput;
|
|
54
55
|
/**
|
|
55
56
|
* @public
|
|
56
57
|
*/
|
|
57
|
-
export type ServiceOutputTypes = BatchCreateMemoryRecordsCommandOutput | BatchDeleteMemoryRecordsCommandOutput | BatchUpdateMemoryRecordsCommandOutput | CompleteResourceTokenAuthCommandOutput | CreateEventCommandOutput | DeleteEventCommandOutput | DeleteMemoryRecordCommandOutput | EvaluateCommandOutput | GetAgentCardCommandOutput | GetBrowserSessionCommandOutput | GetCodeInterpreterSessionCommandOutput | GetEventCommandOutput | GetMemoryRecordCommandOutput | GetResourceApiKeyCommandOutput | GetResourceOauth2TokenCommandOutput | GetWorkloadAccessTokenCommandOutput | GetWorkloadAccessTokenForJWTCommandOutput | GetWorkloadAccessTokenForUserIdCommandOutput | InvokeAgentRuntimeCommandOutput | InvokeCodeInterpreterCommandOutput | ListActorsCommandOutput | ListBrowserSessionsCommandOutput | ListCodeInterpreterSessionsCommandOutput | ListEventsCommandOutput | ListMemoryExtractionJobsCommandOutput | ListMemoryRecordsCommandOutput | ListSessionsCommandOutput | RetrieveMemoryRecordsCommandOutput | SaveBrowserSessionProfileCommandOutput | StartBrowserSessionCommandOutput | StartCodeInterpreterSessionCommandOutput | StartMemoryExtractionJobCommandOutput | StopBrowserSessionCommandOutput | StopCodeInterpreterSessionCommandOutput | StopRuntimeSessionCommandOutput | UpdateBrowserStreamCommandOutput;
|
|
58
|
+
export type ServiceOutputTypes = BatchCreateMemoryRecordsCommandOutput | BatchDeleteMemoryRecordsCommandOutput | BatchUpdateMemoryRecordsCommandOutput | CompleteResourceTokenAuthCommandOutput | CreateEventCommandOutput | DeleteEventCommandOutput | DeleteMemoryRecordCommandOutput | EvaluateCommandOutput | GetAgentCardCommandOutput | GetBrowserSessionCommandOutput | GetCodeInterpreterSessionCommandOutput | GetEventCommandOutput | GetMemoryRecordCommandOutput | GetResourceApiKeyCommandOutput | GetResourceOauth2TokenCommandOutput | GetWorkloadAccessTokenCommandOutput | GetWorkloadAccessTokenForJWTCommandOutput | GetWorkloadAccessTokenForUserIdCommandOutput | InvokeAgentRuntimeCommandCommandOutput | InvokeAgentRuntimeCommandOutput | InvokeCodeInterpreterCommandOutput | ListActorsCommandOutput | ListBrowserSessionsCommandOutput | ListCodeInterpreterSessionsCommandOutput | ListEventsCommandOutput | ListMemoryExtractionJobsCommandOutput | ListMemoryRecordsCommandOutput | ListSessionsCommandOutput | RetrieveMemoryRecordsCommandOutput | SaveBrowserSessionProfileCommandOutput | StartBrowserSessionCommandOutput | StartCodeInterpreterSessionCommandOutput | StartMemoryExtractionJobCommandOutput | StopBrowserSessionCommandOutput | StopCodeInterpreterSessionCommandOutput | StopRuntimeSessionCommandOutput | UpdateBrowserStreamCommandOutput;
|
|
58
59
|
/**
|
|
59
60
|
* @public
|
|
60
61
|
*/
|
|
@@ -34,7 +34,7 @@ declare const InvokeAgentRuntimeCommand_base: {
|
|
|
34
34
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
35
35
|
};
|
|
36
36
|
/**
|
|
37
|
-
* <p>Sends a request to an agent or tool hosted in an Amazon Bedrock AgentCore Runtime and receives responses in real-time. </p> <p>To invoke an agent you
|
|
37
|
+
* <p>Sends a request to an agent or tool hosted in an Amazon Bedrock AgentCore Runtime and receives responses in real-time. </p> <p>To invoke an agent, you can specify either the AgentCore Runtime ARN or the agent ID with an account ID, and provide a payload containing your request. When you use the agent ID instead of the full ARN, you don't need to URL-encode the identifier. You can optionally specify a qualifier to target a specific endpoint of the agent.</p> <p>This operation supports streaming responses, allowing you to receive partial responses as they become available. We recommend using pagination to ensure that the operation returns quickly and successfully when processing large responses.</p> <p>For example code, see <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-invoke-agent.html">Invoke an AgentCore Runtime agent</a>. </p> <p>If you're integrating your agent with OAuth, you can't use the Amazon Web Services SDK to call <code>InvokeAgentRuntime</code>. Instead, make a HTTPS request to <code>InvokeAgentRuntime</code>. For an example, see <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-oauth.html">Authenticate and authorize with Inbound Auth and Outbound Auth</a>.</p> <p>To use this operation, you must have the <code>bedrock-agentcore:InvokeAgentRuntime</code> permission. If you are making a call to <code>InvokeAgentRuntime</code> on behalf of a user ID with the <code>X-Amzn-Bedrock-AgentCore-Runtime-User-Id</code> header, You require permissions to both actions (<code>bedrock-agentcore:InvokeAgentRuntime</code> and <code>bedrock-agentcore:InvokeAgentRuntimeForUser</code>). </p>
|
|
38
38
|
* @example
|
|
39
39
|
* Use a bare-bones client and the command you need to make an API call.
|
|
40
40
|
* ```javascript
|