{"id":1172,"date":"2026-03-12T06:48:46","date_gmt":"2026-03-12T14:48:46","guid":{"rendered":"https:\/\/51ai.website\/?p=1172"},"modified":"2026-03-12T06:49:53","modified_gmt":"2026-03-12T14:49:53","slug":"openclaw-code-review","status":"publish","type":"post","link":"https:\/\/51ai.website\/en\/blog\/openclaw-code-review\/","title":{"rendered":"OpenClaw \u6e90\u7801\u67b6\u6784\u6df1\u5ea6\u89e3\u6790"},"content":{"rendered":"<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 10px;padding-right: 10px;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;font-family: Optima, 'Microsoft YaHei', PingFangSC-regular, serif;font-size: 16px;color: rgb(0, 0, 0);line-height: 1.5em;word-spacing: 0em;letter-spacing: 0em;word-break: break-word;overflow-wrap: break-word;text-align: left;\" data-pm-slice=\"0 0 []\">\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 22px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">\u5f15\u8a00<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">OpenClaw\uff08\u539fClawdbot\uff09\u4f5c\u4e3a\u5f53\u524d\u5168\u7403\u6700\u7099\u624b\u53ef\u70ed\u7684\u5f00\u6e90AI Agent\u6846\u67b6\uff0c\u5176GitHub\u661f\u6807\u6570\u5df2\u8d85\u8d8aLinux\u548cReact\uff0c\u767b\u9876\u5168\u7403\u699c\u9996\u3002\u5b83\u7684\u7206\u706b\u7edd\u975e\u5076\u7136\u2014\u2014\u8fd9\u5957\u67b6\u6784\u5b8c\u7f8e\u89e3\u51b3\u4e86AI Agent\u843d\u5730\u7684\u201c\u6700\u540e\u4e00\u516c\u91cc\u201d\u95ee\u9898\uff0c\u5b9e\u73b0\u4e86\u4ece\u4e91\u7aef\u5927\u8111\u5230\u672c\u5730\u80a2\u4f53\u7684\u65e0\u7f1d\u534f\u540c\u3002<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u672c\u6587\u5c06\u6df1\u5165OpenClaw\u6e90\u7801\uff0c\u4ece<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u56db\u5c42\u67b6\u6784<\/span><\/strong><span leaf=\"\">\u3001<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u63d2\u4ef6\u5316\u91cd\u6784<\/span><\/strong><span leaf=\"\">\u3001<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u4e09\u7ea7\u8bb0\u5fc6\u7cfb\u7edf<\/span><\/strong><span leaf=\"\">\u3001<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">Gateway-Pi\u6267\u884c\u94fe\u8def<\/span><\/strong><span leaf=\"\">\u56db\u4e2a\u7ef4\u5ea6\uff0c\u5f7b\u5e95\u62c6\u89e3\u8fd9\u5957\u7cfb\u7edf\u7684\u8bbe\u8ba1\u54f2\u5b66\u4e0e\u5b9e\u73b0\u7ec6\u8282\u3002<\/span><\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 22px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">\u4e00\u3001\u6574\u4f53\u67b6\u6784\uff1a\u56db\u5c42\u89e3\u8026\u8bbe\u8ba1<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">OpenClaw\u91c7\u7528\u7ecf\u5178\u7684\u56db\u5c42\u89e3\u8026\u67b6\u6784\uff0c\u4ece\u5916\u5230\u5185\u4f9d\u6b21\u662f\uff1a\u4ea4\u4e92\u5c42\u3001\u7f51\u5173\u5c42\u3001\u667a\u80fd\u4f53\u5c42\u3001\u6267\u884c\u5c42\u3002\u8fd9\u79cd\u5206\u5c42\u8bbe\u8ba1\u786e\u4fdd\u4e86\u5404\u6a21\u5757\u804c\u8d23\u6e05\u6670\u3001\u53ef\u72ec\u7acb\u6f14\u8fdb\u3002<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM4zmnZc0pge6Gox4rBbYDBCSzN2jQfeicrETbnVTNxElfFiaYREaKu5MvYXSIVDC6xNuIR8EOYZUm8wFmRXqatIh0PicG1X1VQQpPFyNUHL7hTcQ\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span leaf=\"\">\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u4ea4\u4e92\u5c42 (Channels) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp;\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 &nbsp; &nbsp; &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp;\u2502 WhatsApp \u2502 \u2502 Telegram \u2502 \u2502 &nbsp;\u98de\u4e66 &nbsp; &nbsp;\u2502 \u2502 &nbsp;iMessage \u2502 &nbsp;... &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp;\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 &nbsp; &nbsp; &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u25bc<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u7f51\u5173\u5c42 (Gateway) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u8def\u7531 \u00b7 \u6392\u961f \u00b7 \u8c03\u5ea6 \u00b7 \u9274\u6743 \u00b7 \u534f\u8bae\u8f6c\u6362 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u25bc<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u667a\u80fd\u4f53\u5c42 (Agent) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp;\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp;\u2502\u4f1a\u8bdd\u7ba1\u7406\u5668 &nbsp; \u2502 \u2502\u4e0a\u4e0b\u6587\u7ec4\u88c5\u5668 \u2502 \u2502 \u8bb0\u5fc6\u7cfb\u7edf &nbsp; \u2502 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp;\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp;\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp;\u2502\u6267\u884c\u5faa\u73af &nbsp; &nbsp; \u2502 \u2502\u5de5\u5177\u8c03\u7528 &nbsp; &nbsp; \u2502 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp;\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u25bc<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\u6267\u884c\u5c42 (Execution) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; \u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp;\u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 \u250c\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510 &nbsp; &nbsp; &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp;\u2502 \u672c\u5730\u8282\u70b9 &nbsp;\u2502 \u2502 \u8fdc\u7aef\u8282\u70b9 &nbsp;\u2502 \u2502 &nbsp;\u6280\u80fd &nbsp; &nbsp;\u2502 \u2502 &nbsp;\u6c99\u7bb1 &nbsp; &nbsp;\u2502 &nbsp; &nbsp; &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp;\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518 &nbsp; &nbsp; &nbsp;\u2502<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">1.1 \u4ea4\u4e92\u5c42\uff1a\u62b9\u5e73\u6240\u6709IM\u5dee\u5f02<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u4ea4\u4e92\u5c42\u7684\u6838\u5fc3\u804c\u8d23\u662f<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u534f\u8bae\u9002\u914d<\/span><\/strong><span leaf=\"\">\u3002OpenClaw\u5185\u7f6e\u652f\u63018\u4e2a\u6838\u5fc3\u901a\u9053\uff08Telegram\u3001WhatsApp\u3001Discord\u7b49\uff09\uff0c\u5e76\u901a\u8fc7\u63d2\u4ef6\u7cfb\u7edf\u652f\u6301\u8d85\u8fc750\u4e2a\u6269\u5c55\u901a\u9053\u3002<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u6e90\u7801\u4e2d\uff0c\u6bcf\u4e2a\u901a\u9053\u90fd\u662f\u4e00\u4e2a\u72ec\u7acb\u7684\u63d2\u4ef6\uff0c\u5fc5\u987b\u5b9e\u73b0\u7edf\u4e00\u7684<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">ChannelPlugin<\/span><\/code><span leaf=\"\">\u63a5\u53e3\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM6xM13Zx5IucC1zI5jq4ic5icFEQoc0D25AE46j6lrhLk4cB6HVwfx5RzeocHHZ77v4Qfv5sZEhYicQ2U7lsLMK3SMtV4sqIqsJMY7v0EUB9ibOdA\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">export<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">type<\/span><\/span><span leaf=\"\">&nbsp;ChannelPlugin = {<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; id: ChannelId; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u901a\u9053\u552f\u4e00\u6807\u8bc6<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; meta: ChannelMeta; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u901a\u9053\u5143\u4fe1\u606f<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; capabilities: ChannelCapabilities;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u80fd\u529b\u58f0\u660e<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; config: ChannelConfigAdapter; &nbsp; &nbsp; &nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u914d\u7f6e\u7ba1\u7406<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\"><br><\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u53ef\u9009\u5b9e\u73b0<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; outbound?: ChannelOutboundAdapter; &nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u53d1\u9001\u6d88\u606f<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; pairing?: ChannelPairingAdapter; &nbsp; &nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u914d\u5bf9\u903b\u8f91<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; messaging?: ChannelMessagingAdapter;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u6d88\u606f\u5904\u7406<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ ...<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">}<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u8fd9\u79cd\u8bbe\u8ba1\u7684\u7cbe\u5999\u4e4b\u5904\u5728\u4e8e\uff1a<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u6838\u5fc3\u6a21\u5757\u4e0d\u9762\u5411\u4efb\u4f55\u5177\u4f53IM\u7f16\u7a0b\uff0c\u53ea\u9762\u5411\u63a5\u53e3\u7f16\u7a0b<\/span><\/strong><span leaf=\"\">\u3002\u65e0\u8bba\u672a\u6765\u51fa\u73b0\u4ec0\u4e48\u65b0\u7684IM\u5de5\u5177\uff0c\u53ea\u8981\u5b9e\u73b0\u8fd9\u5957\u63a5\u53e3\uff0c\u5c31\u80fd\u65e0\u7f1d\u63a5\u5165OpenClaw\u751f\u6001\u3002<\/span><\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">1.2 \u7f51\u5173\u5c42\uff1a\u7cfb\u7edf\u7684\u63a7\u5236\u4e2d\u67a2<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">Gateway\u662f\u6574\u4e2aOpenClaw\u7684\u6838\u5fc3\u670d\u52a1\uff0c\u4f5c\u4e3a\u4e00\u4e2a\u5e38\u9a7b\u7684Node.js\u8fdb\u7a0b\uff0c\u5b83\u627f\u62c5\u7740\uff1a<\/span><\/p>\n<ol style=\"list-style-type: decimal;margin-top: 8px;margin-bottom: 8px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 25px;padding-right: 0px;color: rgb(0, 0, 0);\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u8def\u7531<\/span><\/strong><span leaf=\"\">\uff1a\u6839\u636e\u6d88\u606f\u6765\u6e90\u5206\u914d\u7ed9\u5bf9\u5e94\u7684\u4f1a\u8bdd<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u6392\u961f<\/span><\/strong><span leaf=\"\">\uff1a\u5b9e\u73b0\u201c\u8f66\u9053\u5f0f\u961f\u5217\u201d\uff08Lane Queue\uff09\uff0c\u9ed8\u8ba4\u4e32\u884c\u3001\u663e\u5f0f\u5e76\u884c<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u8c03\u5ea6<\/span><\/strong><span leaf=\"\">\uff1a\u7ba1\u7406\u5b9a\u65f6\u4efb\u52a1\uff08Heartbeat\uff09<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u9274\u6743<\/span><\/strong><span leaf=\"\">\uff1a\u9a8c\u8bc1\u8bf7\u6c42\u5408\u6cd5\u6027<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u534f\u8bae\u8f6c\u6362<\/span><\/strong><span leaf=\"\">\uff1a\u5c06\u4e0d\u540c\u901a\u9053\u7684\u6d88\u606f\u7edf\u4e00\u6210\u5185\u90e8\u683c\u5f0f<\/span><\/section>\n<\/li>\n<\/ol>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u7f51\u5173\u5c42\u7684\u6838\u5fc3\u5b9e\u73b0\u5728<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">src\/gateway\/server.py<\/span><\/code><span leaf=\"\">\u4e2d\uff0c\u5173\u952e\u4ee3\u7801\u7247\u6bb5\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM6rW2L0qzs2BvDOicNbibcerN44xTLBtNbxoem2SnvreRVvM8ibfHFFyZbR23T0micjTI4w7TUH5JLZqiaicO7gLGHGCnnorJr1ZSR6JsibsGAibJGGHw\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># gateway\/dispatcher.py<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">def<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span style=\"color: #61aeee;line-height: 26px;\"><span leaf=\"\">dispatch_task<\/span><\/span><span style=\"line-height: 26px;\"><span leaf=\"\">(payload)<\/span><\/span><span leaf=\"\">:<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># \u63d0\u53d6\u610f\u56fe\uff0c\u8fc7\u6ee4\u65e0\u7528\u7684\u5bf9\u8bdd\u5386\u53f2<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; intent = extractor.analyze(payload.content)<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># \u5339\u914d\u6700\u5408\u9002\u7684\u6267\u884c\u8282\u70b9<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; node_id = registry.get_active_node(payload.affinity)<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">return<\/span><\/span><span leaf=\"\">&nbsp;forward_to_node(node_id, intent)<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">Gateway\u8fd8\u7ef4\u62a4\u7740\u8282\u70b9\u7684<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u5fc3\u8df3\u673a\u5236<\/span><\/strong><span leaf=\"\">\uff08\u9ed8\u8ba4\u4f7f\u7528Redis\uff09\uff0c\u5982\u679c\u8282\u70b9\u5931\u8054\uff0c\u6307\u4ee4\u4f1a\u88ab\u6b63\u786e\u8def\u7531\u5230\u5176\u4ed6\u53ef\u7528\u8282\u70b9\u3002<\/span><\/p>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 22px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">\u4e8c\u3001\u63d2\u4ef6\u5316\u91cd\u6784\uff1a\u4ece\u5355\u4f53\u5230\u751f\u6001<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">2026\u5e74\u521d\uff0cOpenClaw\u901a\u8fc7PR&nbsp;<a class=\"wx_topic_link\" topic-id=\"mmn78zbu-vysbjy\" style=\"color: #576B95 !important;\" data-topic=\"1\">#661\u5b8c\u6210\u4e86\u91cd\u5927<\/a><\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u63d2\u4ef6\u5316\u91cd\u6784<\/span><\/strong><span leaf=\"\">\uff0c\u8fd9\u662f\u67b6\u6784\u6f14\u8fdb\u7684\u5206\u6c34\u5cad\u3002<\/span><\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">2.1 \u5355\u4f53\u67b6\u6784\u7684\u6280\u672f\u503a\u52a1<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u91cd\u6784\u524d\uff0c\u6dfb\u52a0\u4e00\u4e2a\u65b0\u6a21\u578b\u63d0\u4f9b\u5546\u9700\u8981\u4fee\u65394\u4e2a\u6838\u5fc3\u6587\u4ef6\uff1a<\/span><\/p>\n<ul style=\"list-style-type: disc;margin-top: 8px;margin-bottom: 8px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 25px;padding-right: 0px;color: rgb(0, 0, 0);\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><span leaf=\"\">\u7ee7\u627f<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">BaseProvider<\/span><\/code><span leaf=\"\">\u62bd\u8c61\u7c7b<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><span leaf=\"\">\u5728<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">providers\/index.ts<\/span><\/code><span leaf=\"\">\u624b\u52a8\u6ce8\u518c<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><span leaf=\"\">\u5728<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">model-router.ts<\/span><\/code><span leaf=\"\">\u6dfb\u52a0\u8def\u7531\u5206\u652f<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><span leaf=\"\">\u66f4\u65b0\u914d\u7f6eSchema<\/span><\/section>\n<\/li>\n<\/ul>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u8def\u7531\u6587\u4ef6\u5145\u65a5\u7740\u5927\u91cf\u7684<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">else-if<\/span><\/code><span leaf=\"\">\u5206\u652f\uff0c\u4ee3\u7801\u590d\u6742\u5ea6\u968f\u63d0\u4f9b\u5546\u6570\u91cf\u7ebf\u6027\u589e\u957f\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM5DhR1BxWQxaeVGtmibiaGibtsuyeZiceQylzIhQj1SurFm68qqBqNNnqbribia2LbeOSj8icSPVH6CyZgrdbtu22Q5mu2vhaPPQCBXiaDPcmFia0rx89A\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u91cd\u6784\u524d\u7684\u8def\u7531\u903b\u8f91<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">export<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">class<\/span><\/span><span leaf=\"\">&nbsp;ModelRouter {<\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">async<\/span><\/span><span leaf=\"\">&nbsp;route(model:&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">string<\/span><\/span><span leaf=\"\">, ...args) {<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">if<\/span><\/span><span leaf=\"\">&nbsp;(model.startsWith(<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">'anthropic\/'<\/span><\/span><span leaf=\"\">)) {<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">return<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">this<\/span><\/span><span leaf=\"\">.anthropicProvider.call(...args);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; }&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">else<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">if<\/span><\/span><span leaf=\"\">&nbsp;(model.startsWith(<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">'openai\/'<\/span><\/span><span leaf=\"\">)) {<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">return<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">this<\/span><\/span><span leaf=\"\">.openaiProvider.call(...args);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; }&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">else<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">if<\/span><\/span><span leaf=\"\">&nbsp;(model.startsWith(<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">'gemini\/'<\/span><\/span><span leaf=\"\">)) {<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">return<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">this<\/span><\/span><span leaf=\"\">.geminiProvider.call(...args);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; }<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ ... \u8fd8\u670915+\u4e2aelse-if<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; }<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">}<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">2.2 \u63d2\u4ef6\u5316\u67b6\u6784\u8bbe\u8ba1<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u91cd\u6784\u540e\u7684\u67b6\u6784\u6838\u5fc3\u662f<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u63a5\u53e3\u6807\u51c6\u5316+\u52a8\u6001\u52a0\u8f7d<\/span><\/strong><span leaf=\"\">\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM670BxCF9DWpk1vb84S5TWLFVmAqvw6TAy8MrpOvssSybIZbWS8BoF7KA2Vexyic3m8CBYJp3K7gxGqWtIvq9wXSoCbqIUNKuVWdCqhrM9iaa8A\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ packages\/core\/src\/provider-interface.ts<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">export<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">interface<\/span><\/span><span leaf=\"\">&nbsp;Provider {<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; readonly name:&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">string<\/span><\/span><span leaf=\"\">;<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; readonly version:&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">string<\/span><\/span><span leaf=\"\">;<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp;&nbsp;<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; chat(messages: Message[], options: ChatOptions): AsyncIterator<span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">string<\/span><\/span><span leaf=\"\">&gt;;<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; estimateTokens(text:&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">string<\/span><\/span><span leaf=\"\">):&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">number<\/span><\/span><span leaf=\"\">;<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; getSupportedFeatures(): ProviderFeatures;<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">}<\/span><span leaf=\"\"><br><\/span><\/span><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u52a8\u6001\u52a0\u8f7d\u673a\u5236\u901a\u8fc7<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">ProviderLoader<\/span><\/code><span leaf=\"\">\u5b9e\u73b0\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM41KAPoyu16PVel8tfQqQas0q4QCdnLuIcEibPV2iaCrIaOPjcafBJzaiaXR0Pf7pdoIM82A2BxgGCR0kFgDT7ptuBa7uCXZr7lDs8t82A3esl4Q\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">export<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">class<\/span><\/span><span leaf=\"\">&nbsp;ProviderLoader {<\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">private<\/span><\/span><span leaf=\"\">&nbsp;providers =&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">new<\/span><\/span><span leaf=\"\">&nbsp;Map<span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">string<\/span><\/span><span leaf=\"\">, Provider&gt;();<\/span><span leaf=\"\"><br><\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">async<\/span><\/span><span leaf=\"\">&nbsp;loadFromPackage(packageName:&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">string<\/span><\/span><span leaf=\"\">):&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">Promise<\/span><\/span><span leaf=\"\"><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">void<\/span><\/span><span leaf=\"\">&gt; {<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">const<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">module<\/span><\/span><span leaf=\"\">&nbsp;= await import(packageName); &nbsp;\/\/ \u52a8\u6001\u5bfc\u5165<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; if (!this.validateProvider(<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">module<\/span><\/span><span leaf=\"\">.default)) {<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">throw<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">new<\/span><\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">Error<\/span><\/span><span leaf=\"\">(<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">`Invalid provider:&nbsp;<\/span><span style=\"color: #e06c75;line-height: 26px;\"><span leaf=\"\">${packageName}<\/span><\/span><span leaf=\"\">`<\/span><\/span><span leaf=\"\">);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; }<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">const<\/span><\/span><span leaf=\"\">&nbsp;provider =&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">new<\/span><\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">module<\/span><\/span><span leaf=\"\">.<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">default<\/span><\/span><span leaf=\"\">();<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">this<\/span><\/span><span leaf=\"\">.providers.set(provider.name, provider);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; }<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">}<\/span><span leaf=\"\"><br><\/span><\/span><\/span><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u91cd\u6784\u540e\u7684\u8def\u7531\u903b\u8f91\u4eceO(n)\u964d\u4e3aO(1)\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM5EWyrCjy7qgGuzNojtgRDGibEl4EKhxp2KSAAMGnXLlKTibjISiaDqtswoDfRibvibhKkvicQ157ckUUQETW8I4icya7RHhtLU8XibHoEkmDN5glibL7g\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">export<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">class<\/span><\/span><span leaf=\"\">&nbsp;ModelRouter {<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">async<\/span><\/span><span leaf=\"\">&nbsp;route(model:&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">string<\/span><\/span><span leaf=\"\">, ...args) {<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">const<\/span><\/span><span leaf=\"\">&nbsp;[providerName] = model.split(<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">'\/'<\/span><\/span><span leaf=\"\">);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">const<\/span><\/span><span leaf=\"\">&nbsp;provider =&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">this<\/span><\/span><span leaf=\"\">.loader.getProvider(providerName);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">if<\/span><\/span><span leaf=\"\">&nbsp;(!provider)&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">throw<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">new<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">Error<\/span><\/span><span leaf=\"\">(<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">`Provider not found:&nbsp;<\/span><span style=\"color: #e06c75;line-height: 26px;\"><span leaf=\"\">${providerName}<\/span><\/span><span leaf=\"\">`<\/span><\/span><span leaf=\"\">);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">return<\/span><\/span><span leaf=\"\">&nbsp;provider.chat(...args);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; }<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">}<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">2.3 \u63d2\u4ef6\u5316\u7684\u56db\u5927\u4f18\u52bf<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<ol style=\"list-style-type: decimal;margin-top: 8px;margin-bottom: 8px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 25px;padding-right: 0px;color: rgb(0, 0, 0);\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u4f9d\u8d56\u9694\u79bb<\/span><\/strong><span leaf=\"\">\uff1a\u6838\u5fc3\u6846\u67b6\u4ece45MB\u964d\u81f38MB<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u5e76\u884c\u5f00\u53d1<\/span><\/strong><span leaf=\"\">\uff1a\u793e\u533a\u53ef\u72ec\u7acb\u5f00\u53d1\u63d2\u4ef6\uff0c\u65e0\u9700\u7b49\u5f85\u6838\u5fc3\u8fed\u4ee3<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u7248\u672c\u81ea\u6cbb<\/span><\/strong><span leaf=\"\">\uff1a\u5404\u63d2\u4ef6\u72ec\u7acb\u7248\u672c\uff0c\u53ef\u5355\u72ec\u66f4\u65b0<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u5b89\u5168\u589e\u5f3a<\/span><\/strong><span leaf=\"\">\uff1a\u6c99\u7bb1\u673a\u5236+\u6743\u9650\u58f0\u660e\uff0c\u98ce\u9669\u53ef\u63a7<\/span><\/section>\n<\/li>\n<\/ol>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 22px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">\u4e09\u3001\u8bb0\u5fc6\u7cfb\u7edf\uff1a\u4e09\u7ea7\u5b58\u50a8\u67b6\u6784<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">OpenClaw\u7684\u8bb0\u5fc6\u7cfb\u7edf\u662f\u5176\u6700\u60ca\u8273\u7684\u8bbe\u8ba1\u4e4b\u4e00\u3002\u5b83\u91c7\u7528<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u4e09\u7ea7\u8bb0\u5fc6\u67b6\u6784<\/span><\/strong><span leaf=\"\">\uff0c\u6a21\u62df\u4eba\u7c7b\u8bb0\u5fc6\u7684\u5206\u5c42\u7279\u6027\u3002<\/span><\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">3.1 \u5de5\u4f5c\u533a\u7ed3\u6784<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u6bcf\u4e2aAgent\u5bf9\u5e94\u4e00\u4e2a\u72ec\u7acb\u7684\u5de5\u4f5c\u533a\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM4nZFRq4AoVWeK83T5V9ctrD8DaSmQqQ1tAMAGs8HZQg6rLxSh78JibPaeAQrIkuicEiaq0kCmUwEQ66Hl7cqecezTzuO1kVbINbKibzdyjfJ0Tmg\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span leaf=\"\">~\/.openclaw\/workspace\/<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u251c\u2500\u2500 MEMORY.md &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># \u957f\u671f\u8bb0\u5fc6<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u251c\u2500\u2500 memory\/<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp; \u251c\u2500\u2500 2026-03-10.md &nbsp; &nbsp; &nbsp; &nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># \u4eca\u65e5\u65e5\u5fd7\uff08\u77ed\u671f\uff09<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2502 &nbsp; \u2514\u2500\u2500 2026-03-09.md &nbsp; &nbsp; &nbsp; &nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># \u6628\u65e5\u65e5\u5fd7<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u251c\u2500\u2500 sessions\/ &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># \u4f1a\u8bdd\u5b58\u6863\uff08\u8fd1\u7aef\uff09<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u251c\u2500\u2500 USER.md &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># \u7528\u6237\u8eab\u4efd<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">\u2514\u2500\u2500 SOUL.md &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># Agent\u4eba\u683c\u8bbe\u5b9a<\/span><\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">3.2 \u5b58\u50a8\u5c42\uff1aSQLite + \u5411\u91cf<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u6bcf\u4e2aAgent\u5bf9\u5e94\u4e00\u4e2a\u72ec\u7acb\u7684SQLite\u6570\u636e\u5e93\uff0c\u8868\u7ed3\u6784\u8bbe\u8ba1\u7cbe\u5de7\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM7g67KMDljcDMwS2kDtKceLZmoLy4pBvRSQibSqblAno0DEZGhELscStlEFicvO3x8q8G6Siax1aj3uCdQzxjjQtvF9rnoicNZzA3f5H22g9gqRtg\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">-- \u6587\u4ef6\u5143\u6570\u636e<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">CREATE<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">TABLE<\/span><\/span><span leaf=\"\">&nbsp;files (<\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">id<\/span><\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">INTEGER<\/span><\/span><span leaf=\"\">&nbsp;PRIMARY&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">KEY<\/span><\/span><span leaf=\"\">,<\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">path<\/span><\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">TEXT<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">UNIQUE<\/span><\/span><span leaf=\"\">,<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; mtime&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">INTEGER<\/span><\/span><span leaf=\"\">, &nbsp; &nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">-- \u4fee\u6539\u65f6\u95f4\uff0c\u7528\u4e8e\u589e\u91cf\u7d22\u5f15<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">hash<\/span><\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">TEXT<\/span><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">-- \u5185\u5bb9\u54c8\u5e0c\uff0c\u53bb\u91cd<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\"><br><\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">-- \u6587\u672c\u5757\u5b58\u50a8<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">CREATE<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">TABLE<\/span><\/span><span leaf=\"\">&nbsp;chunks (<\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">id<\/span><\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">INTEGER<\/span><\/span><span leaf=\"\">&nbsp;PRIMARY&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">KEY<\/span><\/span><span leaf=\"\">,<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; file_id&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">INTEGER<\/span><\/span><span leaf=\"\">,<\/span><span leaf=\"\"><br><\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">text<\/span><\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">TEXT<\/span><\/span><span leaf=\"\">,<\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">hash<\/span><\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">TEXT<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">UNIQUE<\/span><\/span><span leaf=\"\">,&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">-- \u6587\u672c\u54c8\u5e0c\uff0c\u8de8\u6587\u4ef6\u53bb\u91cd<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; embedding&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">TEXT<\/span><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">-- JSON\u5e8f\u5217\u5316\u7684\u5411\u91cf<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\"><br><\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">-- \u5168\u6587\u641c\u7d22\uff08FTS5\uff09<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">CREATE<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">VIRTUAL<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">TABLE<\/span><\/span><span leaf=\"\">&nbsp;chunks_fts&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">USING<\/span><\/span><span leaf=\"\">&nbsp;fts5(<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">text<\/span><\/span><span leaf=\"\">,&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">content<\/span><\/span><span leaf=\"\">=chunks);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\"><br><\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">-- \u5411\u91cf\u641c\u7d22\uff08sqlite-vec\uff09<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">CREATE<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">VIRTUAL<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">TABLE<\/span><\/span><span leaf=\"\">&nbsp;chunks_vec&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">USING<\/span><\/span><span leaf=\"\">&nbsp;vec0(embedding&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">float<\/span><\/span><span leaf=\"\">[<\/span><span style=\"color: #d19a66;line-height: 26px;\"><span leaf=\"\">1536<\/span><\/span><span leaf=\"\">]);<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">3.3 \u6df7\u5408\u68c0\u7d22\u7b56\u7565<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">OpenClaw\u7684\u6838\u5fc3\u68c0\u7d22\u5de5\u5177<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">memory_search<\/span><\/code><span leaf=\"\">\u5b9e\u73b0\u4e86<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">BM25 + \u5411\u91cf<\/span><\/strong><span leaf=\"\">\u7684\u6df7\u5408\u68c0\u7d22\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM46ynl6jCshO8bkNYhpj0QFia1J1UNEwNcSysxs9b3dlpvDXwbo4SGE7rxtlsU1ibX9x2Riarr1ZdMcibR7B4pTfTdTibaw3aic4Yst4Jnmicxf2BUfA\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">async<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">function<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span style=\"color: #61aeee;line-height: 26px;\"><span leaf=\"\">hybridSearch<\/span><\/span><span leaf=\"\">(<\/span><span style=\"line-height: 26px;\"><span leaf=\"\">query, options = {}<\/span><\/span><span leaf=\"\">)&nbsp;<\/span><\/span><span leaf=\"\">{<\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">const<\/span><\/span><span leaf=\"\">&nbsp;vecWeight =&nbsp;<\/span><span style=\"color: #d19a66;line-height: 26px;\"><span leaf=\"\">0.7<\/span><\/span><span leaf=\"\">; &nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u5411\u91cf\u6743\u91cd<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">const<\/span><\/span><span leaf=\"\">&nbsp;bm25Weight =&nbsp;<\/span><span style=\"color: #d19a66;line-height: 26px;\"><span leaf=\"\">0.3<\/span><\/span><span leaf=\"\">; &nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ BM25\u6743\u91cd<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\"><br><\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u5206\u522b\u68c0\u7d22\uff08\u53d6\u5e76\u96c6\uff09<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">const<\/span><\/span><span leaf=\"\">&nbsp;vectorResults =&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">await<\/span><\/span><span leaf=\"\">&nbsp;vectorSearch(query);<\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">const<\/span><\/span><span leaf=\"\">&nbsp;bm25Results =&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">await<\/span><\/span><span leaf=\"\">&nbsp;bm25Search(query);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\"><br><\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u5408\u5e76\u5e76\u8ba1\u7b97\u7efc\u5408\u5f97\u5206<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">const<\/span><\/span><span leaf=\"\">&nbsp;allChunkIds =&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">new<\/span><\/span><span leaf=\"\">&nbsp;Set([<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; ...vectorResults.map(<\/span><span style=\"line-height: 26px;\"><span style=\"line-height: 26px;\"><span leaf=\"\">r<\/span><\/span><span leaf=\"\">&nbsp;=&gt;<\/span><\/span><span leaf=\"\">&nbsp;r.id),<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; ...bm25Results.map(<\/span><span style=\"line-height: 26px;\"><span style=\"line-height: 26px;\"><span leaf=\"\">r<\/span><\/span><span leaf=\"\">&nbsp;=&gt;<\/span><\/span><span leaf=\"\">&nbsp;r.id)<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; ]);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\"><br><\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u52a0\u6743\u5e73\u5747\u540e\u6392\u5e8f\u8fd4\u56de<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">}<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u8fd9\u5957\u7b97\u6cd5\u7684\u5173\u952e\u5728\u4e8e<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u5e76\u96c6\u800c\u975e\u4ea4\u96c6<\/span><\/strong><span leaf=\"\">\u2014\u2014\u53ea\u8981\u4efb\u4e00\u65b9\u6cd5\u8ba4\u4e3a\u76f8\u5173\uff0c\u5c31\u6709\u673a\u4f1a\u8fdb\u5165\u5019\u9009\u6c60\u3002<\/span><\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">3.4 \u4f18\u96c5\u964d\u7ea7<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u5982\u679c<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">sqlite-vec<\/span><\/code><span leaf=\"\">\u6269\u5c55\u672a\u5b89\u88c5\uff0c\u7cfb\u7edf\u4f1a\u81ea\u52a8\u56de\u9000\u5230JS\u66b4\u529b\u8ba1\u7b97\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM7HWpKwWAasIInSU1T9NHN9aDu2gzhBcQzkcayXPD0qfr8wKs4y49YlJqAOTe3tAkATSAibpcwkKnRpf3u0aje5iaUj91rVPt5Jo6aA18TjQY1g\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">try<\/span><\/span><span leaf=\"\">&nbsp;{<\/span><span leaf=\"\"><br><\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u5feb\u901f\u8def\u5f84\uff1a\u6570\u636e\u5e93\u5185\u8ba1\u7b97\u4f59\u5f26\u8ddd\u79bb<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">return<\/span><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">await<\/span><\/span><span leaf=\"\">&nbsp;db.all(<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">`SELECT ... vec_distance_cosine(...)`<\/span><\/span><span leaf=\"\">);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">}&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">catch<\/span><\/span><span leaf=\"\">&nbsp;(err) {<\/span><span leaf=\"\"><br><\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u56de\u9000\u8def\u5f84\uff1a\u5168\u91cf\u52a0\u8f7d\u5230\u5185\u5b58\u66b4\u529b\u8ba1\u7b97<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">const<\/span><\/span><span leaf=\"\">&nbsp;allChunks =&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">await<\/span><\/span><span leaf=\"\">&nbsp;db.all(<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">\"SELECT * FROM chunks\"<\/span><\/span><span leaf=\"\">);<\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">return<\/span><\/span><span leaf=\"\">&nbsp;allChunks.map(<\/span><span style=\"line-height: 26px;\"><span style=\"line-height: 26px;\"><span leaf=\"\">chunk<\/span><\/span><span leaf=\"\">&nbsp;=&gt;<\/span><\/span><span leaf=\"\">&nbsp;({<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; ...chunk,<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; dist: cosineSimilarity(queryVector,&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">JSON<\/span><\/span><span leaf=\"\">.parse(chunk.embedding))<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; })).sort(<\/span><span style=\"line-height: 26px;\"><span leaf=\"\">(<\/span><span style=\"line-height: 26px;\"><span leaf=\"\">a, b<\/span><\/span><span leaf=\"\">) =&gt;<\/span><\/span><span leaf=\"\">&nbsp;a.dist - b.dist).slice(<\/span><span style=\"color: #d19a66;line-height: 26px;\"><span leaf=\"\">0<\/span><\/span><span leaf=\"\">, limit);<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">}<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 22px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">\u56db\u3001\u6267\u884c\u5c42\uff1aGateway-Pi \u67b6\u6784<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">OpenClaw\u6700\u786c\u6838\u7684\u90e8\u5206\u662f\u5176<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u4e91\u7aef\u5927\u8111+\u672c\u5730\u80a2\u4f53<\/span><\/strong><span leaf=\"\">\u7684\u8bbe\u8ba1\u3002<\/span><\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">4.1 \u4e09\u5c42\u6267\u884c\u94fe\u8def<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<ol style=\"list-style-type: decimal;margin-top: 8px;margin-bottom: 8px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 25px;padding-right: 0px;color: rgb(0, 0, 0);\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">Orchestrator\uff08\u5927\u8111\uff09<\/span><\/strong><span leaf=\"\">\uff1a\u4e91\u7aef\u90e8\u7f72\uff0c\u8d1f\u8d23LLM\u63a8\u7406\u548c\u4efb\u52a1\u62c6\u89e3<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">Gateway\uff08\u534f\u8bae\u6865\uff09<\/span><\/strong><span leaf=\"\">\uff1a\u9274\u6743\u3001\u6d41\u91cf\u6574\u5f62\u3001\u6307\u4ee4\u7ffb\u8bd1<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">Pi-embedded\uff08\u6267\u884c\u7aef\uff09<\/span><\/strong><span leaf=\"\">\uff1a\u8fd0\u884c\u5728\u672c\u5730\u8bbe\u5907\uff0c\u771f\u6b63\u6267\u884c\u811a\u672c<\/span><\/section>\n<\/li>\n<\/ol>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">4.2 \u6c99\u7bb1\u9694\u79bb\u673a\u5236<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">Pi-embedded\u5b9e\u73b0\u4e86\u4e00\u5957\u540d\u4e3a&nbsp;<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u201cCell Isolation\u201d<\/span><\/strong><span leaf=\"\">&nbsp;\u7684\u6c99\u7bb1\u673a\u5236\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM7NTU0UmVb2pRjC3iaCAeoCl9m1wkDxFyfNV1olTTOiahciavpJjCUHMIqLrch3FV0ZpJ3z2JtX7ia41czrIaMwIPL4YHVOvcSynN0lia28TIpJ1Qw\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># packages\/pi-embedded\/runtime\/executor.py<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">class<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">ExecutionEngine<\/span><\/span><span leaf=\"\">:<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">def<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span style=\"color: #61aeee;line-height: 26px;\"><span leaf=\"\">execute<\/span><\/span><span style=\"line-height: 26px;\"><span leaf=\"\">(self, skill_code)<\/span><\/span><span leaf=\"\">:<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># \u73af\u5883\u5feb\u7167<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; snapshot = self.take_snapshot()<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># \u5728\u72ec\u7acbvenv\u4e2d\u8fd0\u884c<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">with<\/span><\/span><span leaf=\"\">&nbsp;self.isolated_venv()&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">as<\/span><\/span><span leaf=\"\">&nbsp;venv:<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># \u52a8\u6001\u5b89\u88c5\u4f9d\u8d56<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; self.install_dependencies(skill_code.dependencies)<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># \u6267\u884c\u6280\u80fd<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; result = venv.run(skill_code)<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\"># \u6062\u590d\u73af\u5883<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp; self.restore_snapshot(snapshot)<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">return<\/span><\/span><span leaf=\"\">&nbsp;result<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">4.3 \u5b8c\u6574\u8c03\u7528\u94fe\u8ffd\u8e2a<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u4ee5\u201c\u67e5CPU\u6e29\u5ea6\u5e76\u751f\u6210\u56fe\u8868\u201d\u4e3a\u4f8b\uff0c\u5b8c\u6574\u8c03\u7528\u94fe\u5982\u4e0b\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM6h6RQJzVzGKhFhdCTw7d2AI1JbFtU4QAM10kW1MLDFHaJrSZanYnPHlX2kGUib8nZhHcTvEYuE72IL3qkHrgZMJwpp9VGDDYtC1wGGsP2UhHg\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span leaf=\"\">1. Orchestrator \u2192 \u8bc6\u522b\u6280\u80fd\u9700\u6c42 \u2192 \u751f\u6210JSON\u6307\u4ee4<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">2. Gateway \u2192 \u9a8c\u8bc1\u7b7e\u540d \u2192 \u67e5\u627e\u5728\u7ebfPi\u8282\u70b9 \u2192 Protobuf\u5c01\u88c5 \u2192 WebSocket\u53d1\u9001<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">3. Pi-embedded \u2192 \u63a5\u6536\u6d88\u606f \u2192 \u89e3\u5305<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">4. Sandbox \u2192 \u542f\u52a8\u4e34\u65f6Python\u8fdb\u7a0b \u2192 \u6302\u8f7d\u4f20\u611f\u5668\u6743\u9650<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">5. Skill Execution \u2192 \u6267\u884cget_temp.py<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">6. Callback \u2192 \u7ed3\u679c\uff08\u56fe\u7247\u4e8c\u8fdb\u5236\uff09\u539f\u8def\u8fd4\u56de<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 22px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">\u4e94\u3001Agent\u6838\u5fc3\u914d\u7f6e<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u6bcf\u4e2aAgent\u7684workspace\u4e2d\u5305\u542b\u591a\u4e2a\u6838\u5fc3\u914d\u7f6e\u6587\u4ef6\uff1a<\/span><\/p>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;overflow-x: auto;\">\n<table style=\"display: table;text-align: left;\">\n<thead>\n<tr>\n<th style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;background: none left top \/ auto no-repeat scroll padding-box border-box rgb(240, 240, 240);height: auto;border-style: solid;border-width: 1px;border-color: rgba(204, 204, 204, 0.4);border-radius: 0px;padding: 5px 10px;min-width: 85px;\">\n<section><span leaf=\"\">\u6587\u4ef6<\/span><\/section>\n<\/th>\n<th style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;background: none left top \/ auto no-repeat scroll padding-box border-box rgb(240, 240, 240);height: auto;border-style: solid;border-width: 1px;border-color: rgba(204, 204, 204, 0.4);border-radius: 0px;padding: 5px 10px;min-width: 85px;\">\n<section><span leaf=\"\">\u4f5c\u7528<\/span><\/section>\n<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr style=\"color: rgb(0, 0, 0);background-attachment: scroll;background-clip: border-box;background-color: rgb(255, 255, 255);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;\">\n<td style=\"padding-top: 5px;padding-right: 10px;padding-bottom: 5px;padding-left: 10px;min-width: 85px;border-top-style: solid;border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-width: 1px;border-top-color: rgba(204, 204, 204, 0.4);border-bottom-color: rgba(204, 204, 204, 0.4);border-left-color: rgba(204, 204, 204, 0.4);border-right-color: rgba(204, 204, 204, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><code><span leaf=\"\">AGENTS.md<\/span><\/code><\/td>\n<td style=\"padding-top: 5px;padding-right: 10px;padding-bottom: 5px;padding-left: 10px;min-width: 85px;border-top-style: solid;border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-width: 1px;border-top-color: rgba(204, 204, 204, 0.4);border-bottom-color: rgba(204, 204, 204, 0.4);border-left-color: rgba(204, 204, 204, 0.4);border-right-color: rgba(204, 204, 204, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\">\n<section><span leaf=\"\">Agent\u804c\u8d23\u58f0\u660e\uff0c\u51b3\u5b9a\u5de5\u5177\u6743\u9650<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"color: rgb(0, 0, 0);background-attachment: scroll;background-clip: border-box;background-color: rgb(248, 248, 248);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;\">\n<td style=\"padding-top: 5px;padding-right: 10px;padding-bottom: 5px;padding-left: 10px;min-width: 85px;border-top-style: solid;border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-width: 1px;border-top-color: rgba(204, 204, 204, 0.4);border-bottom-color: rgba(204, 204, 204, 0.4);border-left-color: rgba(204, 204, 204, 0.4);border-right-color: rgba(204, 204, 204, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><code><span leaf=\"\">SOUL.md<\/span><\/code><\/td>\n<td style=\"padding-top: 5px;padding-right: 10px;padding-bottom: 5px;padding-left: 10px;min-width: 85px;border-top-style: solid;border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-width: 1px;border-top-color: rgba(204, 204, 204, 0.4);border-bottom-color: rgba(204, 204, 204, 0.4);border-left-color: rgba(204, 204, 204, 0.4);border-right-color: rgba(204, 204, 204, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\">\n<section><span leaf=\"\">\u4e2a\u6027\u5316\u63d0\u793a\u8bcd\uff0c\u6ce8\u5165system prompt<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"color: rgb(0, 0, 0);background-attachment: scroll;background-clip: border-box;background-color: rgb(255, 255, 255);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;\">\n<td style=\"padding-top: 5px;padding-right: 10px;padding-bottom: 5px;padding-left: 10px;min-width: 85px;border-top-style: solid;border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-width: 1px;border-top-color: rgba(204, 204, 204, 0.4);border-bottom-color: rgba(204, 204, 204, 0.4);border-left-color: rgba(204, 204, 204, 0.4);border-right-color: rgba(204, 204, 204, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><code><span leaf=\"\">TOOLS.md<\/span><\/code><\/td>\n<td style=\"padding-top: 5px;padding-right: 10px;padding-bottom: 5px;padding-left: 10px;min-width: 85px;border-top-style: solid;border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-width: 1px;border-top-color: rgba(204, 204, 204, 0.4);border-bottom-color: rgba(204, 204, 204, 0.4);border-left-color: rgba(204, 204, 204, 0.4);border-right-color: rgba(204, 204, 204, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\">\n<section><span leaf=\"\">\u5de5\u5177\u767d\u540d\u5355\/\u9ed1\u540d\u5355\uff0c\u5b89\u5168\u8fb9\u754c<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"color: rgb(0, 0, 0);background-attachment: scroll;background-clip: border-box;background-color: rgb(248, 248, 248);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;\">\n<td style=\"padding-top: 5px;padding-right: 10px;padding-bottom: 5px;padding-left: 10px;min-width: 85px;border-top-style: solid;border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-width: 1px;border-top-color: rgba(204, 204, 204, 0.4);border-bottom-color: rgba(204, 204, 204, 0.4);border-left-color: rgba(204, 204, 204, 0.4);border-right-color: rgba(204, 204, 204, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><code><span leaf=\"\">IDENTITY.md<\/span><\/code><\/td>\n<td style=\"padding-top: 5px;padding-right: 10px;padding-bottom: 5px;padding-left: 10px;min-width: 85px;border-top-style: solid;border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-width: 1px;border-top-color: rgba(204, 204, 204, 0.4);border-bottom-color: rgba(204, 204, 204, 0.4);border-left-color: rgba(204, 204, 204, 0.4);border-right-color: rgba(204, 204, 204, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\">\n<section><span leaf=\"\">\u8eab\u4efd\u6807\u8bc6\uff08name\/avatar\uff09\uff0c\u901a\u9053\u5c55\u793a<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"color: rgb(0, 0, 0);background-attachment: scroll;background-clip: border-box;background-color: rgb(255, 255, 255);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;\">\n<td style=\"padding-top: 5px;padding-right: 10px;padding-bottom: 5px;padding-left: 10px;min-width: 85px;border-top-style: solid;border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-width: 1px;border-top-color: rgba(204, 204, 204, 0.4);border-bottom-color: rgba(204, 204, 204, 0.4);border-left-color: rgba(204, 204, 204, 0.4);border-right-color: rgba(204, 204, 204, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><code><span leaf=\"\">USER.md<\/span><\/code><\/td>\n<td style=\"padding-top: 5px;padding-right: 10px;padding-bottom: 5px;padding-left: 10px;min-width: 85px;border-top-style: solid;border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-width: 1px;border-top-color: rgba(204, 204, 204, 0.4);border-bottom-color: rgba(204, 204, 204, 0.4);border-left-color: rgba(204, 204, 204, 0.4);border-right-color: rgba(204, 204, 204, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\">\n<section><span leaf=\"\">\u7528\u6237\u504f\u597d\uff0c\u4e0a\u4e0b\u6587\u5148\u9a8c<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"color: rgb(0, 0, 0);background-attachment: scroll;background-clip: border-box;background-color: rgb(248, 248, 248);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;\">\n<td style=\"padding-top: 5px;padding-right: 10px;padding-bottom: 5px;padding-left: 10px;min-width: 85px;border-top-style: solid;border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-width: 1px;border-top-color: rgba(204, 204, 204, 0.4);border-bottom-color: rgba(204, 204, 204, 0.4);border-left-color: rgba(204, 204, 204, 0.4);border-right-color: rgba(204, 204, 204, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><code><span leaf=\"\">HEARTBEAT.md<\/span><\/code><\/td>\n<td style=\"padding-top: 5px;padding-right: 10px;padding-bottom: 5px;padding-left: 10px;min-width: 85px;border-top-style: solid;border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-width: 1px;border-top-color: rgba(204, 204, 204, 0.4);border-bottom-color: rgba(204, 204, 204, 0.4);border-left-color: rgba(204, 204, 204, 0.4);border-right-color: rgba(204, 204, 204, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\">\n<section><span leaf=\"\">\u5b9a\u65f6\u4efb\u52a1\u914d\u7f6e<\/span><\/section>\n<\/td>\n<\/tr>\n<tr style=\"color: rgb(0, 0, 0);background-attachment: scroll;background-clip: border-box;background-color: rgb(255, 255, 255);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;\">\n<td style=\"padding-top: 5px;padding-right: 10px;padding-bottom: 5px;padding-left: 10px;min-width: 85px;border-top-style: solid;border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-width: 1px;border-top-color: rgba(204, 204, 204, 0.4);border-bottom-color: rgba(204, 204, 204, 0.4);border-left-color: rgba(204, 204, 204, 0.4);border-right-color: rgba(204, 204, 204, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><code><span leaf=\"\">MEMORY.md<\/span><\/code><\/td>\n<td style=\"padding-top: 5px;padding-right: 10px;padding-bottom: 5px;padding-left: 10px;min-width: 85px;border-top-style: solid;border-bottom-style: solid;border-left-style: solid;border-right-style: solid;border-top-width: 1px;border-bottom-width: 1px;border-left-width: 1px;border-right-width: 1px;border-top-color: rgba(204, 204, 204, 0.4);border-bottom-color: rgba(204, 204, 204, 0.4);border-left-color: rgba(204, 204, 204, 0.4);border-right-color: rgba(204, 204, 204, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\">\n<section><span leaf=\"\">\u957f\u671f\u8bb0\u5fc6\u6587\u6863\uff08RAG\u6e90\uff09<\/span><\/section>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/section>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u6e90\u7801\u4e2d\u901a\u8fc7<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">loadWorkspaceBootstrapFiles<\/span><\/code><span leaf=\"\">\u65b9\u6cd5\u52a0\u8f7d\u8fd9\u4e9b\u6587\u4ef6\uff1a<\/span><\/p>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM7XbFwZq0DjX7tjswiaQlKNNsMia2ibyrPoJHNMlEVXONiatQZk8icD8ELxml5EcUJv17lx5QccS2aAAEdAO18Rbs56HSyfuibjnqtqbn9iaAJqAHKfg\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ src\/agents\/workspace.ts:498-555<\/span><\/span><span leaf=\"\"><br><\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">export<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">async<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span style=\"line-height: 26px;\"><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">function<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span style=\"color: #61aeee;line-height: 26px;\"><span leaf=\"\">loadWorkspaceBootstrapFiles<\/span><\/span><span leaf=\"\">(<\/span><span style=\"line-height: 26px;\"><span leaf=\"\">dir:&nbsp;<\/span><span style=\"color: #e6c07b;line-height: 26px;\"><span leaf=\"\">string<\/span><\/span><\/span><span leaf=\"\">)&nbsp;<\/span><\/span><span leaf=\"\">{<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp;&nbsp;<\/span><span style=\"color: #c678dd;line-height: 26px;\"><span leaf=\"\">const<\/span><\/span><span leaf=\"\">&nbsp;entries = [<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; { name:&nbsp;<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">\"AGENTS.md\"<\/span><\/span><span leaf=\"\">, filePath: path.join(resolvedDir,&nbsp;<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">\"AGENTS.md\"<\/span><\/span><span leaf=\"\">) },<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; { name:&nbsp;<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">\"SOUL.md\"<\/span><\/span><span leaf=\"\">, ... },<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp; { name:&nbsp;<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">\"TOOLS.md\"<\/span><\/span><span leaf=\"\">, ... },<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; &nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ ...<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; ];<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp;&nbsp;<\/span><span style=\"color: #5c6370;font-style: italic;line-height: 26px;\"><span leaf=\"\">\/\/ \u52a8\u6001\u68c0\u6d4bMEMORY.md<\/span><\/span><span leaf=\"\"><br><\/span><span leaf=\"\">}<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 22px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">\u516d\u3001\u67b6\u6784\u8bbe\u8ba1\u7684\u4f18\u7f3a\u70b9<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h2>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">6.1 \u6838\u5fc3\u4f18\u52bf<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<ul style=\"list-style-type: disc;margin-top: 8px;margin-bottom: 8px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 25px;padding-right: 0px;color: rgb(0, 0, 0);\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u96f6\u8fd0\u7ef4<\/span><\/strong><span leaf=\"\">\uff1aSQLite\u5355\u6587\u4ef6\uff0c\u65e0\u9700\u590d\u6742\u6570\u636e\u5e93<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u6570\u636e\u79c1\u6709<\/span><\/strong><span leaf=\"\">\uff1a\u5168\u672c\u5730\u5b58\u50a8\uff0c\u4e0d\u4e0a\u4e91<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u53ef\u5ba1\u8ba1<\/span><\/strong><span leaf=\"\">\uff1a\u8bb0\u5fc6\u900f\u660e\uff0cMarkdown\u6587\u4ef6\u53ef\u8bfb<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u589e\u91cf\u7d22\u5f15<\/span><\/strong><span leaf=\"\">\uff1a\u53ea\u5904\u7406\u53d8\u66f4\u6587\u4ef6\uff0c\u6548\u7387\u9ad8<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u4f18\u96c5\u964d\u7ea7<\/span><\/strong><span leaf=\"\">\uff1a\u4ece\u5411\u91cf\u2192BM25\u2192\u7eaf\u6587\u672c\uff0c\u9010\u7ea7\u56de\u9000<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u63d2\u4ef6\u751f\u6001<\/span><\/strong><span leaf=\"\">\uff1a60+\u5b98\u65b9\u6280\u80fd\uff0c\u793e\u533a\u6301\u7eed\u8d21\u732e<\/span><\/section>\n<\/li>\n<\/ul>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">6.2 \u73b0\u5b58\u6311\u6218<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<ul style=\"list-style-type: disc;margin-top: 8px;margin-bottom: 8px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 25px;padding-right: 0px;color: rgb(0, 0, 0);\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">Token\u6d88\u8017\u504f\u9ad8<\/span><\/strong><span leaf=\"\">\uff1a\u8bb0\u5fc6\u7cfb\u7edf\u662f\u4e3b\u8981\u539f\u56e0<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u5411\u91cf\u68c0\u7d22\u4e0d\u61c2\u5173\u7cfb<\/span><\/strong><span leaf=\"\">\uff1a\u80fd\u627e\u5230\u4e2a\u4f53\u4f46\u63a8\u4e0d\u51fa\u5173\u7cfb<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u7ef4\u62a4\u6210\u672c\u7ebf\u6027\u589e\u957f<\/span><\/strong><span leaf=\"\">\uff1a\u6587\u4ef6\u8d8a\u591a\uff0c\u7d22\u5f15\u7ef4\u62a4\u8d8a\u590d\u6742<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u957f\u8fde\u63a5\u6296\u52a8<\/span><\/strong><span leaf=\"\">\uff1aWebSocket 1006\u9519\u8bef\u5e38\u89c1<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u5c0f\u767d\u95e8\u69db<\/span><\/strong><span leaf=\"\">\uff1a\u867d\u96f6\u8fd0\u7ef4\uff0c\u4f46\u9700\u61c2\u6587\u4ef6\u7ed3\u6784<\/span><\/section>\n<\/li>\n<\/ul>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 22px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">\u4e03\u3001\u5b9e\u6218\u5efa\u8bae<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h2>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">7.1 \u5b9a\u671f\u8bb0\u5fc6\u4f53\u68c0<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u957f\u671f\u8bb0\u5fc6\u6587\u4ef6\u4f1a\u968f\u65f6\u95f4\u81a8\u80c0\uff0c\u5efa\u8bae\u6bcf\u6708\u624b\u52a8\u8fc7\u4e00\u904d<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">MEMORY.md<\/span><\/code><span leaf=\"\">\uff0c\u5220\u8fc7\u65f6\u3001\u5e76\u91cd\u590d\u3002<\/span><\/p>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">7.2 \u6559\u4f1aAgent\u5206\u7c7b<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u5728\u7cfb\u7edf\u63d0\u793a\u8bcd\u4e2d\u5f15\u5bfc\u5206\u7c7b\uff1a<\/span><\/p>\n<ul style=\"list-style-type: disc;margin-top: 8px;margin-bottom: 8px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 25px;padding-right: 0px;color: rgb(0, 0, 0);\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><span leaf=\"\">\u201c\u6211\u559c\u6b22\/\u4e60\u60ef\u201d \u2192&nbsp;<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">preferences.md<\/span><\/code><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><span leaf=\"\">\u201c\u6211\u8981\u505a\u4e00\u4e2a\u201d \u2192&nbsp;<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">projects.md<\/span><\/code><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><span leaf=\"\">\u201c\u89e3\u51b3\u4e86\u201d \u2192&nbsp;<\/span><code style=\"color: rgb(30, 107, 184);font-size: 14px;line-height: 1.8em;letter-spacing: 0em;background-attachment: scroll;background-clip: border-box;background-color: rgba(27, 31, 35, 0.05);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 2px;margin-right: 2px;padding-top: 2px;padding-bottom: 2px;padding-left: 4px;padding-right: 4px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 4px;border-top-right-radius: 4px;border-bottom-right-radius: 4px;border-bottom-left-radius: 4px;overflow-wrap: break-word;font-family: Consolas, Monaco, Menlo, monospace;word-break: break-all;\"><span leaf=\"\">learnings.md<\/span><\/code><\/section>\n<\/li>\n<\/ul>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">7.3 \u5584\u7528Heartbeat<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM42A9FPUElVIQgfxibyIlaOLicNjbQzzrUrkgEnzKVm9ib6wVxNM6BAmVCaQSlNnKT7QpXrAiaA2FeMCdtYTM7A5AMvibPNibY6ev8En0kyIckgzsXQ\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span leaf=\"\">openclaw cron add --name&nbsp;<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">\"\u8bb0\u5fc6\u7ef4\u62a4\"<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; --cron&nbsp;<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">\"0 3 *\"<\/span><\/span><span leaf=\"\">&nbsp;<\/span><span leaf=\"\"><br><\/span><span leaf=\"\">&nbsp; --system-event&nbsp;<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">\"\u8fd0\u884c\u8bb0\u5fc6\u6574\u7406\uff1a\u5408\u5e76\u76f8\u4f3c\u9879\uff0c\u5220\u9664\u4f4e\u4ef7\u503c\u9879\uff0c\u751f\u6210\u6458\u8981\"<\/span><\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<h3 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 20px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">7.4 \u663e\u5f0f\u9650\u5b9a\u641c\u7d22\u8303\u56f4<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h3>\n<pre data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"border-radius: 5px;box-shadow: rgba(0, 0, 0, 0.55) 0px 2px 10px;text-align: left;margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;\"><span data-cacheurl=\"\" data-remoteid=\"\" style=\"display: block;background: none;height: 30px;width: 100%;background-size: 40px;background-repeat: no-repeat;background-color: #282c34;margin-bottom: -7px;border-radius: 5px;background-position: 10px 10px;background-image: url(&quot;https:\/\/mmbiz.qpic.cn\/mmbiz_svg\/Q3auHgzwzM5ibibwcHVpTJOU34DCicUEsMyOUqzQfqDBrQVuMsB85UY15Fpic6T7UIvhVtibQAgUjwibZmJIqUg1a1KHYcdWxH49Wm4SIUicZjpAVGm2rVUribe8pA\/640?wx_fmt=svg&amp;from=appmsg&quot;);\"><\/span><code style=\"overflow-x: auto;padding: 16px;color: #abb2bf;padding-top: 15px;background: #282c34;border-radius: 5px;display: -webkit-box;font-family: Consolas, Monaco, Menlo, monospace;font-size: 12px;\"><span leaf=\"\">memory_search({ query:&nbsp;<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">\"...\"<\/span><\/span><span leaf=\"\">, scope: [<\/span><span style=\"color: #98c379;line-height: 26px;\"><span leaf=\"\">\"learnings.md\"<\/span><\/span><span leaf=\"\">] })<\/span><span leaf=\"\"><br><\/span><\/code><\/pre>\n<h2 data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"margin-top: 30px;margin-bottom: 15px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;display: block;\">\n<span style=\"display: none;\"><\/span><span style=\"font-size: 22px;color: rgb(0, 0, 0);line-height: 1.5em;letter-spacing: 0em;text-align: left;font-weight: bold;display: block;\"><span leaf=\"\">\u7ed3\u8bed<\/span><\/span><span style=\"display: none;\"><\/span><br>\n<\/h2>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">OpenClaw\u7684\u67b6\u6784\u8bbe\u8ba1\u7ed9\u6211\u6700\u5927\u7684\u542f\u53d1\u662f\uff1a<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">AI\u7684\u8bb0\u5fc6\u548c\u6267\u884c\u4e0d\u5e94\u8be5\u662f\u9ed1\u76d2<\/span><\/strong><span leaf=\"\">\u3002\u7528Markdown\u5b58\u771f\u76f8\uff0c\u7528SQLite\u5efa\u7d22\u5f15\uff0c\u7528BM25+\u5411\u91cf\u505a\u68c0\u7d22\uff0c\u7528Gateway-Pi\u505a\u6267\u884c\u2014\u2014\u8fd9\u5957\u7ec4\u5408\u62f3\u65e2\u4fdd\u8bc1\u4e86\u529f\u80fd\u5f3a\u5927\uff0c\u53c8\u8ba9\u4e00\u5207\u900f\u660e\u53ef\u63a7\u3002<\/span><\/p>\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><span leaf=\"\">\u5728\u8fd9\u4e2a\u6240\u6709AI\u90fd\u60f3\u201c\u8bb0\u4f4f\u4f60\u201d\u7684\u65f6\u4ee3\uff0cOpenClaw\u8ba9\u4f60\u80fd\u968f\u65f6\u6253\u5f00\u6587\u4ef6\u3001\u770b\u6e05\u5b83\u8bb0\u4f4f\u4e86\u4ec0\u4e48\u3001\u77e5\u9053\u5b83\u5728\u54ea\u6267\u884c\u3001\u600e\u4e48\u6267\u884c\u3002\u8fd9\u79cd<\/span><strong style=\"color: rgb(0, 0, 0);font-weight: bold;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u6e05\u9192\u7684\u8bbe\u8ba1\u54f2\u5b66<\/span><\/strong><span leaf=\"\">\uff0c\u6216\u8bb8\u6b63\u662f\u5b83\u80fd\u591f\u8d85\u8d8aLinux\u548cReact\uff0c\u767b\u9876\u5168\u7403\u7684\u539f\u56e0\u3002<\/span><\/p>\n<hr style=\"margin-top: 10px;margin-bottom: 10px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: solid;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 1px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgb(0, 0, 0);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: 1px;\">\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"color: rgb(0, 0, 0);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;text-indent: 0em;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 8px;padding-bottom: 8px;padding-left: 0px;padding-right: 0px;\"><em style=\"color: rgb(0, 0, 0);font-style: italic;background-attachment: scroll;background-clip: border-box;background-color: rgba(0, 0, 0, 0);background-image: none;background-origin: padding-box;background-position-x: left;background-position-y: top;background-repeat: no-repeat;background-size: auto;width: auto;height: auto;margin-top: 0px;margin-bottom: 0px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 0px;padding-right: 0px;border-top-style: none;border-bottom-style: none;border-left-style: none;border-right-style: none;border-top-width: 3px;border-bottom-width: 3px;border-left-width: 3px;border-right-width: 3px;border-top-color: rgba(0, 0, 0, 0.4);border-bottom-color: rgba(0, 0, 0, 0.4);border-left-color: rgba(0, 0, 0, 0.4);border-right-color: rgba(0, 0, 0, 0.4);border-top-left-radius: 0px;border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-bottom-left-radius: 0px;\"><span leaf=\"\">\u53c2\u8003\u8d44\u6599<\/span><\/em><\/p>\n<ol style=\"list-style-type: decimal;margin-top: 8px;margin-bottom: 8px;margin-left: 0px;margin-right: 0px;padding-top: 0px;padding-bottom: 0px;padding-left: 25px;padding-right: 0px;color: rgb(0, 0, 0);\" class=\"list-paddingleft-1\">\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><span leaf=\"\">OpenClaw\u4e09\u7ea7\u8bb0\u5fc6\u7cfb\u7edf\u5b9e\u73b0\u63ed\u79d8<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><span leaf=\"\">2026\u5e74OpenClaw\u63d2\u4ef6\u5316\u91cd\u6784\u6280\u672f\u89e3\u6790<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><span leaf=\"\">OpenClaw\u6838\u5fc3\u6e90\u7801\u89e3\u8bfb\uff1a\u4eceGateway\u5230Pi-embedded<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><span leaf=\"\">\u4e0d\u4f1a\u5199\u4ee3\u7801\u4e5f\u80fd\u61c2\uff1aOpenClaw\u56db\u5c42\u67b6\u6784\u56fe\u89e3<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><span leaf=\"\">\u5403\u9f99\u867e\u54af\uff01\u4e07\u5b57\u62c6\u89e3OpenClaw\u7684\u67b6\u6784\u4e0e\u8bbe\u8ba1<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><span leaf=\"\">\u5173\u4e8eOpenClaw\uff0c\u4f60\u9700\u8981\u4e86\u89e3\u7684\uff1a\u6838\u5fc3\u67b6\u6784\u3001\u8fd0\u4f5c\u539f\u7406<\/span><\/section>\n<\/li>\n<li>\n<section style=\"margin-top: 5px;margin-bottom: 5px;color: rgb(1, 1, 1);font-size: 16px;line-height: 1.8em;letter-spacing: 0em;text-align: left;font-weight: normal;\"><span leaf=\"\">OpenClaw Architecture Deep Dive 2025<\/span><\/section>\n<\/li>\n<\/ol>\n<section style=\"margin-top:5px;margin-bottom:5px;color:rgb(1, 1, 1);font-size:16px;line-height:1.8em;letter-spacing:0em;text-align:left;font-weight:normal;\"><span leaf=\"\"><br><\/span><\/section>\n<section style=\"margin-top:5px;margin-bottom:5px;color:rgb(1, 1, 1);font-size:16px;line-height:1.8em;letter-spacing:0em;text-align:left;font-weight:normal;\"><span leaf=\"\"><br><\/span><\/section>\n<section data-tool=\"mdnice\u7f16\u8f91\u5668\" data-website=\"https:\/\/www.mdnice.com\" style=\"font-size: 16px;color: black;padding-right: 10px;padding-left: 10px;line-height: 1.6;letter-spacing: 0px;word-break: break-word;overflow-wrap: break-word;text-align: left;font-family: Optima-Regular, Optima, PingFangSC-light, PingFangTC-light, &quot;PingFang SC&quot;, Cambria, Cochin, Georgia, Times, &quot;Times New Roman&quot;, serif;\" data-pm-slice=\"3 1 []\">\n<p data-tool=\"mdnice\u7f16\u8f91\u5668\" style=\"padding-top: 8px;padding-bottom: 8px;line-height: 26px;\"><span leaf=\"\"><br><\/span><\/p>\n<\/section>","protected":false},"excerpt":{"rendered":"<p>\u5f15\u8a00 OpenClaw\uff08\u539fClawdbot\uff09\u4f5c\u4e3a\u5f53\u524d\u5168\u7403\u6700\u7099\u624b\u53ef\u70ed\u7684\u5f00\u6e90AI Agent\u6846\u67b6\uff0c\u5176GitHub\u661f [&hellip;]<\/p>","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"wp-custom-template","format":"standard","meta":{"_acf_changed":false,"_crdt_document":"","_uag_custom_page_level_css":"","footnotes":""},"categories":[9],"tags":[],"class_list":["post-1172","post","type-post","status-publish","format-standard","hentry","category-blog"],"acf":[],"views":391,"uagb_featured_image_src":{"full":false,"thumbnail":false,"medium":false,"medium_large":false,"large":false,"1536x1536":false,"2048x2048":false,"trp-custom-language-flag":false},"uagb_author_info":{"display_name":"stark, tony","author_link":"https:\/\/51ai.website\/en\/author\/admin\/"},"uagb_comment_info":10,"uagb_excerpt":"\u5f15\u8a00 OpenClaw\uff08\u539fClawdbot\uff09\u4f5c\u4e3a\u5f53\u524d\u5168\u7403\u6700\u7099\u624b\u53ef\u70ed\u7684\u5f00\u6e90AI Agent\u6846\u67b6\uff0c\u5176GitHub\u661f&hellip;","_links":{"self":[{"href":"https:\/\/51ai.website\/en\/wp-json\/wp\/v2\/posts\/1172","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/51ai.website\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/51ai.website\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/51ai.website\/en\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/51ai.website\/en\/wp-json\/wp\/v2\/comments?post=1172"}],"version-history":[{"count":3,"href":"https:\/\/51ai.website\/en\/wp-json\/wp\/v2\/posts\/1172\/revisions"}],"predecessor-version":[{"id":1178,"href":"https:\/\/51ai.website\/en\/wp-json\/wp\/v2\/posts\/1172\/revisions\/1178"}],"wp:attachment":[{"href":"https:\/\/51ai.website\/en\/wp-json\/wp\/v2\/media?parent=1172"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/51ai.website\/en\/wp-json\/wp\/v2\/categories?post=1172"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/51ai.website\/en\/wp-json\/wp\/v2\/tags?post=1172"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}