← 返回 Skills 市场
killerapp

aws-agentcore-langgraph

作者 Vaskin Kissoyan · GitHub ↗ · v1.0.2
cross-platform ⚠ suspicious
1595
总下载
3
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install aws-agentcore-langgraph
功能描述
Deploy production LangGraph agents on AWS Bedrock AgentCore. Use for (1) multi-agent systems with orchestrator and specialist agent patterns, (2) building stateful agents with persistent cross-session memory, (3) connecting external tools via AgentCore Gateway (MCP, Lambda, APIs), (4) managing shared context across distributed agents, or (5) deploying complex agent ecosystems via CLI with production observability and scaling.
使用说明 (SKILL.md)

AWS AgentCore + LangGraph

Multi-agent systems on AWS Bedrock AgentCore with LangGraph orchestration. Source: https://github.com/aws/bedrock-agentcore-starter-toolkit

Install

pip install bedrock-agentcore bedrock-agentcore-starter-toolkit langgraph
uv tool install bedrock-agentcore-starter-toolkit  # installs agentcore CLI

Quick Start

from langgraph.graph import StateGraph, START
from langgraph.graph.message import add_messages
from langgraph.prebuilt import ToolNode, tools_condition  # routing + tool execution
from bedrock_agentcore.runtime import BedrockAgentCoreApp
from typing import Annotated
from typing_extensions import TypedDict

class State(TypedDict):
    messages: Annotated[list, add_messages]

builder = StateGraph(State)
builder.add_node("agent", agent_node)
builder.add_node("tools", ToolNode(tools))  # prebuilt tool executor
builder.add_conditional_edges("agent", tools_condition)  # routes to tools or END
builder.add_edge(START, "agent")
graph = builder.compile()

app = BedrockAgentCoreApp()  # Wraps as HTTP service on port 8080 (/invocations, /ping)
@app.entrypoint
def invoke(payload, context):
    result = graph.invoke({"messages": [("user", payload.get("prompt", ""))]})
    return {"result": result["messages"][-1].content}
app.run()

CLI Commands

Command Purpose
agentcore configure -e agent.py --region us-east-1 Setup
agentcore configure -e agent.py --region us-east-1 --name my_agent --non-interactive Scripted setup
agentcore launch --deployment-type container Deploy (container mode)
agentcore launch --disable-memory Deploy without memory subsystem
agentcore dev Hot-reload local dev server
agentcore invoke '{"prompt": "Hello"}' Test
agentcore destroy Cleanup

Core Patterns

Multi-Agent Orchestration

  • Orchestrator delegates to specialists (customer service, e-commerce, healthcare, financial, etc.)
  • Specialists: inline functions or separate deployed agents; all share session_id for context

Memory (STM/LTM)

from bedrock_agentcore.memory import MemoryClient
memory = MemoryClient()
memory.create_event(session_id, actor_id, event_type, payload)  # Store
events = memory.list_events(session_id)  # Retrieve (returns list)
  • STM: Turn-by-turn within session | LTM: Facts/decisions across sessions/agents
  • ~10s eventual consistency after writes

Gateway Tools

python -m bedrock_agentcore.gateway.deploy --stack-name my-agents --region us-east-1
from bedrock_agentcore.gateway import GatewayToolClient
gateway = GatewayToolClient()
result = gateway.call("tool_name", param1=value1, param2=value2)
  • Transport: Fallback Mock (local), Local MCP servers, Production Gateway (Lambda/REST/MCP)
  • Auto-configures BEDROCK_AGENTCORE_GATEWAY_URL after deploy

Decision Tree

Multiple agents coordinating? → Orchestrator + specialists pattern
Persistent cross-session memory? → AgentCore Memory (not LangGraph checkpoints)
External APIs/Lambda? → AgentCore Gateway
Single agent, simple? → Quick Start above
Complex multi-step logic? → StateGraph + tools_condition + ToolNode

Key Concepts

  • AgentCore Runtime: HTTP service on port 8080 (handles /invocations, /ping)
  • AgentCore Memory: Managed cross-session/cross-agent memory
  • LangGraph Routing: tools_condition for agent→tool routing, ToolNode for execution
  • AgentCore Gateway: Transforms APIs/Lambda into MCP tools with auth

Naming Rules

  • Start with letter, only letters/numbers/underscores, 1-48 chars: my_agent not my-agent

Troubleshooting

Issue Fix
on-demand throughput isn't supported Use us.anthropic.claude-* inference profiles
Model use case details not submitted Fill Anthropic form in Bedrock Console
Invalid agent name Use underscores not hyphens
Memory empty after write Wait ~10s (eventual consistency)
Container not reading .env Set ENV in Dockerfile, not .env
Memory not working after deploy Check logs for "Memory enabled/disabled"
list_events returns empty Check actor_id/session_id match; event['payload'] is a list
Gateway "Unknown tool" Lambda must strip ___ prefix from bedrockAgentCoreToolName
Platform mismatch warning Normal - CodeBuild handles ARM64 cross-platform builds

References

安全使用建议
This skill is largely what it claims (an AWS AgentCore + LangGraph deployment guide), but proceed carefully: - Expect to need the AWS CLI, jq, Python, and valid AWS credentials (profile or ACCESS_KEY/SECRET) to run the examples and scripts — those are not declared in the skill metadata. The scripts will list/create/inspect AgentCore resources, so they require IAM permissions (bedrock-agentcore-control actions, logs access). Review and limit IAM permissions before use. - The SKILL.md runs pip installs for third-party packages (bedrock-agentcore, langgraph, and checkpoint packages). If you plan to run these locally, validate package names and sources (PyPI) and consider using a virtualenv. - The ambiguous command `uv tool install ...` should be clarified; don't run unclear commands without understanding the tool they invoke. - Scripts call AWS APIs and CloudWatch logs (they will read/list resources). If you run them, do so in an isolated/test AWS account or with a least-privilege role to avoid accidental resource creation or data exposure. - If you need to allow this skill to run autonomously, be extra cautious: autonomous runs combined with cloud access increases blast radius. Because the manifest omits required credentials, that omission is a red flag — ask the publisher to explicitly list required binaries and environment variables (AWS credentials, region, jq, aws CLI) and confirm the provenance of the referenced Python packages before installing or granting access.
功能分析
Type: OpenClaw Skill Name: aws-agentcore-langgraph Version: 1.0.2 The skill bundle is designed for deploying and managing AWS Bedrock AgentCore resources with LangGraph. All shell scripts (`scripts/*.sh`) utilize standard AWS CLI commands to list, get details, and tail logs for AgentCore components, which is directly aligned with the stated purpose. The `SKILL.md` and `references/*.md` files provide documentation and instructions for a human user, with no evidence of prompt injection attempts against the OpenClaw agent. There are no indicators of data exfiltration, malicious execution, persistence, or obfuscation beyond the legitimate interaction with AWS services.
能力评估
Purpose & Capability
The name/description match the provided content (deploying LangGraph agents on AWS AgentCore). However the packaged scripts and instructions rely on the AWS CLI, jq, and pip-installed Python packages to create and manage cloud resources. The skill metadata does not declare required binaries or credentials even though deploying/inspecting AgentCore resources requires AWS credentials and CLI tooling.
Instruction Scope
SKILL.md gives step-by-step install and deployment commands (pip installs, 'agentcore' CLI usage, gateway deploy, memory APIs) that will create and manage AWS resources and auto-inject env vars. The instructions reference environment variables (e.g., BEDROCK_AGENTCORE_MEMORY_ID) and show examples accessing os.getenv, but requires.env is empty — the runtime instructions therefore implicitly rely on cloud credentials/config and on local tools not declared in the manifest. The instructions do not instruct collection or exfiltration of unrelated local data, but they do direct the agent/operator to run commands that will enumerate and modify AWS resources (list-agent-runtimes, list-memories, create gateways, etc.).
Install Mechanism
There is no formal install spec (instruction-only), which is lower risk. SKILL.md instructs pip installs for known packages (bedrock-agentcore, langgraph and related toolkits) — these are standard package installs from PyPI and not downloads from arbitrary URLs. The one ambiguous command is `uv tool install bedrock-agentcore-starter-toolkit` (unclear which 'uv' tool is referenced); that should be clarified before automatic execution.
Credentials
The skill declares no required environment variables or primary credential, yet the runtime examples and scripts clearly require AWS credentials (AWS_PROFILE or AWS_ACCESS_KEY_ID/AWS_SECRET_ACCESS_KEY), AWS_REGION, and expect the AWS CLI and jq to be available. It also references auto-injected variables (BEDROCK_AGENTCORE_MEMORY_ID, etc.) that will only exist after deployment. The mismatch between declared requirements and actual needed credentials/tools is disproportionate and meaningful.
Persistence & Privilege
always is false and the skill does not request permanent platform presence. The skill's files are instruction-and-script oriented and do not attempt to modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install aws-agentcore-langgraph
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /aws-agentcore-langgraph 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.2
From Foundry: Deploy production LangGraph agents on AWS Bedrock AgentCore. Use for (1) multi-a
元数据
Slug aws-agentcore-langgraph
版本 1.0.2
许可证
累计安装 0
当前安装数 0
历史版本数 1
常见问题

aws-agentcore-langgraph 是什么?

Deploy production LangGraph agents on AWS Bedrock AgentCore. Use for (1) multi-agent systems with orchestrator and specialist agent patterns, (2) building stateful agents with persistent cross-session memory, (3) connecting external tools via AgentCore Gateway (MCP, Lambda, APIs), (4) managing shared context across distributed agents, or (5) deploying complex agent ecosystems via CLI with production observability and scaling. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 1595 次。

如何安装 aws-agentcore-langgraph?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install aws-agentcore-langgraph」即可一键安装,无需额外配置。

aws-agentcore-langgraph 是免费的吗?

是的,aws-agentcore-langgraph 完全免费(开源免费),可自由下载、安装和使用。

aws-agentcore-langgraph 支持哪些平台?

aws-agentcore-langgraph 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 aws-agentcore-langgraph?

由 Vaskin Kissoyan(@killerapp)开发并维护,当前版本 v1.0.2。

💬 留言讨论