{"id":105053,"date":"2026-09-13T17:18:03","date_gmt":"2026-09-13T09:18:03","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/105053.html"},"modified":"2026-09-13T17:18:03","modified_gmt":"2026-09-13T09:18:03","slug":"langgraph-%e5%ae%8c%e6%95%b4%e7%9f%a5%e8%af%86%e7%82%b9%e6%80%bb%e7%bb%93-%e9%9b%b6%e5%9f%ba%e7%a1%80%e5%b0%8f%e7%99%bd%e5%bf%85%e7%9c%8b%ef%bc%8c%e4%b8%80%e7%9c%8b%e5%b0%b1%e6%87%82%ef%bc%81","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/105053.html","title":{"rendered":"LangGraph \u5b8c\u6574\u77e5\u8bc6\u70b9\u603b\u7ed3-\u96f6\u57fa\u7840\u5c0f\u767d\u5fc5\u770b\uff0c\u4e00\u770b\u5c31\u61c2\uff01"},"content":{"rendered":"<p>LangGraph \u662f LangChain \u5b98\u65b9\u63a8\u51fa\u7684\u56fe\u7f16\u6392\u6846\u67b6&#xff0c;\u7528\u6765\u6784\u5efa\u5e26\u5faa\u73af\u3001\u5206\u652f\u3001\u65ad\u70b9\u6062\u590d\u3001\u4eba\u673a\u4ecb\u5165\u7684\u590d\u6742 Agent \/ \u591a\u667a\u80fd\u4f53\u5de5\u4f5c\u6d41&#xff1b;\u5f25\u8865 LangChain \u539f\u6709 Chain \u53ea\u80fd\u5355\u5411\u7ebf\u6027\u6267\u884c\u7684\u77ed\u677f\u3002 \u4e00\u53e5\u8bdd\u5b9a\u4f4d&#xff1a;LangChain &#061; AI \u7ec4\u4ef6\u5e93&#xff1b;LangGraph &#061; Agent \u72b6\u6001\u673a\u8fd0\u884c\u5f15\u64ce\u3002<\/p>\n<h4>\u4e00\u3001\u6838\u5fc3\u57fa\u7840\u6982\u5ff5<\/h4>\n<h5>1. State&#xff08;\u72b6\u6001&#xff09;<\/h5>\n<p>\u6574\u4e2a\u56fe\u5168\u5c40\u552f\u4e00\u5171\u4eab\u4e0a\u4e0b\u6587&#xff0c;\u6240\u6709\u8282\u70b9\u8bfb\u5199\u540c\u4e00\u4e2a State&#xff0c;\u6267\u884c\u8fc7\u7a0b\u4e2d\u4e0d\u65ad\u66f4\u65b0\u3002<\/p>\n<ul>\n<li>\n<p>\u672c\u8d28\u662f\u4e00\u4e2a Pydantic \/ TypedDict \u7ed3\u6784<\/p>\n<\/li>\n<li>\n<p>reducer&#xff08;\u5f52\u7ea6\u51fd\u6570&#xff09;<\/p>\n<p>&#xff1a;\u5b9a\u4e49\u5b57\u6bb5\u5408\u5e76\u89c4\u5219&#xff08;\u6700\u6838\u5fc3&#xff09;<\/p>\n<\/li>\n<li>\n<p>add_messages<\/p>\n<p>&#xff1a;\u6d88\u606f\u8ffd\u52a0&#xff08;\u5bf9\u8bdd\u5386\u53f2&#xff09;<\/p>\n<\/li>\n<li>\n<p>\u81ea\u5b9a\u4e49 reducer&#xff1a;\u8986\u76d6\u3001\u5408\u5e76\u5217\u8868\u3001\u53bb\u91cd\u7b49\u903b\u8f91<\/p>\n<\/li>\n<\/ul>\n<p>\u533a\u522b\u666e\u901a\u53d8\u91cf&#xff1a;\u8282\u70b9\u4e0d\u76f4\u63a5\u4fee\u6539\u5bf9\u8c61&#xff0c;\u8fd4\u56de\u589e\u91cf\u66f4\u65b0\u5b57\u5178&#xff0c;\u7531 reducer \u5408\u5e76\u5230\u5168\u5c40\u72b6\u6001\u3002<\/p>\n<p>from typing import Annotated, Sequencefrom langchain_core.messages import BaseMessageimport operatorclass State(TypedDict):    messages: Annotated[Sequence[BaseMessage], operator.add]<\/p>\n<p>operator.add &#061; \u8ffd\u52a0\u7b56\u7565&#xff0c;\u5bf9\u5e94 Java \u7248 Spring\u2011AI\u2011Alibaba Graph \u7684 AppendStrategy\u3002<\/p>\n<h5>2. Graph \/ StateGraph<\/h5>\n<p>StateGraph \u662f\u56fe\u5b9a\u4e49\u6784\u5efa\u5668&#xff08;DSL&#xff09;&#xff0c;\u8d1f\u8d23\u6ce8\u518c\u8282\u70b9\u3001\u6dfb\u52a0\u8fb9\u3001\u6761\u4ef6\u8def\u7531\u3002<\/p>\n<ul>\n<li>\u5185\u7f6e\u4e24\u4e2a\u7279\u6b8a\u5e38\u91cf&#xff1a;START&#xff08;\u5165\u53e3&#xff09;\u3001END&#xff08;\u7ed3\u675f&#xff09;<\/li>\n<li>\u6d41\u7a0b&#xff1a;\u5b9a\u4e49 State \u2192 \u5b9e\u4f8b\u5316 StateGraph \u2192 add_node \u2192 add_edge \/add_conditional_edges \u2192 compile ()<\/li>\n<\/ul>\n<h5>3. Node \u8282\u70b9<\/h5>\n<p>\u6700\u5c0f\u6267\u884c\u5355\u5143&#xff0c;\u8f93\u5165 State&#xff0c;\u8fd4\u56de\u72b6\u6001\u66f4\u65b0\u5b57\u5178\u3002 \u8282\u70b9\u7c7b\u578b&#xff1a;<\/p>\n<li>\n<p>\u81ea\u5b9a\u4e49 Python \u51fd\u6570\u8282\u70b9&#xff08;\u4e1a\u52a1\u903b\u8f91&#xff09;<\/p>\n<\/li>\n<li>\n<p>LLM Node<\/p>\n<p>&#xff1a;\u8c03\u7528\u5927\u6a21\u578b invoke \/stream<\/p>\n<\/li>\n<li>\n<p>Tool Node<\/p>\n<p>&#xff1a;ToolNode \u6267\u884c function\u2011call<\/p>\n<\/li>\n<li>\n<p>Human\u2011in\u2011the\u2011loop \u4eba\u5de5\u8282\u70b9<\/p>\n<\/li>\n<li>\n<p>\u5b50\u56fe SubGraph&#xff08;\u628a\u4e00\u4e2a\u5b8c\u6574 Graph \u5c01\u88c5\u6210\u8282\u70b9&#xff09;<\/p>\n<\/li>\n<p>\u8282\u70b9\u662f\u7eaf\u51fd\u6570\u98ce\u683c&#xff1a;\u53ea\u4f9d\u8d56\u8f93\u5165 state&#xff0c;\u8f93\u51fa\u589e\u91cf\u66f4\u65b0\u3002<\/p>\n<h5>4. Edge \u8fb9&#xff08;\u6d41\u8f6c\u63a7\u5236&#xff09;<\/h5>\n<p>\u4e24\u7c7b\u8fb9&#xff1a;<\/p>\n<li>\n<p>\u666e\u901a\u8fb9 add_edge(A, B)<\/p>\n<p>&#xff1a;\u6267\u884c\u5b8c A&#xff0c;\u65e0\u6761\u4ef6\u8d70\u5230 B<\/p>\n<\/li>\n<li>\n<p>\u6761\u4ef6\u8fb9 add_conditional_edges<\/p>\n<p>&#xff1a;\u6267\u884c\u5b8c\u8282\u70b9\u540e&#xff0c;\u8fd0\u884c\u8def\u7531\u51fd\u6570&#xff0c;\u6839\u636e\u5f53\u524d state \u8fd4\u56de\u4e0b\u4e00\u4e2a\u8282\u70b9\u540d\u79f0&#xff0c;\u5b9e\u73b0 if\u2011else\u3001\u5faa\u73af\u5224\u65ad\u3002<\/p>\n<\/li>\n<p>\u5178\u578b\u8def\u7531\u903b\u8f91&#xff1a;<\/p>\n<p>LLM \u8f93\u51fa\u662f\u5426\u9700\u8981\u8c03\u7528\u5de5\u5177 \u2192 \u9700\u8981\u8d70 ToolNode&#xff0c;\u4e0d\u9700\u8981\u8d70 END<\/p>\n<h5>5. CompiledGraph&#xff08;\u7f16\u8bd1\u540e\u7684\u53ef\u6267\u884c\u5bf9\u8c61&#xff09;<\/h5>\n<p>\u8c03\u7528 graph.compile() \u5f97\u5230\u8fd0\u884c\u5b9e\u4f8b&#xff1a;<\/p>\n<ul>\n<li>\n<p>invoke()<\/p>\n<p>&#xff1a;\u4e00\u6b21\u6027\u5b8c\u6574\u6267\u884c&#xff0c;\u8fd4\u56de\u6700\u7ec8 state<\/p>\n<\/li>\n<li>\n<p>stream()<\/p>\n<p>&#xff1a;\u6d41\u5f0f\u9010\u8282\u70b9\u8fd4\u56de\u4e8b\u4ef6&#xff0c;\u53ef\u62ff\u5230\u6bcf\u4e00\u6b65\u6d88\u606f\u3001\u5de5\u5177\u8c03\u7528&#xff0c;\u524d\u7aef\u505a Agent \u601d\u8003\u8fc7\u7a0b\u5c55\u793a<\/p>\n<\/li>\n<li>\n<p>astream()<\/p>\n<p>\u5f02\u6b65\u6d41\u5f0f&#xff08;\u751f\u4ea7\u9ad8\u5e76\u53d1\u5e38\u7528&#xff09;<\/p>\n<\/li>\n<\/ul>\n<h4>\u4e8c\u3001\u4e09\u5927\u6838\u5fc3\u9ad8\u7ea7\u80fd\u529b&#xff08;LangGraph \u6807\u5fd7\u6027\u7279\u6027&#xff09;<\/h4>\n<h5>1. Checkpointer \u68c0\u67e5\u70b9 \/ \u6301\u4e45\u5316\u5feb\u7167<\/h5>\n<p>\u6bcf\u8d70\u5b8c\u4e00\u4e2a\u8282\u70b9&#xff0c;\u81ea\u52a8\u4fdd\u5b58\u4e00\u4efd\u5b8c\u6574 State \u5feb\u7167\u3002<\/p>\n<ul>\n<li>\u5185\u5b58&#xff1a;MemorySaver()&#xff08;\u672c\u5730\u8c03\u8bd5&#xff09;<\/li>\n<li>\u751f\u4ea7\u6301\u4e45\u5316&#xff1a;SqliteSaver \/ PostgresSaver \/ RedisSaver<\/li>\n<\/ul>\n<p>\u4ef7\u503c&#xff1a;<\/p>\n<li>\u65ad\u70b9\u6062\u590d&#xff1a;\u5f02\u5e38\u4e2d\u65ad\u540e\u4ece\u5feb\u7167\u91cd\u65b0\u8dd1<\/li>\n<li>Human\u2011in\u2011the\u2011loop&#xff1a;\u6682\u505c\u6d41\u7a0b&#xff0c;\u4eba\u5de5\u5ba1\u6838\u540e resume<\/li>\n<li>\u5386\u53f2\u56de\u6eaf\u3001\u4f1a\u8bdd\u9694\u79bb&#xff08;thread_id \u4f1a\u8bdd\u552f\u4e00\u6807\u8bc6&#xff09;<\/li>\n<p>thread_id&#xff1a;\u4e00\u6761\u72ec\u7acb\u4f1a\u8bdd\u7684\u552f\u4e00 id&#xff0c;\u4e0d\u540c\u5bf9\u8bdd\u72b6\u6001\u4e92\u76f8\u9694\u79bb\u3002<\/p>\n<h5>2. Human\u2011in\u2011the\u2011Loop \u4eba\u673a\u4ecb\u5165<\/h5>\n<p>\u4e24\u79cd\u5b9e\u73b0\u65b9\u5f0f&#xff1a;<\/p>\n<li>\n<p>interrupt_before \/ interrupt_after<\/p>\n<p>&#xff1a;\u5728\u6307\u5b9a\u8282\u70b9\u524d\u540e\u81ea\u52a8\u6682\u505c&#xff0c;\u4fdd\u5b58 checkpoint<\/p>\n<\/li>\n<li>\n<p>\u5916\u90e8\u901a\u8fc7 update_state() \u4fee\u6539\u72b6\u6001&#xff0c;\u518d resume \u7ee7\u7eed\u6267\u884c<\/p>\n<\/li>\n<p>\u4e1a\u52a1\u573a\u666f&#xff1a;Agent \u751f\u6210\u65b9\u6848 \u2192 \u4eba\u5de5\u5ba1\u6279\u786e\u8ba4 \u2192 \u7ee7\u7eed\u6267\u884c\u540e\u7eed\u6d41\u7a0b\u3002<\/p>\n<h5>3. Subgraph \u5b50\u56fe\u590d\u7528<\/h5>\n<p>\u4e00\u4e2a\u5b8c\u6574 CompiledGraph \u53ef\u4ee5\u4f5c\u4e3a\u4e00\u4e2a Node \u5d4c\u5165\u7236\u56fe&#xff0c;\u5b9e\u73b0\u6a21\u5757\u5316&#xff1a;<\/p>\n<ul>\n<li>\u5b50\u56fe\u53ef\u4ee5\u72ec\u7acb\u72b6\u6001\u6216\u8005\u548c\u7236\u56fe\u72b6\u6001\u6620\u5c04\u8f6c\u6362<\/li>\n<li>\u9002\u5408\u591a Agent \u573a\u666f&#xff1a;\u6bcf\u4e2a\u5b50\u56fe &#061; \u4e00\u4e2a\u72ec\u7acb\u5b50\u667a\u80fd\u4f53<\/li>\n<\/ul>\n<h4>\u4e09\u3001\u7ecf\u5178\u5185\u7f6e\u7ec4\u4ef6 &amp; \u6807\u51c6 Agent \u8303\u5f0f<\/h4>\n<h5>1. ReAct Agent&#xff08;\u6700\u57fa\u7840\u5faa\u73af Agent&#xff09;<\/h5>\n<p>\u6807\u51c6\u6d41\u7a0b\u56fe&#xff1a;START \u2192 LLM\u8282\u70b9 \u2192 \u8def\u7531\u5224\u65ad<\/p>\n<ul>\n<li>\u9700\u8981\u5de5\u5177 \u2192 ToolNode \u2192 \u8fd4\u56de\u7ed3\u679c\u56de\u5230 LLM&#xff08;\u5faa\u73af&#xff09;<\/li>\n<li>\u4e0d\u9700\u8981\u5de5\u5177 \u2192 END \u7ed3\u675f<\/li>\n<\/ul>\n<p>\u914d\u5957\u5185\u7f6e\u5de5\u5177\u8282\u70b9&#xff1a;ToolNode &#043; tools_condition \u8def\u7531\u51fd\u6570&#xff08;LangGraph \u5185\u7f6e\u5c01\u88c5\u597d\u7684\u5224\u65ad\u903b\u8f91&#xff09;<\/p>\n<h5>2. \u9884\u7f6e\u9ad8\u7ea7 Agent \u6a21\u5f0f<\/h5>\n<li>\n<p>Sequential \u4e32\u884c\u6d41\u6c34\u7ebf<\/p>\n<p>&#xff1a;A\u2192B\u2192C&#xff0c;\u56fa\u5b9a\u987a\u5e8f\u6267\u884c<\/p>\n<\/li>\n<li>\n<p>Parallel \u5e76\u884c\u8282\u70b9<\/p>\n<p>&#xff1a;\u4f7f\u7528 Send \u539f\u8bed&#xff0c;\u5e76\u884c\u542f\u52a8\u591a\u4e2a\u5b50\u4efb\u52a1&#xff0c;\u4e4b\u540e\u7ed3\u679c\u6c47\u805a&#xff08;Map\u2011Reduce&#xff09;<\/p>\n<\/li>\n<li>\n<p>Supervisor \u4e3b\u7ba1\u591a\u667a\u80fd\u4f53<\/p>\n<p>&#xff1a;\u4e3b\u7ba1 LLM \u8d1f\u8d23\u5206\u53d1\u4efb\u52a1\u7ed9\u591a\u4e2a\u5b50 Agent&#xff0c;\u6536\u96c6\u7ed3\u679c\u8fed\u4ee3\u6c47\u603b<\/p>\n<\/li>\n<li>\n<p>Multi\u2011turn RAG Agent<\/p>\n<p>&#xff1a;\u68c0\u7d22\u2011\u601d\u8003\u2011\u518d\u68c0\u7d22\u5faa\u73af<\/p>\n<\/li>\n<li>\n<p>Self\u2011Reflection \u81ea\u6211\u53cd\u601d Agent<\/p>\n<p>&#xff1a;\u6267\u884c\u5b8c\u6210\u540e\u8d70\u53cd\u601d\u8282\u70b9&#xff0c;\u5224\u65ad\u7ed3\u679c\u662f\u5426\u5408\u683c&#xff0c;\u4e0d\u5408\u683c\u91cd\u65b0\u6267\u884c<\/p>\n<\/li>\n<h5>3. Send \u539f\u8bed&#xff08;\u52a8\u6001\u6279\u91cf\u4efb\u52a1&#xff09;<\/h5>\n<p>Send(&#034;\u5b50\u8282\u70b9&#034;, \u72ec\u7acb\u72b6\u6001)&#xff0c;\u5728\u8fd0\u884c\u671f\u52a8\u6001\u751f\u6210 N \u4e2a\u5e76\u884c\u4efb\u52a1&#xff0c;\u5b9e\u73b0 MapReduce\u3002<\/p>\n<h4>\u56db\u3001\u6d41\u5f0f\u4e0e\u5f02\u6b65<\/h4>\n<li>\n<p>stream()<\/p>\n<p>\/ astream_events()&#xff1a;\u53ef\u4ee5\u533a\u5206\u4e8b\u4ef6\u7c7b\u578b&#xff1a;on_chat_model_stream\u3001on_tool_start\u3001on_node_end<\/p>\n<\/li>\n<li>\n<p>\u53ef\u4ee5\u5728\u524d\u7aef\u5c55\u793a&#xff1a;\u6a21\u578b\u6253\u5b57\u673a\u8f93\u51fa\u3001\u5de5\u5177\u8c03\u7528\u65e5\u5fd7\u3001Agent \u601d\u8003\u94fe\u8def<\/p>\n<\/li>\n<li>\n<p>\u652f\u6301\u914d\u7f6e recursion_limit \u6700\u5927\u8fed\u4ee3\u6b21\u6570&#xff0c;\u9632\u6b62\u6b7b\u5faa\u73af&#xff08;\u751f\u4ea7\u5fc5\u914d&#xff09;<\/p>\n<\/li>\n<h4>\u4e94\u3001LangGraph \u5b8c\u6574\u6267\u884c\u751f\u547d\u5468\u671f<\/h4>\n<li>\u4f20\u5165 thread_id &#043; \u521d\u59cb state<\/li>\n<li>\u4ece START \u5f00\u59cb\u6267\u884c Node<\/li>\n<li>\u8282\u70b9\u8fd4\u56de\u589e\u91cf\u66f4\u65b0 \u2192 reducer \u5408\u5e76\u5168\u5c40 state<\/li>\n<li>\u4fdd\u5b58 checkpoint \u5feb\u7167<\/li>\n<li>\u6761\u4ef6\u8fb9\u8def\u7531&#xff0c;\u8df3\u8f6c\u4e0b\u4e00\u8282\u70b9&#xff1b;\u9047\u5230 interrupt \u6682\u505c<\/li>\n<li>\u5faa\u73af\u76f4\u5230\u547d\u4e2d END<\/li>\n<li>\u8fd4\u56de\u6700\u7ec8\u5b8c\u6574\u72b6\u6001<\/li>\n<h4>\u516d\u3001LangGraph \u751f\u6001\u5468\u8fb9<\/h4>\n<li>\n<p>LangGraph Studio<\/p>\n<p>&#xff1a;\u53ef\u89c6\u5316\u8c03\u8bd5 IDE&#xff0c;\u67e5\u770b\u72b6\u6001\u6d41\u8f6c\u3001\u65ad\u70b9\u8c03\u8bd5<\/p>\n<\/li>\n<li>\n<p>LangGraph Cloud<\/p>\n<p>&#xff1a;\u4e91\u7aef\u90e8\u7f72\u6258\u7ba1\u670d\u52a1&#xff0c;\u652f\u6301 API \u8c03\u7528\u3001\u6301\u4e45\u5b58\u50a8\u3001\u76d1\u63a7<\/p>\n<\/li>\n<li>\n<p>langgraph\u2011checkpoint\u2011*<\/p>\n<p>&#xff1a;\u5404\u79cd\u6301\u4e45\u5316\u5b58\u50a8\u9a71\u52a8<\/p>\n<\/li>\n<li>\n<p>LangGraph SDK&#xff1a;\u63d0\u4f9b\u540e\u7aef\u670d\u52a1\u63a5\u53e3&#xff0c;\u5bf9\u5916\u63d0\u4f9b Agent HTTP \u670d\u52a1<\/p>\n<\/li>\n<h4>\u4e03\u3001\u6a2a\u5411\u5bf9\u6bd4&#xff08;\u9762\u8bd5\u9ad8\u9891&#xff09;<\/h4>\n<h5>LangGraph vs LangChain Chain<\/h5>\n<ul>\n<li>Chain&#xff1a;\u5355\u5411\u7ebf\u6027&#xff0c;\u4e0d\u80fd\u5faa\u73af&#xff0c;\u6ca1\u6709\u539f\u751f\u72b6\u6001\u5feb\u7167\u3001\u6ca1\u6709\u65ad\u70b9\u6062\u590d<\/li>\n<li>LangGraph&#xff1a;\u72b6\u6001\u673a&#xff0c;\u652f\u6301\u5faa\u73af\u3001\u5206\u652f\u3001\u4eba\u5de5\u4ecb\u5165\u3001\u6301\u4e45\u5316\u4f1a\u8bdd&#xff0c;\u9002\u5408\u590d\u6742\u957f\u6d41\u7a0b Agent<\/li>\n<\/ul>\n<h5>LangGraph(Python) VS Spring\u2011AI\u2011Alibaba Graph(Java) VS LangChain4j<\/h5>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u7279\u6027LangGraph(Python)Spring\u2011AI\u2011Alibaba GraphLangChain4j<\/tr>\n<tbody>\n<tr>\n<td>\u8bed\u8a00<\/td>\n<td>Python<\/td>\n<td>Java<\/td>\n<td>Java<\/td>\n<\/tr>\n<tr>\n<td>\u72b6\u6001\u5408\u5e76<\/td>\n<td>TypedDict &#043; reducer<\/td>\n<td>OverAllState &#043; KeyStrategy<\/td>\n<td>ChatMemory&#xff08;\u65e0\u72b6\u6001\u56fe&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>Checkpointer<\/td>\n<td>\u539f\u751f\u5b8c\u5584<\/td>\n<td>\u539f\u751f\u652f\u6301<\/td>\n<td>\u65e0\u539f\u751f<\/td>\n<\/tr>\n<tr>\n<td>Human\u2011in\u2011the\u2011loop<\/td>\n<td>\u6210\u719f<\/td>\n<td>\u652f\u6301<\/td>\n<td>\u65e0<\/td>\n<\/tr>\n<tr>\n<td>\u5b50\u56fe &amp; \u5e76\u884c Send<\/td>\n<td>Send \u539f\u8bed<\/td>\n<td>\u5b50\u56fe&#xff0c;\u5e76\u884c\u8282\u70b9<\/td>\n<td>\u65e0\u539f\u751f\u7f16\u6392<\/td>\n<\/tr>\n<tr>\n<td>\u751f\u6001<\/td>\n<td>LangChain \u5b8c\u6574\u7ec4\u4ef6<\/td>\n<td>\u590d\u7528 Spring AI \u5e95\u5c42<\/td>\n<td>AiServices \u9ad8\u5c42 API<\/td>\n<\/tr>\n<tr>\n<td>\u9002\u7528\u573a\u666f<\/td>\n<td>Python \u590d\u6742 Agent \u539f\u578b \/ \u4e1a\u52a1<\/td>\n<td>Java \u5fae\u670d\u52a1\u751f\u4ea7 Agent<\/td>\n<td>\u7b80\u5355 Java \u5bf9\u8bdd\u3001\u5de5\u5177\u8c03\u7528<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h5>LangGraph vs AutoGPT \/ CrewAI<\/h5>\n<ul>\n<li>LangGraph &#061; \u5e95\u5c42\u7f16\u6392\u5f15\u64ce&#xff0c;\u7075\u6d3b\u53ef\u63a7&#xff0c;\u81ea\u5df1\u5b9a\u4e49\u6bcf\u4e00\u6b65\u903b\u8f91<\/li>\n<li>CrewAI &#061; \u9ad8\u5c42\u591a Agent \u6846\u67b6&#xff0c;\u57fa\u4e8e LangGraph \u5c01\u88c5&#xff0c;\u5f00\u7bb1\u5373\u7528\u56e2\u961f\u534f\u4f5c Agent<\/li>\n<\/ul>\n<h4>\u516b\u3001\u751f\u4ea7\u8e29\u5751 &amp; \u6700\u4f73\u5b9e\u8df5<\/h4>\n<li>\n<p>Reducer \u51fd\u6570\u4e00\u5b9a\u8981\u5b9a\u4e49<\/p>\n<p>&#xff1a;\u4e0d\u6307\u5b9a\u5408\u5e76\u7b56\u7565\u4f1a\u76f4\u63a5\u8986\u76d6\u6d88\u606f&#xff0c;\u4e22\u5931\u5bf9\u8bdd\u5386\u53f2<\/p>\n<\/li>\n<li>\n<p>recursion_limit<\/p>\n<p>\u8bbe\u7f6e\u5408\u7406\u4e0a\u9650&#xff0c;\u907f\u514d\u6b7b\u5faa\u73af\u8017\u5c3d token \u4e0e\u8d39\u7528<\/p>\n<\/li>\n<li>\n<p>\u751f\u4ea7\u5fc5\u987b\u66ff\u6362\u5185\u5b58 Checkpointer \u4e3a\u6301\u4e45\u5316\u6570\u636e\u5e93&#xff0c;\u7ed1\u5b9a\u552f\u4e00 thread_id \u7ba1\u7406\u4f1a\u8bdd<\/p>\n<\/li>\n<li>\n<p>Interrupt \u6682\u505c\u540e&#xff0c;\u4fee\u6539\u72b6\u6001\u4f18\u5148\u4f7f\u7528 update_state&#xff0c;\u4e0d\u8981\u76f4\u63a5\u7be1\u6539\u5feb\u7167<\/p>\n<\/li>\n<li>\n<p>\u5b50\u56fe\u5c3d\u91cf\u505a\u72b6\u6001\u9694\u79bb&#xff0c;\u907f\u514d\u7236\u56fe\u5b57\u6bb5\u51b2\u7a81<\/p>\n<\/li>\n<li>\n<p>\u6d41\u5f0f\u8f93\u51fa\u533a\u5206\u4e0d\u540c\u4e8b\u4ef6\u7c7b\u578b&#xff0c;\u524d\u7aef\u505a\u7cbe\u7ec6\u5316\u5c55\u793a<\/p>\n<\/li>\n<li>\n<p>\u5927\u5e76\u53d1\u573a\u666f\u4f18\u5148\u4f7f\u7528\u5f02\u6b65 astream&#xff0c;\u907f\u514d\u963b\u585e<\/p>\n<\/li>\n<h4>\u4e5d\u3001\u9ad8\u9891\u9762\u8bd5\u9898\u6c47\u603b<\/h4>\n<li>\n<p>State \u548c reducer \u7684\u4f5c\u7528\u662f\u4ec0\u4e48&#xff1f;operator.add \u542b\u4e49&#xff1f;<\/p>\n<p>State \u662f\u5168\u5c40\u4e0a\u4e0b\u6587&#xff1b;reducer \u5b9a\u4e49\u5b57\u6bb5\u5408\u5e76\u7b56\u7565&#xff1b;operator.add \u5b9e\u73b0\u6d88\u606f\u8ffd\u52a0\u800c\u4e0d\u662f\u8986\u76d6\u3002<\/p>\n<\/li>\n<li>\n<p>Checkpointer \u548c thread_id \u7684\u4f5c\u7528&#xff1f;<\/p>\n<p>Checkpointer \u4fdd\u5b58\u6bcf\u4e00\u6b65\u5feb\u7167&#xff1b;thread_id \u6807\u8bc6\u4e00\u6761\u72ec\u7acb\u4f1a\u8bdd&#xff0c;\u7528\u6765\u65ad\u70b9\u6062\u590d\u3001\u4eba\u673a\u6682\u505c\u6062\u590d\u3002<\/p>\n<\/li>\n<li>\n<p>Human\u2011in\u2011the\u2011loop \u539f\u7406\u662f\u4ec0\u4e48&#xff1f;<\/p>\n<p>\u6267\u884c\u5230 interrupt \u8282\u70b9\u6682\u505c&#xff0c;\u4fdd\u5b58 checkpoint&#xff1b;\u5916\u90e8\u66f4\u65b0\u72b6\u6001\u540e\u57fa\u4e8e\u5feb\u7167\u7ee7\u7eed\u6267\u884c\u3002<\/p>\n<\/li>\n<li>\n<p>\u4ec0\u4e48\u662f Send \u539f\u8bed&#xff1f;Map\u2011Reduce \u5982\u4f55\u5b9e\u73b0&#xff1f;<\/p>\n<p>\u8fd0\u884c\u65f6\u52a8\u6001\u751f\u6210\u591a\u4e2a\u72ec\u7acb\u4efb\u52a1\u5e76\u884c\u6267\u884c&#xff0c;\u6700\u540e\u6c47\u805a\u7ed3\u679c\u3002<\/p>\n<\/li>\n<li>\n<p>ReAct Agent \u5728 LangGraph \u7684\u6267\u884c\u6d41\u7a0b&#xff1f;<\/p>\n<p>LLM \u63a8\u7406 \u2192 \u6761\u4ef6\u8def\u7531\u5224\u65ad\u662f\u5426\u8c03\u7528\u5de5\u5177 \u2192 ToolNode \u6267\u884c\u5de5\u5177 \u2192 \u7ed3\u679c\u56de\u4f20\u7ed9 LLM \u5faa\u73af&#xff0c;\u76f4\u5230\u65e0\u9700\u5de5\u5177\u7ed3\u675f\u3002<\/p>\n<\/li>\n<li>\n<p>LangGraph \u548c\u666e\u901a LangChain Chain \u7684\u533a\u522b&#xff1f;<\/p>\n<p>Chain \u53ea\u80fd\u5355\u5411\u7ebf\u6027\u6267\u884c&#xff1b;LangGraph \u662f\u72b6\u6001\u673a&#xff0c;\u652f\u6301\u5faa\u73af\u3001\u5206\u652f\u3001\u65ad\u70b9\u6062\u590d\u3001\u4eba\u5de5\u4ecb\u5165&#xff0c;\u9002\u5408\u590d\u6742 Agent\u3002<\/p>\n<\/li>\n<li>\n<p>SubGraph \u662f\u4ec0\u4e48&#xff1f;\u4f7f\u7528\u573a\u666f&#xff1f;<\/p>\n<p>\u4e00\u4e2a\u5b8c\u6574\u56fe\u5c01\u88c5\u6210\u8282\u70b9&#xff0c;\u5b9e\u73b0 Agent \u6a21\u5757\u5316\u3001\u591a\u667a\u80fd\u4f53\u590d\u7528\u3002<\/p>\n<\/li>\n<h4>\u5b66AI\u5927\u6a21\u578b\u7684\u6b63\u786e\u987a\u5e8f&#xff0c;\u5343\u4e07\u4e0d\u8981\u641e\u9519\u4e86<\/h4>\n<p>&#x1f914;2026\u5e74AI\u98ce\u53e3\u5df2\u6765&#xff01;\u5404\u884c\u5404\u4e1a\u7684AI\u6e17\u900f\u8089\u773c\u53ef\u89c1&#xff0c;\u8d85\u591a\u516c\u53f8\u8981\u4e48\u8f6c\u578b\u505aAI\u76f8\u5173\u4ea7\u54c1&#xff0c;\u8981\u4e48\u9ad8\u85aa\u6316AI\u6280\u672f\u4eba\u624d&#xff0c;\u673a\u9047\u76f4\u63a5\u6446\u5728\u773c\u524d&#xff01;<\/p>\n<p>\u6709\u5f80AI\u65b9\u5411\u53d1\u5c55&#xff0c;\u6216\u8005\u672c\u8eab\u6709\u540e\u7aef\u7f16\u7a0b\u57fa\u7840\u7684\u670b\u53cb&#xff0c;\u76f4\u63a5\u51b2AI\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u8f6c\u5c97\u8d85\u5408\u9002&#xff01;<\/p>\n<p>\u5c31\u7b97\u6682\u65f6\u4e0d\u6253\u7b97\u8f6c\u5c97&#xff0c;\u4e86\u89e3\u5927\u6a21\u578b\u3001RAG\u3001Prompt\u3001Agent\u8fd9\u4e9b\u70ed\u95e8\u6982\u5ff5&#xff0c;\u80fd\u4e0a\u624b\u505a\u7b80\u5355\u9879\u76ee&#xff0c;\u4e5f\u7edd\u5bf9\u662f\u6c42\u804c\u52a0\u5206\u738b&#x1f50b;<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260913091802-6aa66a4a48c81.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>&#x1f4dd;\u7ed9\u5927\u5bb6\u6574\u7406\u4e86\u8d85\u5168\u6700\u65b0\u7684AI\u5927\u6a21\u578b\u5e94\u7528\u5f00\u53d1\u5b66\u4e60\u6e05\u5355\u548c\u8d44\u6599&#xff0c;\u624b\u628a\u624b\u5e2e\u4f60\u5feb\u901f\u5165\u95e8&#xff01;&#x1f447;&#x1f447;<\/p>\n<p>\u5b66\u4e60\u8def\u7ebf:<\/p>\n<p>\u2705\u5927\u6a21\u578b\u57fa\u7840\u8ba4\u77e5\u2014\u5927\u6a21\u578b\u6838\u5fc3\u539f\u7406\u3001\u53d1\u5c55\u5386\u7a0b\u3001\u4e3b\u6d41\u6a21\u578b&#xff08;GPT\u3001\u6587\u5fc3\u4e00\u8a00\u7b49&#xff09;\u7279\u70b9\u89e3\u6790 \u2705\u6838\u5fc3\u6280\u672f\u6a21\u5757\u2014RAG\u68c0\u7d22\u589e\u5f3a\u751f\u6210\u3001Prompt\u5de5\u7a0b\u5b9e\u6218\u3001Agent\u667a\u80fd\u4f53\u5f00\u53d1\u903b\u8f91 \u2705\u5f00\u53d1\u57fa\u7840\u80fd\u529b\u2014Python\u8fdb\u9636\u3001API\u63a5\u53e3\u8c03\u7528\u3001\u5927\u6a21\u578b\u5f00\u53d1\u6846\u67b6&#xff08;LangChain\u7b49&#xff09;\u5b9e\u64cd \u2705\u5e94\u7528\u573a\u666f\u5f00\u53d1\u2014\u667a\u80fd\u95ee\u7b54\u7cfb\u7edf\u3001\u4f01\u4e1a\u77e5\u8bc6\u5e93\u3001AIGC\u5185\u5bb9\u751f\u6210\u5de5\u5177\u3001\u884c\u4e1a\u5b9a\u5236\u5316\u5927\u6a21\u578b\u5e94\u7528 \u2705\u9879\u76ee\u843d\u5730\u6d41\u7a0b\u2014\u9700\u6c42\u62c6\u89e3\u3001\u6280\u672f\u9009\u578b\u3001\u6a21\u578b\u8c03\u4f18\u3001\u6d4b\u8bd5\u4e0a\u7ebf\u3001\u8fd0\u7ef4\u8fed\u4ee3 \u2705\u9762\u8bd5\u6c42\u804c\u51b2\u523a\u2014\u5c97\u4f4dJD\u89e3\u6790\u3001\u7b80\u5386AI\u9879\u76ee\u5305\u88c5\u3001\u9ad8\u9891\u9762\u8bd5\u9898\u6c47\u603b\u3001\u6a21\u62df\u9762\u7ecf<\/p>\n<p>\u4ee5\u4e0a6\u5927\u6a21\u5757&#xff0c;\u770b\u4f3c\u6e05\u6670\u597d\u4e0a\u624b&#xff0c;\u5b9e\u5219\u6bcf\u4e2a\u90e8\u5206\u90fd\u6709\u624e\u5b9e\u7684\u6838\u5fc3\u5185\u5bb9\u9700\u8981\u5403\u900f&#xff01;<\/p>\n<p>\u6211\u628a\u5927\u6a21\u578b\u7684\u5b66\u4e60\u5168\u6d41\u7a0b\u5df2\u7ecf\u6574\u7406&#x1f4da;\u597d\u4e86&#xff01;\u6293\u4f4fAI\u65f6\u4ee3\u98ce\u53e3&#xff0c;\u8f7b\u677e\u89e3\u9501\u804c\u4e1a\u65b0\u53ef\u80fd&#xff0c;\u5e0c\u671b\u5927\u5bb6\u90fd\u80fd\u628a\u63e1\u673a\u9047&#xff0c;\u5b9e\u73b0\u85aa\u8d44\/\u804c\u4e1a\u8dc3\u8fc1&#xff5e;<\/p>\n<h6>\u8fd9\u4efd\u5b8c\u6574\u7248\u7684\u5927\u6a21\u578b AI \u5b66\u4e60\u8d44\u6599\u5df2\u7ecf\u4e0a\u4f20CSDN&#xff0c;\u670b\u53cb\u4eec\u5982\u679c\u9700\u8981\u53ef\u4ee5\u5fae\u4fe1\u626b\u63cf\u4e0b\u65b9CSDN\u5b98\u65b9\u8ba4\u8bc1\u4e8c\u7ef4\u7801\u514d\u8d39\u9886\u53d6\u3010\u4fdd\u8bc1100%\u514d\u8d39\u3011<\/h6>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260913091802-6aa66a4a70f17.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u672c\u6587\u8f6c\u8f7d&#xff0c;\u5982\u6709\u4fb5\u6743&#xff0c;\u8bf7\u8054\u7cfb\u5220\u9664\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LangGraph \u662f LangChain \u5b98\u65b9\u63a8\u51fa\u7684\u56fe\u7f16\u6392\u6846\u67b6&#xff0c;\u7528\u6765\u6784\u5efa\u5e26\u5faa\u73af\u3001\u5206\u652f\u3001\u65ad\u70b9\u6062\u590d\u3001\u4eba\u673a\u4ecb\u5165\u7684\u590d\u6742 Agent \/ \u591a\u667a\u80fd\u4f53\u5de5\u4f5c\u6d41&#xff1b;\u5f25\u8865 LangChain \u539f\u6709 Chain \u53ea\u80fd\u5355\u5411\u7ebf\u6027\u6267\u884c\u7684\u77ed\u677f\u3002 \u4e00\u53e5\u8bdd\u5b9a\u4f4d&#xff1a;LangChain  AI \u7ec4\u4ef6\u5e93&#xff1b;LangGraph  Agent \u72b6\u6001\u673a\u8fd0\u884c\u5f15\u64ce\u3002 \u4e00\u3001\u6838\u5fc3\u57fa\u7840\u6982\u5ff5<br \/>\n1. State&#xff08;\u72b6\u6001&#xff09;<br \/>\n\u6574\u4e2a\u56fe\u5168\u5c40\u552f\u4e00\u5171\u4eab\u4e0a\u4e0b\u6587&amp;#xf<\/p>\n","protected":false},"author":2,"featured_media":105051,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[7518,74,99,3503,50],"topic":[],"class_list":["post-105053","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-7518","tag-agent","tag-java","tag-langgraph","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>LangGraph \u5b8c\u6574\u77e5\u8bc6\u70b9\u603b\u7ed3-\u96f6\u57fa\u7840\u5c0f\u767d\u5fc5\u770b\uff0c\u4e00\u770b\u5c31\u61c2\uff01 - \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\/105053.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LangGraph \u5b8c\u6574\u77e5\u8bc6\u70b9\u603b\u7ed3-\u96f6\u57fa\u7840\u5c0f\u767d\u5fc5\u770b\uff0c\u4e00\u770b\u5c31\u61c2\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"LangGraph \u662f LangChain \u5b98\u65b9\u63a8\u51fa\u7684\u56fe\u7f16\u6392\u6846\u67b6&#xff0c;\u7528\u6765\u6784\u5efa\u5e26\u5faa\u73af\u3001\u5206\u652f\u3001\u65ad\u70b9\u6062\u590d\u3001\u4eba\u673a\u4ecb\u5165\u7684\u590d\u6742 Agent \/ \u591a\u667a\u80fd\u4f53\u5de5\u4f5c\u6d41&#xff1b;\u5f25\u8865 LangChain \u539f\u6709 Chain \u53ea\u80fd\u5355\u5411\u7ebf\u6027\u6267\u884c\u7684\u77ed\u677f\u3002 \u4e00\u53e5\u8bdd\u5b9a\u4f4d&#xff1a;LangChain AI \u7ec4\u4ef6\u5e93&#xff1b;LangGraph Agent \u72b6\u6001\u673a\u8fd0\u884c\u5f15\u64ce\u3002 \u4e00\u3001\u6838\u5fc3\u57fa\u7840\u6982\u5ff5 1. State&#xff08;\u72b6\u6001&#xff09; \u6574\u4e2a\u56fe\u5168\u5c40\u552f\u4e00\u5171\u4eab\u4e0a\u4e0b\u6587&amp;#xf\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/105053.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-13T09:18:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260913091802-6aa66a4a48c81.png\" \/>\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=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/105053.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/105053.html\",\"name\":\"LangGraph \u5b8c\u6574\u77e5\u8bc6\u70b9\u603b\u7ed3-\u96f6\u57fa\u7840\u5c0f\u767d\u5fc5\u770b\uff0c\u4e00\u770b\u5c31\u61c2\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-13T09:18:03+00:00\",\"dateModified\":\"2026-09-13T09:18:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/105053.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/105053.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/105053.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LangGraph \u5b8c\u6574\u77e5\u8bc6\u70b9\u603b\u7ed3-\u96f6\u57fa\u7840\u5c0f\u767d\u5fc5\u770b\uff0c\u4e00\u770b\u5c31\u61c2\uff01\"}]},{\"@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":"LangGraph \u5b8c\u6574\u77e5\u8bc6\u70b9\u603b\u7ed3-\u96f6\u57fa\u7840\u5c0f\u767d\u5fc5\u770b\uff0c\u4e00\u770b\u5c31\u61c2\uff01 - \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\/105053.html","og_locale":"zh_CN","og_type":"article","og_title":"LangGraph \u5b8c\u6574\u77e5\u8bc6\u70b9\u603b\u7ed3-\u96f6\u57fa\u7840\u5c0f\u767d\u5fc5\u770b\uff0c\u4e00\u770b\u5c31\u61c2\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"LangGraph \u662f LangChain \u5b98\u65b9\u63a8\u51fa\u7684\u56fe\u7f16\u6392\u6846\u67b6&#xff0c;\u7528\u6765\u6784\u5efa\u5e26\u5faa\u73af\u3001\u5206\u652f\u3001\u65ad\u70b9\u6062\u590d\u3001\u4eba\u673a\u4ecb\u5165\u7684\u590d\u6742 Agent \/ \u591a\u667a\u80fd\u4f53\u5de5\u4f5c\u6d41&#xff1b;\u5f25\u8865 LangChain \u539f\u6709 Chain \u53ea\u80fd\u5355\u5411\u7ebf\u6027\u6267\u884c\u7684\u77ed\u677f\u3002 \u4e00\u53e5\u8bdd\u5b9a\u4f4d&#xff1a;LangChain AI \u7ec4\u4ef6\u5e93&#xff1b;LangGraph Agent \u72b6\u6001\u673a\u8fd0\u884c\u5f15\u64ce\u3002 \u4e00\u3001\u6838\u5fc3\u57fa\u7840\u6982\u5ff5 1. State&#xff08;\u72b6\u6001&#xff09; \u6574\u4e2a\u56fe\u5168\u5c40\u552f\u4e00\u5171\u4eab\u4e0a\u4e0b\u6587&amp;#xf","og_url":"https:\/\/www.wsisp.com\/helps\/105053.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-13T09:18:03+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260913091802-6aa66a4a48c81.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/105053.html","url":"https:\/\/www.wsisp.com\/helps\/105053.html","name":"LangGraph \u5b8c\u6574\u77e5\u8bc6\u70b9\u603b\u7ed3-\u96f6\u57fa\u7840\u5c0f\u767d\u5fc5\u770b\uff0c\u4e00\u770b\u5c31\u61c2\uff01 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-13T09:18:03+00:00","dateModified":"2026-09-13T09:18:03+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/105053.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/105053.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/105053.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"LangGraph \u5b8c\u6574\u77e5\u8bc6\u70b9\u603b\u7ed3-\u96f6\u57fa\u7840\u5c0f\u767d\u5fc5\u770b\uff0c\u4e00\u770b\u5c31\u61c2\uff01"}]},{"@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\/105053","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=105053"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/105053\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/105051"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=105053"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=105053"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=105053"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=105053"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}