@aws/agentcore 1.0.0-preview.15 → 1.0.0-preview.17

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.
@@ -124,15 +124,9 @@ async function main() {
124
124
  }
125
125
  }
126
126
 
127
- // Harness is preview-gated. The CLI bundle bakes the preview flag at build time and
128
- // forwards it to this child process via AGENTCORE_PREVIEW (see toolkit-lib/wrapper.ts).
129
- // This app is built separately and cannot see that build-time define, so it gates on the
130
- // env var. Absent/anything-but-'1' defaults to off so a stale harnesses[] entry in a
131
- // non-preview build never synthesizes an AWS::BedrockAgentCore::Harness resource.
132
- const previewEnabled = process.env.AGENTCORE_PREVIEW === '1';
133
-
127
+ // Synthesize an AWS::BedrockAgentCore::Harness resource for each harness entry in the spec.
134
128
  const harnessConfigs: HarnessConfig[] = [];
135
- for (const entry of previewEnabled ? (specAny.harnesses ?? []) : []) {
129
+ for (const entry of specAny.harnesses ?? []) {
136
130
  const harnessDir = path.resolve(projectRoot, entry.path);
137
131
  const harnessPath = path.resolve(harnessDir, 'harness.json');
138
132
  try {
@@ -7148,13 +7142,21 @@ file maps to a JSON config file and includes validation constraints as comments
7148
7142
 
7149
7143
  ### Key Types
7150
7144
 
7151
- - **AgentCoreProjectSpec**: Root config with \`runtimes\`, \`memories\`, \`credentials\`, \`agentCoreGateways\`, \`evaluators\`, \`onlineEvalConfigs\`, \`policyEngines\` arrays
7145
+ - **AgentCoreProjectSpec**: Root config with \`runtimes\`, \`memories\`, \`credentials\`, \`agentCoreGateways\`, \`evaluators\`, \`onlineEvalConfigs\`, \`onlineInsightsConfigs\`, \`knowledgeBases\`, \`harnesses\`, \`policyEngines\`, \`policies\`, \`payments\` (managers + connectors), \`configBundles\`, \`datasets\`, \`runtimeEndpoints\` arrays
7152
7146
  - **AgentEnvSpec**: Agent configuration (build type, entrypoint, code location, runtime version, network mode)
7153
7147
  - **Memory**: Memory resource with strategies (SEMANTIC, SUMMARIZATION, USER_PREFERENCE, EPISODIC) and expiry
7154
7148
  - **Credential**: API key or OAuth credential provider
7155
- - **AgentCoreGateway**: MCP gateway with targets (Lambda, MCP server, OpenAPI, Smithy, API Gateway)
7149
+ - **AgentCoreGateway**: MCP gateway with targets (Lambda, MCP server, OpenAPI, Smithy, API Gateway, web-search, knowledge-base)
7156
7150
  - **Evaluator**: LLM-as-a-Judge or code-based evaluator
7157
7151
  - **OnlineEvalConfig**: Continuous evaluation pipeline bound to an agent
7152
+ - **OnlineInsightsConfig** _[preview]_: Continuous failure-pattern analysis bound to an agent
7153
+ - **KnowledgeBase**: Managed Bedrock Knowledge Base auto-wired to a gateway
7154
+ - **Harness**: Declarative agent — runtime + tools + skills + memory + observability without writing agent code
7155
+ - **PolicyEngine** + **Policy**: Cedar policy engine with form-based guardrails (Bedrock content filters, prompt-attack, sensitive-info) or raw Cedar policies
7156
+ - **PaymentManager** + **PaymentConnector**: x402-protocol payment orchestration with provider credentials (CoinbaseCDP, StripePrivy)
7157
+ - **ConfigBundle**: Versioned runtime configuration as a separately-deployable resource
7158
+ - **Dataset**: Curated session dataset for batch evaluation and recommendation runs
7159
+ - **RuntimeEndpoint**: Named endpoint (e.g. \`PROMPT_V1\`) targeting a specific runtime version
7158
7160
 
7159
7161
  ### Common Enum Values
7160
7162
 
@@ -7162,8 +7164,11 @@ file maps to a JSON config file and includes validation constraints as comments
7162
7164
  - **NetworkMode**: \`'PUBLIC'\` | \`'VPC'\`
7163
7165
  - **RuntimeVersion**: \`'PYTHON_3_10'\` | \`'PYTHON_3_11'\` | \`'PYTHON_3_12'\` | \`'PYTHON_3_13'\` | \`'PYTHON_3_14'\` | \`'NODE_18'\` | \`'NODE_20'\` | \`'NODE_22'\`
7164
7166
  - **MemoryStrategyType**: \`'SEMANTIC'\` | \`'SUMMARIZATION'\` | \`'USER_PREFERENCE'\` | \`'EPISODIC'\`
7165
- - **GatewayTargetType**: \`'lambda'\` | \`'mcpServer'\` | \`'openApiSchema'\` | \`'smithyModel'\` | \`'apiGateway'\` | \`'lambdaFunctionArn'\`
7167
+ - **GatewayTargetType**: \`'lambda'\` | \`'mcpServer'\` | \`'openApiSchema'\` | \`'smithyModel'\` | \`'apiGateway'\` | \`'lambdaFunctionArn'\` | \`'connector'\` (web-search, bedrock-knowledge-bases, bedrock-agentic-retrieve)
7166
7168
  - **ModelProvider**: \`'Bedrock'\` | \`'Gemini'\` | \`'OpenAI'\` | \`'Anthropic'\`
7169
+ - **PaymentProvider**: \`'CoinbaseCDP'\` | \`'StripePrivy'\`
7170
+ - **PolicyEnforcementMode**: \`'ACTIVE'\` | \`'PASSIVE'\`
7171
+ - **GuardrailContentFilter**: \`'VIOLENCE'\` | \`'HATE'\` | \`'SEXUAL'\` | \`'MISCONDUCT'\` | \`'INSULTS'\`
7167
7172
 
7168
7173
  ### Build Types
7169
7174
 
@@ -7229,22 +7234,73 @@ cat app/<agentName>/EXPORT_NOTES.md # read this before touching anyt
7229
7234
 
7230
7235
  ## CLI Commands
7231
7236
 
7237
+ Run \`agentcore --help\` or \`agentcore <command> --help\` for full flags. Commonly used:
7238
+
7239
+ **Project lifecycle**
7240
+
7232
7241
  | Command | Description |
7233
7242
  | --- | --- |
7234
7243
  | \`agentcore create\` | Create a new project |
7235
- | \`agentcore add <resource>\` | Add agent, memory, credential, gateway, evaluator, policy |
7236
- | \`agentcore remove <resource>\` | Remove a resource |
7237
- | \`agentcore export harness\` | Export a harness to a Strands runtime agent |
7238
7244
  | \`agentcore dev\` | Run agent locally with hot-reload |
7239
7245
  | \`agentcore deploy\` | Deploy to AWS |
7240
- | \`agentcore status\` | Show deployment status |
7241
7246
  | \`agentcore invoke\` | Invoke agent (local or deployed) |
7242
- | \`agentcore logs\` | View agent logs |
7243
- | \`agentcore traces\` | View agent traces |
7244
- | \`agentcore eval\` | Run evaluations against an agent |
7245
- | \`agentcore package\` | Package agent artifacts |
7247
+ | \`agentcore status\` | Show deployment status |
7246
7248
  | \`agentcore validate\` | Validate configuration |
7247
- | \`agentcore pause\` / \`resume\` | Pause or resume a deployed agent |
7249
+ | \`agentcore package\` | Package agent artifacts |
7250
+ | \`agentcore import\` | Import resources from a Bedrock AgentCore Starter Toolkit project |
7251
+
7252
+ **Resources**
7253
+
7254
+ | Command | Description |
7255
+ | --- | --- |
7256
+ | \`agentcore add <resource>\` | Add agent, memory, credential, gateway, gateway-target, evaluator, online-eval, online-insights, knowledge-base, harness, policy-engine, policy, payment-manager, payment-connector, config-bundle, dataset, runtime-endpoint |
7257
+ | \`agentcore remove <resource>\` | Remove any resource |
7258
+ | \`agentcore export harness\` | Export a harness to a Strands runtime agent under \`app/<agentName>/\` |
7259
+
7260
+ **Jobs (run, view, archive, lifecycle)**
7261
+
7262
+ | Command | Description |
7263
+ | --- | --- |
7264
+ | \`agentcore run eval\` | Run on-demand evaluation against agent traces |
7265
+ | \`agentcore run batch-evaluation\` | Run evaluators across all sessions at scale |
7266
+ | \`agentcore run recommendation\` | Optimize prompts or tool descriptions from real traces |
7267
+ | \`agentcore run insights\` _[preview]_ | Run failure-pattern analysis across sessions |
7268
+ | \`agentcore run ab-test\` | Start an A/B test (config-bundle or target-based) |
7269
+ | \`agentcore run ingest\` | Start a fresh ingestion job for every data source on a deployed knowledge base |
7270
+ | \`agentcore view <type>\` | List or view jobs (recommendation, batch-evaluation, ab-test, insights) |
7271
+ | \`agentcore archive <type>\` | Delete a job on the service + clear local history |
7272
+ | \`agentcore stop <type>\` | Stop a running batch-evaluation or ab-test |
7273
+ | \`agentcore promote ab-test\` | Apply the winning variant to \`agentcore.json\` |
7274
+ | \`agentcore pause <type>\` / \`agentcore resume <type>\` | Pause/resume a deployed online-eval, online-insights, or ab-test |
7275
+
7276
+ **Config bundles & datasets**
7277
+
7278
+ | Command | Description |
7279
+ | --- | --- |
7280
+ | \`agentcore config-bundle versions\` (alias \`cb versions\`) | List version history for a bundle |
7281
+ | \`agentcore config-bundle diff\` | Diff two versions of a bundle |
7282
+ | \`agentcore config-bundle create-branch\` | Create a new branch on an existing bundle |
7283
+ | \`agentcore dataset download\` | Download a dataset version locally |
7284
+ | \`agentcore dataset publish-version\` | Publish a new dataset version |
7285
+ | \`agentcore dataset remove-version\` | Remove a dataset version |
7286
+
7287
+ **Observability & history**
7288
+
7289
+ | Command | Description |
7290
+ | --- | --- |
7291
+ | \`agentcore logs\` | Stream/search agent runtime logs |
7292
+ | \`agentcore logs evals\` | Stream/search online-eval logs |
7293
+ | \`agentcore traces list\` / \`agentcore traces get\` | List recent traces or download one to JSON |
7294
+ | \`agentcore evals history\` | View past on-demand eval results |
7295
+
7296
+ **Utilities**
7297
+
7298
+ | Command | Description |
7299
+ | --- | --- |
7300
+ | \`agentcore fetch access\` | Fetch access info for deployed gateway or agent |
7301
+ | \`agentcore feedback\` | Send feedback (with optional screenshot) to the AgentCore team |
7302
+ | \`agentcore update\` | Check for and install CLI updates |
7303
+ | \`agentcore telemetry\` | View or change telemetry preferences |
7248
7304
  "
7249
7305
  `;
7250
7306
 
@@ -56,13 +56,21 @@ file maps to a JSON config file and includes validation constraints as comments
56
56
 
57
57
  ### Key Types
58
58
 
59
- - **AgentCoreProjectSpec**: Root config with `runtimes`, `memories`, `credentials`, `agentCoreGateways`, `evaluators`, `onlineEvalConfigs`, `policyEngines` arrays
59
+ - **AgentCoreProjectSpec**: Root config with `runtimes`, `memories`, `credentials`, `agentCoreGateways`, `evaluators`, `onlineEvalConfigs`, `onlineInsightsConfigs`, `knowledgeBases`, `harnesses`, `policyEngines`, `policies`, `payments` (managers + connectors), `configBundles`, `datasets`, `runtimeEndpoints` arrays
60
60
  - **AgentEnvSpec**: Agent configuration (build type, entrypoint, code location, runtime version, network mode)
61
61
  - **Memory**: Memory resource with strategies (SEMANTIC, SUMMARIZATION, USER_PREFERENCE, EPISODIC) and expiry
62
62
  - **Credential**: API key or OAuth credential provider
63
- - **AgentCoreGateway**: MCP gateway with targets (Lambda, MCP server, OpenAPI, Smithy, API Gateway)
63
+ - **AgentCoreGateway**: MCP gateway with targets (Lambda, MCP server, OpenAPI, Smithy, API Gateway, web-search, knowledge-base)
64
64
  - **Evaluator**: LLM-as-a-Judge or code-based evaluator
65
65
  - **OnlineEvalConfig**: Continuous evaluation pipeline bound to an agent
66
+ - **OnlineInsightsConfig** _[preview]_: Continuous failure-pattern analysis bound to an agent
67
+ - **KnowledgeBase**: Managed Bedrock Knowledge Base auto-wired to a gateway
68
+ - **Harness**: Declarative agent — runtime + tools + skills + memory + observability without writing agent code
69
+ - **PolicyEngine** + **Policy**: Cedar policy engine with form-based guardrails (Bedrock content filters, prompt-attack, sensitive-info) or raw Cedar policies
70
+ - **PaymentManager** + **PaymentConnector**: x402-protocol payment orchestration with provider credentials (CoinbaseCDP, StripePrivy)
71
+ - **ConfigBundle**: Versioned runtime configuration as a separately-deployable resource
72
+ - **Dataset**: Curated session dataset for batch evaluation and recommendation runs
73
+ - **RuntimeEndpoint**: Named endpoint (e.g. `PROMPT_V1`) targeting a specific runtime version
66
74
 
67
75
  ### Common Enum Values
68
76
 
@@ -70,8 +78,11 @@ file maps to a JSON config file and includes validation constraints as comments
70
78
  - **NetworkMode**: `'PUBLIC'` | `'VPC'`
71
79
  - **RuntimeVersion**: `'PYTHON_3_10'` | `'PYTHON_3_11'` | `'PYTHON_3_12'` | `'PYTHON_3_13'` | `'PYTHON_3_14'` | `'NODE_18'` | `'NODE_20'` | `'NODE_22'`
72
80
  - **MemoryStrategyType**: `'SEMANTIC'` | `'SUMMARIZATION'` | `'USER_PREFERENCE'` | `'EPISODIC'`
73
- - **GatewayTargetType**: `'lambda'` | `'mcpServer'` | `'openApiSchema'` | `'smithyModel'` | `'apiGateway'` | `'lambdaFunctionArn'`
81
+ - **GatewayTargetType**: `'lambda'` | `'mcpServer'` | `'openApiSchema'` | `'smithyModel'` | `'apiGateway'` | `'lambdaFunctionArn'` | `'connector'` (web-search, bedrock-knowledge-bases, bedrock-agentic-retrieve)
74
82
  - **ModelProvider**: `'Bedrock'` | `'Gemini'` | `'OpenAI'` | `'Anthropic'`
83
+ - **PaymentProvider**: `'CoinbaseCDP'` | `'StripePrivy'`
84
+ - **PolicyEnforcementMode**: `'ACTIVE'` | `'PASSIVE'`
85
+ - **GuardrailContentFilter**: `'VIOLENCE'` | `'HATE'` | `'SEXUAL'` | `'MISCONDUCT'` | `'INSULTS'`
75
86
 
76
87
  ### Build Types
77
88
 
@@ -137,19 +148,70 @@ cat app/<agentName>/EXPORT_NOTES.md # read this before touching anyt
137
148
 
138
149
  ## CLI Commands
139
150
 
151
+ Run `agentcore --help` or `agentcore <command> --help` for full flags. Commonly used:
152
+
153
+ **Project lifecycle**
154
+
140
155
  | Command | Description |
141
156
  | --- | --- |
142
157
  | `agentcore create` | Create a new project |
143
- | `agentcore add <resource>` | Add agent, memory, credential, gateway, evaluator, policy |
144
- | `agentcore remove <resource>` | Remove a resource |
145
- | `agentcore export harness` | Export a harness to a Strands runtime agent |
146
158
  | `agentcore dev` | Run agent locally with hot-reload |
147
159
  | `agentcore deploy` | Deploy to AWS |
148
- | `agentcore status` | Show deployment status |
149
160
  | `agentcore invoke` | Invoke agent (local or deployed) |
150
- | `agentcore logs` | View agent logs |
151
- | `agentcore traces` | View agent traces |
152
- | `agentcore eval` | Run evaluations against an agent |
153
- | `agentcore package` | Package agent artifacts |
161
+ | `agentcore status` | Show deployment status |
154
162
  | `agentcore validate` | Validate configuration |
155
- | `agentcore pause` / `resume` | Pause or resume a deployed agent |
163
+ | `agentcore package` | Package agent artifacts |
164
+ | `agentcore import` | Import resources from a Bedrock AgentCore Starter Toolkit project |
165
+
166
+ **Resources**
167
+
168
+ | Command | Description |
169
+ | --- | --- |
170
+ | `agentcore add <resource>` | Add agent, memory, credential, gateway, gateway-target, evaluator, online-eval, online-insights, knowledge-base, harness, policy-engine, policy, payment-manager, payment-connector, config-bundle, dataset, runtime-endpoint |
171
+ | `agentcore remove <resource>` | Remove any resource |
172
+ | `agentcore export harness` | Export a harness to a Strands runtime agent under `app/<agentName>/` |
173
+
174
+ **Jobs (run, view, archive, lifecycle)**
175
+
176
+ | Command | Description |
177
+ | --- | --- |
178
+ | `agentcore run eval` | Run on-demand evaluation against agent traces |
179
+ | `agentcore run batch-evaluation` | Run evaluators across all sessions at scale |
180
+ | `agentcore run recommendation` | Optimize prompts or tool descriptions from real traces |
181
+ | `agentcore run insights` _[preview]_ | Run failure-pattern analysis across sessions |
182
+ | `agentcore run ab-test` | Start an A/B test (config-bundle or target-based) |
183
+ | `agentcore run ingest` | Start a fresh ingestion job for every data source on a deployed knowledge base |
184
+ | `agentcore view <type>` | List or view jobs (recommendation, batch-evaluation, ab-test, insights) |
185
+ | `agentcore archive <type>` | Delete a job on the service + clear local history |
186
+ | `agentcore stop <type>` | Stop a running batch-evaluation or ab-test |
187
+ | `agentcore promote ab-test` | Apply the winning variant to `agentcore.json` |
188
+ | `agentcore pause <type>` / `agentcore resume <type>` | Pause/resume a deployed online-eval, online-insights, or ab-test |
189
+
190
+ **Config bundles & datasets**
191
+
192
+ | Command | Description |
193
+ | --- | --- |
194
+ | `agentcore config-bundle versions` (alias `cb versions`) | List version history for a bundle |
195
+ | `agentcore config-bundle diff` | Diff two versions of a bundle |
196
+ | `agentcore config-bundle create-branch` | Create a new branch on an existing bundle |
197
+ | `agentcore dataset download` | Download a dataset version locally |
198
+ | `agentcore dataset publish-version` | Publish a new dataset version |
199
+ | `agentcore dataset remove-version` | Remove a dataset version |
200
+
201
+ **Observability & history**
202
+
203
+ | Command | Description |
204
+ | --- | --- |
205
+ | `agentcore logs` | Stream/search agent runtime logs |
206
+ | `agentcore logs evals` | Stream/search online-eval logs |
207
+ | `agentcore traces list` / `agentcore traces get` | List recent traces or download one to JSON |
208
+ | `agentcore evals history` | View past on-demand eval results |
209
+
210
+ **Utilities**
211
+
212
+ | Command | Description |
213
+ | --- | --- |
214
+ | `agentcore fetch access` | Fetch access info for deployed gateway or agent |
215
+ | `agentcore feedback` | Send feedback (with optional screenshot) to the AgentCore team |
216
+ | `agentcore update` | Check for and install CLI updates |
217
+ | `agentcore telemetry` | View or change telemetry preferences |
@@ -79,15 +79,9 @@ async function main() {
79
79
  }
80
80
  }
81
81
 
82
- // Harness is preview-gated. The CLI bundle bakes the preview flag at build time and
83
- // forwards it to this child process via AGENTCORE_PREVIEW (see toolkit-lib/wrapper.ts).
84
- // This app is built separately and cannot see that build-time define, so it gates on the
85
- // env var. Absent/anything-but-'1' defaults to off so a stale harnesses[] entry in a
86
- // non-preview build never synthesizes an AWS::BedrockAgentCore::Harness resource.
87
- const previewEnabled = process.env.AGENTCORE_PREVIEW === '1';
88
-
82
+ // Synthesize an AWS::BedrockAgentCore::Harness resource for each harness entry in the spec.
89
83
  const harnessConfigs: HarnessConfig[] = [];
90
- for (const entry of previewEnabled ? (specAny.harnesses ?? []) : []) {
84
+ for (const entry of specAny.harnesses ?? []) {
91
85
  const harnessDir = path.resolve(projectRoot, entry.path);
92
86
  const harnessPath = path.resolve(harnessDir, 'harness.json');
93
87
  try {