dive-into-langgraph

v1.0.5

A comprehensive guide and reference for building agents using LangGraph 1.0, including ReAct agents, state graphs, and tool integrations.

1· 433·0 current·0 all-time
byChang Luo@luochang212

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for luochang212/dive-into-langgraph.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "dive-into-langgraph" (luochang212/dive-into-langgraph) from ClawHub.
Skill page: https://clawhub.ai/luochang212/dive-into-langgraph
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Bare skill slug

openclaw skills install dive-into-langgraph

ClawHub CLI

Package manager switcher

npx clawhub@latest install dive-into-langgraph
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Suspicious
medium confidence
Purpose & Capability
The name/description (LangGraph guide, ReAct agents, state graphs, tools) matches the files and examples included. The Python examples and tools are consistent with teaching/demo usage of LangGraph and LangChain.
!
Instruction Scope
SKILL.md instructs users to install many LangGraph/LangChain-related Python packages and to populate a .env with model provider credentials (DASHSCOPE_*, ARK_*). The runtime examples load .env and create LLMs using DASHSCOPE_BASE_URL / DASHSCOPE_API_KEY. This is in-scope for a LangGraph tutorial, but the instructions explicitly require secret API keys and network endpoints — so review before supplying secrets.
Install Mechanism
There is no install spec in the registry (instruction-only), and the SKILL.md shows standard pip installation commands. No downloads from untrusted URLs or archive extraction are present. The dependency list is broad but appropriate for a LangGraph tutorial.
!
Credentials
The skill expects model-provider environment variables (e.g., DASHSCOPE_BASE_URL, DASHSCOPE_API_KEY, ARK_BASE_URL, ARK_API_KEY) and the code reads these via os.getenv. However, the registry metadata lists no required env vars or primary credential — a mismatch. Requesting API keys is reasonable for examples that call external model providers, but the registry should declare this explicitly so users know what secrets will be needed.
Persistence & Privilege
The skill does not request permanent inclusion (always:false), does not write system-wide configs, and only loads .env (dotenv) for credentials. It does not modify other skills or agent settings. Autonomous invocation (model invocation enabled) is the platform default and not an additional risk here.
What to consider before installing
This skill is a tutorial and includes example code that will call external LLM endpoints. Before installing or running it: 1) Expect to provide model API keys (e.g., DASHSCOPE_*, ARK_*) in a .env — the registry metadata did not declare these, so don't paste secrets unless you're comfortable. 2) Review the included examples and tools (they appear benign; math/safe_eval uses a safe AST evaluator). 3) Run examples in an isolated environment/virtualenv and avoid exposing production credentials. 4) If you plan to allow autonomous agents to use this skill, be cautious: providing long-lived model keys to a skill gives it network access to those services. 5) If anything is unclear, ask the skill author for a clear list of required env vars and for the upstream repository/source (SKILL.md links point to a GitHub repo and online docs — verify those sources).

Like a lobster shell, security has layers — review code before you run it.

latestvk97255dncx0t6p37knqn11809n82e0sj
433downloads
1stars
6versions
Updated 1mo ago
v1.0.5
MIT-0

Dive Into LangGraph

LangGraph 是由 LangChain 团队开发的开源 Agent 框架。v1.0 是稳定版本,框架能力全面升级,支持中间件、状态图、多智能体等高级功能。本 skill 内容由《LangGraph 1.0 完全指南》提供。

LangGraph 1.0 完全指南

安装依赖

基础依赖:

pip install \
  langgraph \
  "langchain[openai]" \
  langchain-community \
  langchain-mcp-adapters \
  python-dotenv \
  pydantic

环境变量

使用模型供应商的大模型需要设置环境变量,推荐使用阿里云百炼(DashScope)的模型:

# 阿里云百炼 (DashScope)
# 获取地址: https://bailian.console.aliyun.com/
DASHSCOPE_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1
DASHSCOPE_API_KEY=your_api_key_here

# 火山方舟 (ARK)
# 获取地址: https://console.volcengine.com/ark/
ARK_BASE_URL=https://ark.cn-beijing.volces.com/api/v3
ARK_API_KEY=your_api_key_here

# 或者其他模型供应商...

请将环境变量添加到 .env 文件,并填入你的 API key。

章节概览

序号章节内容简介在线阅读离线阅读
1快速入门创建你的第一个 ReAct Agent在线本地
2状态图使用 StateGraph 创建工作流在线本地
3中间件预算控制、消息截断、敏感词过滤、PII 检测在线本地
4人机交互使用 HITL 中间件实现人机交互在线本地
5记忆短期记忆、长期记忆在线本地
6上下文工程使用 State、Store、Runtime 管理上下文在线本地
7MCP Server创建 MCP Server 并接入 LangGraph在线本地
8监督者模式两种方法:tool-calling、langgraph-supervisor在线本地
9并行节点并发、@task 装饰器、Map-reduce、Sub-graphs在线本地
10RAG向量检索、关键词检索、混合检索在线本地
11网络搜索DashScope、Tavily 和 DDGS在线本地

官方资源

Comments

Loading comments...