@aws/agentcore-cdk 0.1.0-alpha.3 → 0.1.0-alpha.32
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 +20 -12
- 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/bundling/container/ContainerSourceAssetFromPath.d.ts +17 -0
- package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.d.ts.map +1 -0
- package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.js +20 -0
- package/dist/cdk/constructs/bundling/container/ContainerSourceAssetFromPath.js.map +1 -0
- package/dist/cdk/constructs/bundling/container/index.d.ts +1 -0
- package/dist/cdk/constructs/bundling/container/index.d.ts.map +1 -1
- package/dist/cdk/constructs/bundling/container/index.js +3 -1
- package/dist/cdk/constructs/bundling/container/index.js.map +1 -1
- package/dist/cdk/constructs/bundling/index.d.ts +2 -0
- package/dist/cdk/constructs/bundling/index.d.ts.map +1 -1
- package/dist/cdk/constructs/bundling/index.js +6 -2
- package/dist/cdk/constructs/bundling/index.js.map +1 -1
- package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.d.ts +7 -0
- package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.d.ts.map +1 -0
- package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.js +30 -0
- package/dist/cdk/constructs/bundling/zip/NodeBundledCodeZipAsset.js.map +1 -0
- package/dist/cdk/constructs/bundling/zip/index.d.ts +1 -0
- package/dist/cdk/constructs/bundling/zip/index.d.ts.map +1 -1
- package/dist/cdk/constructs/bundling/zip/index.js +3 -1
- package/dist/cdk/constructs/bundling/zip/index.js.map +1 -1
- package/dist/cdk/constructs/components/base-props.d.ts +2 -0
- package/dist/cdk/constructs/components/base-props.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerBuildProject.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerBuildProject.js +5 -1
- package/dist/cdk/constructs/components/container/ContainerBuildProject.js.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.d.ts +4 -2
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.js +2 -2
- package/dist/cdk/constructs/components/container/ContainerImageBuilder.js.map +1 -1
- package/dist/cdk/constructs/components/container/container-build-handler.d.ts +1 -1
- package/dist/cdk/constructs/components/container/container-build-handler.d.ts.map +1 -1
- package/dist/cdk/constructs/components/container/container-build-handler.js +2 -3
- package/dist/cdk/constructs/components/container/container-build-handler.js.map +1 -1
- package/dist/cdk/constructs/components/mcp/Gateway.d.ts +60 -0
- package/dist/cdk/constructs/components/mcp/Gateway.d.ts.map +1 -0
- package/dist/cdk/constructs/components/mcp/Gateway.js +524 -0
- package/dist/cdk/constructs/components/mcp/Gateway.js.map +1 -0
- package/dist/cdk/constructs/components/mcp/McpLambdaCompute.js +2 -2
- package/dist/cdk/constructs/components/mcp/McpLambdaCompute.js.map +1 -1
- package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.js +1 -1
- package/dist/cdk/constructs/components/mcp/McpRuntimeCompute.js.map +1 -1
- package/dist/cdk/constructs/components/mcp/index.d.ts +1 -1
- package/dist/cdk/constructs/components/mcp/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/mcp/index.js +3 -3
- package/dist/cdk/constructs/components/mcp/index.js.map +1 -1
- package/dist/cdk/constructs/components/mcp/mcp-utils.d.ts +1 -1
- package/dist/cdk/constructs/components/mcp/mcp-utils.d.ts.map +1 -1
- package/dist/cdk/constructs/components/mcp/mcp-utils.js +2 -2
- package/dist/cdk/constructs/components/mcp/mcp-utils.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.d.ts +51 -0
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.js +54 -0
- package/dist/cdk/constructs/components/primitives/BasePrimitiveConstruct.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.d.ts +36 -0
- package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.js +88 -0
- package/dist/cdk/constructs/components/primitives/dataset/AgentCoreDataset.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/dataset/index.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/dataset/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/dataset/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/dataset/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.d.ts +47 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/evaluator/AgentCoreEvaluator.js +207 -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 +176 -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/harness/AgentCoreHarnessRole.d.ts +40 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.js +281 -0
- package/dist/cdk/constructs/components/primitives/harness/AgentCoreHarnessRole.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.js +182 -0
- package/dist/cdk/constructs/components/primitives/harness/__tests__/AgentCoreHarnessRole.test.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/index.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/harness/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/harness/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/harness/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/index.d.ts +6 -0
- package/dist/cdk/constructs/components/primitives/index.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/index.js +13 -1
- package/dist/cdk/constructs/components/primitives/index.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.d.ts +15 -4
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.js +88 -33
- package/dist/cdk/constructs/components/primitives/memory/AgentCoreMemory.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/memory/__tests__/AgentCoreMemory.test.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/memory/__tests__/AgentCoreMemory.test.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/memory/__tests__/AgentCoreMemory.test.js +146 -0
- package/dist/cdk/constructs/components/primitives/memory/__tests__/AgentCoreMemory.test.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.d.ts +28 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.js +57 -0
- package/dist/cdk/constructs/components/primitives/policy/AgentCorePolicyEngine.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/policy/index.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/policy/index.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/policy/index.js +6 -0
- package/dist/cdk/constructs/components/primitives/policy/index.js.map +1 -0
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.d.ts +14 -1
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.d.ts.map +1 -1
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js +187 -82
- package/dist/cdk/constructs/components/primitives/runtime/AgentCoreRuntime.js.map +1 -1
- package/dist/cdk/constructs/components/primitives/runtime/__tests__/AgentCoreRuntime.test.d.ts +2 -0
- package/dist/cdk/constructs/components/primitives/runtime/__tests__/AgentCoreRuntime.test.d.ts.map +1 -0
- package/dist/cdk/constructs/components/primitives/runtime/__tests__/AgentCoreRuntime.test.js +113 -0
- package/dist/cdk/constructs/components/primitives/runtime/__tests__/AgentCoreRuntime.test.js.map +1 -0
- package/dist/cdk/constructs/components/shared/__tests__/build-authorizer-config.test.d.ts +2 -0
- package/dist/cdk/constructs/components/shared/__tests__/build-authorizer-config.test.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/__tests__/build-authorizer-config.test.js +99 -0
- package/dist/cdk/constructs/components/shared/__tests__/build-authorizer-config.test.js.map +1 -0
- package/dist/cdk/constructs/components/shared/build-authorizer-config.d.ts +28 -0
- package/dist/cdk/constructs/components/shared/build-authorizer-config.d.ts.map +1 -0
- package/dist/cdk/constructs/components/shared/build-authorizer-config.js +39 -0
- package/dist/cdk/constructs/components/shared/build-authorizer-config.js.map +1 -0
- package/dist/cdk/constructs/index.d.ts +7 -3
- package/dist/cdk/constructs/index.d.ts.map +1 -1
- package/dist/cdk/constructs/index.js +15 -1
- package/dist/cdk/constructs/index.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts +51 -1
- package/dist/cdk/constructs/l3/AgentCoreApplication.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreApplication.js +266 -9
- package/dist/cdk/constructs/l3/AgentCoreApplication.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.d.ts +14 -0
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.d.ts.map +1 -0
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.js +59 -0
- package/dist/cdk/constructs/l3/AgentCoreHarnessEnvironment.js.map +1 -0
- package/dist/cdk/constructs/l3/AgentCoreMcp.d.ts +21 -3
- package/dist/cdk/constructs/l3/AgentCoreMcp.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/AgentCoreMcp.js +107 -15
- package/dist/cdk/constructs/l3/AgentCoreMcp.js.map +1 -1
- package/dist/cdk/constructs/l3/AgentEnvironment.d.ts +3 -0
- package/dist/cdk/constructs/l3/AgentEnvironment.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/AgentEnvironment.js +33 -2
- package/dist/cdk/constructs/l3/AgentEnvironment.js.map +1 -1
- package/dist/cdk/constructs/l3/index.d.ts +1 -0
- package/dist/cdk/constructs/l3/index.d.ts.map +1 -1
- package/dist/cdk/constructs/l3/index.js +3 -1
- package/dist/cdk/constructs/l3/index.js.map +1 -1
- package/dist/cdk/index.d.ts +1 -1
- package/dist/cdk/index.d.ts.map +1 -1
- package/dist/cdk/index.js +10 -1
- package/dist/cdk/index.js.map +1 -1
- package/dist/cdk/utils/__tests__/tags.test.d.ts +2 -0
- package/dist/cdk/utils/__tests__/tags.test.d.ts.map +1 -0
- package/dist/cdk/utils/__tests__/tags.test.js +57 -0
- package/dist/cdk/utils/__tests__/tags.test.js.map +1 -0
- package/dist/cdk/utils/tags.d.ts +11 -0
- package/dist/cdk/utils/tags.d.ts.map +1 -0
- package/dist/cdk/utils/tags.js +22 -0
- package/dist/cdk/utils/tags.js.map +1 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +10 -1
- package/dist/index.js.map +1 -1
- package/dist/lib/constants.d.ts +1 -0
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +2 -1
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/errors/config.js +1 -1
- package/dist/lib/errors/config.js.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +2 -1
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/packaging/helpers.d.ts +4 -0
- package/dist/lib/packaging/helpers.d.ts.map +1 -1
- package/dist/lib/packaging/helpers.js +53 -16
- package/dist/lib/packaging/helpers.js.map +1 -1
- package/dist/lib/packaging/index.d.ts +2 -6
- package/dist/lib/packaging/index.d.ts.map +1 -1
- package/dist/lib/packaging/index.js +11 -10
- package/dist/lib/packaging/index.js.map +1 -1
- package/dist/lib/packaging/node.d.ts +6 -0
- package/dist/lib/packaging/node.d.ts.map +1 -0
- package/dist/lib/packaging/node.js +97 -0
- package/dist/lib/packaging/node.js.map +1 -0
- package/dist/lib/packaging/types/packaging.d.ts +2 -0
- package/dist/lib/packaging/types/packaging.d.ts.map +1 -1
- package/dist/lib/packaging/uv.d.ts.map +1 -1
- package/dist/lib/packaging/uv.js +1 -1
- package/dist/lib/packaging/uv.js.map +1 -1
- package/dist/lib/schemas/io/config-io.d.ts +6 -3
- package/dist/lib/schemas/io/config-io.d.ts.map +1 -1
- package/dist/lib/schemas/io/config-io.js +19 -11
- package/dist/lib/schemas/io/config-io.js.map +1 -1
- package/dist/schema/constants.d.ts +24 -1
- package/dist/schema/constants.d.ts.map +1 -1
- package/dist/schema/constants.js +41 -3
- package/dist/schema/constants.js.map +1 -1
- package/dist/schema/schemas/agent-env.d.ts +123 -5
- package/dist/schema/schemas/agent-env.d.ts.map +1 -1
- package/dist/schema/schemas/agent-env.js +183 -9
- package/dist/schema/schemas/agent-env.js.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +718 -16
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +188 -8
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/auth.d.ts +140 -0
- package/dist/schema/schemas/auth.d.ts.map +1 -0
- package/dist/schema/schemas/auth.js +114 -0
- package/dist/schema/schemas/auth.js.map +1 -0
- package/dist/schema/schemas/aws-targets.d.ts +21 -0
- package/dist/schema/schemas/aws-targets.d.ts.map +1 -1
- package/dist/schema/schemas/aws-targets.js +8 -0
- package/dist/schema/schemas/aws-targets.js.map +1 -1
- package/dist/schema/schemas/deployed-state.d.ts +245 -16
- package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
- package/dist/schema/schemas/deployed-state.js +60 -4
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/index.d.ts +1 -0
- package/dist/schema/schemas/index.d.ts.map +1 -1
- package/dist/schema/schemas/index.js +1 -0
- package/dist/schema/schemas/index.js.map +1 -1
- package/dist/schema/schemas/mcp.d.ts +441 -46
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/dist/schema/schemas/mcp.js +326 -38
- package/dist/schema/schemas/mcp.js.map +1 -1
- package/dist/schema/schemas/primitives/config-bundle.d.ts +30 -0
- package/dist/schema/schemas/primitives/config-bundle.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/config-bundle.js +36 -0
- package/dist/schema/schemas/primitives/config-bundle.js.map +1 -0
- package/dist/schema/schemas/primitives/dataset.d.ts +53 -0
- package/dist/schema/schemas/primitives/dataset.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/dataset.js +65 -0
- package/dist/schema/schemas/primitives/dataset.js.map +1 -0
- package/dist/schema/schemas/primitives/evaluator.d.ts +100 -0
- package/dist/schema/schemas/primitives/evaluator.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/evaluator.js +73 -0
- package/dist/schema/schemas/primitives/evaluator.js.map +1 -0
- package/dist/schema/schemas/primitives/harness.d.ts +256 -0
- package/dist/schema/schemas/primitives/harness.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/harness.js +206 -0
- package/dist/schema/schemas/primitives/harness.js.map +1 -0
- package/dist/schema/schemas/primitives/index.d.ts +12 -2
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +33 -1
- package/dist/schema/schemas/primitives/index.js.map +1 -1
- package/dist/schema/schemas/primitives/memory.d.ts +31 -0
- package/dist/schema/schemas/primitives/memory.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/memory.js +33 -3
- package/dist/schema/schemas/primitives/memory.js.map +1 -1
- package/dist/schema/schemas/primitives/online-evaluation-config.d.ts +15 -0
- package/dist/schema/schemas/primitives/online-evaluation-config.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/online-evaluation-config.js +32 -0
- package/dist/schema/schemas/primitives/online-evaluation-config.js.map +1 -0
- package/dist/schema/schemas/primitives/policy.d.ts +49 -0
- package/dist/schema/schemas/primitives/policy.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/policy.js +62 -0
- package/dist/schema/schemas/primitives/policy.js.map +1 -0
- package/dist/schema/schemas/primitives/tags.d.ts +6 -0
- package/dist/schema/schemas/primitives/tags.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/tags.js +20 -0
- package/dist/schema/schemas/primitives/tags.js.map +1 -0
- package/package.json +22 -5
- package/dist/cdk/constructs/components/mcp/McpGateway.d.ts +0 -37
- package/dist/cdk/constructs/components/mcp/McpGateway.d.ts.map +0 -1
- package/dist/cdk/constructs/components/mcp/McpGateway.js +0 -154
- package/dist/cdk/constructs/components/mcp/McpGateway.js.map +0 -1
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.DatasetSchema = exports.DatasetConfigSchema = exports.DatasetManagedConfigSchema = exports.DatasetSchemaTypeSchema = exports.DatasetNameSchema = void 0;
|
|
4
|
+
const tags_1 = require("./tags");
|
|
5
|
+
const zod_1 = require("zod");
|
|
6
|
+
// ============================================================================
|
|
7
|
+
// Dataset Types
|
|
8
|
+
// ============================================================================
|
|
9
|
+
/**
|
|
10
|
+
* Dataset name validation.
|
|
11
|
+
* Pattern: ^[a-zA-Z][a-zA-Z0-9_]{0,47}$
|
|
12
|
+
*/
|
|
13
|
+
exports.DatasetNameSchema = zod_1.z
|
|
14
|
+
.string()
|
|
15
|
+
.min(1, 'Dataset name is required')
|
|
16
|
+
.max(48)
|
|
17
|
+
.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)');
|
|
18
|
+
/**
|
|
19
|
+
* Versioned schema type governing the structure of dataset examples.
|
|
20
|
+
* Immutable after creation (createOnly CFN property).
|
|
21
|
+
*/
|
|
22
|
+
exports.DatasetSchemaTypeSchema = zod_1.z.enum([
|
|
23
|
+
'AGENTCORE_EVALUATION_PREDEFINED_V1',
|
|
24
|
+
'AGENTCORE_EVALUATION_SIMULATED_V1',
|
|
25
|
+
]);
|
|
26
|
+
/**
|
|
27
|
+
* Managed dataset config — CLI manages the local file and syncs to service.
|
|
28
|
+
*/
|
|
29
|
+
exports.DatasetManagedConfigSchema = zod_1.z.object({
|
|
30
|
+
location: zod_1.z.string().min(1),
|
|
31
|
+
});
|
|
32
|
+
/**
|
|
33
|
+
* Dataset configuration.
|
|
34
|
+
*/
|
|
35
|
+
exports.DatasetConfigSchema = zod_1.z.object({
|
|
36
|
+
managed: exports.DatasetManagedConfigSchema,
|
|
37
|
+
});
|
|
38
|
+
/**
|
|
39
|
+
* Dataset specification in agentcore.json.
|
|
40
|
+
*
|
|
41
|
+
* Content management (push/pull/publish) is handled by the CLI via
|
|
42
|
+
* `agentcore dataset push`. The `config.managed.location` field points
|
|
43
|
+
* to the local JSONL file — it is NOT passed to CloudFormation.
|
|
44
|
+
*/
|
|
45
|
+
exports.DatasetSchema = zod_1.z.object({
|
|
46
|
+
/** Dataset name */
|
|
47
|
+
name: exports.DatasetNameSchema,
|
|
48
|
+
/**
|
|
49
|
+
* Versioned schema type governing dataset structure.
|
|
50
|
+
* Immutable after creation.
|
|
51
|
+
*/
|
|
52
|
+
schemaType: exports.DatasetSchemaTypeSchema,
|
|
53
|
+
/** Optional description (max 200 characters) */
|
|
54
|
+
description: zod_1.z.string().max(200).optional(),
|
|
55
|
+
/** Dataset content management config */
|
|
56
|
+
config: exports.DatasetConfigSchema,
|
|
57
|
+
/** Optional KMS key ARN for SSE-KMS encryption. Immutable after creation. */
|
|
58
|
+
kmsKeyArn: zod_1.z
|
|
59
|
+
.string()
|
|
60
|
+
.regex(/^arn:aws(-[a-z]+)*:kms:[a-zA-Z0-9-]*:[0-9]{12}:key\/[a-zA-Z0-9-]{36}$/, 'Must be a valid KMS key ARN')
|
|
61
|
+
.optional(),
|
|
62
|
+
/** Optional resource tags */
|
|
63
|
+
tags: tags_1.TagsSchema.optional(),
|
|
64
|
+
});
|
|
65
|
+
//# sourceMappingURL=dataset.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dataset.js","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/dataset.ts"],"names":[],"mappings":";;;AAAA,iCAAoC;AACpC,6BAAwB;AAExB,+EAA+E;AAC/E,gBAAgB;AAChB,+EAA+E;AAE/E;;;GAGG;AACU,QAAA,iBAAiB,GAAG,OAAC;KAC/B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,EAAE,0BAA0B,CAAC;KAClC,GAAG,CAAC,EAAE,CAAC;KACP,KAAK,CACJ,8BAA8B,EAC9B,kGAAkG,CACnG,CAAC;AAEJ;;;GAGG;AACU,QAAA,uBAAuB,GAAG,OAAC,CAAC,IAAI,CAAC;IAC5C,oCAAoC;IACpC,mCAAmC;CACpC,CAAC,CAAC;AAIH;;GAEG;AACU,QAAA,0BAA0B,GAAG,OAAC,CAAC,MAAM,CAAC;IACjD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;CAC5B,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,mBAAmB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC1C,OAAO,EAAE,kCAA0B;CACpC,CAAC,CAAC;AAEH;;;;;;GAMG;AACU,QAAA,aAAa,GAAG,OAAC,CAAC,MAAM,CAAC;IACpC,mBAAmB;IACnB,IAAI,EAAE,yBAAiB;IACvB;;;OAGG;IACH,UAAU,EAAE,+BAAuB;IACnC,gDAAgD;IAChD,WAAW,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE;IAC3C,wCAAwC;IACxC,MAAM,EAAE,2BAAmB;IAC3B,6EAA6E;IAC7E,SAAS,EAAE,OAAC;SACT,MAAM,EAAE;SACR,KAAK,CAAC,uEAAuE,EAAE,6BAA6B,CAAC;SAC7G,QAAQ,EAAE;IACb,6BAA6B;IAC7B,IAAI,EAAE,iBAAU,CAAC,QAAQ,EAAE;CAC5B,CAAC,CAAC"}
|
|
@@ -0,0 +1,100 @@
|
|
|
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 ManagedCodeBasedConfigSchema: z.ZodObject<{
|
|
49
|
+
codeLocation: z.ZodString;
|
|
50
|
+
entrypoint: z.ZodDefault<z.ZodString>;
|
|
51
|
+
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
52
|
+
additionalPolicies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export type ManagedCodeBasedConfig = z.infer<typeof ManagedCodeBasedConfigSchema>;
|
|
55
|
+
export declare const ExternalCodeBasedConfigSchema: z.ZodObject<{
|
|
56
|
+
lambdaArn: z.ZodString;
|
|
57
|
+
}, z.core.$strip>;
|
|
58
|
+
export type ExternalCodeBasedConfig = z.infer<typeof ExternalCodeBasedConfigSchema>;
|
|
59
|
+
export declare const CodeBasedConfigSchema: z.ZodObject<{
|
|
60
|
+
managed: z.ZodOptional<z.ZodObject<{
|
|
61
|
+
codeLocation: z.ZodString;
|
|
62
|
+
entrypoint: z.ZodDefault<z.ZodString>;
|
|
63
|
+
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
64
|
+
additionalPolicies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
|
+
}, z.core.$strip>>;
|
|
66
|
+
external: z.ZodOptional<z.ZodObject<{
|
|
67
|
+
lambdaArn: z.ZodString;
|
|
68
|
+
}, z.core.$strip>>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
export type CodeBasedConfig = z.infer<typeof CodeBasedConfigSchema>;
|
|
71
|
+
export declare const EvaluatorConfigSchema: z.ZodObject<{
|
|
72
|
+
llmAsAJudge: z.ZodOptional<z.ZodObject<{
|
|
73
|
+
model: z.ZodString;
|
|
74
|
+
instructions: z.ZodString;
|
|
75
|
+
ratingScale: z.ZodObject<{
|
|
76
|
+
numerical: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
77
|
+
value: z.ZodNumber;
|
|
78
|
+
label: z.ZodString;
|
|
79
|
+
definition: z.ZodString;
|
|
80
|
+
}, z.core.$strip>>>;
|
|
81
|
+
categorical: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
82
|
+
label: z.ZodString;
|
|
83
|
+
definition: z.ZodString;
|
|
84
|
+
}, z.core.$strip>>>;
|
|
85
|
+
}, z.core.$strip>;
|
|
86
|
+
}, z.core.$strip>>;
|
|
87
|
+
codeBased: z.ZodOptional<z.ZodObject<{
|
|
88
|
+
managed: z.ZodOptional<z.ZodObject<{
|
|
89
|
+
codeLocation: z.ZodString;
|
|
90
|
+
entrypoint: z.ZodDefault<z.ZodString>;
|
|
91
|
+
timeoutSeconds: z.ZodDefault<z.ZodNumber>;
|
|
92
|
+
additionalPolicies: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
93
|
+
}, z.core.$strip>>;
|
|
94
|
+
external: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
lambdaArn: z.ZodString;
|
|
96
|
+
}, z.core.$strip>>;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
}, z.core.$strip>;
|
|
99
|
+
export type EvaluatorConfig = z.infer<typeof EvaluatorConfigSchema>;
|
|
100
|
+
//# 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,4BAA4B;;;;;iBAKvC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAElF,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AAEH,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AAEpF,eAAO,MAAM,qBAAqB;;;;;;;;;;iBAO9B,CAAC;AAEL,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAMpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO9B,CAAC;AAEL,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EvaluatorConfigSchema = exports.CodeBasedConfigSchema = exports.ExternalCodeBasedConfigSchema = exports.ManagedCodeBasedConfigSchema = 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
|
+
// Code-Based Evaluator Config
|
|
44
|
+
// ============================================================================
|
|
45
|
+
exports.ManagedCodeBasedConfigSchema = zod_1.z.object({
|
|
46
|
+
codeLocation: zod_1.z.string().min(1),
|
|
47
|
+
entrypoint: zod_1.z.string().min(1).default('lambda_function.handler'),
|
|
48
|
+
timeoutSeconds: zod_1.z.number().int().min(1).max(300).default(60),
|
|
49
|
+
additionalPolicies: zod_1.z.array(zod_1.z.string().min(1)).optional(),
|
|
50
|
+
});
|
|
51
|
+
exports.ExternalCodeBasedConfigSchema = zod_1.z.object({
|
|
52
|
+
lambdaArn: zod_1.z.string().min(1),
|
|
53
|
+
});
|
|
54
|
+
exports.CodeBasedConfigSchema = zod_1.z
|
|
55
|
+
.object({
|
|
56
|
+
managed: exports.ManagedCodeBasedConfigSchema.optional(),
|
|
57
|
+
external: exports.ExternalCodeBasedConfigSchema.optional(),
|
|
58
|
+
})
|
|
59
|
+
.refine(config => Boolean(config.managed) !== Boolean(config.external), {
|
|
60
|
+
message: 'Code-based config must have either managed or external, not both',
|
|
61
|
+
});
|
|
62
|
+
// ============================================================================
|
|
63
|
+
// Evaluator Config
|
|
64
|
+
// ============================================================================
|
|
65
|
+
exports.EvaluatorConfigSchema = zod_1.z
|
|
66
|
+
.object({
|
|
67
|
+
llmAsAJudge: exports.LlmAsAJudgeConfigSchema.optional(),
|
|
68
|
+
codeBased: exports.CodeBasedConfigSchema.optional(),
|
|
69
|
+
})
|
|
70
|
+
.refine(config => Boolean(config.llmAsAJudge) !== Boolean(config.codeBased), {
|
|
71
|
+
message: 'Config must have either llmAsAJudge or codeBased, not both',
|
|
72
|
+
});
|
|
73
|
+
//# 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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AAC,CAAC;AAIL,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAElE,QAAA,qBAAqB,GAAG,OAAC;KACnC,MAAM,CAAC;IACN,WAAW,EAAE,+BAAuB,CAAC,QAAQ,EAAE;IAC/C,SAAS,EAAE,6BAAqB,CAAC,QAAQ,EAAE;CAC5C,CAAC;KACD,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE;IAC3E,OAAO,EAAE,4DAA4D;CACtE,CAAC,CAAC"}
|
|
@@ -0,0 +1,256 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const HarnessNameSchema: z.ZodString;
|
|
3
|
+
export declare const HarnessModelProviderSchema: z.ZodEnum<{
|
|
4
|
+
bedrock: "bedrock";
|
|
5
|
+
open_ai: "open_ai";
|
|
6
|
+
gemini: "gemini";
|
|
7
|
+
}>;
|
|
8
|
+
export type HarnessModelProvider = z.infer<typeof HarnessModelProviderSchema>;
|
|
9
|
+
export declare const HarnessModelSchema: z.ZodObject<{
|
|
10
|
+
provider: z.ZodEnum<{
|
|
11
|
+
bedrock: "bedrock";
|
|
12
|
+
open_ai: "open_ai";
|
|
13
|
+
gemini: "gemini";
|
|
14
|
+
}>;
|
|
15
|
+
modelId: z.ZodString;
|
|
16
|
+
apiKeyArn: z.ZodOptional<z.ZodString>;
|
|
17
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
18
|
+
topP: z.ZodOptional<z.ZodNumber>;
|
|
19
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
20
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
21
|
+
}, z.core.$strip>;
|
|
22
|
+
export type HarnessModel = z.infer<typeof HarnessModelSchema>;
|
|
23
|
+
export declare const HarnessToolTypeSchema: z.ZodEnum<{
|
|
24
|
+
remote_mcp: "remote_mcp";
|
|
25
|
+
agentcore_browser: "agentcore_browser";
|
|
26
|
+
agentcore_gateway: "agentcore_gateway";
|
|
27
|
+
inline_function: "inline_function";
|
|
28
|
+
agentcore_code_interpreter: "agentcore_code_interpreter";
|
|
29
|
+
}>;
|
|
30
|
+
export type HarnessToolType = z.infer<typeof HarnessToolTypeSchema>;
|
|
31
|
+
export declare const HarnessToolNameSchema: z.ZodString;
|
|
32
|
+
export declare const RemoteMcpConfigSchema: z.ZodObject<{
|
|
33
|
+
remoteMcp: z.ZodObject<{
|
|
34
|
+
url: z.ZodString;
|
|
35
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
}, z.core.$strip>;
|
|
38
|
+
export declare const AgentCoreBrowserConfigSchema: z.ZodObject<{
|
|
39
|
+
agentCoreBrowser: z.ZodObject<{
|
|
40
|
+
browserArn: z.ZodOptional<z.ZodString>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export declare const AgentCoreCodeInterpreterConfigSchema: z.ZodObject<{
|
|
44
|
+
agentCoreCodeInterpreter: z.ZodObject<{
|
|
45
|
+
codeInterpreterArn: z.ZodOptional<z.ZodString>;
|
|
46
|
+
}, z.core.$strip>;
|
|
47
|
+
}, z.core.$strip>;
|
|
48
|
+
export declare const AgentCoreGatewayConfigSchema: z.ZodObject<{
|
|
49
|
+
agentCoreGateway: z.ZodObject<{
|
|
50
|
+
gatewayArn: z.ZodString;
|
|
51
|
+
credentialProviderName: z.ZodOptional<z.ZodString>;
|
|
52
|
+
}, z.core.$strip>;
|
|
53
|
+
}, z.core.$strip>;
|
|
54
|
+
export declare const InlineFunctionConfigSchema: z.ZodObject<{
|
|
55
|
+
inlineFunction: z.ZodObject<{
|
|
56
|
+
description: z.ZodString;
|
|
57
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
}, z.core.$strip>;
|
|
60
|
+
export declare const HarnessToolConfigSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
61
|
+
remoteMcp: z.ZodObject<{
|
|
62
|
+
url: z.ZodString;
|
|
63
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
64
|
+
}, z.core.$strip>;
|
|
65
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
66
|
+
agentCoreBrowser: z.ZodObject<{
|
|
67
|
+
browserArn: z.ZodOptional<z.ZodString>;
|
|
68
|
+
}, z.core.$strip>;
|
|
69
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
70
|
+
agentCoreCodeInterpreter: z.ZodObject<{
|
|
71
|
+
codeInterpreterArn: z.ZodOptional<z.ZodString>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
74
|
+
agentCoreGateway: z.ZodObject<{
|
|
75
|
+
gatewayArn: z.ZodString;
|
|
76
|
+
credentialProviderName: z.ZodOptional<z.ZodString>;
|
|
77
|
+
}, z.core.$strip>;
|
|
78
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
79
|
+
inlineFunction: z.ZodObject<{
|
|
80
|
+
description: z.ZodString;
|
|
81
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
}, z.core.$strip>]>;
|
|
84
|
+
export declare const HarnessToolSchema: z.ZodObject<{
|
|
85
|
+
type: z.ZodEnum<{
|
|
86
|
+
remote_mcp: "remote_mcp";
|
|
87
|
+
agentcore_browser: "agentcore_browser";
|
|
88
|
+
agentcore_gateway: "agentcore_gateway";
|
|
89
|
+
inline_function: "inline_function";
|
|
90
|
+
agentcore_code_interpreter: "agentcore_code_interpreter";
|
|
91
|
+
}>;
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
config: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
94
|
+
remoteMcp: z.ZodObject<{
|
|
95
|
+
url: z.ZodString;
|
|
96
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
97
|
+
}, z.core.$strip>;
|
|
98
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
+
agentCoreBrowser: z.ZodObject<{
|
|
100
|
+
browserArn: z.ZodOptional<z.ZodString>;
|
|
101
|
+
}, z.core.$strip>;
|
|
102
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
103
|
+
agentCoreCodeInterpreter: z.ZodObject<{
|
|
104
|
+
codeInterpreterArn: z.ZodOptional<z.ZodString>;
|
|
105
|
+
}, z.core.$strip>;
|
|
106
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
107
|
+
agentCoreGateway: z.ZodObject<{
|
|
108
|
+
gatewayArn: z.ZodString;
|
|
109
|
+
credentialProviderName: z.ZodOptional<z.ZodString>;
|
|
110
|
+
}, z.core.$strip>;
|
|
111
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
112
|
+
inlineFunction: z.ZodObject<{
|
|
113
|
+
description: z.ZodString;
|
|
114
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
115
|
+
}, z.core.$strip>;
|
|
116
|
+
}, z.core.$strip>]>>;
|
|
117
|
+
}, z.core.$strip>;
|
|
118
|
+
export type HarnessTool = z.infer<typeof HarnessToolSchema>;
|
|
119
|
+
export declare const HarnessMemoryRefSchema: z.ZodObject<{
|
|
120
|
+
name: z.ZodOptional<z.ZodString>;
|
|
121
|
+
arn: z.ZodOptional<z.ZodString>;
|
|
122
|
+
actorId: z.ZodOptional<z.ZodString>;
|
|
123
|
+
}, z.core.$strip>;
|
|
124
|
+
export type HarnessMemoryRef = z.infer<typeof HarnessMemoryRefSchema>;
|
|
125
|
+
export declare const HarnessTruncationStrategySchema: z.ZodEnum<{
|
|
126
|
+
sliding_window: "sliding_window";
|
|
127
|
+
summarization: "summarization";
|
|
128
|
+
}>;
|
|
129
|
+
export declare const SlidingWindowConfigSchema: z.ZodObject<{
|
|
130
|
+
slidingWindow: z.ZodObject<{
|
|
131
|
+
messagesCount: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
}, z.core.$strip>;
|
|
133
|
+
}, z.core.$strip>;
|
|
134
|
+
export declare const SummarizationConfigSchema: z.ZodObject<{
|
|
135
|
+
summarization: z.ZodObject<{
|
|
136
|
+
summaryRatio: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
preserveRecentMessages: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
summarizationSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
139
|
+
}, z.core.$strip>;
|
|
140
|
+
}, z.core.$strip>;
|
|
141
|
+
export declare const HarnessTruncationConfigSchema: z.ZodObject<{
|
|
142
|
+
strategy: z.ZodEnum<{
|
|
143
|
+
sliding_window: "sliding_window";
|
|
144
|
+
summarization: "summarization";
|
|
145
|
+
}>;
|
|
146
|
+
config: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
147
|
+
slidingWindow: z.ZodObject<{
|
|
148
|
+
messagesCount: z.ZodOptional<z.ZodNumber>;
|
|
149
|
+
}, z.core.$strip>;
|
|
150
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
151
|
+
summarization: z.ZodObject<{
|
|
152
|
+
summaryRatio: z.ZodOptional<z.ZodNumber>;
|
|
153
|
+
preserveRecentMessages: z.ZodOptional<z.ZodNumber>;
|
|
154
|
+
summarizationSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
155
|
+
}, z.core.$strip>;
|
|
156
|
+
}, z.core.$strip>]>>;
|
|
157
|
+
}, z.core.$strip>;
|
|
158
|
+
export type HarnessTruncationConfig = z.infer<typeof HarnessTruncationConfigSchema>;
|
|
159
|
+
export declare const AllowedToolSchema: z.ZodString;
|
|
160
|
+
export declare const HarnessSpecSchema: z.ZodObject<{
|
|
161
|
+
name: z.ZodString;
|
|
162
|
+
model: z.ZodObject<{
|
|
163
|
+
provider: z.ZodEnum<{
|
|
164
|
+
bedrock: "bedrock";
|
|
165
|
+
open_ai: "open_ai";
|
|
166
|
+
gemini: "gemini";
|
|
167
|
+
}>;
|
|
168
|
+
modelId: z.ZodString;
|
|
169
|
+
apiKeyArn: z.ZodOptional<z.ZodString>;
|
|
170
|
+
temperature: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
topP: z.ZodOptional<z.ZodNumber>;
|
|
172
|
+
topK: z.ZodOptional<z.ZodNumber>;
|
|
173
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
174
|
+
}, z.core.$strip>;
|
|
175
|
+
systemPrompt: z.ZodOptional<z.ZodString>;
|
|
176
|
+
tools: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
177
|
+
type: z.ZodEnum<{
|
|
178
|
+
remote_mcp: "remote_mcp";
|
|
179
|
+
agentcore_browser: "agentcore_browser";
|
|
180
|
+
agentcore_gateway: "agentcore_gateway";
|
|
181
|
+
inline_function: "inline_function";
|
|
182
|
+
agentcore_code_interpreter: "agentcore_code_interpreter";
|
|
183
|
+
}>;
|
|
184
|
+
name: z.ZodString;
|
|
185
|
+
config: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
186
|
+
remoteMcp: z.ZodObject<{
|
|
187
|
+
url: z.ZodString;
|
|
188
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
189
|
+
}, z.core.$strip>;
|
|
190
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
191
|
+
agentCoreBrowser: z.ZodObject<{
|
|
192
|
+
browserArn: z.ZodOptional<z.ZodString>;
|
|
193
|
+
}, z.core.$strip>;
|
|
194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
195
|
+
agentCoreCodeInterpreter: z.ZodObject<{
|
|
196
|
+
codeInterpreterArn: z.ZodOptional<z.ZodString>;
|
|
197
|
+
}, z.core.$strip>;
|
|
198
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
199
|
+
agentCoreGateway: z.ZodObject<{
|
|
200
|
+
gatewayArn: z.ZodString;
|
|
201
|
+
credentialProviderName: z.ZodOptional<z.ZodString>;
|
|
202
|
+
}, z.core.$strip>;
|
|
203
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
204
|
+
inlineFunction: z.ZodObject<{
|
|
205
|
+
description: z.ZodString;
|
|
206
|
+
inputSchema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
}, z.core.$strip>]>>;
|
|
209
|
+
}, z.core.$strip>>>;
|
|
210
|
+
skills: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
211
|
+
allowedTools: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
212
|
+
memory: z.ZodOptional<z.ZodObject<{
|
|
213
|
+
name: z.ZodOptional<z.ZodString>;
|
|
214
|
+
arn: z.ZodOptional<z.ZodString>;
|
|
215
|
+
actorId: z.ZodOptional<z.ZodString>;
|
|
216
|
+
}, z.core.$strip>>;
|
|
217
|
+
maxIterations: z.ZodOptional<z.ZodNumber>;
|
|
218
|
+
maxTokens: z.ZodOptional<z.ZodNumber>;
|
|
219
|
+
timeoutSeconds: z.ZodOptional<z.ZodNumber>;
|
|
220
|
+
truncation: z.ZodOptional<z.ZodObject<{
|
|
221
|
+
strategy: z.ZodEnum<{
|
|
222
|
+
sliding_window: "sliding_window";
|
|
223
|
+
summarization: "summarization";
|
|
224
|
+
}>;
|
|
225
|
+
config: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
226
|
+
slidingWindow: z.ZodObject<{
|
|
227
|
+
messagesCount: z.ZodOptional<z.ZodNumber>;
|
|
228
|
+
}, z.core.$strip>;
|
|
229
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
230
|
+
summarization: z.ZodObject<{
|
|
231
|
+
summaryRatio: z.ZodOptional<z.ZodNumber>;
|
|
232
|
+
preserveRecentMessages: z.ZodOptional<z.ZodNumber>;
|
|
233
|
+
summarizationSystemPrompt: z.ZodOptional<z.ZodString>;
|
|
234
|
+
}, z.core.$strip>;
|
|
235
|
+
}, z.core.$strip>]>>;
|
|
236
|
+
}, z.core.$strip>>;
|
|
237
|
+
containerUri: z.ZodOptional<z.ZodString>;
|
|
238
|
+
dockerfile: z.ZodOptional<z.ZodString>;
|
|
239
|
+
executionRoleArn: z.ZodOptional<z.ZodString>;
|
|
240
|
+
networkMode: z.ZodOptional<z.ZodEnum<{
|
|
241
|
+
PUBLIC: "PUBLIC";
|
|
242
|
+
VPC: "VPC";
|
|
243
|
+
}>>;
|
|
244
|
+
networkConfig: z.ZodOptional<z.ZodObject<{
|
|
245
|
+
subnets: z.ZodArray<z.ZodString>;
|
|
246
|
+
securityGroups: z.ZodArray<z.ZodString>;
|
|
247
|
+
}, z.core.$strip>>;
|
|
248
|
+
lifecycleConfig: z.ZodOptional<z.ZodObject<{
|
|
249
|
+
idleRuntimeSessionTimeout: z.ZodOptional<z.ZodNumber>;
|
|
250
|
+
maxLifetime: z.ZodOptional<z.ZodNumber>;
|
|
251
|
+
}, z.core.$strip>>;
|
|
252
|
+
environmentVariables: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
253
|
+
tags: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
254
|
+
}, z.core.$strip>;
|
|
255
|
+
export type HarnessSpec = z.infer<typeof HarnessSpecSchema>;
|
|
256
|
+
//# sourceMappingURL=harness.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"harness.d.ts","sourceRoot":"","sources":["../../../../src/schema/schemas/primitives/harness.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,iBAAiB,aAO3B,CAAC;AAMJ,eAAO,MAAM,0BAA0B;;;;EAA2C,CAAC;AACnF,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,e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