{"id":3886,"date":"2026-08-29T07:26:26","date_gmt":"2026-08-28T23:26:26","guid":{"rendered":"https:\/\/ai.zhousir.top\/?p=3886"},"modified":"2026-08-29T07:26:26","modified_gmt":"2026-08-28T23:26:26","slug":"langgraph-%e4%bb%8b%e7%bb%8d%ef%bc%9a%e5%8f%af%e9%9d%a0%e5%ba%a6%e4%b8%8e%e8%87%aa%e4%b8%bb%e6%80%a7%e7%9a%84%e5%b9%b3%e8%a1%a1","status":"publish","type":"post","link":"https:\/\/ai.zhousir.top\/?p=3886","title":{"rendered":"LangGraph \u4ecb\u7ecd\uff1a\u53ef\u9760\u5ea6\u4e0e\u81ea\u4e3b\u6027\u7684\u5e73\u8861"},"content":{"rendered":"<section id=\"wenyan\" data-provider=\"WenYan\" style=\"font-family: system-ui, &quot;Apple Color Emoji&quot;, &quot;Segoe UI&quot;, &quot;Segoe UI Symbol&quot;, &quot;Noto Sans&quot;, Roboto, sans-serif; word-break: break-word; overflow-wrap: break-word; color: rgb(0, 0, 0); font-size: 16px; line-height: 1.75; caret-color: rgb(0, 0, 0);\">\n<blockquote style=\"color: rgb(85, 85, 85); background-color: rgb(255, 249, 235); background-image: none; padding: 16px 20px; margin: 20px 0px; border-width: 0px 0px 0px 4px; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor rgb(248, 180, 63); border-radius: 6px; font-style: normal; quotes: none;\">\n<p style=\"margin: 0.55em 0px; color: rgb(85, 85, 85); text-indent: 0px; padding: 0px; line-height: 1.75; font-style: normal; background: transparent;\">\u8fd9\u7bc7\u662f <strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">LangGraph \u4e13\u9898\u7b2c 01 \u7bc7<\/strong>\u2014\u2014\u5148\u56de\u7b54\u300c\u4e3a\u4ec0\u4e48\u8fd8\u8981\u5b66 Graph\u300d\uff0c\u518d\u7559\u4e0b\u9009\u578b\u4e09\u53e5\u8bdd\u3002\u4e09\u8981\u7d20\u4e0e\u5199\u56fe\u653e\u5230\u4e0b\u4e00\u7bc7\u3002<\/p>\n<\/blockquote>\n<hr style=\"border-width: 1px medium medium; border-style: solid none none; border-color: rgb(240, 230, 208) currentcolor currentcolor; border-image: none; margin: 24px 0px;\">\n<h2 style=\"display: inline-block; position: relative; font-weight: bold; color: rgb(51, 51, 51); line-height: 1.5; margin-top: 32px; margin-bottom: 16px; padding: 0px 6px 2px; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; text-align: left; background: linear-gradient(to top, rgb(248, 180, 63) 42%, transparent 42%); box-decoration-break: clone; -webkit-box-decoration-break: clone; font-size: 17px;\"><span style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u5c0f\u660e\u7684 Agent\u300c\u592a\u81ea\u7531\u300d\u4e86<\/span><\/h2>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u5c0f\u660e\u628a\u5ba2\u670d\u6302\u4e0a <code style=\"font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; background-color: rgb(255, 244, 230); color: rgb(217, 72, 15); border-radius: 2px; font-size: 14px; padding: 2px 5px; word-break: break-word;\">create_agent<\/code>\uff0c\u5de5\u5177\u3001\u68c0\u7d22\u3001\u95f2\u804a\u90fd\u80fd\u804a\u3002\u6f14\u793a\u524d\u8001\u677f\u52a0\u4e86\u4e00\u6761\u786c\u89c4\u77e9\uff1a<\/p>\n<blockquote style=\"color: rgb(85, 85, 85); background-color: rgb(255, 249, 235); background-image: none; padding: 16px 20px; margin: 20px 0px; border-width: 0px 0px 0px 4px; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor rgb(248, 180, 63); border-radius: 6px; font-style: normal; quotes: none;\">\n<p style=\"margin: 0.55em 0px; color: rgb(85, 85, 85); text-indent: 0px; padding: 0px; line-height: 1.75; font-style: normal; background: transparent;\">\u300c\u5236\u5ea6\u7c7b\u95ee\u9898\uff1a\u5fc5\u987b\u5148\u67e5\u77e5\u8bc6\u5e93\uff1b\u6ca1\u547d\u4e2d\uff0c\u7981\u6b62\u778e\u7f16\uff0c\u76f4\u63a5\u62d2\u7b54\u3002\u300d<\/p>\n<\/blockquote>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u4ed6\u52a0\u4e86 system prompt\uff0c\u53c8\u53e0\u4e86\u4e00\u5c42 Middleware\u3002\u5927\u591a\u6570\u65f6\u5019\u542c\u8bdd\uff0c\u5076\u5c14\u8fd8\u662f\u4f1a\uff1a<\/p>\n<pre style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; overflow: auto hidden; max-width: 100%; box-sizing: border-box; position: relative; line-height: 1.5; border-radius: 4px; margin: 16px 0px; padding: 0.5em; white-space: pre; word-break: normal; overflow-wrap: normal; background: rgb(0, 43, 54);\"><section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.1\" width=\"45\" height=\"12\" viewBox=\"0 0 450 130\"><ellipse cx=\"65\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(220,60,54)\" stroke-width=\"2\" fill=\"rgb(237,108,96)\"><\/ellipse><ellipse cx=\"225\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(218,151,33)\" stroke-width=\"2\" fill=\"rgb(247,193,81)\"><\/ellipse><ellipse cx=\"385\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(27,161,37)\" stroke-width=\"2\" fill=\"rgb(100,200,86)\"><\/ellipse><\/svg><\/section><code class=\"hljs\" style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; display: block; overflow: auto hidden; max-width: 100%; box-sizing: border-box; margin: 0.5em; padding: 3px 5px; white-space: nowrap; word-break: normal; overflow-wrap: normal; color: rgb(147, 161, 161); background: rgb(0, 43, 54);\">\u7528\u6237: \u516c\u53f8\u53d1\u4e0d\u53d1\u4e0b\u5348\u8336\u96f6\u98df\uff1f\n\u52a9\u624b: \u4e00\u822c\u79d1\u6280\u516c\u53f8\u4f1a\u6709\u2026\u2026\uff08 retriever \u6ca1\u547d\u4e2d\uff0c\u4ecd\u300c\u51ed\u5e38\u8bc6\u300d\u7b54\u4e86 \uff09\n<\/code><\/pre>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u5c0f\u660e\u627e\u5230\u8001\u5f20\uff1a\u300cLangChain \u4e0d\u662f\u5df2\u7ecf\u80fd\u505a Agent \u548c RAG \u4e86\u5417\uff1f\u4e3a\u5565\u8fd8\u8981\u5b66LangGraph\uff1f\u300d<\/p>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u8001\u5f20\u8bf4\uff1a&#8221;\u56e0\u4e3a\u4f60\u73b0\u5728\u7684\u63a7\u5236\u529b\uff0c\u5927\u534a\u5199\u5728<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u63d0\u793a\u8bcd<\/strong>\u91cc\u3002\u63d0\u793a\u8bcd\u662f\u8f6f\u7ea6\u675f\uff1b\u4f01\u4e1a\u8981\u7684\u62d2\u7b54\u3001\u5fc5\u7ecf\u5b89\u68c0\uff0c\u5f80\u5f80\u5f97\u53d8\u6210<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u786c\u62d3\u6251<\/strong>\u3002LangGraph \u8981\u89e3\u51b3\u7684\uff0c\u6b63\u662f\u8fd9\u4ef6\u4e8b\u2014\u2014\u4f46\u5148\u522b\u6025\u7740\u6572\u4ee3\u7801\uff0c\u628a\u300eAI \u5e94\u7528\u600e\u4e48\u957f\u5230\u4eca\u5929\u300f\u753b\u6e05\u695a\u3002&#8221;<\/p>\n<hr style=\"border-width: 1px medium medium; border-style: solid none none; border-color: rgb(240, 230, 208) currentcolor currentcolor; border-image: none; margin: 24px 0px;\">\n<h2 style=\"display: inline-block; position: relative; font-weight: bold; color: rgb(51, 51, 51); line-height: 1.5; margin-top: 32px; margin-bottom: 16px; padding: 0px 6px 2px; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; text-align: left; background: linear-gradient(to top, rgb(248, 180, 63) 42%, transparent 42%); box-decoration-break: clone; -webkit-box-decoration-break: clone; font-size: 17px;\"><span style=\"color: rgb(51, 51, 51); font-weight: bold;\">AI \u5e94\u7528\u600e\u4e48\u957f\u5230\u300c\u53c8\u8981\u81ea\u4e3b\u3001\u53c8\u8981\u7a33\u300d<\/span><\/h2>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u8001\u5f20\u5728\u767d\u677f\u4e0a\u753b\u4e86\u4e09\u683c\u6f14\u8fdb\uff1a<\/p>\n<pre style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; overflow: auto hidden; max-width: 100%; box-sizing: border-box; position: relative; line-height: 1.5; border-radius: 4px; margin: 16px 0px; padding: 0.5em; white-space: pre; word-break: normal; overflow-wrap: normal; background: rgb(0, 43, 54);\"><section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.1\" width=\"45\" height=\"12\" viewBox=\"0 0 450 130\"><ellipse cx=\"65\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(220,60,54)\" stroke-width=\"2\" fill=\"rgb(237,108,96)\"><\/ellipse><ellipse cx=\"225\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(218,151,33)\" stroke-width=\"2\" fill=\"rgb(247,193,81)\"><\/ellipse><ellipse cx=\"385\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(27,161,37)\" stroke-width=\"2\" fill=\"rgb(100,200,86)\"><\/ellipse><\/svg><\/section><code class=\"hljs\" style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; display: block; overflow: auto hidden; max-width: 100%; box-sizing: border-box; margin: 0.5em; padding: 3px 5px; white-space: nowrap; word-break: normal; overflow-wrap: normal; color: rgb(147, 161, 161); background: rgb(0, 43, 54);\">\u2460 \u7b80\u5355 LLM\n   \u7528\u6237 \u2500\u2500\u25ba \u6a21\u578b \u2500\u2500\u25ba \u7b54\u6848\n   \u65e0\u5de5\u5177\u3001\u65e0\u5916\u90e8\u6570\u636e\u3001\u96be\u505a\u591a\u6b65\u9aa4\n\n\u2461 Chain\uff08\u94fe\u6761\uff09\n   \u68c0\u7d22 \u2500\u2500\u25ba \u6a21\u578b \u2500\u2500\u25ba \u5de5\u5177 \u2500\u2500\u25ba \u7b54\u6848\n   \u6d41\u7a0b\u7531\u7a0b\u5e8f\u5458\u5199\u6b7b \u2192 Reliable\uff08\u7a33\uff09\n   \u4f46\u7f3a\u81ea\u4e3b\uff1a\u4e0d\u4f1a\u81ea\u5df1\u6539\u8def\u7ebf\n\n\u2462 Agent\uff08\u667a\u80fd\u4f53\uff09\n   \u4e0b\u4e00\u6b65\u7531 LLM \u51b3\u5b9a\uff1a\u8d70 Step2 \u8fd8\u662f Step3\uff1f\n   \u751a\u81f3\u6574\u6761\u8def\u5f84\u90fd\u4ea4\u7ed9\u6a21\u578b \u2192 Agentic\uff08\u81ea\u4e3b\uff09\n   \u7075\u6d3b\uff0c\u8def\u5f84\u53ef\u80fd\u6f02\u79fb\n<\/code><\/pre>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u300c\u65e9\u671f\u5e94\u7528\u5c31\u662f\u8c03\u4e00\u6b21\u6a21\u578b\u3002\u540e\u6765\u4eba\u4e3a\u52a0\u6b65\u9aa4\u2014\u2014\u68c0\u7d22\u3001\u5de5\u5177\u2014\u2014\u4e32\u6210 <strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">Chain<\/strong>\uff0c\u8fd9\u4e5f\u662f LangChain \u540d\u5b57\u7684\u7531\u6765\uff1a\u8dd1\u4e00\u5343\u6b21\u8def\u5f84\u4e00\u6837\uff0c\u4f46\u79bb\u300e\u771f\u667a\u80fd\u4f53\u300f\u8fd8\u8fdc\u3002<\/p>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u771f\u6b63\u7684 <strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">Agent<\/strong>\uff0c\u662f\u8ba9\u6a21\u578b\u89c4\u5212\u5de5\u4f5c\u6d41\u3002\u95ee\u9898\u6765\u4e86\u2014\u2014\u300d<\/p>\n<table style=\"display: inline-block !important; width: auto; max-width: 100%; overflow: auto; border-spacing: 0px; border-collapse: collapse; margin: 1rem 0px;\">\n<thead style=\"background: rgb(255, 249, 235); color: rgb(51, 51, 51); text-align: left;\">\n<tr>\n<th style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200);\">\u7ef4\u5ea6<\/th>\n<th style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200);\">\u7a0b\u5e8f\u63a7\u6d41\u7a0b\uff08Chain\uff09<\/th>\n<th style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200);\">\u6a21\u578b\u63a7\u6d41\u7a0b\uff08Agent\uff09<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u7a33\u5b9a\u6027<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u9ad8\uff0c\u8def\u5f84\u53ef\u9884\u671f<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u4f4e\uff0c\u5076\u53d1\u8df3\u6b65\/\u7ed5\u8def<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u81ea\u4e3b\u6027<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u4f4e<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u9ad8<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u786c\u7ea6\u675f\uff08\u5f3a\u5236\u62d2\u7b54\u7b49\uff09<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u597d\u505a\u6210\u5206\u652f<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u591a\u9760\u63d0\u793a\u8bcd\uff0c\u6613\u6f0f<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u5ba1\u8ba1<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u8def\u5f84\u4e00\u773c\u53ef\u89c1<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u8981\u53e6\u8bb0\u8d26\u624d\u6e05\u6670<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u5c0f\u660e\uff1a&#8221;\u6240\u4ee5\u53ea\u80fd\u4e8c\u9009\u4e00\uff1f&#8221;<\/p>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u8001\u5f20\u6447\u5934\uff1a&#8221;\u901a\u5e38\u53ea\u80fd\u5728\u4e24\u7aef\u4e4b\u95f4\u9009<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u5e73\u8861\u70b9<\/strong>\u3002<\/p>\n<blockquote style=\"color: rgb(85, 85, 85); background-color: rgb(255, 249, 235); background-image: none; padding: 16px 20px; margin: 20px 0px; border-width: 0px 0px 0px 4px; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor rgb(248, 180, 63); border-radius: 6px; font-style: normal; quotes: none;\">\n<p style=\"margin: 0.55em 0px; color: rgb(85, 85, 85); text-indent: 0px; padding: 0px; line-height: 1.75; font-style: normal; background: transparent;\">LLM \u81ea\u4e3b\u63a7\u5236\u5f97\u8d8a\u591a\uff0c\u5e94\u7528\u7a33\u5b9a\u7a0b\u5ea6\u5f80\u5f80\u8d8a\u5c0f\u3002<\/p>\n<\/blockquote>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u4f60\u8981\u7684\uff0c\u4e0d\u662f\u9000\u56de\u6b7b\u94fe\u6761\uff0c\u4e5f\u4e0d\u662f\u628a\u4e00\u5207\u4ea4\u7ed9\u9ed1\u76d2\u2014\u2014\u800c\u662f\uff1a<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u81ea\u4e3b\u5c3d\u91cf\u7559\uff0c\u7a33\u5b9a\u8981\u62ac\u4e0a\u53bb\u3002<\/strong>&#8220;<\/p>\n<hr style=\"border-width: 1px medium medium; border-style: solid none none; border-color: rgb(240, 230, 208) currentcolor currentcolor; border-image: none; margin: 24px 0px;\">\n<h2 style=\"display: inline-block; position: relative; font-weight: bold; color: rgb(51, 51, 51); line-height: 1.5; margin-top: 32px; margin-bottom: 16px; padding: 0px 6px 2px; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; text-align: left; background: linear-gradient(to top, rgb(248, 180, 63) 42%, transparent 42%); box-decoration-break: clone; -webkit-box-decoration-break: clone; font-size: 17px;\"><span style=\"color: rgb(51, 51, 51); font-weight: bold;\">LangGraph \u5230\u5e95\u89e3\u51b3\u4ec0\u4e48<\/span><\/h2>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u8001\u5f20\u5728\u300c\u53ef\u9760\u5ea6 \u00d7 \u81ea\u4e3b\u6027\u300d\u5750\u6807\u4e0a\u70b9\u4e86\u4e00\u7b14\uff1a<\/p>\n<pre style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; overflow: auto hidden; max-width: 100%; box-sizing: border-box; position: relative; line-height: 1.5; border-radius: 4px; margin: 16px 0px; padding: 0.5em; white-space: pre; word-break: normal; overflow-wrap: normal; background: rgb(0, 43, 54);\"><section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.1\" width=\"45\" height=\"12\" viewBox=\"0 0 450 130\"><ellipse cx=\"65\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(220,60,54)\" stroke-width=\"2\" fill=\"rgb(237,108,96)\"><\/ellipse><ellipse cx=\"225\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(218,151,33)\" stroke-width=\"2\" fill=\"rgb(247,193,81)\"><\/ellipse><ellipse cx=\"385\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(27,161,37)\" stroke-width=\"2\" fill=\"rgb(100,200,86)\"><\/ellipse><\/svg><\/section><code class=\"hljs\" style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; display: block; overflow: auto hidden; max-width: 100%; box-sizing: border-box; margin: 0.5em; padding: 3px 5px; white-space: nowrap; word-break: normal; overflow-wrap: normal; color: rgb(147, 161, 161); background: rgb(0, 43, 54);\">\u81ea\u4e3b\u6027 \u2191\n    \u2502      \u2605 \u7406\u60f3\uff1a\u81ea\u4e3b\u4e0d\u4e22\u3001\u7a33\u5b9a\u62ac\u5347\n    \u2502     \uff0f\n    \u2502   Agent \u25cf\n    \u2502    \uff0f\n    \u2502   \u2605 LangGraph \u7684\u65b9\u5411\n    \u2502  \uff0f\n    \u25cf Chain\n    \u2502\n    \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2192 \u53ef\u9760\u5ea6\n<\/code><\/pre>\n<blockquote style=\"color: rgb(85, 85, 85); background-color: rgb(255, 249, 235); background-image: none; padding: 16px 20px; margin: 20px 0px; border-width: 0px 0px 0px 4px; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor rgb(248, 180, 63); border-radius: 6px; font-style: normal; quotes: none;\">\n<p style=\"margin: 0.55em 0px; color: rgb(85, 85, 85); text-indent: 0px; padding: 0px; line-height: 1.75; font-style: normal; background: transparent;\">LangGraph \u7684\u4f5c\u7528\uff0c\u662f\u5728<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u4fdd\u6301<\/strong> Agent \u81ea\u4e3b\u63a7\u5236\u7a0b\u5ea6\u7684\u540c\u65f6\uff0c<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u63d0\u9ad8<\/strong>\u7a33\u5b9a\u7a0b\u5ea6\u3002<\/p>\n<\/blockquote>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u600e\u4e48\u505a\u5230\uff1f\u6838\u5fc3\u4e00\u53e5\u8bdd\u2014\u2014<\/p>\n<blockquote style=\"color: rgb(85, 85, 85); background-color: rgb(255, 249, 235); background-image: none; padding: 16px 20px; margin: 20px 0px; border-width: 0px 0px 0px 4px; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor rgb(248, 180, 63); border-radius: 6px; font-style: normal; quotes: none;\">\n<p style=\"margin: 0.55em 0px; color: rgb(85, 85, 85); text-indent: 0px; padding: 0px; line-height: 1.75; font-style: normal; background: transparent;\">\u5141\u8bb8\u4f60\u81ea\u5df1\u5b9a\u4e49\u5de5\u4f5c\u6d41\uff08Workflow\uff09\u91cc\u7684\u6bcf\u4e00\u4e2a <strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">Node\uff08\u8282\u70b9\uff09<\/strong>\u3002<\/p>\n<\/blockquote>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u6a21\u578b\u4ecd\u53ef\u5728\u67d0\u4e2a\u8282\u70b9\u91cc\u505a\u51b3\u7b56\u3001\u8c03\u5de5\u5177\uff1b\u4f46\u300e\u80fd\u4e0d\u80fd\u8df3\u8fc7\u68c0\u7d22\u300f\u300e\u65e0\u547d\u4e2d\u8d70\u54ea\u300f\u300e\u8981\u4e0d\u8981\u505c\u7ed9\u4eba\u5ba1\u300f\uff0c\u7531\u56fe\u4e0a\u7684\u8fb9\u4e0e\u8282\u70b9\u8bf4\u4e86\u7b97\u3002\u8f6f\u7ea6\u675f\u53d8\u786c\u62d3\u6251\u3002\u300d<\/p>\n<hr style=\"border-width: 1px medium medium; border-style: solid none none; border-color: rgb(240, 230, 208) currentcolor currentcolor; border-image: none; margin: 24px 0px;\">\n<h2 style=\"display: inline-block; position: relative; font-weight: bold; color: rgb(51, 51, 51); line-height: 1.5; margin-top: 32px; margin-bottom: 16px; padding: 0px 6px 2px; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; text-align: left; background: linear-gradient(to top, rgb(248, 180, 63) 42%, transparent 42%); box-decoration-break: clone; -webkit-box-decoration-break: clone; font-size: 17px;\"><span style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u5148\u770b\u4e00\u773c\uff1a\u8282\u70b9\u5c31\u662f\u4f60\u5199\u7684\u51fd\u6570<\/span><\/h2>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u8001\u5f20\u5199\u4e86\u4e00\u4e2a\u6700\u5c0f\u4f8b\u5b50\u2014\u2014<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u6545\u610f\u8fd8\u4e0d\u63a5 LLM<\/strong>\u2014\u2014\u770b\u770b\u300c\u56fe\u9aa8\u67b6\u300d\u957f\u4ec0\u4e48\u6837\u3002<\/p>\n<pre style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; overflow: auto hidden; max-width: 100%; box-sizing: border-box; position: relative; line-height: 1.5; border-radius: 4px; margin: 16px 0px; padding: 0.5em; white-space: pre; word-break: normal; overflow-wrap: normal; background: rgb(0, 43, 54);\"><section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.1\" width=\"45\" height=\"12\" viewBox=\"0 0 450 130\"><ellipse cx=\"65\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(220,60,54)\" stroke-width=\"2\" fill=\"rgb(237,108,96)\"><\/ellipse><ellipse cx=\"225\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(218,151,33)\" stroke-width=\"2\" fill=\"rgb(247,193,81)\"><\/ellipse><ellipse cx=\"385\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(27,161,37)\" stroke-width=\"2\" fill=\"rgb(100,200,86)\"><\/ellipse><\/svg><\/section><code class=\"hljs language-python\" style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; display: block; overflow: auto hidden; max-width: 100%; box-sizing: border-box; margin: 0.5em; padding: 3px 5px; white-space: nowrap; word-break: normal; overflow-wrap: normal; color: rgb(147, 161, 161); background: rgb(0, 43, 54);\"><span class=\"hljs-keyword\" style=\"color: rgb(108, 113, 196);\">from<\/span> typing <span class=\"hljs-keyword\" style=\"color: rgb(108, 113, 196);\">import<\/span> TypedDict\n<span class=\"hljs-keyword\" style=\"color: rgb(108, 113, 196);\">from<\/span> langgraph.graph <span class=\"hljs-keyword\" style=\"color: rgb(108, 113, 196);\">import<\/span> END, START, StateGraph\n\n\n<span class=\"hljs-keyword\" style=\"color: rgb(108, 113, 196);\">class<\/span> <span class=\"hljs-title class_\" style=\"color: rgb(181, 137, 0);\">GraphState<\/span>(<span class=\"hljs-title class_ inherited__\" style=\"color: rgb(133, 153, 0);\">TypedDict<\/span>):\n  text: <span class=\"hljs-built_in\" style=\"color: rgb(42, 161, 152);\">str<\/span>\n  steps: <span class=\"hljs-built_in\" style=\"color: rgb(42, 161, 152);\">list<\/span>[<span class=\"hljs-built_in\" style=\"color: rgb(42, 161, 152);\">str<\/span>]\n\n\n<span class=\"hljs-keyword\" style=\"color: rgb(108, 113, 196);\">def<\/span> <span class=\"hljs-title function_\" style=\"color: rgb(38, 139, 210);\">normalize<\/span>(<span class=\"hljs-params\">state: GraphState<\/span>) -&gt; <span class=\"hljs-built_in\" style=\"color: rgb(42, 161, 152);\">dict<\/span>:\n  text = state[<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"text\"<\/span>].strip().lower()\n  steps = <span class=\"hljs-built_in\" style=\"color: rgb(42, 161, 152);\">list<\/span>(state.get(<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"steps\"<\/span>) <span class=\"hljs-keyword\" style=\"color: rgb(108, 113, 196);\">or<\/span> [])\n  steps.append(<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">f\"<span class=\"hljs-subst\" style=\"color: rgb(147, 161, 161);\">{<span class=\"hljs-built_in\" style=\"color: rgb(42, 161, 152);\">len<\/span>(steps) + <span class=\"hljs-number\" style=\"color: rgb(203, 75, 22);\">1<\/span>}<\/span>.\u89c4\u8303\u5316\u6587\u672c\"<\/span>)\n  <span class=\"hljs-keyword\" style=\"color: rgb(108, 113, 196);\">return<\/span> {<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"text\"<\/span>: text, <span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"steps\"<\/span>: steps}\n\n\n<span class=\"hljs-keyword\" style=\"color: rgb(108, 113, 196);\">def<\/span> <span class=\"hljs-title function_\" style=\"color: rgb(38, 139, 210);\">shout<\/span>(<span class=\"hljs-params\">state: GraphState<\/span>) -&gt; <span class=\"hljs-built_in\" style=\"color: rgb(42, 161, 152);\">dict<\/span>:\n  steps = <span class=\"hljs-built_in\" style=\"color: rgb(42, 161, 152);\">list<\/span>(state.get(<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"steps\"<\/span>) <span class=\"hljs-keyword\" style=\"color: rgb(108, 113, 196);\">or<\/span> [])\n  steps.append(<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">f\"<span class=\"hljs-subst\" style=\"color: rgb(147, 161, 161);\">{<span class=\"hljs-built_in\" style=\"color: rgb(42, 161, 152);\">len<\/span>(steps) + <span class=\"hljs-number\" style=\"color: rgb(203, 75, 22);\">1<\/span>}<\/span>.\u5927\u5199\u6587\u672c\"<\/span>)\n  <span class=\"hljs-keyword\" style=\"color: rgb(108, 113, 196);\">return<\/span> {<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"text\"<\/span>: state[<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"text\"<\/span>].upper() + <span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"!\"<\/span>, <span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"steps\"<\/span>: steps}\n\n\n<span class=\"hljs-keyword\" style=\"color: rgb(108, 113, 196);\">def<\/span> <span class=\"hljs-title function_\" style=\"color: rgb(38, 139, 210);\">build_graph<\/span>():\n  g = StateGraph(GraphState)\n  g.add_node(<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"normalize\"<\/span>, normalize)\n  g.add_node(<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"shout\"<\/span>, shout)\n  g.add_edge(START, <span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"normalize\"<\/span>)\n  g.add_edge(<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"normalize\"<\/span>, <span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"shout\"<\/span>)\n  g.add_edge(<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"shout\"<\/span>, END)\n  <span class=\"hljs-keyword\" style=\"color: rgb(108, 113, 196);\">return<\/span> g.<span class=\"hljs-built_in\" style=\"color: rgb(42, 161, 152);\">compile<\/span>()\n<\/code><\/pre>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u8001\u5f20\u9010\u70b9\u6572\uff1a<\/p>\n<ol style=\"margin: 8px 0px; padding-left: 28px; list-style: outside decimal;\">\n<li style=\"margin-bottom: 8px; padding-left: 0px; text-indent: 0px; color: rgb(51, 51, 51); list-style: inherit;\">\n<section><strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">State<\/strong>\uff1a\u56fe\u4e0a\u6d41\u8f6c\u7684\u6570\u636e\uff08\u8fd9\u91cc\u662f <code style=\"font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; background-color: rgb(255, 244, 230); color: rgb(217, 72, 15); border-radius: 2px; font-size: 14px; padding: 2px 5px; word-break: break-word;\">text<\/code> + <code style=\"font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; background-color: rgb(255, 244, 230); color: rgb(217, 72, 15); border-radius: 2px; font-size: 14px; padding: 2px 5px; word-break: break-word;\">steps<\/code>\uff09\u3002<\/section>\n<\/li>\n<li style=\"margin-bottom: 8px; padding-left: 0px; text-indent: 0px; color: rgb(51, 51, 51); list-style: inherit;\">\n<section><strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">Node<\/strong>\uff1a\u666e\u901a\u51fd\u6570\uff1b\u8bfb State\uff0c\u8fd4\u56de<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u8981\u66f4\u65b0\u7684\u5b57\u6bb5<\/strong>\uff08\u90e8\u5206\u66f4\u65b0\uff09\uff0c\u4e0d\u662f\u4f60\u624b\u6539\u5168\u5c40\u53d8\u91cf\u3002<\/section>\n<\/li>\n<li style=\"margin-bottom: 8px; padding-left: 0px; text-indent: 0px; color: rgb(51, 51, 51); list-style: inherit;\">\n<section><strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">Edge<\/strong>\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; background-color: rgb(255, 244, 230); color: rgb(217, 72, 15); border-radius: 2px; font-size: 14px; padding: 2px 5px; word-break: break-word;\">START \u2192 normalize \u2192 shout \u2192 END<\/code>\u2014\u2014\u8def\u5f84\u5199\u6b7b\u5728\u56fe\u4e0a\uff0c\u8dd1\u4e00\u4e07\u6b21\u4e5f\u662f\u8fd9\u6761\u3002<\/section>\n<\/li>\n<\/ol>\n<pre style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; overflow: auto hidden; max-width: 100%; box-sizing: border-box; position: relative; line-height: 1.5; border-radius: 4px; margin: 16px 0px; padding: 0.5em; white-space: pre; word-break: normal; overflow-wrap: normal; background: rgb(0, 43, 54);\"><section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.1\" width=\"45\" height=\"12\" viewBox=\"0 0 450 130\"><ellipse cx=\"65\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(220,60,54)\" stroke-width=\"2\" fill=\"rgb(237,108,96)\"><\/ellipse><ellipse cx=\"225\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(218,151,33)\" stroke-width=\"2\" fill=\"rgb(247,193,81)\"><\/ellipse><ellipse cx=\"385\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(27,161,37)\" stroke-width=\"2\" fill=\"rgb(100,200,86)\"><\/ellipse><\/svg><\/section><code class=\"hljs\" style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; display: block; overflow: auto hidden; max-width: 100%; box-sizing: border-box; margin: 0.5em; padding: 3px 5px; white-space: nowrap; word-break: normal; overflow-wrap: normal; color: rgb(147, 161, 161); background: rgb(0, 43, 54);\">START \u2500\u2500\u25ba normalize \u2500\u2500\u25ba shout \u2500\u2500\u25ba END\n<\/code><\/pre>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u300c\u8fd9\u8fd8\u4e0d\u662f Agent\u3002\u5b83\u53ea\u56de\u7b54\u4e00\u4e2a\u95ee\u9898\uff1aLangGraph \u8ba9\u4f60<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u663e\u5f0f\u62e5\u6709<\/strong>\u5de5\u4f5c\u6d41\u91cc\u7684\u6bcf\u4e00\u6b65\u3002\u4e0b\u4e00\u7bc7\u4f1a\u628a\u6761\u4ef6\u8fb9\u3001\u5de5\u5177\u73af\u3001\u8bb0\u5fc6\u63a5\u8fdb\u6765\uff1b\u4eca\u5929\u5148\u5efa\u7acb\u8fd9\u4e2a\u5fc3\u667a\u3002\u300d<\/p>\n<hr style=\"border-width: 1px medium medium; border-style: solid none none; border-color: rgb(240, 230, 208) currentcolor currentcolor; border-image: none; margin: 24px 0px;\">\n<h2 style=\"display: inline-block; position: relative; font-weight: bold; color: rgb(51, 51, 51); line-height: 1.5; margin-top: 32px; margin-bottom: 16px; padding: 0px 6px 2px; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; text-align: left; background: linear-gradient(to top, rgb(248, 180, 63) 42%, transparent 42%); box-decoration-break: clone; -webkit-box-decoration-break: clone; font-size: 17px;\"><span style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u8fd0\u884c\u7a0b\u5e8f<\/span><\/h2>\n<pre style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; overflow: auto hidden; max-width: 100%; box-sizing: border-box; position: relative; line-height: 1.5; border-radius: 4px; margin: 16px 0px; padding: 0.5em; white-space: pre; word-break: normal; overflow-wrap: normal; background: rgb(0, 43, 54);\"><section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.1\" width=\"45\" height=\"12\" viewBox=\"0 0 450 130\"><ellipse cx=\"65\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(220,60,54)\" stroke-width=\"2\" fill=\"rgb(237,108,96)\"><\/ellipse><ellipse cx=\"225\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(218,151,33)\" stroke-width=\"2\" fill=\"rgb(247,193,81)\"><\/ellipse><ellipse cx=\"385\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(27,161,37)\" stroke-width=\"2\" fill=\"rgb(100,200,86)\"><\/ellipse><\/svg><\/section><code class=\"hljs language-python\" style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; display: block; overflow: auto hidden; max-width: 100%; box-sizing: border-box; margin: 0.5em; padding: 3px 5px; white-space: nowrap; word-break: normal; overflow-wrap: normal; color: rgb(147, 161, 161); background: rgb(0, 43, 54);\"><span class=\"hljs-keyword\" style=\"color: rgb(108, 113, 196);\">def<\/span> <span class=\"hljs-title function_\" style=\"color: rgb(38, 139, 210);\">run_demo<\/span>() -&gt; <span class=\"hljs-literal\" style=\"color: rgb(203, 75, 22);\">None<\/span>:\n    app = build_graph() <span class=\"hljs-comment\" style=\"color: rgb(101, 123, 131);\"># \u6784\u5efa\u56fe<\/span>\n\n    result = app.invoke({<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"text\"<\/span>: <span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"  Hello LangGraph  \"<\/span>, <span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"steps\"<\/span>: []}) <span class=\"hljs-comment\" style=\"color: rgb(101, 123, 131);\"># \u6267\u884c\u56fe<\/span>\n\n    <span class=\"hljs-built_in\" style=\"color: rgb(42, 161, 152);\">print<\/span>(<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"result:\"<\/span>, result)\n\n    <span class=\"hljs-built_in\" style=\"color: rgb(42, 161, 152);\">print<\/span>(<span class=\"hljs-string\" style=\"color: rgb(133, 153, 0);\">\"Day1 OK\"<\/span>)\ncd course-langgraph\/day1-hello-graph\npython main.py --demo\n<\/code><\/pre>\n<pre style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; overflow: auto hidden; max-width: 100%; box-sizing: border-box; position: relative; line-height: 1.5; border-radius: 4px; margin: 16px 0px; padding: 0.5em; white-space: pre; word-break: normal; overflow-wrap: normal; background: rgb(0, 43, 54);\"><section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.1\" width=\"45\" height=\"12\" viewBox=\"0 0 450 130\"><ellipse cx=\"65\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(220,60,54)\" stroke-width=\"2\" fill=\"rgb(237,108,96)\"><\/ellipse><ellipse cx=\"225\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(218,151,33)\" stroke-width=\"2\" fill=\"rgb(247,193,81)\"><\/ellipse><ellipse cx=\"385\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(27,161,37)\" stroke-width=\"2\" fill=\"rgb(100,200,86)\"><\/ellipse><\/svg><\/section><code class=\"hljs\" style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; display: block; overflow: auto hidden; max-width: 100%; box-sizing: border-box; margin: 0.5em; padding: 3px 5px; white-space: nowrap; word-break: normal; overflow-wrap: normal; color: rgb(147, 161, 161); background: rgb(0, 43, 54);\">result: {'text': 'HELLO LANGGRAPH!', 'steps': ['1.\u89c4\u8303\u5316\u6587\u672c', '2.\u5927\u5199\u6587\u672c']}\nDay1 OK\n<\/code><\/pre>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u5c0f\u660e\uff1a&#8221;\u8f93\u5165\u5e26\u7a7a\u683c\u7684 Hello\uff0c\u51fa\u6765\u5927\u5199\u52a0\u53f9\u53f7\uff0c\u6b65\u9aa4\u5217\u8868\u4e5f\u8bb0\u4e86\u3002\u8fd9\u4e0d\u5c31\u662f\u51fd\u6570\u7ba1\u9053\u5417\uff1f&#8221;<\/p>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u8001\u5f20\uff1a&#8221;\u4eca\u5929\u662f\u7ba1\u9053\u3002\u7b49\u4f60\u52a0\u4e0a\u300e\u5206\u7c7b\u540e\u8d70\u5929\u6c14\/\u5236\u5ea6\/\u95f2\u804a\u300f\u300e\u6709 tool_calls \u5c31\u8fdb tools \u518d\u56de\u6765\u300f\uff0c\u7ba1\u9053\u5c31\u53d8\u6210<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u8def\u7531\u8868\u548c\u5faa\u73af<\/strong>\u2014\u2014\u90a3\u662f\u56fe\u6bd4 <code style=\"font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; background-color: rgb(255, 244, 230); color: rgb(217, 72, 15); border-radius: 2px; font-size: 14px; padding: 2px 5px; word-break: break-word;\">a(b(c(x)))<\/code> \u5f3a\u7684\u5730\u65b9\u3002&#8221;<\/p>\n<hr style=\"border-width: 1px medium medium; border-style: solid none none; border-color: rgb(240, 230, 208) currentcolor currentcolor; border-image: none; margin: 24px 0px;\">\n<h2 style=\"display: inline-block; position: relative; font-weight: bold; color: rgb(51, 51, 51); line-height: 1.5; margin-top: 32px; margin-bottom: 16px; padding: 0px 6px 2px; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; text-align: left; background: linear-gradient(to top, rgb(248, 180, 63) 42%, transparent 42%); box-decoration-break: clone; -webkit-box-decoration-break: clone; font-size: 17px;\"><span style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u9009\u578b\uff1a\u4e09\u53e5\u8bdd\u5c31\u591f\u7528<\/span><\/h2>\n<table style=\"display: inline-block !important; width: auto; max-width: 100%; overflow: auto; border-spacing: 0px; border-collapse: collapse; margin: 1rem 0px;\">\n<thead style=\"background: rgb(255, 249, 235); color: rgb(51, 51, 51); text-align: left;\">\n<tr>\n<th style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200);\">\u7ef4\u5ea6<\/th>\n<th style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200);\"><code>create_agent<\/code><\/th>\n<th style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200);\">LangGraph <code>StateGraph<\/code><\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u63a7\u5236\u6d41<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u9690\u5f0f ReAct \u5faa\u73af<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u663e\u5f0f Node \/ Edge<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u4e0a\u624b<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u5feb<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u591a\u5199\u51e0\u884c\uff0c\u6362\u53ef\u63a7\u6027<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u786c\u5206\u652f \/ \u5f3a\u5236\u62d2\u7b54<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u63d0\u793a\u8bcd + Middleware<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u6761\u4ef6\u8fb9 \/ \u62d2\u7b54\u8282\u70b9\u4e00\u7b49\u516c\u6c11<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u63d2\u5ba1\u6838\u3001\u8ba1\u8d39\u3001\u68c0\u7d22\u95f8\u95e8<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u80fd\uff0c\u4f46\u50cf\u6253\u8865\u4e01<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u4efb\u610f\u8282\u70b9\u76f4\u63a5\u6302<\/td>\n<\/tr>\n<tr>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u9002\u5408<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u5f00\u653e\u4efb\u52a1\u3001\u5de5\u5177\u81ea\u9009<\/td>\n<td style=\"font-size: 0.75em; padding: 10px 12px; line-height: 1.6; border: 1px solid rgb(245, 230, 200); min-width: 100px;\">\u5408\u89c4\u8def\u5f84\u3001\u53ef\u5ba1\u8ba1\u3001\u56fa\u5b9a\u6d41\u6c34\u7ebf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u8001\u5f20\u8ba9\u5c0f\u660e\u6284\u8fdb\u7b14\u8bb0\u672c\u2014\u2014<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">Agent vs Graph \u9009\u578b\u4e09\u53e5\u8bdd<\/strong>\uff08\u672c\u6a21\u5757\u53ef\u9a8c\u8bc1\u4ea7\u51fa\uff09\uff1a<\/p>\n<ol style=\"margin: 8px 0px; padding-left: 28px; list-style: outside decimal;\">\n<li style=\"margin-bottom: 8px; padding-left: 0px; text-indent: 0px; color: rgb(51, 51, 51); list-style: inherit;\">\n<section><strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u5de5\u5177\u81ea\u5df1\u9009\u3001\u8def\u5f84\u53ef\u98d8\u4e00\u70b9<\/strong> \u2192 \u4f18\u5148 <code style=\"font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; background-color: rgb(255, 244, 230); color: rgb(217, 72, 15); border-radius: 2px; font-size: 14px; padding: 2px 5px; word-break: break-word;\">create_agent<\/code>\u3002<\/section>\n<\/li>\n<li style=\"margin-bottom: 8px; padding-left: 0px; text-indent: 0px; color: rgb(51, 51, 51); list-style: inherit;\">\n<section><strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u6b65\u9aa4\u5fc5\u987b\u53ef\u63a7\u3001\u65e0\u547d\u4e2d\u5fc5\u987b\u62d2\u7b54\u3001\u8981\u7ed9\u4eba\u5ba1<\/strong> \u2192 \u4e0a <code style=\"font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; background-color: rgb(255, 244, 230); color: rgb(217, 72, 15); border-radius: 2px; font-size: 14px; padding: 2px 5px; word-break: break-word;\">StateGraph<\/code>\u3002<\/section>\n<\/li>\n<li style=\"margin-bottom: 8px; padding-left: 0px; text-indent: 0px; color: rgb(51, 51, 51); list-style: inherit;\">\n<section><strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u751f\u4ea7\u5e38\u89c1\u5f62\u6001<\/strong> \u2192 Graph \u505a\u5916\u58f3\uff08\u95f8\u95e8\/\u8def\u7531\/\u62d2\u7b54\uff09\uff0c\u5c40\u90e8\u8282\u70b9\u91cc\u4ecd\u53ef\u5d4c Agent \/ LLM \u51b3\u7b56\u3002<\/section>\n<\/li>\n<\/ol>\n<hr style=\"border-width: 1px medium medium; border-style: solid none none; border-color: rgb(240, 230, 208) currentcolor currentcolor; border-image: none; margin: 24px 0px;\">\n<h2 style=\"display: inline-block; position: relative; font-weight: bold; color: rgb(51, 51, 51); line-height: 1.5; margin-top: 32px; margin-bottom: 16px; padding: 0px 6px 2px; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; text-align: left; background: linear-gradient(to top, rgb(248, 180, 63) 42%, transparent 42%); box-decoration-break: clone; -webkit-box-decoration-break: clone; font-size: 17px;\"><span style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u4e09\u4e2a\u5e38\u89c1\u5751\uff08\u4ecb\u7ecd\u9636\u6bb5\uff09<\/span><\/h2>\n<h3 style=\"font-size: 16px; font-weight: bold; color: rgb(51, 51, 51); line-height: 1.5; margin-top: 24px; margin-bottom: 12px; padding-left: 12px; border-left: 4px solid rgb(248, 180, 63);\"><span style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u5751 1\uff1a\u4ee5\u4e3a\u5b66\u4e86 Graph \u5c31\u8981\u6254\u6389 <code>create_agent<\/code><\/span><\/h3>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\"><strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u75c7\u72b6<\/strong>\uff1a\u6240\u6709 Demo \u5f3a\u884c\u6539\u6210\u624b\u5199\u56fe\uff0c\u8fdb\u5ea6\u53d8\u6162\uff0c\u6536\u76ca\u4e0d\u660e\u663e\u3002<br \/>\n<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u539f\u56e0<\/strong>\uff1a\u628a\u300c\u80fd\u753b\u56fe\u300d\u5f53\u6210\u300c\u5fc5\u987b\u753b\u56fe\u300d\u3002<br \/>\n<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u4fee\u6cd5<\/strong>\uff1a\u5f00\u653e\u63a2\u7d22\u671f\u7ee7\u7eed Agent\uff1b\u51fa\u73b0\u786c\u7ea6\u675f\u518d\u62bd\u6210\u56fe\u3002\u4e8c\u8005\u662f\u9009\u578b\uff0c\u4e0d\u662f\u66ff\u4ee3\u3002<\/p>\n<h3 style=\"font-size: 16px; font-weight: bold; color: rgb(51, 51, 51); line-height: 1.5; margin-top: 24px; margin-bottom: 12px; padding-left: 12px; border-left: 4px solid rgb(248, 180, 63);\"><span style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u5751 2\uff1a\u53ea\u7528\u63d0\u793a\u8bcd\u843d\u5b9e\u300c\u5fc5\u987b\u62d2\u7b54\u300d<\/span><\/h3>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\"><strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u75c7\u72b6<\/strong>\uff1a\u6f14\u793a\u5076\u53d1\u778e\u7f16\uff0c\u8001\u677f\u4e0d\u4fe1\u4efb\u3002<br \/>\n<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u539f\u56e0<\/strong>\uff1a\u8f6f\u7ea6\u675f\u9047\u5f3a\u751f\u6210\u6b32\u671b\u4f1a\u6f0f\u3002<br \/>\n<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u4fee\u6cd5<\/strong>\uff1a\u62d2\u7b54\u505a\u6210\u56fe\u4e0a\u7684\u5206\u652f\u8282\u70b9\uff08\u540e\u6587 Day5\uff1a<code style=\"font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; background-color: rgb(255, 244, 230); color: rgb(217, 72, 15); border-radius: 2px; font-size: 14px; padding: 2px 5px; word-break: break-word;\">retrieve \u2192 generate | refuse<\/code>\uff09\uff1b\u63d0\u793a\u8bcd\u505a\u8f85\u52a9\uff0c\u4e0d\u4f5c\u552f\u4e00\u95f8\u95e8\u3002<\/p>\n<h3 style=\"font-size: 16px; font-weight: bold; color: rgb(51, 51, 51); line-height: 1.5; margin-top: 24px; margin-bottom: 12px; padding-left: 12px; border-left: 4px solid rgb(248, 180, 63);\"><span style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u5751 3\uff1a\u4e00\u4e0a\u6765\u5c31\u5806\u5e76\u884c\u3001\u5b50\u56fe\u3001Studio<\/span><\/h3>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\"><strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u75c7\u72b6<\/strong>\uff1a\u6982\u5ff5\u7206\u70b8\uff0cHello \u56fe\u90fd\u6ca1\u8dd1\u901a\u3002<br \/>\n<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u539f\u56e0<\/strong>\uff1a\u628a\u8fdb\u9636\u80fd\u529b\u585e\u8fdb\u4ecb\u7ecd\u8bfe\u3002<br \/>\n<strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u4fee\u6cd5<\/strong>\uff1a\u672c\u4e13\u9898\u987a\u5e8f\uff1a\u4ecb\u7ecd\uff08\u672c\u7bc7\uff09\u2192 \u4e09\u8981\u7d20\u5165\u95e8 \u2192 \u5e38\u89c1 WorkFlow \u2192 \u5ba2\u670d Email \u9879\u76ee\u3002Studio \/ Postgres \u653e\u9009\u4fee\u3002<\/p>\n<hr style=\"border-width: 1px medium medium; border-style: solid none none; border-color: rgb(240, 230, 208) currentcolor currentcolor; border-image: none; margin: 24px 0px;\">\n<h2 style=\"display: inline-block; position: relative; font-weight: bold; color: rgb(51, 51, 51); line-height: 1.5; margin-top: 32px; margin-bottom: 16px; padding: 0px 6px 2px; border-width: medium; border-style: none; border-color: currentcolor; border-image: none; text-align: left; background: linear-gradient(to top, rgb(248, 180, 63) 42%, transparent 42%); box-decoration-break: clone; -webkit-box-decoration-break: clone; font-size: 17px;\"><span style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u603b\u7ed3<\/span><\/h2>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u8001\u5f20\u8bf4\uff1a&#8221;\u7b2c 01 \u7bc7\u53ea\u529e\u4e00\u4ef6\u4e8b\u2014\u2014\u8ba9\u4f60\u77e5\u9053 LangGraph \u7ad9\u5728\u54ea\u6761\u5750\u6807\u8f74\u4e0a\u3002&#8221;<\/p>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">&#8220;\u4e09\u4e2a\u6838\u5fc3\u7406\u89e3\uff1a<\/p>\n<ol style=\"margin: 8px 0px; padding-left: 28px; list-style: outside decimal;\">\n<li style=\"margin-bottom: 8px; padding-left: 0px; text-indent: 0px; color: rgb(51, 51, 51); list-style: inherit;\">\n<section><strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u6f14\u8fdb<\/strong> \u2014\u2014 LLM \u2192 Chain\uff08\u7a33\uff09\u2192 Agent\uff08\u81ea\u4e3b\uff09\uff1b\u4e24\u7aef\u5bf9\u62c9\uff0c\u751f\u4ea7\u8981\u5e73\u8861\u70b9  <\/section>\n<\/li>\n<li style=\"margin-bottom: 8px; padding-left: 0px; text-indent: 0px; color: rgb(51, 51, 51); list-style: inherit;\">\n<section><strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u5b9a\u4f4d<\/strong> \u2014\u2014 LangGraph \u7528\u663e\u5f0f Node\/Edge\uff0c\u5728\u5c3d\u91cf\u4fdd\u7559\u81ea\u4e3b\u7684\u540c\u65f6\u62ac\u9ad8\u7a33\u5b9a\u5ea6  <\/section>\n<\/li>\n<li style=\"margin-bottom: 8px; padding-left: 0px; text-indent: 0px; color: rgb(51, 51, 51); list-style: inherit;\">\n<section><strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u9009\u578b<\/strong> \u2014\u2014 \u81ea\u9009\u5de5\u5177\u7528 Agent\uff1b\u786c\u8def\u5f84\u4e0e\u62d2\u7b54\u7528 Graph\uff1b\u5e38\u89c1\u662f Graph \u5916\u58f3 + \u5c40\u90e8\u667a\u80fd&#8221;<\/section>\n<\/li>\n<\/ol>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">LangGraph \u4e13\u9898\u8fdb\u5ea6\uff1a<\/p>\n<pre style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Courier New&quot;, monospace; overflow: auto hidden; max-width: 100%; box-sizing: border-box; position: relative; line-height: 1.5; border-radius: 4px; margin: 16px 0px; padding: 0.5em; white-space: pre; word-break: normal; overflow-wrap: normal; background: rgb(0, 43, 54);\"><section style=\"display: block; background-repeat: no-repeat; width: 100%; height: 16px;\"><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" version=\"1.1\" width=\"45\" height=\"12\" viewBox=\"0 0 450 130\"><ellipse cx=\"65\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(220,60,54)\" stroke-width=\"2\" fill=\"rgb(237,108,96)\"><\/ellipse><ellipse cx=\"225\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(218,151,33)\" stroke-width=\"2\" fill=\"rgb(247,193,81)\"><\/ellipse><ellipse cx=\"385\" cy=\"65\" rx=\"50\" ry=\"52\" stroke=\"rgb(27,161,37)\" stroke-width=\"2\" fill=\"rgb(100,200,86)\"><\/ellipse><\/svg><\/section><code class=\"hljs\" style=\"tab-size: 2; font-size: 10px; font-family: Menlo, Monaco, Consolas, &quot;Liberation Mono&quot;, &quot;Roboto Mono&quot;, &quot;Courier New&quot;, &quot;Microsoft YaHei&quot;, monospace; display: block; overflow: auto hidden; max-width: 100%; box-sizing: border-box; margin: 0.5em; padding: 3px 5px; white-space: nowrap; word-break: normal; overflow-wrap: normal; color: rgb(147, 161, 161); background: rgb(0, 43, 54);\">01 LangGraph \u4ecb\u7ecd\uff08\u672c\u7bc7\uff1a\u4e3a\u4f55 Graph\uff09\n    \u2193\n02 \u57fa\u672c\u6982\u5ff5\u548c\u5165\u95e8\uff08State \/ Node \/ Edge\uff09\n    \u2193\n03 \u5e38\u89c1 WorkFlow\uff08\u4e03\u79cd\u7f16\u6392\u6a21\u5f0f\uff09\n    \u2193\n04 \u5ba2\u6237\u652f\u6301 Email Agent\uff08Think in LangGraph\uff09\n<\/code><\/pre>\n<p style=\"margin-top: 12px; margin-bottom: 12px; color: rgb(51, 51, 51); text-indent: 0px; padding-left: 0px;\">\u5c0f\u660e\u5408\u4e0a\u672c\u5b50\uff1a\u300c\u9009\u578b\u4e09\u53e5\u8bdd\u6211\u80cc\u4f4f\u4e86\u3002\u4e0b\u5468\u628a State\u3001\u8fb9\u3001\u6761\u4ef6\u8def\u7531\u5199\u660e\u767d\u3002\u300d<\/p>\n<blockquote style=\"color: rgb(85, 85, 85); background-color: rgb(255, 249, 235); background-image: none; padding: 16px 20px; margin: 20px 0px; border-width: 0px 0px 0px 4px; border-style: none none none solid; border-color: currentcolor currentcolor currentcolor rgb(248, 180, 63); border-radius: 6px; font-style: normal; quotes: none;\">\n<p style=\"margin: 0.55em 0px; color: rgb(85, 85, 85); text-indent: 0px; padding: 0px; line-height: 1.75; font-style: normal; background: transparent;\"><strong style=\"color: rgb(51, 51, 51); font-weight: bold;\">\u522b\u53ea\u8bad\u7ec3\u6a21\u578b\u300e\u542c\u8bdd\u300f\u3002\u81ea\u4e3b\u7559\u7ed9\u8282\u70b9\u91cc\u7684\u667a\u80fd\uff0c\u7a33\u5b9a\u7559\u7ed9\u56fe\u4e0a\u7684\u62d3\u6251\u3002<\/strong><\/p>\n<\/blockquote>\n<\/section>\n","protected":false},"excerpt":{"rendered":"<p>\u8fd9\u7bc7\u662f LangGraph \u4e13\u9898\u7b2c 01 \u7bc7\u2014\u2014\u5148\u56de\u7b54\u300c\u4e3a\u4ec0\u4e48\u8fd8\u8981\u5b66 Graph\u300d\uff0c\u518d\u7559\u4e0b\u9009\u578b\u4e09\u53e5\u8bdd\u3002\u4e09\u8981\u7d20\u4e0e [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":3887,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[163,165],"tags":[167,168,170,210],"_links":{"self":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/3886"}],"collection":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3886"}],"version-history":[{"count":1,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/3886\/revisions"}],"predecessor-version":[{"id":3888,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/posts\/3886\/revisions\/3888"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=\/wp\/v2\/media\/3887"}],"wp:attachment":[{"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3886"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3886"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ai.zhousir.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3886"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}