@aws/agentcore 0.3.0-preview.8.0 → 0.3.0-preview.9.0
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 +6 -4
- package/dist/assets/agents/AGENTS.md +1 -1
- package/dist/assets/python/http/langchain_langgraph/base/main.py +4 -1
- package/dist/assets/python/http/langchain_langgraph/base/pyproject.toml +1 -2
- package/dist/cli/index.mjs +342 -325
- package/dist/schema/schemas/agent-env.d.ts +47 -0
- package/dist/schema/schemas/agent-env.d.ts.map +1 -1
- package/dist/schema/schemas/agent-env.js +48 -1
- package/dist/schema/schemas/agent-env.js.map +1 -1
- package/dist/schema/schemas/agentcore-project.d.ts +43 -5
- package/dist/schema/schemas/agentcore-project.d.ts.map +1 -1
- package/dist/schema/schemas/agentcore-project.js +4 -3
- package/dist/schema/schemas/agentcore-project.js.map +1 -1
- package/dist/schema/schemas/auth.d.ts +140 -0
- package/dist/schema/schemas/auth.d.ts.map +1 -0
- package/dist/schema/schemas/auth.js +114 -0
- package/dist/schema/schemas/auth.js.map +1 -0
- package/dist/schema/schemas/deployed-state.js +2 -2
- package/dist/schema/schemas/deployed-state.js.map +1 -1
- package/dist/schema/schemas/index.d.ts +1 -0
- package/dist/schema/schemas/index.d.ts.map +1 -1
- package/dist/schema/schemas/index.js +1 -0
- package/dist/schema/schemas/index.js.map +1 -1
- package/dist/schema/schemas/mcp.d.ts +0 -103
- package/dist/schema/schemas/mcp.d.ts.map +1 -1
- package/dist/schema/schemas/mcp.js +6 -105
- package/dist/schema/schemas/mcp.js.map +1 -1
- package/dist/schema/schemas/primitives/index.d.ts +1 -1
- package/dist/schema/schemas/primitives/index.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/index.js +2 -1
- package/dist/schema/schemas/primitives/index.js.map +1 -1
- package/dist/schema/schemas/primitives/memory.d.ts +9 -0
- package/dist/schema/schemas/primitives/memory.d.ts.map +1 -1
- package/dist/schema/schemas/primitives/memory.js +26 -3
- package/dist/schema/schemas/primitives/memory.js.map +1 -1
- package/package.json +3 -1
|
@@ -2904,12 +2904,15 @@ async def invoke(payload, context):
|
|
|
2904
2904
|
|
|
2905
2905
|
# Process the user prompt
|
|
2906
2906
|
prompt = payload.get("prompt", "What can you help me with?")
|
|
2907
|
+
log.info(f"Agent input: {prompt}")
|
|
2907
2908
|
|
|
2908
2909
|
# Run the agent
|
|
2909
2910
|
result = await graph.ainvoke({"messages": [HumanMessage(content=prompt)]})
|
|
2910
2911
|
|
|
2911
2912
|
# Return result
|
|
2912
|
-
|
|
2913
|
+
output = result["messages"][-1].content
|
|
2914
|
+
log.info(f"Agent output: {output}")
|
|
2915
|
+
return {"result": output}
|
|
2913
2916
|
|
|
2914
2917
|
|
|
2915
2918
|
if __name__ == "__main__":
|
|
@@ -3147,8 +3150,7 @@ description = "AgentCore Runtime Application using LangChain/LangGraph"
|
|
|
3147
3150
|
readme = "README.md"
|
|
3148
3151
|
requires-python = ">=3.10"
|
|
3149
3152
|
dependencies = [
|
|
3150
|
-
"opentelemetry-distro",
|
|
3151
|
-
"opentelemetry-exporter-otlp",
|
|
3153
|
+
"aws-opentelemetry-distro",
|
|
3152
3154
|
"langgraph >= 1.0.2",
|
|
3153
3155
|
"mcp >= 1.19.0",
|
|
3154
3156
|
"langchain-mcp-adapters >= 0.1.11",
|
|
@@ -4328,7 +4330,7 @@ file maps to a JSON config file and includes validation constraints as comments.
|
|
|
4328
4330
|
- **BuildType**: \`'CodeZip'\` | \`'Container'\`
|
|
4329
4331
|
- **NetworkMode**: \`'PUBLIC'\`
|
|
4330
4332
|
- **RuntimeVersion**: \`'PYTHON_3_10'\` | \`'PYTHON_3_11'\` | \`'PYTHON_3_12'\` | \`'PYTHON_3_13'\`
|
|
4331
|
-
- **MemoryStrategyType**: \`'SEMANTIC'\` | \`'SUMMARIZATION'\` | \`'USER_PREFERENCE'\`
|
|
4333
|
+
- **MemoryStrategyType**: \`'SEMANTIC'\` | \`'SUMMARIZATION'\` | \`'USER_PREFERENCE'\` | \`'EPISODIC'\`
|
|
4332
4334
|
|
|
4333
4335
|
### Build Types
|
|
4334
4336
|
|
|
@@ -63,7 +63,7 @@ file maps to a JSON config file and includes validation constraints as comments.
|
|
|
63
63
|
- **BuildType**: `'CodeZip'` | `'Container'`
|
|
64
64
|
- **NetworkMode**: `'PUBLIC'`
|
|
65
65
|
- **RuntimeVersion**: `'PYTHON_3_10'` | `'PYTHON_3_11'` | `'PYTHON_3_12'` | `'PYTHON_3_13'`
|
|
66
|
-
- **MemoryStrategyType**: `'SEMANTIC'` | `'SUMMARIZATION'` | `'USER_PREFERENCE'`
|
|
66
|
+
- **MemoryStrategyType**: `'SEMANTIC'` | `'SUMMARIZATION'` | `'USER_PREFERENCE'` | `'EPISODIC'`
|
|
67
67
|
|
|
68
68
|
### Build Types
|
|
69
69
|
|
|
@@ -54,12 +54,15 @@ async def invoke(payload, context):
|
|
|
54
54
|
|
|
55
55
|
# Process the user prompt
|
|
56
56
|
prompt = payload.get("prompt", "What can you help me with?")
|
|
57
|
+
log.info(f"Agent input: {prompt}")
|
|
57
58
|
|
|
58
59
|
# Run the agent
|
|
59
60
|
result = await graph.ainvoke({"messages": [HumanMessage(content=prompt)]})
|
|
60
61
|
|
|
61
62
|
# Return result
|
|
62
|
-
|
|
63
|
+
output = result["messages"][-1].content
|
|
64
|
+
log.info(f"Agent output: {output}")
|
|
65
|
+
return {"result": output}
|
|
63
66
|
|
|
64
67
|
|
|
65
68
|
if __name__ == "__main__":
|
|
@@ -9,8 +9,7 @@ description = "AgentCore Runtime Application using LangChain/LangGraph"
|
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
requires-python = ">=3.10"
|
|
11
11
|
dependencies = [
|
|
12
|
-
"opentelemetry-distro",
|
|
13
|
-
"opentelemetry-exporter-otlp",
|
|
12
|
+
"aws-opentelemetry-distro",
|
|
14
13
|
"langgraph >= 1.0.2",
|
|
15
14
|
"mcp >= 1.19.0",
|
|
16
15
|
"langchain-mcp-adapters >= 0.1.11",
|