@aws/agentcore 0.9.1 → 1.0.0-preview.2
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/agent-inspector/index.css +1 -1
- package/dist/agent-inspector/index.js +90 -72
- package/dist/assets/README.md +56 -31
- package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +1781 -259
- package/dist/assets/__tests__/__snapshots__/dockerfile-render.test.ts.snap +77 -0
- package/dist/assets/__tests__/dockerfile-render.test.ts +24 -0
- package/dist/assets/agents/AGENTS.md +84 -55
- package/dist/assets/cdk/bin/cdk.ts +40 -0
- package/dist/assets/cdk/cdk.json +1 -1
- package/dist/assets/cdk/lib/cdk-stack.ts +59 -2
- package/dist/assets/container/python/Dockerfile +4 -0
- package/dist/assets/evaluators/python-lambda/execution-role-policy.json +1 -1
- package/dist/assets/harness/invoke.py.template +74 -0
- package/dist/assets/python/a2a/googleadk/base/main.py +65 -3
- package/dist/assets/python/a2a/langchain_langgraph/base/main.py +64 -1
- package/dist/assets/python/a2a/strands/base/main.py +65 -2
- package/dist/assets/python/agui/googleadk/base/README.md +30 -0
- package/dist/assets/python/agui/googleadk/base/gitignore.template +41 -0
- package/dist/assets/python/agui/googleadk/base/main.py +31 -0
- package/dist/assets/python/agui/googleadk/base/model/__init__.py +1 -0
- package/dist/assets/python/agui/googleadk/base/model/load.py +41 -0
- package/dist/assets/python/agui/googleadk/base/pyproject.toml +24 -0
- package/dist/assets/python/agui/langchain_langgraph/base/README.md +22 -0
- package/dist/assets/python/agui/langchain_langgraph/base/gitignore.template +41 -0
- package/dist/assets/python/agui/langchain_langgraph/base/main.py +74 -0
- package/dist/assets/python/agui/langchain_langgraph/base/model/__init__.py +1 -0
- package/dist/assets/python/agui/langchain_langgraph/base/model/load.py +123 -0
- package/dist/assets/python/agui/langchain_langgraph/base/pyproject.toml +30 -0
- package/dist/assets/python/agui/strands/base/README.md +22 -0
- package/dist/assets/python/agui/strands/base/gitignore.template +41 -0
- package/dist/assets/python/agui/strands/base/main.py +43 -0
- package/dist/assets/python/agui/strands/base/model/__init__.py +1 -0
- package/dist/assets/python/agui/strands/base/model/load.py +123 -0
- package/dist/assets/python/agui/strands/base/pyproject.toml +27 -0
- package/dist/assets/python/agui/strands/capabilities/memory/__init__.py +1 -0
- package/dist/assets/python/agui/strands/capabilities/memory/session.py +38 -0
- package/dist/assets/python/http/autogen/base/main.py +61 -1
- package/dist/assets/python/http/googleadk/base/main.py +62 -2
- package/dist/assets/python/http/langchain_langgraph/base/main.py +61 -1
- package/dist/assets/python/http/openaiagents/base/main.py +70 -4
- package/dist/assets/python/http/strands/base/main.py +64 -6
- package/dist/cli/index.mjs +415 -377
- package/dist/lib/constants.d.ts +1 -0
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +3 -1
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/errors/config.d.ts.map +1 -1
- package/dist/lib/errors/config.js +5 -2
- package/dist/lib/errors/config.js.map +1 -1
- package/dist/lib/schemas/io/config-io.d.ts +9 -1
- package/dist/lib/schemas/io/config-io.d.ts.map +1 -1
- package/dist/lib/schemas/io/config-io.js +14 -0
- package/dist/lib/schemas/io/config-io.js.map +1 -1
- package/dist/lib/schemas/io/path-resolver.d.ts +12 -0
- package/dist/lib/schemas/io/path-resolver.d.ts.map +1 -1
- package/dist/lib/schemas/io/path-resolver.js +18 -0
- package/dist/lib/schemas/io/path-resolver.js.map +1 -1
- package/dist/schema/constants.d.ts +1 -0
- package/dist/schema/constants.d.ts.map +1 -1
- package/dist/schema/constants.js +8 -1
- package/dist/schema/constants.js.map +1 -1
- package/dist/schema/schemas/agent-env.d.ts +20 -0
- package/dist/schema/schemas/agent-env.d.ts.map +1 -1
- package/dist/schema/schemas/agent-env.js +17 -2
- package/dist/schema/schemas/agent-env.js.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +17 -0
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +18 -1
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/aws-targets.d.ts +3 -0
- package/dist/schema/schemas/aws-targets.d.ts.map +1 -1
- package/dist/schema/schemas/aws-targets.js +1 -0
- package/dist/schema/schemas/aws-targets.js.map +1 -1
- package/dist/schema/schemas/deployed-state.d.ts +50 -0
- package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
- package/dist/schema/schemas/deployed-state.js +15 -1
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/primitives/harness.d.ts +287 -0
- package/dist/schema/schemas/primitives/harness.d.ts.map +1 -0
- package/dist/schema/schemas/primitives/harness.js +237 -0
- package/dist/schema/schemas/primitives/harness.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 +14 -1
- package/dist/schema/schemas/primitives/index.js.map +1 -1
- package/package.json +2 -2
- package/scripts/bump-version.ts +7 -80
- package/scripts/bundle.mjs +57 -3
- package/dist/agent-inspector/index.js.map +0 -1
package/dist/assets/README.md
CHANGED
|
@@ -5,14 +5,19 @@ This project was created with the [AgentCore CLI](https://github.com/aws/agentco
|
|
|
5
5
|
## Project Structure
|
|
6
6
|
|
|
7
7
|
```
|
|
8
|
-
.
|
|
9
8
|
my-project/
|
|
9
|
+
├── AGENTS.md # AI coding assistant context
|
|
10
10
|
├── agentcore/
|
|
11
|
-
│ ├── .
|
|
12
|
-
│ ├──
|
|
13
|
-
│ ├──
|
|
14
|
-
│
|
|
15
|
-
├──
|
|
11
|
+
│ ├── agentcore.json # Project config (agents, memories, credentials, gateways, evaluators)
|
|
12
|
+
│ ├── aws-targets.json # Deployment targets (account + region)
|
|
13
|
+
│ ├── .env.local # Secrets — API keys (gitignored)
|
|
14
|
+
│ ├── .llm-context/ # TypeScript type definitions for AI assistants
|
|
15
|
+
│ │ ├── agentcore.ts # AgentCoreProjectSpec types
|
|
16
|
+
│ │ ├── aws-targets.ts # Deployment target types
|
|
17
|
+
│ │ └── mcp.ts # Gateway and MCP tool types
|
|
18
|
+
│ └── cdk/ # CDK infrastructure (@aws/agentcore-cdk)
|
|
19
|
+
├── app/ # Agent application code
|
|
20
|
+
└── evaluators/ # Custom evaluator code (if any)
|
|
16
21
|
```
|
|
17
22
|
|
|
18
23
|
## Getting Started
|
|
@@ -20,7 +25,9 @@ my-project/
|
|
|
20
25
|
### Prerequisites
|
|
21
26
|
|
|
22
27
|
- **Node.js** 20.x or later
|
|
23
|
-
- **uv** for Python agents ([install](https://docs.astral.sh/uv/getting-started/installation/))
|
|
28
|
+
- **Python 3.10+** and **uv** for Python agents ([install uv](https://docs.astral.sh/uv/getting-started/installation/))
|
|
29
|
+
- **AWS credentials** configured (`aws configure` or environment variables)
|
|
30
|
+
- **Docker** (only for Container build agents)
|
|
24
31
|
|
|
25
32
|
### Development
|
|
26
33
|
|
|
@@ -38,42 +45,60 @@ Deploy to AWS:
|
|
|
38
45
|
agentcore deploy
|
|
39
46
|
```
|
|
40
47
|
|
|
41
|
-
|
|
48
|
+
## Commands
|
|
42
49
|
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
| Command | Description |
|
|
51
|
+
| --- | --- |
|
|
52
|
+
| `agentcore create` | Create a new AgentCore project |
|
|
53
|
+
| `agentcore add` | Add resources (agent, memory, credential, gateway, evaluator, policy) |
|
|
54
|
+
| `agentcore remove` | Remove resources |
|
|
55
|
+
| `agentcore dev` | Run agent locally with hot-reload |
|
|
56
|
+
| `agentcore deploy` | Deploy to AWS via CDK |
|
|
57
|
+
| `agentcore status` | Show deployment status |
|
|
58
|
+
| `agentcore invoke` | Invoke agent (local or deployed) |
|
|
59
|
+
| `agentcore logs` | View agent logs |
|
|
60
|
+
| `agentcore traces` | View agent traces |
|
|
61
|
+
| `agentcore eval` | Run evaluations |
|
|
62
|
+
| `agentcore package` | Package agent artifacts |
|
|
63
|
+
| `agentcore validate` | Validate configuration |
|
|
64
|
+
| `agentcore pause` | Pause a deployed agent |
|
|
65
|
+
| `agentcore resume` | Resume a paused agent |
|
|
66
|
+
| `agentcore fetch` | Fetch remote resource definitions |
|
|
67
|
+
| `agentcore import` | Import existing resources |
|
|
68
|
+
| `agentcore update` | Check for CLI updates |
|
|
47
69
|
|
|
48
70
|
## Configuration
|
|
49
71
|
|
|
50
|
-
Edit the JSON files in `agentcore/` to configure your
|
|
51
|
-
type definitions and validation constraints.
|
|
72
|
+
Edit the JSON files in `agentcore/` to configure your project. See `agentcore/.llm-context/` for type definitions and validation constraints.
|
|
52
73
|
|
|
53
|
-
The project uses a **flat resource model**
|
|
54
|
-
`agentcore.json`.
|
|
74
|
+
The project uses a **flat resource model** — agents, memories, credentials, gateways, evaluators, and policies are top-level arrays in `agentcore.json`. Resources are independent; agents discover memories and credentials at runtime via environment variables or SDK calls.
|
|
55
75
|
|
|
56
|
-
##
|
|
76
|
+
## Resources
|
|
57
77
|
|
|
58
|
-
|
|
|
59
|
-
|
|
|
60
|
-
|
|
|
61
|
-
|
|
|
62
|
-
|
|
|
63
|
-
|
|
|
64
|
-
|
|
|
65
|
-
|
|
|
66
|
-
|
|
|
67
|
-
|
|
|
68
|
-
| `agentcore validate` | Validate configuration |
|
|
69
|
-
| `agentcore update` | Check for CLI updates |
|
|
78
|
+
| Resource | Purpose |
|
|
79
|
+
| --- | --- |
|
|
80
|
+
| Agent (runtime) | HTTP, MCP, or A2A agent deployed to AgentCore Runtime |
|
|
81
|
+
| Memory | Persistent context storage with configurable strategies |
|
|
82
|
+
| Credential | API key or OAuth credential providers |
|
|
83
|
+
| Gateway | MCP gateway that routes tool calls to targets |
|
|
84
|
+
| Gateway Target | Tool implementation (Lambda, MCP server, OpenAPI, Smithy, API Gateway) |
|
|
85
|
+
| Evaluator | Custom LLM-as-a-Judge or code-based evaluation |
|
|
86
|
+
| Online Eval Config | Continuous evaluation pipeline for deployed agents |
|
|
87
|
+
| Policy | Cedar authorization policies for gateway tools |
|
|
70
88
|
|
|
71
89
|
### Agent Types
|
|
72
90
|
|
|
73
|
-
- **Template agents**: Created from framework templates (Strands,
|
|
91
|
+
- **Template agents**: Created from framework templates (Strands, LangChain/LangGraph, GoogleADK, OpenAI Agents, Autogen)
|
|
74
92
|
- **BYO agents**: Bring your own code with `agentcore add agent --type byo`
|
|
93
|
+
- **Import agents**: Import existing Bedrock agents with `agentcore import`
|
|
94
|
+
|
|
95
|
+
### Build Types
|
|
96
|
+
|
|
97
|
+
- **CodeZip**: Python source packaged as a zip and deployed directly to AgentCore Runtime
|
|
98
|
+
- **Container**: Docker image built via CodeBuild (ARM64), pushed to ECR, and deployed to AgentCore Runtime
|
|
75
99
|
|
|
76
100
|
## Documentation
|
|
77
101
|
|
|
78
|
-
- [AgentCore CLI
|
|
102
|
+
- [AgentCore CLI](https://github.com/aws/agentcore-cli)
|
|
103
|
+
- [AgentCore CDK Constructs](https://github.com/aws/agentcore-l3-cdk-constructs)
|
|
79
104
|
- [Amazon Bedrock AgentCore](https://aws.amazon.com/bedrock/agentcore/)
|