{"id":96574,"date":"2026-08-27T22:16:33","date_gmt":"2026-08-27T14:16:33","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/96574.html"},"modified":"2026-08-27T22:16:33","modified_gmt":"2026-08-27T14:16:33","slug":"langgraph01%ef%bc%9a%e7%ae%80%e4%bb%8b","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/96574.html","title":{"rendered":"LangGraph01\uff1a\u7b80\u4ecb"},"content":{"rendered":"<h2>LangGraph \u662f\u4ec0\u4e48&#xff1a;\u628a AI \u5e94\u7528\u4ece\u300c\u4e00\u6b21\u6027\u51fd\u6570\u8c03\u7528\u300d\u53d8\u6210\u300c\u6301\u7eed\u8fd0\u884c\u7684\u7cfb\u7edf\u300d<\/h2>\n<p>\u8bfb\u5b8c\u672c\u6587\u4f60\u4f1a\u7406\u89e3&#xff1a;\u4e3a\u4ec0\u4e48\u5355\u4e2a\u5927\u6a21\u578b\u6491\u4e0d\u8d77\u590d\u6742\u4efb\u52a1\u3001LangGraph \u7528\u300c\u56fe\u300d\u5efa\u6a21 AI \u6d41\u7a0b\u7684\u4e09\u8981\u7d20\u662f\u4ec0\u4e48\u3001\u5b83\u548c LangChain \u662f\u4ec0\u4e48\u5173\u7cfb&#xff0c;\u4ee5\u53ca\u5b83\u7684\u4e94\u5927\u6838\u5fc3\u80fd\u529b\u5404\u81ea\u89e3\u51b3\u4ec0\u4e48\u95ee\u9898\u3002<\/p>\n<h3>\u4e00\u4e2a\u4e0a\u7ebf\u5373\u7ffb\u8f66\u7684\u573a\u666f<\/h3>\n<p>\u8bbe\u60f3\u4f60\u7ed9\u56e2\u961f\u505a\u4e86\u4e00\u4e2a AI \u8c03\u7814\u52a9\u624b&#xff1a;\u8f93\u5165\u4e00\u4e2a\u4e3b\u9898&#xff0c;\u5b83\u81ea\u52a8\u62c6\u89e3\u95ee\u9898\u3001\u67e5\u8d44\u6599\u3001\u6821\u9a8c\u4e8b\u5b9e\u3001\u8f93\u51fa\u62a5\u544a\u3002\u672c\u5730\u8dd1\u5f97\u5f88\u987a&#xff0c;\u4e0a\u7ebf\u7b2c\u4e09\u5929&#xff0c;\u7528\u6237\u6295\u8bc9\u6765\u4e86\u2014\u2014<\/p>\n<p>\u62a5\u544a\u751f\u6210\u5230\u4e00\u534a&#xff0c;\u670d\u52a1\u8fdb\u7a0b\u56e0\u4e3a\u4e00\u6b21 OOM \u91cd\u542f\u4e86\u3002\u7528\u6237\u91cd\u65b0\u63d0\u4ea4\u4e3b\u9898&#xff0c;\u52a9\u624b\u4ece\u5934\u5f00\u59cb\u67e5\u8d44\u6599&#xff0c;\u4e4b\u524d\u4e8c\u5341\u5206\u949f\u7684\u6210\u679c\u5168\u90e8\u4f5c\u5e9f\u3002<\/p>\n<p>\u6a21\u578b\u6ca1\u95ee\u9898&#xff0c;\u4ee3\u7801\u903b\u8f91\u4e5f\u6ca1\u95ee\u9898&#xff0c;\u95ee\u9898\u51fa\u5728\u7f16\u6392\u65b9\u5f0f&#xff1a;\u4f20\u7edf\u5199\u6cd5\u628a AI \u5e94\u7528\u5f53\u6210\u4e00\u4e2a\u51fd\u6570\u2014\u2014\u8f93\u5165\u8fdb\u53bb\u3001\u8f93\u51fa\u51fa\u6765&#xff0c;\u4e2d\u95f4\u72b6\u6001\u7528\u5b8c\u5373\u5f03\u3002\u51fd\u6570\u4e00\u6302&#xff0c;\u4ec0\u4e48\u90fd\u7559\u4e0d\u4e0b\u6765\u3002<\/p>\n<p>LangGraph \u8981\u89e3\u51b3\u7684\u5c31\u662f\u8fd9\u4e00\u7c7b\u95ee\u9898\u3002<\/p>\n<h3>\u4e00\u3001\u5355\u667a\u80fd\u4f53\u7684\u5929\u82b1\u677f&#xff1a;\u5168\u80fd\u9009\u624b\u4e3a\u4ec0\u4e48\u505a\u4e0d\u597d\u590d\u6742\u4efb\u52a1<\/h3>\n<p>\u628a\u4e00\u4e2a\u5927\u6a21\u578b\u5f53\u6210&#034;\u5168\u80fd\u9009\u624b&#034;&#xff0c;\u8ba9\u5b83\u65e2\u67e5\u8d44\u6599\u3001\u53c8\u5199\u62a5\u544a\u3001\u8fd8\u505a\u4e8b\u5b9e\u6838\u67e5&#xff0c;\u542c\u8d77\u6765\u7701\u4e8b&#xff0c;\u5b9e\u9645\u6548\u679c\u5f88\u5c34\u5c2c&#xff1a;\u5b83\u6bcf\u6837\u90fd\u80fd\u505a\u4e00\u70b9&#xff0c;\u4f46\u6bcf\u6837\u90fd\u4e0d\u7cbe\u3002<\/p>\n<p>\u66f4\u9ebb\u70e6\u7684\u662f\u4e09\u4e2a\u56fa\u6709\u7f3a\u9677&#xff1a;<\/p>\n<ul>\n<li>\u957f\u94fe\u8def\u91cc\u5bb9\u6613\u4e22\u4e1c\u897f&#xff1a;\u4efb\u52a1\u8d85\u8fc7\u5341\u51e0\u6b65\u4e4b\u540e&#xff0c;\u65e9\u671f\u7684\u4e0a\u4e0b\u6587\u88ab\u6324\u51fa\u6ce8\u610f\u529b\u7a97\u53e3&#xff0c;\u6a21\u578b\u5f00\u59cb&#034;\u65ad\u7247&#034;&#xff1b;<\/li>\n<li>\u5355\u4e00\u89c6\u89d2\u5bb9\u6613\u4e00\u9519\u5230\u5e95&#xff1a;\u6ca1\u6709\u7b2c\u4e8c\u53cc\u773c\u775b\u68c0\u67e5\u5b83\u7684\u4ea7\u51fa&#xff0c;\u5e7b\u89c9\u4f1a\u6cbf\u7740\u6d41\u7a0b\u4e00\u8def\u653e\u5927&#xff1b;<\/li>\n<li>\u804c\u8d23\u6df7\u5728\u4e00\u8d77\u6ca1\u6cd5\u5b9a\u4f4d\u95ee\u9898&#xff1a;\u62a5\u544a\u5199\u5f97\u5dee&#xff0c;\u4f60\u5206\u4e0d\u6e05\u662f\u68c0\u7d22\u73af\u8282\u6ca1\u505a\u597d&#xff0c;\u8fd8\u662f\u5199\u4f5c\u73af\u8282\u6ca1\u505a\u597d\u3002<\/li>\n<\/ul>\n<p>\u4e8e\u662f\u4e1a\u754c\u8f6c\u5411\u4e86\u4e00\u4e2a\u6734\u7d20\u7684\u601d\u8def&#xff1a;\u8ba9\u4e13\u4e1a\u7684\u4eba\u5e72\u4e13\u4e1a\u7684\u4e8b\u3002\u591a\u667a\u80fd\u4f53\u7cfb\u7edf\u5c31\u662f\u7ed9 AI \u7ec4\u5efa\u4e00\u4e2a&#034;\u4e13\u4e1a\u56e2\u961f&#034;\u2014\u2014\u7814\u7a76\u5458\u8d1f\u8d23\u627e\u8d44\u6599\u3001\u6838\u67e5\u5458\u8d1f\u8d23\u6311\u6bdb\u75c5\u3001\u5199\u4f5c\u52a9\u624b\u8d1f\u8d23\u6210\u7a3f\u3001\u7f16\u8f91\u8d1f\u8d23\u6da6\u8272\u3002\u6bcf\u4e2a\u667a\u80fd\u4f53\u53ea\u5e72\u81ea\u5df1\u6700\u64c5\u957f\u7684\u4e00\u4ef6\u4e8b&#xff0c;\u51fa\u9519\u9762\u5c0f\u3001\u5bb9\u6613\u8c03\u8bd5\u3001\u65b9\u4fbf\u66ff\u6362\u3002<\/p>\n<p>\u6253\u4e2a\u6bd4\u65b9&#xff1a;\u5355\u4e2a\u5927\u6a21\u578b\u50cf\u4e00\u4f4d\u72ec\u594f\u8005&#xff0c;\u4ec0\u4e48\u4e50\u5668\u90fd\u6478\u8fc7&#xff0c;\u4f46\u6ca1\u6709\u4e00\u6837\u7cbe\u5230\u80fd\u5f00\u4e13\u573a&#xff1b;\u591a\u667a\u80fd\u4f53\u7cfb\u7edf\u50cf\u4e00\u652f\u4e50\u56e2&#xff0c;\u5c0f\u63d0\u7434\u3001\u5927\u63d0\u7434\u3001\u7ba1\u4e50\u5404\u53f8\u5176\u804c&#xff0c;\u5408\u5728\u4e00\u8d77\u624d\u80fd\u6f14\u5b8c\u4e00\u90e8\u5b8c\u6574\u7684\u4f5c\u54c1\u3002<\/p>\n<p>\u4f46\u4e50\u56e2\u8fd8\u9700\u8981\u4e00\u6837\u4e1c\u897f\u2014\u2014\u603b\u8c31\u548c\u6307\u6325\u3002\u8c01\u5148\u6f14\u594f\u3001\u8c01\u540e\u8fdb\u3001\u58f0\u90e8\u4e4b\u95f4\u600e\u4e48\u8854\u63a5\u3001\u54ea\u91cc\u53cd\u590d\u3001\u54ea\u91cc\u4f11\u6b62&#xff0c;\u8fd9\u4e9b\u8c03\u5ea6\u95ee\u9898&#xff0c;\u6b63\u662f\u7f16\u6392\u6846\u67b6\u8981\u89e3\u51b3\u7684\u3002\u8fd9\u5c31\u662f LangGraph \u7684\u4f4d\u7f6e\u3002<\/p>\n<h3>\u4e8c\u3001LangGraph \u662f\u4ec0\u4e48&#xff1a;\u4e00\u53e5\u8bdd\u548c\u4e00\u5f20\u56fe<\/h3>\n<p>LangGraph \u662f LangChain \u56e2\u961f\u63a8\u51fa\u7684\u5f00\u6e90\u7f16\u6392\u6846\u67b6&#xff0c;\u5b98\u65b9\u5b9a\u4f4d\u5f88\u76f4\u63a5&#xff1a;<\/p>\n<p>LangGraph is a low-level orchestration framework for building, managing, and deploying long-running, stateful agents.<\/p>\n<p>\u62c6\u5f00\u7406\u89e3\u8fd9\u53e5\u8bdd&#xff1a;<\/p>\n<ul>\n<li>low-level&#xff08;\u4f4e\u5c42&#xff09;&#xff1a;\u5b83\u4e0d\u66ff\u4f60\u5c01\u88c5\u4e1a\u52a1\u7ec6\u8282&#xff0c;\u800c\u662f\u628a\u5e95\u5c42\u63a7\u5236\u6743\u4ea4\u7ed9\u4f60&#xff0c;\u50cf\u642d\u79ef\u6728\u4e00\u6837\u7ec4\u88c5 AI \u7cfb\u7edf&#xff1b;<\/li>\n<li>long-running&#xff08;\u957f\u65f6\u8fd0\u884c&#xff09;&#xff1a;\u9762\u5411\u7684\u4e0d\u662f&#034;\u95ee\u4e00\u53e5\u7b54\u4e00\u53e5&#034;\u7684\u8c03\u7528&#xff0c;\u800c\u662f\u6301\u7eed\u6570\u5206\u949f\u751a\u81f3\u6570\u5c0f\u65f6\u7684\u4efb\u52a1&#xff1b;<\/li>\n<li>stateful&#xff08;\u6709\u72b6\u6001&#xff09;&#xff1a;\u6bcf\u4e00\u6b65\u7684\u4e2d\u95f4\u7ed3\u679c\u90fd\u88ab\u663e\u5f0f\u4fdd\u5b58&#xff0c;\u4e2d\u65ad\u4e4b\u540e\u53ef\u4ee5\u63a5\u7740\u8dd1&#xff0c;\u800c\u4e0d\u662f\u4ece\u5934\u518d\u6765\u3002<\/li>\n<\/ul>\n<p>\u5b83\u7684\u6838\u5fc3\u601d\u60f3\u7528\u4e00\u53e5\u8bdd\u6982\u62ec&#xff1a;\u7528&#034;\u56fe&#034;\u6765\u5efa\u6a21 AI \u884c\u4e3a\u2014\u2014\u8282\u70b9\u662f\u52a8\u4f5c&#xff0c;\u8fb9\u662f\u8df3\u8f6c\u903b\u8f91&#xff0c;\u72b6\u6001\u662f\u8bb0\u5fc6\u3002<\/p>\n<p>\u4e00\u5f20\u5178\u578b\u7684 LangGraph \u56fe\u957f\u8fd9\u6837&#xff08;A \u2192 B \u2192 END \u7684\u6700\u5c0f\u793a\u4f8b&#xff09;&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> langgraph<span class=\"token punctuation\">.<\/span>graph <span class=\"token keyword\">import<\/span> StateGraph<span class=\"token punctuation\">,<\/span> END<\/p>\n<p>graph <span class=\"token operator\">&#061;<\/span> StateGraph<span class=\"token punctuation\">(<\/span><span class=\"token builtin\">dict<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">node_a<\/span><span class=\"token punctuation\">(<\/span>state<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;value&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;from A&#034;<\/span><span class=\"token punctuation\">}<\/span><\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">node_b<\/span><span class=\"token punctuation\">(<\/span>state<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;value&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;from B&#034;<\/span><span class=\"token punctuation\">}<\/span><\/p>\n<p>graph<span class=\"token punctuation\">.<\/span>add_node<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;A&#034;<\/span><span class=\"token punctuation\">,<\/span> node_a<span class=\"token punctuation\">)<\/span><br \/>\ngraph<span class=\"token punctuation\">.<\/span>add_node<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;B&#034;<\/span><span class=\"token punctuation\">,<\/span> node_b<span class=\"token punctuation\">)<\/span><br \/>\ngraph<span class=\"token punctuation\">.<\/span>set_entry_point<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;A&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\ngraph<span class=\"token punctuation\">.<\/span>add_edge<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;A&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;B&#034;<\/span><span class=\"token punctuation\">)<\/span><br \/>\ngraph<span class=\"token punctuation\">.<\/span>add_edge<span class=\"token punctuation\">(<\/span><span class=\"token string\">&#034;B&#034;<\/span><span class=\"token punctuation\">,<\/span> END<span class=\"token punctuation\">)<\/span><\/p>\n<p>app <span class=\"token operator\">&#061;<\/span> graph<span class=\"token punctuation\">.<\/span><span class=\"token builtin\">compile<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>#mermaid-svg-0txINejxCgl7XFIc{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-0txINejxCgl7XFIc .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-0txINejxCgl7XFIc .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-0txINejxCgl7XFIc .error-icon{fill:#552222;}#mermaid-svg-0txINejxCgl7XFIc .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-0txINejxCgl7XFIc .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-0txINejxCgl7XFIc .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-0txINejxCgl7XFIc .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-0txINejxCgl7XFIc .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-0txINejxCgl7XFIc .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-0txINejxCgl7XFIc .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-0txINejxCgl7XFIc .marker{fill:#333333;stroke:#333333;}#mermaid-svg-0txINejxCgl7XFIc .marker.cross{stroke:#333333;}#mermaid-svg-0txINejxCgl7XFIc svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-0txINejxCgl7XFIc p{margin:0;}#mermaid-svg-0txINejxCgl7XFIc .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-0txINejxCgl7XFIc .cluster-label text{fill:#333;}#mermaid-svg-0txINejxCgl7XFIc .cluster-label span{color:#333;}#mermaid-svg-0txINejxCgl7XFIc .cluster-label span p{background-color:transparent;}#mermaid-svg-0txINejxCgl7XFIc .label text,#mermaid-svg-0txINejxCgl7XFIc span{fill:#333;color:#333;}#mermaid-svg-0txINejxCgl7XFIc .node rect,#mermaid-svg-0txINejxCgl7XFIc .node circle,#mermaid-svg-0txINejxCgl7XFIc .node ellipse,#mermaid-svg-0txINejxCgl7XFIc .node polygon,#mermaid-svg-0txINejxCgl7XFIc .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-0txINejxCgl7XFIc .rough-node .label text,#mermaid-svg-0txINejxCgl7XFIc .node .label text,#mermaid-svg-0txINejxCgl7XFIc .image-shape .label,#mermaid-svg-0txINejxCgl7XFIc .icon-shape .label{text-anchor:middle;}#mermaid-svg-0txINejxCgl7XFIc .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-0txINejxCgl7XFIc .rough-node .label,#mermaid-svg-0txINejxCgl7XFIc .node .label,#mermaid-svg-0txINejxCgl7XFIc .image-shape .label,#mermaid-svg-0txINejxCgl7XFIc .icon-shape .label{text-align:center;}#mermaid-svg-0txINejxCgl7XFIc .node.clickable{cursor:pointer;}#mermaid-svg-0txINejxCgl7XFIc .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-0txINejxCgl7XFIc .arrowheadPath{fill:#333333;}#mermaid-svg-0txINejxCgl7XFIc .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-0txINejxCgl7XFIc .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-0txINejxCgl7XFIc .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-0txINejxCgl7XFIc .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-0txINejxCgl7XFIc .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-0txINejxCgl7XFIc .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-0txINejxCgl7XFIc .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-0txINejxCgl7XFIc .cluster text{fill:#333;}#mermaid-svg-0txINejxCgl7XFIc .cluster span{color:#333;}#mermaid-svg-0txINejxCgl7XFIc div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-0txINejxCgl7XFIc .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-0txINejxCgl7XFIc rect.text{fill:none;stroke-width:0;}#mermaid-svg-0txINejxCgl7XFIc .icon-shape,#mermaid-svg-0txINejxCgl7XFIc .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-0txINejxCgl7XFIc .icon-shape p,#mermaid-svg-0txINejxCgl7XFIc .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-0txINejxCgl7XFIc .icon-shape .label rect,#mermaid-svg-0txINejxCgl7XFIc .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-0txINejxCgl7XFIc .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-0txINejxCgl7XFIc .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-0txINejxCgl7XFIc :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>START<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8282\u70b9 Anode_a<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8282\u70b9 Bnode_b<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>END<\/p>\n<p><\/span><\/p>\n<p>\u8fd9\u5f20\u56fe\u8868\u8fbe\u4e86&#xff1a;\u6d41\u7a0b\u4ece START \u51fa\u53d1 \u2192 \u6267\u884c\u8282\u70b9 A \u5e76\u628a\u5b83\u8fd4\u56de\u7684 {&#034;value&#034;: &#034;from A&#034;} \u5408\u5e76\u8fdb\u72b6\u6001 \u2192 \u6309\u8fb9\u8fdb\u5165\u8282\u70b9 B \u2192 \u518d\u5408\u5e76 {&#034;value&#034;: &#034;from B&#034;} \u2192 \u5230\u8fbe END \u7ed3\u675f\u3002<\/p>\n<h3>\u4e09\u3001\u56fe\u7684\u4e09\u8981\u7d20&#xff1a;\u8282\u70b9\u3001\u8fb9\u3001\u72b6\u6001<\/h3>\n<p>LangGraph \u7684\u4e00\u5207\u80fd\u529b\u90fd\u5efa\u7acb\u5728\u4e09\u4e2a\u57fa\u672c\u5143\u7d20\u4e0a\u3002\u6211\u7528\u4e00\u4e2a&#034;\u5feb\u9012\u5206\u62e3\u4e2d\u5fc3&#034;\u7684\u7c7b\u6bd4\u6765\u7406\u89e3\u5b83\u4eec&#xff1a;<\/p>\n<table>\n<tr>\u8981\u7d20\u5728 LangGraph \u91cc\u662f\u4ec0\u4e48\u4e00\u53e5\u8bdd\u804c\u8d23\u5206\u62e3\u4e2d\u5fc3\u91cc\u7684\u5bf9\u5e94\u7269<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u8282\u70b9&#xff08;Node&#xff09;<\/td>\n<td align=\"left\">\u4e00\u4e2a\u53ef\u8c03\u7528\u7684\u51fd\u6570\u6216\u5bf9\u8c61<\/td>\n<td align=\"left\">\u6267\u884c\u4e00\u4e2a\u72ec\u7acb\u52a8\u4f5c&#xff1a;\u8c03\u5927\u6a21\u578b\u3001\u67e5\u6570\u636e\u5e93\u3001\u8dd1\u5de5\u5177<\/td>\n<td align=\"left\">\u4e00\u4e2a\u5206\u62e3\u5de5\u4f4d&#xff0c;\u53ea\u5e72\u81ea\u5df1\u90a3\u9053\u5de5\u5e8f<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u8fb9&#xff08;Edge&#xff09;<\/td>\n<td align=\"left\">\u4e00\u4e2a\u8def\u7531\u51fd\u6570&#xff0c;\u8bfb\u72b6\u6001\u51b3\u5b9a\u4e0b\u4e00\u6b65\u53bb\u54ea<\/td>\n<td align=\"left\">\u63a7\u5236\u6d41\u7a0b\u8d70\u5411&#xff0c;\u652f\u6301\u56fa\u5b9a\u8df3\u8f6c\u3001\u6761\u4ef6\u5206\u652f\u3001\u5faa\u73af\u56de\u9000<\/td>\n<td align=\"left\">\u5de5\u4f4d\u4e4b\u95f4\u7684\u4f20\u9001\u5e26&#xff0c;\u5e26\u9053\u5c94\u53ef\u4ee5\u5206\u6d41<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u72b6\u6001&#xff08;State&#xff09;<\/td>\n<td align=\"left\">\u5168\u5c40\u5171\u4eab\u7684\u6570\u636e\u7ed3\u6784<\/td>\n<td align=\"left\">\u8bb0\u5f55\u6240\u6709\u5173\u952e\u4fe1\u606f&#xff0c;\u662f\u6240\u6709\u8282\u70b9\u7684\u516c\u5171\u4e0a\u4e0b\u6587<\/td>\n<td align=\"left\">\u8d34\u5728\u5305\u88f9\u4e0a\u7684\u5feb\u9012\u5355&#xff0c;\u6bcf\u4e2a\u5de5\u4f4d\u90fd\u80fd\u8bfb\u3001\u90fd\u80fd\u6539<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e09\u8005\u914d\u5408\u4ea7\u751f\u4e86\u4e00\u4e2a\u5173\u952e\u6027\u8d28&#xff1a;\u6267\u884c\u8def\u5f84\u4e0d\u518d\u7531\u4ee3\u7801\u7684\u5d4c\u5957\u7ed3\u6784\u51b3\u5b9a&#xff0c;\u800c\u662f\u7531\u56fe\u7ed3\u6784\u51b3\u5b9a\u3002\u4f60\u60f3\u52a0\u4e00\u6b65\u3001\u6539\u4e00\u4e2a\u5206\u652f\u3001\u8ba9\u67d0\u4e2a\u73af\u8282\u5931\u8d25\u65f6\u91cd\u8bd5&#xff0c;\u90fd\u662f\u6539\u56fe&#xff0c;\u800c\u4e0d\u662f\u63a8\u7ffb\u91cd\u5199\u4e1a\u52a1\u4ee3\u7801\u3002<\/p>\n<h3>\u56db\u3001LangChain \u4e0e LangGraph&#xff1a;\u4e0d\u662f\u66ff\u4ee3&#xff0c;\u662f\u5347\u7ea7<\/h3>\n<p>\u4e00\u4e2a\u9ad8\u9891\u95ee\u9898&#xff1a;\u65e2\u7136\u90fd\u662f LangChain \u56e2\u961f\u7684\u4ea7\u54c1&#xff0c;\u4e8c\u8005\u4ec0\u4e48\u5173\u7cfb&#xff1f;<\/p>\n<p>\u7b54\u6848\u662f&#xff1a;LangGraph \u4e0d\u53d6\u4ee3 LangChain&#xff0c;\u800c\u662f\u8865\u4e0a\u4e86 LangChain \u7f3a\u7684\u90a3\u5757\u2014\u2014\u6d41\u7a0b\u63a7\u5236\u3002LangChain \u7684 Chain \u9002\u5408\u628a\u51e0\u4e2a\u6b65\u9aa4\u4e32\u6210\u4e00\u6761\u76f4\u7ebf&#xff1b;LangGraph \u9002\u5408\u628a\u6d41\u7a0b\u753b\u6210\u4e00\u5f20\u53ef\u4ee5\u62d0\u5f2f\u3001\u53ef\u4ee5\u56de\u5934\u7684\u56fe\u3002<\/p>\n<table>\n<tr>\u7ef4\u5ea6LangChain ChainLangGraph<\/tr>\n<tbody>\n<tr>\n<td align=\"left\">\u6267\u884c\u5f62\u6001<\/td>\n<td align=\"left\">\u5355\u5411\u76f4\u7ebf&#xff0c;\u8fdb\u6599\u51fa\u6210\u54c1<\/td>\n<td align=\"left\">\u6709\u5411\u56fe&#xff0c;\u652f\u6301\u5206\u652f\u3001\u5faa\u73af\u3001\u5e76\u884c<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u8bb0\u5fc6\u65b9\u5f0f<\/td>\n<td align=\"left\">\u672c\u8f6e\u8c03\u7528\u5185\u7684\u5c40\u90e8\u4f20\u9012<\/td>\n<td align=\"left\">\u663e\u5f0f\u5168\u5c40\u72b6\u6001&#xff0c;\u53ef\u6301\u4e45\u5316\u5230\u5b58\u50a8<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u4e2d\u65ad\u6062\u590d<\/td>\n<td align=\"left\">\u65e0&#xff0c;\u6302\u4e86\u4ece\u5934\u518d\u6765<\/td>\n<td align=\"left\">\u68c0\u67e5\u70b9\u7eed\u8dd1&#xff0c;\u65ad\u7535\u4e0d\u4e22\u8fdb\u5ea6<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u4eba\u5de5\u4ecb\u5165<\/td>\n<td align=\"left\">\u65e0\u5185\u7f6e\u673a\u5236<\/td>\n<td align=\"left\">\u53ef\u5728\u6d41\u7a0b\u4e2d\u9014\u6682\u505c\u7b49\u5f85\u4eba\u7c7b\u786e\u8ba4<\/td>\n<\/tr>\n<tr>\n<td align=\"left\">\u9002\u5408\u7684\u4efb\u52a1<\/td>\n<td align=\"left\">\u5355\u6b21\u52a0\u5de5&#xff1a;\u67e5\u8be2 &#043; \u751f\u6210<\/td>\n<td align=\"left\">\u957f\u6d41\u7a0b\u3001\u591a\u8f6e\u51b3\u7b56\u3001\u591a\u667a\u80fd\u4f53\u534f\u4f5c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e00\u53e5\u8bdd\u603b\u7ed3&#xff1a;Chain \u662f\u5355\u884c\u9053&#xff0c;\u56fe\u662f\u5bfc\u822a\u5730\u56fe\u2014\u2014\u5355\u884c\u9053\u53ea\u80fd\u5f80\u524d&#xff0c;\u5730\u56fe\u53ef\u4ee5\u968f\u65f6\u51b3\u5b9a&#034;\u63a5\u4e0b\u6765\u53bb\u54ea&#034;\u3002<\/p>\n<h3>\u4e94\u3001\u4e94\u5927\u6838\u5fc3\u80fd\u529b<\/h3>\n<p>LangGraph \u7684\u80fd\u529b\u53ef\u4ee5\u5f52\u7eb3\u4e3a\u4e94\u9879&#xff0c;\u6bcf\u4e00\u9879\u90fd\u5bf9\u5e94\u4e00\u4e2a\u771f\u5b9e\u7684\u751f\u4ea7\u75db\u70b9&#xff1a;<\/p>\n<p>1. \u6301\u4e45\u6267\u884c&#xff08;Durable Execution&#xff09;<\/p>\n<p>\u6bcf\u4e00\u6b65\u72b6\u6001\u90fd\u843d\u76d8\u3002\u670d\u52a1\u5d29\u4e86&#xff0c;\u91cd\u542f\u4e4b\u540e\u4ece\u6700\u8fd1\u7684\u68c0\u67e5\u70b9\u63a5\u7740\u8dd1\u3002\u8fd9\u5bf9&#034;\u8c03\u7814 &#043; \u5199\u62a5\u544a&#034;\u8fd9\u7c7b\u5c0f\u65f6\u7ea7\u4efb\u52a1\u4e0d\u662f\u52a0\u5206\u9879&#xff0c;\u662f\u53ca\u683c\u7ebf\u3002<\/p>\n<p>2. \u4eba\u673a\u534f\u540c&#xff08;Human-in-the-loop&#xff09;<\/p>\n<p>\u6a21\u578b\u62ff\u4e0d\u51c6\u7684\u65f6\u5019&#xff0c;\u53ef\u4ee5\u8ba9\u4eba\u7c7b\u4ecb\u5165&#xff1a;\u5ba1\u9605\u5f53\u524d\u72b6\u6001\u3001\u4fee\u6b63\u53c2\u6570\u3001\u70b9\u51fb\u786e\u8ba4&#xff0c;\u6d41\u7a0b\u518d\u7ee7\u7eed\u3002\u5ba1\u6279\u6d41\u3001\u9ad8\u5371\u64cd\u4f5c&#xff08;\u8f6c\u8d26\u3001\u53d1\u5e03&#xff09;\u5929\u7136\u9700\u8981\u8fd9\u79cd&#034;\u4eba\u5728\u56de\u8def&#034;\u7684\u515c\u5e95\u3002<\/p>\n<p>3. \u5206\u5c42\u8bb0\u5fc6&#xff08;Comprehensive Memory&#xff09;<\/p>\n<p>\u540c\u65f6\u7ba1\u7406\u77ed\u671f\u8bb0\u5fc6&#xff08;\u672c\u6b21\u4f1a\u8bdd\u7684\u72b6\u6001&#xff09;\u548c\u957f\u671f\u8bb0\u5fc6&#xff08;\u8de8\u4f1a\u8bdd\u7684\u5386\u53f2&#xff0c;\u914d\u5408\u5411\u91cf\u5e93\u6216\u6570\u636e\u5e93&#xff09;\u3002AI \u4e0d\u4ec5\u80fd&#034;\u63a5\u8bdd&#034;&#xff0c;\u8fd8\u80fd&#034;\u8ba4\u4eba&#034;\u3002<\/p>\n<p>4. \u53ef\u8c03\u8bd5&#xff08;Debugging&#xff09;<\/p>\n<p>\u914d\u5408 LangSmith \u751f\u6210\u53ef\u89c6\u5316\u8f68\u8ff9&#xff1a;\u6bcf\u4e00\u6b65\u8d70\u5230\u4e86\u54ea\u4e2a\u8282\u70b9\u3001\u72b6\u6001\u53d8\u6210\u4e86\u4ec0\u4e48\u6837&#xff0c;\u4e00\u76ee\u4e86\u7136&#xff0c;\u4e0d\u7528\u9760\u6253\u65e5\u5fd7\u731c\u8ff7\u5bab\u3002<\/p>\n<p>5. \u5de5\u5177\u96c6\u6210\u4e0e\u591a\u667a\u80fd\u4f53&#xff08;Tools &amp; Multi-Agent&#xff09;<\/p>\n<p>\u67e5\u5929\u6c14\u3001\u8ba2\u673a\u7968\u3001\u5199\u62a5\u544a&#xff0c;\u63a5 API \u5373\u53ef&#xff1b;\u540c\u65f6\u5929\u751f\u652f\u6301\u591a\u4e2a AI \u5206\u5de5\u534f\u540c\u2014\u2014\u4e00\u4e2a\u5206\u6790\u3001\u4e00\u4e2a\u51b3\u7b56\u3001\u4e00\u4e2a\u6c47\u62a5\u3002<\/p>\n<h3>\u516d\u3001\u591a\u667a\u80fd\u4f53&#xff1a;\u4ece\u72ec\u594f\u5230\u4e50\u56e2<\/h3>\n<p>\u628a\u7b2c\u4e00\u8282\u7684&#034;\u5206\u5de5\u534f\u4f5c&#034;\u843d\u5230 LangGraph \u4e0a&#xff0c;\u5c31\u662f\u4e00\u5f20\u591a\u667a\u80fd\u4f53\u7684\u56fe\u2014\u2014\u6bcf\u4e2a\u667a\u80fd\u4f53\u662f\u4e00\u4e2a\u8282\u70b9&#xff0c;\u8fb9\u5b9a\u4e49\u5b83\u4eec\u7684\u534f\u4f5c\u987a\u5e8f&#xff1a;<\/p>\n<p>#mermaid-svg-jcpLqLnuZAtXHTY4{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;fill:#333;}@keyframes edge-animation-frame{from{stroke-dashoffset:0;}}@keyframes dash{to{stroke-dashoffset:0;}}#mermaid-svg-jcpLqLnuZAtXHTY4 .edge-animation-slow{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 50s linear infinite;stroke-linecap:round;}#mermaid-svg-jcpLqLnuZAtXHTY4 .edge-animation-fast{stroke-dasharray:9,5!important;stroke-dashoffset:900;animation:dash 20s linear infinite;stroke-linecap:round;}#mermaid-svg-jcpLqLnuZAtXHTY4 .error-icon{fill:#552222;}#mermaid-svg-jcpLqLnuZAtXHTY4 .error-text{fill:#552222;stroke:#552222;}#mermaid-svg-jcpLqLnuZAtXHTY4 .edge-thickness-normal{stroke-width:1px;}#mermaid-svg-jcpLqLnuZAtXHTY4 .edge-thickness-thick{stroke-width:3.5px;}#mermaid-svg-jcpLqLnuZAtXHTY4 .edge-pattern-solid{stroke-dasharray:0;}#mermaid-svg-jcpLqLnuZAtXHTY4 .edge-thickness-invisible{stroke-width:0;fill:none;}#mermaid-svg-jcpLqLnuZAtXHTY4 .edge-pattern-dashed{stroke-dasharray:3;}#mermaid-svg-jcpLqLnuZAtXHTY4 .edge-pattern-dotted{stroke-dasharray:2;}#mermaid-svg-jcpLqLnuZAtXHTY4 .marker{fill:#333333;stroke:#333333;}#mermaid-svg-jcpLqLnuZAtXHTY4 .marker.cross{stroke:#333333;}#mermaid-svg-jcpLqLnuZAtXHTY4 svg{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:16px;}#mermaid-svg-jcpLqLnuZAtXHTY4 p{margin:0;}#mermaid-svg-jcpLqLnuZAtXHTY4 .label{font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;color:#333;}#mermaid-svg-jcpLqLnuZAtXHTY4 .cluster-label text{fill:#333;}#mermaid-svg-jcpLqLnuZAtXHTY4 .cluster-label span{color:#333;}#mermaid-svg-jcpLqLnuZAtXHTY4 .cluster-label span p{background-color:transparent;}#mermaid-svg-jcpLqLnuZAtXHTY4 .label text,#mermaid-svg-jcpLqLnuZAtXHTY4 span{fill:#333;color:#333;}#mermaid-svg-jcpLqLnuZAtXHTY4 .node rect,#mermaid-svg-jcpLqLnuZAtXHTY4 .node circle,#mermaid-svg-jcpLqLnuZAtXHTY4 .node ellipse,#mermaid-svg-jcpLqLnuZAtXHTY4 .node polygon,#mermaid-svg-jcpLqLnuZAtXHTY4 .node path{fill:#ECECFF;stroke:#9370DB;stroke-width:1px;}#mermaid-svg-jcpLqLnuZAtXHTY4 .rough-node .label text,#mermaid-svg-jcpLqLnuZAtXHTY4 .node .label text,#mermaid-svg-jcpLqLnuZAtXHTY4 .image-shape .label,#mermaid-svg-jcpLqLnuZAtXHTY4 .icon-shape .label{text-anchor:middle;}#mermaid-svg-jcpLqLnuZAtXHTY4 .node .katex path{fill:#000;stroke:#000;stroke-width:1px;}#mermaid-svg-jcpLqLnuZAtXHTY4 .rough-node .label,#mermaid-svg-jcpLqLnuZAtXHTY4 .node .label,#mermaid-svg-jcpLqLnuZAtXHTY4 .image-shape .label,#mermaid-svg-jcpLqLnuZAtXHTY4 .icon-shape .label{text-align:center;}#mermaid-svg-jcpLqLnuZAtXHTY4 .node.clickable{cursor:pointer;}#mermaid-svg-jcpLqLnuZAtXHTY4 .root .anchor path{fill:#333333!important;stroke-width:0;stroke:#333333;}#mermaid-svg-jcpLqLnuZAtXHTY4 .arrowheadPath{fill:#333333;}#mermaid-svg-jcpLqLnuZAtXHTY4 .edgePath .path{stroke:#333333;stroke-width:2.0px;}#mermaid-svg-jcpLqLnuZAtXHTY4 .flowchart-link{stroke:#333333;fill:none;}#mermaid-svg-jcpLqLnuZAtXHTY4 .edgeLabel{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-jcpLqLnuZAtXHTY4 .edgeLabel p{background-color:rgba(232,232,232, 0.8);}#mermaid-svg-jcpLqLnuZAtXHTY4 .edgeLabel rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-jcpLqLnuZAtXHTY4 .labelBkg{background-color:rgba(232, 232, 232, 0.5);}#mermaid-svg-jcpLqLnuZAtXHTY4 .cluster rect{fill:#ffffde;stroke:#aaaa33;stroke-width:1px;}#mermaid-svg-jcpLqLnuZAtXHTY4 .cluster text{fill:#333;}#mermaid-svg-jcpLqLnuZAtXHTY4 .cluster span{color:#333;}#mermaid-svg-jcpLqLnuZAtXHTY4 div.mermaidTooltip{position:absolute;text-align:center;max-width:200px;padding:2px;font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;font-size:12px;background:hsl(80, 100%, 96.2745098039%);border:1px solid #aaaa33;border-radius:2px;pointer-events:none;z-index:100;}#mermaid-svg-jcpLqLnuZAtXHTY4 .flowchartTitleText{text-anchor:middle;font-size:18px;fill:#333;}#mermaid-svg-jcpLqLnuZAtXHTY4 rect.text{fill:none;stroke-width:0;}#mermaid-svg-jcpLqLnuZAtXHTY4 .icon-shape,#mermaid-svg-jcpLqLnuZAtXHTY4 .image-shape{background-color:rgba(232,232,232, 0.8);text-align:center;}#mermaid-svg-jcpLqLnuZAtXHTY4 .icon-shape p,#mermaid-svg-jcpLqLnuZAtXHTY4 .image-shape p{background-color:rgba(232,232,232, 0.8);padding:2px;}#mermaid-svg-jcpLqLnuZAtXHTY4 .icon-shape .label rect,#mermaid-svg-jcpLqLnuZAtXHTY4 .image-shape .label rect{opacity:0.5;background-color:rgba(232,232,232, 0.8);fill:rgba(232,232,232, 0.8);}#mermaid-svg-jcpLqLnuZAtXHTY4 .label-icon{display:inline-block;height:1em;overflow:visible;vertical-align:-0.125em;}#mermaid-svg-jcpLqLnuZAtXHTY4 .node .label-icon path{fill:currentColor;stroke:revert;stroke-width:revert;}#mermaid-svg-jcpLqLnuZAtXHTY4 :root{&#8211;mermaid-font-family:\\&#8221;trebuchet ms\\&#8221;,verdana,arial,sans-serif;}<span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"edgeLabel\"><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7528\u6237\u8f93\u5165\u4e3b\u9898<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7814\u7a76\u5458\u667a\u80fd\u4f53\u62c6\u89e3\u95ee\u9898 &#043; \u67e5\u8d44\u6599<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u6838\u67e5\u5458\u667a\u80fd\u4f53\u9a8c\u8bc1\u4fe1\u606f\u771f\u4f2a<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u5199\u4f5c\u667a\u80fd\u4f53\u751f\u6210\u62a5\u544a\u521d\u7a3f<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u7f16\u8f91\u667a\u80fd\u4f53\u6da6\u8272\u628a\u5173<\/p>\n<p><\/span><span class=\"nodeLabel\"><\/p>\n<p>\u8f93\u51fa\u62a5\u544a<\/p>\n<p><\/span><\/p>\n<p>\u6bcf\u4e2a\u8282\u70b9\u5185\u90e8\u53ef\u4ee5\u662f\u4e00\u4e2a\u72ec\u7acb\u7684\u6a21\u578b\u8c03\u7528\u751a\u81f3\u4e00\u5f20\u5b50\u56fe&#xff0c;\u800c\u6574\u6761\u94fe\u8def\u7531 LangGraph \u7edf\u4e00\u8c03\u5ea6\u3002\u54ea\u4e2a\u667a\u80fd\u4f53\u8d28\u91cf\u4e0d\u884c&#xff0c;\u5355\u72ec\u6362\u6389\u5373\u53ef\u2014\u2014\u8fd9\u5c31\u662f&#034;\u4e13\u4e1a\u56e2\u961f&#034;\u5728\u5de5\u7a0b\u4e0a\u7684\u610f\u4e49\u3002<\/p>\n<h3>\u5c0f\u7ed3<\/h3>\n<p>LangGraph \u7684\u672c\u8d28\u662f\u4e00\u4e2a\u5e26\u8bb0\u5fc6\u7684\u3001\u56fe\u7ed3\u6784\u7684 AI \u4efb\u52a1\u6267\u884c\u5668\u3002\u5b83\u7684\u8bbe\u8ba1\u54f2\u5b66\u662f&#xff1a;<\/p>\n<p>\u628a AI \u5e94\u7528\u5f53\u6210\u4e00\u4e2a\u6c38\u8fdc\u5728\u7ebf\u7684&#034;\u6d3b\u7cfb\u7edf&#034;&#xff0c;\u800c\u4e0d\u662f\u4e00\u6b21\u6027\u7684\u51fd\u6570\u8c03\u7528\u3002<\/p>\n<p>\u8bb0\u4f4f\u4e09\u8981\u7d20\u2014\u2014\u8282\u70b9\u5e72\u6d3b\u3001\u8fb9\u5b9a\u8def\u7ebf\u3001\u72b6\u6001\u5b58\u8bb0\u5fc6\u2014\u2014\u4f60\u5c31\u6293\u4f4f\u4e86\u6574\u4e2a\u6846\u67b6\u7684\u9aa8\u67b6\u3002\u4e0b\u4e00\u7bc7&#xff0c;\u6211\u4eec\u7528\u4e00\u4e2a\u6709\u8bb0\u5fc6\u7684\u804a\u5929\u673a\u5668\u4eba&#xff0c;\u628a\u8fd9\u4e09\u8981\u7d20\u53d8\u6210\u53ef\u8fd0\u884c\u7684\u4ee3\u7801\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LangGraph \u662f\u4ec0\u4e48&#xff1a;\u628a AI \u5e94\u7528\u4ece\u300c\u4e00\u6b21\u6027\u51fd\u6570\u8c03\u7528\u300d\u53d8\u6210\u300c\u6301\u7eed\u8fd0\u884c\u7684\u7cfb\u7edf\u300d\u8bfb\u5b8c\u672c\u6587\u4f60\u4f1a\u7406\u89e3&#xff1a;\u4e3a\u4ec0\u4e48\u5355\u4e2a\u5927\u6a21\u578b\u6491\u4e0d\u8d77\u590d\u6742\u4efb\u52a1\u3001LangGraph \u7528\u300c\u56fe\u300d\u5efa\u6a21 AI \u6d41\u7a0b\u7684\u4e09\u8981\u7d20\u662f\u4ec0\u4e48\u3001\u5b83\u548c LangChain \u662f\u4ec0\u4e48\u5173\u7cfb&#xff0c;\u4ee5\u53ca\u5b83\u7684\u4e94\u5927\u6838\u5fc3\u80fd\u529b\u5404\u81ea\u89e3\u51b3\u4ec0\u4e48\u95ee\u9898\u3002\u4e00\u4e2a\u4e0a\u7ebf\u5373\u7ffb\u8f66\u7684\u573a\u666f<br \/>\n\u8bbe\u60f3\u4f60\u7ed9\u56e2\u961f\u505a\u4e86\u4e00\u4e2a AI \u8c03\u7814\u52a9\u624b&#xff1a;\u8f93\u5165\u4e00\u4e2a\u4e3b\u9898&#xff0c;\u5b83\u81ea\u52a8\u62c6\u89e3\u95ee\u9898\u3001\u67e5\u8d44\u6599\u3001\u6821\u9a8c\u4e8b\u5b9e\u3001\u8f93\u51fa\u62a5\u544a\u3002\u672c\u5730\u8dd1\u5f97\u5f88\u987a&amp;#xff<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[3503],"topic":[],"class_list":["post-96574","post","type-post","status-publish","format-standard","hentry","category-server","tag-langgraph"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>LangGraph01\uff1a\u7b80\u4ecb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/96574.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LangGraph01\uff1a\u7b80\u4ecb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"LangGraph \u662f\u4ec0\u4e48&#xff1a;\u628a AI \u5e94\u7528\u4ece\u300c\u4e00\u6b21\u6027\u51fd\u6570\u8c03\u7528\u300d\u53d8\u6210\u300c\u6301\u7eed\u8fd0\u884c\u7684\u7cfb\u7edf\u300d\u8bfb\u5b8c\u672c\u6587\u4f60\u4f1a\u7406\u89e3&#xff1a;\u4e3a\u4ec0\u4e48\u5355\u4e2a\u5927\u6a21\u578b\u6491\u4e0d\u8d77\u590d\u6742\u4efb\u52a1\u3001LangGraph \u7528\u300c\u56fe\u300d\u5efa\u6a21 AI \u6d41\u7a0b\u7684\u4e09\u8981\u7d20\u662f\u4ec0\u4e48\u3001\u5b83\u548c LangChain \u662f\u4ec0\u4e48\u5173\u7cfb&#xff0c;\u4ee5\u53ca\u5b83\u7684\u4e94\u5927\u6838\u5fc3\u80fd\u529b\u5404\u81ea\u89e3\u51b3\u4ec0\u4e48\u95ee\u9898\u3002\u4e00\u4e2a\u4e0a\u7ebf\u5373\u7ffb\u8f66\u7684\u573a\u666f \u8bbe\u60f3\u4f60\u7ed9\u56e2\u961f\u505a\u4e86\u4e00\u4e2a AI \u8c03\u7814\u52a9\u624b&#xff1a;\u8f93\u5165\u4e00\u4e2a\u4e3b\u9898&#xff0c;\u5b83\u81ea\u52a8\u62c6\u89e3\u95ee\u9898\u3001\u67e5\u8d44\u6599\u3001\u6821\u9a8c\u4e8b\u5b9e\u3001\u8f93\u51fa\u62a5\u544a\u3002\u672c\u5730\u8dd1\u5f97\u5f88\u987a&amp;#xff\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/96574.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-27T14:16:33+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"6 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/96574.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/96574.html\",\"name\":\"LangGraph01\uff1a\u7b80\u4ecb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-27T14:16:33+00:00\",\"dateModified\":\"2026-08-27T14:16:33+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/96574.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/96574.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/96574.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LangGraph01\uff1a\u7b80\u4ecb\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"LangGraph01\uff1a\u7b80\u4ecb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/96574.html","og_locale":"zh_CN","og_type":"article","og_title":"LangGraph01\uff1a\u7b80\u4ecb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"LangGraph \u662f\u4ec0\u4e48&#xff1a;\u628a AI \u5e94\u7528\u4ece\u300c\u4e00\u6b21\u6027\u51fd\u6570\u8c03\u7528\u300d\u53d8\u6210\u300c\u6301\u7eed\u8fd0\u884c\u7684\u7cfb\u7edf\u300d\u8bfb\u5b8c\u672c\u6587\u4f60\u4f1a\u7406\u89e3&#xff1a;\u4e3a\u4ec0\u4e48\u5355\u4e2a\u5927\u6a21\u578b\u6491\u4e0d\u8d77\u590d\u6742\u4efb\u52a1\u3001LangGraph \u7528\u300c\u56fe\u300d\u5efa\u6a21 AI \u6d41\u7a0b\u7684\u4e09\u8981\u7d20\u662f\u4ec0\u4e48\u3001\u5b83\u548c LangChain \u662f\u4ec0\u4e48\u5173\u7cfb&#xff0c;\u4ee5\u53ca\u5b83\u7684\u4e94\u5927\u6838\u5fc3\u80fd\u529b\u5404\u81ea\u89e3\u51b3\u4ec0\u4e48\u95ee\u9898\u3002\u4e00\u4e2a\u4e0a\u7ebf\u5373\u7ffb\u8f66\u7684\u573a\u666f \u8bbe\u60f3\u4f60\u7ed9\u56e2\u961f\u505a\u4e86\u4e00\u4e2a AI \u8c03\u7814\u52a9\u624b&#xff1a;\u8f93\u5165\u4e00\u4e2a\u4e3b\u9898&#xff0c;\u5b83\u81ea\u52a8\u62c6\u89e3\u95ee\u9898\u3001\u67e5\u8d44\u6599\u3001\u6821\u9a8c\u4e8b\u5b9e\u3001\u8f93\u51fa\u62a5\u544a\u3002\u672c\u5730\u8dd1\u5f97\u5f88\u987a&amp;#xff","og_url":"https:\/\/www.wsisp.com\/helps\/96574.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-27T14:16:33+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"6 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/96574.html","url":"https:\/\/www.wsisp.com\/helps\/96574.html","name":"LangGraph01\uff1a\u7b80\u4ecb - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-27T14:16:33+00:00","dateModified":"2026-08-27T14:16:33+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/96574.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/96574.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/96574.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"LangGraph01\uff1a\u7b80\u4ecb"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/96574","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=96574"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/96574\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=96574"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=96574"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=96574"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=96574"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}