@aws/agentcore-cdk 0.1.0-alpha.8 → 0.1.0-alpha.9
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/cdk/constants.d.ts +1 -0
- package/dist/cdk/constants.d.ts.map +1 -1
- package/dist/cdk/constants.js +5 -1
- package/dist/cdk/constants.js.map +1 -1
- package/dist/cdk/constructs/components/mcp/McpLambdaCompute.d.ts.map +1 -1
- package/dist/cdk/constructs/components/mcp/McpLambdaCompute.js +1 -0
- package/dist/cdk/constructs/components/mcp/McpLambdaCompute.js.map +1 -1
- package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.d.ts.map +1 -1
- package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.js +1 -0
- package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.d.ts +23 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.js +71 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.d.ts +28 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.js +157 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreOnlineEvaluationConfig.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/index.d.ts +3 -0
- package/dist/cdk/constructs/components/primitives/evaluator/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/index.js +8 -0
- package/dist/cdk/constructs/components/primitives/evaluator/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/index.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/index.js +5 -1
- package/dist/cdk/constructs/components/primitives/index.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js +17 -3
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts +18 -0
- package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreApplication.js +75 -1
- package/dist/cdk/constructs/l3/AgentCoreApplication.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreMcp.js +1 -1
- package/dist/cdk/constructs/l3/AgentCoreMcp.js.map +1 -1
- package/dist/schema/constants.d.ts +20 -1
- package/dist/schema/constants.d.ts.map +1 -1
- package/dist/schema/constants.js +29 -2
- package/dist/schema/constants.js.map +1 -1
- package/dist/schema/schemas/agent-env.d.ts +26 -2
- package/dist/schema/schemas/agent-env.d.ts.map +1 -1
- package/dist/schema/schemas/agent-env.js +36 -5
- package/dist/schema/schemas/agent-env.js.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +84 -1
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +51 -2
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/mcp.d.ts +9 -9
- package/dist/schema/schemas/primitives/evaluator.d.ts +66 -0
- package/dist/schema/schemas/primitives/evaluator.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/evaluator.js +48 -0
- package/dist/schema/schemas/primitives/evaluator.js.map +1 -0
- package/dist/schema/schemas/primitives/index.d.ts +4 -0
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +12 -1
- package/dist/schema/schemas/primitives/index.js.map +1 -1
- package/dist/schema/schemas/primitives/online-evaluation-config.d.ts +13 -0
- package/dist/schema/schemas/primitives/online-evaluation-config.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/online-evaluation-config.js +27 -0
- package/dist/schema/schemas/primitives/online-evaluation-config.js.map +1 -0
- package/package.json +5 -5
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AgentCoreProjectSpecSchema = exports.CredentialSchema = exports.OAuthCredentialSchema = exports.ApiKeyCredentialSchema = exports.CredentialTypeSchema = exports.CredentialNameSchema = exports.MemorySchema = exports.MemoryNameSchema = exports.MemoryTypeSchema = exports.ProjectNameSchema = exports.MemoryStrategyTypeSchema = exports.MemoryStrategySchema = void 0;
|
|
3
|
+
exports.AgentCoreProjectSpecSchema = exports.EvaluatorSchema = exports.EvaluatorTypeSchema = exports.CredentialSchema = exports.OAuthCredentialSchema = exports.ApiKeyCredentialSchema = exports.CredentialTypeSchema = exports.CredentialNameSchema = exports.MemorySchema = exports.MemoryNameSchema = exports.MemoryTypeSchema = exports.ProjectNameSchema = exports.MemoryStrategyTypeSchema = exports.MemoryStrategySchema = void 0;
|
|
4
4
|
/**
|
|
5
5
|
* AgentCore Project Schema - Resource-centric model
|
|
6
6
|
*
|
|
@@ -11,9 +11,11 @@ exports.AgentCoreProjectSpecSchema = exports.CredentialSchema = exports.OAuthCre
|
|
|
11
11
|
*/
|
|
12
12
|
const constants_1 = require("../constants");
|
|
13
13
|
const agent_env_1 = require("./agent-env");
|
|
14
|
+
const evaluator_1 = require("./primitives/evaluator");
|
|
14
15
|
const memory_1 = require("./primitives/memory");
|
|
15
16
|
Object.defineProperty(exports, "MemoryStrategySchema", { enumerable: true, get: function () { return memory_1.MemoryStrategySchema; } });
|
|
16
17
|
Object.defineProperty(exports, "MemoryStrategyTypeSchema", { enumerable: true, get: function () { return memory_1.MemoryStrategyTypeSchema; } });
|
|
18
|
+
const online_evaluation_config_1 = require("./primitives/online-evaluation-config");
|
|
17
19
|
const zod_util_1 = require("./zod-util");
|
|
18
20
|
const zod_1 = require("zod");
|
|
19
21
|
// ============================================================================
|
|
@@ -74,9 +76,24 @@ exports.OAuthCredentialSchema = zod_1.z.object({
|
|
|
74
76
|
});
|
|
75
77
|
exports.CredentialSchema = zod_1.z.discriminatedUnion('type', [exports.ApiKeyCredentialSchema, exports.OAuthCredentialSchema]);
|
|
76
78
|
// ============================================================================
|
|
79
|
+
// Evaluator Schema
|
|
80
|
+
// ============================================================================
|
|
81
|
+
exports.EvaluatorTypeSchema = zod_1.z.literal('CustomEvaluator');
|
|
82
|
+
exports.EvaluatorSchema = zod_1.z.object({
|
|
83
|
+
type: exports.EvaluatorTypeSchema,
|
|
84
|
+
name: evaluator_1.EvaluatorNameSchema,
|
|
85
|
+
level: evaluator_1.EvaluationLevelSchema,
|
|
86
|
+
description: zod_1.z.string().optional(),
|
|
87
|
+
config: evaluator_1.EvaluatorConfigSchema,
|
|
88
|
+
});
|
|
89
|
+
// ============================================================================
|
|
77
90
|
// Project Schema (Top Level)
|
|
78
91
|
// ============================================================================
|
|
79
|
-
|
|
92
|
+
/** Must match BUILTIN_EVALUATOR_PREFIX in src/cdk/constants.ts */
|
|
93
|
+
const BUILTIN_EVALUATOR_PREFIX = 'Builtin.';
|
|
94
|
+
const ARN_PREFIX = 'arn:';
|
|
95
|
+
exports.AgentCoreProjectSpecSchema = zod_1.z
|
|
96
|
+
.object({
|
|
80
97
|
name: exports.ProjectNameSchema,
|
|
81
98
|
version: zod_1.z.number().int(),
|
|
82
99
|
agents: zod_1.z
|
|
@@ -91,5 +108,37 @@ exports.AgentCoreProjectSpecSchema = zod_1.z.object({
|
|
|
91
108
|
.array(exports.CredentialSchema)
|
|
92
109
|
.default([])
|
|
93
110
|
.superRefine((0, zod_util_1.uniqueBy)(credential => credential.name, name => `Duplicate credential name: ${name}`)),
|
|
111
|
+
evaluators: zod_1.z
|
|
112
|
+
.array(exports.EvaluatorSchema)
|
|
113
|
+
.default([])
|
|
114
|
+
.superRefine((0, zod_util_1.uniqueBy)(evaluator => evaluator.name, name => `Duplicate evaluator name: ${name}`)),
|
|
115
|
+
onlineEvalConfigs: zod_1.z
|
|
116
|
+
.array(online_evaluation_config_1.OnlineEvaluationConfigSchema)
|
|
117
|
+
.default([])
|
|
118
|
+
.superRefine((0, zod_util_1.uniqueBy)(config => config.name, name => `Duplicate online evaluation config name: ${name}`)),
|
|
119
|
+
})
|
|
120
|
+
.superRefine((spec, ctx) => {
|
|
121
|
+
const agentNames = new Set(spec.agents.map(a => a.name));
|
|
122
|
+
const evaluatorNames = new Set(spec.evaluators.map(e => e.name));
|
|
123
|
+
for (const config of spec.onlineEvalConfigs) {
|
|
124
|
+
// Validate agent reference
|
|
125
|
+
if (!agentNames.has(config.agent)) {
|
|
126
|
+
ctx.addIssue({
|
|
127
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
128
|
+
message: `Online evaluation config "${config.name}" references unknown agent "${config.agent}"`,
|
|
129
|
+
});
|
|
130
|
+
}
|
|
131
|
+
// Validate evaluator references
|
|
132
|
+
for (const evalName of config.evaluators) {
|
|
133
|
+
if (evalName.startsWith(BUILTIN_EVALUATOR_PREFIX) || evalName.startsWith(ARN_PREFIX))
|
|
134
|
+
continue;
|
|
135
|
+
if (!evaluatorNames.has(evalName)) {
|
|
136
|
+
ctx.addIssue({
|
|
137
|
+
code: zod_1.z.ZodIssueCode.custom,
|
|
138
|
+
message: `Online evaluation config "${config.name}" references unknown evaluator "${evalName}"`,
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
}
|
|
94
143
|
});
|
|
95
144
|
//# sourceMappingURL=agentcore-project.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agentcore-project.js","sourceRoot":"","sources":["../../../src/schema/schemas/agentcore-project.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACH,4CAAqD;AACrD,2CAAiD;AACjD,gDAAqF;
|
|
1
|
+
{"version":3,"file":"agentcore-project.js","sourceRoot":"","sources":["../../../src/schema/schemas/agentcore-project.ts"],"names":[],"mappings":";;;AAAA;;;;;;;GAOG;AACH,4CAAqD;AACrD,2CAAiD;AACjD,sDAA2G;AAC3G,gDAAqF;AAM5E,qGANA,6BAAoB,OAMA;AAAE,yGANA,iCAAwB,OAMA;AALvD,oFAAqF;AACrF,yCAAsC;AACtC,6BAAwB;AAQxB,+EAA+E;AAC/E,sBAAsB;AACtB,+EAA+E;AAElE,QAAA,iBAAiB,GAAG,OAAC;KAC/B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,0BAA0B,CAAC;KAClC,GAAG,CAAC,EAAE,EAAE,4CAA4C,CAAC;KACrD,KAAK,CACJ,6BAA6B,EAC7B,gFAAgF,CACjF;KACA,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAA,iCAAqB,EAAC,IAAI,CAAC,EAAE;IAC5C,OAAO,EAAE,uFAAuF;CACjG,CAAC,CAAC;AAEL,+EAA+E;AAC/E,gBAAgB;AAChB,+EAA+E;AAElE,QAAA,gBAAgB,GAAG,OAAC,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAGhD,QAAA,gBAAgB,GAAG,OAAC;KAC9B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;KAC1B,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,8BAA8B,EAC9B,kGAAkG,CACnG,CAAC;AAES,QAAA,YAAY,GAAG,OAAC,CAAC,MAAM,CAAC;IACnC,IAAI,EAAE,wBAAgB;IACtB,IAAI,EAAE,wBAAgB;IACtB,mBAAmB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IACrD,yFAAyF;IACzF,qFAAqF;IACrF,UAAU,EAAE,OAAC;SACV,KAAK,CAAC,6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AAK,GAAG;aAChG,CAAC,CAAC;QACL,CAAC;QAED,gCAAgC;QAChC,KAAK,MAAM,QAAQ,IAAI,MAAM,CAAC,UAAU,EAAE,CAAC;YACzC,IAAI,QAAQ,CAAC,UAAU,CAAC,wBAAwB,CAAC,IAAI,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;gBAAE,SAAS;YAC/F,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC;gBAClC,GAAG,CAAC,QAAQ,CAAC;oBACX,IAAI,EAAE,OAAC,CAAC,YAAY,CAAC,MAAM;oBAC3B,OAAO,EAAE,6BAA6B,MAAM,CAAC,IAAI,mCAAmC,QAAQ,GAAG;iBAChG,CAAC,CAAC;YACL,CAAC;QACH,CAAC;IACH,CAAC;AACH,CAAC,CAAC,CAAC"}
|
|
@@ -223,7 +223,7 @@ declare const CodeZipRuntimeConfigSchema: z.ZodObject<{
|
|
|
223
223
|
}, z.core.$strip>>;
|
|
224
224
|
networkMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
225
225
|
PUBLIC: "PUBLIC";
|
|
226
|
-
|
|
226
|
+
VPC: "VPC";
|
|
227
227
|
}>>>;
|
|
228
228
|
description: z.ZodOptional<z.ZodString>;
|
|
229
229
|
}, z.core.$strict>;
|
|
@@ -248,7 +248,7 @@ export declare const RuntimeConfigSchema: z.ZodObject<{
|
|
|
248
248
|
}, z.core.$strip>>;
|
|
249
249
|
networkMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
250
250
|
PUBLIC: "PUBLIC";
|
|
251
|
-
|
|
251
|
+
VPC: "VPC";
|
|
252
252
|
}>>>;
|
|
253
253
|
description: z.ZodOptional<z.ZodString>;
|
|
254
254
|
}, z.core.$strict>;
|
|
@@ -318,7 +318,7 @@ declare const AgentCoreRuntimeComputeConfigSchema: z.ZodObject<{
|
|
|
318
318
|
}, z.core.$strip>>;
|
|
319
319
|
networkMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
320
320
|
PUBLIC: "PUBLIC";
|
|
321
|
-
|
|
321
|
+
VPC: "VPC";
|
|
322
322
|
}>>>;
|
|
323
323
|
description: z.ZodOptional<z.ZodString>;
|
|
324
324
|
}, z.core.$strict>>;
|
|
@@ -384,7 +384,7 @@ export declare const ToolComputeConfigSchema: z.ZodDiscriminatedUnion<[z.ZodObje
|
|
|
384
384
|
}, z.core.$strip>>;
|
|
385
385
|
networkMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
386
386
|
PUBLIC: "PUBLIC";
|
|
387
|
-
|
|
387
|
+
VPC: "VPC";
|
|
388
388
|
}>>>;
|
|
389
389
|
description: z.ZodOptional<z.ZodString>;
|
|
390
390
|
}, z.core.$strict>>;
|
|
@@ -483,7 +483,7 @@ export declare const AgentCoreGatewayTargetSchema: z.ZodObject<{
|
|
|
483
483
|
}, z.core.$strip>>;
|
|
484
484
|
networkMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
485
485
|
PUBLIC: "PUBLIC";
|
|
486
|
-
|
|
486
|
+
VPC: "VPC";
|
|
487
487
|
}>>>;
|
|
488
488
|
description: z.ZodOptional<z.ZodString>;
|
|
489
489
|
}, z.core.$strict>>;
|
|
@@ -632,7 +632,7 @@ export declare const AgentCoreGatewaySchema: z.ZodObject<{
|
|
|
632
632
|
}, z.core.$strip>>;
|
|
633
633
|
networkMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
634
634
|
PUBLIC: "PUBLIC";
|
|
635
|
-
|
|
635
|
+
VPC: "VPC";
|
|
636
636
|
}>>>;
|
|
637
637
|
description: z.ZodOptional<z.ZodString>;
|
|
638
638
|
}, z.core.$strict>>;
|
|
@@ -772,7 +772,7 @@ export declare const AgentCoreMcpRuntimeToolSchema: z.ZodObject<{
|
|
|
772
772
|
}, z.core.$strip>>;
|
|
773
773
|
networkMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
774
774
|
PUBLIC: "PUBLIC";
|
|
775
|
-
|
|
775
|
+
VPC: "VPC";
|
|
776
776
|
}>>>;
|
|
777
777
|
description: z.ZodOptional<z.ZodString>;
|
|
778
778
|
}, z.core.$strict>>;
|
|
@@ -863,7 +863,7 @@ export declare const AgentCoreMcpSpecSchema: z.ZodObject<{
|
|
|
863
863
|
}, z.core.$strip>>;
|
|
864
864
|
networkMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
865
865
|
PUBLIC: "PUBLIC";
|
|
866
|
-
|
|
866
|
+
VPC: "VPC";
|
|
867
867
|
}>>>;
|
|
868
868
|
description: z.ZodOptional<z.ZodString>;
|
|
869
869
|
}, z.core.$strict>>;
|
|
@@ -982,7 +982,7 @@ export declare const AgentCoreMcpSpecSchema: z.ZodObject<{
|
|
|
982
982
|
}, z.core.$strip>>;
|
|
983
983
|
networkMode: z.ZodDefault<z.ZodOptional<z.ZodEnum<{
|
|
984
984
|
PUBLIC: "PUBLIC";
|
|
985
|
-
|
|
985
|
+
VPC: "VPC";
|
|
986
986
|
}>>>;
|
|
987
987
|
description: z.ZodOptional<z.ZodString>;
|
|
988
988
|
}, z.core.$strict>>;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const EvaluationLevelSchema: z.ZodEnum<{
|
|
3
|
+
SESSION: "SESSION";
|
|
4
|
+
TRACE: "TRACE";
|
|
5
|
+
TOOL_CALL: "TOOL_CALL";
|
|
6
|
+
}>;
|
|
7
|
+
export type EvaluationLevel = z.infer<typeof EvaluationLevelSchema>;
|
|
8
|
+
export declare const EvaluatorNameSchema: z.ZodString;
|
|
9
|
+
export declare const NumericalRatingSchema: z.ZodObject<{
|
|
10
|
+
value: z.ZodNumber;
|
|
11
|
+
label: z.ZodString;
|
|
12
|
+
definition: z.ZodString;
|
|
13
|
+
}, z.core.$strip>;
|
|
14
|
+
export type NumericalRating = z.infer<typeof NumericalRatingSchema>;
|
|
15
|
+
export declare const CategoricalRatingSchema: z.ZodObject<{
|
|
16
|
+
label: z.ZodString;
|
|
17
|
+
definition: z.ZodString;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type CategoricalRating = z.infer<typeof CategoricalRatingSchema>;
|
|
20
|
+
export declare const RatingScaleSchema: z.ZodObject<{
|
|
21
|
+
numerical: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
22
|
+
value: z.ZodNumber;
|
|
23
|
+
label: z.ZodString;
|
|
24
|
+
definition: z.ZodString;
|
|
25
|
+
}, z.core.$strip>>>;
|
|
26
|
+
categorical: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
|
+
label: z.ZodString;
|
|
28
|
+
definition: z.ZodString;
|
|
29
|
+
}, z.core.$strip>>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type RatingScale = z.infer<typeof RatingScaleSchema>;
|
|
32
|
+
export declare const LlmAsAJudgeConfigSchema: z.ZodObject<{
|
|
33
|
+
model: z.ZodString;
|
|
34
|
+
instructions: z.ZodString;
|
|
35
|
+
ratingScale: z.ZodObject<{
|
|
36
|
+
numerical: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
37
|
+
value: z.ZodNumber;
|
|
38
|
+
label: z.ZodString;
|
|
39
|
+
definition: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
41
|
+
categorical: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42
|
+
label: z.ZodString;
|
|
43
|
+
definition: z.ZodString;
|
|
44
|
+
}, z.core.$strip>>>;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
export type LlmAsAJudgeConfig = z.infer<typeof LlmAsAJudgeConfigSchema>;
|
|
48
|
+
export declare const EvaluatorConfigSchema: z.ZodObject<{
|
|
49
|
+
llmAsAJudge: z.ZodObject<{
|
|
50
|
+
model: z.ZodString;
|
|
51
|
+
instructions: z.ZodString;
|
|
52
|
+
ratingScale: z.ZodObject<{
|
|
53
|
+
numerical: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
54
|
+
value: z.ZodNumber;
|
|
55
|
+
label: z.ZodString;
|
|
56
|
+
definition: z.ZodString;
|
|
57
|
+
}, z.core.$strip>>>;
|
|
58
|
+
categorical: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
59
|
+
label: z.ZodString;
|
|
60
|
+
definition: z.ZodString;
|
|
61
|
+
}, z.core.$strip>>>;
|
|
62
|
+
}, z.core.$strip>;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
export type EvaluatorConfig = z.infer<typeof EvaluatorConfigSchema>;
|
|
66
|
+
//# sourceMappingURL=evaluator.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluator.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/evaluator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,qBAAqB;;;;EAA4C,CAAC;AAC/E,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,mBAAmB,aAO7B,CAAC;AAMJ,eAAO,MAAM,qBAAqB;;;;iBAIhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,uBAAuB;;;iBAGlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,iBAAiB;;;;;;;;;;iBAO1B,CAAC;AAEL,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAM5D,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;iBAIlC,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAMxE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;iBAEhC,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EvaluatorConfigSchema = exports.LlmAsAJudgeConfigSchema = exports.RatingScaleSchema = exports.CategoricalRatingSchema = exports.NumericalRatingSchema = exports.EvaluatorNameSchema = exports.EvaluationLevelSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// ============================================================================
|
|
6
|
+
// Evaluator Types
|
|
7
|
+
// ============================================================================
|
|
8
|
+
exports.EvaluationLevelSchema = zod_1.z.enum(['SESSION', 'TRACE', 'TOOL_CALL']);
|
|
9
|
+
exports.EvaluatorNameSchema = zod_1.z
|
|
10
|
+
.string()
|
|
11
|
+
.min(1, 'Name is required')
|
|
12
|
+
.max(48)
|
|
13
|
+
.regex(/^[a-zA-Z][a-zA-Z0-9_]{0,47}$/, 'Must begin with a letter and contain only alphanumeric characters and underscores (max 48 chars)');
|
|
14
|
+
// ============================================================================
|
|
15
|
+
// Rating Scale
|
|
16
|
+
// ============================================================================
|
|
17
|
+
exports.NumericalRatingSchema = zod_1.z.object({
|
|
18
|
+
value: zod_1.z.number().int(),
|
|
19
|
+
label: zod_1.z.string().min(1),
|
|
20
|
+
definition: zod_1.z.string().min(1),
|
|
21
|
+
});
|
|
22
|
+
exports.CategoricalRatingSchema = zod_1.z.object({
|
|
23
|
+
label: zod_1.z.string().min(1),
|
|
24
|
+
definition: zod_1.z.string().min(1),
|
|
25
|
+
});
|
|
26
|
+
exports.RatingScaleSchema = zod_1.z
|
|
27
|
+
.object({
|
|
28
|
+
numerical: zod_1.z.array(exports.NumericalRatingSchema).optional(),
|
|
29
|
+
categorical: zod_1.z.array(exports.CategoricalRatingSchema).optional(),
|
|
30
|
+
})
|
|
31
|
+
.refine(scale => Boolean(scale.numerical) !== Boolean(scale.categorical), {
|
|
32
|
+
message: 'Rating scale must have either numerical or categorical, not both',
|
|
33
|
+
});
|
|
34
|
+
// ============================================================================
|
|
35
|
+
// LLM-as-a-Judge Config
|
|
36
|
+
// ============================================================================
|
|
37
|
+
exports.LlmAsAJudgeConfigSchema = zod_1.z.object({
|
|
38
|
+
model: zod_1.z.string().min(1, 'Model ID is required'),
|
|
39
|
+
instructions: zod_1.z.string().min(1, 'Evaluation instructions are required'),
|
|
40
|
+
ratingScale: exports.RatingScaleSchema,
|
|
41
|
+
});
|
|
42
|
+
// ============================================================================
|
|
43
|
+
// Evaluator Config
|
|
44
|
+
// ============================================================================
|
|
45
|
+
exports.EvaluatorConfigSchema = zod_1.z.object({
|
|
46
|
+
llmAsAJudge: exports.LlmAsAJudgeConfigSchema,
|
|
47
|
+
});
|
|
48
|
+
//# sourceMappingURL=evaluator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"evaluator.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/evaluator.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+EAA+E;AAC/E,kBAAkB;AAClB,+EAA+E;AAElE,QAAA,qBAAqB,GAAG,OAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,CAAC;AAGlE,QAAA,mBAAmB,GAAG,OAAC;KACjC,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;KAC1B,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,8BAA8B,EAC9B,kGAAkG,CACnG,CAAC;AAEJ,+EAA+E;AAC/E,eAAe;AACf,+EAA+E;AAElE,QAAA,qBAAqB,GAAG,OAAC,CAAC,MAAM,CAAC;IA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;IAC5C,WAAW,EAAE,+BAAuB;CACrC,CAAC,CAAC"}
|
|
@@ -1,3 +1,7 @@
|
|
|
1
1
|
export type { MemoryStrategy, MemoryStrategyType } from './memory';
|
|
2
2
|
export { MemoryStrategySchema, MemoryStrategyNameSchema, MemoryStrategyTypeSchema } from './memory';
|
|
3
|
+
export type { EvaluationLevel, EvaluatorConfig, LlmAsAJudgeConfig, RatingScale, NumericalRating, CategoricalRating, } from './evaluator';
|
|
4
|
+
export { EvaluationLevelSchema, EvaluatorConfigSchema, EvaluatorNameSchema, LlmAsAJudgeConfigSchema, RatingScaleSchema, NumericalRatingSchema, CategoricalRatingSchema, } from './evaluator';
|
|
5
|
+
export type { OnlineEvaluationConfig } from './online-evaluation-config';
|
|
6
|
+
export { OnlineEvaluationConfigSchema, OnlineEvaluationConfigNameSchema } from './online-evaluation-config';
|
|
3
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,cAAc,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,wBAAwB,EAAE,MAAM,UAAU,CAAC;AAEpG,YAAY,EACV,eAAe,EACf,eAAe,EACf,iBAAiB,EACjB,WAAW,EACX,eAAe,EACf,iBAAiB,GAClB,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,qBAAqB,EACrB,qBAAqB,EACrB,mBAAmB,EACnB,uBAAuB,EACvB,iBAAiB,EACjB,qBAAqB,EACrB,uBAAuB,GACxB,MAAM,aAAa,CAAC;AAErB,YAAY,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACzE,OAAO,EAAE,4BAA4B,EAAE,gCAAgC,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.MemoryStrategyTypeSchema = exports.MemoryStrategyNameSchema = exports.MemoryStrategySchema = void 0;
|
|
3
|
+
exports.OnlineEvaluationConfigNameSchema = exports.OnlineEvaluationConfigSchema = exports.CategoricalRatingSchema = exports.NumericalRatingSchema = exports.RatingScaleSchema = exports.LlmAsAJudgeConfigSchema = exports.EvaluatorNameSchema = exports.EvaluatorConfigSchema = exports.EvaluationLevelSchema = exports.MemoryStrategyTypeSchema = exports.MemoryStrategyNameSchema = exports.MemoryStrategySchema = void 0;
|
|
4
4
|
var memory_1 = require("./memory");
|
|
5
5
|
Object.defineProperty(exports, "MemoryStrategySchema", { enumerable: true, get: function () { return memory_1.MemoryStrategySchema; } });
|
|
6
6
|
Object.defineProperty(exports, "MemoryStrategyNameSchema", { enumerable: true, get: function () { return memory_1.MemoryStrategyNameSchema; } });
|
|
7
7
|
Object.defineProperty(exports, "MemoryStrategyTypeSchema", { enumerable: true, get: function () { return memory_1.MemoryStrategyTypeSchema; } });
|
|
8
|
+
var evaluator_1 = require("./evaluator");
|
|
9
|
+
Object.defineProperty(exports, "EvaluationLevelSchema", { enumerable: true, get: function () { return evaluator_1.EvaluationLevelSchema; } });
|
|
10
|
+
Object.defineProperty(exports, "EvaluatorConfigSchema", { enumerable: true, get: function () { return evaluator_1.EvaluatorConfigSchema; } });
|
|
11
|
+
Object.defineProperty(exports, "EvaluatorNameSchema", { enumerable: true, get: function () { return evaluator_1.EvaluatorNameSchema; } });
|
|
12
|
+
Object.defineProperty(exports, "LlmAsAJudgeConfigSchema", { enumerable: true, get: function () { return evaluator_1.LlmAsAJudgeConfigSchema; } });
|
|
13
|
+
Object.defineProperty(exports, "RatingScaleSchema", { enumerable: true, get: function () { return evaluator_1.RatingScaleSchema; } });
|
|
14
|
+
Object.defineProperty(exports, "NumericalRatingSchema", { enumerable: true, get: function () { return evaluator_1.NumericalRatingSchema; } });
|
|
15
|
+
Object.defineProperty(exports, "CategoricalRatingSchema", { enumerable: true, get: function () { return evaluator_1.CategoricalRatingSchema; } });
|
|
16
|
+
var online_evaluation_config_1 = require("./online-evaluation-config");
|
|
17
|
+
Object.defineProperty(exports, "OnlineEvaluationConfigSchema", { enumerable: true, get: function () { return online_evaluation_config_1.OnlineEvaluationConfigSchema; } });
|
|
18
|
+
Object.defineProperty(exports, "OnlineEvaluationConfigNameSchema", { enumerable: true, get: function () { return online_evaluation_config_1.OnlineEvaluationConfigNameSchema; } });
|
|
8
19
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/index.ts"],"names":[],"mappings":";;;AACA,mCAAoG;AAA3F,8GAAA,oBAAoB,OAAA;AAAE,kHAAA,wBAAwB,OAAA;AAAE,kHAAA,wBAAwB,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/index.ts"],"names":[],"mappings":";;;AACA,mCAAoG;AAA3F,8GAAA,oBAAoB,OAAA;AAAE,kHAAA,wBAAwB,OAAA;AAAE,kHAAA,wBAAwB,OAAA;AAUjF,yCAQqB;AAPnB,kHAAA,qBAAqB,OAAA;AACrB,kHAAA,qBAAqB,OAAA;AACrB,gHAAA,mBAAmB,OAAA;AACnB,oHAAA,uBAAuB,OAAA;AACvB,8GAAA,iBAAiB,OAAA;AACjB,kHAAA,qBAAqB,OAAA;AACrB,oHAAA,uBAAuB,OAAA;AAIzB,uEAA4G;AAAnG,wIAAA,4BAA4B,OAAA;AAAE,4IAAA,gCAAgC,OAAA"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const OnlineEvaluationConfigNameSchema: z.ZodString;
|
|
3
|
+
export declare const OnlineEvaluationConfigSchema: z.ZodObject<{
|
|
4
|
+
type: z.ZodLiteral<"OnlineEvaluationConfig">;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
agent: z.ZodString;
|
|
7
|
+
evaluators: z.ZodArray<z.ZodString>;
|
|
8
|
+
samplingRate: z.ZodNumber;
|
|
9
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10
|
+
enableOnCreate: z.ZodOptional<z.ZodBoolean>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type OnlineEvaluationConfig = z.infer<typeof OnlineEvaluationConfigSchema>;
|
|
13
|
+
//# sourceMappingURL=online-evaluation-config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"online-evaluation-config.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/online-evaluation-config.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,gCAAgC,aAO1C,CAAC;AAEJ,eAAO,MAAM,4BAA4B;;;;;;;;iBAavC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OnlineEvaluationConfigSchema = exports.OnlineEvaluationConfigNameSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
// ============================================================================
|
|
6
|
+
// Online Evaluation Config Types
|
|
7
|
+
// ============================================================================
|
|
8
|
+
exports.OnlineEvaluationConfigNameSchema = zod_1.z
|
|
9
|
+
.string()
|
|
10
|
+
.min(1, 'Name is required')
|
|
11
|
+
.max(48)
|
|
12
|
+
.regex(/^[a-zA-Z][a-zA-Z0-9_]{0,47}$/, 'Must begin with a letter and contain only alphanumeric characters and underscores (max 48 chars)');
|
|
13
|
+
exports.OnlineEvaluationConfigSchema = zod_1.z.object({
|
|
14
|
+
type: zod_1.z.literal('OnlineEvaluationConfig'),
|
|
15
|
+
name: exports.OnlineEvaluationConfigNameSchema,
|
|
16
|
+
/** Agent name to monitor (must match a project agent) */
|
|
17
|
+
agent: zod_1.z.string().min(1, 'Agent name is required'),
|
|
18
|
+
/** Evaluator names (custom), Builtin.* IDs, or evaluator ARNs */
|
|
19
|
+
evaluators: zod_1.z.array(zod_1.z.string().min(1)).min(1, 'At least one evaluator is required'),
|
|
20
|
+
/** Sampling rate as a percentage (0.01 to 100) */
|
|
21
|
+
samplingRate: zod_1.z.number().min(0.01).max(100),
|
|
22
|
+
/** Optional description */
|
|
23
|
+
description: zod_1.z.string().max(200).optional(),
|
|
24
|
+
/** Whether to enable evaluation immediately after deploy */
|
|
25
|
+
enableOnCreate: zod_1.z.boolean().optional(),
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=online-evaluation-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"online-evaluation-config.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/online-evaluation-config.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AAExB,+EAA+E;AAC/E,iCAAiC;AACjC,+EAA+E;AAElE,QAAA,gCAAgC,GAAG,OAAC;KAC9C,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,kBAAkB,CAAC;KAC1B,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,8BAA8B,EAC9B,kGAAkG,CACnG,CAAC;AAES,QAAA,4BAA4B,GAAG,OAAC,CAAC,MAAM,CAAC;IACnD,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,wBAAwB,CAAC;IACzC,IAAI,EAAE,wCAAgC;IACtC,yDAAyD;IACzD,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,wBAAwB,CAAC;IAClD,iEAAiE;IACjE,UAAU,EAAE,OAAC,CAAC,KAAK,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,oCAAoC,CAAC;IACnF,kDAAkD;IAClD,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;IAC3C,2BAA2B;IAC3B,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC3C,4DAA4D;IAC5D,cAAc,EAAE,OAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws/agentcore-cdk",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.9",
|
|
4
4
|
"description": "L3 CDK constructs for Amazon Bedrock AgentCore",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": {
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"zod": "^4.3.5"
|
|
56
56
|
},
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"aws-cdk-lib": "^2.
|
|
58
|
+
"aws-cdk-lib": "^2.243.0",
|
|
59
59
|
"constructs": "^10.0.0"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"@types/node": "^25.0.3",
|
|
66
66
|
"@typescript-eslint/eslint-plugin": "^8.50.0",
|
|
67
67
|
"@typescript-eslint/parser": "^8.50.0",
|
|
68
|
-
"aws-cdk-lib": "^2.
|
|
68
|
+
"aws-cdk-lib": "^2.243.0",
|
|
69
69
|
"constructs": "^10.4.4",
|
|
70
70
|
"eslint": "^10.0.0",
|
|
71
71
|
"eslint-config-prettier": "^10.1.8",
|
|
@@ -79,11 +79,11 @@
|
|
|
79
79
|
},
|
|
80
80
|
"overridesComments": {
|
|
81
81
|
"minimatch": "GHSA-7r86-cg39-jmmj, GHSA-23c5-xmqv-rm74: minimatch 10.0.0-10.2.2 and <3.1.3 have ReDoS vulnerabilities. Transitive via eslint, typescript-eslint, prettier-plugin-sort-imports, aws-cdk-lib. Remove once upstream packages update.",
|
|
82
|
-
"fast-xml-parser": "GHSA-
|
|
82
|
+
"fast-xml-parser": "GHSA-8gc5-j5rx-235r: fast-xml-parser <=5.5.5 has numeric entity expansion bypass (CVE-2026-33036). Transitive via @aws-sdk/xml-builder. Remove once @aws-sdk updates."
|
|
83
83
|
},
|
|
84
84
|
"overrides": {
|
|
85
85
|
"minimatch": "10.2.4",
|
|
86
|
-
"fast-xml-parser": "5.
|
|
86
|
+
"fast-xml-parser": "5.5.6"
|
|
87
87
|
},
|
|
88
88
|
"engines": {
|
|
89
89
|
"node": ">=20"
|