@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.
Files changed (89) hide show
  1. package/dist/agent-inspector/index.css +1 -1
  2. package/dist/agent-inspector/index.js +90 -72
  3. package/dist/assets/README.md +56 -31
  4. package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +1781 -259
  5. package/dist/assets/__tests__/__snapshots__/dockerfile-render.test.ts.snap +77 -0
  6. package/dist/assets/__tests__/dockerfile-render.test.ts +24 -0
  7. package/dist/assets/agents/AGENTS.md +84 -55
  8. package/dist/assets/cdk/bin/cdk.ts +40 -0
  9. package/dist/assets/cdk/cdk.json +1 -1
  10. package/dist/assets/cdk/lib/cdk-stack.ts +59 -2
  11. package/dist/assets/container/python/Dockerfile +4 -0
  12. package/dist/assets/evaluators/python-lambda/execution-role-policy.json +1 -1
  13. package/dist/assets/harness/invoke.py.template +74 -0
  14. package/dist/assets/python/a2a/googleadk/base/main.py +65 -3
  15. package/dist/assets/python/a2a/langchain_langgraph/base/main.py +64 -1
  16. package/dist/assets/python/a2a/strands/base/main.py +65 -2
  17. package/dist/assets/python/agui/googleadk/base/README.md +30 -0
  18. package/dist/assets/python/agui/googleadk/base/gitignore.template +41 -0
  19. package/dist/assets/python/agui/googleadk/base/main.py +31 -0
  20. package/dist/assets/python/agui/googleadk/base/model/__init__.py +1 -0
  21. package/dist/assets/python/agui/googleadk/base/model/load.py +41 -0
  22. package/dist/assets/python/agui/googleadk/base/pyproject.toml +24 -0
  23. package/dist/assets/python/agui/langchain_langgraph/base/README.md +22 -0
  24. package/dist/assets/python/agui/langchain_langgraph/base/gitignore.template +41 -0
  25. package/dist/assets/python/agui/langchain_langgraph/base/main.py +74 -0
  26. package/dist/assets/python/agui/langchain_langgraph/base/model/__init__.py +1 -0
  27. package/dist/assets/python/agui/langchain_langgraph/base/model/load.py +123 -0
  28. package/dist/assets/python/agui/langchain_langgraph/base/pyproject.toml +30 -0
  29. package/dist/assets/python/agui/strands/base/README.md +22 -0
  30. package/dist/assets/python/agui/strands/base/gitignore.template +41 -0
  31. package/dist/assets/python/agui/strands/base/main.py +43 -0
  32. package/dist/assets/python/agui/strands/base/model/__init__.py +1 -0
  33. package/dist/assets/python/agui/strands/base/model/load.py +123 -0
  34. package/dist/assets/python/agui/strands/base/pyproject.toml +27 -0
  35. package/dist/assets/python/agui/strands/capabilities/memory/__init__.py +1 -0
  36. package/dist/assets/python/agui/strands/capabilities/memory/session.py +38 -0
  37. package/dist/assets/python/http/autogen/base/main.py +61 -1
  38. package/dist/assets/python/http/googleadk/base/main.py +62 -2
  39. package/dist/assets/python/http/langchain_langgraph/base/main.py +61 -1
  40. package/dist/assets/python/http/openaiagents/base/main.py +70 -4
  41. package/dist/assets/python/http/strands/base/main.py +64 -6
  42. package/dist/cli/index.mjs +415 -377
  43. package/dist/lib/constants.d.ts +1 -0
  44. package/dist/lib/constants.d.ts.map +1 -1
  45. package/dist/lib/constants.js +3 -1
  46. package/dist/lib/constants.js.map +1 -1
  47. package/dist/lib/errors/config.d.ts.map +1 -1
  48. package/dist/lib/errors/config.js +5 -2
  49. package/dist/lib/errors/config.js.map +1 -1
  50. package/dist/lib/schemas/io/config-io.d.ts +9 -1
  51. package/dist/lib/schemas/io/config-io.d.ts.map +1 -1
  52. package/dist/lib/schemas/io/config-io.js +14 -0
  53. package/dist/lib/schemas/io/config-io.js.map +1 -1
  54. package/dist/lib/schemas/io/path-resolver.d.ts +12 -0
  55. package/dist/lib/schemas/io/path-resolver.d.ts.map +1 -1
  56. package/dist/lib/schemas/io/path-resolver.js +18 -0
  57. package/dist/lib/schemas/io/path-resolver.js.map +1 -1
  58. package/dist/schema/constants.d.ts +1 -0
  59. package/dist/schema/constants.d.ts.map +1 -1
  60. package/dist/schema/constants.js +8 -1
  61. package/dist/schema/constants.js.map +1 -1
  62. package/dist/schema/schemas/agent-env.d.ts +20 -0
  63. package/dist/schema/schemas/agent-env.d.ts.map +1 -1
  64. package/dist/schema/schemas/agent-env.js +17 -2
  65. package/dist/schema/schemas/agent-env.js.map +1 -1
  66. package/dist/schema/schemas/agentcore-project.d.ts +17 -0
  67. package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
  68. package/dist/schema/schemas/agentcore-project.js +18 -1
  69. package/dist/schema/schemas/agentcore-project.js.map +1 -1
  70. package/dist/schema/schemas/aws-targets.d.ts +3 -0
  71. package/dist/schema/schemas/aws-targets.d.ts.map +1 -1
  72. package/dist/schema/schemas/aws-targets.js +1 -0
  73. package/dist/schema/schemas/aws-targets.js.map +1 -1
  74. package/dist/schema/schemas/deployed-state.d.ts +50 -0
  75. package/dist/schema/schemas/deployed-state.d.ts.map +1 -1
  76. package/dist/schema/schemas/deployed-state.js +15 -1
  77. package/dist/schema/schemas/deployed-state.js.map +1 -1
  78. package/dist/schema/schemas/primitives/harness.d.ts +287 -0
  79. package/dist/schema/schemas/primitives/harness.d.ts.map +1 -0
  80. package/dist/schema/schemas/primitives/harness.js +237 -0
  81. package/dist/schema/schemas/primitives/harness.js.map +1 -0
  82. package/dist/schema/schemas/primitives/index.d.ts +2 -0
  83. package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
  84. package/dist/schema/schemas/primitives/index.js +14 -1
  85. package/dist/schema/schemas/primitives/index.js.map +1 -1
  86. package/package.json +2 -2
  87. package/scripts/bump-version.ts +7 -80
  88. package/scripts/bundle.mjs +57 -3
  89. package/dist/agent-inspector/index.js.map +0 -1
@@ -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
- │ ├── .env.local # API keys (gitignored)
12
- │ ├── agentcore.json # Resource specifications
13
- │ ├── aws-targets.json # Deployment targets
14
- └── cdk/ # CDK infrastructure
15
- ├── app/ # Application code
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
- Or use CDK directly:
48
+ ## Commands
42
49
 
43
- ```bash
44
- cd agentcore/cdk
45
- npx cdk deploy
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 agents, memory, and credentials. See `agentcore/.llm-context/` for
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** where agents, memories, and credentials are top-level arrays in
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
- ## Commands
76
+ ## Resources
57
77
 
58
- | Command | Description |
59
- | -------------------- | ----------------------------------------------- |
60
- | `agentcore create` | Create a new AgentCore project |
61
- | `agentcore add` | Add resources (agent, memory, credential, target) |
62
- | `agentcore remove` | Remove resources |
63
- | `agentcore dev` | Run agent locally |
64
- | `agentcore deploy` | Deploy to AWS |
65
- | `agentcore status` | Show deployment status |
66
- | `agentcore invoke` | Invoke agent (local or deployed) |
67
- | `agentcore package` | Package agent artifacts |
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, LangChain_LangGraph, CrewAI, GoogleADK, OpenAIAgents)
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 Documentation](https://github.com/aws/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/)