@aws-sdk/client-bedrock-agentcore 3.939.0 → 3.943.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 +8 -0
- package/dist-cjs/index.js +132 -14
- package/dist-es/BedrockAgentCore.js +2 -0
- package/dist-es/commands/EvaluateCommand.js +16 -0
- package/dist-es/commands/index.js +1 -0
- package/dist-es/models/errors.js +12 -0
- package/dist-es/schemas/schemas_0.js +108 -15
- package/dist-types/BedrockAgentCore.d.ts +7 -0
- package/dist-types/BedrockAgentCoreClient.d.ts +3 -2
- package/dist-types/commands/EvaluateCommand.d.ts +137 -0
- package/dist-types/commands/GetBrowserSessionCommand.d.ts +1 -1
- package/dist-types/commands/GetCodeInterpreterSessionCommand.d.ts +1 -1
- package/dist-types/commands/GetMemoryRecordCommand.d.ts +5 -0
- package/dist-types/commands/InvokeCodeInterpreterCommand.d.ts +1 -1
- package/dist-types/commands/ListBrowserSessionsCommand.d.ts +1 -1
- package/dist-types/commands/ListCodeInterpreterSessionsCommand.d.ts +1 -1
- package/dist-types/commands/ListMemoryRecordsCommand.d.ts +5 -0
- package/dist-types/commands/RetrieveMemoryRecordsCommand.d.ts +18 -0
- package/dist-types/commands/StartBrowserSessionCommand.d.ts +1 -1
- package/dist-types/commands/StartCodeInterpreterSessionCommand.d.ts +1 -1
- package/dist-types/commands/StopBrowserSessionCommand.d.ts +1 -1
- package/dist-types/commands/StopCodeInterpreterSessionCommand.d.ts +1 -1
- package/dist-types/commands/index.d.ts +1 -0
- package/dist-types/models/errors.d.ts +12 -0
- package/dist-types/models/models_0.d.ts +275 -0
- package/dist-types/schemas/schemas_0.d.ts +17 -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/EvaluateCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +1 -0
- package/dist-types/ts3.4/models/errors.d.ts +7 -0
- package/dist-types/ts3.4/models/models_0.d.ts +96 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +17 -0
- package/package.json +5 -5
|
@@ -40,14 +40,18 @@ const _CRTARo = "CompleteResourceTokenAuthResponse";
|
|
|
40
40
|
const _CRVT = "CustomRequestValueType";
|
|
41
41
|
const _CT = "Content-Type";
|
|
42
42
|
const _Co = "Content";
|
|
43
|
+
const _Con = "Context";
|
|
43
44
|
const _D = "Document";
|
|
44
45
|
const _DE = "DeleteEvent";
|
|
45
46
|
const _DEI = "DeleteEventInput";
|
|
46
47
|
const _DEO = "DeleteEventOutput";
|
|
48
|
+
const _DIE = "DuplicateIdException";
|
|
47
49
|
const _DMR = "DeleteMemoryRecord";
|
|
48
50
|
const _DMRI = "DeleteMemoryRecordInput";
|
|
49
51
|
const _DMRO = "DeleteMemoryRecordOutput";
|
|
50
52
|
const _E = "Event";
|
|
53
|
+
const _EE = "EvaluationExplanation";
|
|
54
|
+
const _EI = "EvaluationInput";
|
|
51
55
|
const _EJ = "ExtractionJob";
|
|
52
56
|
const _EJFI = "ExtractionJobFilterInput";
|
|
53
57
|
const _EJM = "ExtractionJobMetadata";
|
|
@@ -56,6 +60,12 @@ const _EJMx = "ExtractionJobMessages";
|
|
|
56
60
|
const _EL = "EventList";
|
|
57
61
|
const _EMFE = "EventMetadataFilterExpression";
|
|
58
62
|
const _EMFL = "EventMetadataFilterList";
|
|
63
|
+
const _ER = "EvaluateRequest";
|
|
64
|
+
const _ERC = "EvaluationResultContent";
|
|
65
|
+
const _ERv = "EvaluateResponse";
|
|
66
|
+
const _ERva = "EvaluationResults";
|
|
67
|
+
const _ET = "EvaluationTarget";
|
|
68
|
+
const _Ev = "Evaluate";
|
|
59
69
|
const _FI = "FilterInput";
|
|
60
70
|
const _GAC = "GetAgentCard";
|
|
61
71
|
const _GACR = "GetAgentCardRequest";
|
|
@@ -123,6 +133,8 @@ const _LVS = "LiveViewStream";
|
|
|
123
133
|
const _MC = "MemoryContent";
|
|
124
134
|
const _ML = "MessagesList";
|
|
125
135
|
const _MM = "MessageMetadata";
|
|
136
|
+
const _MMFE = "MemoryMetadataFilterExpression";
|
|
137
|
+
const _MMFL = "MemoryMetadataFilterList";
|
|
126
138
|
const _MMe = "MetadataMap";
|
|
127
139
|
const _MPV = "Mcp-Protocol-Version";
|
|
128
140
|
const _MR = "MemoryRecord";
|
|
@@ -162,6 +174,7 @@ const _SCISRt = "StartCodeInterpreterSessionResponse";
|
|
|
162
174
|
const _SCISRto = "StopCodeInterpreterSessionRequest";
|
|
163
175
|
const _SCISRtop = "StopCodeInterpreterSessionResponse";
|
|
164
176
|
const _SCISt = "StopCodeInterpreterSession";
|
|
177
|
+
const _SCp = "SpanContext";
|
|
165
178
|
const _SE = "ServiceException";
|
|
166
179
|
const _SMEJ = "StartMemoryExtractionJob";
|
|
167
180
|
const _SMEJI = "StartMemoryExtractionJobInput";
|
|
@@ -174,10 +187,12 @@ const _SS = "SensitiveString";
|
|
|
174
187
|
const _SSL = "SessionSummaryList";
|
|
175
188
|
const _SSe = "SessionSummary";
|
|
176
189
|
const _SU = "StreamUpdate";
|
|
190
|
+
const _Sp = "Spans";
|
|
177
191
|
const _TA = "ToolArguments";
|
|
178
192
|
const _TE = "ThrottledException";
|
|
179
193
|
const _TEh = "ThrottlingException";
|
|
180
194
|
const _TRSC = "ToolResultStructuredContent";
|
|
195
|
+
const _TU = "TokenUsage";
|
|
181
196
|
const _UBS = "UpdateBrowserStream";
|
|
182
197
|
const _UBSR = "UpdateBrowserStreamRequest";
|
|
183
198
|
const _UBSRp = "UpdateBrowserStreamResponse";
|
|
@@ -221,21 +236,29 @@ const _cTo = "contentType";
|
|
|
221
236
|
const _co = "content";
|
|
222
237
|
const _cod = "code";
|
|
223
238
|
const _com = "command";
|
|
224
|
-
const _con = "
|
|
239
|
+
const _con = "context";
|
|
240
|
+
const _conv = "conversational";
|
|
225
241
|
const _d = "data";
|
|
226
242
|
const _dP = "directoryPath";
|
|
227
243
|
const _de = "description";
|
|
228
244
|
const _e = "error";
|
|
245
|
+
const _eA = "evaluatorArn";
|
|
229
246
|
const _eC = "errorCode";
|
|
230
247
|
const _eCx = "exitCode";
|
|
231
248
|
const _eI = "eventId";
|
|
249
|
+
const _eIv = "evaluatorId";
|
|
250
|
+
const _eIva = "evaluationInput";
|
|
232
251
|
const _eJ = "extractionJob";
|
|
233
|
-
const _eM = "
|
|
234
|
-
const
|
|
252
|
+
const _eM = "errorMessage";
|
|
253
|
+
const _eMv = "eventMetadata";
|
|
254
|
+
const _eN = "evaluatorName";
|
|
255
|
+
const _eR = "evaluationResults";
|
|
235
256
|
const _eT = "eventTimestamp";
|
|
257
|
+
const _eTv = "evaluationTarget";
|
|
236
258
|
const _eTx = "executionTime";
|
|
237
259
|
const _ev = "event";
|
|
238
260
|
const _eve = "events";
|
|
261
|
+
const _ex = "explanation";
|
|
239
262
|
const _f = "filter";
|
|
240
263
|
const _fA = "forceAuthentication";
|
|
241
264
|
const _fL = "fieldList";
|
|
@@ -252,14 +275,17 @@ const _iP = "includePayloads";
|
|
|
252
275
|
const _iPB = "includeParentBranches";
|
|
253
276
|
const _iSE = "internalServerException";
|
|
254
277
|
const _iT = "idempotencyToken";
|
|
278
|
+
const _iTn = "inputTokens";
|
|
255
279
|
const _j = "jobs";
|
|
256
280
|
const _jI = "jobId";
|
|
257
281
|
const _jID = "jobID";
|
|
258
|
-
const _l = "
|
|
282
|
+
const _l = "label";
|
|
259
283
|
const _lUA = "lastUpdatedAt";
|
|
260
284
|
const _lVS = "liveViewStream";
|
|
261
285
|
const _la = "language";
|
|
286
|
+
const _le = "left";
|
|
262
287
|
const _m = "message";
|
|
288
|
+
const _mF = "metadataFilters";
|
|
263
289
|
const _mI = "memoryId";
|
|
264
290
|
const _mIe = "messageIndex";
|
|
265
291
|
const _mK = "metadataKey";
|
|
@@ -281,6 +307,7 @@ const _na = "namespace";
|
|
|
281
307
|
const _nam = "namespaces";
|
|
282
308
|
const _o = "operator";
|
|
283
309
|
const _oF = "oauth2Flow";
|
|
310
|
+
const _oT = "outputTokens";
|
|
284
311
|
const _p = "payload";
|
|
285
312
|
const _pa = "path";
|
|
286
313
|
const _pat = "paths";
|
|
@@ -302,9 +329,12 @@ const _ro = "role";
|
|
|
302
329
|
const _s = "streaming";
|
|
303
330
|
const _sC = "structuredContent";
|
|
304
331
|
const _sCe = "searchCriteria";
|
|
332
|
+
const _sCp = "spanContext";
|
|
305
333
|
const _sCt = "statusCode";
|
|
306
334
|
const _sE = "streamEndpoint";
|
|
307
335
|
const _sI = "sessionId";
|
|
336
|
+
const _sIp = "spanId";
|
|
337
|
+
const _sIpa = "spanIds";
|
|
308
338
|
const _sIt = "strategyId";
|
|
309
339
|
const _sQ = "searchQuery";
|
|
310
340
|
const _sQEE = "serviceQuotaExceededException";
|
|
@@ -313,6 +343,7 @@ const _sRA = "sessionReplayArtifact";
|
|
|
313
343
|
const _sS = "streamStatus";
|
|
314
344
|
const _sSe = "sessionStatus";
|
|
315
345
|
const _sSes = "sessionSummaries";
|
|
346
|
+
const _sSess = "sessionSpans";
|
|
316
347
|
const _sTS = "sessionTimeoutSeconds";
|
|
317
348
|
const _sU = "sessionUri";
|
|
318
349
|
const _sUt = "streamUpdate";
|
|
@@ -332,10 +363,13 @@ const _t = "type";
|
|
|
332
363
|
const _tE = "throttlingException";
|
|
333
364
|
const _tI = "traceId";
|
|
334
365
|
const _tIa = "taskId";
|
|
366
|
+
const _tIr = "traceIds";
|
|
335
367
|
const _tK = "topK";
|
|
336
368
|
const _tP = "traceParent";
|
|
337
369
|
const _tS = "traceState";
|
|
338
370
|
const _tSa = "taskStatus";
|
|
371
|
+
const _tT = "totalTokens";
|
|
372
|
+
const _tU = "tokenUsage";
|
|
339
373
|
const _te = "text";
|
|
340
374
|
const _ti = "timestamp";
|
|
341
375
|
const _tr = "traceparent";
|
|
@@ -345,6 +379,7 @@ const _uA = "updatedAt";
|
|
|
345
379
|
const _uI = "userIdentifier";
|
|
346
380
|
const _uIs = "userId";
|
|
347
381
|
const _uT = "userToken";
|
|
382
|
+
const _v = "value";
|
|
348
383
|
const _vE = "validationException";
|
|
349
384
|
const _vP = "viewPort";
|
|
350
385
|
const _w = "width";
|
|
@@ -355,13 +390,14 @@ const _xacisi = "x-amzn-code-interpreter-session-id";
|
|
|
355
390
|
const n0 = "com.amazonaws.bedrockagentcore";
|
|
356
391
|
import { TypeRegistry } from "@smithy/core/schema";
|
|
357
392
|
import { BedrockAgentCoreServiceException as __BedrockAgentCoreServiceException } from "../models/BedrockAgentCoreServiceException";
|
|
358
|
-
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, InternalServerException as __InternalServerException, InvalidInputException as __InvalidInputException, ResourceNotFoundException as __ResourceNotFoundException, RuntimeClientError as __RuntimeClientError, ServiceException as __ServiceException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottledException as __ThrottledException, ThrottlingException as __ThrottlingException, UnauthorizedException as __UnauthorizedException, ValidationException as __ValidationException, } from "../models/errors";
|
|
393
|
+
import { AccessDeniedException as __AccessDeniedException, ConflictException as __ConflictException, DuplicateIdException as __DuplicateIdException, InternalServerException as __InternalServerException, InvalidInputException as __InvalidInputException, ResourceNotFoundException as __ResourceNotFoundException, RuntimeClientError as __RuntimeClientError, ServiceException as __ServiceException, ServiceQuotaExceededException as __ServiceQuotaExceededException, ThrottledException as __ThrottledException, ThrottlingException as __ThrottlingException, UnauthorizedException as __UnauthorizedException, ValidationException as __ValidationException, } from "../models/errors";
|
|
359
394
|
export var AccessTokenType = [0, n0, _ATT, 8, 0];
|
|
360
395
|
export var ApiKeyType = [0, n0, _AKT, 8, 0];
|
|
361
396
|
export var AuthorizationUrlType = [0, n0, _AUT, 8, 0];
|
|
362
397
|
export var Body = [0, n0, _B, 8, 21];
|
|
363
398
|
export var CustomRequestValueType = [0, n0, _CRVT, 8, 0];
|
|
364
399
|
export var Document = [0, n0, _D, 8, 15];
|
|
400
|
+
export var EvaluationExplanation = [0, n0, _EE, 8, 0];
|
|
365
401
|
export var ResponseStream = [
|
|
366
402
|
0,
|
|
367
403
|
n0,
|
|
@@ -545,6 +581,35 @@ export var DeleteMemoryRecordInput = [
|
|
|
545
581
|
],
|
|
546
582
|
];
|
|
547
583
|
export var DeleteMemoryRecordOutput = [3, n0, _DMRO, 0, [_mRI], [0]];
|
|
584
|
+
export var DuplicateIdException = [
|
|
585
|
+
-3,
|
|
586
|
+
n0,
|
|
587
|
+
_DIE,
|
|
588
|
+
{
|
|
589
|
+
[_e]: _c,
|
|
590
|
+
[_hE]: 409,
|
|
591
|
+
},
|
|
592
|
+
[_m],
|
|
593
|
+
[0],
|
|
594
|
+
];
|
|
595
|
+
TypeRegistry.for(n0).registerError(DuplicateIdException, __DuplicateIdException);
|
|
596
|
+
export var EvaluateRequest = [
|
|
597
|
+
3,
|
|
598
|
+
n0,
|
|
599
|
+
_ER,
|
|
600
|
+
0,
|
|
601
|
+
[_eIv, _eIva, _eTv],
|
|
602
|
+
[[0, 1], [() => EvaluationInput, 0], () => EvaluationTarget],
|
|
603
|
+
];
|
|
604
|
+
export var EvaluateResponse = [3, n0, _ERv, 0, [_eR], [[() => EvaluationResults, 0]]];
|
|
605
|
+
export var EvaluationResultContent = [
|
|
606
|
+
3,
|
|
607
|
+
n0,
|
|
608
|
+
_ERC,
|
|
609
|
+
0,
|
|
610
|
+
[_eA, _eIv, _eN, _ex, _con, _v, _l, _tU, _eM, _eC],
|
|
611
|
+
[0, 0, 0, [() => EvaluationExplanation, 0], () => Context, 1, 0, () => TokenUsage, 0, 0],
|
|
612
|
+
];
|
|
548
613
|
export var Event = [
|
|
549
614
|
3,
|
|
550
615
|
n0,
|
|
@@ -558,7 +623,7 @@ export var EventMetadataFilterExpression = [
|
|
|
558
623
|
n0,
|
|
559
624
|
_EMFE,
|
|
560
625
|
0,
|
|
561
|
-
[
|
|
626
|
+
[_le, _o, _ri],
|
|
562
627
|
[() => LeftExpression, 0, () => RightExpression],
|
|
563
628
|
];
|
|
564
629
|
export var ExtractionJob = [3, n0, _EJ, 0, [_jI], [0]];
|
|
@@ -576,7 +641,7 @@ export var FilterInput = [
|
|
|
576
641
|
n0,
|
|
577
642
|
_FI,
|
|
578
643
|
0,
|
|
579
|
-
[_b,
|
|
644
|
+
[_b, _eMv],
|
|
580
645
|
[() => BranchFilter, () => EventMetadataFilterList],
|
|
581
646
|
];
|
|
582
647
|
export var GetAgentCardRequest = [
|
|
@@ -1054,13 +1119,21 @@ export var ListMemoryRecordsOutput = [
|
|
|
1054
1119
|
export var ListSessionsInput = [3, n0, _LSI, 0, [_mI, _aI, _mRa, _nT], [[0, 1], [0, 1], 1, 0]];
|
|
1055
1120
|
export var ListSessionsOutput = [3, n0, _LSO, 0, [_sSes, _nT], [() => SessionSummaryList, 0]];
|
|
1056
1121
|
export var LiveViewStream = [3, n0, _LVS, 0, [_sE], [0]];
|
|
1122
|
+
export var MemoryMetadataFilterExpression = [
|
|
1123
|
+
3,
|
|
1124
|
+
n0,
|
|
1125
|
+
_MMFE,
|
|
1126
|
+
0,
|
|
1127
|
+
[_le, _o, _ri],
|
|
1128
|
+
[() => LeftExpression, 0, () => RightExpression],
|
|
1129
|
+
];
|
|
1057
1130
|
export var MemoryRecord = [
|
|
1058
1131
|
3,
|
|
1059
1132
|
n0,
|
|
1060
1133
|
_MR,
|
|
1061
1134
|
0,
|
|
1062
|
-
[_mRI, _co, _mSIe, _nam, _cA],
|
|
1063
|
-
[0, [() => MemoryContent, 0], 0, 64 | 0, 4],
|
|
1135
|
+
[_mRI, _co, _mSIe, _nam, _cA, _me],
|
|
1136
|
+
[0, [() => MemoryContent, 0], 0, 64 | 0, 4, () => MetadataMap],
|
|
1064
1137
|
];
|
|
1065
1138
|
export var MemoryRecordCreateInput = [
|
|
1066
1139
|
3,
|
|
@@ -1071,14 +1144,14 @@ export var MemoryRecordCreateInput = [
|
|
|
1071
1144
|
[0, 64 | 0, [() => MemoryContent, 0], 4, 0],
|
|
1072
1145
|
];
|
|
1073
1146
|
export var MemoryRecordDeleteInput = [3, n0, _MRDI, 0, [_mRI], [0]];
|
|
1074
|
-
export var MemoryRecordOutput = [3, n0, _MRO, 0, [_mRI, _st, _rI, _eC,
|
|
1147
|
+
export var MemoryRecordOutput = [3, n0, _MRO, 0, [_mRI, _st, _rI, _eC, _eM], [0, 0, 0, 1, 0]];
|
|
1075
1148
|
export var MemoryRecordSummary = [
|
|
1076
1149
|
3,
|
|
1077
1150
|
n0,
|
|
1078
1151
|
_MRS,
|
|
1079
1152
|
0,
|
|
1080
|
-
[_mRI, _co, _mSIe, _nam, _cA, _sco],
|
|
1081
|
-
[0, [() => MemoryContent, 0], 0, 64 | 0, 4, 1],
|
|
1153
|
+
[_mRI, _co, _mSIe, _nam, _cA, _sco, _me],
|
|
1154
|
+
[0, [() => MemoryContent, 0], 0, 64 | 0, 4, 1, () => MetadataMap],
|
|
1082
1155
|
];
|
|
1083
1156
|
export var MemoryRecordUpdateInput = [
|
|
1084
1157
|
3,
|
|
@@ -1135,8 +1208,8 @@ export var SearchCriteria = [
|
|
|
1135
1208
|
n0,
|
|
1136
1209
|
_SC,
|
|
1137
1210
|
0,
|
|
1138
|
-
[_sQ, _mSIe, _tK],
|
|
1139
|
-
[[() => SensitiveString, 0], 0, 1],
|
|
1211
|
+
[_sQ, _mSIe, _tK, _mF],
|
|
1212
|
+
[[() => SensitiveString, 0], 0, 1, () => MemoryMetadataFilterList],
|
|
1140
1213
|
];
|
|
1141
1214
|
export var ServiceException = [
|
|
1142
1215
|
-3,
|
|
@@ -1163,6 +1236,7 @@ export var ServiceQuotaExceededException = [
|
|
|
1163
1236
|
];
|
|
1164
1237
|
TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, __ServiceQuotaExceededException);
|
|
1165
1238
|
export var SessionSummary = [3, n0, _SSe, 0, [_sI, _aI, _cA], [0, 0, 4]];
|
|
1239
|
+
export var SpanContext = [3, n0, _SCp, 0, [_sI, _tI, _sIp], [0, 0, 0]];
|
|
1166
1240
|
export var StartBrowserSessionRequest = [
|
|
1167
1241
|
3,
|
|
1168
1242
|
n0,
|
|
@@ -1369,6 +1443,7 @@ export var ThrottlingException = [
|
|
|
1369
1443
|
[0],
|
|
1370
1444
|
];
|
|
1371
1445
|
TypeRegistry.for(n0).registerError(ThrottlingException, __ThrottlingException);
|
|
1446
|
+
export var TokenUsage = [3, n0, _TU, 0, [_iTn, _oT, _tT], [1, 1, 1]];
|
|
1372
1447
|
export var ToolArguments = [
|
|
1373
1448
|
3,
|
|
1374
1449
|
n0,
|
|
@@ -1451,10 +1526,12 @@ export var ActorSummaryList = [1, n0, _ASL, 0, () => ActorSummary];
|
|
|
1451
1526
|
export var BrowserSessionSummaries = [1, n0, _BSSro, 0, () => BrowserSessionSummary];
|
|
1452
1527
|
export var CodeInterpreterSessionSummaries = [1, n0, _CISSo, 0, () => CodeInterpreterSessionSummary];
|
|
1453
1528
|
export var ContentBlockList = [1, n0, _CBL, 0, () => ContentBlock];
|
|
1529
|
+
export var EvaluationResults = [1, n0, _ERva, 0, [() => EvaluationResultContent, 0]];
|
|
1454
1530
|
export var EventList = [1, n0, _EL, 0, [() => Event, 0]];
|
|
1455
1531
|
export var EventMetadataFilterList = [1, n0, _EMFL, 0, () => EventMetadataFilterExpression];
|
|
1456
1532
|
export var ExtractionJobMetadataList = [1, n0, _EJML, 0, () => ExtractionJobMetadata];
|
|
1457
1533
|
export var InputContentBlockList = [1, n0, _ICBL, 0, [() => InputContentBlock, 0]];
|
|
1534
|
+
export var MemoryMetadataFilterList = [1, n0, _MMFL, 0, () => MemoryMetadataFilterExpression];
|
|
1458
1535
|
export var MemoryRecordsCreateInputList = [1, n0, _MRCIL, 0, [() => MemoryRecordCreateInput, 0]];
|
|
1459
1536
|
export var MemoryRecordsDeleteInputList = [1, n0, _MRDIL, 0, () => MemoryRecordDeleteInput];
|
|
1460
1537
|
export var MemoryRecordsOutputList = [1, n0, _MROL, 0, () => MemoryRecordOutput];
|
|
@@ -1465,7 +1542,10 @@ export var NamespacesList = 64 | 0;
|
|
|
1465
1542
|
export var PayloadTypeList = [1, n0, _PTL, 0, [() => PayloadType, 0]];
|
|
1466
1543
|
export var ScopesListType = 64 | 0;
|
|
1467
1544
|
export var SessionSummaryList = [1, n0, _SSL, 0, () => SessionSummary];
|
|
1545
|
+
export var SpanIds = 64 | 0;
|
|
1546
|
+
export var Spans = [1, n0, _Sp, 8, 15];
|
|
1468
1547
|
export var StringList = 64 | 0;
|
|
1548
|
+
export var TraceIds = 64 | 0;
|
|
1469
1549
|
export var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
|
|
1470
1550
|
export var CustomRequestParametersType = [2, n0, _CRPT, 0, [0, 0], [() => CustomRequestValueType, 0]];
|
|
1471
1551
|
export var MetadataMap = [2, n0, _MMe, 0, 0, () => MetadataValue];
|
|
@@ -1489,6 +1569,9 @@ export var CodeInterpreterStreamOutput = [
|
|
|
1489
1569
|
],
|
|
1490
1570
|
];
|
|
1491
1571
|
export var Content = [3, n0, _Co, 0, [_te], [[() => SensitiveString, 0]]];
|
|
1572
|
+
export var Context = [3, n0, _Con, 0, [_sCp], [() => SpanContext]];
|
|
1573
|
+
export var EvaluationInput = [3, n0, _EI, 0, [_sSess], [[() => Spans, 0]]];
|
|
1574
|
+
export var EvaluationTarget = [3, n0, _ET, 0, [_sIpa, _tIr], [64 | 0, 64 | 0]];
|
|
1492
1575
|
export var ExtractionJobMessages = [3, n0, _EJMx, 0, [_mL], [() => MessagesList]];
|
|
1493
1576
|
export var LeftExpression = [3, n0, _LE, 0, [_mK], [0]];
|
|
1494
1577
|
export var MemoryContent = [3, n0, _MC, 0, [_te], [[() => SensitiveString, 0]]];
|
|
@@ -1498,7 +1581,7 @@ export var PayloadType = [
|
|
|
1498
1581
|
n0,
|
|
1499
1582
|
_PT,
|
|
1500
1583
|
0,
|
|
1501
|
-
[
|
|
1584
|
+
[_conv, _bl],
|
|
1502
1585
|
[
|
|
1503
1586
|
[() => Conversational, 0],
|
|
1504
1587
|
[() => Document, 0],
|
|
@@ -1577,6 +1660,16 @@ export var DeleteMemoryRecord = [
|
|
|
1577
1660
|
() => DeleteMemoryRecordInput,
|
|
1578
1661
|
() => DeleteMemoryRecordOutput,
|
|
1579
1662
|
];
|
|
1663
|
+
export var Evaluate = [
|
|
1664
|
+
9,
|
|
1665
|
+
n0,
|
|
1666
|
+
_Ev,
|
|
1667
|
+
{
|
|
1668
|
+
[_ht]: ["POST", "/evaluations/evaluate/{evaluatorId}", 200],
|
|
1669
|
+
},
|
|
1670
|
+
() => EvaluateRequest,
|
|
1671
|
+
() => EvaluateResponse,
|
|
1672
|
+
];
|
|
1580
1673
|
export var GetAgentCard = [
|
|
1581
1674
|
9,
|
|
1582
1675
|
n0,
|
|
@@ -7,6 +7,7 @@ import { CompleteResourceTokenAuthCommandInput, CompleteResourceTokenAuthCommand
|
|
|
7
7
|
import { CreateEventCommandInput, CreateEventCommandOutput } from "./commands/CreateEventCommand";
|
|
8
8
|
import { DeleteEventCommandInput, DeleteEventCommandOutput } from "./commands/DeleteEventCommand";
|
|
9
9
|
import { DeleteMemoryRecordCommandInput, DeleteMemoryRecordCommandOutput } from "./commands/DeleteMemoryRecordCommand";
|
|
10
|
+
import { EvaluateCommandInput, EvaluateCommandOutput } from "./commands/EvaluateCommand";
|
|
10
11
|
import { GetAgentCardCommandInput, GetAgentCardCommandOutput } from "./commands/GetAgentCardCommand";
|
|
11
12
|
import { GetBrowserSessionCommandInput, GetBrowserSessionCommandOutput } from "./commands/GetBrowserSessionCommand";
|
|
12
13
|
import { GetCodeInterpreterSessionCommandInput, GetCodeInterpreterSessionCommandOutput } from "./commands/GetCodeInterpreterSessionCommand";
|
|
@@ -77,6 +78,12 @@ export interface BedrockAgentCore {
|
|
|
77
78
|
deleteMemoryRecord(args: DeleteMemoryRecordCommandInput, options?: __HttpHandlerOptions): Promise<DeleteMemoryRecordCommandOutput>;
|
|
78
79
|
deleteMemoryRecord(args: DeleteMemoryRecordCommandInput, cb: (err: any, data?: DeleteMemoryRecordCommandOutput) => void): void;
|
|
79
80
|
deleteMemoryRecord(args: DeleteMemoryRecordCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMemoryRecordCommandOutput) => void): void;
|
|
81
|
+
/**
|
|
82
|
+
* @see {@link EvaluateCommand}
|
|
83
|
+
*/
|
|
84
|
+
evaluate(args: EvaluateCommandInput, options?: __HttpHandlerOptions): Promise<EvaluateCommandOutput>;
|
|
85
|
+
evaluate(args: EvaluateCommandInput, cb: (err: any, data?: EvaluateCommandOutput) => void): void;
|
|
86
|
+
evaluate(args: EvaluateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: EvaluateCommandOutput) => void): void;
|
|
80
87
|
/**
|
|
81
88
|
* @see {@link GetAgentCardCommand}
|
|
82
89
|
*/
|
|
@@ -15,6 +15,7 @@ import { CompleteResourceTokenAuthCommandInput, CompleteResourceTokenAuthCommand
|
|
|
15
15
|
import { CreateEventCommandInput, CreateEventCommandOutput } from "./commands/CreateEventCommand";
|
|
16
16
|
import { DeleteEventCommandInput, DeleteEventCommandOutput } from "./commands/DeleteEventCommand";
|
|
17
17
|
import { DeleteMemoryRecordCommandInput, DeleteMemoryRecordCommandOutput } from "./commands/DeleteMemoryRecordCommand";
|
|
18
|
+
import { EvaluateCommandInput, EvaluateCommandOutput } from "./commands/EvaluateCommand";
|
|
18
19
|
import { GetAgentCardCommandInput, GetAgentCardCommandOutput } from "./commands/GetAgentCardCommand";
|
|
19
20
|
import { GetBrowserSessionCommandInput, GetBrowserSessionCommandOutput } from "./commands/GetBrowserSessionCommand";
|
|
20
21
|
import { GetCodeInterpreterSessionCommandInput, GetCodeInterpreterSessionCommandOutput } from "./commands/GetCodeInterpreterSessionCommand";
|
|
@@ -48,11 +49,11 @@ export { __Client };
|
|
|
48
49
|
/**
|
|
49
50
|
* @public
|
|
50
51
|
*/
|
|
51
|
-
export type ServiceInputTypes = BatchCreateMemoryRecordsCommandInput | BatchDeleteMemoryRecordsCommandInput | BatchUpdateMemoryRecordsCommandInput | CompleteResourceTokenAuthCommandInput | CreateEventCommandInput | DeleteEventCommandInput | DeleteMemoryRecordCommandInput | GetAgentCardCommandInput | GetBrowserSessionCommandInput | GetCodeInterpreterSessionCommandInput | GetEventCommandInput | GetMemoryRecordCommandInput | GetResourceApiKeyCommandInput | GetResourceOauth2TokenCommandInput | GetWorkloadAccessTokenCommandInput | GetWorkloadAccessTokenForJWTCommandInput | GetWorkloadAccessTokenForUserIdCommandInput | InvokeAgentRuntimeCommandInput | InvokeCodeInterpreterCommandInput | ListActorsCommandInput | ListBrowserSessionsCommandInput | ListCodeInterpreterSessionsCommandInput | ListEventsCommandInput | ListMemoryExtractionJobsCommandInput | ListMemoryRecordsCommandInput | ListSessionsCommandInput | RetrieveMemoryRecordsCommandInput | StartBrowserSessionCommandInput | StartCodeInterpreterSessionCommandInput | StartMemoryExtractionJobCommandInput | StopBrowserSessionCommandInput | StopCodeInterpreterSessionCommandInput | StopRuntimeSessionCommandInput | UpdateBrowserStreamCommandInput;
|
|
52
|
+
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 | StartBrowserSessionCommandInput | StartCodeInterpreterSessionCommandInput | StartMemoryExtractionJobCommandInput | StopBrowserSessionCommandInput | StopCodeInterpreterSessionCommandInput | StopRuntimeSessionCommandInput | UpdateBrowserStreamCommandInput;
|
|
52
53
|
/**
|
|
53
54
|
* @public
|
|
54
55
|
*/
|
|
55
|
-
export type ServiceOutputTypes = BatchCreateMemoryRecordsCommandOutput | BatchDeleteMemoryRecordsCommandOutput | BatchUpdateMemoryRecordsCommandOutput | CompleteResourceTokenAuthCommandOutput | CreateEventCommandOutput | DeleteEventCommandOutput | DeleteMemoryRecordCommandOutput | GetAgentCardCommandOutput | GetBrowserSessionCommandOutput | GetCodeInterpreterSessionCommandOutput | GetEventCommandOutput | GetMemoryRecordCommandOutput | GetResourceApiKeyCommandOutput | GetResourceOauth2TokenCommandOutput | GetWorkloadAccessTokenCommandOutput | GetWorkloadAccessTokenForJWTCommandOutput | GetWorkloadAccessTokenForUserIdCommandOutput | InvokeAgentRuntimeCommandOutput | InvokeCodeInterpreterCommandOutput | ListActorsCommandOutput | ListBrowserSessionsCommandOutput | ListCodeInterpreterSessionsCommandOutput | ListEventsCommandOutput | ListMemoryExtractionJobsCommandOutput | ListMemoryRecordsCommandOutput | ListSessionsCommandOutput | RetrieveMemoryRecordsCommandOutput | StartBrowserSessionCommandOutput | StartCodeInterpreterSessionCommandOutput | StartMemoryExtractionJobCommandOutput | StopBrowserSessionCommandOutput | StopCodeInterpreterSessionCommandOutput | StopRuntimeSessionCommandOutput | UpdateBrowserStreamCommandOutput;
|
|
56
|
+
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 | StartBrowserSessionCommandOutput | StartCodeInterpreterSessionCommandOutput | StartMemoryExtractionJobCommandOutput | StopBrowserSessionCommandOutput | StopCodeInterpreterSessionCommandOutput | StopRuntimeSessionCommandOutput | UpdateBrowserStreamCommandOutput;
|
|
56
57
|
/**
|
|
57
58
|
* @public
|
|
58
59
|
*/
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../BedrockAgentCoreClient";
|
|
4
|
+
import { EvaluateRequest, EvaluateResponse } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link EvaluateCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface EvaluateCommandInput extends EvaluateRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link EvaluateCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface EvaluateCommandOutput extends EvaluateResponse, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const EvaluateCommand_base: {
|
|
25
|
+
new (input: EvaluateCommandInput): import("@smithy/smithy-client").CommandImpl<EvaluateCommandInput, EvaluateCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: EvaluateCommandInput): import("@smithy/smithy-client").CommandImpl<EvaluateCommandInput, EvaluateCommandOutput, BedrockAgentCoreClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p> Performs on-demand evaluation of agent traces using a specified evaluator. This synchronous API accepts traces in OpenTelemetry format and returns immediate scoring results with detailed explanations.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { BedrockAgentCoreClient, EvaluateCommand } from "@aws-sdk/client-bedrock-agentcore"; // ES Modules import
|
|
35
|
+
* // const { BedrockAgentCoreClient, EvaluateCommand } = require("@aws-sdk/client-bedrock-agentcore"); // CommonJS import
|
|
36
|
+
* // import type { BedrockAgentCoreClientConfig } from "@aws-sdk/client-bedrock-agentcore";
|
|
37
|
+
* const config = {}; // type is BedrockAgentCoreClientConfig
|
|
38
|
+
* const client = new BedrockAgentCoreClient(config);
|
|
39
|
+
* const input = { // EvaluateRequest
|
|
40
|
+
* evaluatorId: "STRING_VALUE", // required
|
|
41
|
+
* evaluationInput: { // EvaluationInput Union: only one key present
|
|
42
|
+
* sessionSpans: [ // Spans
|
|
43
|
+
* "DOCUMENT_VALUE",
|
|
44
|
+
* ],
|
|
45
|
+
* },
|
|
46
|
+
* evaluationTarget: { // EvaluationTarget Union: only one key present
|
|
47
|
+
* spanIds: [ // SpanIds
|
|
48
|
+
* "STRING_VALUE",
|
|
49
|
+
* ],
|
|
50
|
+
* traceIds: [ // TraceIds
|
|
51
|
+
* "STRING_VALUE",
|
|
52
|
+
* ],
|
|
53
|
+
* },
|
|
54
|
+
* };
|
|
55
|
+
* const command = new EvaluateCommand(input);
|
|
56
|
+
* const response = await client.send(command);
|
|
57
|
+
* // { // EvaluateResponse
|
|
58
|
+
* // evaluationResults: [ // EvaluationResults // required
|
|
59
|
+
* // { // EvaluationResultContent
|
|
60
|
+
* // evaluatorArn: "STRING_VALUE", // required
|
|
61
|
+
* // evaluatorId: "STRING_VALUE", // required
|
|
62
|
+
* // evaluatorName: "STRING_VALUE", // required
|
|
63
|
+
* // explanation: "STRING_VALUE",
|
|
64
|
+
* // context: { // Context Union: only one key present
|
|
65
|
+
* // spanContext: { // SpanContext
|
|
66
|
+
* // sessionId: "STRING_VALUE", // required
|
|
67
|
+
* // traceId: "STRING_VALUE",
|
|
68
|
+
* // spanId: "STRING_VALUE",
|
|
69
|
+
* // },
|
|
70
|
+
* // },
|
|
71
|
+
* // value: Number("double"),
|
|
72
|
+
* // label: "STRING_VALUE",
|
|
73
|
+
* // tokenUsage: { // TokenUsage
|
|
74
|
+
* // inputTokens: Number("int"),
|
|
75
|
+
* // outputTokens: Number("int"),
|
|
76
|
+
* // totalTokens: Number("int"),
|
|
77
|
+
* // },
|
|
78
|
+
* // errorMessage: "STRING_VALUE",
|
|
79
|
+
* // errorCode: "STRING_VALUE",
|
|
80
|
+
* // },
|
|
81
|
+
* // ],
|
|
82
|
+
* // };
|
|
83
|
+
*
|
|
84
|
+
* ```
|
|
85
|
+
*
|
|
86
|
+
* @param EvaluateCommandInput - {@link EvaluateCommandInput}
|
|
87
|
+
* @returns {@link EvaluateCommandOutput}
|
|
88
|
+
* @see {@link EvaluateCommandInput} for command's `input` shape.
|
|
89
|
+
* @see {@link EvaluateCommandOutput} for command's `response` shape.
|
|
90
|
+
* @see {@link BedrockAgentCoreClientResolvedConfig | config} for BedrockAgentCoreClient's `config` shape.
|
|
91
|
+
*
|
|
92
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
93
|
+
* <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>
|
|
94
|
+
*
|
|
95
|
+
* @throws {@link ConflictException} (client fault)
|
|
96
|
+
* <p>The exception that occurs when the request conflicts with the current state of the resource. This can happen when trying to modify a resource that is currently being modified by another request, or when trying to create a resource that already exists.</p>
|
|
97
|
+
*
|
|
98
|
+
* @throws {@link DuplicateIdException} (client fault)
|
|
99
|
+
* <p> An exception thrown when attempting to create a resource with an identifier that already exists.</p>
|
|
100
|
+
*
|
|
101
|
+
* @throws {@link InternalServerException} (server fault)
|
|
102
|
+
* <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>
|
|
103
|
+
*
|
|
104
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
105
|
+
* <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>
|
|
106
|
+
*
|
|
107
|
+
* @throws {@link ServiceQuotaExceededException} (client fault)
|
|
108
|
+
* <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>
|
|
109
|
+
*
|
|
110
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
111
|
+
* <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>
|
|
112
|
+
*
|
|
113
|
+
* @throws {@link UnauthorizedException} (client fault)
|
|
114
|
+
* <p>This exception is thrown when the JWT bearer token is invalid or not found for OAuth bearer token based access</p>
|
|
115
|
+
*
|
|
116
|
+
* @throws {@link ValidationException} (client fault)
|
|
117
|
+
* <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>
|
|
118
|
+
*
|
|
119
|
+
* @throws {@link BedrockAgentCoreServiceException}
|
|
120
|
+
* <p>Base exception class for all service exceptions from BedrockAgentCore service.</p>
|
|
121
|
+
*
|
|
122
|
+
*
|
|
123
|
+
* @public
|
|
124
|
+
*/
|
|
125
|
+
export declare class EvaluateCommand extends EvaluateCommand_base {
|
|
126
|
+
/** @internal type navigation helper, not in runtime. */
|
|
127
|
+
protected static __types: {
|
|
128
|
+
api: {
|
|
129
|
+
input: EvaluateRequest;
|
|
130
|
+
output: EvaluateResponse;
|
|
131
|
+
};
|
|
132
|
+
sdk: {
|
|
133
|
+
input: EvaluateCommandInput;
|
|
134
|
+
output: EvaluateCommandOutput;
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
}
|
|
@@ -27,7 +27,7 @@ declare const GetBrowserSessionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Retrieves detailed information about a specific browser session in Amazon Bedrock. This operation returns the session's configuration, current status, associated streams, and metadata.</p> <p>To get a browser session, you must specify both the browser identifier and the session ID. The response includes information about the session's viewport configuration, timeout settings, and stream endpoints.</p> <p>The following operations are related to <code>GetBrowserSession</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/API_StartBrowserSession.html">StartBrowserSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/API_ListBrowserSessions.html">ListBrowserSessions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/API_StopBrowserSession.html">StopBrowserSession</a> </p> </li> </ul>
|
|
30
|
+
* <p>Retrieves detailed information about a specific browser session in Amazon Bedrock. This operation returns the session's configuration, current status, associated streams, and metadata.</p> <p>To get a browser session, you must specify both the browser identifier and the session ID. The response includes information about the session's viewport configuration, timeout settings, and stream endpoints.</p> <p>The following operations are related to <code>GetBrowserSession</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StartBrowserSession.html">StartBrowserSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_ListBrowserSessions.html">ListBrowserSessions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StopBrowserSession.html">StopBrowserSession</a> </p> </li> </ul>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const GetCodeInterpreterSessionCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Retrieves detailed information about a specific code interpreter session in Amazon Bedrock. This operation returns the session's configuration, current status, and metadata.</p> <p>To get a code interpreter session, you must specify both the code interpreter identifier and the session ID. The response includes information about the session's timeout settings and current status.</p> <p>The following operations are related to <code>GetCodeInterpreterSession</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/API_StartCodeInterpreterSession.html">StartCodeInterpreterSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/API_ListCodeInterpreterSessions.html">ListCodeInterpreterSessions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/API_StopCodeInterpreterSession.html">StopCodeInterpreterSession</a> </p> </li> </ul>
|
|
30
|
+
* <p>Retrieves detailed information about a specific code interpreter session in Amazon Bedrock. This operation returns the session's configuration, current status, and metadata.</p> <p>To get a code interpreter session, you must specify both the code interpreter identifier and the session ID. The response includes information about the session's timeout settings and current status.</p> <p>The following operations are related to <code>GetCodeInterpreterSession</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StartCodeInterpreterSession.html">StartCodeInterpreterSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_ListCodeInterpreterSessions.html">ListCodeInterpreterSessions</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StopCodeInterpreterSession.html">StopCodeInterpreterSession</a> </p> </li> </ul>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -53,6 +53,11 @@ declare const GetMemoryRecordCommand_base: {
|
|
|
53
53
|
* // "STRING_VALUE",
|
|
54
54
|
* // ],
|
|
55
55
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
56
|
+
* // metadata: { // MetadataMap
|
|
57
|
+
* // "<keys>": { // MetadataValue Union: only one key present
|
|
58
|
+
* // stringValue: "STRING_VALUE",
|
|
59
|
+
* // },
|
|
60
|
+
* // },
|
|
56
61
|
* // },
|
|
57
62
|
* // };
|
|
58
63
|
*
|
|
@@ -27,7 +27,7 @@ declare const InvokeCodeInterpreterCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Executes code within an active code interpreter session in Amazon Bedrock. This operation processes the provided code, runs it in a secure environment, and returns the execution results including output, errors, and generated visualizations.</p> <p>To execute code, you must specify the code interpreter identifier, session ID, and the code to run in the arguments parameter. The operation returns a stream containing the execution results, which can include text output, error messages, and data visualizations.</p> <p>This operation is subject to request rate limiting based on your account's service quotas.</p> <p>The following operations are related to <code>InvokeCodeInterpreter</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/API_StartCodeInterpreterSession.html">StartCodeInterpreterSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/API_GetCodeInterpreterSession.html">GetCodeInterpreterSession</a> </p> </li> </ul>
|
|
30
|
+
* <p>Executes code within an active code interpreter session in Amazon Bedrock. This operation processes the provided code, runs it in a secure environment, and returns the execution results including output, errors, and generated visualizations.</p> <p>To execute code, you must specify the code interpreter identifier, session ID, and the code to run in the arguments parameter. The operation returns a stream containing the execution results, which can include text output, error messages, and data visualizations.</p> <p>This operation is subject to request rate limiting based on your account's service quotas.</p> <p>The following operations are related to <code>InvokeCodeInterpreter</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StartCodeInterpreterSession.html">StartCodeInterpreterSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetCodeInterpreterSession.html">GetCodeInterpreterSession</a> </p> </li> </ul>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const ListBrowserSessionsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Retrieves a list of browser sessions in Amazon Bedrock that match the specified criteria. This operation returns summary information about each session, including identifiers, status, and timestamps.</p> <p>You can filter the results by browser identifier and session status. The operation supports pagination to handle large result sets efficiently.</p> <p>We recommend using pagination to ensure that the operation returns quickly and successfully when retrieving large numbers of sessions.</p> <p>The following operations are related to <code>ListBrowserSessions</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/API_StartBrowserSession.html">StartBrowserSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/API_GetBrowserSession.html">GetBrowserSession</a> </p> </li> </ul>
|
|
30
|
+
* <p>Retrieves a list of browser sessions in Amazon Bedrock that match the specified criteria. This operation returns summary information about each session, including identifiers, status, and timestamps.</p> <p>You can filter the results by browser identifier and session status. The operation supports pagination to handle large result sets efficiently.</p> <p>We recommend using pagination to ensure that the operation returns quickly and successfully when retrieving large numbers of sessions.</p> <p>The following operations are related to <code>ListBrowserSessions</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StartBrowserSession.html">StartBrowserSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetBrowserSession.html">GetBrowserSession</a> </p> </li> </ul>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -27,7 +27,7 @@ declare const ListCodeInterpreterSessionsCommand_base: {
|
|
|
27
27
|
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
28
|
};
|
|
29
29
|
/**
|
|
30
|
-
* <p>Retrieves a list of code interpreter sessions in Amazon Bedrock that match the specified criteria. This operation returns summary information about each session, including identifiers, status, and timestamps.</p> <p>You can filter the results by code interpreter identifier and session status. The operation supports pagination to handle large result sets efficiently.</p> <p>We recommend using pagination to ensure that the operation returns quickly and successfully when retrieving large numbers of sessions.</p> <p>The following operations are related to <code>ListCodeInterpreterSessions</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/API_StartCodeInterpreterSession.html">StartCodeInterpreterSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/API_GetCodeInterpreterSession.html">GetCodeInterpreterSession</a> </p> </li> </ul>
|
|
30
|
+
* <p>Retrieves a list of code interpreter sessions in Amazon Bedrock that match the specified criteria. This operation returns summary information about each session, including identifiers, status, and timestamps.</p> <p>You can filter the results by code interpreter identifier and session status. The operation supports pagination to handle large result sets efficiently.</p> <p>We recommend using pagination to ensure that the operation returns quickly and successfully when retrieving large numbers of sessions.</p> <p>The following operations are related to <code>ListCodeInterpreterSessions</code>:</p> <ul> <li> <p> <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_StartCodeInterpreterSession.html">StartCodeInterpreterSession</a> </p> </li> <li> <p> <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/APIReference/API_GetCodeInterpreterSession.html">GetCodeInterpreterSession</a> </p> </li> </ul>
|
|
31
31
|
* @example
|
|
32
32
|
* Use a bare-bones client and the command you need to make an API call.
|
|
33
33
|
* ```javascript
|
|
@@ -58,6 +58,11 @@ declare const ListMemoryRecordsCommand_base: {
|
|
|
58
58
|
* // ],
|
|
59
59
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
60
60
|
* // score: Number("double"),
|
|
61
|
+
* // metadata: { // MetadataMap
|
|
62
|
+
* // "<keys>": { // MetadataValue Union: only one key present
|
|
63
|
+
* // stringValue: "STRING_VALUE",
|
|
64
|
+
* // },
|
|
65
|
+
* // },
|
|
61
66
|
* // },
|
|
62
67
|
* // ],
|
|
63
68
|
* // nextToken: "STRING_VALUE",
|