@aws/agentcore 0.14.2 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +19 -7
- package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +3 -0
- package/dist/assets/cdk/test/cdk.test.ts +1 -0
- package/dist/assets/datasets/predefined-v1.jsonl +3 -0
- package/dist/assets/datasets/simulated-v1.jsonl +3 -0
- package/dist/cli/index.mjs +602 -562
- package/dist/schema/schemas/agentcore-project.d.ts +63 -0
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +63 -2
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/deployed-state.d.ts +26 -0
- package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
- package/dist/schema/schemas/deployed-state.js +10 -1
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/primitives/dataset.d.ts +48 -0
- package/dist/schema/schemas/primitives/dataset.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/dataset.js +58 -0
- package/dist/schema/schemas/primitives/dataset.js.map +1 -0
- package/dist/schema/schemas/primitives/index.d.ts +2 -0
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +5 -1
- package/dist/schema/schemas/primitives/index.js.map +1 -1
- package/npm-shrinkwrap.json +182 -215
- package/package.json +3 -2
- package/scripts/bundle.mjs +1 -1
package/README.md
CHANGED
|
@@ -135,12 +135,13 @@ agentcore invoke
|
|
|
135
135
|
|
|
136
136
|
### Utilities
|
|
137
137
|
|
|
138
|
-
| Command | Description
|
|
139
|
-
| -------------- |
|
|
140
|
-
| `validate` | Validate configuration files
|
|
141
|
-
| `package` | Package agent artifacts without deploying
|
|
142
|
-
| `fetch access` | Fetch access info for deployed resources
|
|
143
|
-
| `
|
|
138
|
+
| Command | Description |
|
|
139
|
+
| -------------- | ----------------------------------------------------- |
|
|
140
|
+
| `validate` | Validate configuration files |
|
|
141
|
+
| `package` | Package agent artifacts without deploying |
|
|
142
|
+
| `fetch access` | Fetch access info for deployed resources |
|
|
143
|
+
| `feedback` | Send feedback to the AgentCore team (with screenshot) |
|
|
144
|
+
| `update` | Check for and install CLI updates |
|
|
144
145
|
|
|
145
146
|
## Project Structure
|
|
146
147
|
|
|
@@ -191,10 +192,21 @@ Projects use JSON schema files in the `agentcore/` directory:
|
|
|
191
192
|
- [Gateway](docs/gateway.md) - Gateway setup, targets, and authentication
|
|
192
193
|
- [Memory](docs/memory.md) - Memory strategies and sharing
|
|
193
194
|
- [Local Development](docs/local-development.md) - Dev server and debugging
|
|
195
|
+
- [Feedback](docs/feedback.md) - Submit feedback from your terminal
|
|
194
196
|
|
|
195
197
|
## Feedback & Issues
|
|
196
198
|
|
|
197
|
-
|
|
199
|
+
Have a quick comment or suggestion? Send it from your terminal:
|
|
200
|
+
|
|
201
|
+
```bash
|
|
202
|
+
agentcore feedback "your message" --screenshot path/to/screenshot.png
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
The CLI will display the AWS Customer Agreement and prompt for consent before submitting. See
|
|
206
|
+
[docs/feedback.md](docs/feedback.md) for usage details.
|
|
207
|
+
|
|
208
|
+
For bugs, regressions, or feature requests that need discussion,
|
|
209
|
+
[open an issue](https://github.com/aws/agentcore-cli/issues/new) on GitHub instead.
|
|
198
210
|
|
|
199
211
|
## Security
|
|
200
212
|
|
|
@@ -386,6 +386,7 @@ test('AgentCoreStack synthesizes with empty spec', () => {
|
|
|
386
386
|
agentCoreGateways: [],
|
|
387
387
|
mcpRuntimeTools: [],
|
|
388
388
|
unassignedTargets: [],
|
|
389
|
+
datasets: [],
|
|
389
390
|
},
|
|
390
391
|
});
|
|
391
392
|
const template = Template.fromStack(stack);
|
|
@@ -448,6 +449,8 @@ exports[`Assets Directory Snapshots > File listing > should match the expected f
|
|
|
448
449
|
"container/python/dockerignore.template",
|
|
449
450
|
"container/typescript/Dockerfile",
|
|
450
451
|
"container/typescript/dockerignore.template",
|
|
452
|
+
"datasets/predefined-v1.jsonl",
|
|
453
|
+
"datasets/simulated-v1.jsonl",
|
|
451
454
|
"evaluators/python-lambda/execution-role-policy.json",
|
|
452
455
|
"evaluators/python-lambda/lambda_function.py",
|
|
453
456
|
"evaluators/python-lambda/pyproject.toml",
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{"scenario_id": "refund-policy", "turns": [{"input": "What is your refund policy?", "expectedResponse": "We offer full refunds within 30 days of purchase. After 30 days, we can provide store credit."}, {"input": "What if I lost my receipt?", "expectedResponse": "No problem! We can look up your purchase using your email address or payment method."}], "assertions": ["Agent should clearly state the 30-day refund window", "Agent should offer alternatives for lost receipts"], "expected_trajectory": ["lookup_policy", "check_eligibility"]}
|
|
2
|
+
{"scenario_id": "order-tracking", "turns": [{"input": "Where is my order #12345?", "expectedResponse": "Let me look up order #12345 for you. I can see it shipped on Monday and is expected to arrive by Thursday."}], "assertions": ["Agent should reference the specific order number", "Agent should provide estimated delivery date"], "expected_trajectory": ["lookup_order", "get_shipping_status"]}
|
|
3
|
+
{"scenario_id": "account-locked", "turns": [{"input": "I can't log into my account", "expectedResponse": "I'm sorry you're having trouble logging in. Let me help you regain access. Can you provide the email address associated with your account?"}, {"input": "It's john@example.com", "expectedResponse": "I've sent a password reset link to john@example.com. Please check your inbox and spam folder. The link expires in 24 hours."}], "assertions": ["Agent should ask for identifying information", "Agent should explain the reset process clearly"], "expected_trajectory": ["verify_identity", "send_reset_link"]}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
{"scenario_id": "frustrated-refund-customer", "input": "I want a refund for my cancelled flight BK-98765", "actor_profile": {"traits": {"personality": "impatient and frustrated", "communication_style": "direct and demanding"}, "context": "Has been waiting 3 days for a refund with no response. Previously had a bad experience with customer service.", "goal": "Get a full cash refund for cancelled flight BK-98765, not a voucher or credit"}, "max_turns": 10, "assertions": ["Agent should acknowledge the frustration", "Agent should not offer only vouchers when cash refund is requested", "Agent should provide a timeline for the refund"]}
|
|
2
|
+
{"scenario_id": "confused-new-user", "input": "How do I set up my new account?", "actor_profile": {"traits": {"personality": "polite but confused", "communication_style": "asks many follow-up questions", "technical_level": "beginner"}, "context": "First time using the service. Not familiar with technical terminology. English is a second language.", "goal": "Successfully create and configure a new account with basic settings"}, "max_turns": 15, "assertions": ["Agent should use simple non-technical language", "Agent should break instructions into small steps", "Agent should confirm understanding at each step"]}
|
|
3
|
+
{"scenario_id": "edge-case-multi-issue", "input": "I need to change my flight AND get a refund for the hotel that was bundled with it", "actor_profile": {"traits": {"personality": "methodical and detail-oriented", "communication_style": "provides lots of context upfront"}, "context": "Has a bundled flight+hotel booking. Flight was changed by the airline, making the hotel dates wrong. Wants partial refund for hotel and rebooking for flight.", "goal": "Get the flight rebooked to new dates AND get a refund for the hotel nights that no longer align"}, "max_turns": 12, "assertions": ["Agent should handle both issues without losing track", "Agent should clarify which parts are refundable", "Agent should not close the conversation until both issues are resolved"]}
|