@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
package/README.md
CHANGED
|
@@ -258,6 +258,14 @@ DeleteMemoryRecord
|
|
|
258
258
|
|
|
259
259
|
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/DeleteMemoryRecordCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/DeleteMemoryRecordCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/DeleteMemoryRecordCommandOutput/)
|
|
260
260
|
|
|
261
|
+
</details>
|
|
262
|
+
<details>
|
|
263
|
+
<summary>
|
|
264
|
+
Evaluate
|
|
265
|
+
</summary>
|
|
266
|
+
|
|
267
|
+
[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/bedrock-agentcore/command/EvaluateCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/EvaluateCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-bedrock-agentcore/Interface/EvaluateCommandOutput/)
|
|
268
|
+
|
|
261
269
|
</details>
|
|
262
270
|
<details>
|
|
263
271
|
<summary>
|
package/dist-cjs/index.js
CHANGED
|
@@ -231,6 +231,18 @@ let UnauthorizedException$1 = class UnauthorizedException extends BedrockAgentCo
|
|
|
231
231
|
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
232
232
|
}
|
|
233
233
|
};
|
|
234
|
+
let DuplicateIdException$1 = class DuplicateIdException extends BedrockAgentCoreServiceException$1 {
|
|
235
|
+
name = "DuplicateIdException";
|
|
236
|
+
$fault = "client";
|
|
237
|
+
constructor(opts) {
|
|
238
|
+
super({
|
|
239
|
+
name: "DuplicateIdException",
|
|
240
|
+
$fault: "client",
|
|
241
|
+
...opts,
|
|
242
|
+
});
|
|
243
|
+
Object.setPrototypeOf(this, DuplicateIdException.prototype);
|
|
244
|
+
}
|
|
245
|
+
};
|
|
234
246
|
let ServiceException$1 = class ServiceException extends BedrockAgentCoreServiceException$1 {
|
|
235
247
|
name = "ServiceException";
|
|
236
248
|
$fault = "server";
|
|
@@ -310,14 +322,18 @@ const _CRTARo = "CompleteResourceTokenAuthResponse";
|
|
|
310
322
|
const _CRVT = "CustomRequestValueType";
|
|
311
323
|
const _CT = "Content-Type";
|
|
312
324
|
const _Co = "Content";
|
|
325
|
+
const _Con = "Context";
|
|
313
326
|
const _D = "Document";
|
|
314
327
|
const _DE = "DeleteEvent";
|
|
315
328
|
const _DEI = "DeleteEventInput";
|
|
316
329
|
const _DEO = "DeleteEventOutput";
|
|
330
|
+
const _DIE = "DuplicateIdException";
|
|
317
331
|
const _DMR = "DeleteMemoryRecord";
|
|
318
332
|
const _DMRI = "DeleteMemoryRecordInput";
|
|
319
333
|
const _DMRO = "DeleteMemoryRecordOutput";
|
|
320
334
|
const _E = "Event";
|
|
335
|
+
const _EE = "EvaluationExplanation";
|
|
336
|
+
const _EI = "EvaluationInput";
|
|
321
337
|
const _EJ = "ExtractionJob";
|
|
322
338
|
const _EJFI = "ExtractionJobFilterInput";
|
|
323
339
|
const _EJM = "ExtractionJobMetadata";
|
|
@@ -326,6 +342,12 @@ const _EJMx = "ExtractionJobMessages";
|
|
|
326
342
|
const _EL = "EventList";
|
|
327
343
|
const _EMFE = "EventMetadataFilterExpression";
|
|
328
344
|
const _EMFL = "EventMetadataFilterList";
|
|
345
|
+
const _ER = "EvaluateRequest";
|
|
346
|
+
const _ERC = "EvaluationResultContent";
|
|
347
|
+
const _ERv = "EvaluateResponse";
|
|
348
|
+
const _ERva = "EvaluationResults";
|
|
349
|
+
const _ET = "EvaluationTarget";
|
|
350
|
+
const _Ev = "Evaluate";
|
|
329
351
|
const _FI = "FilterInput";
|
|
330
352
|
const _GAC = "GetAgentCard";
|
|
331
353
|
const _GACR = "GetAgentCardRequest";
|
|
@@ -393,6 +415,8 @@ const _LVS = "LiveViewStream";
|
|
|
393
415
|
const _MC = "MemoryContent";
|
|
394
416
|
const _ML = "MessagesList";
|
|
395
417
|
const _MM = "MessageMetadata";
|
|
418
|
+
const _MMFE = "MemoryMetadataFilterExpression";
|
|
419
|
+
const _MMFL = "MemoryMetadataFilterList";
|
|
396
420
|
const _MMe = "MetadataMap";
|
|
397
421
|
const _MPV = "Mcp-Protocol-Version";
|
|
398
422
|
const _MR = "MemoryRecord";
|
|
@@ -432,6 +456,7 @@ const _SCISRt = "StartCodeInterpreterSessionResponse";
|
|
|
432
456
|
const _SCISRto = "StopCodeInterpreterSessionRequest";
|
|
433
457
|
const _SCISRtop = "StopCodeInterpreterSessionResponse";
|
|
434
458
|
const _SCISt = "StopCodeInterpreterSession";
|
|
459
|
+
const _SCp = "SpanContext";
|
|
435
460
|
const _SE = "ServiceException";
|
|
436
461
|
const _SMEJ = "StartMemoryExtractionJob";
|
|
437
462
|
const _SMEJI = "StartMemoryExtractionJobInput";
|
|
@@ -444,10 +469,12 @@ const _SS = "SensitiveString";
|
|
|
444
469
|
const _SSL = "SessionSummaryList";
|
|
445
470
|
const _SSe = "SessionSummary";
|
|
446
471
|
const _SU = "StreamUpdate";
|
|
472
|
+
const _Sp = "Spans";
|
|
447
473
|
const _TA = "ToolArguments";
|
|
448
474
|
const _TE = "ThrottledException";
|
|
449
475
|
const _TEh = "ThrottlingException";
|
|
450
476
|
const _TRSC = "ToolResultStructuredContent";
|
|
477
|
+
const _TU = "TokenUsage";
|
|
451
478
|
const _UBS = "UpdateBrowserStream";
|
|
452
479
|
const _UBSR = "UpdateBrowserStreamRequest";
|
|
453
480
|
const _UBSRp = "UpdateBrowserStreamResponse";
|
|
@@ -491,21 +518,29 @@ const _cTo = "contentType";
|
|
|
491
518
|
const _co = "content";
|
|
492
519
|
const _cod = "code";
|
|
493
520
|
const _com = "command";
|
|
494
|
-
const _con = "
|
|
521
|
+
const _con = "context";
|
|
522
|
+
const _conv = "conversational";
|
|
495
523
|
const _d = "data";
|
|
496
524
|
const _dP = "directoryPath";
|
|
497
525
|
const _de = "description";
|
|
498
526
|
const _e = "error";
|
|
527
|
+
const _eA = "evaluatorArn";
|
|
499
528
|
const _eC = "errorCode";
|
|
500
529
|
const _eCx = "exitCode";
|
|
501
530
|
const _eI = "eventId";
|
|
531
|
+
const _eIv = "evaluatorId";
|
|
532
|
+
const _eIva = "evaluationInput";
|
|
502
533
|
const _eJ = "extractionJob";
|
|
503
|
-
const _eM = "
|
|
504
|
-
const
|
|
534
|
+
const _eM = "errorMessage";
|
|
535
|
+
const _eMv = "eventMetadata";
|
|
536
|
+
const _eN = "evaluatorName";
|
|
537
|
+
const _eR = "evaluationResults";
|
|
505
538
|
const _eT = "eventTimestamp";
|
|
539
|
+
const _eTv = "evaluationTarget";
|
|
506
540
|
const _eTx = "executionTime";
|
|
507
541
|
const _ev = "event";
|
|
508
542
|
const _eve = "events";
|
|
543
|
+
const _ex = "explanation";
|
|
509
544
|
const _f = "filter";
|
|
510
545
|
const _fA = "forceAuthentication";
|
|
511
546
|
const _fL = "fieldList";
|
|
@@ -522,14 +557,17 @@ const _iP = "includePayloads";
|
|
|
522
557
|
const _iPB = "includeParentBranches";
|
|
523
558
|
const _iSE = "internalServerException";
|
|
524
559
|
const _iT = "idempotencyToken";
|
|
560
|
+
const _iTn = "inputTokens";
|
|
525
561
|
const _j = "jobs";
|
|
526
562
|
const _jI = "jobId";
|
|
527
563
|
const _jID = "jobID";
|
|
528
|
-
const _l = "
|
|
564
|
+
const _l = "label";
|
|
529
565
|
const _lUA = "lastUpdatedAt";
|
|
530
566
|
const _lVS = "liveViewStream";
|
|
531
567
|
const _la = "language";
|
|
568
|
+
const _le = "left";
|
|
532
569
|
const _m = "message";
|
|
570
|
+
const _mF = "metadataFilters";
|
|
533
571
|
const _mI = "memoryId";
|
|
534
572
|
const _mIe = "messageIndex";
|
|
535
573
|
const _mK = "metadataKey";
|
|
@@ -551,6 +589,7 @@ const _na = "namespace";
|
|
|
551
589
|
const _nam = "namespaces";
|
|
552
590
|
const _o = "operator";
|
|
553
591
|
const _oF = "oauth2Flow";
|
|
592
|
+
const _oT = "outputTokens";
|
|
554
593
|
const _p = "payload";
|
|
555
594
|
const _pa = "path";
|
|
556
595
|
const _pat = "paths";
|
|
@@ -572,9 +611,12 @@ const _ro = "role";
|
|
|
572
611
|
const _s = "streaming";
|
|
573
612
|
const _sC = "structuredContent";
|
|
574
613
|
const _sCe = "searchCriteria";
|
|
614
|
+
const _sCp = "spanContext";
|
|
575
615
|
const _sCt = "statusCode";
|
|
576
616
|
const _sE = "streamEndpoint";
|
|
577
617
|
const _sI = "sessionId";
|
|
618
|
+
const _sIp = "spanId";
|
|
619
|
+
const _sIpa = "spanIds";
|
|
578
620
|
const _sIt = "strategyId";
|
|
579
621
|
const _sQ = "searchQuery";
|
|
580
622
|
const _sQEE = "serviceQuotaExceededException";
|
|
@@ -583,6 +625,7 @@ const _sRA = "sessionReplayArtifact";
|
|
|
583
625
|
const _sS = "streamStatus";
|
|
584
626
|
const _sSe = "sessionStatus";
|
|
585
627
|
const _sSes = "sessionSummaries";
|
|
628
|
+
const _sSess = "sessionSpans";
|
|
586
629
|
const _sTS = "sessionTimeoutSeconds";
|
|
587
630
|
const _sU = "sessionUri";
|
|
588
631
|
const _sUt = "streamUpdate";
|
|
@@ -602,10 +645,13 @@ const _t = "type";
|
|
|
602
645
|
const _tE = "throttlingException";
|
|
603
646
|
const _tI = "traceId";
|
|
604
647
|
const _tIa = "taskId";
|
|
648
|
+
const _tIr = "traceIds";
|
|
605
649
|
const _tK = "topK";
|
|
606
650
|
const _tP = "traceParent";
|
|
607
651
|
const _tS = "traceState";
|
|
608
652
|
const _tSa = "taskStatus";
|
|
653
|
+
const _tT = "totalTokens";
|
|
654
|
+
const _tU = "tokenUsage";
|
|
609
655
|
const _te = "text";
|
|
610
656
|
const _ti = "timestamp";
|
|
611
657
|
const _tr = "traceparent";
|
|
@@ -615,6 +661,7 @@ const _uA = "updatedAt";
|
|
|
615
661
|
const _uI = "userIdentifier";
|
|
616
662
|
const _uIs = "userId";
|
|
617
663
|
const _uT = "userToken";
|
|
664
|
+
const _v = "value";
|
|
618
665
|
const _vE = "validationException";
|
|
619
666
|
const _vP = "viewPort";
|
|
620
667
|
const _w = "width";
|
|
@@ -629,6 +676,7 @@ var AuthorizationUrlType = [0, n0, _AUT, 8, 0];
|
|
|
629
676
|
var Body = [0, n0, _B, 8, 21];
|
|
630
677
|
var CustomRequestValueType = [0, n0, _CRVT, 8, 0];
|
|
631
678
|
var Document = [0, n0, _D, 8, 15];
|
|
679
|
+
var EvaluationExplanation = [0, n0, _EE, 8, 0];
|
|
632
680
|
var ResponseStream = [
|
|
633
681
|
0,
|
|
634
682
|
n0,
|
|
@@ -812,6 +860,35 @@ var DeleteMemoryRecordInput = [
|
|
|
812
860
|
],
|
|
813
861
|
];
|
|
814
862
|
var DeleteMemoryRecordOutput = [3, n0, _DMRO, 0, [_mRI], [0]];
|
|
863
|
+
var DuplicateIdException = [
|
|
864
|
+
-3,
|
|
865
|
+
n0,
|
|
866
|
+
_DIE,
|
|
867
|
+
{
|
|
868
|
+
[_e]: _c,
|
|
869
|
+
[_hE]: 409,
|
|
870
|
+
},
|
|
871
|
+
[_m],
|
|
872
|
+
[0],
|
|
873
|
+
];
|
|
874
|
+
schema.TypeRegistry.for(n0).registerError(DuplicateIdException, DuplicateIdException$1);
|
|
875
|
+
var EvaluateRequest = [
|
|
876
|
+
3,
|
|
877
|
+
n0,
|
|
878
|
+
_ER,
|
|
879
|
+
0,
|
|
880
|
+
[_eIv, _eIva, _eTv],
|
|
881
|
+
[[0, 1], [() => EvaluationInput, 0], () => EvaluationTarget],
|
|
882
|
+
];
|
|
883
|
+
var EvaluateResponse = [3, n0, _ERv, 0, [_eR], [[() => EvaluationResults, 0]]];
|
|
884
|
+
var EvaluationResultContent = [
|
|
885
|
+
3,
|
|
886
|
+
n0,
|
|
887
|
+
_ERC,
|
|
888
|
+
0,
|
|
889
|
+
[_eA, _eIv, _eN, _ex, _con, _v, _l, _tU, _eM, _eC],
|
|
890
|
+
[0, 0, 0, [() => EvaluationExplanation, 0], () => Context, 1, 0, () => TokenUsage, 0, 0],
|
|
891
|
+
];
|
|
815
892
|
var Event = [
|
|
816
893
|
3,
|
|
817
894
|
n0,
|
|
@@ -825,7 +902,7 @@ var EventMetadataFilterExpression = [
|
|
|
825
902
|
n0,
|
|
826
903
|
_EMFE,
|
|
827
904
|
0,
|
|
828
|
-
[
|
|
905
|
+
[_le, _o, _ri],
|
|
829
906
|
[() => LeftExpression, 0, () => RightExpression],
|
|
830
907
|
];
|
|
831
908
|
var ExtractionJob = [3, n0, _EJ, 0, [_jI], [0]];
|
|
@@ -843,7 +920,7 @@ var FilterInput = [
|
|
|
843
920
|
n0,
|
|
844
921
|
_FI,
|
|
845
922
|
0,
|
|
846
|
-
[_b,
|
|
923
|
+
[_b, _eMv],
|
|
847
924
|
[() => BranchFilter, () => EventMetadataFilterList],
|
|
848
925
|
];
|
|
849
926
|
var GetAgentCardRequest = [
|
|
@@ -1321,13 +1398,21 @@ var ListMemoryRecordsOutput = [
|
|
|
1321
1398
|
var ListSessionsInput = [3, n0, _LSI, 0, [_mI, _aI, _mRa, _nT], [[0, 1], [0, 1], 1, 0]];
|
|
1322
1399
|
var ListSessionsOutput = [3, n0, _LSO, 0, [_sSes, _nT], [() => SessionSummaryList, 0]];
|
|
1323
1400
|
var LiveViewStream = [3, n0, _LVS, 0, [_sE], [0]];
|
|
1401
|
+
var MemoryMetadataFilterExpression = [
|
|
1402
|
+
3,
|
|
1403
|
+
n0,
|
|
1404
|
+
_MMFE,
|
|
1405
|
+
0,
|
|
1406
|
+
[_le, _o, _ri],
|
|
1407
|
+
[() => LeftExpression, 0, () => RightExpression],
|
|
1408
|
+
];
|
|
1324
1409
|
var MemoryRecord = [
|
|
1325
1410
|
3,
|
|
1326
1411
|
n0,
|
|
1327
1412
|
_MR,
|
|
1328
1413
|
0,
|
|
1329
|
-
[_mRI, _co, _mSIe, _nam, _cA],
|
|
1330
|
-
[0, [() => MemoryContent, 0], 0, 64 | 0, 4],
|
|
1414
|
+
[_mRI, _co, _mSIe, _nam, _cA, _me],
|
|
1415
|
+
[0, [() => MemoryContent, 0], 0, 64 | 0, 4, () => MetadataMap],
|
|
1331
1416
|
];
|
|
1332
1417
|
var MemoryRecordCreateInput = [
|
|
1333
1418
|
3,
|
|
@@ -1338,14 +1423,14 @@ var MemoryRecordCreateInput = [
|
|
|
1338
1423
|
[0, 64 | 0, [() => MemoryContent, 0], 4, 0],
|
|
1339
1424
|
];
|
|
1340
1425
|
var MemoryRecordDeleteInput = [3, n0, _MRDI, 0, [_mRI], [0]];
|
|
1341
|
-
var MemoryRecordOutput = [3, n0, _MRO, 0, [_mRI, _st, _rI, _eC,
|
|
1426
|
+
var MemoryRecordOutput = [3, n0, _MRO, 0, [_mRI, _st, _rI, _eC, _eM], [0, 0, 0, 1, 0]];
|
|
1342
1427
|
var MemoryRecordSummary = [
|
|
1343
1428
|
3,
|
|
1344
1429
|
n0,
|
|
1345
1430
|
_MRS,
|
|
1346
1431
|
0,
|
|
1347
|
-
[_mRI, _co, _mSIe, _nam, _cA, _sco],
|
|
1348
|
-
[0, [() => MemoryContent, 0], 0, 64 | 0, 4, 1],
|
|
1432
|
+
[_mRI, _co, _mSIe, _nam, _cA, _sco, _me],
|
|
1433
|
+
[0, [() => MemoryContent, 0], 0, 64 | 0, 4, 1, () => MetadataMap],
|
|
1349
1434
|
];
|
|
1350
1435
|
var MemoryRecordUpdateInput = [
|
|
1351
1436
|
3,
|
|
@@ -1402,8 +1487,8 @@ var SearchCriteria = [
|
|
|
1402
1487
|
n0,
|
|
1403
1488
|
_SC,
|
|
1404
1489
|
0,
|
|
1405
|
-
[_sQ, _mSIe, _tK],
|
|
1406
|
-
[[() => SensitiveString, 0], 0, 1],
|
|
1490
|
+
[_sQ, _mSIe, _tK, _mF],
|
|
1491
|
+
[[() => SensitiveString, 0], 0, 1, () => MemoryMetadataFilterList],
|
|
1407
1492
|
];
|
|
1408
1493
|
var ServiceException = [
|
|
1409
1494
|
-3,
|
|
@@ -1430,6 +1515,7 @@ var ServiceQuotaExceededException = [
|
|
|
1430
1515
|
];
|
|
1431
1516
|
schema.TypeRegistry.for(n0).registerError(ServiceQuotaExceededException, ServiceQuotaExceededException$1);
|
|
1432
1517
|
var SessionSummary = [3, n0, _SSe, 0, [_sI, _aI, _cA], [0, 0, 4]];
|
|
1518
|
+
var SpanContext = [3, n0, _SCp, 0, [_sI, _tI, _sIp], [0, 0, 0]];
|
|
1433
1519
|
var StartBrowserSessionRequest = [
|
|
1434
1520
|
3,
|
|
1435
1521
|
n0,
|
|
@@ -1636,6 +1722,7 @@ var ThrottlingException = [
|
|
|
1636
1722
|
[0],
|
|
1637
1723
|
];
|
|
1638
1724
|
schema.TypeRegistry.for(n0).registerError(ThrottlingException, ThrottlingException$1);
|
|
1725
|
+
var TokenUsage = [3, n0, _TU, 0, [_iTn, _oT, _tT], [1, 1, 1]];
|
|
1639
1726
|
var ToolArguments = [
|
|
1640
1727
|
3,
|
|
1641
1728
|
n0,
|
|
@@ -1717,10 +1804,12 @@ var ActorSummaryList = [1, n0, _ASL, 0, () => ActorSummary];
|
|
|
1717
1804
|
var BrowserSessionSummaries = [1, n0, _BSSro, 0, () => BrowserSessionSummary];
|
|
1718
1805
|
var CodeInterpreterSessionSummaries = [1, n0, _CISSo, 0, () => CodeInterpreterSessionSummary];
|
|
1719
1806
|
var ContentBlockList = [1, n0, _CBL, 0, () => ContentBlock];
|
|
1807
|
+
var EvaluationResults = [1, n0, _ERva, 0, [() => EvaluationResultContent, 0]];
|
|
1720
1808
|
var EventList = [1, n0, _EL, 0, [() => Event, 0]];
|
|
1721
1809
|
var EventMetadataFilterList = [1, n0, _EMFL, 0, () => EventMetadataFilterExpression];
|
|
1722
1810
|
var ExtractionJobMetadataList = [1, n0, _EJML, 0, () => ExtractionJobMetadata];
|
|
1723
1811
|
var InputContentBlockList = [1, n0, _ICBL, 0, [() => InputContentBlock, 0]];
|
|
1812
|
+
var MemoryMetadataFilterList = [1, n0, _MMFL, 0, () => MemoryMetadataFilterExpression];
|
|
1724
1813
|
var MemoryRecordsCreateInputList = [1, n0, _MRCIL, 0, [() => MemoryRecordCreateInput, 0]];
|
|
1725
1814
|
var MemoryRecordsDeleteInputList = [1, n0, _MRDIL, 0, () => MemoryRecordDeleteInput];
|
|
1726
1815
|
var MemoryRecordsOutputList = [1, n0, _MROL, 0, () => MemoryRecordOutput];
|
|
@@ -1729,6 +1818,7 @@ var MemoryRecordsUpdateInputList = [1, n0, _MRUIL, 0, [() => MemoryRecordUpdateI
|
|
|
1729
1818
|
var MessagesList = [1, n0, _ML, 0, () => MessageMetadata];
|
|
1730
1819
|
var PayloadTypeList = [1, n0, _PTL, 0, [() => PayloadType, 0]];
|
|
1731
1820
|
var SessionSummaryList = [1, n0, _SSL, 0, () => SessionSummary];
|
|
1821
|
+
var Spans = [1, n0, _Sp, 8, 15];
|
|
1732
1822
|
var ValidationExceptionFieldList = [1, n0, _VEFL, 0, () => ValidationExceptionField];
|
|
1733
1823
|
var CustomRequestParametersType = [2, n0, _CRPT, 0, [0, 0], [() => CustomRequestValueType, 0]];
|
|
1734
1824
|
var MetadataMap = [2, n0, _MMe, 0, 0, () => MetadataValue];
|
|
@@ -1752,6 +1842,9 @@ var CodeInterpreterStreamOutput = [
|
|
|
1752
1842
|
],
|
|
1753
1843
|
];
|
|
1754
1844
|
var Content = [3, n0, _Co, 0, [_te], [[() => SensitiveString, 0]]];
|
|
1845
|
+
var Context = [3, n0, _Con, 0, [_sCp], [() => SpanContext]];
|
|
1846
|
+
var EvaluationInput = [3, n0, _EI, 0, [_sSess], [[() => Spans, 0]]];
|
|
1847
|
+
var EvaluationTarget = [3, n0, _ET, 0, [_sIpa, _tIr], [64 | 0, 64 | 0]];
|
|
1755
1848
|
var ExtractionJobMessages = [3, n0, _EJMx, 0, [_mL], [() => MessagesList]];
|
|
1756
1849
|
var LeftExpression = [3, n0, _LE, 0, [_mK], [0]];
|
|
1757
1850
|
var MemoryContent = [3, n0, _MC, 0, [_te], [[() => SensitiveString, 0]]];
|
|
@@ -1761,7 +1854,7 @@ var PayloadType = [
|
|
|
1761
1854
|
n0,
|
|
1762
1855
|
_PT,
|
|
1763
1856
|
0,
|
|
1764
|
-
[
|
|
1857
|
+
[_conv, _bl],
|
|
1765
1858
|
[
|
|
1766
1859
|
[() => Conversational, 0],
|
|
1767
1860
|
[() => Document, 0],
|
|
@@ -1840,6 +1933,16 @@ var DeleteMemoryRecord = [
|
|
|
1840
1933
|
() => DeleteMemoryRecordInput,
|
|
1841
1934
|
() => DeleteMemoryRecordOutput,
|
|
1842
1935
|
];
|
|
1936
|
+
var Evaluate = [
|
|
1937
|
+
9,
|
|
1938
|
+
n0,
|
|
1939
|
+
_Ev,
|
|
1940
|
+
{
|
|
1941
|
+
[_ht]: ["POST", "/evaluations/evaluate/{evaluatorId}", 200],
|
|
1942
|
+
},
|
|
1943
|
+
() => EvaluateRequest,
|
|
1944
|
+
() => EvaluateResponse,
|
|
1945
|
+
];
|
|
1843
1946
|
var GetAgentCard = [
|
|
1844
1947
|
9,
|
|
1845
1948
|
n0,
|
|
@@ -2195,6 +2298,18 @@ class DeleteMemoryRecordCommand extends smithyClient.Command
|
|
|
2195
2298
|
.build() {
|
|
2196
2299
|
}
|
|
2197
2300
|
|
|
2301
|
+
class EvaluateCommand extends smithyClient.Command
|
|
2302
|
+
.classBuilder()
|
|
2303
|
+
.ep(commonParams)
|
|
2304
|
+
.m(function (Command, cs, config, o) {
|
|
2305
|
+
return [middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
2306
|
+
})
|
|
2307
|
+
.s("AmazonBedrockAgentCore", "Evaluate", {})
|
|
2308
|
+
.n("BedrockAgentCoreClient", "EvaluateCommand")
|
|
2309
|
+
.sc(Evaluate)
|
|
2310
|
+
.build() {
|
|
2311
|
+
}
|
|
2312
|
+
|
|
2198
2313
|
class GetAgentCardCommand extends smithyClient.Command
|
|
2199
2314
|
.classBuilder()
|
|
2200
2315
|
.ep(commonParams)
|
|
@@ -2531,6 +2646,7 @@ const commands = {
|
|
|
2531
2646
|
CreateEventCommand,
|
|
2532
2647
|
DeleteEventCommand,
|
|
2533
2648
|
DeleteMemoryRecordCommand,
|
|
2649
|
+
EvaluateCommand,
|
|
2534
2650
|
GetAgentCardCommand,
|
|
2535
2651
|
GetBrowserSessionCommand,
|
|
2536
2652
|
GetCodeInterpreterSessionCommand,
|
|
@@ -2678,6 +2794,8 @@ exports.ContentBlockType = ContentBlockType;
|
|
|
2678
2794
|
exports.CreateEventCommand = CreateEventCommand;
|
|
2679
2795
|
exports.DeleteEventCommand = DeleteEventCommand;
|
|
2680
2796
|
exports.DeleteMemoryRecordCommand = DeleteMemoryRecordCommand;
|
|
2797
|
+
exports.DuplicateIdException = DuplicateIdException$1;
|
|
2798
|
+
exports.EvaluateCommand = EvaluateCommand;
|
|
2681
2799
|
exports.ExtractionJobStatus = ExtractionJobStatus;
|
|
2682
2800
|
exports.GetAgentCardCommand = GetAgentCardCommand;
|
|
2683
2801
|
exports.GetBrowserSessionCommand = GetBrowserSessionCommand;
|
|
@@ -7,6 +7,7 @@ import { CompleteResourceTokenAuthCommand, } from "./commands/CompleteResourceTo
|
|
|
7
7
|
import { CreateEventCommand } from "./commands/CreateEventCommand";
|
|
8
8
|
import { DeleteEventCommand } from "./commands/DeleteEventCommand";
|
|
9
9
|
import { DeleteMemoryRecordCommand, } from "./commands/DeleteMemoryRecordCommand";
|
|
10
|
+
import { EvaluateCommand } from "./commands/EvaluateCommand";
|
|
10
11
|
import { GetAgentCardCommand, } from "./commands/GetAgentCardCommand";
|
|
11
12
|
import { GetBrowserSessionCommand, } from "./commands/GetBrowserSessionCommand";
|
|
12
13
|
import { GetCodeInterpreterSessionCommand, } from "./commands/GetCodeInterpreterSessionCommand";
|
|
@@ -42,6 +43,7 @@ const commands = {
|
|
|
42
43
|
CreateEventCommand,
|
|
43
44
|
DeleteEventCommand,
|
|
44
45
|
DeleteMemoryRecordCommand,
|
|
46
|
+
EvaluateCommand,
|
|
45
47
|
GetAgentCardCommand,
|
|
46
48
|
GetBrowserSessionCommand,
|
|
47
49
|
GetCodeInterpreterSessionCommand,
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { getEndpointPlugin } from "@smithy/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
3
|
+
import { commonParams } from "../endpoint/EndpointParameters";
|
|
4
|
+
import { Evaluate } from "../schemas/schemas_0";
|
|
5
|
+
export { $Command };
|
|
6
|
+
export class EvaluateCommand extends $Command
|
|
7
|
+
.classBuilder()
|
|
8
|
+
.ep(commonParams)
|
|
9
|
+
.m(function (Command, cs, config, o) {
|
|
10
|
+
return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
|
|
11
|
+
})
|
|
12
|
+
.s("AmazonBedrockAgentCore", "Evaluate", {})
|
|
13
|
+
.n("BedrockAgentCoreClient", "EvaluateCommand")
|
|
14
|
+
.sc(Evaluate)
|
|
15
|
+
.build() {
|
|
16
|
+
}
|
|
@@ -5,6 +5,7 @@ export * from "./CompleteResourceTokenAuthCommand";
|
|
|
5
5
|
export * from "./CreateEventCommand";
|
|
6
6
|
export * from "./DeleteEventCommand";
|
|
7
7
|
export * from "./DeleteMemoryRecordCommand";
|
|
8
|
+
export * from "./EvaluateCommand";
|
|
8
9
|
export * from "./GetAgentCardCommand";
|
|
9
10
|
export * from "./GetBrowserSessionCommand";
|
|
10
11
|
export * from "./GetCodeInterpreterSessionCommand";
|
package/dist-es/models/errors.js
CHANGED
|
@@ -111,6 +111,18 @@ export class UnauthorizedException extends __BaseException {
|
|
|
111
111
|
Object.setPrototypeOf(this, UnauthorizedException.prototype);
|
|
112
112
|
}
|
|
113
113
|
}
|
|
114
|
+
export class DuplicateIdException extends __BaseException {
|
|
115
|
+
name = "DuplicateIdException";
|
|
116
|
+
$fault = "client";
|
|
117
|
+
constructor(opts) {
|
|
118
|
+
super({
|
|
119
|
+
name: "DuplicateIdException",
|
|
120
|
+
$fault: "client",
|
|
121
|
+
...opts,
|
|
122
|
+
});
|
|
123
|
+
Object.setPrototypeOf(this, DuplicateIdException.prototype);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
114
126
|
export class ServiceException extends __BaseException {
|
|
115
127
|
name = "ServiceException";
|
|
116
128
|
$fault = "server";
|