/install langgraph-for-agents
\r \r
LangGraph for Agents\r
\r
When to use\r
- Use this skill when the user asks to build agents or multi-agent systems using LangGraph/LangChain.\r \r
How to refer\r
Integrated Reference Examples\r
Read the examples in "./references/" to understand common patterns. \r
Start with "./references/README.md" for an overview, then read the target file, it will show more details.\r
\r
!Important: \r
To build an agent, API_KEY credentials is necessary. \r
This is user privacy, please do not hard-code it, just hold a placeholder, e.g. API_KEY=your-api-key, and let the user manage the actual keys.\r
\r
External Resources\r
[Search]\r If the "search" tool is available, you can refine the query keywords and execute the search.\r \r [Browse]\r If the "browse" tool is available, you can visit the following three websites:\r
- LangGraph Official GitHub Repository (https://github.com/langchain-ai/langgraph)\r
- LangGraph Official Documentation (https://docs.langchain.com/oss/python/langgraph/overview)\r
- LangChain Official Documentation (https://docs.langchain.com/oss/python/langchain/overview)\r \r [Fetch]\r If the "fetch" tool is available, you can retrieve content from the following URL:\r
- Context-7 LangGraph (https://context7.com/websites/langchain_oss_python_langgraph/llms.txt?tokens=10000)\r
You may adjust the number of tokens by modifying the
tokensparameter in the URL. The default value is 10,000.\r \r
Project Structure\r
For demos or tests, use a single .py file. For production-grade applications, use:\r
├── app/ \r
│ ├── api/ # API endpoints\r
│ ├── backend/ # LangGraph/LangChain logic\r
│ └── frontend/ # User interface\r
├── .env.example\r
├── requirements.txt\r
└── README.md\r
```\r
\r
## Process for Agent System Design\r
### Step 1: Determine System Level\r
- Single-Agent System: Focus on the internal structure of one agent.\r
- Multi-Agent System: Focus on collaboration and communication between multiple agents.\r
\r
### Step 2: Choose Framework\r
- LangGraph: Best for stateful, complex workflows.\r
- LangChain: Best for standard agent patterns based on tool calling.\r
\r
### Step 3: Design Specific Implementation\r
#### For Single-Agent Systems:\r
- With LangGraph: Build a workflow with several nodes, or implement a ReAct Agent with manual tool_node.\r
- With LangChain: Build a ReAct Agent by `create_agent` API.\r
\r
#### For Multi-Agent Systems:\r
- With LangGraph:\r
- Option 1: Treat each node as an independent agent, connecting them via the Graph API.\r
- Option 2: Encapsulate a multi-node workflow as a single agent, calling other agents as tools.\r
\r
- With LangChain:\r
- Create a main ReAct Agent and encapsulate other agents as tools for collaboration.\r
\r
## Build Philosophy\r
- Prefer Native: Check if a tool or integration already exists in LangChain before custom building.\r
- Single File First: Keep core logic in one file initially to simplify debugging.\r
- Clean Code: Provide only essential comments and use clear, descriptive variable names.\r
- Real Data: Use actual API URLs and schemas whenever possible.\r
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install langgraph-for-agents - 安装完成后,直接呼叫该 Skill 的名称或使用
/langgraph-for-agents触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
langgraph-for-agents 是什么?
Use LangGraph/LangChain to build agents. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 145 次。
如何安装 langgraph-for-agents?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install langgraph-for-agents」即可一键安装,无需额外配置。
langgraph-for-agents 是免费的吗?
是的,langgraph-for-agents 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
langgraph-for-agents 支持哪些平台?
langgraph-for-agents 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 langgraph-for-agents?
由 zachysun(@zachysun)开发并维护,当前版本 v1.0.2。