@aws/agentcore 0.8.0 → 0.8.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/assets/__tests__/__snapshots__/assets.snapshot.test.ts.snap +11 -3
- package/dist/assets/agents/AGENTS.md +1 -1
- package/dist/assets/cdk/package.json +2 -2
- package/dist/assets/python/a2a/langchain_langgraph/base/main.py +3 -0
- package/dist/assets/python/a2a/langchain_langgraph/base/pyproject.toml +1 -0
- package/dist/assets/python/http/langchain_langgraph/base/main.py +3 -0
- package/dist/assets/python/http/langchain_langgraph/base/pyproject.toml +1 -0
- package/dist/cli/index.mjs +306 -300
- package/dist/lib/constants.d.ts +0 -2
- package/dist/lib/constants.d.ts.map +1 -1
- package/dist/lib/constants.js +1 -9
- package/dist/lib/constants.js.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/dist/lib/index.js +1 -2
- package/dist/lib/index.js.map +1 -1
- package/dist/lib/packaging/helpers.d.ts.map +1 -1
- package/dist/lib/packaging/helpers.js +23 -21
- package/dist/lib/packaging/helpers.js.map +1 -1
- package/dist/lib/packaging/index.d.ts.map +1 -1
- package/dist/lib/packaging/index.js +2 -1
- package/dist/lib/packaging/index.js.map +1 -1
- package/dist/lib/packaging/python.d.ts.map +1 -1
- package/dist/lib/packaging/python.js +2 -1
- package/dist/lib/packaging/python.js.map +1 -1
- package/dist/lib/packaging/uv.d.ts.map +1 -1
- package/dist/lib/packaging/uv.js +1 -1
- package/dist/lib/packaging/uv.js.map +1 -1
- package/dist/lib/schemas/io/config-io.d.ts +7 -2
- package/dist/lib/schemas/io/config-io.d.ts.map +1 -1
- package/dist/lib/schemas/io/config-io.js +20 -8
- package/dist/lib/schemas/io/config-io.js.map +1 -1
- package/dist/schema/constants.d.ts +4 -0
- package/dist/schema/constants.d.ts.map +1 -1
- package/dist/schema/constants.js +4 -2
- package/dist/schema/constants.js.map +1 -1
- package/dist/schema/schemas/agent-env.d.ts +1 -0
- package/dist/schema/schemas/agent-env.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +6 -0
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/aws-targets.d.ts +18 -0
- package/dist/schema/schemas/aws-targets.d.ts.map +1 -1
- package/dist/schema/schemas/aws-targets.js +7 -0
- package/dist/schema/schemas/aws-targets.js.map +1 -1
- package/dist/schema/schemas/mcp.d.ts +11 -0
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -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": "
|
|
361
|
-
"aws-cdk-lib": "2.248.0",
|
|
360
|
+
"@aws/agentcore-cdk": "0.1.0-alpha.19",
|
|
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",
|
|
@@ -4002,7 +4010,7 @@ file maps to a JSON config file and includes validation constraints as comments.
|
|
|
4002
4010
|
|
|
4003
4011
|
- **BuildType**: \`'CodeZip'\` | \`'Container'\`
|
|
4004
4012
|
- **NetworkMode**: \`'PUBLIC'\`
|
|
4005
|
-
- **RuntimeVersion**: \`'PYTHON_3_10'\` | \`'PYTHON_3_11'\` | \`'PYTHON_3_12'\` | \`'PYTHON_3_13'\`
|
|
4013
|
+
- **RuntimeVersion**: \`'PYTHON_3_10'\` | \`'PYTHON_3_11'\` | \`'PYTHON_3_12'\` | \`'PYTHON_3_13'\` | \`'PYTHON_3_14'\`
|
|
4006
4014
|
- **MemoryStrategyType**: \`'SEMANTIC'\` | \`'SUMMARIZATION'\` | \`'USER_PREFERENCE'\` | \`'EPISODIC'\`
|
|
4007
4015
|
|
|
4008
4016
|
### Build Types
|
|
@@ -62,7 +62,7 @@ file maps to a JSON config file and includes validation constraints as comments.
|
|
|
62
62
|
|
|
63
63
|
- **BuildType**: `'CodeZip'` | `'Container'`
|
|
64
64
|
- **NetworkMode**: `'PUBLIC'`
|
|
65
|
-
- **RuntimeVersion**: `'PYTHON_3_10'` | `'PYTHON_3_11'` | `'PYTHON_3_12'` | `'PYTHON_3_13'`
|
|
65
|
+
- **RuntimeVersion**: `'PYTHON_3_10'` | `'PYTHON_3_11'` | `'PYTHON_3_12'` | `'PYTHON_3_13'` | `'PYTHON_3_14'`
|
|
66
66
|
- **MemoryStrategyType**: `'SEMANTIC'` | `'SUMMARIZATION'` | `'USER_PREFERENCE'` | `'EPISODIC'`
|
|
67
67
|
|
|
68
68
|
### Build Types
|
|
@@ -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
|
|