@aws/agentcore 1.0.0-preview.23 → 1.0.0-preview.24
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 +31 -19
- package/dist/assets/mcp/python/pyproject.toml +1 -1
- package/dist/assets/python/a2a/googleadk/base/main.py +8 -2
- package/dist/assets/python/a2a/googleadk/base/pyproject.toml +4 -4
- package/dist/assets/python/a2a/langchain_langgraph/base/main.py +11 -5
- package/dist/assets/python/a2a/langchain_langgraph/base/pyproject.toml +2 -2
- package/dist/assets/python/a2a/strands/base/pyproject.toml +1 -1
- package/dist/assets/python/http/langchain_langgraph/base/pyproject.toml +2 -2
- package/dist/assets/python/http/strands/base/pyproject.toml +1 -1
- package/dist/assets/python/mcp/standalone/base/pyproject.toml +1 -1
- package/dist/cli/index.mjs +497 -496
- package/npm-shrinkwrap.json +231 -373
- package/package.json +4 -1
- package/scripts/extract-cli-model.mjs +47 -6
- package/scripts/extract-cli-model.test.mjs +43 -0
- package/scripts/render_adoc.py +81 -5
- package/scripts/safe-junit-reporter.ts +7 -0
- package/scripts/sanitize-test-artifacts.ts +65 -0
- package/scripts/test_render_adoc.py +38 -0
|
@@ -904,7 +904,7 @@ description = "MCP Server demonstrating HTTP tool patterns"
|
|
|
904
904
|
readme = "README.md"
|
|
905
905
|
requires-python = ">=3.10"
|
|
906
906
|
dependencies = [
|
|
907
|
-
"mcp[cli]
|
|
907
|
+
"mcp[cli] ~= 1.24.0",
|
|
908
908
|
"httpx >= 0.27.0",
|
|
909
909
|
"opentelemetry-distro",
|
|
910
910
|
"opentelemetry-exporter-otlp",
|
|
@@ -1311,7 +1311,7 @@ from google.adk.agents import Agent
|
|
|
1311
1311
|
from google.adk.a2a.executor.a2a_agent_executor import A2aAgentExecutor
|
|
1312
1312
|
from google.adk.runners import Runner
|
|
1313
1313
|
from google.adk.sessions import InMemorySessionService
|
|
1314
|
-
from a2a.types import AgentCapabilities, AgentCard, AgentSkill
|
|
1314
|
+
from a2a.types import AgentCapabilities, AgentCard, AgentInterface, AgentSkill
|
|
1315
1315
|
from bedrock_agentcore.runtime import serve_a2a
|
|
1316
1316
|
from model.load import load_model
|
|
1317
1317
|
|
|
@@ -1405,7 +1405,6 @@ runner = Runner(
|
|
|
1405
1405
|
card = AgentCard(
|
|
1406
1406
|
name=agent.name,
|
|
1407
1407
|
description=agent.description,
|
|
1408
|
-
url="http://localhost:9000/",
|
|
1409
1408
|
version="0.1.0",
|
|
1410
1409
|
capabilities=AgentCapabilities(streaming=True),
|
|
1411
1410
|
skills=[
|
|
@@ -1418,6 +1417,13 @@ card = AgentCard(
|
|
|
1418
1417
|
],
|
|
1419
1418
|
default_input_modes=["text"],
|
|
1420
1419
|
default_output_modes=["text"],
|
|
1420
|
+
supported_interfaces=[
|
|
1421
|
+
AgentInterface(
|
|
1422
|
+
protocol_binding="JSONRPC",
|
|
1423
|
+
protocol_version="1.0",
|
|
1424
|
+
url="http://localhost:9000/",
|
|
1425
|
+
)
|
|
1426
|
+
],
|
|
1421
1427
|
)
|
|
1422
1428
|
|
|
1423
1429
|
if __name__ == "__main__":
|
|
@@ -1487,11 +1493,11 @@ description = "AgentCore A2A Agent using Google ADK"
|
|
|
1487
1493
|
readme = "README.md"
|
|
1488
1494
|
requires-python = ">=3.10"
|
|
1489
1495
|
dependencies = [
|
|
1490
|
-
"a2a-sdk >= 0.
|
|
1496
|
+
"a2a-sdk[http-server] >= 1.0.1, < 2.0.0",
|
|
1491
1497
|
"aws-opentelemetry-distro",
|
|
1492
|
-
"bedrock-agentcore[a2a] >= 1.0
|
|
1493
|
-
"google-adk >=
|
|
1494
|
-
"google-genai >=
|
|
1498
|
+
"bedrock-agentcore[a2a-v1] >= 1.19.0",
|
|
1499
|
+
"google-adk[a2a] >= 2.5.0, < 3.0.0",
|
|
1500
|
+
"google-genai >= 2.9.0, < 3.0.0",
|
|
1495
1501
|
# 1.13.0 was yanked for broken imports.
|
|
1496
1502
|
"opentelemetry-resourcedetector-gcp >= 1.9.0a0, < 2.0.0, != 1.13.0",
|
|
1497
1503
|
]
|
|
@@ -1579,11 +1585,11 @@ import os
|
|
|
1579
1585
|
from langchain_core.tools import tool
|
|
1580
1586
|
from langgraph.prebuilt import create_react_agent
|
|
1581
1587
|
from opentelemetry.instrumentation.langchain import LangchainInstrumentor
|
|
1588
|
+
from a2a.helpers import new_task_from_user_message
|
|
1582
1589
|
from a2a.server.agent_execution import AgentExecutor, RequestContext
|
|
1583
1590
|
from a2a.server.events import EventQueue
|
|
1584
1591
|
from a2a.server.tasks import TaskUpdater
|
|
1585
|
-
from a2a.types import AgentCapabilities, AgentCard, AgentSkill, Part
|
|
1586
|
-
from a2a.utils import new_task
|
|
1592
|
+
from a2a.types import AgentCapabilities, AgentCard, AgentInterface, AgentSkill, Part
|
|
1587
1593
|
from bedrock_agentcore.runtime import serve_a2a
|
|
1588
1594
|
from model.load import load_model
|
|
1589
1595
|
|
|
@@ -1675,7 +1681,7 @@ class LangGraphA2AExecutor(AgentExecutor):
|
|
|
1675
1681
|
self.graph = graph
|
|
1676
1682
|
|
|
1677
1683
|
async def execute(self, context: RequestContext, event_queue: EventQueue) -> None:
|
|
1678
|
-
task = context.current_task or
|
|
1684
|
+
task = context.current_task or new_task_from_user_message(context.message)
|
|
1679
1685
|
if not context.current_task:
|
|
1680
1686
|
await event_queue.enqueue_event(task)
|
|
1681
1687
|
updater = TaskUpdater(event_queue, task.id, task.context_id)
|
|
@@ -1684,7 +1690,7 @@ class LangGraphA2AExecutor(AgentExecutor):
|
|
|
1684
1690
|
result = await self.graph.ainvoke({"messages": [("user", user_text)]})
|
|
1685
1691
|
response = result["messages"][-1].content
|
|
1686
1692
|
|
|
1687
|
-
await updater.add_artifact([Part(
|
|
1693
|
+
await updater.add_artifact([Part(text=response)])
|
|
1688
1694
|
await updater.complete()
|
|
1689
1695
|
|
|
1690
1696
|
async def cancel(self, context: RequestContext, event_queue: EventQueue) -> None:
|
|
@@ -1694,7 +1700,6 @@ class LangGraphA2AExecutor(AgentExecutor):
|
|
|
1694
1700
|
card = AgentCard(
|
|
1695
1701
|
name="{{ name }}",
|
|
1696
1702
|
description="A LangGraph agent on Bedrock AgentCore",
|
|
1697
|
-
url="http://localhost:9000/",
|
|
1698
1703
|
version="0.1.0",
|
|
1699
1704
|
capabilities=AgentCapabilities(streaming=True),
|
|
1700
1705
|
skills=[
|
|
@@ -1707,6 +1712,13 @@ card = AgentCard(
|
|
|
1707
1712
|
],
|
|
1708
1713
|
default_input_modes=["text"],
|
|
1709
1714
|
default_output_modes=["text"],
|
|
1715
|
+
supported_interfaces=[
|
|
1716
|
+
AgentInterface(
|
|
1717
|
+
protocol_binding="JSONRPC",
|
|
1718
|
+
protocol_version="1.0",
|
|
1719
|
+
url="http://localhost:9000/",
|
|
1720
|
+
)
|
|
1721
|
+
],
|
|
1710
1722
|
)
|
|
1711
1723
|
|
|
1712
1724
|
if __name__ == "__main__":
|
|
@@ -1858,7 +1870,7 @@ description = "AgentCore A2A Agent using LangChain + LangGraph"
|
|
|
1858
1870
|
readme = "README.md"
|
|
1859
1871
|
requires-python = ">=3.10"
|
|
1860
1872
|
dependencies = [
|
|
1861
|
-
"a2a-sdk >= 0.
|
|
1873
|
+
"a2a-sdk[http-server] >= 1.0.1, < 2.0.0",
|
|
1862
1874
|
{{#if (eq modelProvider "Anthropic")}}"langchain-anthropic >= 0.3.0",
|
|
1863
1875
|
{{/if}}{{#if (eq modelProvider "Bedrock")}}"langchain-aws >= 0.2.0",
|
|
1864
1876
|
{{/if}}{{#if (eq modelProvider "Gemini")}}"langchain-google-genai >= 2.0.0",
|
|
@@ -1866,7 +1878,7 @@ dependencies = [
|
|
|
1866
1878
|
{{/if}}{{#if (eq modelProvider "OpenAI")}}"langchain-openai >= 0.2.0",
|
|
1867
1879
|
{{/if}}"aws-opentelemetry-distro",
|
|
1868
1880
|
"opentelemetry-instrumentation-langchain >= 0.59.0",
|
|
1869
|
-
"bedrock-agentcore[a2a] >= 1.
|
|
1881
|
+
"bedrock-agentcore[a2a-v1] >= 1.19.0",
|
|
1870
1882
|
"botocore[crt] >= 1.35.0",
|
|
1871
1883
|
"langgraph >= 0.2.0",
|
|
1872
1884
|
]
|
|
@@ -2209,7 +2221,7 @@ readme = "README.md"
|
|
|
2209
2221
|
requires-python = ">=3.10"
|
|
2210
2222
|
dependencies = [
|
|
2211
2223
|
{{#if (eq modelProvider "Anthropic")}}"anthropic >= 0.30.0",
|
|
2212
|
-
{{/if}}"a2a-sdk[all] >= 0.
|
|
2224
|
+
{{/if}}"a2a-sdk[all] >= 0.3.0, < 0.4.0",
|
|
2213
2225
|
"aws-opentelemetry-distro",
|
|
2214
2226
|
"bedrock-agentcore[a2a] >= 1.9.1",
|
|
2215
2227
|
"botocore[crt] >= 1.35.0",
|
|
@@ -4768,8 +4780,8 @@ dependencies = [
|
|
|
4768
4780
|
"aws-opentelemetry-distro",
|
|
4769
4781
|
"opentelemetry-instrumentation-langchain >= 0.59.0",
|
|
4770
4782
|
"langgraph >= 1.0.2",
|
|
4771
|
-
"mcp
|
|
4772
|
-
"langchain-mcp-adapters >= 0.
|
|
4783
|
+
"mcp ~= 1.24.0",
|
|
4784
|
+
"langchain-mcp-adapters >= 0.3.1",
|
|
4773
4785
|
"langchain >= 1.0.3",
|
|
4774
4786
|
"bedrock-agentcore >= 1.8.0",
|
|
4775
4787
|
"botocore[crt] >= 1.35.0",
|
|
@@ -6425,7 +6437,7 @@ dependencies = [
|
|
|
6425
6437
|
"bedrock-agentcore >= 1.9.1",
|
|
6426
6438
|
"botocore[crt] >= 1.35.0",
|
|
6427
6439
|
{{#if (eq modelProvider "Gemini")}}"google-genai >= 1.0.0",
|
|
6428
|
-
{{/if}}"mcp
|
|
6440
|
+
{{/if}}"mcp ~= 1.24.0",
|
|
6429
6441
|
{{#if (eq modelProvider "OpenAI")}}"openai >= 1.0.0",
|
|
6430
6442
|
{{/if}}{{#if (eq modelProvider "LiteLLM")}}"litellm >= 1.0.0",
|
|
6431
6443
|
{{/if}}{{#if bedrockMantle}}"openai >= 1.0.0",
|
|
@@ -7178,7 +7190,7 @@ description = "AgentCore MCP Server"
|
|
|
7178
7190
|
readme = "README.md"
|
|
7179
7191
|
requires-python = ">=3.10"
|
|
7180
7192
|
dependencies = [
|
|
7181
|
-
"mcp
|
|
7193
|
+
"mcp ~= 1.24.0",
|
|
7182
7194
|
]
|
|
7183
7195
|
|
|
7184
7196
|
[tool.hatch.build.targets.wheel]
|
|
@@ -9,7 +9,7 @@ description = "MCP Server demonstrating HTTP tool patterns"
|
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
11
11
|
dependencies = [
|
|
12
|
-
"mcp[cli]
|
|
12
|
+
"mcp[cli] ~= 1.24.0",
|
|
13
13
|
"httpx >= 0.27.0",
|
|
14
14
|
"opentelemetry-distro",
|
|
15
15
|
"opentelemetry-exporter-otlp",
|
|
@@ -5,7 +5,7 @@ from google.adk.agents import Agent
|
|
|
5
5
|
from google.adk.a2a.executor.a2a_agent_executor import A2aAgentExecutor
|
|
6
6
|
from google.adk.runners import Runner
|
|
7
7
|
from google.adk.sessions import InMemorySessionService
|
|
8
|
-
from a2a.types import AgentCapabilities, AgentCard, AgentSkill
|
|
8
|
+
from a2a.types import AgentCapabilities, AgentCard, AgentInterface, AgentSkill
|
|
9
9
|
from bedrock_agentcore.runtime import serve_a2a
|
|
10
10
|
from model.load import load_model
|
|
11
11
|
|
|
@@ -99,7 +99,6 @@ runner = Runner(
|
|
|
99
99
|
card = AgentCard(
|
|
100
100
|
name=agent.name,
|
|
101
101
|
description=agent.description,
|
|
102
|
-
url="http://localhost:9000/",
|
|
103
102
|
version="0.1.0",
|
|
104
103
|
capabilities=AgentCapabilities(streaming=True),
|
|
105
104
|
skills=[
|
|
@@ -112,6 +111,13 @@ card = AgentCard(
|
|
|
112
111
|
],
|
|
113
112
|
default_input_modes=["text"],
|
|
114
113
|
default_output_modes=["text"],
|
|
114
|
+
supported_interfaces=[
|
|
115
|
+
AgentInterface(
|
|
116
|
+
protocol_binding="JSONRPC",
|
|
117
|
+
protocol_version="1.0",
|
|
118
|
+
url="http://localhost:9000/",
|
|
119
|
+
)
|
|
120
|
+
],
|
|
115
121
|
)
|
|
116
122
|
|
|
117
123
|
if __name__ == "__main__":
|
|
@@ -9,11 +9,11 @@ description = "AgentCore A2A Agent using Google ADK"
|
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
11
11
|
dependencies = [
|
|
12
|
-
"a2a-sdk >= 0.
|
|
12
|
+
"a2a-sdk[http-server] >= 1.0.1, < 2.0.0",
|
|
13
13
|
"aws-opentelemetry-distro",
|
|
14
|
-
"bedrock-agentcore[a2a] >= 1.0
|
|
15
|
-
"google-adk >=
|
|
16
|
-
"google-genai >=
|
|
14
|
+
"bedrock-agentcore[a2a-v1] >= 1.19.0",
|
|
15
|
+
"google-adk[a2a] >= 2.5.0, < 3.0.0",
|
|
16
|
+
"google-genai >= 2.9.0, < 3.0.0",
|
|
17
17
|
# 1.13.0 was yanked for broken imports.
|
|
18
18
|
"opentelemetry-resourcedetector-gcp >= 1.9.0a0, < 2.0.0, != 1.13.0",
|
|
19
19
|
]
|
|
@@ -4,11 +4,11 @@ import os
|
|
|
4
4
|
from langchain_core.tools import tool
|
|
5
5
|
from langgraph.prebuilt import create_react_agent
|
|
6
6
|
from opentelemetry.instrumentation.langchain import LangchainInstrumentor
|
|
7
|
+
from a2a.helpers import new_task_from_user_message
|
|
7
8
|
from a2a.server.agent_execution import AgentExecutor, RequestContext
|
|
8
9
|
from a2a.server.events import EventQueue
|
|
9
10
|
from a2a.server.tasks import TaskUpdater
|
|
10
|
-
from a2a.types import AgentCapabilities, AgentCard, AgentSkill, Part
|
|
11
|
-
from a2a.utils import new_task
|
|
11
|
+
from a2a.types import AgentCapabilities, AgentCard, AgentInterface, AgentSkill, Part
|
|
12
12
|
from bedrock_agentcore.runtime import serve_a2a
|
|
13
13
|
from model.load import load_model
|
|
14
14
|
|
|
@@ -100,7 +100,7 @@ class LangGraphA2AExecutor(AgentExecutor):
|
|
|
100
100
|
self.graph = graph
|
|
101
101
|
|
|
102
102
|
async def execute(self, context: RequestContext, event_queue: EventQueue) -> None:
|
|
103
|
-
task = context.current_task or
|
|
103
|
+
task = context.current_task or new_task_from_user_message(context.message)
|
|
104
104
|
if not context.current_task:
|
|
105
105
|
await event_queue.enqueue_event(task)
|
|
106
106
|
updater = TaskUpdater(event_queue, task.id, task.context_id)
|
|
@@ -109,7 +109,7 @@ class LangGraphA2AExecutor(AgentExecutor):
|
|
|
109
109
|
result = await self.graph.ainvoke({"messages": [("user", user_text)]})
|
|
110
110
|
response = result["messages"][-1].content
|
|
111
111
|
|
|
112
|
-
await updater.add_artifact([Part(
|
|
112
|
+
await updater.add_artifact([Part(text=response)])
|
|
113
113
|
await updater.complete()
|
|
114
114
|
|
|
115
115
|
async def cancel(self, context: RequestContext, event_queue: EventQueue) -> None:
|
|
@@ -119,7 +119,6 @@ class LangGraphA2AExecutor(AgentExecutor):
|
|
|
119
119
|
card = AgentCard(
|
|
120
120
|
name="{{ name }}",
|
|
121
121
|
description="A LangGraph agent on Bedrock AgentCore",
|
|
122
|
-
url="http://localhost:9000/",
|
|
123
122
|
version="0.1.0",
|
|
124
123
|
capabilities=AgentCapabilities(streaming=True),
|
|
125
124
|
skills=[
|
|
@@ -132,6 +131,13 @@ card = AgentCard(
|
|
|
132
131
|
],
|
|
133
132
|
default_input_modes=["text"],
|
|
134
133
|
default_output_modes=["text"],
|
|
134
|
+
supported_interfaces=[
|
|
135
|
+
AgentInterface(
|
|
136
|
+
protocol_binding="JSONRPC",
|
|
137
|
+
protocol_version="1.0",
|
|
138
|
+
url="http://localhost:9000/",
|
|
139
|
+
)
|
|
140
|
+
],
|
|
135
141
|
)
|
|
136
142
|
|
|
137
143
|
if __name__ == "__main__":
|
|
@@ -9,7 +9,7 @@ description = "AgentCore A2A Agent using LangChain + LangGraph"
|
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
11
11
|
dependencies = [
|
|
12
|
-
"a2a-sdk >= 0.
|
|
12
|
+
"a2a-sdk[http-server] >= 1.0.1, < 2.0.0",
|
|
13
13
|
{{#if (eq modelProvider "Anthropic")}}"langchain-anthropic >= 0.3.0",
|
|
14
14
|
{{/if}}{{#if (eq modelProvider "Bedrock")}}"langchain-aws >= 0.2.0",
|
|
15
15
|
{{/if}}{{#if (eq modelProvider "Gemini")}}"langchain-google-genai >= 2.0.0",
|
|
@@ -17,7 +17,7 @@ dependencies = [
|
|
|
17
17
|
{{/if}}{{#if (eq modelProvider "OpenAI")}}"langchain-openai >= 0.2.0",
|
|
18
18
|
{{/if}}"aws-opentelemetry-distro",
|
|
19
19
|
"opentelemetry-instrumentation-langchain >= 0.59.0",
|
|
20
|
-
"bedrock-agentcore[a2a] >= 1.
|
|
20
|
+
"bedrock-agentcore[a2a-v1] >= 1.19.0",
|
|
21
21
|
"botocore[crt] >= 1.35.0",
|
|
22
22
|
"langgraph >= 0.2.0",
|
|
23
23
|
]
|
|
@@ -10,7 +10,7 @@ readme = "README.md"
|
|
|
10
10
|
requires-python = ">=3.10"
|
|
11
11
|
dependencies = [
|
|
12
12
|
{{#if (eq modelProvider "Anthropic")}}"anthropic >= 0.30.0",
|
|
13
|
-
{{/if}}"a2a-sdk[all] >= 0.
|
|
13
|
+
{{/if}}"a2a-sdk[all] >= 0.3.0, < 0.4.0",
|
|
14
14
|
"aws-opentelemetry-distro",
|
|
15
15
|
"bedrock-agentcore[a2a] >= 1.9.1",
|
|
16
16
|
"botocore[crt] >= 1.35.0",
|
|
@@ -12,8 +12,8 @@ dependencies = [
|
|
|
12
12
|
"aws-opentelemetry-distro",
|
|
13
13
|
"opentelemetry-instrumentation-langchain >= 0.59.0",
|
|
14
14
|
"langgraph >= 1.0.2",
|
|
15
|
-
"mcp
|
|
16
|
-
"langchain-mcp-adapters >= 0.
|
|
15
|
+
"mcp ~= 1.24.0",
|
|
16
|
+
"langchain-mcp-adapters >= 0.3.1",
|
|
17
17
|
"langchain >= 1.0.3",
|
|
18
18
|
"bedrock-agentcore >= 1.8.0",
|
|
19
19
|
"botocore[crt] >= 1.35.0",
|
|
@@ -14,7 +14,7 @@ dependencies = [
|
|
|
14
14
|
"bedrock-agentcore >= 1.9.1",
|
|
15
15
|
"botocore[crt] >= 1.35.0",
|
|
16
16
|
{{#if (eq modelProvider "Gemini")}}"google-genai >= 1.0.0",
|
|
17
|
-
{{/if}}"mcp
|
|
17
|
+
{{/if}}"mcp ~= 1.24.0",
|
|
18
18
|
{{#if (eq modelProvider "OpenAI")}}"openai >= 1.0.0",
|
|
19
19
|
{{/if}}{{#if (eq modelProvider "LiteLLM")}}"litellm >= 1.0.0",
|
|
20
20
|
{{/if}}{{#if bedrockMantle}}"openai >= 1.0.0",
|