{"id":116925,"date":"2026-10-22T09:40:31","date_gmt":"2026-10-22T01:40:31","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/116925.html"},"modified":"2026-10-22T09:40:31","modified_gmt":"2026-10-22T01:40:31","slug":"%e4%b8%89%e8%b7%af%e5%b9%b6%e8%a1%8c-%e4%ba%ba%e5%b7%a5%e5%ae%a1%e6%89%b9-%e5%89%8d%e7%ab%af%e5%8f%af%e8%a7%86%e5%8c%96%ef%bc%9a%e6%8a%8a%e7%90%86%e8%b5%94-agent-%e7%9c%9f%e6%ad%a3%e8%b7%91","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/116925.html","title":{"rendered":"\u4e09\u8def\u5e76\u884c + \u4eba\u5de5\u5ba1\u6279 + \u524d\u7aef\u53ef\u89c6\u5316\uff1a\u628a\u7406\u8d54 Agent \u771f\u6b63\u8dd1\u8d77\u6765"},"content":{"rendered":"<p>\u4e0a\u7bc7\u54b1\u4eec\u628a\u7406\u8d54\u52a9\u624b\u7684\u9aa8\u67b6\u642d\u597d\u4e86 \u2014\u2014 \u76ee\u5f55\u3001ClaimState\u3001\u4e09\u4e2a\u4e1a\u52a1\u89c4\u5219\u6a21\u5757\u3001\u4e09\u4e2a\u5b50\u56fe\u3002\u4eca\u5929\u8fd9\u7bc7\u662f\u4e0b\u7bc7&#xff0c;\u4e5f\u662f\u6700\u8fc7\u763e\u7684\u90e8\u5206&#xff1a;\u628a\u6240\u6709\u96f6\u4ef6\u7528\u4e3b\u56fe\u4e32\u8d77\u6765&#xff0c;\u8ba9\u5b83\u771f\u6b63\u8dd1\u8d77\u6765&#xff0c;\u8fd8\u5e26\u4eba\u5de5\u5ba1\u6279\u548c\u53ef\u89c6\u5316\u524d\u7aef\u3002<\/p>\n<p>\u4f60\u4f1a\u770b\u5230&#xff0c;\u524d\u9762\u5b66\u7684\u5e76\u884c\u6267\u884c\u3001Reducer\u3001interrupt\u3001checkpointer\u3001\u6d41\u5f0f\u8f93\u51fa&#xff0c;\u5168\u5728\u8fd9\u4e2a\u9879\u76ee\u91cc\u9f50\u6d3b\u4e86\u3002<\/p>\n<h4>\u4e00\u3001\u4e3b\u56fe\u7684\u5b8c\u6574\u6d41\u7a0b<\/h4>\n<p>\u4e3b\u56fe main_graph.py \u662f\u6574\u4e2a\u667a\u80fd\u4f53\u7684\u8c03\u5ea6\u6838\u5fc3&#xff0c;\u6d41\u7a0b\u957f\u8fd9\u6837&#xff1a;<\/p>\n<p>collect_request&#xff08;\u6536\u96c6\u8bf7\u6c42&#xff09;<br \/>\n      \u2502<br \/>\n      \u251c\u2500\u2500\u25ba policy_graph&#xff08;\u89c4\u5219\u6821\u9a8c&#xff09;\u2500\u2500\u2510<br \/>\n      \u251c\u2500\u2500\u25ba risk_graph&#xff08;\u98ce\u9669\u8bc4\u4f30&#xff09;\u2500\u2500\u2500\u2500\u2524  \u4e09\u8def\u5e76\u884c<br \/>\n      \u2514\u2500\u2500\u25ba cases_graph&#xff08;\u6848\u4f8b\u68c0\u7d22&#xff09;\u2500\u2500\u2518<br \/>\n                \u2502<br \/>\n          aggregate&#xff08;\u6c47\u603b &#043; \u5927\u6a21\u578b\u751f\u6210\u7b56\u7565 &#043; \u5224\u65ad\u662f\u5426\u5ba1\u6279&#xff09;<br \/>\n                \u2502<br \/>\n           approval&#xff08;\u9700\u8981\u5ba1\u6279&#xff1f;\u2192 interrupt \u6682\u505c&#xff09;<br \/>\n                \u2502<br \/>\n           finalize&#xff08;\u751f\u6210\u6700\u7ec8\u5ba2\u670d\u8bdd\u672f&#xff09;<br \/>\n                \u2502<br \/>\n               END<\/p>\n<p>\u4e00\u5171\u516d\u4e2a\u5173\u952e\u8282\u70b9&#xff0c;\u6bcf\u4e2a\u90fd\u6709\u660e\u786e\u804c\u8d23\u3002\u4e0b\u9762\u9010\u4e2a\u62c6\u3002<\/p>\n<h4>\u4e8c\u3001collect_request&#xff1a;\u521d\u59cb\u5316<\/h4>\n<p>\u7b2c\u4e00\u6b65\u628a\u524d\u7aef\u8f93\u5165\u7684\u7406\u8d54\u6570\u636e&#xff08;\u8ba2\u5355\u53f7\u3001\u91d1\u989d\u3001\u54c1\u7c7b\u3001\u7834\u635f\u63cf\u8ff0\u3001\u5386\u53f2\u7406\u8d54\u6570\u636e&#xff09;\u5199\u5165\u72b6\u6001&#xff0c;\u5e76\u52a0\u4e00\u6761\u521d\u59cb\u5316\u65e5\u5fd7\u3002\u540e\u9762\u6240\u6709\u8282\u70b9\u90fd\u57fa\u4e8e\u540c\u4e00\u4efd ClaimState \u5e72\u6d3b\u3002<\/p>\n<h4>\u4e09\u3001\u4e09\u4e2a\u5b50\u56fe\u5e76\u884c\u6267\u884c<\/h4>\n<p>\u8fd9\u662f LangGraph \u5e76\u884c\u80fd\u529b\u7684\u5b9e\u6218\u4f53\u73b0&#xff1a;collect_request \u4e4b\u540e&#xff0c;\u540c\u65f6\u8fde\u4e09\u6761\u8fb9\u5230\u4e09\u4e2a\u5b50\u56fe\u8282\u70b9&#xff0c;\u89c4\u5219\u6821\u9a8c\u3001\u98ce\u9669\u8bc4\u4f30\u3001\u76f8\u4f3c\u6848\u4f8b\u68c0\u7d22\u5e76\u884c\u8dd1&#xff0c;\u4e0d\u7528\u7b49\u4e00\u4e2a\u8dd1\u5b8c\u518d\u8dd1\u4e0b\u4e00\u4e2a\u3002<\/p>\n<p>\u6bcf\u4e2a\u5b50\u56fe\u8282\u70b9\u5185\u90e8\u8d1f\u8d23&#xff1a;\u4ece\u4e3b\u72b6\u6001\u63d0\u53d6\u81ea\u5df1\u9700\u8981\u7684\u5b50\u96c6 \u2192 \u6267\u884c\u5b50\u56fe \u2192 \u628a\u7ed3\u679c\u5199\u56de\u4e3b\u72b6\u6001\u3002\u56e0\u4e3a\u4e09\u4e2a\u5b50\u56fe\u5199\u7684\u662f\u4e0d\u540c\u5b57\u6bb5&#xff08;policy_result\u3001risk_level\u3001similar_cases_summary&#xff09;&#xff0c;\u4e0d\u4f1a\u51b2\u7a81&#xff0c;\u8fde Reducer \u90fd\u4e0d\u7528\u989d\u5916\u914d&#xff08;logs \u5b57\u6bb5\u9664\u5916&#xff0c;\u5b83\u6709 Reducer \u8d1f\u8d23\u7d2f\u79ef&#xff09;\u3002<\/p>\n<h4>\u56db\u3001aggregate&#xff1a;\u6c47\u603b &#043; \u751f\u6210\u7b56\u7565 &#043; \u5224\u65ad\u5ba1\u6279<\/h4>\n<p>\u8fd9\u662f\u4e3b\u56fe\u7684 &#034;\u5927\u8111&#034; \u8282\u70b9&#xff0c;\u5e72\u4e09\u4ef6\u4e8b&#xff1a;<\/p>\n<li>\u6c47\u603b\u4e09\u65b9\u7ed3\u679c&#xff1a;\u628a\u89c4\u5219\u6821\u9a8c\u3001\u98ce\u9669\u7b49\u7ea7\u3001\u6848\u4f8b\u6458\u8981\u62fc\u5230\u4e00\u8d77&#xff1b;<\/li>\n<li>\u8c03\u5927\u6a21\u578b\u751f\u6210\u7b56\u7565\u5efa\u8bae&#xff1a;\u7528\u6a21\u677f\u6784\u9020\u63d0\u793a\u8bcd&#xff0c;\u8ba9 DeepSeek \u57fa\u4e8e\u89c4\u5219\u7ed3\u679c\u3001\u98ce\u9669\u7b49\u7ea7\u3001\u76f8\u4f3c\u6848\u4f8b&#xff0c;\u751f\u6210\u5185\u90e8\u7406\u8d54\u7b56\u7565\u548c\u4f9d\u636e\u8bf4\u660e&#xff1b;<\/li>\n<li>\u5224\u65ad\u662f\u5426\u89e6\u53d1\u4eba\u5de5\u5ba1\u6279&#xff1a;\u6839\u636e &#034;\u98ce\u9669\u7b49\u7ea7\u662f\u5426 high&#034; \u6216 &#034;\u8ba2\u5355\u91d1\u989d\u662f\u5426\u8d85\u8fc7\u9608\u503c&#034;&#xff0c;\u52a8\u6001\u51b3\u5b9a\u8981\u4e0d\u8981\u4eba\u5de5\u4ecb\u5165&#xff0c;\u628a\u7ed3\u679c\u5199\u8fdb\u72b6\u6001\u3002<\/li>\n<p>\u6ce8\u610f&#xff1a;\u7b56\u7565\u751f\u6210\u7528\u5927\u6a21\u578b&#xff0c;\u5ba1\u6279\u5224\u65ad\u7528\u786e\u5b9a\u6027\u9608\u503c\u2014\u2014 \u53c8\u662f\u4e00\u6b21 &#034;\u6a21\u578b\u8d1f\u8d23\u521b\u9020\u3001\u89c4\u5219\u8d1f\u8d23\u63a7\u5236&#034; \u7684\u5206\u5de5\u3002<\/p>\n<h4>\u4e94\u3001approval&#xff1a;interrupt \u4eba\u5de5\u5ba1\u6279<\/h4>\n<p>\u8fd9\u662f Human-in-the-Loop \u7684\u5b9e\u6218\u3002\u5982\u679c\u9700\u8981\u5ba1\u6279&#xff0c;approval \u8282\u70b9\u901a\u8fc7 interrupt() \u628a\u6d41\u7a0b\u6682\u505c&#xff0c;\u540c\u65f6\u8fd4\u56de\u4e00\u4e2a payload&#xff08;\u5305\u542b\u7b56\u7565\u8bf4\u660e\u3001\u98ce\u9669\u7b49\u7ea7\u3001\u91d1\u989d\u7b49&#xff09;&#xff0c;\u7b49\u524d\u7aef\u586b\u5199\u5ba1\u6279\u610f\u89c1\u540e\u518d\u6062\u590d\u3002<\/p>\n<p>\u6062\u590d\u65f6&#xff0c;approval \u8282\u70b9\u6839\u636e\u4eba\u5de5\u51b3\u7b56&#xff08;\u901a\u8fc7 \/ \u4fee\u6539 \/ \u62d2\u7edd&#xff09;\u66f4\u65b0\u72b6\u6001\u91cc\u7684\u6700\u7ec8\u7b56\u7565\u5b57\u6bb5\u3002\u5982\u679c\u4e0d\u9700\u8981\u5ba1\u6279&#xff0c;\u8fd9\u4e2a\u8282\u70b9\u53ea\u8ffd\u52a0\u4e00\u6761\u65e5\u5fd7\u5c31\u76f4\u63a5\u5f80\u4e0b\u8d70&#xff0c;\u4e0d\u4f1a\u65e0\u610f\u4e49\u5730\u7b49\u5f85\u3002<\/p>\n<p>\u8fd9\u91cc\u8981\u8bb0\u4f4f\u7b2c\u56db\u7bc7\u8bb2\u7684\u4e24\u4e2a\u5751&#xff1a;\u2460 \u6709\u526f\u4f5c\u7528\u7684\u64cd\u4f5c\u522b\u653e interrupt \u524d\u9762&#xff08;\u8282\u70b9\u6062\u590d\u65f6\u4f1a\u4ece\u5934\u91cd\u8dd1&#xff09;&#xff1b;\u2461 \u522b\u7528\u5bbd\u6cdb\u7684 try\/except \u628a interrupt \u5f02\u5e38\u541e\u6389\u3002<\/p>\n<h4>\u516d\u3001finalize&#xff1a;\u751f\u6210\u5ba2\u670d\u8bdd\u672f<\/h4>\n<p>\u6700\u540e\u4e00\u6b65&#xff0c;\u518d\u8c03\u4e00\u6b21\u5927\u6a21\u578b&#xff0c;\u628a\u5185\u90e8\u7b56\u7565\u64b0\u5199\u6210\u771f\u5b9e\u5ba2\u670d\u573a\u666f\u4e0b\u80fd\u76f4\u63a5\u53d1\u7ed9\u7528\u6237\u7684\u8bf4\u660e\u6587\u5b57\u2014\u2014 \u4ece\u51b3\u7b56\u5230\u7528\u6237\u5448\u73b0&#xff0c;\u5f62\u6210\u95ed\u73af\u3002\u8fd9\u4e2a\u8282\u70b9\u4e0d\u518d\u505a\u5224\u65ad&#xff0c;\u53ea\u8d1f\u8d23 &#034;\u628a\u5185\u90e8\u8bed\u8a00\u7ffb\u8bd1\u6210\u7528\u6237\u8bed\u8a00&#034;\u3002<\/p>\n<h4>\u4e03\u3001\u6301\u4e45\u5316&#xff1a;MemorySaver &#043; thread_id<\/h4>\n<p>persistence.py \u5c01\u88c5\u4e86\u68c0\u67e5\u70b9&#xff0c;\u7528 MemorySaver \u4fdd\u5b58\u6bcf\u6b21\u8282\u70b9\u6267\u884c\u540e\u7684\u72b6\u6001\u5feb\u7167\u3002\u4e3b\u56fe\u7f16\u8bd1\u65f6\u7ed1\u5b9a\u5b83&#xff0c;\u6bcf\u6b21\u8c03\u7528\u90fd\u5e26 thread_id\u3002\u8fd9\u6837\u4eba\u5de5\u5ba1\u6279\u4e2d\u65ad\u3001\u9875\u9762\u5237\u65b0\u3001\u7f51\u7edc\u6ce2\u52a8\u4e4b\u540e&#xff0c;\u90fd\u80fd\u7528\u540c\u4e00\u4e2a thread_id \u4ece\u6700\u8fd1\u7684\u68c0\u67e5\u70b9\u6062\u590d\u3002<\/p>\n<p>\u5b66\u4e60\u9636\u6bb5\u7528 MemorySaver \u591f\u4e86&#xff0c;\u4e0a\u751f\u4ea7\u6362\u6210 Postgres \/ Redis \u5c31\u884c \u2014\u2014 \u8fd9\u4e5f\u662f\u7b2c\u4e03\u7bc7\u8bb2\u8fc7\u7684\u3002<\/p>\n<h4>\u516b\u3001\u8c03\u5ea6\u5668 runner&#xff1a;\u628a\u4e3b\u56fe\u5305\u6210\u7edf\u4e00\u63a5\u53e3<\/h4>\n<p>runner.py \u662f\u6574\u4e2a\u9879\u76ee\u5bf9\u5916\u7684\u7edf\u4e00\u5165\u53e3&#xff0c;\u5b83\u548c\u4e1a\u52a1\u903b\u8f91\u5b8c\u5168\u89e3\u8026&#xff0c;\u53ea\u8d1f\u8d23\u8c03\u4e3b\u56fe&#xff1a;<\/p>\n<ul>\n<li>invoke_once&#xff1a;\u63a5\u53d7\u521d\u59cb\u72b6\u6001\u548c thread_id&#xff0c;\u89e6\u53d1\u4e3b\u56fe\u4ece\u5934\u6267\u884c&#xff08;\u524d\u7aef\u63d0\u4ea4\u7406\u8d54\u8bf7\u6c42\u65f6\u7528&#xff09;&#xff1b;<\/li>\n<li>resume_with_decision&#xff1a;\u524d\u7aef\u63d0\u4ea4\u5ba1\u6279\u610f\u89c1\u540e&#xff0c;\u628a\u5ba1\u6279\u5185\u5bb9\u5199\u5165\u72b6\u6001\u5e76\u6062\u590d\u6267\u884c&#xff1b;<\/li>\n<li>\u6d41\u5f0f\u63a5\u53e3&#xff1a;\u867d\u7136\u5f53\u524d\u4e3b\u8981\u7528\u540c\u6b65\u8c03\u7528&#xff0c;\u4f46\u9884\u7559\u4e86\u6d41\u5f0f\u6267\u884c\u80fd\u529b&#xff0c;\u65b9\u4fbf\u672a\u6765\u505a\u8fdb\u5ea6\u5c55\u793a\u3002<\/li>\n<\/ul>\n<p>\u6709\u4e86\u8c03\u5ea6\u5668&#xff0c;\u524d\u7aef\u6216\u672a\u6765\u7684 API \u670d\u52a1\u6839\u672c\u4e0d\u9700\u8981\u77e5\u9053\u5185\u90e8\u6709\u51e0\u4e2a\u8282\u70b9\u3001\u51e0\u4e2a\u5b50\u56fe&#xff0c;\u53ea\u7ba1\u8c03\u63a5\u53e3\u5c31\u884c\u3002<\/p>\n<h4>\u4e5d\u3001Streamlit \u524d\u7aef&#xff1a;\u8ba9\u5ba2\u670d\u771f\u80fd\u7528<\/h4>\n<p>app_streamlit.py \u505a\u4e86\u4e00\u4e2a\u76f4\u89c2\u7684\u5ba2\u670d\u9875\u9762&#xff1a;<\/p>\n<ul>\n<li>\u5de6\u4fa7\u7ed3\u6784\u5316\u8f93\u5165\u533a&#xff1a;\u8ba2\u5355\u53f7\u3001\u91d1\u989d\u3001\u54c1\u7c7b\u3001\u7834\u635f\u63cf\u8ff0\u3001\u5386\u53f2\u7406\u8d54\u6570\u636e&#xff1b;<\/li>\n<li>\u63d0\u4ea4\u540e\u751f\u6210\u552f\u4e00 thread_id&#xff0c;\u8c03\u8c03\u5ea6\u5668\u542f\u52a8\u6d41\u7a0b&#xff1b;<\/li>\n<li>\u53f3\u4fa7\u5b9e\u65f6\u5c55\u793a\u6d41\u7a0b\u65e5\u5fd7\u3001\u6267\u884c\u8f68\u8ff9\u3001\u5404\u9636\u6bb5\u7ed3\u679c&#xff08;\u53ef\u89c2\u6d4b\u6027&#xff09;&#xff1b;<\/li>\n<li>\u89e6\u53d1\u4eba\u5de5\u5ba1\u6279\u65f6\u81ea\u52a8\u6e32\u67d3\u5ba1\u6279\u8868\u5355&#xff0c;\u63d0\u4ea4\u540e\u6062\u590d\u6267\u884c&#xff1b;<\/li>\n<li>\u6d41\u7a0b\u7ed3\u675f\u5c55\u793a\u6700\u7ec8\u7528\u6237\u8bdd\u672f &#043; \u5b8c\u6574\u72b6\u6001 JSON&#xff08;\u65b9\u4fbf\u6838\u67e5\u8c03\u8bd5&#xff09;\u3002<\/li>\n<\/ul>\n<p>\u524d\u7aef\u628a LangGraph \u7684\u590d\u6742\u903b\u8f91\u5168\u85cf\u5728\u540e\u53f0&#xff0c;\u5ba2\u670d\u4eba\u5458\u53ea\u9700\u8981\u586b\u6570\u636e\u3001\u770b\u7ed3\u679c\u3001\u505a\u5ba1\u6279&#xff0c;\u4e0d\u7528\u61c2\u4efb\u4f55\u6280\u672f\u3002<\/p>\n<h4>\u5341\u3001\u4e94\u4e2a\u6d4b\u8bd5\u573a\u666f\u8dd1\u4e00\u904d<\/h4>\n<p>\u9879\u76ee\u51c6\u5907\u4e86\u4e94\u4e2a\u771f\u5b9e\u573a\u666f&#xff0c;\u8986\u76d6\u6240\u6709\u5206\u652f&#xff1a;<\/p>\n<p>\u8868\u683c<\/p>\n<table>\n<tr>\u573a\u666f\u8f93\u5165\u7279\u5f81\u89e6\u53d1\u7ed3\u679c<\/tr>\n<tbody>\n<tr>\n<td>1<\/td>\n<td>\u666e\u901a\u6613\u788e\u54c1\u3001\u4f4e\u98ce\u9669<\/td>\n<td>\u81ea\u52a8\u901a\u8fc7<\/td>\n<\/tr>\n<tr>\n<td>2<\/td>\n<td>\u91d1\u989d\u8f83\u9ad8<\/td>\n<td>\u89e6\u53d1\u4eba\u5de5\u5ba1\u6279 \u2192 \u901a\u8fc7<\/td>\n<\/tr>\n<tr>\n<td>3<\/td>\n<td>\u91d1\u989d\u8f83\u9ad8<\/td>\n<td>\u89e6\u53d1\u4eba\u5de5\u5ba1\u6279 \u2192 \u9a73\u56de&#xff08;\u5907\u6ce8\u7406\u7531&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>4<\/td>\n<td>\u865a\u62df\u5546\u54c1<\/td>\n<td>\u89c4\u5219\u6821\u9a8c\u4e0d\u901a\u8fc7&#xff0c;\u81ea\u52a8\u62d2\u7edd<\/td>\n<\/tr>\n<tr>\n<td>5<\/td>\n<td>\u91d1\u989d\u5c0f &#043; \u98ce\u9669\u4e2d\u7b49<\/td>\n<td>\u81ea\u52a8\u901a\u8fc7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6bcf\u4e2a\u573a\u666f\u90fd\u80fd\u5728\u524d\u7aef\u770b\u5230\u5b8c\u6574\u7684\u6267\u884c\u65e5\u5fd7\u548c\u6700\u7ec8\u8f93\u51fa&#xff0c;\u4f60\u53ef\u4ee5\u4eb2\u624b\u9a8c\u8bc1\u6bcf\u4e00\u6761\u5206\u652f\u662f\u5426\u7b26\u5408\u9884\u671f\u3002<\/p>\n<h4>\u5341\u4e00\u3001\u6280\u672f\u6808\u603b\u7ed3\u4e0e\u62d3\u5c55\u65b9\u5411<\/h4>\n<p>\u6838\u5fc3\u6280\u672f\u6808&#xff1a;LangGraph&#xff08;\u56fe\u5de5\u4f5c\u6d41\u5f15\u64ce&#xff09;&#043; SubGraph&#xff08;\u6a21\u5757\u5316\u62c6\u5206&#xff09;&#043; Interrupt\/Resume&#xff08;\u4eba\u5de5\u5ba1\u6279&#xff09;&#043; MemorySaver&#xff08;\u8010\u4e45\u6062\u590d&#xff09;&#043; Streamlit&#xff08;\u53ef\u89c6\u5316\u524d\u7aef&#xff09;\u3002<\/p>\n<p>\u672a\u6765\u53ef\u4ee5\u62d3\u5c55\u7684\u65b9\u5411&#xff1a;<\/p>\n<ul>\n<li>\u63a5\u5165\u771f\u5b9e\u98ce\u63a7\u6a21\u578b\u6216\u5916\u90e8\u6570\u636e\u5e93&#xff0c;\u63d0\u5347\u98ce\u9669\u5224\u65ad\u7cbe\u5ea6&#xff1b;<\/li>\n<li>\u6848\u4f8b\u68c0\u7d22\u5347\u7ea7\u4e3a\u5411\u91cf\u6570\u636e\u5e93&#xff0c;\u505a\u8bed\u4e49\u5339\u914d&#xff1b;<\/li>\n<li>\u63a5\u5165\u7834\u635f\u7167\u7247\u4e0a\u4f20 &#043; \u56fe\u50cf\u8bc6\u522b&#xff0c;\u63d0\u9ad8\u81ea\u52a8\u5316\u7a0b\u5ea6&#xff1b;<\/li>\n<li>\u5bf9\u63a5\u4f01\u4e1a\u5de5\u5355\u7cfb\u7edf&#xff0c;\u628a\u667a\u80fd\u4f53\u8f93\u51fa\u81ea\u52a8\u5199\u5165\u5de5\u5355&#xff1b;<\/li>\n<li>\u6269\u5c55\u98ce\u63a7\u7ef4\u5ea6&#xff1a;\u5546\u54c1\u6613\u788e\u7b49\u7ea7\u3001\u5546\u5bb6\u8bc4\u5206\u3001\u7269\u6d41\u7ebf\u8def\u7b49\u3002<\/li>\n<\/ul>\n<p>\u8001\u54e5\u7684\u6536\u5c3e&#xff1a;\u5230\u8fd9\u91cc&#xff0c;\u4e00\u4e2a\u53ef\u8fd0\u884c\u3001\u53ef\u8ffd\u8e2a\u3001\u53ef\u6062\u590d\u3001\u53ef\u5ba1\u6279\u7684\u4f01\u4e1a\u7ea7 Agent \u539f\u578b\u5c31\u5b8c\u6574\u4e86\u3002\u7ed9\u4f60\u4e2a\u8bb0\u5fc6\u951a\u70b9&#xff1a;<\/p>\n<p>\u72b6\u6001\u662f\u810a\u6881&#xff0c;\u5b50\u56fe\u662f\u6a21\u5757&#xff0c;\u5e76\u884c\u63d0\u6548\u7387&#xff0c;interrupt \u4fdd\u5b89\u5168&#xff0c;checkpointer \u7ba1\u6062\u590d&#xff0c;\u8c03\u5ea6\u5668\u505a\u5c01\u88c5&#xff0c;\u524d\u7aef\u7ed9\u4eba\u7528\u3002<\/p>\n<p>\u8fd9\u4e2a\u9879\u76ee\u91cc\u7528\u5230\u7684\u6bcf\u4e00\u4e2a\u80fd\u529b&#xff0c;\u524d\u9762\u4e03\u7bc7\u90fd\u8bb2\u8fc7\u3002\u73b0\u5728\u4f60\u77e5\u9053\u5b83\u4eec\u7ec4\u5408\u8d77\u6765\u80fd\u5e72\u4ec0\u4e48\u4e86 \u2014\u2014 \u5269\u4e0b\u7684&#xff0c;\u5c31\u662f\u627e\u4e00\u4e2a\u4f60\u81ea\u5df1\u7684\u4e1a\u52a1\u573a\u666f&#xff0c;\u7167\u7740\u8fd9\u4e2a\u8303\u5f0f\u642d\u4e00\u4e2a\u3002\u6709\u95ee\u9898\u968f\u65f6\u56de\u6765\u627e\u8001\u54e5\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0a\u7bc7\u54b1\u4eec\u628a\u7406\u8d54\u52a9\u624b\u7684\u9aa8\u67b6\u642d\u597d\u4e86 \u2014\u2014 \u76ee\u5f55\u3001ClaimState\u3001\u4e09\u4e2a\u4e1a\u52a1\u89c4\u5219\u6a21\u5757\u3001\u4e09\u4e2a\u5b50\u56fe\u3002\u4eca\u5929\u8fd9\u7bc7\u662f\u4e0b\u7bc7&#xff0c;\u4e5f\u662f\u6700\u8fc7\u763e\u7684\u90e8\u5206&#xff1a;\u628a\u6240\u6709\u96f6\u4ef6\u7528\u4e3b\u56fe\u4e32\u8d77\u6765&#xff0c;\u8ba9\u5b83\u771f\u6b63\u8dd1\u8d77\u6765&#xff0c;\u8fd8\u5e26\u4eba\u5de5\u5ba1\u6279\u548c\u53ef\u89c6\u5316\u524d\u7aef\u3002\u4f60\u4f1a\u770b\u5230&#xff0c;\u524d\u9762\u5b66\u7684\u5e76\u884c\u6267\u884c\u3001Reducer\u3001interrupt\u3001checkpointer\u3001\u6d41\u5f0f\u8f93\u51fa&#xff0c;\u5168\u5728\u8fd9\u4e2a\u9879\u76ee\u91cc\u9f50\u6d3b\u4e86\u3002\u4e00\u3001\u4e3b\u56fe\u7684\u5b8c\u6574\u6d41\u7a0b\u4e3b\u56fe main_graph.py \u662f\u6574\u4e2a\u667a\u80fd\u4f53\u7684\u8c03\u5ea6\u6838\u5fc3&amp;#x<\/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":[13253,13252,3503,490,757],"topic":[],"class_list":["post-116925","post","type-post","status-publish","format-standard","hentry","category-server","tag-humanintheloop","tag-13252","tag-langgraph","tag-streamlit","tag-757"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u4e09\u8def\u5e76\u884c + \u4eba\u5de5\u5ba1\u6279 + \u524d\u7aef\u53ef\u89c6\u5316\uff1a\u628a\u7406\u8d54 Agent \u771f\u6b63\u8dd1\u8d77\u6765 - \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\/116925.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u4e09\u8def\u5e76\u884c + \u4eba\u5de5\u5ba1\u6279 + \u524d\u7aef\u53ef\u89c6\u5316\uff1a\u628a\u7406\u8d54 Agent \u771f\u6b63\u8dd1\u8d77\u6765 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e0a\u7bc7\u54b1\u4eec\u628a\u7406\u8d54\u52a9\u624b\u7684\u9aa8\u67b6\u642d\u597d\u4e86 \u2014\u2014 \u76ee\u5f55\u3001ClaimState\u3001\u4e09\u4e2a\u4e1a\u52a1\u89c4\u5219\u6a21\u5757\u3001\u4e09\u4e2a\u5b50\u56fe\u3002\u4eca\u5929\u8fd9\u7bc7\u662f\u4e0b\u7bc7&#xff0c;\u4e5f\u662f\u6700\u8fc7\u763e\u7684\u90e8\u5206&#xff1a;\u628a\u6240\u6709\u96f6\u4ef6\u7528\u4e3b\u56fe\u4e32\u8d77\u6765&#xff0c;\u8ba9\u5b83\u771f\u6b63\u8dd1\u8d77\u6765&#xff0c;\u8fd8\u5e26\u4eba\u5de5\u5ba1\u6279\u548c\u53ef\u89c6\u5316\u524d\u7aef\u3002\u4f60\u4f1a\u770b\u5230&#xff0c;\u524d\u9762\u5b66\u7684\u5e76\u884c\u6267\u884c\u3001Reducer\u3001interrupt\u3001checkpointer\u3001\u6d41\u5f0f\u8f93\u51fa&#xff0c;\u5168\u5728\u8fd9\u4e2a\u9879\u76ee\u91cc\u9f50\u6d3b\u4e86\u3002\u4e00\u3001\u4e3b\u56fe\u7684\u5b8c\u6574\u6d41\u7a0b\u4e3b\u56fe main_graph.py \u662f\u6574\u4e2a\u667a\u80fd\u4f53\u7684\u8c03\u5ea6\u6838\u5fc3&amp;#x\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/116925.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-22T01:40:31+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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/116925.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/116925.html\",\"name\":\"\u4e09\u8def\u5e76\u884c + \u4eba\u5de5\u5ba1\u6279 + \u524d\u7aef\u53ef\u89c6\u5316\uff1a\u628a\u7406\u8d54 Agent \u771f\u6b63\u8dd1\u8d77\u6765 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-22T01:40:31+00:00\",\"dateModified\":\"2026-10-22T01:40:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/116925.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/116925.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/116925.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u4e09\u8def\u5e76\u884c + \u4eba\u5de5\u5ba1\u6279 + \u524d\u7aef\u53ef\u89c6\u5316\uff1a\u628a\u7406\u8d54 Agent \u771f\u6b63\u8dd1\u8d77\u6765\"}]},{\"@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":"\u4e09\u8def\u5e76\u884c + \u4eba\u5de5\u5ba1\u6279 + \u524d\u7aef\u53ef\u89c6\u5316\uff1a\u628a\u7406\u8d54 Agent \u771f\u6b63\u8dd1\u8d77\u6765 - \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\/116925.html","og_locale":"zh_CN","og_type":"article","og_title":"\u4e09\u8def\u5e76\u884c + \u4eba\u5de5\u5ba1\u6279 + \u524d\u7aef\u53ef\u89c6\u5316\uff1a\u628a\u7406\u8d54 Agent \u771f\u6b63\u8dd1\u8d77\u6765 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e0a\u7bc7\u54b1\u4eec\u628a\u7406\u8d54\u52a9\u624b\u7684\u9aa8\u67b6\u642d\u597d\u4e86 \u2014\u2014 \u76ee\u5f55\u3001ClaimState\u3001\u4e09\u4e2a\u4e1a\u52a1\u89c4\u5219\u6a21\u5757\u3001\u4e09\u4e2a\u5b50\u56fe\u3002\u4eca\u5929\u8fd9\u7bc7\u662f\u4e0b\u7bc7&#xff0c;\u4e5f\u662f\u6700\u8fc7\u763e\u7684\u90e8\u5206&#xff1a;\u628a\u6240\u6709\u96f6\u4ef6\u7528\u4e3b\u56fe\u4e32\u8d77\u6765&#xff0c;\u8ba9\u5b83\u771f\u6b63\u8dd1\u8d77\u6765&#xff0c;\u8fd8\u5e26\u4eba\u5de5\u5ba1\u6279\u548c\u53ef\u89c6\u5316\u524d\u7aef\u3002\u4f60\u4f1a\u770b\u5230&#xff0c;\u524d\u9762\u5b66\u7684\u5e76\u884c\u6267\u884c\u3001Reducer\u3001interrupt\u3001checkpointer\u3001\u6d41\u5f0f\u8f93\u51fa&#xff0c;\u5168\u5728\u8fd9\u4e2a\u9879\u76ee\u91cc\u9f50\u6d3b\u4e86\u3002\u4e00\u3001\u4e3b\u56fe\u7684\u5b8c\u6574\u6d41\u7a0b\u4e3b\u56fe main_graph.py \u662f\u6574\u4e2a\u667a\u80fd\u4f53\u7684\u8c03\u5ea6\u6838\u5fc3&amp;#x","og_url":"https:\/\/www.wsisp.com\/helps\/116925.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-22T01:40:31+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/116925.html","url":"https:\/\/www.wsisp.com\/helps\/116925.html","name":"\u4e09\u8def\u5e76\u884c + \u4eba\u5de5\u5ba1\u6279 + \u524d\u7aef\u53ef\u89c6\u5316\uff1a\u628a\u7406\u8d54 Agent \u771f\u6b63\u8dd1\u8d77\u6765 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-22T01:40:31+00:00","dateModified":"2026-10-22T01:40:31+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/116925.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/116925.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/116925.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u4e09\u8def\u5e76\u884c + \u4eba\u5de5\u5ba1\u6279 + \u524d\u7aef\u53ef\u89c6\u5316\uff1a\u628a\u7406\u8d54 Agent \u771f\u6b63\u8dd1\u8d77\u6765"}]},{"@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\/116925","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=116925"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/116925\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=116925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=116925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=116925"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=116925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}