{"id":"e7706acc-06a3-4fb2-8755-8109948932fe","shortId":"Hy5bg4","kind":"skill","title":"dive-into-langgraph","tagline":"A comprehensive guide and reference for building agents using LangGraph 1.0, including ReAct agents, state graphs, and tool integrations.","description":"# Dive Into LangGraph\n\nLangGraph 是由 LangChain 团队开发的开源 Agent 框架。v1.0 是稳定版本，框架能力全面升级，支持中间件、状态图、多智能体等高级功能。本 skill 内容由《LangGraph 1.0 完全指南》提供。\n\n**LangGraph 1.0 完全指南**：\n\n- 在线文档：https://luochang212.github.io/dive-into-langgraph/\n- GitHub：https://github.com/luochang212/dive-into-langgraph\n\n## 安装依赖\n\n基础依赖：\n\n```bash\npip install \\\n  langgraph \\\n  \"langchain[openai]\" \\\n  langchain-community \\\n  langchain-mcp-adapters \\\n  python-dotenv \\\n  pydantic\n```\n\n## 环境变量\n\n使用模型供应商的大模型需要设置环境变量，推荐使用阿里云百炼（DashScope）的模型：\n\n```bash\n# 阿里云百炼 (DashScope)\n# 获取地址: https://bailian.console.aliyun.com/\nDASHSCOPE_BASE_URL=https://dashscope.aliyuncs.com/compatible-mode/v1\nDASHSCOPE_API_KEY=your_api_key_here\n\n# 火山方舟 (ARK)\n# 获取地址: https://console.volcengine.com/ark/\nARK_BASE_URL=https://ark.cn-beijing.volces.com/api/v3\nARK_API_KEY=your_api_key_here\n\n# 或者其他模型供应商...\n```\n\n请将环境变量添加到 `.env` 文件，并填入你的 API key。\n\n## 章节概览\n\n| 序号 | 章节 | 内容简介 | 在线阅读 | 离线阅读 |\n|------|------|----------|----------|----------|\n| 1 | **快速入门** | 创建你的第一个 ReAct Agent | [在线](https://luochang212.github.io/dive-into-langgraph/quickstart/) | [本地](references/1.quickstart.md) |\n| 2 | **状态图** | 使用 StateGraph 创建工作流 | [在线](https://luochang212.github.io/dive-into-langgraph/stategraph/) | [本地](references/2.stategraph.md) |\n| 3 | **中间件** | 预算控制、消息截断、敏感词过滤、PII 检测 | [在线](https://luochang212.github.io/dive-into-langgraph/middleware/) | [本地](references/3.middleware.md) |\n| 4 | **人机交互** | 使用 HITL 中间件实现人机交互 | [在线](https://luochang212.github.io/dive-into-langgraph/human-in-the-loop/) | [本地](references/4.human_in_the_loop.md) |\n| 5 | **记忆** | 短期记忆、长期记忆 | [在线](https://luochang212.github.io/dive-into-langgraph/memory/) | [本地](references/5.memory.md) |\n| 6 | **上下文工程** | 使用 State、Store、Runtime 管理上下文 | [在线](https://luochang212.github.io/dive-into-langgraph/context/) | [本地](references/6.context.md) |\n| 7 | **MCP Server** | 创建 MCP Server 并接入 LangGraph | [在线](https://luochang212.github.io/dive-into-langgraph/mcp-server/) | [本地](references/7.mcp_server.md) |\n| 8 | **监督者模式** | 两种方法：tool-calling、langgraph-supervisor | [在线](https://luochang212.github.io/dive-into-langgraph/supervisor/) | [本地](references/8.supervisor.md) |\n| 9 | **并行** | 节点并发、@task 装饰器、Map-reduce、Sub-graphs | [在线](https://luochang212.github.io/dive-into-langgraph/parallelization/) | [本地](references/9.parallelization.md) |\n| 10 | **RAG** | 向量检索、关键词检索、混合检索 | [在线](https://luochang212.github.io/dive-into-langgraph/rag/) | [本地](references/10.rag.md) |\n| 11 | **网络搜索** | DashScope、Tavily 和 DDGS | [在线](https://luochang212.github.io/dive-into-langgraph/web-search/) | [本地](references/11.web_search.md) |\n\n## 官方资源\n\n- [LangChain 官方文档](https://docs.langchain.com/oss/python/langchain/overview)\n- [LangGraph 官方文档](https://docs.langchain.com/oss/python/langgraph/overview)\n- [Deep Agents 官方文档](https://docs.langchain.com/oss/python/deepagents/overview)\n- [LangMem 官方文档](https://langchain-ai.github.io/langmem/)\n- [LangChain GitHub 仓库](https://github.com/langchain-ai/langchain)\n- [LangGraph GitHub 仓库](https://github.com/langchain-ai/langgraph)\n- [langchain-academy GitHub 仓库](https://github.com/langchain-ai/langchain-academy)","tags":["dive","into","langgraph","luochang212","agent","agent-skills","e-book","guide","handbook","langchain"],"capabilities":["skill","source-luochang212","skill-dive-into-langgraph","topic-agent","topic-agent-skills","topic-e-book","topic-guide","topic-handbook","topic-langchain","topic-langgraph"],"categories":["dive-into-langgraph"],"synonyms":[],"warnings":[],"endpointUrl":"https://skills.sh/luochang212/dive-into-langgraph/dive-into-langgraph","protocol":"skill","transport":"skills-sh","auth":{"type":"none","details":{"cli":"npx skills add luochang212/dive-into-langgraph","source_repo":"https://github.com/luochang212/dive-into-langgraph","install_from":"skills.sh"}},"qualityScore":"0.644","qualityRationale":"deterministic score 0.64 from registry signals: · indexed on github topic:agent-skills · 389 github stars · SKILL.md body (3,113 chars)","verified":false,"liveness":"unknown","lastLivenessCheck":null,"agentReviews":{"count":0,"score_avg":null,"cost_usd_avg":null,"success_rate":null,"latency_p50_ms":null,"narrative_summary":null,"summary_updated_at":null},"enrichmentModel":"deterministic:skill-github:v1","enrichmentVersion":1,"enrichedAt":"2026-05-02T18:53:38.189Z","embedding":null,"createdAt":"2026-04-18T22:01:36.965Z","updatedAt":"2026-05-02T18:53:38.189Z","lastSeenAt":"2026-05-02T18:53:38.189Z","tsv":"'/api/v3':110 '/ark/':104 '/compatible-mode/v1':91 '/dive-into-langgraph/':52 '/dive-into-langgraph/context/)':197 '/dive-into-langgraph/human-in-the-loop/)':174 '/dive-into-langgraph/mcp-server/)':211 '/dive-into-langgraph/memory/)':184 '/dive-into-langgraph/middleware/)':163 '/dive-into-langgraph/parallelization/)':243 '/dive-into-langgraph/quickstart/)':139 '/dive-into-langgraph/rag/)':254 '/dive-into-langgraph/stategraph/)':150 '/dive-into-langgraph/supervisor/)':226 '/dive-into-langgraph/web-search/)':266 '/langchain-ai/langchain)':296 '/langchain-ai/langchain-academy)':310 '/langchain-ai/langgraph)':302 '/langmem/)':290 '/luochang212/dive-into-langgraph':56 '/oss/python/deepagents/overview)':285 '/oss/python/langchain/overview)':274 '/oss/python/langgraph/overview)':279 '1':131 '1.0':15,43,47 '10':246 '11':257 '2':142 '3':153 '4':166 '5':177 '6':187 '7':200 '8':214 '9':229 'academi':305 'adapt':71 'agent':12,18,31,135,281 'api':93,96,112,115,123 'ark':100,105,111 'ark.cn-beijing.volces.com':109 'ark.cn-beijing.volces.com/api/v3':108 'bailian.console.aliyun.com':85 'base':87,106 'bash':59,81 'build':11 'call':219 'communiti':67 'comprehens':6 'console.volcengine.com':103 'console.volcengine.com/ark/':102 'dashscop':79,83,86,92,259 'dashscope.aliyuncs.com':90 'dashscope.aliyuncs.com/compatible-mode/v1':89 'ddgs':262 'deep':280 'dive':2,24 'dive-into-langgraph':1 'docs.langchain.com':273,278,284 'docs.langchain.com/oss/python/deepagents/overview)':283 'docs.langchain.com/oss/python/langchain/overview)':272 'docs.langchain.com/oss/python/langgraph/overview)':277 'dotenv':74 'env':120 'github':53,292,298,306 'github.com':55,295,301,309 'github.com/langchain-ai/langchain)':294 'github.com/langchain-ai/langchain-academy)':308 'github.com/langchain-ai/langgraph)':300 'github.com/luochang212/dive-into-langgraph':54 'graph':20,239 'guid':7 'hitl':169 'includ':16 'instal':61 'integr':23 'key':94,97,113,116,124 'langchain':29,63,66,69,270,291,304 'langchain-academi':303 'langchain-ai.github.io':289 'langchain-ai.github.io/langmem/)':288 'langchain-commun':65 'langchain-mcp-adapt':68 'langgraph':4,14,26,27,42,46,62,207,221,275,297 'langgraph-supervisor':220 'langmem':286 'luochang212.github.io':51,138,149,162,173,183,196,210,225,242,253,265 'luochang212.github.io/dive-into-langgraph/':50 'luochang212.github.io/dive-into-langgraph/context/)':195 'luochang212.github.io/dive-into-langgraph/human-in-the-loop/)':172 'luochang212.github.io/dive-into-langgraph/mcp-server/)':209 'luochang212.github.io/dive-into-langgraph/memory/)':182 'luochang212.github.io/dive-into-langgraph/middleware/)':161 'luochang212.github.io/dive-into-langgraph/parallelization/)':241 'luochang212.github.io/dive-into-langgraph/quickstart/)':137 'luochang212.github.io/dive-into-langgraph/rag/)':252 'luochang212.github.io/dive-into-langgraph/stategraph/)':148 'luochang212.github.io/dive-into-langgraph/supervisor/)':224 'luochang212.github.io/dive-into-langgraph/web-search/)':264 'map':235 'map-reduc':234 'mcp':70,201,204 'openai':64 'pii':158 'pip':60 'pydant':75 'python':73 'python-dotenv':72 'rag':247 'react':17,134 'reduc':236 'refer':9 'references/1.quickstart.md':141 'references/10.rag.md':256 'references/11.web_search.md':268 'references/2.stategraph.md':152 'references/3.middleware.md':165 'references/4.human_in_the_loop.md':176 'references/5.memory.md':186 'references/6.context.md':199 'references/7.mcp_server.md':213 'references/8.supervisor.md':228 'references/9.parallelization.md':245 'runtim':192 'server':202,205 'skill':40 'skill-dive-into-langgraph' 'source-luochang212' 'state':19,190 'stategraph':145 'store':191 'sub':238 'sub-graph':237 'supervisor':222 'task':232 'tavili':260 'tool':22,218 'tool-cal':217 'topic-agent' 'topic-agent-skills' 'topic-e-book' 'topic-guide' 'topic-handbook' 'topic-langchain' 'topic-langgraph' 'url':88,107 'use':13 'v1.0':33 '上下文工程':188 '两种方法':216 '中间件':154 '中间件实现人机交互':170 '人机交互':167 '仓库':293,299,307 '使用':144,168,189 '使用模型供应商的大模型需要设置环境变量':77 '关键词检索':249 '内容由':41 '内容简介':128 '创建':203 '创建你的第一个':133 '创建工作流':146 '向量检索':248 '和':261 '团队开发的开源':30 '在线':136,147,160,171,181,194,208,223,240,251,263 '在线文档':49 '在线阅读':129 '基础依赖':58 '多智能体等高级功能':38 '安装依赖':57 '完全指南':44,48 '官方文档':271,276,282,287 '官方资源':269 '并填入你的':122 '并接入':206 '并行':230 '序号':126 '快速入门':132 '或者其他模型供应商':118 '推荐使用阿里云百炼':78 '提供':45 '支持中间件':36 '敏感词过滤':157 '文件':121 '是由':28 '是稳定版本':34 '本':39 '本地':140,151,164,175,185,198,212,227,244,255,267 '框架':32 '框架能力全面升级':35 '检测':159 '消息截断':156 '混合检索':250 '火山方舟':99 '状态图':37,143 '环境变量':76 '的模型':80 '监督者模式':215 '短期记忆':179 '离线阅读':130 '章节':127 '章节概览':125 '管理上下文':193 '网络搜索':258 '节点并发':231 '获取地址':84,101 '装饰器':233 '记忆':178 '请将环境变量添加到':119 '长期记忆':180 '阿里云百炼':82 '预算控制':155","prices":[{"id":"0a0d8ef9-e780-4c93-b412-63815efe611b","listingId":"e7706acc-06a3-4fb2-8755-8109948932fe","amountUsd":"0","unit":"free","nativeCurrency":null,"nativeAmount":null,"chain":null,"payTo":null,"paymentMethod":"skill-free","isPrimary":true,"details":{"org":"luochang212","category":"dive-into-langgraph","install_from":"skills.sh"},"createdAt":"2026-04-18T22:01:36.965Z"}],"sources":[{"listingId":"e7706acc-06a3-4fb2-8755-8109948932fe","source":"github","sourceId":"luochang212/dive-into-langgraph/dive-into-langgraph","sourceUrl":"https://github.com/luochang212/dive-into-langgraph/tree/main/skills/dive-into-langgraph","isPrimary":false,"firstSeenAt":"2026-04-18T22:01:36.965Z","lastSeenAt":"2026-05-02T18:53:38.189Z"}],"details":{"listingId":"e7706acc-06a3-4fb2-8755-8109948932fe","quickStartSnippet":null,"exampleRequest":null,"exampleResponse":null,"schema":null,"openapiUrl":null,"agentsTxtUrl":null,"citations":[],"useCases":[],"bestFor":[],"notFor":[],"kindDetails":{"org":"luochang212","slug":"dive-into-langgraph","github":{"repo":"luochang212/dive-into-langgraph","stars":389,"topics":["agent","agent-skills","e-book","guide","handbook","langchain","langgraph"],"license":"other","html_url":"https://github.com/luochang212/dive-into-langgraph","pushed_at":"2026-04-04T00:36:32Z","description":"LangGraph 1.0 Tutorial","skill_md_sha":"fb6fb625d0c92019b4c97a8d3d0f357985ecf7ee","skill_md_path":"skills/dive-into-langgraph/SKILL.md","default_branch":"main","skill_tree_url":"https://github.com/luochang212/dive-into-langgraph/tree/main/skills/dive-into-langgraph"},"layout":"multi","source":"github","category":"dive-into-langgraph","frontmatter":{"name":"dive-into-langgraph","description":"A comprehensive guide and reference for building agents using LangGraph 1.0, including ReAct agents, state graphs, and tool integrations."},"skills_sh_url":"https://skills.sh/luochang212/dive-into-langgraph/dive-into-langgraph"},"updatedAt":"2026-05-02T18:53:38.189Z"}}