@aws/agentcore 0.7.1 → 0.8.1

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 (34) hide show
  1. package/README.md +39 -13
  2. package/dist/assets/README.md +2 -2
  3. package/dist/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +13 -5
  4. package/dist/assets/agents/AGENTS.md +1 -1
  5. package/dist/assets/cdk/package.json +2 -2
  6. package/dist/assets/python/a2a/langchain_langgraph/base/main.py +3 -0
  7. package/dist/assets/python/a2a/langchain_langgraph/base/pyproject.toml +1 -0
  8. package/dist/assets/python/http/langchain_langgraph/base/main.py +3 -0
  9. package/dist/assets/python/http/langchain_langgraph/base/pyproject.toml +1 -0
  10. package/dist/cli/index.mjs +361 -353
  11. package/dist/lib/constants.d.ts +0 -2
  12. package/dist/lib/constants.d.ts.map +1 -1
  13. package/dist/lib/constants.js +1 -9
  14. package/dist/lib/constants.js.map +1 -1
  15. package/dist/lib/index.d.ts +1 -1
  16. package/dist/lib/index.d.ts.map +1 -1
  17. package/dist/lib/index.js +1 -2
  18. package/dist/lib/index.js.map +1 -1
  19. package/dist/lib/packaging/helpers.d.ts.map +1 -1
  20. package/dist/lib/packaging/helpers.js +23 -21
  21. package/dist/lib/packaging/helpers.js.map +1 -1
  22. package/dist/lib/schemas/io/config-io.d.ts +7 -2
  23. package/dist/lib/schemas/io/config-io.d.ts.map +1 -1
  24. package/dist/lib/schemas/io/config-io.js +20 -8
  25. package/dist/lib/schemas/io/config-io.js.map +1 -1
  26. package/dist/schema/schemas/agentcore-project.d.ts +48 -0
  27. package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
  28. package/dist/schema/schemas/agentcore-project.js +21 -1
  29. package/dist/schema/schemas/agentcore-project.js.map +1 -1
  30. package/dist/schema/schemas/aws-targets.d.ts +18 -0
  31. package/dist/schema/schemas/aws-targets.d.ts.map +1 -1
  32. package/dist/schema/schemas/aws-targets.js +7 -0
  33. package/dist/schema/schemas/aws-targets.js.map +1 -1
  34. package/package.json +3 -3
package/README.md CHANGED
@@ -1,6 +1,12 @@
1
1
  <div align="center">
2
2
  <h1>AgentCore CLI</h1>
3
- <h2>Create, develop, and deploy AI agents to Amazon Bedrock AgentCore</h2>
3
+ <p><strong>Create, develop, and deploy AI agents to Amazon Bedrock AgentCore</strong></p>
4
+
5
+ <p>
6
+ <a href="https://github.com/aws/agentcore-cli/actions/workflows/build-and-test.yml"><img src="https://img.shields.io/github/actions/workflow/status/aws/agentcore-cli/build-and-test.yml?branch=main&label=build" alt="Build Status"></a>
7
+ <a href="https://www.npmjs.com/package/@aws/agentcore"><img src="https://img.shields.io/npm/v/@aws/agentcore" alt="npm version"></a>
8
+ <a href="LICENSE"><img src="https://img.shields.io/github/license/aws/agentcore-cli" alt="License"></a>
9
+ </p>
4
10
  </div>
5
11
 
6
12
  ## Overview
@@ -60,17 +66,18 @@ agentcore invoke
60
66
  | ------------------- | ----------------------------- |
61
67
  | Strands Agents | AWS-native, streaming support |
62
68
  | LangChain/LangGraph | Graph-based workflows |
69
+ | CrewAI | Multi-agent orchestration |
63
70
  | Google ADK | Gemini models only |
64
71
  | OpenAI Agents | OpenAI models only |
65
72
 
66
73
  ## Supported Model Providers
67
74
 
68
- | Provider | API Key Required | Default Model |
69
- | -------------- | ------------------------- | ----------------------------- |
70
- | Amazon Bedrock | No (uses AWS credentials) | claude-sonnet-4-5-20250929-v1 |
71
- | Anthropic | Yes | claude-sonnet-4-5-20250929 |
72
- | Google Gemini | Yes | gemini-2.5-flash |
73
- | OpenAI | Yes | gpt-4o |
75
+ | Provider | API Key Required | Default Model |
76
+ | -------------- | ------------------------- | -------------------------------------------- |
77
+ | Amazon Bedrock | No (uses AWS credentials) | us.anthropic.claude-sonnet-4-5-20250514-v1:0 |
78
+ | Anthropic | Yes | claude-sonnet-4-5-20250514 |
79
+ | Google Gemini | Yes | gemini-2.5-flash |
80
+ | OpenAI | Yes | gpt-4.1 |
74
81
 
75
82
  ## Commands
76
83
 
@@ -85,13 +92,22 @@ agentcore invoke
85
92
 
86
93
  ### Resource Management
87
94
 
88
- | Command | Description |
89
- | -------- | ------------------------------------------------- |
90
- | `add` | Add agents, memory, identity, evaluators, targets |
91
- | `remove` | Remove resources from project |
95
+ | Command | Description |
96
+ | -------- | ---------------------------------------------------- |
97
+ | `add` | Add agents, memory, credentials, evaluators, targets |
98
+ | `remove` | Remove resources from project |
92
99
 
93
100
  > **Note**: Run `agentcore deploy` after `add` or `remove` to update resources in AWS.
94
101
 
102
+ ### Observability
103
+
104
+ | Command | Description |
105
+ | ------------- | --------------------------------------- |
106
+ | `logs` | Stream or search agent runtime logs |
107
+ | `traces list` | List recent traces for a deployed agent |
108
+ | `traces get` | Download a trace to a JSON file |
109
+ | `status` | Show deployed resource details |
110
+
95
111
  ### Evaluations
96
112
 
97
113
  | Command | Description |
@@ -102,6 +118,16 @@ agentcore invoke
102
118
  | `evals history` | View past eval run results |
103
119
  | `pause online-eval` | Pause a deployed online eval config |
104
120
  | `resume online-eval` | Resume a paused online eval config |
121
+ | `logs evals` | Stream or search online eval logs |
122
+
123
+ ### Utilities
124
+
125
+ | Command | Description |
126
+ | -------------- | ----------------------------------------- |
127
+ | `validate` | Validate configuration files |
128
+ | `package` | Package agent artifacts without deploying |
129
+ | `fetch access` | Fetch access info for deployed resources |
130
+ | `update` | Check for and install CLI updates |
105
131
 
106
132
  ## Project Structure
107
133
 
@@ -129,7 +155,7 @@ my-project/
129
155
 
130
156
  Projects use JSON schema files in the `agentcore/` directory:
131
157
 
132
- - `agentcore.json` - Agent specifications, memory, identity, evaluators, online evals
158
+ - `agentcore.json` - Agent specifications, memory, credentials, evaluators, online evals
133
159
  - `deployed-state.json` - Runtime state in agentcore/.cli/ (auto-managed)
134
160
  - `aws-targets.json` - Deployment targets (account, region)
135
161
 
@@ -137,7 +163,7 @@ Projects use JSON schema files in the `agentcore/` directory:
137
163
 
138
164
  - **Runtime** - Managed execution environment for deployed agents
139
165
  - **Memory** - Semantic, summarization, and user preference strategies
140
- - **Identity** - Secure API key management via Secrets Manager
166
+ - **Credentials** - Secure API key management via Secrets Manager
141
167
  - **Evaluations** - LLM-as-a-Judge for on-demand and continuous agent quality monitoring
142
168
 
143
169
  ## Documentation
@@ -58,7 +58,7 @@ The project uses a **flat resource model** where agents, memories, and credentia
58
58
  | Command | Description |
59
59
  | -------------------- | ----------------------------------------------- |
60
60
  | `agentcore create` | Create a new AgentCore project |
61
- | `agentcore add` | Add resources (agent, memory, identity, target) |
61
+ | `agentcore add` | Add resources (agent, memory, credential, target) |
62
62
  | `agentcore remove` | Remove resources |
63
63
  | `agentcore dev` | Run agent locally |
64
64
  | `agentcore deploy` | Deploy to AWS |
@@ -70,7 +70,7 @@ The project uses a **flat resource model** where agents, memories, and credentia
70
70
 
71
71
  ### Agent Types
72
72
 
73
- - **Template agents**: Created from framework templates (Strands, LangChain_LangGraph, GoogleADK, OpenAIAgents)
73
+ - **Template agents**: Created from framework templates (Strands, LangChain_LangGraph, CrewAI, GoogleADK, OpenAIAgents)
74
74
  - **BYO agents**: Bring your own code with `agentcore add agent --type byo`
75
75
 
76
76
  ## Documentation
@@ -357,8 +357,8 @@ exports[`Assets Directory Snapshots > CDK assets > cdk/cdk/package.json should m
357
357
  "typescript": "~5.9.3"
358
358
  },
359
359
  "dependencies": {
360
- "@aws/agentcore-cdk": "^0.1.0-alpha.1",
361
- "aws-cdk-lib": "2.243.0",
360
+ "@aws/agentcore-cdk": "0.1.0-alpha.18",
361
+ "aws-cdk-lib": "^2.248.0",
362
362
  "constructs": "^10.0.0"
363
363
  }
364
364
  }
@@ -1167,6 +1167,7 @@ Thumbs.db
1167
1167
  exports[`Assets Directory Snapshots > Python framework assets > python/python/a2a/langchain_langgraph/base/main.py should match snapshot 1`] = `
1168
1168
  "from langchain_core.tools import tool
1169
1169
  from langgraph.prebuilt import create_react_agent
1170
+ from opentelemetry.instrumentation.langchain import LangchainInstrumentor
1170
1171
  from a2a.server.agent_execution import AgentExecutor, RequestContext
1171
1172
  from a2a.server.events import EventQueue
1172
1173
  from a2a.server.tasks import TaskUpdater
@@ -1175,6 +1176,8 @@ from a2a.utils import new_task
1175
1176
  from bedrock_agentcore.runtime import serve_a2a
1176
1177
  from model.load import load_model
1177
1178
 
1179
+ LangchainInstrumentor().instrument()
1180
+
1178
1181
 
1179
1182
  @tool
1180
1183
  def add_numbers(a: int, b: int) -> int:
@@ -1382,6 +1385,7 @@ dependencies = [
1382
1385
  {{/if}}{{#if (eq modelProvider "Gemini")}}"langchain-google-genai >= 2.0.0",
1383
1386
  {{/if}}{{#if (eq modelProvider "OpenAI")}}"langchain-openai >= 0.2.0",
1384
1387
  {{/if}}"aws-opentelemetry-distro",
1388
+ "opentelemetry-instrumentation-langchain >= 0.59.0",
1385
1389
  "bedrock-agentcore[a2a] >= 1.0.3",
1386
1390
  "botocore[crt] >= 1.35.0",
1387
1391
  "langgraph >= 0.2.0",
@@ -2526,6 +2530,7 @@ exports[`Assets Directory Snapshots > Python framework assets > python/python/ht
2526
2530
  from langchain_core.messages import HumanMessage
2527
2531
  from langgraph.prebuilt import create_react_agent
2528
2532
  from langchain.tools import tool
2533
+ from opentelemetry.instrumentation.langchain import LangchainInstrumentor
2529
2534
  from bedrock_agentcore.runtime import BedrockAgentCoreApp
2530
2535
  from model.load import load_model
2531
2536
  {{#if hasGateway}}
@@ -2534,6 +2539,8 @@ from mcp_client.client import get_all_gateway_mcp_client
2534
2539
  from mcp_client.client import get_streamable_http_mcp_client
2535
2540
  {{/if}}
2536
2541
 
2542
+ LangchainInstrumentor().instrument()
2543
+
2537
2544
  app = BedrockAgentCoreApp()
2538
2545
  log = app.logger
2539
2546
 
@@ -2825,6 +2832,7 @@ readme = "README.md"
2825
2832
  requires-python = ">=3.10"
2826
2833
  dependencies = [
2827
2834
  "aws-opentelemetry-distro",
2835
+ "opentelemetry-instrumentation-langchain >= 0.59.0",
2828
2836
  "langgraph >= 1.0.2",
2829
2837
  "mcp >= 1.19.0",
2830
2838
  "langchain-mcp-adapters >= 0.1.11",
@@ -3915,7 +3923,7 @@ The project uses a **flat resource model** where agents, memories, and credentia
3915
3923
  | Command | Description |
3916
3924
  | -------------------- | ----------------------------------------------- |
3917
3925
  | \`agentcore create\` | Create a new AgentCore project |
3918
- | \`agentcore add\` | Add resources (agent, memory, identity, target) |
3926
+ | \`agentcore add\` | Add resources (agent, memory, credential, target) |
3919
3927
  | \`agentcore remove\` | Remove resources |
3920
3928
  | \`agentcore dev\` | Run agent locally |
3921
3929
  | \`agentcore deploy\` | Deploy to AWS |
@@ -3927,7 +3935,7 @@ The project uses a **flat resource model** where agents, memories, and credentia
3927
3935
 
3928
3936
  ### Agent Types
3929
3937
 
3930
- - **Template agents**: Created from framework templates (Strands, LangChain_LangGraph, GoogleADK, OpenAIAgents)
3938
+ - **Template agents**: Created from framework templates (Strands, LangChain_LangGraph, CrewAI, GoogleADK, OpenAIAgents)
3931
3939
  - **BYO agents**: Bring your own code with \`agentcore add agent --type byo\`
3932
3940
 
3933
3941
  ## Documentation
@@ -4019,7 +4027,7 @@ file maps to a JSON config file and includes validation constraints as comments.
4019
4027
  - **LangChain_LangGraph** - Works with Bedrock, Anthropic, OpenAI, Gemini
4020
4028
  - **GoogleADK** - Gemini only
4021
4029
  - **OpenAIAgents** - OpenAI only
4022
- - **AutoGen** - Works with Bedrock, Anthropic, OpenAI, Gemini
4030
+
4023
4031
 
4024
4032
  ### Specific Context
4025
4033
 
@@ -79,7 +79,7 @@ file maps to a JSON config file and includes validation constraints as comments.
79
79
  - **LangChain_LangGraph** - Works with Bedrock, Anthropic, OpenAI, Gemini
80
80
  - **GoogleADK** - Gemini only
81
81
  - **OpenAIAgents** - OpenAI only
82
- - **AutoGen** - Works with Bedrock, Anthropic, OpenAI, Gemini
82
+
83
83
 
84
84
  ### Specific Context
85
85
 
@@ -23,8 +23,8 @@
23
23
  "typescript": "~5.9.3"
24
24
  },
25
25
  "dependencies": {
26
- "@aws/agentcore-cdk": "^0.1.0-alpha.1",
27
- "aws-cdk-lib": "2.243.0",
26
+ "@aws/agentcore-cdk": "0.1.0-alpha.18",
27
+ "aws-cdk-lib": "^2.248.0",
28
28
  "constructs": "^10.0.0"
29
29
  }
30
30
  }
@@ -1,5 +1,6 @@
1
1
  from langchain_core.tools import tool
2
2
  from langgraph.prebuilt import create_react_agent
3
+ from opentelemetry.instrumentation.langchain import LangchainInstrumentor
3
4
  from a2a.server.agent_execution import AgentExecutor, RequestContext
4
5
  from a2a.server.events import EventQueue
5
6
  from a2a.server.tasks import TaskUpdater
@@ -8,6 +9,8 @@ from a2a.utils import new_task
8
9
  from bedrock_agentcore.runtime import serve_a2a
9
10
  from model.load import load_model
10
11
 
12
+ LangchainInstrumentor().instrument()
13
+
11
14
 
12
15
  @tool
13
16
  def add_numbers(a: int, b: int) -> int:
@@ -15,6 +15,7 @@ dependencies = [
15
15
  {{/if}}{{#if (eq modelProvider "Gemini")}}"langchain-google-genai >= 2.0.0",
16
16
  {{/if}}{{#if (eq modelProvider "OpenAI")}}"langchain-openai >= 0.2.0",
17
17
  {{/if}}"aws-opentelemetry-distro",
18
+ "opentelemetry-instrumentation-langchain >= 0.59.0",
18
19
  "bedrock-agentcore[a2a] >= 1.0.3",
19
20
  "botocore[crt] >= 1.35.0",
20
21
  "langgraph >= 0.2.0",
@@ -2,6 +2,7 @@ import os
2
2
  from langchain_core.messages import HumanMessage
3
3
  from langgraph.prebuilt import create_react_agent
4
4
  from langchain.tools import tool
5
+ from opentelemetry.instrumentation.langchain import LangchainInstrumentor
5
6
  from bedrock_agentcore.runtime import BedrockAgentCoreApp
6
7
  from model.load import load_model
7
8
  {{#if hasGateway}}
@@ -10,6 +11,8 @@ from mcp_client.client import get_all_gateway_mcp_client
10
11
  from mcp_client.client import get_streamable_http_mcp_client
11
12
  {{/if}}
12
13
 
14
+ LangchainInstrumentor().instrument()
15
+
13
16
  app = BedrockAgentCoreApp()
14
17
  log = app.logger
15
18
 
@@ -10,6 +10,7 @@ readme = "README.md"
10
10
  requires-python = ">=3.10"
11
11
  dependencies = [
12
12
  "aws-opentelemetry-distro",
13
+ "opentelemetry-instrumentation-langchain >= 0.59.0",
13
14
  "langgraph >= 1.0.2",
14
15
  "mcp >= 1.19.0",
15
16
  "langchain-mcp-adapters >= 0.1.11",