@aws/agentcore 0.8.0 → 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.
@@ -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.248.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",
@@ -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.248.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",