Aws Agentcore Langgr
БесплатноБез исполняемых скриптовНе проверенAWS AgentCore与LangGraph部署助手(云写操作需谨慎)。Multi-agent systems on AWS Bedrock AgentCore with LangGraph orchestration. Source…
от thcjp959 установок в других каталогахОб этом скилле
核心功能: 本技能提供专业的能力支持等能力。
aws-agentcore-langgraph
Multi-agent systems on AWS Bedrock AgentCore with LangGraph orchestration. Source: <
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 |
| 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_idfor context
Memory (STM/LTM)
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
gateway import GatewayToolClient
gateway = GatewayToolClient()
result = gateway.call("tool_name", param1=value1, param2=value2)
- Transport: Fallback Mock (local), Local connector servers, Production Gateway (Lambda/REST/connector)
- Auto-configures
BEDROCK_AGENTCORE_GATEWAY_URLafter 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_conditionfor agent→tool routing,ToolNodefor execution - AgentCore Gateway: Transforms APIs/Lambda into connector tools with auth
Naming Rules
- Start with letter, only letters/numbers/underscores, 1-48 chars:
my_agentnotmy-agent
Troubleshooting
| Issue | Fix |
|---|---|
on-demand throughput isn't supported |
Use us..-* inference profiles |
Model use case details not submitted |
Fill 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
- CLI commands, deployment, lifecycle
- [agentcore-runtime.path=references%2Fagentcore-runtime.md&ownerHandle=killerapp) - Streaming, async, observability
- [agentcore-memory.path=references%2Fagentcore-memory.md&ownerHandle=killerapp) - STM/LTM patterns, API reference
- [agentcore-gateway.path=references%2Fagentcore-gateway.md&ownerHandle=killerapp) - Tool integration, connector, Lambda
- [langgraph-patterns.path=references%2Flanggraph-patterns.md&ownerHandle=killerapp) - StateGraph design, routing
- Example multi-agent archit
Установить Aws Agentcore Langgr в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
readFAQ
Что делает скилл Aws Agentcore Langgr?
AWS AgentCore与LangGraph部署助手(云写操作需谨慎)。Multi-agent systems on AWS Bedrock AgentCore with LangGraph orchestration. Source: <。适用于多种工作场景,提供专业的能力支持。轻量级设计,低资源占用,适配云端与本地部署。
Как установить скилл Aws Agentcore Langgr?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Aws Agentcore Langgr запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic