@aws-sdk/client-bedrock-agentcore-control 3.1111.0 → 3.1113.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/dist-cjs/index.js +30 -11
- package/dist-es/models/enums.js +9 -0
- package/dist-es/schemas/schemas_0.js +18 -10
- package/dist-types/commands/CreateDatasetCommand.d.ts +1 -1
- package/dist-types/commands/CreateEvaluatorCommand.d.ts +26 -0
- package/dist-types/commands/CreatePolicyCommand.d.ts +1 -1
- package/dist-types/commands/GetDatasetCommand.d.ts +1 -1
- package/dist-types/commands/GetEvaluatorCommand.d.ts +28 -0
- package/dist-types/commands/GetPolicyGenerationCommand.d.ts +1 -2
- package/dist-types/commands/ListDatasetsCommand.d.ts +1 -1
- package/dist-types/commands/ListEvaluatorsCommand.d.ts +2 -1
- package/dist-types/commands/UpdateEvaluatorCommand.d.ts +26 -0
- package/dist-types/commands/UpdatePolicyCommand.d.ts +1 -1
- package/dist-types/models/enums.d.ts +20 -0
- package/dist-types/models/models_0.d.ts +47 -13
- package/dist-types/models/models_1.d.ts +12 -16
- package/dist-types/models/models_2.d.ts +15 -0
- package/dist-types/schemas/schemas_0.d.ts +1 -0
- package/dist-types/ts3.4/commands/GetPolicyGenerationCommand.d.ts +1 -2
- package/dist-types/ts3.4/models/enums.d.ts +10 -0
- package/dist-types/ts3.4/models/models_0.d.ts +19 -3
- package/dist-types/ts3.4/models/models_1.d.ts +4 -5
- package/dist-types/ts3.4/models/models_2.d.ts +4 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +1 -0
- package/package.json +1 -1
package/dist-cjs/index.js
CHANGED
|
@@ -69,7 +69,7 @@ const commonParams = {
|
|
|
69
69
|
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
70
70
|
};
|
|
71
71
|
|
|
72
|
-
var version = "3.
|
|
72
|
+
var version = "3.1112.0";
|
|
73
73
|
var packageInfo = {
|
|
74
74
|
version: version};
|
|
75
75
|
|
|
@@ -580,6 +580,7 @@ const _DDERe = "DeleteDatasetExamplesResponse";
|
|
|
580
580
|
const _DDR = "DeleteDatasetRequest";
|
|
581
581
|
const _DDRe = "DeleteDatasetResponse";
|
|
582
582
|
const _DE = "DeleteEvaluator";
|
|
583
|
+
const _DEC = "DerivedEvaluatorConfig";
|
|
583
584
|
const _DEL = "DatasetExampleList";
|
|
584
585
|
const _DER = "DeleteEvaluatorRequest";
|
|
585
586
|
const _DERe = "DeleteEvaluatorResponse";
|
|
@@ -1453,6 +1454,7 @@ const _au = "auth";
|
|
|
1453
1454
|
const _b = "bundles";
|
|
1454
1455
|
const _bA = "browserArn";
|
|
1455
1456
|
const _bAu = "bundleArn";
|
|
1457
|
+
const _bEI = "baseEvaluatorId";
|
|
1456
1458
|
const _bEMC = "bedrockEvaluatorModelConfig";
|
|
1457
1459
|
const _bI = "browserId";
|
|
1458
1460
|
const _bIu = "bundleId";
|
|
@@ -1563,6 +1565,7 @@ const _dV = "datasetVersion";
|
|
|
1563
1565
|
const _dVo = "doubleValue";
|
|
1564
1566
|
const _da = "datasets";
|
|
1565
1567
|
const _de = "definition";
|
|
1568
|
+
const _der = "derived";
|
|
1566
1569
|
const _des = "descriptors";
|
|
1567
1570
|
const _di = "dimensions";
|
|
1568
1571
|
const _dis = "disabled";
|
|
@@ -1851,8 +1854,8 @@ const _po = "policy";
|
|
|
1851
1854
|
const _pol = "policies";
|
|
1852
1855
|
const _pr = "priority";
|
|
1853
1856
|
const _pre = "prefix";
|
|
1854
|
-
const _pro = "
|
|
1855
|
-
const
|
|
1857
|
+
const _pro = "provider";
|
|
1858
|
+
const _prop = "properties";
|
|
1856
1859
|
const _q = "qualifier";
|
|
1857
1860
|
const _r = "reason";
|
|
1858
1861
|
const _rA = "roleArn";
|
|
@@ -3087,6 +3090,11 @@ var DeleteWorkloadIdentityResponse$ = [3, n0, _DWIRe,
|
|
|
3087
3090
|
[],
|
|
3088
3091
|
[]
|
|
3089
3092
|
];
|
|
3093
|
+
var DerivedEvaluatorConfig$ = [3, n0, _DEC,
|
|
3094
|
+
0,
|
|
3095
|
+
[_bEI, _mCo],
|
|
3096
|
+
[0, () => EvaluatorModelConfig$], 2
|
|
3097
|
+
];
|
|
3090
3098
|
var Descriptors$ = [3, n0, _Des,
|
|
3091
3099
|
0,
|
|
3092
3100
|
[_mc, _aa, _cu, _aSg],
|
|
@@ -3174,8 +3182,8 @@ var EpisodicReflectionOverride$ = [3, n0, _ERO,
|
|
|
3174
3182
|
];
|
|
3175
3183
|
var EvaluatorSummary$ = [3, n0, _ES,
|
|
3176
3184
|
0,
|
|
3177
|
-
[_eA, _eIv, _eNv, _eT, _st, _cA, _uA, _d, _le, _lFM, _kKA],
|
|
3178
|
-
[0, 0, 0, 0, 0, 4, 4, [() => EvaluatorDescription, 0], 0, 2, 0], 7
|
|
3185
|
+
[_eA, _eIv, _eNv, _eT, _st, _cA, _uA, _d, _pro, _le, _lFM, _kKA],
|
|
3186
|
+
[0, 0, 0, 0, 0, 4, 4, [() => EvaluatorDescription, 0], 0, 0, 2, 0], 7
|
|
3179
3187
|
];
|
|
3180
3188
|
var Filter$ = [3, n0, _F,
|
|
3181
3189
|
0,
|
|
@@ -3334,8 +3342,8 @@ var GetEvaluatorRequest$ = [3, n0, _GER,
|
|
|
3334
3342
|
];
|
|
3335
3343
|
var GetEvaluatorResponse$ = [3, n0, _GERe,
|
|
3336
3344
|
0,
|
|
3337
|
-
[_eA, _eIv, _eNv, _eC, _le, _st, _cA, _uA, _d, _lFM, _kKA],
|
|
3338
|
-
[0, 0, 0, [() => EvaluatorConfig$, 0], 0, 0, 4, 4, [() => EvaluatorDescription, 0], 2, 0], 8
|
|
3345
|
+
[_eA, _eIv, _eNv, _eC, _le, _st, _cA, _uA, _d, _eT, _pro, _lFM, _kKA],
|
|
3346
|
+
[0, 0, 0, [() => EvaluatorConfig$, 0], 0, 0, 4, 4, [() => EvaluatorDescription, 0], 0, 0, 2, 0], 8
|
|
3339
3347
|
];
|
|
3340
3348
|
var GetGatewayRateLimitRequest$ = [3, n0, _GGRLR,
|
|
3341
3349
|
0,
|
|
@@ -4679,7 +4687,7 @@ var SamplingConfig$ = [3, n0, _SCa,
|
|
|
4679
4687
|
];
|
|
4680
4688
|
var SchemaDefinition$ = [3, n0, _SD,
|
|
4681
4689
|
0,
|
|
4682
|
-
[_t,
|
|
4690
|
+
[_t, _prop, _requ, _it, _d],
|
|
4683
4691
|
[0, () => SchemaProperties, 64 | 0, () => SchemaDefinition$, 0], 1
|
|
4684
4692
|
];
|
|
4685
4693
|
var Secret$ = [3, n0, _S,
|
|
@@ -5859,8 +5867,8 @@ var DataSourceType$ = [4, n0, _DST,
|
|
|
5859
5867
|
];
|
|
5860
5868
|
var EvaluatorConfig$ = [4, n0, _ECv,
|
|
5861
5869
|
0,
|
|
5862
|
-
[_lAAJ, _cBod],
|
|
5863
|
-
[[() => LlmAsAJudgeEvaluatorConfig$, 0], () => CodeBasedEvaluatorConfig$]
|
|
5870
|
+
[_lAAJ, _cBod, _der],
|
|
5871
|
+
[[() => LlmAsAJudgeEvaluatorConfig$, 0], () => CodeBasedEvaluatorConfig$, () => DerivedEvaluatorConfig$]
|
|
5864
5872
|
];
|
|
5865
5873
|
var EvaluatorModelConfig$ = [4, n0, _EMC,
|
|
5866
5874
|
0,
|
|
@@ -5954,7 +5962,7 @@ var HttpTargetConfiguration$ = [4, n0, _HTCt,
|
|
|
5954
5962
|
];
|
|
5955
5963
|
var InferenceTargetConfiguration$ = [4, n0, _ITC,
|
|
5956
5964
|
0,
|
|
5957
|
-
[_conne,
|
|
5965
|
+
[_conne, _pro],
|
|
5958
5966
|
[() => InferenceConnectorTargetConfiguration$, () => InferenceProviderTargetConfiguration$]
|
|
5959
5967
|
];
|
|
5960
5968
|
var InterceptorConfiguration$ = [4, n0, _ICnt,
|
|
@@ -8026,6 +8034,7 @@ const ConfigurationBundleStatus = {
|
|
|
8026
8034
|
const DatasetSchemaType = {
|
|
8027
8035
|
AGENTCORE_EVALUATION_PREDEFINED_V1: "AGENTCORE_EVALUATION_PREDEFINED_V1",
|
|
8028
8036
|
AGENTCORE_EVALUATION_SIMULATED_V1: "AGENTCORE_EVALUATION_SIMULATED_V1",
|
|
8037
|
+
GENERIC_EVALUATION_PREDEFINED_V1: "GENERIC_EVALUATION_PREDEFINED_V1",
|
|
8029
8038
|
};
|
|
8030
8039
|
const DraftStatus = {
|
|
8031
8040
|
MODIFIED: "MODIFIED",
|
|
@@ -8052,6 +8061,14 @@ const EvaluatorType = {
|
|
|
8052
8061
|
BUILTIN: "Builtin",
|
|
8053
8062
|
CODE: "CustomCode",
|
|
8054
8063
|
CUSTOM: "Custom",
|
|
8064
|
+
CUSTOM_DERIVED: "CustomDerived",
|
|
8065
|
+
THIRD_PARTY: "ThirdParty",
|
|
8066
|
+
};
|
|
8067
|
+
const Provider = {
|
|
8068
|
+
AUTO_EVAL: "AutoEval",
|
|
8069
|
+
AWS: "AWS",
|
|
8070
|
+
CUSTOM: "Custom",
|
|
8071
|
+
DEEP_EVAL: "DeepEval",
|
|
8055
8072
|
};
|
|
8056
8073
|
const Period = {
|
|
8057
8074
|
MINUTE: "minute",
|
|
@@ -8838,6 +8855,7 @@ exports.DeleteWorkloadIdentity$ = DeleteWorkloadIdentity$;
|
|
|
8838
8855
|
exports.DeleteWorkloadIdentityCommand = DeleteWorkloadIdentityCommand;
|
|
8839
8856
|
exports.DeleteWorkloadIdentityRequest$ = DeleteWorkloadIdentityRequest$;
|
|
8840
8857
|
exports.DeleteWorkloadIdentityResponse$ = DeleteWorkloadIdentityResponse$;
|
|
8858
|
+
exports.DerivedEvaluatorConfig$ = DerivedEvaluatorConfig$;
|
|
8841
8859
|
exports.DescriptorType = DescriptorType;
|
|
8842
8860
|
exports.Descriptors$ = Descriptors$;
|
|
8843
8861
|
exports.DraftStatus = DraftStatus;
|
|
@@ -9377,6 +9395,7 @@ exports.PrivateEndpointOverride$ = PrivateEndpointOverride$;
|
|
|
9377
9395
|
exports.PrivateKeyJwtConfig$ = PrivateKeyJwtConfig$;
|
|
9378
9396
|
exports.PrivateKeySource$ = PrivateKeySource$;
|
|
9379
9397
|
exports.ProtocolConfiguration$ = ProtocolConfiguration$;
|
|
9398
|
+
exports.Provider = Provider;
|
|
9380
9399
|
exports.ProviderPrefix$ = ProviderPrefix$;
|
|
9381
9400
|
exports.PutResourcePolicy$ = PutResourcePolicy$;
|
|
9382
9401
|
exports.PutResourcePolicyCommand = PutResourcePolicyCommand;
|
package/dist-es/models/enums.js
CHANGED
|
@@ -158,6 +158,7 @@ export const ConfigurationBundleStatus = {
|
|
|
158
158
|
export const DatasetSchemaType = {
|
|
159
159
|
AGENTCORE_EVALUATION_PREDEFINED_V1: "AGENTCORE_EVALUATION_PREDEFINED_V1",
|
|
160
160
|
AGENTCORE_EVALUATION_SIMULATED_V1: "AGENTCORE_EVALUATION_SIMULATED_V1",
|
|
161
|
+
GENERIC_EVALUATION_PREDEFINED_V1: "GENERIC_EVALUATION_PREDEFINED_V1",
|
|
161
162
|
};
|
|
162
163
|
export const DraftStatus = {
|
|
163
164
|
MODIFIED: "MODIFIED",
|
|
@@ -184,6 +185,14 @@ export const EvaluatorType = {
|
|
|
184
185
|
BUILTIN: "Builtin",
|
|
185
186
|
CODE: "CustomCode",
|
|
186
187
|
CUSTOM: "Custom",
|
|
188
|
+
CUSTOM_DERIVED: "CustomDerived",
|
|
189
|
+
THIRD_PARTY: "ThirdParty",
|
|
190
|
+
};
|
|
191
|
+
export const Provider = {
|
|
192
|
+
AUTO_EVAL: "AutoEval",
|
|
193
|
+
AWS: "AWS",
|
|
194
|
+
CUSTOM: "Custom",
|
|
195
|
+
DEEP_EVAL: "DeepEval",
|
|
187
196
|
};
|
|
188
197
|
export const Period = {
|
|
189
198
|
MINUTE: "minute",
|
|
@@ -236,6 +236,7 @@ const _DDERe = "DeleteDatasetExamplesResponse";
|
|
|
236
236
|
const _DDR = "DeleteDatasetRequest";
|
|
237
237
|
const _DDRe = "DeleteDatasetResponse";
|
|
238
238
|
const _DE = "DeleteEvaluator";
|
|
239
|
+
const _DEC = "DerivedEvaluatorConfig";
|
|
239
240
|
const _DEL = "DatasetExampleList";
|
|
240
241
|
const _DER = "DeleteEvaluatorRequest";
|
|
241
242
|
const _DERe = "DeleteEvaluatorResponse";
|
|
@@ -1109,6 +1110,7 @@ const _au = "auth";
|
|
|
1109
1110
|
const _b = "bundles";
|
|
1110
1111
|
const _bA = "browserArn";
|
|
1111
1112
|
const _bAu = "bundleArn";
|
|
1113
|
+
const _bEI = "baseEvaluatorId";
|
|
1112
1114
|
const _bEMC = "bedrockEvaluatorModelConfig";
|
|
1113
1115
|
const _bI = "browserId";
|
|
1114
1116
|
const _bIu = "bundleId";
|
|
@@ -1219,6 +1221,7 @@ const _dV = "datasetVersion";
|
|
|
1219
1221
|
const _dVo = "doubleValue";
|
|
1220
1222
|
const _da = "datasets";
|
|
1221
1223
|
const _de = "definition";
|
|
1224
|
+
const _der = "derived";
|
|
1222
1225
|
const _des = "descriptors";
|
|
1223
1226
|
const _di = "dimensions";
|
|
1224
1227
|
const _dis = "disabled";
|
|
@@ -1507,8 +1510,8 @@ const _po = "policy";
|
|
|
1507
1510
|
const _pol = "policies";
|
|
1508
1511
|
const _pr = "priority";
|
|
1509
1512
|
const _pre = "prefix";
|
|
1510
|
-
const _pro = "
|
|
1511
|
-
const
|
|
1513
|
+
const _pro = "provider";
|
|
1514
|
+
const _prop = "properties";
|
|
1512
1515
|
const _q = "qualifier";
|
|
1513
1516
|
const _r = "reason";
|
|
1514
1517
|
const _rA = "roleArn";
|
|
@@ -2746,6 +2749,11 @@ export var DeleteWorkloadIdentityResponse$ = [3, n0, _DWIRe,
|
|
|
2746
2749
|
[],
|
|
2747
2750
|
[]
|
|
2748
2751
|
];
|
|
2752
|
+
export var DerivedEvaluatorConfig$ = [3, n0, _DEC,
|
|
2753
|
+
0,
|
|
2754
|
+
[_bEI, _mCo],
|
|
2755
|
+
[0, () => EvaluatorModelConfig$], 2
|
|
2756
|
+
];
|
|
2749
2757
|
export var Descriptors$ = [3, n0, _Des,
|
|
2750
2758
|
0,
|
|
2751
2759
|
[_mc, _aa, _cu, _aSg],
|
|
@@ -2833,8 +2841,8 @@ export var EpisodicReflectionOverride$ = [3, n0, _ERO,
|
|
|
2833
2841
|
];
|
|
2834
2842
|
export var EvaluatorSummary$ = [3, n0, _ES,
|
|
2835
2843
|
0,
|
|
2836
|
-
[_eA, _eIv, _eNv, _eT, _st, _cA, _uA, _d, _le, _lFM, _kKA],
|
|
2837
|
-
[0, 0, 0, 0, 0, 4, 4, [() => EvaluatorDescription, 0], 0, 2, 0], 7
|
|
2844
|
+
[_eA, _eIv, _eNv, _eT, _st, _cA, _uA, _d, _pro, _le, _lFM, _kKA],
|
|
2845
|
+
[0, 0, 0, 0, 0, 4, 4, [() => EvaluatorDescription, 0], 0, 0, 2, 0], 7
|
|
2838
2846
|
];
|
|
2839
2847
|
export var Filter$ = [3, n0, _F,
|
|
2840
2848
|
0,
|
|
@@ -2993,8 +3001,8 @@ export var GetEvaluatorRequest$ = [3, n0, _GER,
|
|
|
2993
3001
|
];
|
|
2994
3002
|
export var GetEvaluatorResponse$ = [3, n0, _GERe,
|
|
2995
3003
|
0,
|
|
2996
|
-
[_eA, _eIv, _eNv, _eC, _le, _st, _cA, _uA, _d, _lFM, _kKA],
|
|
2997
|
-
[0, 0, 0, [() => EvaluatorConfig$, 0], 0, 0, 4, 4, [() => EvaluatorDescription, 0], 2, 0], 8
|
|
3004
|
+
[_eA, _eIv, _eNv, _eC, _le, _st, _cA, _uA, _d, _eT, _pro, _lFM, _kKA],
|
|
3005
|
+
[0, 0, 0, [() => EvaluatorConfig$, 0], 0, 0, 4, 4, [() => EvaluatorDescription, 0], 0, 0, 2, 0], 8
|
|
2998
3006
|
];
|
|
2999
3007
|
export var GetGatewayRateLimitRequest$ = [3, n0, _GGRLR,
|
|
3000
3008
|
0,
|
|
@@ -4338,7 +4346,7 @@ export var SamplingConfig$ = [3, n0, _SCa,
|
|
|
4338
4346
|
];
|
|
4339
4347
|
export var SchemaDefinition$ = [3, n0, _SD,
|
|
4340
4348
|
0,
|
|
4341
|
-
[_t,
|
|
4349
|
+
[_t, _prop, _requ, _it, _d],
|
|
4342
4350
|
[0, () => SchemaProperties, 64 | 0, () => SchemaDefinition$, 0], 1
|
|
4343
4351
|
];
|
|
4344
4352
|
export var Secret$ = [3, n0, _S,
|
|
@@ -5570,8 +5578,8 @@ export var DataSourceType$ = [4, n0, _DST,
|
|
|
5570
5578
|
];
|
|
5571
5579
|
export var EvaluatorConfig$ = [4, n0, _ECv,
|
|
5572
5580
|
0,
|
|
5573
|
-
[_lAAJ, _cBod],
|
|
5574
|
-
[[() => LlmAsAJudgeEvaluatorConfig$, 0], () => CodeBasedEvaluatorConfig$]
|
|
5581
|
+
[_lAAJ, _cBod, _der],
|
|
5582
|
+
[[() => LlmAsAJudgeEvaluatorConfig$, 0], () => CodeBasedEvaluatorConfig$, () => DerivedEvaluatorConfig$]
|
|
5575
5583
|
];
|
|
5576
5584
|
export var EvaluatorModelConfig$ = [4, n0, _EMC,
|
|
5577
5585
|
0,
|
|
@@ -5665,7 +5673,7 @@ export var HttpTargetConfiguration$ = [4, n0, _HTCt,
|
|
|
5665
5673
|
];
|
|
5666
5674
|
export var InferenceTargetConfiguration$ = [4, n0, _ITC,
|
|
5667
5675
|
0,
|
|
5668
|
-
[_conne,
|
|
5676
|
+
[_conne, _pro],
|
|
5669
5677
|
[() => InferenceConnectorTargetConfiguration$, () => InferenceProviderTargetConfiguration$]
|
|
5670
5678
|
];
|
|
5671
5679
|
export var InterceptorConfiguration$ = [4, n0, _ICnt,
|
|
@@ -47,7 +47,7 @@ declare const CreateDatasetCommand_base: {
|
|
|
47
47
|
* s3Uri: "STRING_VALUE", // required
|
|
48
48
|
* },
|
|
49
49
|
* },
|
|
50
|
-
* schemaType: "AGENTCORE_EVALUATION_PREDEFINED_V1" || "AGENTCORE_EVALUATION_SIMULATED_V1", // required
|
|
50
|
+
* schemaType: "AGENTCORE_EVALUATION_PREDEFINED_V1" || "AGENTCORE_EVALUATION_SIMULATED_V1" || "GENERIC_EVALUATION_PREDEFINED_V1", // required
|
|
51
51
|
* kmsKeyArn: "STRING_VALUE",
|
|
52
52
|
* tags: { // TagsMap
|
|
53
53
|
* "<keys>": "STRING_VALUE",
|
|
@@ -85,6 +85,32 @@ declare const CreateEvaluatorCommand_base: {
|
|
|
85
85
|
* lambdaTimeoutInSeconds: Number("int"),
|
|
86
86
|
* },
|
|
87
87
|
* },
|
|
88
|
+
* derived: { // DerivedEvaluatorConfig
|
|
89
|
+
* baseEvaluatorId: "STRING_VALUE", // required
|
|
90
|
+
* modelConfig: {// Union: only one key present
|
|
91
|
+
* bedrockEvaluatorModelConfig: {
|
|
92
|
+
* modelId: "STRING_VALUE", // required
|
|
93
|
+
* inferenceConfig: {
|
|
94
|
+
* maxTokens: Number("int"),
|
|
95
|
+
* temperature: Number("float"),
|
|
96
|
+
* topP: Number("float"),
|
|
97
|
+
* stopSequences: [
|
|
98
|
+
* "STRING_VALUE",
|
|
99
|
+
* ],
|
|
100
|
+
* },
|
|
101
|
+
* additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
102
|
+
* },
|
|
103
|
+
* responsesEvaluatorModelConfig: {
|
|
104
|
+
* modelId: "STRING_VALUE", // required
|
|
105
|
+
* maxOutputTokens: Number("int"),
|
|
106
|
+
* temperature: Number("float"),
|
|
107
|
+
* topP: Number("float"),
|
|
108
|
+
* reasoning: {
|
|
109
|
+
* effort: "STRING_VALUE",
|
|
110
|
+
* },
|
|
111
|
+
* },
|
|
112
|
+
* },
|
|
113
|
+
* },
|
|
88
114
|
* },
|
|
89
115
|
* level: "TOOL_CALL" || "TRACE" || "SESSION", // required
|
|
90
116
|
* kmsKeyArn: "STRING_VALUE",
|
|
@@ -24,7 +24,7 @@ declare const CreatePolicyCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>Creates a policy within the AgentCore Policy system. Policies provide real-time, deterministic control over agentic interactions with AgentCore Gateway. Using the Cedar policy language, you can define fine-grained policies that specify which interactions with Gateway tools are permitted based on input parameters and OAuth claims, ensuring agents operate within defined boundaries and business rules. The policy is validated during creation against the Cedar schema generated from the Gateway's tools' input schemas, which defines the available tools, their parameters, and expected data types. This is an asynchronous operation. Use the <a href="https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_GetPolicy.html">GetPolicy</a> operation to poll the <code>status</code> field to track completion.</p>
|
|
27
|
+
* <p>Creates a policy within the AgentCore Policy system. Policies provide real-time, deterministic control over agentic interactions with AgentCore Gateway. Using the Cedar policy language, you can define fine-grained policies that specify which interactions with Gateway tools are permitted based on input parameters and OAuth claims, ensuring agents operate within defined boundaries and business rules. The policy is validated during creation against the Cedar schema generated from the Gateway's tools' input schemas, which defines the available tools, their parameters, and expected data types. This is an asynchronous operation. Use the <a href="https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_GetPolicy.html">GetPolicy</a> operation to poll the <code>status</code> field to track completion.</p> <p>If the new policy is a temporal policy, creating it invalidates the policy engine's active temporal sessions. For more information about temporal policy sessions, see <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/policy-session-based-temporal.html">session-based temporal policies</a>. The policy engine returns an HTTP 409 <code>ConflictException</code> to in-flight sessions. To resume, you must start a new session with a new session ID.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -48,7 +48,7 @@ declare const GetDatasetCommand_base: {
|
|
|
48
48
|
* // status: "CREATING" || "UPDATING" || "DELETING" || "ACTIVE" || "CREATE_FAILED" || "UPDATE_FAILED" || "DELETE_FAILED", // required
|
|
49
49
|
* // draftStatus: "MODIFIED" || "UNMODIFIED",
|
|
50
50
|
* // failureReason: "STRING_VALUE",
|
|
51
|
-
* // schemaType: "AGENTCORE_EVALUATION_PREDEFINED_V1" || "AGENTCORE_EVALUATION_SIMULATED_V1", // required
|
|
51
|
+
* // schemaType: "AGENTCORE_EVALUATION_PREDEFINED_V1" || "AGENTCORE_EVALUATION_SIMULATED_V1" || "GENERIC_EVALUATION_PREDEFINED_V1", // required
|
|
52
52
|
* // kmsKeyArn: "STRING_VALUE",
|
|
53
53
|
* // exampleCount: Number("long"), // required
|
|
54
54
|
* // downloadUrl: "STRING_VALUE",
|
|
@@ -92,7 +92,35 @@ declare const GetEvaluatorCommand_base: {
|
|
|
92
92
|
* // lambdaTimeoutInSeconds: Number("int"),
|
|
93
93
|
* // },
|
|
94
94
|
* // },
|
|
95
|
+
* // derived: { // DerivedEvaluatorConfig
|
|
96
|
+
* // baseEvaluatorId: "STRING_VALUE", // required
|
|
97
|
+
* // modelConfig: {// Union: only one key present
|
|
98
|
+
* // bedrockEvaluatorModelConfig: {
|
|
99
|
+
* // modelId: "STRING_VALUE", // required
|
|
100
|
+
* // inferenceConfig: {
|
|
101
|
+
* // maxTokens: Number("int"),
|
|
102
|
+
* // temperature: Number("float"),
|
|
103
|
+
* // topP: Number("float"),
|
|
104
|
+
* // stopSequences: [
|
|
105
|
+
* // "STRING_VALUE",
|
|
106
|
+
* // ],
|
|
107
|
+
* // },
|
|
108
|
+
* // additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
109
|
+
* // },
|
|
110
|
+
* // responsesEvaluatorModelConfig: {
|
|
111
|
+
* // modelId: "STRING_VALUE", // required
|
|
112
|
+
* // maxOutputTokens: Number("int"),
|
|
113
|
+
* // temperature: Number("float"),
|
|
114
|
+
* // topP: Number("float"),
|
|
115
|
+
* // reasoning: {
|
|
116
|
+
* // effort: "STRING_VALUE",
|
|
117
|
+
* // },
|
|
118
|
+
* // },
|
|
119
|
+
* // },
|
|
120
|
+
* // },
|
|
95
121
|
* // },
|
|
122
|
+
* // evaluatorType: "Builtin" || "ThirdParty" || "Custom" || "CustomCode" || "CustomDerived",
|
|
123
|
+
* // provider: "AWS" || "DeepEval" || "AutoEval" || "Custom",
|
|
96
124
|
* // level: "TOOL_CALL" || "TRACE" || "SESSION", // required
|
|
97
125
|
* // status: "ACTIVE" || "CREATING" || "CREATE_FAILED" || "UPDATING" || "UPDATE_FAILED" || "DELETING", // required
|
|
98
126
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import type { GetPolicyGenerationRequest } from "../models/
|
|
3
|
-
import type { GetPolicyGenerationResponse } from "../models/models_2";
|
|
2
|
+
import type { GetPolicyGenerationRequest, GetPolicyGenerationResponse } from "../models/models_2";
|
|
4
3
|
/**
|
|
5
4
|
* @public
|
|
6
5
|
*/
|
|
@@ -48,7 +48,7 @@ declare const ListDatasetsCommand_base: {
|
|
|
48
48
|
* // description: "STRING_VALUE",
|
|
49
49
|
* // status: "CREATING" || "UPDATING" || "DELETING" || "ACTIVE" || "CREATE_FAILED" || "UPDATE_FAILED" || "DELETE_FAILED", // required
|
|
50
50
|
* // draftStatus: "MODIFIED" || "UNMODIFIED",
|
|
51
|
-
* // schemaType: "AGENTCORE_EVALUATION_PREDEFINED_V1" || "AGENTCORE_EVALUATION_SIMULATED_V1", // required
|
|
51
|
+
* // schemaType: "AGENTCORE_EVALUATION_PREDEFINED_V1" || "AGENTCORE_EVALUATION_SIMULATED_V1" || "GENERIC_EVALUATION_PREDEFINED_V1", // required
|
|
52
52
|
* // exampleCount: Number("long"), // required
|
|
53
53
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
54
54
|
* // updatedAt: new Date("TIMESTAMP"), // required
|
|
@@ -46,7 +46,8 @@ declare const ListEvaluatorsCommand_base: {
|
|
|
46
46
|
* // evaluatorId: "STRING_VALUE", // required
|
|
47
47
|
* // evaluatorName: "STRING_VALUE", // required
|
|
48
48
|
* // description: "STRING_VALUE",
|
|
49
|
-
* // evaluatorType: "Builtin" || "Custom" || "CustomCode", // required
|
|
49
|
+
* // evaluatorType: "Builtin" || "ThirdParty" || "Custom" || "CustomCode" || "CustomDerived", // required
|
|
50
|
+
* // provider: "AWS" || "DeepEval" || "AutoEval" || "Custom",
|
|
50
51
|
* // level: "TOOL_CALL" || "TRACE" || "SESSION",
|
|
51
52
|
* // status: "ACTIVE" || "CREATING" || "CREATE_FAILED" || "UPDATING" || "UPDATE_FAILED" || "DELETING", // required
|
|
52
53
|
* // createdAt: new Date("TIMESTAMP"), // required
|
|
@@ -85,6 +85,32 @@ declare const UpdateEvaluatorCommand_base: {
|
|
|
85
85
|
* lambdaTimeoutInSeconds: Number("int"),
|
|
86
86
|
* },
|
|
87
87
|
* },
|
|
88
|
+
* derived: { // DerivedEvaluatorConfig
|
|
89
|
+
* baseEvaluatorId: "STRING_VALUE", // required
|
|
90
|
+
* modelConfig: {// Union: only one key present
|
|
91
|
+
* bedrockEvaluatorModelConfig: {
|
|
92
|
+
* modelId: "STRING_VALUE", // required
|
|
93
|
+
* inferenceConfig: {
|
|
94
|
+
* maxTokens: Number("int"),
|
|
95
|
+
* temperature: Number("float"),
|
|
96
|
+
* topP: Number("float"),
|
|
97
|
+
* stopSequences: [
|
|
98
|
+
* "STRING_VALUE",
|
|
99
|
+
* ],
|
|
100
|
+
* },
|
|
101
|
+
* additionalModelRequestFields: "DOCUMENT_VALUE",
|
|
102
|
+
* },
|
|
103
|
+
* responsesEvaluatorModelConfig: {
|
|
104
|
+
* modelId: "STRING_VALUE", // required
|
|
105
|
+
* maxOutputTokens: Number("int"),
|
|
106
|
+
* temperature: Number("float"),
|
|
107
|
+
* topP: Number("float"),
|
|
108
|
+
* reasoning: {
|
|
109
|
+
* effort: "STRING_VALUE",
|
|
110
|
+
* },
|
|
111
|
+
* },
|
|
112
|
+
* },
|
|
113
|
+
* },
|
|
88
114
|
* },
|
|
89
115
|
* level: "TOOL_CALL" || "TRACE" || "SESSION",
|
|
90
116
|
* kmsKeyArn: "STRING_VALUE",
|
|
@@ -24,7 +24,7 @@ declare const UpdatePolicyCommand_base: {
|
|
|
24
24
|
getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
|
|
25
25
|
};
|
|
26
26
|
/**
|
|
27
|
-
* <p>Updates an existing policy within the AgentCore Policy system. This operation allows modification of the policy description and definition while maintaining the policy's identity. The updated policy is validated against the Cedar schema before being applied. This is an asynchronous operation. Use the <code>GetPolicy</code> operation to poll the <code>status</code> field to track completion.</p>
|
|
27
|
+
* <p>Updates an existing policy within the AgentCore Policy system. This operation allows modification of the policy description and definition while maintaining the policy's identity. The updated policy is validated against the Cedar schema before being applied. This is an asynchronous operation. Use the <code>GetPolicy</code> operation to poll the <code>status</code> field to track completion.</p> <p>If the updated policy is a temporal policy, the policy engine invalidates all active temporal sessions. If the update adds or removes temporal operators, the policy engine also invalidates active temporal sessions. For more information about temporal policy sessions, see <a href="https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/policy-session-based-temporal.html">session-based temporal policies</a>. The policy engine returns an HTTP 409 <code>ConflictException</code> to in-flight sessions. To resume, you must start a new session with a new session ID.</p>
|
|
28
28
|
* @example
|
|
29
29
|
* Use a bare-bones client and the command you need to make an API call.
|
|
30
30
|
* ```javascript
|
|
@@ -397,6 +397,10 @@ export declare const DatasetSchemaType: {
|
|
|
397
397
|
* <p> AgentCore simulated evaluation schema, version 1. Dataset for synthetic data generation where each example is a scenario used to generate full conversations. </p>
|
|
398
398
|
*/
|
|
399
399
|
readonly AGENTCORE_EVALUATION_SIMULATED_V1: "AGENTCORE_EVALUATION_SIMULATED_V1";
|
|
400
|
+
/**
|
|
401
|
+
* <p> Unified generic evaluation schema, version 1. Supports single-turn (string input) and multi-turn (message list input) across all evaluation frameworks. </p>
|
|
402
|
+
*/
|
|
403
|
+
readonly GENERIC_EVALUATION_PREDEFINED_V1: "GENERIC_EVALUATION_PREDEFINED_V1";
|
|
400
404
|
};
|
|
401
405
|
/**
|
|
402
406
|
* @public
|
|
@@ -469,11 +473,27 @@ export declare const EvaluatorType: {
|
|
|
469
473
|
readonly BUILTIN: "Builtin";
|
|
470
474
|
readonly CODE: "CustomCode";
|
|
471
475
|
readonly CUSTOM: "Custom";
|
|
476
|
+
readonly CUSTOM_DERIVED: "CustomDerived";
|
|
477
|
+
readonly THIRD_PARTY: "ThirdParty";
|
|
472
478
|
};
|
|
473
479
|
/**
|
|
474
480
|
* @public
|
|
475
481
|
*/
|
|
476
482
|
export type EvaluatorType = (typeof EvaluatorType)[keyof typeof EvaluatorType];
|
|
483
|
+
/**
|
|
484
|
+
* @public
|
|
485
|
+
* @enum
|
|
486
|
+
*/
|
|
487
|
+
export declare const Provider: {
|
|
488
|
+
readonly AUTO_EVAL: "AutoEval";
|
|
489
|
+
readonly AWS: "AWS";
|
|
490
|
+
readonly CUSTOM: "Custom";
|
|
491
|
+
readonly DEEP_EVAL: "DeepEval";
|
|
492
|
+
};
|
|
493
|
+
/**
|
|
494
|
+
* @public
|
|
495
|
+
*/
|
|
496
|
+
export type Provider = (typeof Provider)[keyof typeof Provider];
|
|
477
497
|
/**
|
|
478
498
|
* @public
|
|
479
499
|
* @enum
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
|
-
import type { AgentManagedRuntimeType, AgentRuntimeEndpointStatus, AgentRuntimeStatus, ApiKeyCredentialLocation, AuthorizerType, BrowserEnterprisePolicyType, BrowserNetworkMode, BrowserProfileStatus, BrowserStatus, CapacityProviderStatus, CapacityProviderStatusCode, CapacityReservationPreference, ClaimMatchOperatorType, CodeInterpreterNetworkMode, CodeInterpreterStatus, ConfigurationBundleStatus, CredentialProviderType, DatasetSchemaType, DatasetStatus, DraftStatus, EbsVolumeType, EndpointIpAddressType, EvaluatorLevel, EvaluatorStatus, EvaluatorType, ExceptionLevel, GatewayInterceptionPoint, GatewayPolicyEngineMode, GatewayProtocolType, GatewayRateLimitStatus, GatewayRuleStatus, GatewayStatus, InboundTokenClaimValueType, IncludedData, InterceptorPayloadExclusion, Monitoring, NetworkMode, OAuthGrantType, OperatingSystem, PassthroughProtocolType, Period, PrincipalMatchOperator, ResourceType, SearchType, SecretSourceType, ServerProtocol, WafFailureMode } from "./enums";
|
|
2
|
+
import type { AgentManagedRuntimeType, AgentRuntimeEndpointStatus, AgentRuntimeStatus, ApiKeyCredentialLocation, AuthorizerType, BrowserEnterprisePolicyType, BrowserNetworkMode, BrowserProfileStatus, BrowserStatus, CapacityProviderStatus, CapacityProviderStatusCode, CapacityReservationPreference, ClaimMatchOperatorType, CodeInterpreterNetworkMode, CodeInterpreterStatus, ConfigurationBundleStatus, CredentialProviderType, DatasetSchemaType, DatasetStatus, DraftStatus, EbsVolumeType, EndpointIpAddressType, EvaluatorLevel, EvaluatorStatus, EvaluatorType, ExceptionLevel, GatewayInterceptionPoint, GatewayPolicyEngineMode, GatewayProtocolType, GatewayRateLimitStatus, GatewayRuleStatus, GatewayStatus, InboundTokenClaimValueType, IncludedData, InterceptorPayloadExclusion, Monitoring, NetworkMode, OAuthGrantType, OperatingSystem, PassthroughProtocolType, Period, PrincipalMatchOperator, Provider, ResourceType, SearchType, SecretSourceType, ServerProtocol, WafFailureMode } from "./enums";
|
|
3
3
|
/**
|
|
4
4
|
* <p>The agent card definition for an A2A descriptor. Contains the schema version and inline content for the agent card.</p>
|
|
5
5
|
* @public
|
|
@@ -5453,6 +5453,22 @@ export declare namespace EvaluatorModelConfig {
|
|
|
5453
5453
|
_: (name: string, value: any) => T;
|
|
5454
5454
|
}
|
|
5455
5455
|
}
|
|
5456
|
+
/**
|
|
5457
|
+
* <p> The configuration for a derived evaluator. It reuses an existing evaluator's logic on your own model. </p>
|
|
5458
|
+
* @public
|
|
5459
|
+
*/
|
|
5460
|
+
export interface DerivedEvaluatorConfig {
|
|
5461
|
+
/**
|
|
5462
|
+
* <p> The identifier of the base evaluator whose logic to run (a <code>Builtin.*</code> or <code>ThirdParty.*</code> evaluator). </p>
|
|
5463
|
+
* @public
|
|
5464
|
+
*/
|
|
5465
|
+
baseEvaluatorId: string | undefined;
|
|
5466
|
+
/**
|
|
5467
|
+
* <p> The configuration of the evaluator model that you supply. </p>
|
|
5468
|
+
* @public
|
|
5469
|
+
*/
|
|
5470
|
+
modelConfig: EvaluatorModelConfig | undefined;
|
|
5471
|
+
}
|
|
5456
5472
|
/**
|
|
5457
5473
|
* <p> The definition of a categorical rating scale option that provides a named category with its description for evaluation scoring. </p>
|
|
5458
5474
|
* @public
|
|
@@ -5560,7 +5576,7 @@ export interface LlmAsAJudgeEvaluatorConfig {
|
|
|
5560
5576
|
* <p> The configuration that defines how an evaluator assesses agent performance, including the evaluation method and parameters. </p>
|
|
5561
5577
|
* @public
|
|
5562
5578
|
*/
|
|
5563
|
-
export type EvaluatorConfig = EvaluatorConfig.CodeBasedMember | EvaluatorConfig.LlmAsAJudgeMember | EvaluatorConfig.$UnknownMember;
|
|
5579
|
+
export type EvaluatorConfig = EvaluatorConfig.CodeBasedMember | EvaluatorConfig.DerivedMember | EvaluatorConfig.LlmAsAJudgeMember | EvaluatorConfig.$UnknownMember;
|
|
5564
5580
|
/**
|
|
5565
5581
|
* @public
|
|
5566
5582
|
*/
|
|
@@ -5572,6 +5588,7 @@ export declare namespace EvaluatorConfig {
|
|
|
5572
5588
|
interface LlmAsAJudgeMember {
|
|
5573
5589
|
llmAsAJudge: LlmAsAJudgeEvaluatorConfig;
|
|
5574
5590
|
codeBased?: never;
|
|
5591
|
+
derived?: never;
|
|
5575
5592
|
$unknown?: never;
|
|
5576
5593
|
}
|
|
5577
5594
|
/**
|
|
@@ -5581,6 +5598,17 @@ export declare namespace EvaluatorConfig {
|
|
|
5581
5598
|
interface CodeBasedMember {
|
|
5582
5599
|
llmAsAJudge?: never;
|
|
5583
5600
|
codeBased: CodeBasedEvaluatorConfig;
|
|
5601
|
+
derived?: never;
|
|
5602
|
+
$unknown?: never;
|
|
5603
|
+
}
|
|
5604
|
+
/**
|
|
5605
|
+
* <p> The configuration for an evaluator derived from an existing base evaluator (a built-in or third-party evaluator), run on your own model. The base evaluator supplies the prompt and scoring. </p>
|
|
5606
|
+
* @public
|
|
5607
|
+
*/
|
|
5608
|
+
interface DerivedMember {
|
|
5609
|
+
llmAsAJudge?: never;
|
|
5610
|
+
codeBased?: never;
|
|
5611
|
+
derived: DerivedEvaluatorConfig;
|
|
5584
5612
|
$unknown?: never;
|
|
5585
5613
|
}
|
|
5586
5614
|
/**
|
|
@@ -5589,6 +5617,7 @@ export declare namespace EvaluatorConfig {
|
|
|
5589
5617
|
interface $UnknownMember {
|
|
5590
5618
|
llmAsAJudge?: never;
|
|
5591
5619
|
codeBased?: never;
|
|
5620
|
+
derived?: never;
|
|
5592
5621
|
$unknown: [string, any];
|
|
5593
5622
|
}
|
|
5594
5623
|
/**
|
|
@@ -5598,6 +5627,7 @@ export declare namespace EvaluatorConfig {
|
|
|
5598
5627
|
interface Visitor<T> {
|
|
5599
5628
|
llmAsAJudge: (value: LlmAsAJudgeEvaluatorConfig) => T;
|
|
5600
5629
|
codeBased: (value: CodeBasedEvaluatorConfig) => T;
|
|
5630
|
+
derived: (value: DerivedEvaluatorConfig) => T;
|
|
5601
5631
|
_: (name: string, value: any) => T;
|
|
5602
5632
|
}
|
|
5603
5633
|
}
|
|
@@ -5740,6 +5770,16 @@ export interface GetEvaluatorResponse {
|
|
|
5740
5770
|
* @public
|
|
5741
5771
|
*/
|
|
5742
5772
|
evaluatorConfig: EvaluatorConfig | undefined;
|
|
5773
|
+
/**
|
|
5774
|
+
* <p> The kind of evaluator resource. Valid values: </p> <ul> <li> <p> <code>Builtin</code> – An Amazon Web Services-managed global evaluator.</p> </li> <li> <p> <code>ThirdParty</code> – An Amazon Web Services-managed global evaluator from a third-party provider.</p> </li> <li> <p> <code>Custom</code> – A customer-created evaluator.</p> </li> <li> <p> <code>CustomCode</code> – A customer-created code-based evaluator.</p> </li> <li> <p> <code>CustomDerived</code> – A customer-created evaluator derived from an existing base evaluator.</p> </li> </ul>
|
|
5775
|
+
* @public
|
|
5776
|
+
*/
|
|
5777
|
+
evaluatorType?: EvaluatorType | undefined;
|
|
5778
|
+
/**
|
|
5779
|
+
* <p> The source of the evaluator's logic: Amazon Web Services, a third-party library, or you. </p>
|
|
5780
|
+
* @public
|
|
5781
|
+
*/
|
|
5782
|
+
provider?: Provider | undefined;
|
|
5743
5783
|
/**
|
|
5744
5784
|
* <p> The evaluation level (<code>TOOL_CALL</code>, <code>TRACE</code>, or <code>SESSION</code>) that determines the scope of evaluation. </p>
|
|
5745
5785
|
* @public
|
|
@@ -5816,6 +5856,11 @@ export interface EvaluatorSummary {
|
|
|
5816
5856
|
* @public
|
|
5817
5857
|
*/
|
|
5818
5858
|
evaluatorType: EvaluatorType | undefined;
|
|
5859
|
+
/**
|
|
5860
|
+
* <p> The source of the evaluator's logic: Amazon Web Services, a third-party library, or you. </p>
|
|
5861
|
+
* @public
|
|
5862
|
+
*/
|
|
5863
|
+
provider?: Provider | undefined;
|
|
5819
5864
|
/**
|
|
5820
5865
|
* <p> The evaluation level (<code>TOOL_CALL</code>, <code>TRACE</code>, or <code>SESSION</code>) that determines the scope of evaluation. </p>
|
|
5821
5866
|
* @public
|
|
@@ -8116,17 +8161,6 @@ export interface InferenceConnectorSource {
|
|
|
8116
8161
|
*/
|
|
8117
8162
|
connectorId: string | undefined;
|
|
8118
8163
|
}
|
|
8119
|
-
/**
|
|
8120
|
-
* <p>The configuration for a connector-based inference target. This configuration uses a built-in connector that provides predefined rules for a large language model (LLM) provider.</p>
|
|
8121
|
-
* @public
|
|
8122
|
-
*/
|
|
8123
|
-
export interface InferenceConnectorTargetConfiguration {
|
|
8124
|
-
/**
|
|
8125
|
-
* <p>The source configuration identifying which inference connector to use.</p>
|
|
8126
|
-
* @public
|
|
8127
|
-
*/
|
|
8128
|
-
source: InferenceConnectorSource | undefined;
|
|
8129
|
-
}
|
|
8130
8164
|
/**
|
|
8131
8165
|
* @public
|
|
8132
8166
|
*/
|
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
import type { DocumentType as __DocumentType } from "@smithy/types";
|
|
2
2
|
import type { ActorTokenContentType, ClientAuthenticationMethodType, ClusteringFrequency, ContentLevel, ContentType, CredentialProviderVendorType, ExtractionType, FilterOperator, HarnessBedrockApiFormat, HarnessEndpointStatus, HarnessManagedMemoryStrategyType, HarnessOpenAiApiFormat, HarnessStatus, HarnessToolType, HarnessTruncationStrategy, KeyType, ListingMode, MemoryStatus, MemoryStrategyStatus, MemoryStrategyType, MemoryView, MetadataValueType, OnBehalfOfTokenExchangeGrantTypeType, OnlineEvaluationConfigStatus, OnlineEvaluationExecutionStatus, OverrideType, PaymentConnectorProvisionMode, PaymentConnectorStatus, PaymentConnectorType, PaymentCredentialProviderVendorType, PaymentManagerStatus, PaymentsAuthorizerType, PolicyEngineStatus, RestApiMethod, SecretSourceType, SigningAlgorithm, Status, TargetStatus, TargetType } from "./enums";
|
|
3
|
-
import type { AuthorizerConfiguration, ContainerConfiguration, FilesystemConfiguration,
|
|
3
|
+
import type { AuthorizerConfiguration, ContainerConfiguration, FilesystemConfiguration, InferenceConnectorSource, LifecycleConfiguration, NetworkConfiguration, OAuthCredentialProvider, PrivateEndpoint, PrivateEndpointOverride, S3Configuration, Secret, SecretReference, Unit, UpdatedDescription, WorkloadIdentityDetails } from "./models_0";
|
|
4
|
+
/**
|
|
5
|
+
* <p>The configuration for a connector-based inference target. This configuration uses a built-in connector that provides predefined rules for a large language model (LLM) provider.</p>
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export interface InferenceConnectorTargetConfiguration {
|
|
9
|
+
/**
|
|
10
|
+
* <p>The source configuration identifying which inference connector to use.</p>
|
|
11
|
+
* @public
|
|
12
|
+
*/
|
|
13
|
+
source: InferenceConnectorSource | undefined;
|
|
14
|
+
}
|
|
4
15
|
/**
|
|
5
16
|
* <p>The configuration that controls how a provider prefix is applied to model IDs during translation.</p>
|
|
6
17
|
* @public
|
|
@@ -8627,18 +8638,3 @@ export interface UpdatePolicyEngineResponse {
|
|
|
8627
8638
|
*/
|
|
8628
8639
|
statusReasons: string[] | undefined;
|
|
8629
8640
|
}
|
|
8630
|
-
/**
|
|
8631
|
-
* @public
|
|
8632
|
-
*/
|
|
8633
|
-
export interface GetPolicyGenerationRequest {
|
|
8634
|
-
/**
|
|
8635
|
-
* <p>The unique identifier of the policy generation request to be retrieved. This must be a valid generation ID from a previous <a href="https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_StartPolicyGeneration.html">StartPolicyGeneration</a> call.</p>
|
|
8636
|
-
* @public
|
|
8637
|
-
*/
|
|
8638
|
-
policyGenerationId: string | undefined;
|
|
8639
|
-
/**
|
|
8640
|
-
* <p>The identifier of the policy engine associated with the policy generation request. This provides the context for the generation operation and schema validation.</p>
|
|
8641
|
-
* @public
|
|
8642
|
-
*/
|
|
8643
|
-
policyEngineId: string | undefined;
|
|
8644
|
-
}
|
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
import type { DescriptorType, EnforcementMode, FindingType, PolicyGenerationStatus, PolicyStatus, PolicyValidationMode, RegistryAuthorizerType, RegistryRecordCredentialProviderType, RegistryRecordOAuthGrantType, RegistryRecordStatus, RegistryStatus, SchemaType, SynchronizationType, TargetProtocolType, TargetStatus } from "./enums";
|
|
2
2
|
import type { A2aDescriptor, AgentSkillsDescriptor, ApiSchemaConfiguration, AuthorizerConfiguration, CredentialProviderConfiguration, HttpTargetConfiguration, MetadataConfiguration, PrivateEndpoint, S3Configuration, SkillDefinition, SkillMdDefinition, UpdatedDescription } from "./models_0";
|
|
3
3
|
import type { ApiGatewayTargetConfiguration, AuthorizationData, ConnectorTargetConfiguration, InferenceTargetConfiguration, KmsConfiguration, ManagedResourceDetails, McpServerTargetConfiguration, UpdatedAuthorizerConfiguration } from "./models_1";
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface GetPolicyGenerationRequest {
|
|
8
|
+
/**
|
|
9
|
+
* <p>The unique identifier of the policy generation request to be retrieved. This must be a valid generation ID from a previous <a href="https://docs.aws.amazon.com/bedrock-agentcore-control/latest/APIReference/API_StartPolicyGeneration.html">StartPolicyGeneration</a> call.</p>
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
policyGenerationId: string | undefined;
|
|
13
|
+
/**
|
|
14
|
+
* <p>The identifier of the policy engine associated with the policy generation request. This provides the context for the generation operation and schema validation.</p>
|
|
15
|
+
* @public
|
|
16
|
+
*/
|
|
17
|
+
policyEngineId: string | undefined;
|
|
18
|
+
}
|
|
4
19
|
/**
|
|
5
20
|
* <p>Represents a resource within the AgentCore Policy system. Resources are the targets of policy evaluation. Currently, only AgentCore Gateways are supported as resources for policy enforcement.</p>
|
|
6
21
|
* @public
|
|
@@ -202,6 +202,7 @@ export declare var DeleteResourcePolicyRequest$: StaticStructureSchema;
|
|
|
202
202
|
export declare var DeleteResourcePolicyResponse$: StaticStructureSchema;
|
|
203
203
|
export declare var DeleteWorkloadIdentityRequest$: StaticStructureSchema;
|
|
204
204
|
export declare var DeleteWorkloadIdentityResponse$: StaticStructureSchema;
|
|
205
|
+
export declare var DerivedEvaluatorConfig$: StaticStructureSchema;
|
|
205
206
|
export declare var Descriptors$: StaticStructureSchema;
|
|
206
207
|
export declare var EbsVolumeConfiguration$: StaticStructureSchema;
|
|
207
208
|
export declare var Ec2Configuration$: StaticStructureSchema;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
2
|
-
import { GetPolicyGenerationRequest } from "../models/
|
|
3
|
-
import { GetPolicyGenerationResponse } from "../models/models_2";
|
|
2
|
+
import { GetPolicyGenerationRequest, GetPolicyGenerationResponse } from "../models/models_2";
|
|
4
3
|
export { __MetadataBearer };
|
|
5
4
|
export interface GetPolicyGenerationCommandInput extends GetPolicyGenerationRequest {}
|
|
6
5
|
export interface GetPolicyGenerationCommandOutput
|
|
@@ -198,6 +198,7 @@ export type ConfigurationBundleStatus =
|
|
|
198
198
|
export declare const DatasetSchemaType: {
|
|
199
199
|
readonly AGENTCORE_EVALUATION_PREDEFINED_V1: "AGENTCORE_EVALUATION_PREDEFINED_V1";
|
|
200
200
|
readonly AGENTCORE_EVALUATION_SIMULATED_V1: "AGENTCORE_EVALUATION_SIMULATED_V1";
|
|
201
|
+
readonly GENERIC_EVALUATION_PREDEFINED_V1: "GENERIC_EVALUATION_PREDEFINED_V1";
|
|
201
202
|
};
|
|
202
203
|
export type DatasetSchemaType = (typeof DatasetSchemaType)[keyof typeof DatasetSchemaType];
|
|
203
204
|
export declare const DraftStatus: {
|
|
@@ -229,8 +230,17 @@ export declare const EvaluatorType: {
|
|
|
229
230
|
readonly BUILTIN: "Builtin";
|
|
230
231
|
readonly CODE: "CustomCode";
|
|
231
232
|
readonly CUSTOM: "Custom";
|
|
233
|
+
readonly CUSTOM_DERIVED: "CustomDerived";
|
|
234
|
+
readonly THIRD_PARTY: "ThirdParty";
|
|
232
235
|
};
|
|
233
236
|
export type EvaluatorType = (typeof EvaluatorType)[keyof typeof EvaluatorType];
|
|
237
|
+
export declare const Provider: {
|
|
238
|
+
readonly AUTO_EVAL: "AutoEval";
|
|
239
|
+
readonly AWS: "AWS";
|
|
240
|
+
readonly CUSTOM: "Custom";
|
|
241
|
+
readonly DEEP_EVAL: "DeepEval";
|
|
242
|
+
};
|
|
243
|
+
export type Provider = (typeof Provider)[keyof typeof Provider];
|
|
234
244
|
export declare const Period: {
|
|
235
245
|
readonly MINUTE: "minute";
|
|
236
246
|
readonly SECOND: "second";
|
|
@@ -42,6 +42,7 @@ import {
|
|
|
42
42
|
PassthroughProtocolType,
|
|
43
43
|
Period,
|
|
44
44
|
PrincipalMatchOperator,
|
|
45
|
+
Provider,
|
|
45
46
|
ResourceType,
|
|
46
47
|
SearchType,
|
|
47
48
|
SecretSourceType,
|
|
@@ -1597,6 +1598,10 @@ export declare namespace EvaluatorModelConfig {
|
|
|
1597
1598
|
_: (name: string, value: any) => T;
|
|
1598
1599
|
}
|
|
1599
1600
|
}
|
|
1601
|
+
export interface DerivedEvaluatorConfig {
|
|
1602
|
+
baseEvaluatorId: string | undefined;
|
|
1603
|
+
modelConfig: EvaluatorModelConfig | undefined;
|
|
1604
|
+
}
|
|
1600
1605
|
export interface CategoricalScaleDefinition {
|
|
1601
1606
|
definition: string | undefined;
|
|
1602
1607
|
label: string | undefined;
|
|
@@ -1639,27 +1644,38 @@ export interface LlmAsAJudgeEvaluatorConfig {
|
|
|
1639
1644
|
}
|
|
1640
1645
|
export type EvaluatorConfig =
|
|
1641
1646
|
| EvaluatorConfig.CodeBasedMember
|
|
1647
|
+
| EvaluatorConfig.DerivedMember
|
|
1642
1648
|
| EvaluatorConfig.LlmAsAJudgeMember
|
|
1643
1649
|
| EvaluatorConfig.$UnknownMember;
|
|
1644
1650
|
export declare namespace EvaluatorConfig {
|
|
1645
1651
|
interface LlmAsAJudgeMember {
|
|
1646
1652
|
llmAsAJudge: LlmAsAJudgeEvaluatorConfig;
|
|
1647
1653
|
codeBased?: never;
|
|
1654
|
+
derived?: never;
|
|
1648
1655
|
$unknown?: never;
|
|
1649
1656
|
}
|
|
1650
1657
|
interface CodeBasedMember {
|
|
1651
1658
|
llmAsAJudge?: never;
|
|
1652
1659
|
codeBased: CodeBasedEvaluatorConfig;
|
|
1660
|
+
derived?: never;
|
|
1661
|
+
$unknown?: never;
|
|
1662
|
+
}
|
|
1663
|
+
interface DerivedMember {
|
|
1664
|
+
llmAsAJudge?: never;
|
|
1665
|
+
codeBased?: never;
|
|
1666
|
+
derived: DerivedEvaluatorConfig;
|
|
1653
1667
|
$unknown?: never;
|
|
1654
1668
|
}
|
|
1655
1669
|
interface $UnknownMember {
|
|
1656
1670
|
llmAsAJudge?: never;
|
|
1657
1671
|
codeBased?: never;
|
|
1672
|
+
derived?: never;
|
|
1658
1673
|
$unknown: [string, any];
|
|
1659
1674
|
}
|
|
1660
1675
|
interface Visitor<T> {
|
|
1661
1676
|
llmAsAJudge: (value: LlmAsAJudgeEvaluatorConfig) => T;
|
|
1662
1677
|
codeBased: (value: CodeBasedEvaluatorConfig) => T;
|
|
1678
|
+
derived: (value: DerivedEvaluatorConfig) => T;
|
|
1663
1679
|
_: (name: string, value: any) => T;
|
|
1664
1680
|
}
|
|
1665
1681
|
}
|
|
@@ -1696,6 +1712,8 @@ export interface GetEvaluatorResponse {
|
|
|
1696
1712
|
evaluatorName: string | undefined;
|
|
1697
1713
|
description?: string | undefined;
|
|
1698
1714
|
evaluatorConfig: EvaluatorConfig | undefined;
|
|
1715
|
+
evaluatorType?: EvaluatorType | undefined;
|
|
1716
|
+
provider?: Provider | undefined;
|
|
1699
1717
|
level: EvaluatorLevel | undefined;
|
|
1700
1718
|
status: EvaluatorStatus | undefined;
|
|
1701
1719
|
createdAt: Date | undefined;
|
|
@@ -1713,6 +1731,7 @@ export interface EvaluatorSummary {
|
|
|
1713
1731
|
evaluatorName: string | undefined;
|
|
1714
1732
|
description?: string | undefined;
|
|
1715
1733
|
evaluatorType: EvaluatorType | undefined;
|
|
1734
|
+
provider?: Provider | undefined;
|
|
1716
1735
|
level?: EvaluatorLevel | undefined;
|
|
1717
1736
|
status: EvaluatorStatus | undefined;
|
|
1718
1737
|
createdAt: Date | undefined;
|
|
@@ -2359,7 +2378,4 @@ export declare namespace HttpTargetConfiguration {
|
|
|
2359
2378
|
export interface InferenceConnectorSource {
|
|
2360
2379
|
connectorId: string | undefined;
|
|
2361
2380
|
}
|
|
2362
|
-
export interface InferenceConnectorTargetConfiguration {
|
|
2363
|
-
source: InferenceConnectorSource | undefined;
|
|
2364
|
-
}
|
|
2365
2381
|
export interface Unit {}
|
|
@@ -44,7 +44,7 @@ import {
|
|
|
44
44
|
AuthorizerConfiguration,
|
|
45
45
|
ContainerConfiguration,
|
|
46
46
|
FilesystemConfiguration,
|
|
47
|
-
|
|
47
|
+
InferenceConnectorSource,
|
|
48
48
|
LifecycleConfiguration,
|
|
49
49
|
NetworkConfiguration,
|
|
50
50
|
OAuthCredentialProvider,
|
|
@@ -57,6 +57,9 @@ import {
|
|
|
57
57
|
UpdatedDescription,
|
|
58
58
|
WorkloadIdentityDetails,
|
|
59
59
|
} from "./models_0";
|
|
60
|
+
export interface InferenceConnectorTargetConfiguration {
|
|
61
|
+
source: InferenceConnectorSource | undefined;
|
|
62
|
+
}
|
|
60
63
|
export interface ProviderPrefix {
|
|
61
64
|
strip?: boolean | undefined;
|
|
62
65
|
separator?: string | undefined;
|
|
@@ -3019,7 +3022,3 @@ export interface UpdatePolicyEngineResponse {
|
|
|
3019
3022
|
description?: string | undefined;
|
|
3020
3023
|
statusReasons: string[] | undefined;
|
|
3021
3024
|
}
|
|
3022
|
-
export interface GetPolicyGenerationRequest {
|
|
3023
|
-
policyGenerationId: string | undefined;
|
|
3024
|
-
policyEngineId: string | undefined;
|
|
3025
|
-
}
|
|
@@ -39,6 +39,10 @@ import {
|
|
|
39
39
|
McpServerTargetConfiguration,
|
|
40
40
|
UpdatedAuthorizerConfiguration,
|
|
41
41
|
} from "./models_1";
|
|
42
|
+
export interface GetPolicyGenerationRequest {
|
|
43
|
+
policyGenerationId: string | undefined;
|
|
44
|
+
policyEngineId: string | undefined;
|
|
45
|
+
}
|
|
42
46
|
export type Resource = Resource.ArnMember | Resource.$UnknownMember;
|
|
43
47
|
export declare namespace Resource {
|
|
44
48
|
interface ArnMember {
|
|
@@ -202,6 +202,7 @@ export declare var DeleteResourcePolicyRequest$: StaticStructureSchema;
|
|
|
202
202
|
export declare var DeleteResourcePolicyResponse$: StaticStructureSchema;
|
|
203
203
|
export declare var DeleteWorkloadIdentityRequest$: StaticStructureSchema;
|
|
204
204
|
export declare var DeleteWorkloadIdentityResponse$: StaticStructureSchema;
|
|
205
|
+
export declare var DerivedEvaluatorConfig$: StaticStructureSchema;
|
|
205
206
|
export declare var Descriptors$: StaticStructureSchema;
|
|
206
207
|
export declare var EbsVolumeConfiguration$: StaticStructureSchema;
|
|
207
208
|
export declare var Ec2Configuration$: StaticStructureSchema;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-bedrock-agentcore-control",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.1113.0",
|
|
4
4
|
"description": "AWS SDK for JavaScript Bedrock Agentcore Control Client for Node.js, Browser and React Native",
|
|
5
5
|
"homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-bedrock-agentcore-control",
|
|
6
6
|
"license": "Apache-2.0",
|