@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 +33 -46
- 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 +37 -37
|
@@ -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
|
|
@@ -0,0 +1,156 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
|
+
import type { InvokeAgentRuntimeCommandRequest, InvokeAgentRuntimeCommandResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link InvokeAgentRuntimeCommandCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface InvokeAgentRuntimeCommandCommandInput extends InvokeAgentRuntimeCommandRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link InvokeAgentRuntimeCommandCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface InvokeAgentRuntimeCommandCommandOutput extends InvokeAgentRuntimeCommandResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const InvokeAgentRuntimeCommandCommand_base: {
|
|
25
|
+
new (input: InvokeAgentRuntimeCommandCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeAgentRuntimeCommandCommandInput, InvokeAgentRuntimeCommandCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: InvokeAgentRuntimeCommandCommandInput): import("@smithy/smithy-client").CommandImpl<InvokeAgentRuntimeCommandCommandInput, InvokeAgentRuntimeCommandCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* Executes a command in a runtime session container.
|
|
31
|
+
* Returns streaming output with contentStart, contentDelta, and contentStop events.
|
|
32
|
+
* @example
|
|
33
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import { BedrockAgentCoreClient, InvokeAgentRuntimeCommandCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
36
|
+
* // const { BedrockAgentCoreClient, InvokeAgentRuntimeCommandCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
37
|
+
* // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
|
|
38
|
+
* const config = {}; // type is BedrockAgentCoreClientConfig
|
|
39
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
40
|
+
* const input = { // InvokeAgentRuntimeCommandRequest
|
|
41
|
+
* contentType: "STRING_VALUE",
|
|
42
|
+
* accept: "STRING_VALUE",
|
|
43
|
+
* runtimeSessionId: "STRING_VALUE",
|
|
44
|
+
* traceId: "STRING_VALUE",
|
|
45
|
+
* traceParent: "STRING_VALUE",
|
|
46
|
+
* traceState: "STRING_VALUE",
|
|
47
|
+
* baggage: "STRING_VALUE",
|
|
48
|
+
* agentRuntimeArn: "STRING_VALUE", // required
|
|
49
|
+
* qualifier: "STRING_VALUE",
|
|
50
|
+
* accountId: "STRING_VALUE",
|
|
51
|
+
* body: { // InvokeAgentRuntimeCommandRequestBody
|
|
52
|
+
* command: "STRING_VALUE", // required
|
|
53
|
+
* timeout: Number("int"),
|
|
54
|
+
* },
|
|
55
|
+
* };
|
|
56
|
+
* const command = new InvokeAgentRuntimeCommandCommand(input);
|
|
57
|
+
* const response = await client.send(command);
|
|
58
|
+
* // { // InvokeAgentRuntimeCommandResponse
|
|
59
|
+
* // runtimeSessionId: "STRING_VALUE",
|
|
60
|
+
* // traceId: "STRING_VALUE",
|
|
61
|
+
* // traceParent: "STRING_VALUE",
|
|
62
|
+
* // traceState: "STRING_VALUE",
|
|
63
|
+
* // baggage: "STRING_VALUE",
|
|
64
|
+
* // contentType: "STRING_VALUE", // required
|
|
65
|
+
* // statusCode: Number("int"),
|
|
66
|
+
* // stream: { // InvokeAgentRuntimeCommandStreamOutput Union: only one key present
|
|
67
|
+
* // chunk: { // ResponseChunk
|
|
68
|
+
* // contentStart: {},
|
|
69
|
+
* // contentDelta: { // ContentDeltaEvent
|
|
70
|
+
* // stdout: "STRING_VALUE",
|
|
71
|
+
* // stderr: "STRING_VALUE",
|
|
72
|
+
* // },
|
|
73
|
+
* // contentStop: { // ContentStopEvent
|
|
74
|
+
* // exitCode: Number("int"), // required
|
|
75
|
+
* // status: "COMPLETED" || "TIMED_OUT", // required
|
|
76
|
+
* // },
|
|
77
|
+
* // },
|
|
78
|
+
* // accessDeniedException: { // AccessDeniedException
|
|
79
|
+
* // message: "STRING_VALUE",
|
|
80
|
+
* // },
|
|
81
|
+
* // internalServerException: { // InternalServerException
|
|
82
|
+
* // message: "STRING_VALUE",
|
|
83
|
+
* // },
|
|
84
|
+
* // resourceNotFoundException: { // ResourceNotFoundException
|
|
85
|
+
* // message: "STRING_VALUE",
|
|
86
|
+
* // },
|
|
87
|
+
* // serviceQuotaExceededException: { // ServiceQuotaExceededException
|
|
88
|
+
* // message: "STRING_VALUE",
|
|
89
|
+
* // },
|
|
90
|
+
* // throttlingException: { // ThrottlingException
|
|
91
|
+
* // message: "STRING_VALUE",
|
|
92
|
+
* // },
|
|
93
|
+
* // validationException: { // ValidationException
|
|
94
|
+
* // message: "STRING_VALUE", // required
|
|
95
|
+
* // reason: "CannotParse" || "FieldValidationFailed" || "IdempotentParameterMismatchException" || "EventInOtherSession" || "ResourceConflict", // required
|
|
96
|
+
* // fieldList: [ // ValidationExceptionFieldList
|
|
97
|
+
* // { // ValidationExceptionField
|
|
98
|
+
* // name: "STRING_VALUE", // required
|
|
99
|
+
* // message: "STRING_VALUE", // required
|
|
100
|
+
* // },
|
|
101
|
+
* // ],
|
|
102
|
+
* // },
|
|
103
|
+
* // runtimeClientError: { // RuntimeClientError
|
|
104
|
+
* // message: "STRING_VALUE",
|
|
105
|
+
* // },
|
|
106
|
+
* // },
|
|
107
|
+
* // };
|
|
108
|
+
*
|
|
109
|
+
* ```
|
|
110
|
+
*
|
|
111
|
+
* @param InvokeAgentRuntimeCommandCommandInput - {@link InvokeAgentRuntimeCommandCommandInput}
|
|
112
|
+
* @returns {@link InvokeAgentRuntimeCommandCommandOutput}
|
|
113
|
+
* @see {@link InvokeAgentRuntimeCommandCommandInput} for command's `input` shape.
|
|
114
|
+
* @see {@link InvokeAgentRuntimeCommandCommandOutput} for command's `response` shape.
|
|
115
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
116
|
+
*
|
|
117
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
118
|
+
* <p>The exception that occurs when you do not have sufficient permissions to perform an action. Verify that your IAM policy includes the necessary permissions for the operation you are trying to perform.</p>
|
|
119
|
+
*
|
|
120
|
+
* @throws {@link InternalServerException} (server fault)
|
|
121
|
+
* <p>The exception that occurs when the service encounters an unexpected internal error. This is a temporary condition that will resolve itself with retries. We recommend implementing exponential backoff retry logic in your application.</p>
|
|
122
|
+
*
|
|
123
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
124
|
+
* <p>The exception that occurs when the specified resource does not exist. This can happen when using an invalid identifier or when trying to access a resource that has been deleted.</p>
|
|
125
|
+
*
|
|
126
|
+
* @throws {@link RuntimeClientError} (client fault)
|
|
127
|
+
* <p>The exception that occurs when there is an error in the runtime client. This can happen due to network issues, invalid configuration, or other client-side problems. Check the error message for specific details about the error.</p>
|
|
128
|
+
*
|
|
129
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
130
|
+
* <p>The exception that occurs when the request would cause a service quota to be exceeded. Review your service quotas and either reduce your request rate or request a quota increase.</p>
|
|
131
|
+
*
|
|
132
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
133
|
+
* <p>The exception that occurs when the request was denied due to request throttling. This happens when you exceed the allowed request rate for an operation. Reduce the frequency of requests or implement exponential backoff retry logic in your application.</p>
|
|
134
|
+
*
|
|
135
|
+
* @throws {@link ValidationException} (client fault)
|
|
136
|
+
* <p>The exception that occurs when the input fails to satisfy the constraints specified by the service. Check the error message for details about which input parameter is invalid and correct your request.</p>
|
|
137
|
+
*
|
|
138
|
+
* @throws {@link BedrockAgentCoreServiceException}
|
|
139
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
|
|
140
|
+
*
|
|
141
|
+
*
|
|
142
|
+
* @public
|
|
143
|
+
*/
|
|
144
|
+
export declare class InvokeAgentRuntimeCommandCommand extends InvokeAgentRuntimeCommandCommand_base {
|
|
145
|
+
/** @internal type navigation helper, not in runtime. */
|
|
146
|
+
protected static __types: {
|
|
147
|
+
api: {
|
|
148
|
+
input: InvokeAgentRuntimeCommandRequest;
|
|
149
|
+
output: InvokeAgentRuntimeCommandResponse;
|
|
150
|
+
};
|
|
151
|
+
sdk: {
|
|
152
|
+
input: InvokeAgentRuntimeCommandCommandInput;
|
|
153
|
+
output: InvokeAgentRuntimeCommandCommandOutput;
|
|
154
|
+
};
|
|
155
|
+
};
|
|
156
|
+
}
|
|
@@ -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";
|
|
@@ -13,6 +13,18 @@ export declare const ValidationExceptionReason: {
|
|
|
13
13
|
* @public
|
|
14
14
|
*/
|
|
15
15
|
export type ValidationExceptionReason = (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
|
|
16
|
+
/**
|
|
17
|
+
* @public
|
|
18
|
+
* @enum
|
|
19
|
+
*/
|
|
20
|
+
export declare const CommandExecutionStatus: {
|
|
21
|
+
readonly COMPLETED: "COMPLETED";
|
|
22
|
+
readonly TIMED_OUT: "TIMED_OUT";
|
|
23
|
+
};
|
|
24
|
+
/**
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export type CommandExecutionStatus = (typeof CommandExecutionStatus)[keyof typeof CommandExecutionStatus];
|
|
16
28
|
/**
|
|
17
29
|
* @public
|
|
18
30
|
* @enum
|