{"id":103559,"date":"2026-09-10T23:57:01","date_gmt":"2026-09-10T15:57:01","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/103559.html"},"modified":"2026-09-10T23:57:01","modified_gmt":"2026-09-10T15:57:01","slug":"%e6%8b%86%e8%a7%a3agent%e7%9a%84harness%e5%85%ad%e5%b1%82%e6%9e%b6%e6%9e%84%ef%bc%9a%e4%b8%ba%e4%bb%80%e4%b9%88%e4%bd%a0%e7%9a%84%e5%a4%a7%e6%a8%a1%e5%9e%8b%e6%80%bb%e6%98%af%e8%b7%91%e5%b4%a9","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/103559.html","title":{"rendered":"\u62c6\u89e3Agent\u7684Harness\u516d\u5c42\u67b6\u6784\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684\u5927\u6a21\u578b\u603b\u662f\u8dd1\u5d29"},"content":{"rendered":"<\/p>\n<h4>\u6587\u7ae0\u76ee\u5f55<\/h4>\n<ul>\n<li>\n<ul>\n<li>\u4e00\u3001\u5148\u8bb2\u4e2a\u79bb\u8c31\u7684\u4e8b<\/li>\n<li>\u4e8c\u3001Harness\u5230\u5e95\u662f\u4e2a\u5565<\/li>\n<li>\u4e09\u3001AI\u5de5\u7a0b\u8fd9\u4e24\u5e74\u8d70\u4e86\u4e09\u6b65<\/li>\n<li>\n<ul>\n<li>3.1 \u7b2c\u4e00\u7ea7&#xff1a;\u628a\u8bdd\u8bf4\u6e05\u695a<\/li>\n<li>3.2 \u7b2c\u4e8c\u7ea7&#xff1a;\u628a\u4fe1\u606f\u5582\u5bf9<\/li>\n<li>3.3 \u7b2c\u4e09\u7ea7&#xff1a;\u628a\u6267\u884c\u9a7e\u9a6d\u4f4f<\/li>\n<\/ul>\n<\/li>\n<li>\u56db\u3001\u6210\u719fHarness\u7684\u516d\u5c42\u67b6\u6784<\/li>\n<li>\n<ul>\n<li>4.1 \u7b2c\u4e00\u5c42&#xff1a;\u4fe1\u606f\u8fb9\u754c\u7ba1\u7406<\/li>\n<li>4.2 \u7b2c\u4e8c\u5c42&#xff1a;\u5de5\u5177\u7cfb\u7edf<\/li>\n<li>4.3 \u7b2c\u4e09\u5c42&#xff1a;\u6267\u884c\u7f16\u6392<\/li>\n<li>4.4 \u7b2c\u56db\u5c42&#xff1a;\u72b6\u6001\u7ba1\u7406<\/li>\n<li>4.5 \u7b2c\u4e94\u5c42&#xff1a;\u8bc4\u4f30\u4e0e\u89c2\u6d4b<\/li>\n<li>4.6 \u7b2c\u516d\u5c42&#xff1a;\u7ea6\u675f\u3001\u6821\u9a8c\u4e0e\u5931\u8d25\u6062\u590d<\/li>\n<\/ul>\n<\/li>\n<li>\u4e94\u3001\u4e00\u7ebf\u516c\u53f8\u5230\u5e95\u600e\u4e48\u73a9\u7684<\/li>\n<li>\n<ul>\n<li>5.1 Anthropic&#xff1a;\u5bf9\u4ed8&#034;\u4e0a\u4e0b\u6587\u7126\u8651&#034;<\/li>\n<li>5.2 Anthropic&#xff1a;\u751f\u4ea7\u4e0e\u9a8c\u6536\u5fc5\u987b\u5206\u79bb<\/li>\n<li>5.3 OpenAI&#xff1a;\u5de5\u7a0b\u5e08\u4e0d\u5199\u4ee3\u7801&#xff0c;\u53ea\u8bbe\u8ba1\u73af\u5883<\/li>\n<\/ul>\n<\/li>\n<li>\u516d\u3001\u6536\u53e3&#xff1a;\u4e0a\u9650\u5f52\u6a21\u578b&#xff0c;\u4e0b\u9650\u5f52Harness<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260910155659-6aa2d34b445ec.jpg\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n P.S. \u63a8\u8350\u4e00\u4e2a\u5927\u795e\u7684\u6559\u7a0b\u7ed9\u60f3\u8981\u4e86\u89e3\u6216\u8005\u5b66\u4e60\u4eba\u5de5\u667a\u80fd\u77e5\u8bc6\u7684\u8bfb\u8005&#xff0c;\u8fd9\u4e2a\u6559\u7a0b\u91cc\u5185\u5bb9\u8bb2\u89e3\u901a\u4fd7\u6613\u61c2\u4e14\u98ce\u8da3\u5e7d\u9ed8&#xff0c;\u5bf9\u6211\u5e2e\u52a9\u5f88\u5927\u3002\u6211\u60f3\u4e0e\u5927\u5bb6\u5206\u4eab\u8fd9\u4e2a\u5b9d\u85cf\u6559\u7a0b&#xff0c;\u8bf7\u70b9\u51fb\u4e0b\u65b9\u94fe\u63a5\u67e5\u770b&#xff0c;<br \/>\n\u4f20\u9001\u95e8https:\/\/blog.csdn.net\/qq_74013365<\/p>\n<h3>\u4e00\u3001\u5148\u8bb2\u4e2a\u79bb\u8c31\u7684\u4e8b<\/h3>\n<p>\u6709\u4e2a\u56e2\u961f\u505aAgent&#xff0c;\u6548\u679c\u4e00\u76f4\u4e0a\u4e0d\u53bb\u3002<\/p>\n<p>\u4ed6\u4eec\u7684\u64cd\u4f5c\u975e\u5e38\u6807\u51c6\u2014\u2014\u6362\u6700\u5f3a\u7684\u6a21\u578b&#xff0c;\u63d0\u793a\u8bcd\u6539\u4e86\u4e00\u767e\u591a\u7248&#xff0c;\u6e29\u5ea6\u53c2\u6570\u4ece0\u8c03\u52301\u518d\u8c03\u56de0.1&#xff0c;\u6068\u4e0d\u5f97\u628a\u6a21\u578b\u7956\u575f\u90fd\u5228\u51fa\u6765\u8c03\u4e00\u8c03\u3002<\/p>\n<p>\u7ed3\u679c\u5462&#xff1f;\u771f\u5b9e\u573a\u666f\u6210\u529f\u7387&#xff0c;70%\u90fd\u4e0d\u5230\u3002<\/p>\n<p>\u4f60\u8bf4\u6c14\u4e0d\u6c14&#xff1f;\u5c31\u50cf\u4f60\u82b1\u5927\u4ef7\u94b1\u8bf7\u4e86\u4e2a\u91d1\u724c\u5927\u53a8&#xff0c;\u7ed3\u679c\u4ed6\u7092\u51fa\u6765\u7684\u83dc\u8fd8\u662f\u54b8\u7684&#xff0c;\u4f60\u6000\u7591\u662f\u9505\u7684\u95ee\u9898&#xff0c;\u6362\u4e86\u4e09\u53e3\u9505&#xff0c;\u8fd8\u662f\u54b8\u3002\u6700\u540e\u53d1\u73b0\u2014\u2014\u662f\u4f60\u6ca1\u544a\u8bc9\u4ed6\u76d0\u653e\u591a\u5c11\u3001\u706b\u5019\u591a\u5927\u3001\u7092\u5b8c\u8981\u4e0d\u8981\u5c1d\u4e00\u53e3\u3002<\/p>\n<p>\u540e\u6765\u8fd9\u4e2a\u56e2\u961f\u5e72\u4e86\u4e00\u4ef6\u4e8b&#xff0c;\u6210\u529f\u7387\u76f4\u63a5\u5e72\u523095%\u4ee5\u4e0a\u3002<\/p>\n<p>\u6a21\u578b\u6ca1\u6362&#xff0c;\u63d0\u793a\u8bcd\u6ca1\u52a8&#xff0c;\u53c2\u6570\u4e00\u4e2a\u6ca1\u6539\u3002<\/p>\n<p>\u6539\u7684\u662f&#xff1a;\u4efb\u52a1\u600e\u4e48\u62c6\u3001\u72b6\u6001\u600e\u4e48\u7ba1\u3001\u5173\u952e\u6b65\u9aa4\u600e\u4e48\u6821\u9a8c\u3001\u5931\u8d25\u4e86\u600e\u4e48\u635e\u56de\u6765\u3002<\/p>\n<p>\u8bf4\u767d\u4e86&#xff0c;\u6539\u7684\u5168\u662f\u6a21\u578b\u5916\u9762\u90a3\u5957\u4e1c\u897f\u3002<\/p>\n<p>\u8fd9\u5957\u4e1c\u897f&#xff0c;\u73b0\u5728\u6709\u4e86\u4e2a\u7edf\u4e00\u7684\u540d\u5b57\u2014\u2014Harness\u3002<\/p>\n<h3>\u4e8c\u3001Harness\u5230\u5e95\u662f\u4e2a\u5565<\/h3>\n<p>LangChain\u90a3\u5e2e\u4eba\u7ed9\u8fc7\u4e00\u4e2a\u7279\u522b\u5e72\u51c0\u7684\u7b49\u5f0f&#xff1a;<\/p>\n<p>Agent &#061; Model &#043; Harness<\/p>\n<p>\u79fb\u9879\u5c31\u662f&#xff1a;Harness &#061; Agent \u2212 Model\u3002<\/p>\n<p>\u7ffb\u8bd1\u6210\u4eba\u8bdd&#xff1a;\u5728\u4e00\u4e2aAgent\u7cfb\u7edf\u91cc&#xff0c;\u9664\u4e86\u6a21\u578b\u672c\u8eab\u4e4b\u5916&#xff0c;\u6240\u6709\u51b3\u5b9a\u5b83\u80fd\u4e0d\u80fd\u7a33\u5b9a\u5e72\u6d3b\u7684\u4e1c\u897f&#xff0c;\u90fd\u7b97Harness\u3002<\/p>\n<p>\u8fd9\u4e2a\u5b9a\u4e49\u4e3a\u5565\u91cd\u8981&#xff1f;\u56e0\u4e3a\u5b83\u628a&#034;\u6a21\u578b&#034;\u548c&#034;\u7cfb\u7edf&#034;\u5728\u8d26\u672c\u4e0a\u5f7b\u5e95\u5206\u5bb6\u4e86\u3002<\/p>\n<p>\u6a21\u578b\u662f\u4e0a\u9650&#xff0c;Harness\u662f\u4e0b\u9650\u3002<\/p>\n<p>\u800c\u51b3\u5b9a\u4e00\u4e2a\u4ea7\u54c1\u80fd\u4e0d\u80fd\u843d\u5730\u7684&#xff0c;\u4ece\u6765\u90fd\u662f\u4e0b\u9650\u3002\u4f60\u5bb6\u5929\u82b1\u677f\u518d\u9ad8&#xff0c;\u5730\u677f\u584c\u4e86\u7167\u6837\u4f4f\u4e0d\u4e86\u4eba\u3002<\/p>\n<p>\u90a3\u4e2a70%\u523095%\u7684\u6848\u4f8b&#xff0c;\u6539\u7684\u5168\u662f\u4e0b\u9650\u3002<\/p>\n<h3>\u4e09\u3001AI\u5de5\u7a0b\u8fd9\u4e24\u5e74\u8d70\u4e86\u4e09\u6b65<\/h3>\n<p>Harness\u4e0d\u662f\u51ed\u7a7a\u8e66\u51fa\u6765\u7684\u3002\u8fc7\u53bb\u4e24\u5e74&#xff0c;AI\u5de5\u7a0b\u5176\u5b9e\u8d70\u5b8c\u4e86\u4e09\u7ea7\u8df3&#xff1a;<\/p>\n<p>Prompt Engineering \u2192 Context Engineering \u2192 Harness Engineering<\/p>\n<p>\u542c\u7740\u50cf\u672f\u8bed\u6d41\u884c\u53f2&#xff0c;\u5b9e\u9645\u4e0a\u662fAI\u7cfb\u7edf\u8981\u56de\u7b54\u7684\u4e09\u5c42\u95ee\u9898\u5728\u4f9d\u6b21\u663e\u5f62&#xff1a;<\/p>\n<li>\n<p>\u6a21\u578b\u6709\u6ca1\u6709\u542c\u61c2\u4f60\u5728\u8bf4\u4ec0\u4e48&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u6a21\u578b\u6709\u6ca1\u6709\u62ff\u5230\u8db3\u591f\u4e14\u6b63\u786e\u7684\u4fe1\u606f&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u6a21\u578b\u5728\u771f\u5b9e\u6267\u884c\u91cc\u80fd\u4e0d\u80fd\u6301\u7eed\u505a\u5bf9&#xff1f;<\/p>\n<\/li>\n<p>\u4e09\u5c42\u95ee\u9898\u4e00\u5c42\u5305\u4e00\u5c42&#xff0c;\u8d8a\u5f80\u5916\u8d8a\u5927\u3002\u5c31\u50cf\u5265\u6d0b\u8471&#xff0c;\u5265\u5230\u6700\u540e\u4f60\u4f1a\u6d41\u6cea\u2014\u2014\u56e0\u4e3a\u53d1\u73b0\u6700\u5916\u9762\u90a3\u5c42\u624d\u662f\u771f\u6b63\u96be\u641e\u7684\u3002<\/p>\n<h4>3.1 \u7b2c\u4e00\u7ea7&#xff1a;\u628a\u8bdd\u8bf4\u6e05\u695a<\/h4>\n<p>\u5927\u6a21\u578b\u521a\u706b\u90a3\u9635&#xff0c;\u5927\u5bb6\u6700\u76f4\u89c2\u7684\u4f53\u9a8c\u662f&#xff1a;\u540c\u4e00\u4e2a\u6a21\u578b&#xff0c;\u6362\u4e2a\u8bf4\u6cd5\u7ed3\u679c\u5dee\u5f88\u591a\u3002<\/p>\n<p>\u4e8e\u662f\u5168\u6c11\u7814\u7a76\u63d0\u793a\u8bcd\u2014\u2014\u89d2\u8272\u8bbe\u5b9a\u3001Few\u2011shot\u3001\u98ce\u683c\u7ea6\u675f\u3001\u8f93\u51fa\u683c\u5f0f\u3002\u90a3\u6bb5\u65f6\u95f4\u4eba\u4eba\u90fd\u662f&#034;\u63d0\u793a\u8bcd\u5de5\u7a0b\u5e08&#034;&#xff0c;\u670b\u53cb\u5708\u5230\u5904\u662f&#034;\u4e07\u80fd\u63d0\u793a\u8bcd\u6a21\u677f&#034;&#xff0c;\u53569\u57579\u4e00\u4efd&#xff0c;\u6bd4\u5976\u8336\u8fd8\u7545\u9500\u3002<\/p>\n<p>\u4e3a\u5565\u6709\u6548&#xff1f;\u56e0\u4e3a\u5927\u6a21\u578b\u672c\u8d28\u662f\u4e00\u4e2a\u5bf9\u4e0a\u4e0b\u6587\u6781\u5ea6\u654f\u611f\u7684\u6982\u7387\u751f\u6210\u5668\u3002\u4f60\u7ed9\u5b83\u4ec0\u4e48\u8eab\u4efd&#xff0c;\u5b83\u5c31\u987a\u7740\u90a3\u4e2a\u8eab\u4efd\u5f80\u4e0b\u63a5&#xff1b;\u7ed9\u5b83\u4ec0\u4e48\u6837\u4f8b&#xff0c;\u5b83\u5c31\u6309\u90a3\u4e2a\u8303\u5f0f\u8865\u5168\u3002<\/p>\n<p>\u63d0\u793a\u8bcd\u5de5\u7a0b\u7684\u672c\u8d28&#xff0c;\u4e0d\u662f\u547d\u4ee4\u6a21\u578b&#xff0c;\u800c\u662f\u7ed9\u5b83\u6846\u4e00\u4e2a\u6982\u7387\u5206\u5e03&#xff0c;\u8ba9\u5b83\u66f4\u53ef\u80fd\u843d\u8fdb\u4f60\u60f3\u8981\u7684\u89e3\u7a7a\u95f4\u3002<\/p>\n<p>\u4f46\u5b83\u7684\u5929\u82b1\u677f\u4e5f\u5f88\u786c&#xff1a;\u5f88\u591a\u4efb\u52a1\u4e0d\u662f\u4f60\u8bf4\u6e05\u695a\u5c31\u884c&#xff0c;\u662f\u4f60\u771f\u5f97\u77e5\u9053\u3002\u8ba9\u6a21\u578b\u6309\u4e00\u5957\u957f\u89c4\u8303\u5199\u4ee3\u7801\u3001\u56de\u7b54\u67d0\u4e2a\u4ea7\u54c1\u7684\u6700\u65b0\u914d\u7f6e\u2014\u2014\u63d0\u793a\u8bcd\u5199\u5f97\u518d\u6f02\u4eae&#xff0c;\u4e5f\u66ff\u4ee3\u4e0d\u4e86\u4e8b\u5b9e\u672c\u8eab\u3002<\/p>\n<p>\u4e00\u53e5\u8bdd&#xff1a;Prompt\u89e3\u51b3\u7684\u662f\u8868\u8fbe\u95ee\u9898&#xff0c;\u4e0d\u662f\u4fe1\u606f\u95ee\u9898\u3002<\/p>\n<p>\u5c31\u50cf\u4f60\u8ddf\u4e00\u4e2a\u5916\u5356\u5458\u8bf4&#034;\u8bf7\u7ed9\u6211\u9001\u4e00\u4efd\u6700\u597d\u5403\u7684\u9ebb\u8fa3\u70eb&#034;&#xff0c;\u4ed6\u8868\u8fbe\u4e0a\u5b8c\u5168\u542c\u61c2\u4e86&#xff0c;\u4f46\u4ed6\u4e0d\u77e5\u9053\u4f60\u5bb6\u5728\u54ea\u3001\u4f60\u5403\u4e0d\u5403\u8fa3\u3001\u8981\u4e0d\u8981\u52a0\u9ebb\u9171\u3002<\/p>\n<h4>3.2 \u7b2c\u4e8c\u7ea7&#xff1a;\u628a\u4fe1\u606f\u5582\u5bf9<\/h4>\n<p>Agent\u4e00\u706b&#xff0c;\u95ee\u9898\u5c31\u53d8\u4e86\u3002\u6a21\u578b\u4e0d\u518d\u53ea\u662f\u56de\u7b54&#xff0c;\u800c\u662f\u8981\u8fdb\u771f\u5b9e\u73af\u5883\u505a\u4e8b&#xff1a;\u591a\u8f6e\u5bf9\u8bdd\u3001\u8c03\u6d4f\u89c8\u5668\u3001\u5199\u4ee3\u7801\u3001\u67e5\u6570\u636e\u5e93&#xff0c;\u591a\u6b65\u4e4b\u95f4\u4f20\u4e2d\u95f4\u7ed3\u679c&#xff0c;\u6839\u636e\u53cd\u9988\u6539\u8ba1\u5212\u3002<\/p>\n<p>\u95ee\u9898\u4ece&#034;\u4e00\u6b21\u7b54\u5f97\u5bf9\u4e0d\u5bf9&#034;\u53d8\u6210&#034;\u6574\u6761\u94fe\u8def\u8dd1\u4e0d\u8dd1\u5f97\u901a&#034;\u3002<\/p>\n<p>\u8fd9\u65f6\u6838\u5fc3\u547d\u9898\u6362\u6210\u4e00\u53e5&#xff1a;\u6a21\u578b\u4e0d\u77e5\u9053\u7684&#xff0c;\u7cfb\u7edf\u5fc5\u987b\u5728\u5408\u9002\u65f6\u673a\u628a\u6b63\u786e\u4fe1\u606f\u9001\u8fdb\u53bb\u3002<\/p>\n<p>\u6ce8\u610f&#xff0c;\u8fd9\u91cc\u7684&#034;\u4fe1\u606f&#034;\u8fdc\u4e0d\u6b62\u51e0\u6bb5\u80cc\u666f\u8d44\u6599\u3002\u5b83\u662f\u6240\u6709\u5f71\u54cd\u6a21\u578b\u5f53\u524d\u51b3\u7b56\u7684\u4e1c\u897f\u7684\u603b\u548c\u2014\u2014\u7528\u6237\u8f93\u5165\u3001\u5386\u53f2\u5bf9\u8bdd\u3001\u68c0\u7d22\u7ed3\u679c\u3001\u5de5\u5177\u8fd4\u56de\u3001\u4efb\u52a1\u72b6\u6001\u3001\u4e2d\u95f4\u4ea7\u7269\u3001\u7cfb\u7edf\u89c4\u5219\u3001\u5b89\u5168\u7ea6\u675f\u3001\u522b\u7684Agent\u4f20\u6765\u7684\u7ed3\u6784\u5316\u7ed3\u679c\u3002<\/p>\n<p>Prompt\u53ea\u662f\u5176\u4e2d\u4e00\u5c0f\u5757\u3002\u5c31\u50cf\u4f60\u53bb\u9910\u5385\u5403\u996d&#xff0c;\u83dc\u5355\u53ea\u662f\u4fe1\u606f\u7684\u4e00\u90e8\u5206&#xff0c;\u98df\u6750\u65b0\u4e0d\u65b0\u9c9c\u3001\u53a8\u5e08\u4eca\u5929\u5fc3\u60c5\u597d\u4e0d\u597d\u3001\u540e\u53a8\u6709\u6ca1\u6709\u87d1\u8782&#xff0c;\u8fd9\u4e9b\u624d\u662f\u51b3\u5b9a\u4f60\u8fd9\u987f\u996d\u4f53\u9a8c\u7684\u5173\u952e\u3002<\/p>\n<p>RAG\u662f\u8fd9\u7ea7\u7684\u5178\u578b\u5b9e\u8df5&#xff1a;\u5148\u68c0\u7d22\u518d\u585e\u4e0a\u4e0b\u6587\u3002\u4f46\u6210\u719f\u7684Context\u5de5\u7a0b\u4e0d\u6b62\u68c0\u7d22&#xff0c;\u5b83\u7ba1\u6574\u6761\u94fe\u8def\u2014\u2014\u6587\u6863\u600e\u4e48\u5207\u5757\u3001\u7ed3\u679c\u600e\u4e48\u6392\u5e8f\u3001\u957f\u6587\u600e\u4e48\u538b\u7f29\u3001\u5386\u53f2\u4f55\u65f6\u4fdd\u7559\u4f55\u65f6\u6458\u8981\u3001\u5de5\u5177\u8fd4\u56de\u8981\u4e0d\u8981\u5168\u66b4\u9732\u3001\u591aAgent\u95f4\u4f20\u539f\u6587\u8fd8\u662f\u6458\u8981\u8fd8\u662f\u7ed3\u6784\u5316\u5b57\u6bb5\u3002<\/p>\n<p>\u6838\u5fc3\u4fe1\u6761\u5c31\u4e00\u53e5&#xff1a;\u4e0a\u4e0b\u6587\u662f\u7a00\u7f3a\u8d44\u6e90&#xff0c;\u4f18\u5316\u4e0d\u662f\u7ed9\u66f4\u591a&#xff0c;\u662f\u6309\u9700\u7ed9\u3001\u5206\u5c42\u7ed9\u3001\u5728\u6b63\u786e\u65f6\u673a\u7ed9\u3002<\/p>\n<p>\u4f46\u8fd9\u7ea7\u4e5f\u6709\u591f\u4e0d\u7740\u7684\u5730\u65b9&#xff1a;\u5c31\u7b97\u4fe1\u606f\u5582\u5bf9\u4e86&#xff0c;\u6a21\u578b\u4e5f\u4e0d\u4e00\u5b9a\u7a33\u5b9a\u6267\u884c\u5bf9\u3002\u5b83\u53ef\u80fd\u8ba1\u5212\u6f02\u4eae&#xff0c;\u6267\u884c\u5374\u8dd1\u504f\u2014\u2014\u6389\u5de5\u5177\u3001\u8bef\u8bfb\u8fd4\u56de\u3001\u957f\u94fe\u8def\u91cc\u6084\u6084\u504f\u822a\u800c\u7cfb\u7edf\u6beb\u65e0\u5bdf\u89c9\u3002<\/p>\n<p>Prompt\u548cContext\u90fd\u5728\u89e3\u51b3\u8f93\u5165\u4fa7&#xff0c;\u53ef\u6a21\u578b\u4e00\u65e6\u8fde\u7eed\u884c\u52a8&#xff0c;\u8c01\u6765\u76d1\u7763\u5b83\u3001\u7ea6\u675f\u5b83\u3001\u62c9\u56de\u5b83&#xff1f;<\/p>\n<h4>3.3 \u7b2c\u4e09\u7ea7&#xff1a;\u628a\u6267\u884c\u9a7e\u9a6d\u4f4f<\/h4>\n<p>Harness\u539f\u610f\u662f\u7f30\u7ef3\u3001\u9a6c\u5177\u3002\u501f\u5230AI\u91cc&#xff0c;\u63d0\u9192\u7684\u662f\u4ef6\u6734\u7d20\u7684\u4e8b&#xff1a;\u6a21\u578b\u4ece&#034;\u56de\u7b54\u95ee\u9898&#034;\u8d70\u5230&#034;\u6267\u884c\u4efb\u52a1&#034;&#xff0c;\u7cfb\u7edf\u4e0d\u53ea\u8d1f\u8d23\u5582\u4fe1\u606f&#xff0c;\u8fd8\u8981\u9a7e\u9a6d\u6574\u4e2a\u8fc7\u7a0b\u3002<\/p>\n<p>\u524d\u4e24\u7ea7\u5173\u6ce8&#034;\u8ba9\u6a21\u578b\u66f4\u4f1a\u54cd\u5e94&#034;&#xff0c;\u8fd9\u7ea7\u5173\u6ce8&#034;\u8ba9\u6a21\u578b\u522b\u8dd1\u504f\u3001\u8dd1\u5f97\u7a33\u3001\u51fa\u4e86\u9519\u8fd8\u62c9\u5f97\u56de\u6765&#034;\u3002<\/p>\n<p>\u7ed9\u4f60\u6253\u4e2a\u6bd4\u65b9&#xff0c;\u4e00\u4e0b\u5c31\u61c2\u4e86&#xff1a;<\/p>\n<p>\u5f00\u4e00\u8f86\u8f66\u9001\u91cd\u8981\u5ba2\u4eba\u53bb\u673a\u573a\u2014\u2014<\/p>\n<p>Prompt&#xff1a;\u4f60\u628a\u4efb\u52a1\u8ddf\u53f8\u673a\u8bb2\u6e05\u695a\u2014\u2014\u8d70\u54ea\u6761\u8def\u3001\u51e0\u70b9\u5230\u3001\u4e58\u5ba2\u8981\u5b89\u9759\u3002\u91cd\u70b9\u662f\u628a\u610f\u56fe\u8bf4\u6e05\u695a\u3002<\/p>\n<p>Context&#xff1a;\u4f60\u628a\u4fe1\u606f\u5582\u9f50\u2014\u2014\u5bfc\u822a\u8def\u7ebf\u3001\u5b9e\u65f6\u8def\u51b5\u3001\u6cb9\u91cf\u3001\u4e58\u5ba2\u884c\u674e\u6570\u91cf\u3002\u91cd\u70b9\u662f\u4fe1\u606f\u4f9b\u7ed9\u5bf9\u4e0d\u5bf9\u3002<\/p>\n<p>Harness&#xff1a;\u4f60\u88c5\u4e86\u65b9\u5411\u76d8\u52a9\u529b\u3001\u8f66\u9053\u504f\u79bb\u63d0\u9192\u3001\u75b2\u52b3\u9a7e\u9a76\u76d1\u6d4b\u3001\u5907\u80ce\u548c\u4fdd\u9669&#xff0c;\u8fd8\u8981\u6c42\u53f8\u673a\u6bcf\u6bb5\u8def\u6c47\u62a5\u3001\u5230\u7ad9\u6309\u6e05\u5355\u9a8c\u6536\u3002\u91cd\u70b9\u662f\u6267\u884c\u5168\u7a0b\u6709\u4eba\u76ef\u3001\u6709\u504f\u5dee\u80fd\u7ea0\u3001\u51fa\u4e8b\u80fd\u515c\u5e95\u3002<\/p>\n<p>\u4e09\u8005\u4e0d\u662f\u66ff\u4ee3&#xff0c;\u662f\u5305\u542b&#xff1a;Prompt \u2282 Context \u2282 Harness\u3002\u8fb9\u754c\u4e00\u5c42\u6bd4\u4e00\u5c42\u5927\u3002<\/p>\n<p>\u4f60\u54c1\u54c1&#xff0c;\u662f\u4e0d\u662f\u8fd9\u4e2a\u9053\u7406&#xff1f;\u5f88\u591a\u4eba\u4e70\u8f66\u53ea\u770b\u53d1\u52a8\u673a&#xff08;\u6a21\u578b&#xff09;&#xff0c;\u4e0d\u770b\u5b89\u5168\u6c14\u56ca\u548c\u5239\u8f66\u7cfb\u7edf&#xff08;Harness&#xff09;&#xff0c;\u7ed3\u679c\u4e0a\u8def\u7b2c\u4e00\u5929\u5c31\u8ffd\u5c3e\u4e86\u3002<\/p>\n<h3>\u56db\u3001\u6210\u719fHarness\u7684\u516d\u5c42\u67b6\u6784<\/h3>\n<p>\u628aHarness\u6446\u5f00\u770b&#xff0c;\u6211\u628a\u5b83\u5f52\u6210\u516d\u5c42\u3002\u8fd9\u516d\u5c42\u4ece\u5185\u5230\u5916&#xff0c;\u8d8a\u5f80\u5916\u8d8a\u662f&#034;\u80fd\u4e0d\u80fd\u4e0a\u7ebf&#034;\u7684\u751f\u6b7b\u7ebf\u3002<\/p>\n<h4>4.1 \u7b2c\u4e00\u5c42&#xff1a;\u4fe1\u606f\u8fb9\u754c\u7ba1\u7406<\/h4>\n<p>\u91cd\u65b0\u7ad9\u5230Harness\u89c6\u89d2\u770bContext&#xff1a;\u6a21\u578b\u53d1\u6325\u7a33\u4e0d\u7a33&#xff0c;\u5f88\u591a\u65f6\u5019\u53d6\u51b3\u4e8e\u5b83\u770b\u5230\u4e86\u4ec0\u4e48\u3002<\/p>\n<p>\u8fd9\u5c42\u7ba1\u4e09\u4ef6\u4e8b\u2014\u2014<\/p>\n<p>\u89d2\u8272\u4e0e\u76ee\u6807\u7684\u5b9a\u4e49&#xff1a;\u4f60\u662f\u8c01\u3001\u6210\u529f\u6807\u51c6\u662f\u4ec0\u4e48\u3002\u522b\u8ba9\u6a21\u578b\u5e72\u7740\u5e72\u7740\u5fd8\u4e86\u81ea\u5df1\u662f\u8c01&#xff0c;\u8fd9\u6bd4\u4eba\u4e2d\u5e74\u5371\u673a\u8fd8\u53ef\u6015\u3002<\/p>\n<p>\u4fe1\u606f\u88c1\u526a&#xff1a;\u8d8a\u76f8\u5173\u8d8a\u597d&#xff0c;\u4e0d\u662f\u8d8a\u591a\u8d8a\u597d\u3002\u7ed9\u6a21\u578b\u585e\u4e00\u5806\u65e0\u5173\u4fe1\u606f&#xff0c;\u5c31\u50cf\u4f60\u8003\u8bd5\u524d\u628a\u6574\u672c\u4e66\u90fd\u80cc\u4e86&#xff0c;\u7ed3\u679c\u8003\u7684\u662f\u53e6\u4e00\u95e8\u8bfe\u3002<\/p>\n<p>\u7ed3\u6784\u5316\u5206\u533a&#xff1a;\u56fa\u5b9a\u89c4\u5219\u3001\u5f53\u524d\u4efb\u52a1\u3001\u8fd0\u884c\u72b6\u6001\u3001\u5916\u90e8\u8bc1\u636e\u5404\u5f52\u5176\u4f4d\u3002\u4fe1\u606f\u4e00\u4e71&#xff0c;\u6a21\u578b\u5c31\u6f0f\u91cd\u70b9\u3001\u5fd8\u7ea6\u675f&#xff0c;\u751a\u81f3\u81ea\u6211\u6c61\u67d3\u2014\u2014\u81ea\u5df1\u4e0a\u4e00\u8f6e\u8bf4\u7684\u9519\u8bdd&#xff0c;\u4e0b\u4e00\u8f6e\u5f53\u6210\u771f\u7406\u7ee7\u7eed\u5f80\u4e0b\u7f16\u3002<\/p>\n<h4>4.2 \u7b2c\u4e8c\u5c42&#xff1a;\u5de5\u5177\u7cfb\u7edf<\/h4>\n<p>\u6ca1\u5de5\u5177&#xff0c;\u5927\u6a21\u578b\u7684\u672c\u8d28\u5c31\u662f\u4e2a\u6587\u672c\u9884\u6d4b\u5668&#xff0c;\u78b0\u4e0d\u5230\u771f\u5b9e\u4e16\u754c\u3002\u5c31\u50cf\u4e00\u4e2a\u4eba\u8111\u5b50\u518d\u597d\u4f7f&#xff0c;\u624b\u811a\u88ab\u7ed1\u7740&#xff0c;\u4e5f\u53ea\u80fd\u539f\u5730\u5634\u70ae\u3002<\/p>\n<p>\u4f46Harness\u4e0d\u662f\u7b80\u5355\u6302\u5de5\u5177&#xff0c;\u5b83\u8981\u56de\u7b54\u4e09\u4e2a\u95ee\u9898&#xff1a;<\/p>\n<p>\u7ed9\u54ea\u4e9b\u5de5\u5177&#xff1f;\u592a\u5c11\u4e0d\u591f\u7528\u3001\u592a\u591a\u4f1a\u4e71\u7528\u3002\u4f60\u7ed9\u4e00\u4e2a\u5b9e\u4e60\u751f\u4e8c\u5341\u628a\u94a5\u5319&#xff0c;\u4ed6\u5927\u6982\u7387\u4f1a\u62ff\u9519&#xff1b;\u4f60\u53ea\u7ed9\u4ed6\u4e00\u628a&#xff0c;\u4ed6\u53cd\u800c\u77e5\u9053\u8be5\u5f00\u54ea\u6247\u95e8\u3002<\/p>\n<p>\u4ec0\u4e48\u65f6\u5019\u8c03&#xff1f;\u4e0d\u8be5\u67e5\u522b\u4e71\u67e5\u3001\u8be5\u67e5\u522b\u786c\u7b54\u3002\u6709\u4e9b\u6a21\u578b\u7279\u522b\u81ea\u4fe1&#xff0c;\u4e0d\u77e5\u9053\u7684\u4e1c\u897f\u4e5f\u6562\u7f16&#xff0c;\u7f16\u5f97\u6bd4\u771f\u7684\u8fd8\u50cf\u771f\u7684\u3002\u8fd9\u65f6\u5019\u4f60\u5f97\u5728\u7cfb\u7edf\u5c42\u9762\u62e6\u4f4f\u5b83&#xff1a;\u4e0d\u77e5\u9053\u5c31\u53bb\u67e5&#xff0c;\u522b\u778e\u626f\u3002<\/p>\n<p>\u5de5\u5177\u7ed3\u679c\u600e\u4e48\u5582\u56de&#xff1f;\u51e0\u5341\u6761\u641c\u7d22\u7ed3\u679c\u4e0d\u80fd\u539f\u5c01\u585e\u56de\u53bb&#xff0c;\u8981\u63d0\u70bc\u7b5b\u9009\u4fdd\u76f8\u5173\u6027\u3002\u4e0d\u7136\u6a21\u578b\u770b\u7740\u770b\u7740\u5c31\u8d70\u795e\u4e86\u2014\u2014\u8ddf\u4f60\u5237\u77ed\u89c6\u9891\u4e00\u6837&#xff0c;\u672c\u6765\u60f3\u67e5\u4e2a\u8d44\u6599&#xff0c;\u7ed3\u679c\u770b\u4e86\u534a\u5c0f\u65f6\u732b\u3002<\/p>\n<h4>4.3 \u7b2c\u4e09\u5c42&#xff1a;\u6267\u884c\u7f16\u6392<\/h4>\n<p>\u89e3\u51b3&#034;\u4e0b\u4e00\u6b65\u505a\u4ec0\u4e48&#034;\u3002<\/p>\n<p>\u5f88\u591aAgent\u4e0d\u662f\u67d0\u4e00\u6b65\u4e0d\u4f1a&#xff0c;\u800c\u662f\u4e0d\u4f1a\u628a\u6b65\u9aa4\u4e32\u8d77\u6765\u2014\u2014\u4f1a\u641c\u3001\u4f1a\u603b\u7ed3\u3001\u4f1a\u5199\u4ee3\u7801&#xff0c;\u7ed3\u679c\u60f3\u5230\u54ea\u505a\u5230\u54ea&#xff0c;\u4ea4\u51fa\u4e00\u5806\u534a\u6210\u54c1\u3002\u5c31\u50cf\u4e00\u4e2a\u53a8\u5e08\u4f1a\u5207\u83dc\u4f1a\u7092\u83dc\u4f1a\u6446\u76d8&#xff0c;\u4f46\u4e0d\u77e5\u9053\u5148\u505a\u54ea\u4e2a\u540e\u505a\u54ea\u4e2a&#xff0c;\u7ed3\u679c\u51c9\u83dc\u8fd8\u6ca1\u5207&#xff0c;\u70ed\u83dc\u5df2\u7ecf\u51c9\u4e86\u3002<\/p>\n<p>\u4e00\u6761\u5b8c\u6574\u8f68\u9053\u8be5\u662f&#xff1a;\u7406\u89e3\u76ee\u6807 \u2192 \u5224\u65ad\u4fe1\u606f\u591f\u4e0d\u591f \u2192 \u57fa\u4e8e\u7ed3\u679c\u5206\u6790 \u2192 \u751f\u6210\u8f93\u51fa \u2192 \u68c0\u67e5\u4e0d\u8fbe\u6807\u5c31\u4fee\u6b63\u91cd\u8bd5\u3002<\/p>\n<p>\u533a\u522b\u4e8e\u4eba\u7684\u662f&#xff1a;\u4eba\u9760\u7ecf\u9a8c&#xff0c;Agent\u9760\u8fd9\u5957\u73af\u5883\u3001\u8bb0\u5fc6\u548c\u72b6\u6001\u3002<\/p>\n<h4>4.4 \u7b2c\u56db\u5c42&#xff1a;\u72b6\u6001\u7ba1\u7406<\/h4>\n<p>\u6ca1\u72b6\u6001\u7684Agent\u6bcf\u8f6e\u90fd\u50cf\u5931\u5fc6\u3002<\/p>\n<p>\u4f60\u8ddf\u5b83\u8bf4&#034;\u5e2e\u6211\u5199\u4e2aPython\u811a\u672c&#034;&#xff0c;\u5b83\u5199\u5b8c\u4e86\u3002\u4e0b\u4e00\u8f6e\u4f60\u8bf4&#034;\u521a\u624d\u90a3\u4e2a\u811a\u672c\u52a0\u4e2a\u65e5\u5fd7&#034;&#xff0c;\u5b83\u95ee\u4f60&#034;\u4ec0\u4e48\u811a\u672c&#xff1f;&#034;\u2014\u2014\u6bd4\u91d1\u9c7c\u8bb0\u6027\u8fd8\u5dee\u3002<\/p>\n<p>\u81f3\u5c11\u8981\u5206\u6e05\u4e09\u7c7b\u4e1c\u897f&#xff1a;\u5f53\u524d\u4efb\u52a1\u72b6\u6001\u3001\u4f1a\u8bdd\u4e2d\u95f4\u7ed3\u679c\u3001\u957f\u671f\u8bb0\u5fc6\u4e0e\u7528\u6237\u504f\u597d\u3002\u6df7\u5728\u4e00\u8d77\u7cfb\u7edf\u5fc5\u7136\u8d8a\u6765\u8d8a\u4e71&#xff0c;\u5c31\u50cf\u4f60\u628a\u889c\u5b50\u3001\u5185\u88e4\u3001\u886c\u886b\u5168\u585e\u4e00\u4e2a\u62bd\u5c49\u91cc&#xff0c;\u65e9\u4e0a\u627e\u8863\u670d\u80fd\u627e\u5230\u6000\u7591\u4eba\u751f\u3002<\/p>\n<h4>4.5 \u7b2c\u4e94\u5c42&#xff1a;\u8bc4\u4f30\u4e0e\u89c2\u6d4b<\/h4>\n<p>\u6700\u88ab\u8f7b\u89c6\u7684\u4e00\u5c42\u3002<\/p>\n<p>\u5f88\u591a\u7cfb\u7edf\u4e0d\u662f\u751f\u6210\u4e0d\u51fa\u6765&#xff0c;\u662f\u751f\u6210\u5b8c\u4e86\u4e0d\u77e5\u9053\u81ea\u5df1\u505a\u5f97\u597d\u4e0d\u597d\u3002\u6ca1\u6709\u72ec\u7acb\u8bc4\u4f30&#xff0c;Agent\u5c31\u957f\u671f\u505c\u5728&#034;\u81ea\u6211\u611f\u89c9\u826f\u597d&#034;\u3002<\/p>\n<p>\u8fd9\u5c31\u50cf\u5b66\u751f\u8003\u5b8c\u8bd5\u81ea\u5df1\u7ed9\u81ea\u5df1\u6253\u5206&#xff0c;\u90a3\u5fc5\u987b\u6ee1\u5206\u554a&#xff0c;\u987a\u4fbf\u8fd8\u5f97\u52a0\u4e2a\u5377\u9762\u5206\u3002<\/p>\n<p>\u8fd9\u5c42\u5305\u62ec\u8f93\u51fa\u9a8c\u6536\u3001\u73af\u5883\u9a8c\u8bc1\u3001\u81ea\u52a8\u6d4b\u8bd5\u65e5\u5fd7\u6307\u6807\u3001\u9519\u8bef\u5f52\u56e0\u3002\u4f1a\u505a&#xff0c;\u8fd8\u8981\u77e5\u9053\u81ea\u5df1\u6709\u6ca1\u6709\u771f\u505a\u5bf9\u3002<\/p>\n<h4>4.6 \u7b2c\u516d\u5c42&#xff1a;\u7ea6\u675f\u3001\u6821\u9a8c\u4e0e\u5931\u8d25\u6062\u590d<\/h4>\n<p>\u8fd9\u5c42\u624d\u771f\u6b63\u51b3\u5b9a\u80fd\u4e0d\u80fd\u4e0a\u7ebf\u3002<\/p>\n<p>\u771f\u5b9e\u73af\u5883\u91cc\u5931\u8d25\u4e0d\u662f\u4f8b\u5916\u662f\u5e38\u6001\u2014\u2014\u641c\u7d22\u4e0d\u51c6\u3001API\u8d85\u65f6\u3001\u6587\u6863\u6df7\u4e71\u3001\u6a21\u578b\u8bef\u89e3\u4efb\u52a1\u3002\u6ca1\u6709\u6062\u590d\u673a\u5236&#xff0c;\u6bcf\u6b21\u51fa\u9519\u53ea\u80fd\u4ece\u5934\u518d\u6765&#xff0c;\u7528\u6237\u7b49\u5f97\u82b1\u513f\u90fd\u8c22\u4e86\u3002<\/p>\n<p>\u8fd9\u5c42\u7ba1\u4e09\u4ef6\u4e8b&#xff1a;<\/p>\n<p>\u7ea6\u675f&#xff1a;\u80fd\u505a\u4ec0\u4e48\u4e0d\u80fd\u505a\u4ec0\u4e48\u3002\u522b\u8ba9\u6a21\u578b\u5220\u6570\u636e\u5e93\u3001\u522b\u8ba9\u5b83\u53d1\u90ae\u4ef6\u7ed9\u5168\u516c\u53f8\u3001\u522b\u8ba9\u5b83\u5728\u751f\u4ea7\u73af\u5883\u8dd1rm -rf\u3002<\/p>\n<p>\u6821\u9a8c&#xff1a;\u8f93\u51fa\u524d\u540e\u600e\u4e48\u68c0\u67e5\u3002\u751f\u6210\u7684\u4ee3\u7801\u80fd\u4e0d\u80fd\u8dd1&#xff1f;\u8fd4\u56de\u7684\u683c\u5f0f\u5bf9\u4e0d\u5bf9&#xff1f;\u5f15\u7528\u7684\u94fe\u63a5\u5b58\u4e0d\u5b58\u5728&#xff1f;<\/p>\n<p>\u6062\u590d&#xff1a;\u5931\u8d25\u540e\u91cd\u8bd5\u3001\u5207\u56de\u3001\u56de\u6eda\u5230\u7a33\u5b9a\u72b6\u6001\u3002\u8fd9\u624d\u662f\u771f\u6b63\u7684\u5de5\u7a0b\u7d20\u517b\u2014\u2014\u4e0d\u662f\u4e0d\u51fa\u9519&#xff0c;\u800c\u662f\u51fa\u4e86\u9519\u80fd\u81ea\u5df1\u722c\u8d77\u6765\u3002<\/p>\n<p>\u628a\u8fd9\u516d\u5c42\u843d\u5230\u4ee3\u7801\u91cc&#xff0c;\u5927\u6982\u957f\u8fd9\u6837&#xff08;\u6700\u5c0f\u9aa8\u67b6&#xff0c;\u53ea\u4e3a\u793a\u610f\u516d\u5c42\u5728\u4e3b\u5faa\u73af\u91cc\u7684\u6295\u5f71&#xff09;&#xff1a;<\/p>\n<p><span class=\"token keyword\">def<\/span> <span class=\"token function\">run_task<\/span><span class=\"token punctuation\">(<\/span>goal<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    state <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;goal&#034;<\/span><span class=\"token punctuation\">:<\/span> goal<span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;steps&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;verified&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token boolean\">False<\/span><span class=\"token punctuation\">}<\/span><\/p>\n<p>    <span class=\"token keyword\">while<\/span> <span class=\"token keyword\">not<\/span> state<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;verified&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        plan <span class=\"token operator\">&#061;<\/span> planner<span class=\"token punctuation\">(<\/span>state<span class=\"token punctuation\">)<\/span>              <span class=\"token comment\"># \u7f16\u6392&#xff1a;\u4e0b\u4e00\u6b65\u505a\u4ec0\u4e48<\/span><br \/>\n        result <span class=\"token operator\">&#061;<\/span> executor<span class=\"token punctuation\">(<\/span>plan<span class=\"token punctuation\">,<\/span> tools<span class=\"token punctuation\">)<\/span>     <span class=\"token comment\"># \u5de5\u5177\u7cfb\u7edf &#043; \u72b6\u6001\u7ba1\u7406<\/span><\/p>\n<p>        <span class=\"token keyword\">if<\/span> <span class=\"token keyword\">not<\/span> validator<span class=\"token punctuation\">(<\/span>result<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">:<\/span>          <span class=\"token comment\"># \u8bc4\u4f30\u89c2\u6d4b &#043; \u6821\u9a8c<\/span><br \/>\n            state <span class=\"token operator\">&#061;<\/span> recover<span class=\"token punctuation\">(<\/span>state<span class=\"token punctuation\">,<\/span> result<span class=\"token punctuation\">)<\/span> <span class=\"token comment\"># \u5931\u8d25\u6062\u590d<\/span><br \/>\n            <span class=\"token keyword\">continue<\/span><\/p>\n<p>        state<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;steps&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>append<span class=\"token punctuation\">(<\/span>result<span class=\"token punctuation\">)<\/span><br \/>\n        state<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;verified&#034;<\/span><span class=\"token punctuation\">]<\/span> <span class=\"token operator\">&#061;<\/span> evaluator<span class=\"token punctuation\">(<\/span>state<span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># \u72ec\u7acb\u9a8c\u6536&#xff08;\u751f\u4ea7\/\u9a8c\u6536\u5206\u79bb&#xff09;<\/span><\/p>\n<p>    <span class=\"token keyword\">return<\/span> state<\/p>\n<p>\u770b\u5230\u6ca1&#xff1f;\u516d\u5c42\u4e0d\u662f\u516d\u5f20\u5b64\u7acb\u7684\u56fe&#xff0c;\u800c\u662f\u540c\u4e00\u4e2a\u4e3b\u5faa\u73af\u91cc\u516d\u4e2a\u804c\u8d23\u3002\u7f3a\u54ea\u4e00\u5c42&#xff0c;\u5faa\u73af\u5c31\u5728\u54ea\u91cc\u6f0f\u3002<\/p>\n<p>\u5c31\u50cf\u6728\u6876\u6548\u5e94\u2014\u2014\u4f60\u5176\u4ed6\u4e94\u5757\u677f\u518d\u9ad8&#xff0c;\u7f3a\u4e86\u4e00\u5757&#xff0c;\u6c34\u7167\u6837\u6d41\u5149\u3002<\/p>\n<h3>\u4e94\u3001\u4e00\u7ebf\u516c\u53f8\u5230\u5e95\u600e\u4e48\u73a9\u7684<\/h3>\n<p>\u6982\u5ff5\u8bb2\u5b8c&#xff0c;\u770b\u771f\u6b63\u6709\u53c2\u8003\u4ef7\u503c\u7684\u90e8\u5206\u2014\u2014\u8c01\u628aHarness\u505a\u8fdb\u4e86\u4ea7\u54c1\u3002<\/p>\n<p>\u6218\u7ee9\u5f88\u76f4\u767d&#xff1a;<\/p>\n<p>LangChain\u5e95\u5c42\u6a21\u578b\u4e0d\u53d8&#xff0c;\u53ea\u6539Harness&#xff0c;\u628a\u81ea\u5bb6Agent\u4ece\u699c\u535530\u5f00\u5916\u6740\u8fdb\u524d5\u3002<\/p>\n<p>OpenAI\u7528\u51e0\u540d\u4eba\u7c7b\u5de5\u7a0b\u5e08\u52a0Agent\u642d\u51fa\u767e\u4e07\u884c\u4ee3\u7801\u7684\u751f\u4ea7\u7ea7\u5e94\u7528&#xff0c;100%\u4ee3\u7801Agent\u5199&#xff0c;\u8017\u65f6\u7eaf\u4eba\u5de5\u7684\u5341\u5206\u4e4b\u4e00\u3002<\/p>\n<p>Anthropic\u505a\u5230\u4e00\u53e5\u81ea\u7136\u8bed\u8a00\u9700\u6c42\u3001\u65e0\u4eba\u5e72\u9884\u8fde\u8dd1\u6570\u5c0f\u65f6&#xff0c;\u4ea7\u51fa\u5b8c\u6574\u6e38\u620f\u548c\u6570\u5b57\u97f3\u9891\u5de5\u4f5c\u7ad9\u3002<\/p>\n<p>\u6311\u4e24\u4e2a\u6700\u6709\u8fc1\u79fb\u4ef7\u503c\u7684\u5b9e\u8df5\u8bb2\u3002<\/p>\n<h4>5.1 Anthropic&#xff1a;\u5bf9\u4ed8&#034;\u4e0a\u4e0b\u6587\u7126\u8651&#034;<\/h4>\n<p>\u957f\u7a0b\u81ea\u4e3b\u4efb\u52a1\u91cc&#xff0c;\u6a21\u578b\u4f1a\u5f97\u4e00\u79cd\u75c5\u2014\u2014\u4e0a\u4e0b\u6587\u8d8a\u585e\u8d8a\u6ee1&#xff0c;\u6a21\u578b\u5f00\u59cb\u4e22\u7ec6\u8282\u3001\u4e22\u91cd\u70b9&#xff0c;\u751a\u81f3\u51fa\u73b0\u4e00\u79cd\u5fae\u5999\u73b0\u8c61&#xff1a;\u5b83\u597d\u50cf\u77e5\u9053\u81ea\u5df1\u5feb\u88c5\u4e0d\u4e0b\u4e86&#xff0c;\u4e8e\u662f\u6025\u7740\u8349\u8349\u6536\u5c3e\u3002<\/p>\n<p>\u50cf\u4e0d\u50cf\u4f60\u624b\u673a\u5185\u5b58\u5feb\u6ee1\u4e86\u7684\u65f6\u5019&#xff0c;\u5f00\u59cb\u75af\u72c2\u5220\u7167\u7247\u3001\u6e05\u7f13\u5b58&#xff0c;\u8fde\u91cd\u8981\u7684\u804a\u5929\u8bb0\u5f55\u90fd\u6562\u5220&#xff1f;\u6a21\u578b\u4e5f\u4e00\u6837&#xff0c;\u5b83\u4e00\u7126\u8651\u5c31\u60f3\u8d76\u7d27\u7ed3\u675f&#xff0c;\u7ba1\u4f60\u4efb\u52a1\u505a\u6ca1\u505a\u5b8c\u3002<\/p>\n<p>\u5e38\u89c4\u89e3\u6cd5\u662fContext Compression\u2014\u2014\u538b\u7f29\u5386\u53f2\u518d\u7ee7\u7eed\u3002\u4f46Anthropic\u53d1\u73b0\u5bf9\u67d0\u4e9b\u6a21\u578b\u8fd9\u8fd8\u4e0d\u591f\u2014\u2014\u538b\u7f29\u53ea\u662f\u53d8\u77ed&#xff0c;\u90a3\u79cd&#034;\u5feb\u6491\u7206&#034;\u7684\u8d1f\u62c5\u611f\u6ca1\u771f\u6b63\u6d88\u5931\u3002<\/p>\n<p>\u5c31\u50cf\u4f60\u628a\u884c\u674e\u7bb1\u91cc\u7684\u8863\u670d\u5377\u8d77\u6765\u585e&#xff0c;\u786e\u5b9e\u7701\u4e86\u70b9\u7a7a\u95f4&#xff0c;\u4f46\u7bb1\u5b50\u8fd8\u662f\u90a3\u4e2a\u7bb1\u5b50&#xff0c;\u8be5\u5173\u4e0d\u4e0a\u8fd8\u662f\u5173\u4e0d\u4e0a\u3002<\/p>\n<p>\u4ed6\u4eec\u505a\u4e86\u66f4\u6fc0\u8fdb\u7684\u4e00\u62db&#xff1a;Context Reset\u2014\u2014\u4e0d\u5728\u8fd9\u6761\u4e0a\u4e0b\u6587\u91cc\u786c\u538b&#xff0c;\u800c\u662f\u5f00\u4e00\u4e2a\u5e72\u51c0\u7684\u65b0Agent&#xff0c;\u628a\u5de5\u4f5c\u4ea4\u63a5\u8fc7\u53bb\u3002<\/p>\n<p>\u6362\u4e2a\u58f3\u8bb2&#xff1a;\u50cf\u957f\u8dd1\u63a5\u529b\u8d5b&#xff0c;\u4e00\u4e2a\u9009\u624b\u8dd1\u7d2f\u4e86\u4e0d\u786c\u6491\u3001\u4e0d\u9760\u559d\u5496\u5561\u6b7b\u625b&#xff0c;\u800c\u662f\u628a\u68d2\u4ea4\u7ed9\u4e00\u4e2a\u72b6\u6001\u6ee1\u683c\u7684\u65b0\u9009\u624b\u7ee7\u7eed\u8dd1\u3002<\/p>\n<p>\u4e5f\u50cf\u5de5\u7a0b\u91cc\u9047\u5230\u5185\u5b58\u6cc4\u6f0f\u2014\u2014\u4e0e\u5176\u4e00\u904d\u904d\u6e05\u7f13\u5b58&#xff0c;\u4e0d\u5982\u76f4\u63a5\u91cd\u542f\u8fdb\u7a0b\u518d\u6062\u590d\u72b6\u6001\u3002<\/p>\n<p>\u672c\u8d28\u90fd\u662f&#xff1a;\u627f\u8ba4\u5c40\u90e8\u72b6\u6001\u4f1a\u8150\u5316&#xff0c;\u7528\u4ea4\u63a5\u4ee3\u66ff\u786c\u6491\u3002\u8fd9\u662f\u975e\u5e38\u5178\u578b\u7684Harness\u8bbe\u8ba1\u2014\u2014\u5b83\u7ba1\u7684\u4e0d\u662f\u6a21\u578b\u80fd\u529b&#xff0c;\u662f\u8fd0\u884c\u8282\u594f\u3002<\/p>\n<h4>5.2 Anthropic&#xff1a;\u751f\u4ea7\u4e0e\u9a8c\u6536\u5fc5\u987b\u5206\u79bb<\/h4>\n<p>\u6a21\u578b\u81ea\u5df1\u5e72\u6d3b\u518d\u7ed9\u81ea\u5df1\u6253\u5206&#xff0c;\u51e0\u4e4e\u5fc5\u7136\u504f\u4e50\u89c2\u3002\u5c24\u5176\u5728\u4f53\u9a8c\u3001\u4ea7\u54c1\u5b8c\u6574\u5ea6\u8fd9\u7c7b\u6ca1\u6807\u51c6\u7b54\u6848\u7684\u95ee\u9898\u4e0a&#xff0c;\u504f\u5dee\u66f4\u660e\u663e\u3002<\/p>\n<p>\u8fd9\u5c31\u50cf\u8ba9\u5b66\u751f\u81ea\u5df1\u51fa\u9898\u81ea\u5df1\u6279\u5377&#xff0c;\u90a3\u5fc5\u987b\u5168\u73ed\u6ee1\u5206\u554a&#xff0c;\u987a\u4fbf\u8fd8\u5f97\u8bc4\u4e2a\u4e09\u597d\u5b66\u751f\u3002<\/p>\n<p>Anthropic\u7684\u89e3\u6cd5\u662f\u4e00\u6761\u94c1\u5f8b&#xff1a;\u628a\u5e72\u6d3b\u7684\u4eba\u548c\u9a8c\u6536\u7684\u4eba\u62c6\u5f00\u3002<\/p>\n<p>Planner&#xff1a;\u628a\u6a21\u7cca\u9700\u6c42\u6269\u6210\u5b8c\u6574\u89c4\u683c\u3002<\/p>\n<p>Generator&#xff1a;\u9010\u6b65\u5b9e\u73b0\u3002<\/p>\n<p>Evaluator&#xff1a;\u50cfQA\u4e00\u6837\u771f\u5b9e\u6d4b\u8bd5\u3002<\/p>\n<p>\u5173\u952e\u5728Evaluator\u4e0d\u53ea\u770b\u4ee3\u7801&#xff0c;\u5b83\u771f\u5b9e\u64cd\u4f5c\u9875\u9762\u3001\u770b\u4ea4\u4e92\u3001\u67e5\u5b9e\u9645\u7ed3\u679c\u3002\u4e0d\u662f\u62bd\u8c61\u5ba1\u67e5&#xff0c;\u662f\u5177\u4f53\u73af\u5883\u9a8c\u8bc1\u3002<\/p>\n<p>\u8fd9\u80cc\u540e\u662f\u4e2a\u8001\u8fa3\u7684\u5de5\u7a0b\u539f\u5219&#xff0c;\u7528\u8003\u8bd5\u7c7b\u6bd4\u6700\u6e05\u695a&#xff1a;\u8ba9\u5b66\u751f\u51fa\u9898\u53c8\u81ea\u5df1\u6279\u5377&#xff0c;\u5fc5\u5c06\u504f\u4e50\u89c2&#xff1b;\u5fc5\u987b\u6362\u8001\u5e08\u72ec\u7acb\u9605\u5377\u3002<\/p>\n<p>\u53ea\u8981\u8bc4\u4f30\u8005\u8db3\u591f\u72ec\u7acb&#xff0c;\u7cfb\u7edf\u5c31\u80fd\u5f62\u6210&#034;\u751f\u6210\u2192\u68c0\u67e5\u2192\u4fee\u590d\u2192\u518d\u68c0\u67e5&#034;\u7684\u6709\u6548\u5faa\u73af\u3002<\/p>\n<h4>5.3 OpenAI&#xff1a;\u5de5\u7a0b\u5e08\u4e0d\u5199\u4ee3\u7801&#xff0c;\u53ea\u8bbe\u8ba1\u73af\u5883<\/h4>\n<p>OpenAI\u7684\u5b9e\u8df5\u7b49\u4e8e\u91cd\u5b9a\u4e49\u4e86Agent\u65f6\u4ee3\u5de5\u7a0b\u5e08\u7684\u6d3b&#xff1a;\u4eba\u7c7b\u4e00\u884c\u4ee3\u7801\u4e0d\u5199&#xff0c;\u53ea\u8d1f\u8d23\u8bbe\u8ba1\u73af\u5883\u3002<\/p>\n<p>\u4e09\u4ef6\u4e8b\u2014\u2014<\/p>\n<p>\u628a\u4ea7\u54c1\u76ee\u6807\u62c6\u6210Agent\u80fd\u61c2\u7684\u5c0f\u4efb\u52a1\u3002<\/p>\n<p>Agent\u5931\u8d25\u65f6\u4e0d\u8ba9\u5b83&#034;\u66f4\u52aa\u529b\u70b9&#034;&#xff0c;\u800c\u662f\u95ee\u73af\u5883\u7f3a\u4e86\u4ec0\u4e48\u80fd\u529b\u3002<\/p>\n<p>\u5efa\u7acb\u53cd\u9988\u94fe\u8def\u8ba9Agent\u770b\u89c1\u81ea\u5df1\u7684\u5de5\u4f5c\u7ed3\u679c\u3002<\/p>\n<p>\u6700\u503c\u5f97\u8bb0\u7684\u4e00\u53e5\u8bdd&#xff1a;Agent\u51fa\u95ee\u9898\u65f6&#xff0c;\u4fee\u590d\u65b9\u6848\u51e0\u4e4e\u4ece\u6765\u4e0d\u662f&#034;\u66f4\u52aa\u529b\u4e00\u70b9&#034;&#xff0c;\u800c\u662f\u786e\u5b9a\u5b83\u7f3a\u4e86\u4ec0\u4e48\u7ed3\u6784\u6027\u80fd\u529b\u3002<\/p>\n<p>\u8fd9\u662fHarness\u601d\u7ef4\u7684\u5185\u6838\u3002\u4f60\u5bb6\u5b69\u5b50\u8003\u8bd5\u4e0d\u53ca\u683c&#xff0c;\u4f60\u9a82\u4ed6&#034;\u4f60\u600e\u4e48\u4e0d\u52aa\u529b&#034;\u6ca1\u7528&#xff0c;\u4f60\u5f97\u770b\u770b\u662f\u4ed6\u8bfe\u672c\u6ca1\u770b\u61c2\u3001\u8fd8\u662f\u7b14\u4e0d\u597d\u4f7f\u3001\u8fd8\u662f\u8003\u573a\u592a\u5435\u3002<\/p>\n<p>\u4ed6\u4eec\u8fd8\u8e29\u8fc7\u4e00\u4e2a\u4eba\u4eba\u90fd\u4f1a\u8e29\u7684\u5751&#xff1a;\u65e9\u671f\u5199\u4e86\u4e00\u4e2a\u5de8\u5927\u7684Agent.md&#xff0c;\u628a\u6240\u6709\u89c4\u8303\u5168\u585e\u8fdb\u53bb&#xff0c;\u7ed3\u679cAgent\u66f4\u7cca\u6d82\u4e86\u3002<\/p>\n<p>\u9053\u7406\u5f88\u7b80\u5355\u2014\u2014\u4e0a\u4e0b\u6587\u7a97\u53e3\u7a00\u7f3a&#xff0c;\u585e\u6ee1\u7b49\u4e8e\u4ec0\u4e48\u90fd\u6ca1\u8bf4\u3002\u5c31\u50cf\u4f60\u7ed9\u65b0\u5458\u5de5\u4e00\u672c500\u9875\u7684\u5458\u5de5\u624b\u518c&#xff0c;\u8ba9\u4ed6\u4e00\u5929\u770b\u5b8c&#xff0c;\u4ed6\u770b\u5b8c\u53ea\u8bb0\u4f4f\u4e86&#034;\u5468\u4e94\u4e0b\u5348\u53ef\u4ee5\u63d0\u524d\u4e0b\u73ed&#034;\u3002<\/p>\n<p>\u540e\u6765\u6539\u6210\u76ee\u5f55\u9875\u52a0\u5b50\u6587\u6863&#xff0c;\u9700\u8981\u65f6\u518d\u94bb\u8fdb\u53bb\u3002\u548cSkills\u7684\u6e10\u8fdb\u5f0f\u62ab\u9732\u540c\u4e00\u4e2a\u6839&#xff1a;\u4e0d\u4e00\u6b21\u6027\u5168\u7ed9&#xff0c;\u6309\u9700\u7d22\u53d6\u3002<\/p>\n<p>\u66f4\u72e0\u7684\u662f\u81ea\u52a8\u6cbb\u7406&#xff1a;Agent\u63d0\u4ea4\u592a\u5feb&#xff0c;\u4eba\u7c7bCode Review\u6839\u672c\u76ef\u4e0d\u8fc7\u6765&#xff0c;\u4e8e\u662f\u628a\u8d44\u6df1\u5de5\u7a0b\u5e08\u7684\u7ecf\u9a8c\u76f4\u63a5\u5199\u6210\u7cfb\u7edf\u89c4\u5219\u2014\u2014\u6a21\u5757\u600e\u4e48\u5206\u5c42\u3001\u54ea\u5c42\u4e0d\u80fd\u4f9d\u8d56\u54ea\u5c42\u3001\u4ec0\u4e48\u65f6\u5019\u5fc5\u987b\u62e6\u622a\u3002<\/p>\n<p>\u800c\u4e14\u89c4\u5219\u4e0d\u53ea\u62a5\u9519&#xff0c;\u8fd8\u628a&#034;\u8be5\u600e\u4e48\u4fee&#034;\u4e00\u8d77\u8fd4\u56de\u7ed9Agent&#xff0c;\u8fdb\u5165\u4e0b\u4e00\u8f6e\u4e0a\u4e0b\u6587\u3002<\/p>\n<p>\u8fd9\u5df2\u7ecf\u4e0d\u662f\u4ee3\u7801\u89c4\u8303\u4e86&#xff0c;\u662f\u4e00\u5957\u53ef\u6301\u7eed\u8fd0\u8f6c\u7684\u81ea\u52a8\u6cbb\u7406\u7cfb\u7edf\u3002\u76f8\u5f53\u4e8e\u628a\u4e00\u4e2a\u5341\u5e74\u7ecf\u9a8c\u7684\u67b6\u6784\u5e08&#xff0c;\u53d8\u6210\u4e8624\u5c0f\u65f6\u4e0d\u7761\u89c9\u7684\u81ea\u52a8\u5b88\u95e8\u5458\u3002<\/p>\n<h3>\u516d\u3001\u6536\u53e3&#xff1a;\u4e0a\u9650\u5f52\u6a21\u578b&#xff0c;\u4e0b\u9650\u5f52Harness<\/h3>\n<p>\u628a\u4e09\u9636\u6bb5\u6536\u6210\u4e00\u53e5&#xff1a;<\/p>\n<p>Prompt Engineering&#xff1a;\u628a\u4efb\u52a1\u8bb2\u6e05\u695a\u3002<\/p>\n<p>Context Engineering&#xff1a;\u628a\u4fe1\u606f\u5582\u5bf9\u3002<\/p>\n<p>Harness Engineering&#xff1a;\u8ba9\u6a21\u578b\u5728\u771f\u5b9e\u6267\u884c\u91cc\u6301\u7eed\u505a\u5bf9\u3002<\/p>\n<p>Harness\u4e0d\u53d6\u4ee3\u524d\u4e24\u8005&#xff0c;\u5b83\u5728\u66f4\u5927\u7684\u7cfb\u7edf\u8fb9\u754c\u4e0a\u628a\u4e24\u8005\u5305\u4e86\u8fdb\u53bb\u3002<\/p>\n<p>\u4efb\u52a1\u8fd8\u662f\u5355\u8f6e\u751f\u6210\u65f6Prompt\u91cd\u8981&#xff1b;\u4f9d\u8d56\u5916\u90e8\u77e5\u8bc6\u65f6Context\u5173\u952e&#xff1b;\u4e00\u65e6\u8fdb\u5165\u957f\u94fe\u8def\u3001\u53ef\u6267\u884c\u3001\u4f4e\u5bb9\u9519\u7684\u771f\u5b9e\u573a\u666f\u2014\u2014Harness\u51e0\u4e4e\u4e0d\u53ef\u907f\u514d\u3002<\/p>\n<p>\u8fd9\u4e5f\u89e3\u91ca\u4e86\u5f00\u5934\u90a3\u4e2a\u6267\u5ff5\u4e3a\u4ec0\u4e48\u603b\u843d\u7a7a&#xff1a;\u540c\u6837\u7684\u6a21\u578b&#xff0c;\u5728\u4e0d\u540c\u4ea7\u54c1\u91cc\u8868\u73b0\u5929\u5dee\u5730\u522b&#xff0c;\u56e0\u4e3a\u771f\u6b63\u51b3\u5b9a\u4e0a\u9650\u7684\u53ef\u80fd\u662f\u6a21\u578b&#xff0c;\u4f46\u771f\u6b63\u51b3\u5b9a\u80fd\u4e0d\u80fd\u843d\u5730\u3001\u80fd\u4e0d\u80fd\u7a33\u5b9a\u4ea4\u4ed8\u7684&#xff0c;\u662fHarness\u3002<\/p>\n<p>AI\u843d\u5730\u7684\u6838\u5fc3\u6218\u573a&#xff0c;\u6b63\u5728\u4ece&#034;\u8ba9\u6a21\u578b\u770b\u8d77\u6765\u66f4\u806a\u660e&#034;&#xff0c;\u8f6c\u5411&#034;\u8ba9\u6a21\u578b\u5728\u771f\u5b9e\u4e16\u754c\u91cc\u7a33\u5b9a\u5de5\u4f5c&#034;\u3002<\/p>\n<p>\u8fd9\u8d9f\u8f66&#xff0c;\u505aAgent\u7684\u4eba\u8d81\u65e9\u60f3\u660e\u767d\u3002<\/p>\n<p>\u6a21\u578b\u51b3\u5b9aAgent\u80fd\u591a\u806a\u660e&#xff0c;Harness\u51b3\u5b9aAgent\u80fd\u4e0d\u80fd\u4e0a\u7ebf\u3002\u524d\u8005\u662f\u5929\u82b1\u677f&#xff0c;\u540e\u8005\u662f\u51c6\u5165\u8bc1\u3002<\/p>\n<p>P.S. \u63a8\u8350\u4e00\u4e2a\u5927\u795e\u7684\u6559\u7a0b\u7ed9\u60f3\u8981\u4e86\u89e3\u6216\u8005\u5b66\u4e60\u4eba\u5de5\u667a\u80fd\u77e5\u8bc6\u7684\u8bfb\u8005&#xff0c;\u8fd9\u4e2a\u6559\u7a0b\u91cc\u5185\u5bb9\u8bb2\u89e3\u901a\u4fd7\u6613\u61c2\u4e14\u98ce\u8da3\u5e7d\u9ed8&#xff0c;\u5bf9\u6211\u5e2e\u52a9\u5f88\u5927\u3002\u6211\u60f3\u4e0e\u5927\u5bb6\u5206\u4eab\u8fd9\u4e2a\u5b9d\u85cf\u6559\u7a0b&#xff0c;\u8bf7\u70b9\u51fb\u4e0b\u65b9\u94fe\u63a5\u67e5\u770b&#xff0c;\u4f20\u9001\u95e8https:\/\/blog.csdn.net\/qq_74013365<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u76ee\u5f55\u4e00\u3001\u5148\u8bb2\u4e2a\u79bb\u8c31\u7684\u4e8b\u4e8c\u3001Harness\u5230\u5e95\u662f\u4e2a\u5565\u4e09\u3001AI\u5de5\u7a0b\u8fd9\u4e24\u5e74\u8d70\u4e86\u4e09\u6b653.1 \u7b2c\u4e00\u7ea7&#xff1a;\u628a\u8bdd\u8bf4\u6e05\u695a3.2 \u7b2c\u4e8c\u7ea7&#xff1a;\u628a\u4fe1\u606f\u5582\u5bf93.3 \u7b2c\u4e09\u7ea7&#xff1a;\u628a\u6267\u884c\u9a7e\u9a6d\u4f4f\u56db\u3001\u6210\u719fHarness\u7684\u516d\u5c42\u67b6\u67844.1 \u7b2c\u4e00\u5c42&#xff1a;\u4fe1\u606f\u8fb9\u754c\u7ba1\u74064.2 \u7b2c\u4e8c\u5c42&#xff1a;\u5de5\u5177\u7cfb\u7edf4.3 \u7b2c\u4e09\u5c42&#xff1a;\u6267\u884c\u7f16\u63924.4 \u7b2c\u56db\u5c42&#xff1a;\u72b6\u6001\u7ba1\u74064.5 \u7b2c\u4e94\u5c42&#xff1a;\u8bc4\u4f30\u4e0e\u89c2\u6d4b4.6 \u7b2c\u516d\u5c42&#xff1a;\u7ea6\u675f\u3001\u6821\u9a8c\u4e0e\u5931\u8d25\u6062\u590d<\/p>\n","protected":false},"author":2,"featured_media":103558,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[50],"topic":[],"class_list":["post-103559","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>\u62c6\u89e3Agent\u7684Harness\u516d\u5c42\u67b6\u6784\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684\u5927\u6a21\u578b\u603b\u662f\u8dd1\u5d29 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/103559.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u62c6\u89e3Agent\u7684Harness\u516d\u5c42\u67b6\u6784\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684\u5927\u6a21\u578b\u603b\u662f\u8dd1\u5d29 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u76ee\u5f55\u4e00\u3001\u5148\u8bb2\u4e2a\u79bb\u8c31\u7684\u4e8b\u4e8c\u3001Harness\u5230\u5e95\u662f\u4e2a\u5565\u4e09\u3001AI\u5de5\u7a0b\u8fd9\u4e24\u5e74\u8d70\u4e86\u4e09\u6b653.1 \u7b2c\u4e00\u7ea7&#xff1a;\u628a\u8bdd\u8bf4\u6e05\u695a3.2 \u7b2c\u4e8c\u7ea7&#xff1a;\u628a\u4fe1\u606f\u5582\u5bf93.3 \u7b2c\u4e09\u7ea7&#xff1a;\u628a\u6267\u884c\u9a7e\u9a6d\u4f4f\u56db\u3001\u6210\u719fHarness\u7684\u516d\u5c42\u67b6\u67844.1 \u7b2c\u4e00\u5c42&#xff1a;\u4fe1\u606f\u8fb9\u754c\u7ba1\u74064.2 \u7b2c\u4e8c\u5c42&#xff1a;\u5de5\u5177\u7cfb\u7edf4.3 \u7b2c\u4e09\u5c42&#xff1a;\u6267\u884c\u7f16\u63924.4 \u7b2c\u56db\u5c42&#xff1a;\u72b6\u6001\u7ba1\u74064.5 \u7b2c\u4e94\u5c42&#xff1a;\u8bc4\u4f30\u4e0e\u89c2\u6d4b4.6 \u7b2c\u516d\u5c42&#xff1a;\u7ea6\u675f\u3001\u6821\u9a8c\u4e0e\u5931\u8d25\u6062\u590d\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/103559.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-10T15:57:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260910155659-6aa2d34b445ec.jpg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/103559.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/103559.html\",\"name\":\"\u62c6\u89e3Agent\u7684Harness\u516d\u5c42\u67b6\u6784\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684\u5927\u6a21\u578b\u603b\u662f\u8dd1\u5d29 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-10T15:57:01+00:00\",\"dateModified\":\"2026-09-10T15:57:01+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/103559.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/103559.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/103559.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u62c6\u89e3Agent\u7684Harness\u516d\u5c42\u67b6\u6784\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684\u5927\u6a21\u578b\u603b\u662f\u8dd1\u5d29\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"\u62c6\u89e3Agent\u7684Harness\u516d\u5c42\u67b6\u6784\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684\u5927\u6a21\u578b\u603b\u662f\u8dd1\u5d29 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/103559.html","og_locale":"zh_CN","og_type":"article","og_title":"\u62c6\u89e3Agent\u7684Harness\u516d\u5c42\u67b6\u6784\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684\u5927\u6a21\u578b\u603b\u662f\u8dd1\u5d29 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u76ee\u5f55\u4e00\u3001\u5148\u8bb2\u4e2a\u79bb\u8c31\u7684\u4e8b\u4e8c\u3001Harness\u5230\u5e95\u662f\u4e2a\u5565\u4e09\u3001AI\u5de5\u7a0b\u8fd9\u4e24\u5e74\u8d70\u4e86\u4e09\u6b653.1 \u7b2c\u4e00\u7ea7&#xff1a;\u628a\u8bdd\u8bf4\u6e05\u695a3.2 \u7b2c\u4e8c\u7ea7&#xff1a;\u628a\u4fe1\u606f\u5582\u5bf93.3 \u7b2c\u4e09\u7ea7&#xff1a;\u628a\u6267\u884c\u9a7e\u9a6d\u4f4f\u56db\u3001\u6210\u719fHarness\u7684\u516d\u5c42\u67b6\u67844.1 \u7b2c\u4e00\u5c42&#xff1a;\u4fe1\u606f\u8fb9\u754c\u7ba1\u74064.2 \u7b2c\u4e8c\u5c42&#xff1a;\u5de5\u5177\u7cfb\u7edf4.3 \u7b2c\u4e09\u5c42&#xff1a;\u6267\u884c\u7f16\u63924.4 \u7b2c\u56db\u5c42&#xff1a;\u72b6\u6001\u7ba1\u74064.5 \u7b2c\u4e94\u5c42&#xff1a;\u8bc4\u4f30\u4e0e\u89c2\u6d4b4.6 \u7b2c\u516d\u5c42&#xff1a;\u7ea6\u675f\u3001\u6821\u9a8c\u4e0e\u5931\u8d25\u6062\u590d","og_url":"https:\/\/www.wsisp.com\/helps\/103559.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-10T15:57:01+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260910155659-6aa2d34b445ec.jpg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/103559.html","url":"https:\/\/www.wsisp.com\/helps\/103559.html","name":"\u62c6\u89e3Agent\u7684Harness\u516d\u5c42\u67b6\u6784\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684\u5927\u6a21\u578b\u603b\u662f\u8dd1\u5d29 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-10T15:57:01+00:00","dateModified":"2026-09-10T15:57:01+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/103559.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/103559.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/103559.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u62c6\u89e3Agent\u7684Harness\u516d\u5c42\u67b6\u6784\uff1a\u4e3a\u4ec0\u4e48\u4f60\u7684\u5927\u6a21\u578b\u603b\u662f\u8dd1\u5d29"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/103559","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=103559"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/103559\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/103558"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=103559"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=103559"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=103559"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=103559"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}