{"id":112465,"date":"2026-10-03T19:40:58","date_gmt":"2026-10-03T11:40:58","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/112465.html"},"modified":"2026-10-03T19:40:58","modified_gmt":"2026-10-03T11:40:58","slug":"0%e5%9f%ba%e7%a1%80%e6%b7%b1%e5%85%a5%e7%90%86%e8%a7%a3deepseek-harness-%e6%9e%b6%e6%9e%84%e3%80%906%e3%80%91%e5%b7%a5%e5%85%b7%e6%89%a7%e8%a1%8c%e6%b5%81%e6%b0%b4%e7%ba%bf%ef%bc%9a%e6%8a%8a%e6%9d%83","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/112465.html","title":{"rendered":"0\u57fa\u7840\u6df1\u5165\u7406\u89e3DeepSeek Harness \u67b6\u6784\u30106\u3011\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf\uff1a\u628a\u6743\u529b\u5173\u8fdb\u6d41\u7a0b\u91cc"},"content":{"rendered":"<h3>\u7b2c 6 \u7ae0\u3000\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf&#xff1a;\u628a\u6743\u529b\u5173\u8fdb\u6d41\u7a0b\u91cc<\/h3>\n<p>\u672c\u7ae0\u56f4\u7ed5\u300c\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf\u300d\u5c55\u5f00&#xff0c;\u7cfb\u7edf\u62c6\u89e3\u4e00\u6b21\u5de5\u5177\u8c03\u7528\u4ece\u88ab\u6a21\u578b\u70b9\u540d\u5230\u7ed3\u679c\u56de\u586b\u6240\u7ecf\u8fc7\u7684\u6bcf\u4e00\u9053\u5173\u5361&#xff1a;\u5148\u4ee5\u6700\u5c0f\u5de5\u5177\u793a\u4f8b\u5efa\u7acb\u57fa\u51c6&#xff0c;\u518d\u7ed9\u51fa\u5b8c\u6574\u5b57\u6bb5\u8868\u4e0e\u4e09\u9053 waterfall \u7684\u9009\u62e9\u5224\u65ad\u8868&#xff1b;\u968f\u540e\u6df1\u5165\u5355\u8c03\u5b88\u536b\u3001\u51b3\u7b56\u7c7b\u578b\u3001\u53c2\u6570\u4e0e\u7ed3\u679c\u7684\u300c\u7269\u5316 &#043; \u51bb\u7ed3\u300d\u3001\u5e76\u53d1\u8c03\u5ea6\u3001\u6c99\u7bb1\u4e0e\u5ba1\u6279\u3001PTC mode\u3001\u540e\u53f0\u4efb\u52a1\u4e0e UI \u5361\u7247\u7b49\u5173\u952e\u673a\u5236&#xff0c;\u6700\u540e\u4ee5\u4e09\u53e5\u8bdd\u6536\u675f\u5168\u7ae0\u8981\u70b9\u3002<\/p>\n<p>\u6807\u7b7e&#xff1a;\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf \u5355\u8c03\u5b88\u536b waterfall PTC mode \u5e76\u53d1\u8c03\u5ea6 \u6c99\u7bb1\u4e0e\u5ba1\u6279 \u540e\u53f0\u4efb\u52a1<\/p>\n<p>\u6a21\u578b\u80fd\u8981\u6c42\u505a\u7684\u4e8b\u91cc&#xff0c;\u6700\u5371\u9669\u7684\u5c31\u662f\u300c\u8c03\u7528\u5de5\u5177\u300d\u3002\u5220\u6587\u4ef6\u3001\u8dd1\u547d\u4ee4\u3001\u53d1\u8bf7\u6c42\u2014\u2014\u8fd9\u4e9b\u90fd\u53d1\u751f\u5728\u8fd9\u4e00\u6b65\u3002\u8fd9\u4e00\u7ae0\u8bb2\u6e05\u695a&#xff1a;\u4e00\u6b21\u5de5\u5177\u8c03\u7528\u4ece\u88ab\u6a21\u578b\u70b9\u540d\u5230\u7ed3\u679c\u56de\u586b&#xff0c;\u4e2d\u95f4\u5230\u5e95\u8fc7\u4e86\u51e0\u9053\u5173&#xff0c;\u6bcf\u4e00\u9053\u5173\u4f60\u80fd\u6302\u5728\u54ea\u91cc\u3002<\/p>\n<h4>6.1\u3000\u5148\u770b\u4e00\u4e2a\u6700\u5c0f\u7684\u5de5\u5177<\/h4>\n<p>\u5b98\u65b9\u7ed9\u7684\u6700\u5c0f\u5f62\u6001\u662f\u8fd9\u4e2a\u6837\u5b50\u3002\u522b\u770b\u5b83\u77ed&#xff0c;\u5b83\u662f\u540e\u9762\u6240\u6709\u8ba8\u8bba\u7684\u57fa\u51c6&#xff1a;<\/p>\n<p><span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> readFile <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;node:fs\/promises&#039;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token keyword\">type<\/span> <span class=\"token punctuation\">{<\/span> Context <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;&#064;deepseek-ai\/cordis&#039;<\/span><br \/>\n<span class=\"token keyword\">import<\/span> <span class=\"token punctuation\">{<\/span> defineTool <span class=\"token punctuation\">}<\/span> <span class=\"token keyword\">from<\/span> <span class=\"token string\">&#039;&#064;deepseek-ai\/dsh-tools&#039;<\/span><\/p>\n<p><span class=\"token keyword\">export<\/span> <span class=\"token keyword\">const<\/span> name <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#039;my-tool&#039;<\/span><br \/>\n<span class=\"token keyword\">export<\/span> <span class=\"token keyword\">const<\/span> inject <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token string\">&#039;tools&#039;<\/span><span class=\"token punctuation\">]<\/span><\/p>\n<p><span class=\"token keyword\">export<\/span> <span class=\"token keyword\">function<\/span> <span class=\"token function\">apply<\/span><span class=\"token punctuation\">(<\/span>ctx<span class=\"token operator\">:<\/span> Context<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  ctx<span class=\"token punctuation\">.<\/span>tools<span class=\"token punctuation\">.<\/span><span class=\"token function\">register<\/span><span class=\"token punctuation\">(<\/span><span class=\"token function\">defineTool<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span><br \/>\n    name<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;read_file&#039;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    description<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;Read a file from disk.&#039;<\/span><span class=\"token punctuation\">,<\/span>          <span class=\"token comment\">\/\/ \u6a21\u578b\u770b\u5230\u7684\u552f\u4e00\u8bf4\u660e<\/span><br \/>\n    parameters<span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      path<span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> type<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;string&#039;<\/span><span class=\"token punctuation\">,<\/span> required<span class=\"token operator\">:<\/span> <span class=\"token boolean\">true<\/span><span class=\"token punctuation\">,<\/span> description<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;Absolute path&#039;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      limit<span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> type<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;number&#039;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span>                     <span class=\"token comment\">\/\/ \u9ed8\u8ba4\u53ef\u9009<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    output<span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      schema<span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> type<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;string&#039;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token function-variable function\">render<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">(<\/span>_args<span class=\"token punctuation\">,<\/span> value<span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token punctuation\">[<\/span><span class=\"token punctuation\">{<\/span> type<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;text&#039;<\/span><span class=\"token punctuation\">,<\/span> text<span class=\"token operator\">:<\/span> value <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token keyword\">async<\/span> <span class=\"token function\">execute<\/span><span class=\"token punctuation\">(<\/span>args<span class=\"token punctuation\">,<\/span> exec<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token comment\">\/\/ args \u5df2\u7ecf\u88ab\u6821\u9a8c\u5e76\u63a8\u5bfc\u51fa\u7c7b\u578b&#xff1a;{ path: string; limit?: number }<\/span><br \/>\n      <span class=\"token keyword\">return<\/span> <span class=\"token function\">readFile<\/span><span class=\"token punctuation\">(<\/span>args<span class=\"token punctuation\">.<\/span>path<span class=\"token punctuation\">,<\/span> <span class=\"token punctuation\">{<\/span> encoding<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;utf8&#039;<\/span><span class=\"token punctuation\">,<\/span> signal<span class=\"token operator\">:<\/span> exec<span class=\"token punctuation\">.<\/span>signal <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u8fd9\u91cc\u9762\u6709\u51e0\u4e2a\u6982\u5ff5\u662f\u65b0\u624b\u7b2c\u4e00\u773c\u770b\u4e0d\u51fa\u6765\u7684&#xff0c;\u4f46\u90fd\u5f88\u91cd\u8981&#xff1a;<\/p>\n<table>\n<tr>\u4ee3\u7801\u91cc\u7684\u4e1c\u897f\u5b83\u5728\u505a\u4ec0\u4e48<\/tr>\n<tbody>\n<tr>\n<td>defineTool({&#8230;})<\/td>\n<td>\u4e00\u4e2a\u7c7b\u578b\u5316\u8f85\u52a9\u51fd\u6570\u3002\u5b83\u628a\u300c\u53c2\u6570\u63a8\u5bfc &#043; \u6821\u9a8c\u300d\u548c execute \u7ed1\u5728\u4e00\u8d77&#xff0c;\u6240\u4ee5 args \u662f\u5f3a\u7c7b\u578b\u7684\u3002\u4f60\u4e0d\u9700\u8981\u624b\u5199\u8f93\u5165\u6821\u9a8c<\/td>\n<\/tr>\n<tr>\n<td>output.schema &#043; render<\/td>\n<td>\u5de5\u5177\u5fc5\u987b\u540c\u65f6\u58f0\u660e\u4e24\u4ef6\u4e8b&#xff1a;\u51fd\u6570\u4f53\u8fd4\u56de\u7684\u300c\u89c4\u8303\u503c\u300d\u957f\u4ec0\u4e48\u6837&#xff08;schema&#xff09;&#xff0c;\u4ee5\u53ca\u8fd9\u4e2a\u503c\u600e\u4e48\u53d8\u6210\u6a21\u578b\u80fd\u8bfb\u7684\u5185\u5bb9&#xff08;render&#xff09;\u3002\u8fd9\u4e2a\u5206\u79bb\u662f\u523b\u610f\u8bbe\u8ba1\u7684<\/td>\n<\/tr>\n<tr>\n<td>exec.signal<\/td>\n<td>\u53d6\u6d88\u4fe1\u53f7\u3002\u534f\u8bae\u8981\u6c42\u4f60\u5fc5\u987b\u9075\u5b88\u5b83\u2014\u2014\u4fe1\u53f7\u89e6\u53d1\u65f6\u53d6\u6d88\u8fdb\u884c\u4e2d\u7684\u5de5\u4f5c<\/td>\n<\/tr>\n<tr>\n<td>ctx.tools.register()<\/td>\n<td>\u6ce8\u518c\u662f\u526f\u4f5c\u7528\u3002dispose \u8fd9\u4e2a\u63d2\u4ef6\u7684 fiber \u5373\u6ce8\u9500\u8be5\u5de5\u5177<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e3a\u4ec0\u4e48\u8981\u533a\u5206\u300c\u89c4\u8303\u503c\u300d\u548c\u300c\u6e32\u67d3\u5185\u5bb9\u300d<\/p>\n<p>\u56e0\u4e3a\u540c\u4e00\u4e2a\u7ed3\u679c\u6709\u4e24\u79cd\u8bfb\u8005&#xff1a;\u7a0b\u5e8f\u548c\u6a21\u578b\u3002\u7a0b\u5e8f&#xff08;\u5c24\u5176\u662f PTC mode \u91cc\u6a21\u578b\u5199\u7684\u4ee3\u7801&#xff09;\u9700\u8981\u7ed3\u6784\u5316\u3001\u5e26\u5b57\u6bb5\u7684\u8fd4\u56de\u503c&#xff1b;\u6a21\u578b\u9700\u8981\u4e00\u6bb5\u53ef\u8bfb\u7684\u6587\u5b57\u3002\u628a\u4e24\u8005\u6df7\u5728\u4e00\u8d77&#xff0c;\u5c31\u53ea\u80fd\u9760\u89e3\u6790\u81ea\u7136\u8bed\u8a00\u6765\u53d6 id \u548c\u5b57\u6bb5\u2014\u2014\u5b98\u65b9\u660e\u786e\u8bf4\u4e86\u8fd9\u662f\u8981\u907f\u514d\u7684&#xff1a;\u300c\u5de5\u5177\u4e3b\u4f53\u4e0d\u8981\u8fd4\u56de\u5185\u5bb9\u5757&#xff0c;\u4e5f\u4e0d\u8981\u8feb\u4f7f\u8c03\u7528\u65b9\u4ece\u81ea\u7136\u8bed\u8a00\u4e2d\u89e3\u6790 id \u548c\u5b57\u6bb5\u3002\u300d<\/p>\n<h4>6.2\u3000\u5b8c\u6574\u5b57\u6bb5\u8868&#xff1a;\u4e00\u4e2a\u5de5\u5177\u53ef\u4ee5\u8bf4\u591a\u5c11\u4e8b<\/h4>\n<p>defineTool \u80cc\u540e\u662f ToolDefinition\u3002\u5b83\u7684\u5b8c\u6574\u5b57\u6bb5\u5982\u4e0b\u3002\u8bfb\u8fd9\u5f20\u8868\u65f6\u8bf7\u6ce8\u610f\u6700\u53f3\u4e00\u5217\u2014\u2014\u5b83\u56de\u7b54\u7684\u662f\u300c\u8fd9\u4e2a\u5b57\u6bb5\u6a21\u578b\u80fd\u770b\u5230\u5417\u300d\u3002<\/p>\n<table>\n<tr>\u5b57\u6bb5\u5fc5\u987b\u4f5c\u7528\u6a21\u578b\u53ef\u89c1<\/tr>\n<tbody>\n<tr>\n<td>name \/ description \/ parameters<\/td>\n<td>\u662f<\/td>\n<td>\u534f\u8bae\u5c42\u5b57\u6bb5\u3002description \u662f\u6a21\u578b\u7406\u89e3\u8fd9\u4e2a\u5de5\u5177\u7684\u552f\u4e00\u4f9d\u636e<\/td>\n<td>\u53ef\u89c1<\/td>\n<\/tr>\n<tr>\n<td>deferLoading<\/td>\n<td>\u5426<\/td>\n<td>\u8bf7\u6c42\u628a\u5de5\u5177\u5b9a\u4e49\u5ef6\u8fdf\u52a0\u8f7d\u8fdb\u6a21\u578b\u4e0a\u4e0b\u6587<\/td>\n<td>\u53ef\u89c1<\/td>\n<\/tr>\n<tr>\n<td>output<\/td>\n<td>\u662f<\/td>\n<td>\u89c4\u8303\u8f93\u51fa\u58f0\u660e&#xff1a;schema&#xff08;\u5f3a\u5236\u6821\u9a8c\u51fd\u6570\u4f53\u8fd4\u56de\u503c&#xff09;\u3001render&#xff08;\u7eaf\u6295\u5f71\u6210\u6a21\u578b\u5185\u5bb9&#xff09;\u3001presentationMeta&#xff08;\u53ef\u56de\u653e\u7684\u5c55\u793a\u6570\u636e&#xff09;<\/td>\n<td>\u5426&#xff08;render \u7684\u4ea7\u7269\u624d\u8fdb\u5185\u5bb9&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>execute<\/td>\n<td>\u662f<\/td>\n<td>\u771f\u6b63\u5e72\u6d3b\u7684\u51fd\u6570\u3002\u8fd4\u56de\u89c4\u8303 JSON \u503c&#xff0c;\u4e0d\u662f\u5185\u5bb9\u5757<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<tr>\n<td>projectContent<\/td>\n<td>\u5426<\/td>\n<td>\u5728\u6267\u884c\u540e\u7b56\u7565\u4e4b\u524d\u88c5\u5165\u300c\u6267\u884c\u51c6\u5907\u597d\u7684\u5185\u5bb9\u300d<\/td>\n<td>\u5426&#xff08;\u4f46\u5f71\u54cd\u5185\u5bb9&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>finalizeContent<\/td>\n<td>\u5426<\/td>\n<td>\u9762\u5411\u6a21\u578b\u5185\u5bb9\u7684\u540c\u6b65\u6700\u540e\u4e00\u516c\u91cc\u53d8\u6362\u3002\u6ce8\u518c\u8868\u5bf9\u6bcf\u4e2a\u5f52\u4e00\u5316\u7ed3\u679c\u6070\u597d\u8c03\u7528\u5b83\u4e00\u6b21&#xff0c;\u5305\u62ec\u7ed5\u8fc7 post-execute \u7684\u6d41\u6c34\u7ebf\u5931\u8d25\u3002\u5b83\u5fc5\u987b\u4e0d\u629b\u5f02\u5e38<\/td>\n<td>\u5426&#xff08;\u4f46\u51b3\u5b9a\u5185\u5bb9&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>timeoutMs<\/td>\n<td>\u5426<\/td>\n<td>\u5de5\u5177\u81ea\u5df1\u7684\u8d85\u65f6\u9884\u7b97\u3002\u7531 timeout \u7b56\u7565\u63d2\u4ef6\u4f5c\u4e3a tools\/execute \u5305\u88c5\u5c42\u5f3a\u5236\u6267\u884c\u3002\u58f0\u660e\u5b83\u5c31\u7b49\u4e8e\u627f\u8bfa&#xff1a;\u8fd9\u4e2a\u5de5\u5177\u4f1a\u628a exec.signal \u8f6c\u7ed9\u4e00\u4e2a\u80fd\u6536\u655b\u7684\u5408\u4f5c\u5b9e\u73b0<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<tr>\n<td>isConcurrencySafe(args)<\/td>\n<td>\u5426<\/td>\n<td>\u7eaf\u540c\u6b65\u5206\u7c7b\u5668&#xff0c;\u5224\u65ad\u672c\u6b21\u8c03\u7528\u80fd\u5426\u4e0e\u5144\u5f1f\u8c03\u7528\u5e76\u884c\u3002\u53ea\u6709\u8fd4\u56de\u4e25\u683c true \u624d\u7b97\u5e76\u884c<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<tr>\n<td>presentCall(args)<\/td>\n<td>\u5426<\/td>\n<td>\u600e\u4e48\u5728\u754c\u9762\u91cc\u663e\u793a\u300c\u6b63\u5728\u8c03\u7528\u300d\u7684\u5361\u7247<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<tr>\n<td>presentResult(args, result)<\/td>\n<td>\u5426<\/td>\n<td>\u600e\u4e48\u663e\u793a\u300c\u5df2\u5b8c\u6210\u300d\u7684\u5361\u7247<\/td>\n<td>\u5426<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5173\u4e8e\u8fd9\u5f20\u8868&#xff0c;\u5b98\u65b9\u6709\u4e24\u53e5\u8bdd\u503c\u5f97\u80cc\u4e0b\u6765&#xff1a;<\/p>\n<p>\u6ce8\u518c\u8868\u7684 schemas() \u901a\u8fc7\u663e\u5f0f\u5141\u8bb8\u5217\u8868\u6784\u5efa\u9762\u5411\u6a21\u578b\u7684 ToolSchema[]\u3002<\/p>\n<p>\u552f\u72ec isConcurrencySafe \u7684\u7ea6\u5b9a\u662f&#xff1a;\u53ea\u6709 true \u624d\u7b97\u5e76\u884c&#xff1b;\u7701\u7565\u3001\u629b\u5f02\u5e38\u3001\u8fd4\u56de\u975e true\u3001\u6216 defineTool \u53c2\u6570\u975e\u6cd5&#xff0c;\u4e00\u5f8b\u5f52\u4e3a\u300c\u72ec\u5360\u300d\u3002<\/p>\n<p>\u53cd\u76f4\u89c9<\/p>\n<p>\u5e76\u53d1\u5b89\u5168\u9ed8\u8ba4\u662f\u5173\u7684&#xff0c;\u800c\u4e14\u662f\u300cfail-closed\u300d&#xff08;\u5931\u8d25\u5373\u5173\u95ed&#xff09;\u3002\u4f60\u53ef\u80fd\u89c9\u5f97\u9ed8\u8ba4\u503c\u5e94\u8be5\u5bbd\u677e\u4e00\u70b9\u3002\u4f46\u5bf9\u5de5\u5177\u6765\u8bf4&#xff0c;\u5bbd\u677e\u610f\u5473\u7740\u4e24\u4e2a\u5e76\u53d1\u8c03\u7528\u53ef\u80fd\u4e92\u76f8\u8e29\u5185\u5b58\u3001\u62a2\u540c\u4e00\u4e2a\u6587\u4ef6\u3001\u4ea7\u751f\u7ade\u6001&#xff08;\u4e24\u4ef6\u4e8b\u62a2\u540c\u4e00\u4efd\u4e1c\u897f&#xff0c;\u6700\u540e\u7ed3\u679c\u53d6\u51b3\u4e8e\u8c01\u5148\u5230\u3002\u8fd9\u7c7b\u95ee\u9898\u5f80\u5f80\u96be\u4ee5\u590d\u73b0&#xff09;\u3002\u6240\u4ee5\u8bbe\u8ba1\u8005\u9009\u4e86\u4e00\u4e2a\u65b9\u5411&#xff1a;**\u60f3\u5e76\u884c&#xff0c;\u4f60\u5f97\u4e3b\u52a8\u58f0\u660e&#xff0c;\u800c\u4e14\u8981\u4fdd\u8bc1\u81ea\u5df1\u5e72\u51c0\u3002**\u5b98\u65b9\u8fd8\u8865\u4e86\u4e00\u53e5\u8981\u6c42&#xff1a;\u58f0\u660e\u5e76\u884c\u7684\u6267\u884c\u4e0d\u5f97\u4fee\u6539\u7236\u7ea7\u62e5\u6709\u7684\u72b6\u6001&#xff1b;\u5171\u4eab\u72b6\u6001\u5fc5\u987b\u5bb9\u5fcd\u5e76\u53d1\u5206\u6d3e&#xff1b;\u53ea\u6709\u80fd\u4ea4\u6362\u987a\u5e8f\u6216\u5931\u8d25\u5373\u5173\u95ed\u7684\u7ade\u6001&#xff08;\u4e24\u4ef6\u4e8b\u62a2\u540c\u4e00\u4efd\u4e1c\u897f&#xff0c;\u6700\u540e\u7ed3\u679c\u53d6\u51b3\u4e8e\u8c01\u5148\u5230\u3002\u8fd9\u7c7b\u95ee\u9898\u5f80\u5f80\u96be\u4ee5\u590d\u73b0&#xff09;\u624d\u662f\u5141\u8bb8\u7684\u3002<\/p>\n<h4>6.3\u3000\u6d41\u6c34\u7ebf\u5168\u8c8c&#xff1a;\u4e00\u6b21\u8c03\u7528\u8981\u8fc7\u51e0\u9053\u5173<\/h4>\n<p>\u73b0\u5728\u8bb2\u672c\u7ae0\u7684\u6838\u5fc3\u3002\u5b98\u65b9\u4e3a\u5de5\u5177\u6267\u884c\u753b\u4e86\u4e00\u5f20\u5b8c\u6574\u7684\u6d41\u7a0b\u56fe&#xff0c;\u628a\u5b83\u538b\u7f29\u6210\u4e00\u53e5\u8bdd\u662f&#xff1a;<\/p>\n<p>tools\/pre-execute waterfall \u9996\u5148\u8fd0\u884c&#xff0c;\u968f\u540e\u662f\u5355\u8c03\u5b88\u536b&#xff0c;\u7136\u540e\u8fd0\u884c tools\/execute \u548c tools\/post-execute waterfall\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261003114056-6ac0e9c8c0cb8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><br \/>\n\u56fe 20&#xff5c;\u4e09\u9053 waterfall \u90fd\u53ef\u4ee5\u6539\u5199\u4e00\u6b21\u8c03\u7528&#xff0c;\u4f46\u5b83\u4eec\u7684\u4f4d\u7f6e\u51b3\u5b9a\u4e86\u300c\u6539\u5199\u7684\u65f6\u673a\u300d\u548c\u300c\u80fd\u770b\u5230\u4ec0\u4e48\u300d\u3002<\/p>\n<h4>6.4\u3000\u4e09\u9053 waterfall \u600e\u4e48\u9009&#xff1a;\u4e00\u5f20\u5224\u65ad\u8868<\/h4>\n<p>\u8fd9\u662f\u672c\u7ae0\u6700\u5b9e\u7528\u7684\u4e00\u5f20\u8868\u3002\u5b98\u65b9\u5728\u5de5\u5177\u7f16\u5199\u53c2\u8003\u91cc\u7ed9\u51fa\u4e86\u660e\u786e\u7684\u9009\u62e9\u89c4\u5219&#xff1a;<\/p>\n<table>\n<tr>\u4f60\u60f3\u505a\u8fd9\u4ef6\u4e8b\u6302\u5728\u54ea\u4e2a\u6269\u5c55\u70b9\u4e3a\u4ec0\u4e48\u662f\u5b83<\/tr>\n<tbody>\n<tr>\n<td>\u53ef\u6269\u5c55\u7684\u5141\u8bb8&#xff0f;\u62d2\u7edd&#xff0f;\u8be2\u95ee\u7b56\u7565<\/td>\n<td>tools\/pre-execute<\/td>\n<td>\u5b83\u662f\u53ef\u91cd\u6392\u7684\u7b56\u7565\u5c42\u3002\u53ef\u4ee5 deny\u3001\u53ef\u4ee5 ask&#xff08;\u8d70\u5ba1\u6279&#xff09;\u3001\u4e5f\u53ef\u4ee5 cancel<\/td>\n<\/tr>\n<tr>\n<td>\u8bbe\u7f6e\u6700\u7ec8\u3001\u4e0d\u53ef\u64a4\u9500\u7684\u62d2\u7edd<\/td>\n<td>ctx.tools.guard()<\/td>\n<td>\u5355\u8c03\u5b88\u536b\u6ca1\u6709 allow \u7ed3\u679c&#xff0c;\u6240\u4ee5\u540e\u7eed\u76d1\u542c\u5668\u65e0\u6cd5\u628a\u62d2\u7edd\u7ffb\u56de\u653e\u884c<\/td>\n<\/tr>\n<tr>\n<td>\u7ed9\u5206\u6d3e\u52a0\u622a\u6b62\u65f6\u95f4\u3001\u91cd\u8bd5\u6216\u6307\u6807<\/td>\n<td>tools\/execute<\/td>\n<td>\u5b83\u662f\u73af\u7ed5\u5206\u6d3e\u5305\u88c5\u5c42&#xff0c;\u53ef\u4ee5\u66ff\u6362 exec.signal&#xff08;\u4f46\u4e0d\u80fd\u79fb\u9664\u5b83&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u66ff\u6362\u5c55\u793a\u5185\u5bb9\u6216\u8fd4\u56de\u503c\u3001\u963b\u6b62\u7ed3\u679c\u3001\u9644\u52a0\u6a21\u578b\u53ef\u89c1\u7684\u4e0a\u4e0b\u6587<\/td>\n<td>tools\/post-execute<\/td>\n<td>\u5b83\u80fd\u62ff\u5230\u7ed3\u679c\u5e76\u8fd4\u56de PostToolDecision<\/td>\n<\/tr>\n<tr>\n<td>\u89c2\u5bdf\u4e0d\u53ef\u53d8\u7684\u6700\u7ec8\u7ed3\u679c&#xff08;\u5ba1\u8ba1\u3001\u6307\u6807\u3001\u6355\u83b7&#xff09;<\/td>\n<td>tools\/result<\/td>\n<td>\u5b83\u662f emit&#xff0c;\u53ea\u89c2\u5bdf\u3002\u76d1\u542c\u5668\u5931\u8d25\u4f1a\u88ab\u9694\u79bb&#xff0c;\u4e0d\u4f1a\u5f71\u54cd\u7ed3\u679c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b98\u65b9\u5728\u5b9e\u64cd\u624b\u518c\u91cc\u8fd8\u7ed9\u4e86\u4e00\u6761\u5f88\u91cd\u8981\u7684\u539f\u5219&#xff1a;<\/p>\n<p>\u5c3d\u91cf\u4e0d\u8981\u628a\u90e8\u7f72\u7b56\u7565\u5185\u5efa\u5230\u5de5\u5177\u4e2d\u3002<\/p>\n<p>\u7406\u7531\u5f88\u76f4\u63a5&#xff1a;\u5982\u679c\u6bcf\u4e2a\u5de5\u5177\u90fd\u81ea\u5df1\u5b9e\u73b0\u4e00\u5957\u6743\u9650\u68c0\u67e5&#xff0c;\u90a3\u4e48\u300c\u7edf\u4e00\u6536\u7d27\u6743\u9650\u300d\u8fd9\u4ef6\u4e8b\u5c31\u4f1a\u53d8\u6210\u4e00\u4e2a\u4e0d\u53ef\u80fd\u5b8c\u6210\u7684\u4efb\u52a1\u3002\u6b63\u786e\u505a\u6cd5\u662f\u5de5\u5177\u53ea\u7ba1\u5e72\u6d3b&#xff0c;\u7b56\u7565\u7edf\u4e00\u6302\u5728\u8fd9\u51e0\u4e2a\u6269\u5c55\u70b9\u4e0a\u3002<\/p>\n<h4>6.5\u3000\u5b88\u536b\u4e3a\u4ec0\u4e48\u662f\u300c\u5355\u8c03\u300d\u7684<\/h4>\n<p>\u300c\u5355\u8c03\u300d\u8fd9\u4e2a\u8bcd\u5728\u8fd9\u91cc\u6709\u4e00\u4e2a\u975e\u5e38\u5177\u4f53\u7684\u542b\u4e49&#xff0c;\u503c\u5f97\u5355\u72ec\u8bb2\u3002<\/p>\n<p>\u666e\u901a\u7684 waterfall \u76d1\u542c\u5668\u53ef\u4ee5\u8fd4\u56de allow \u6216\u8005 deny\u3002\u8fd9\u610f\u5473\u7740\u4e24\u4e2a\u76d1\u542c\u5668\u53ef\u4ee5\u4e92\u76f8\u300c\u7ffb\u6848\u300d&#xff1a;A \u8bf4\u4e0d\u884c&#xff0c;B \u8bf4\u884c&#xff0c;\u6700\u540e\u542c\u8c01\u7684\u53d6\u51b3\u4e8e\u987a\u5e8f\u3002\u8fd9\u5728\u6743\u9650\u573a\u666f\u4e0b\u662f\u4e0d\u53ef\u63a5\u53d7\u7684\u3002<\/p>\n<p>\u6240\u4ee5\u5b88\u536b\u88ab\u8bbe\u8ba1\u6210\u53ea\u80fd\u7f29\u5c0f\u6743\u9650&#xff1a;<\/p>\n<p><span class=\"token comment\">\/**<br \/>\n * \u5355\u8c03\u6267\u884c\u5b88\u536b&#xff1a;\u5728\u6bcf\u4e2a tools\/pre-execute \u76d1\u542c\u5668\u4e4b\u540e\u3001\u5de5\u5177\u672c\u4f53\u4e4b\u524d\u6c42\u503c\u3002<br \/>\n * \u8fd4\u56de\u4e00\u4e2a reason \u5c31\u62d2\u7edd\u8be5\u8c03\u7528&#xff1b;\u8fd4\u56de undefined \u8868\u793a\u4e0d\u6539\u53d8\u7ed3\u679c\u3002<br \/>\n * \u56e0\u4e3a\u5b88\u536b\u6ca1\u6709 allow \u7ed3\u679c&#xff0c;\u6240\u4ee5\u76d1\u542c\u5668\u987a\u5e8f\u65e0\u6cd5\u628a\u4e00\u6b21\u62d2\u7edd\u7ffb\u56de\u5141\u8bb8\u3002<br \/>\n *\/<\/span><br \/>\n<span class=\"token keyword\">type<\/span> <span class=\"token class-name\">ToolGuard<\/span> <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">(<\/span>execution<span class=\"token operator\">:<\/span> Readonly<span class=\"token operator\">&lt;<\/span>ToolExecution<span class=\"token operator\">&gt;<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#061;&gt;<\/span> <span class=\"token builtin\">string<\/span> <span class=\"token operator\">|<\/span> <span class=\"token keyword\">undefined<\/span><\/p>\n<p>\u5173\u952e<\/p>\n<p>\u8fd9\u6761\u8bbe\u8ba1\u8ba9\u300c\u5b89\u5168\u300d\u53ef\u4ee5\u88ab\u5c40\u90e8\u63a8\u7406&#xff1a;\u4f60\u53ea\u8981\u8bc1\u660e\u6240\u6709\u76f8\u5173\u5b88\u536b\u90fd\u4e0d\u4f1a\u653e\u884c&#xff0c;\u5c31\u80fd\u8bc1\u660e\u8fd9\u4e2a\u8c03\u7528\u4f1a\u88ab\u62d2\u7edd&#xff0c;\u800c\u4e0d\u9700\u8981\u53bb\u5206\u6790\u76d1\u542c\u5668\u7684\u6ce8\u518c\u987a\u5e8f\u3002\u8fd9\u662f\u300c\u8ba9\u4e0d\u53d8\u91cf\u4e0d\u4f9d\u8d56\u987a\u5e8f\u300d\u8fd9\u4e00\u601d\u60f3\u5728\u6743\u9650\u4e0a\u7684\u5177\u4f53\u5e94\u7528\u2014\u2014\u548c\u7b2c 3 \u7ae0 agent\/turn-stopping \u7528\u6570\u636e\u800c\u975e\u8fd4\u56de\u503c\u8868\u51b3&#xff0c;\u662f\u540c\u4e00\u4e2a\u601d\u8def\u3002<\/p>\n<h4>6.6\u3000\u51b3\u7b56\u7c7b\u578b&#xff1a;\u4f60\u80fd\u8fd4\u56de\u4ec0\u4e48<\/h4>\n<p>\u4e24\u4e2a\u5173\u952e waterfall \u7684\u8fd4\u56de\u503c\u90fd\u662f\u7c7b\u578b\u5316\u7684\u300c\u51b3\u7b56\u300d\u3002\u4e0b\u9762\u628a\u9009\u9879\u5217\u5168&#xff0c;\u5199\u63d2\u4ef6\u65f6\u76f4\u63a5\u67e5\u8fd9\u5f20\u8868\u3002<\/p>\n<p>\u524d\u7f6e\u51b3\u7b56 PreToolDecision&#xff08;tools\/pre-execute \u8fd4\u56de&#xff09;<\/p>\n<table>\n<tr>\u8fd4\u56de\u540e\u679c<\/tr>\n<tbody>\n<tr>\n<td>{ kind: &#039;allow&#039; }<\/td>\n<td>\u6267\u884c\u8fd9\u4e2a\u8c03\u7528<\/td>\n<\/tr>\n<tr>\n<td>{ kind: &#039;deny&#039;, reason, info? }<\/td>\n<td>\u7269\u5316\u5b83\u7684\u9762\u5411\u6a21\u578b\u7684\u539f\u56e0&#xff0c;\u53ef\u9009\u5e26\u4e0a\u7ed3\u6784\u5316\u7684\u9519\u8bef\u8eab\u4efd<\/td>\n<\/tr>\n<tr>\n<td>{ kind: &#039;cancel&#039; }<\/td>\n<td>\u9009\u62e9\u300c\u89c4\u8303\u7684\u53d6\u6d88\u7ed3\u679c\u300d&#xff0c;\u4f46\u4e0d\u5448\u73b0\u4e3a\u4e00\u4e2a\u7b56\u7565\u62d2\u7edd&#xff08;\u8fd9\u4e2a\u533a\u522b\u5bf9\u7528\u6237\u5f88\u91cd\u8981&#xff1a;\u53d6\u6d88 \u2260 \u8fdd\u89c4&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>{ kind: &#039;ask&#039;, reason?, displayReason? }<\/td>\n<td>\u53ea\u6709\u5ba1\u6279\u670d\u52a1\u8fd4\u56de allowed-once \u624d\u7ee7\u7eed\u6267\u884c&#xff0c;\u5426\u5219\u62d2\u7edd\u3002reason \u662f\u5ba1\u8ba1\u7528\u7684\u539f\u56e0&#xff0c;displayReason \u662f\u672c\u5730\u5316\u7684\u63d0\u793a\u6587\u6848<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b98\u65b9\u7279\u610f\u8bf4\u660e\u4e86\u4e00\u70b9&#xff1a;\u53c2\u6570\u4e0d\u53ef\u88ab\u6539\u5199&#xff0c;\u56e0\u4e3a\u300c\u5386\u53f2\u8bb0\u5f55\u3001\u5ba1\u8ba1\u3001UI \u548c\u6267\u884c\u5fc5\u987b\u4fdd\u6301\u4e00\u81f4\u300d\u3002\u800c\u4e14 ask \u5728\u6ca1\u6709\u5ba1\u6279\u901a\u9053\u3001\u6216\u8005\u6ca1\u6709 agent \u7684\u60c5\u51b5\u4e0b&#xff0c;\u4f1a\u76f4\u63a5\u53d8\u6210\u62d2\u7edd\u3002<\/p>\n<p>\u540e\u7f6e\u51b3\u7b56 PostToolDecision&#xff08;tools\/post-execute \u8fd4\u56de&#xff09;<\/p>\n<table>\n<tr>\u8fd4\u56de\u540e\u679c<\/tr>\n<tbody>\n<tr>\n<td>{ kind: &#039;accept&#039;, content? }<\/td>\n<td>\u63a5\u53d7&#xff0c;\u4f46\u66ff\u6362\u5c55\u793a\u5185\u5bb9\u3002\u4fdd\u7559\u89c4\u8303\u503c\u548c\u73b0\u6709\u5143\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>{ kind: &#039;accept&#039;, value? }<\/td>\n<td>\u66ff\u6362\u89c4\u8303\u503c\u3002\u4f1a\u91cd\u65b0\u6821\u9a8c\u5e76\u91cd\u65b0\u8ba1\u7b97\u5185\u5bb9\u4e0e\u5143\u6570\u636e<\/td>\n<\/tr>\n<tr>\n<td>{ kind: &#039;block&#039;, feedback }<\/td>\n<td>\u963b\u6b62&#xff1a;\u79fb\u9664\u503c&#xff0c;\u8f6c\u6210 isError \u7ed3\u679c&#xff0c;\u5e76\u5e26\u4e0a\u7ea0\u6b63\u6027\u53cd\u9988\u7ed9\u6a21\u578b<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8fd9\u91cc\u6709\u4e00\u6761\u5f88\u5bb9\u6613\u88ab\u8bef\u7528\u7684\u89c4\u5219&#xff0c;\u5b98\u65b9\u4e13\u95e8\u8b66\u544a\u4e86&#xff1a;<\/p>\n<p>\u5185\u5bb9\u66ff\u6362\u662f\u5c55\u793a\u7b56\u7565&#xff0c;\u800c\u975e\u4fdd\u5bc6\u7b56\u7565&#xff1b;\u9700\u8981\u9690\u85cf\u7a0b\u5e8f\u5316\u503c\u7684\u76d1\u542c\u5668\u5fc5\u987b\u963b\u6b62\u6216\u66ff\u6362\u8be5\u503c\u3002<\/p>\n<p>\u4e5f\u5c31\u662f\u8bf4&#xff1a;\u4f60\u628a\u5185\u5bb9\u6362\u6389\u4e86&#xff0c;\u4f46 value \u91cc\u7684\u539f\u59cb\u6570\u636e\u8fd8\u5728&#xff0c;\u7a0b\u5e8f\u4ecd\u7136\u80fd\u62ff\u5230\u3002\u771f\u60f3\u4fdd\u5bc6&#xff0c;\u5f97\u7528 block \u6216\u8005\u66ff\u6362 value\u3002<\/p>\n<h4>6.7\u3000\u53c2\u6570\u4e0e\u7ed3\u679c&#xff1a;\u4e3a\u4ec0\u4e48\u90fd\u8981\u300c\u7269\u5316 &#043; \u51bb\u7ed3\u300d<\/h4>\n<p>\u5b98\u65b9\u5728\u6267\u884c\u7684\u63cf\u8ff0\u91cc\u53cd\u590d\u51fa\u73b0\u300c\u7269\u5316\u300d\u300c\u5feb\u7167\u300d\u300c\u51bb\u7ed3\u300d\u8fd9\u51e0\u4e2a\u8bcd\u3002\u5b83\u4eec\u5bf9\u5e94\u7684\u662f\u4e00\u5957\u5f88\u624e\u5b9e\u7684\u9632\u5fa1\u8bbe\u8ba1&#xff1a;<\/p>\n<table>\n<tr>\u673a\u5236\u5b83\u9632\u7684\u662f\u4ec0\u4e48<\/tr>\n<tbody>\n<tr>\n<td>\u53c2\u6570\u5728\u7b56\u7565\u5f00\u59cb\u524d\u4e00\u6b21\u6027\u7269\u5316\u4e3a\u65e0\u635f JSON \u5e76\u6df1\u51bb\u7ed3<\/td>\n<td>\u9632\u300c\u7b56\u7565\u770b\u5230\u7684\u503c\u300d\u548c\u300c\u5de5\u5177\u6536\u5230\u7684\u503c\u300d\u4e0d\u4e00\u81f4\u3002\u4e5f\u9632\u6709\u72b6\u6001\u7684 getter \u5728\u300c\u6821\u9a8c\u65f6\u300d\u548c\u300c\u5b58\u50a8\u65f6\u300d\u7ed9\u51fa\u4e24\u4e2a\u4e0d\u540c\u7684\u503c<\/td>\n<\/tr>\n<tr>\n<td>\u5206\u914d\u4e00\u4e2a\u4e0d\u900f\u660e\u7684 exec.token&#xff08;\u4e00\u4e2a Symbol&#xff0c;\u53ea\u7528\u4e8e\u8eab\u4efd\u6bd4\u8f83&#xff09;<\/td>\n<td>\u8ba9\u8c03\u7528\u8eab\u4efd\u65e0\u6cd5\u88ab\u4f2a\u9020\u3002callId\u3001name\u3001arguments\u3001agent\u3001token\u3001\u8c03\u7528\u65b9\u7684 signal \u5168\u7a0b\u4e0d\u53ef\u53d8<\/td>\n<\/tr>\n<tr>\n<td>\u5305\u88c5\u5c42\u53ef\u4ee5\u66ff\u6362 exec.signal&#xff0c;\u4f46\u6ce8\u518c\u8868\u5728\u8c03\u7528\u672c\u4f53\u524d\u4f1a\u91cd\u65b0\u878d\u5408\u8c03\u7528\u65b9\u7684 signal<\/td>\n<td>\u9632\u300c\u52a0\u8d85\u65f6\u4e4b\u540e&#xff0c;\u7528\u6237\u6309\u505c\u6b62\u5c31\u65e0\u6548\u4e86\u300d\u3002\u66ff\u6362\u4e0d\u80fd\u5207\u65ad\u8c03\u7528\u65b9\u7684\u53d6\u6d88\u80fd\u529b<\/td>\n<\/tr>\n<tr>\n<td>\u6700\u7ec8\u4ea7\u51fa\u662f\u4e00\u4e2a\u6df1\u5ea6\u51bb\u7ed3\u7684\u5feb\u7167&#xff0c;\u5b9e\u65f6\u89c2\u5bdf\u8005\u548c\u6301\u4e45\u5316\u770b\u5230\u7684\u662f\u540c\u4e00\u4e2a<\/td>\n<td>\u9632\u300c\u89c2\u5bdf\u8005\u5077\u5077\u6539\u4e86\u7ed3\u679c&#xff0c;\u5b58\u5230\u78c1\u76d8\u4e0a\u7684\u5c31\u4e0d\u4e00\u6837\u4e86\u300d<\/td>\n<\/tr>\n<tr>\n<td>\u5931\u8d25\u4e00\u5f8b\u88ab\u5f52\u4e00\u5316\u4e3a isError&#xff0c;\u800c\u4e0d\u662f\u8ba9\u5f02\u5e38\u7a7f\u900f<\/td>\n<td>\u8ba9\u6d41\u6c34\u7ebf\u7684\u4efb\u4f55\u4e00\u73af\u51fa\u95ee\u9898\u90fd\u7559\u4e0b\u4e00\u6761\u53ef\u8bfb\u7684\u7ed3\u679c&#xff0c;\u800c\u4e0d\u662f\u8ba9\u6574\u4e2a\u8f6e\u6b21\u70b8\u6389<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u53cd\u76f4\u89c9<\/p>\n<p>\u300c\u629b\u51fa\u5f02\u5e38\u6216\u8fd4\u56de\u65e0\u6548\u503c\u610f\u5473\u7740 isError\u300d&#xff0c;\u4f46\u5b98\u65b9\u7684\u5efa\u8bae\u662f&#xff1a;\u6210\u529f\u7684\u9886\u57df\u7ed3\u679c&#xff0c;\u5373\u4f7f\u8868\u793a\u4e0d\u7406\u60f3\u7684\u72b6\u6001&#xff0c;\u4e5f\u5e94\u8be5\u5199\u5165\u89c4\u8303\u503c\u3002\u6bd4\u5982\u4e00\u4e2a\u547d\u4ee4\u4ee5\u975e\u96f6\u72b6\u6001\u9000\u51fa\u2014\u2014\u8fd9\u4e0d\u662f\u5f02\u5e38&#xff0c;\u8fd9\u662f\u4e00\u4e2a\u6b63\u5e38\u7684\u89c2\u5bdf\u7ed3\u679c&#xff0c;\u5e94\u8be5\u4f5c\u4e3a\u503c\u8fd4\u56de&#xff0c;\u7531\u6e32\u67d3\u5668\u53bb\u89e3\u91ca\u3002\u53ea\u6709\u57fa\u7840\u8bbe\u65bd\u6545\u969c\u624d\u8be5\u629b\u5f02\u5e38\u3002\u8fd9\u4e2a\u5206\u754c\u7ebf\u65b0\u624b\u5f88\u5bb9\u6613\u5212\u9519&#xff0c;\u7ed3\u679c\u662f\u300c\u547d\u4ee4\u5931\u8d25 &#061; \u5de5\u5177\u62a5\u9519\u300d&#xff0c;\u8ba9\u6a21\u578b\u8bef\u4ee5\u4e3a\u5de5\u5177\u574f\u4e86\u3002<\/p>\n<h4>6.8\u3000\u5e76\u53d1\u8c03\u5ea6&#xff1a;\u72ec\u5360\u5c4f\u969c\u4e0e\u6eda\u52a8\u6c60<\/h4>\n<p>\u4e00\u8f6e\u91cc\u6a21\u578b\u53ef\u80fd\u4e00\u6b21\u8981\u6c42\u8c03\u7528\u597d\u51e0\u4e2a\u5de5\u5177\u3002\u8fd9\u4e9b\u8c03\u7528\u600e\u4e48\u8c03\u5ea6&#xff1f;\u5b98\u65b9\u7ed9\u7684\u673a\u5236\u662f&#xff1a;<\/p>\n<p>agent loop \u5411\u6ce8\u518c\u8868\u67e5\u8be2\u6bcf\u4e2a\u5f85\u5904\u7406\u8c03\u7528\u7684\u6267\u884c\u6a21\u5f0f&#xff0c;\u5e76\u636e\u6b64\u5f62\u6210\u72ec\u5360\u5c4f\u969c&#xff08;\u4e00\u9053\u6321\u4f4f\u53bb\u8def\u7684\u5173\u5361&#xff1a;\u5c4f\u969c\u4e24\u4fa7\u7684\u6267\u884c\u4e0d\u80fd\u4ea4\u9519&#xff0c;\u5fc5\u987b\u5148\u7b49\u8fd9\u4e00\u4fa7\u505a\u5b8c&#xff09;\u548c\u6eda\u52a8\u6c60\u5e76\u884c\u6267\u884c\u3002<\/p>\n<p>\u6267\u884c\u6a21\u5f0f\u53ea\u6709\u4e24\u79cd&#xff1a;<\/p>\n<p><span class=\"token keyword\">type<\/span> <span class=\"token class-name\">ToolExecutionMode<\/span> <span class=\"token operator\">&#061;<\/span><br \/>\n  <span class=\"token operator\">|<\/span> <span class=\"token punctuation\">{<\/span> kind<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;parallel&#039;<\/span> <span class=\"token punctuation\">}<\/span>    <span class=\"token comment\">\/\/ \u53ef\u4ee5\u4e0e\u5144\u5f1f\u8c03\u7528\u91cd\u53e0<\/span><br \/>\n  <span class=\"token operator\">|<\/span> <span class=\"token punctuation\">{<\/span> kind<span class=\"token operator\">:<\/span> <span class=\"token string\">&#039;exclusive&#039;<\/span> <span class=\"token punctuation\">}<\/span>   <span class=\"token comment\">\/\/ \u5355\u72ec\u8fd0\u884c&#xff0c;\u5f62\u6210\u4e00\u4e2a\u6392\u5e8f\u5c4f\u969c<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261003114057-6ac0e9c933635.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe 21&#xff5c;\u5e76\u884c\u662f\u4e3a\u4e86\u5feb&#xff0c;\u4f46\u7ed3\u679c\u7684\u5448\u73b0\u987a\u5e8f\u4f9d\u7136\u662f\u786e\u5b9a\u7684\u3002\u8fd9\u4e24\u4ef6\u4e8b\u88ab\u5206\u5f00\u4e86\u3002<\/p>\n<h4>6.9\u3000\u6c99\u7bb1\u4e0e\u5ba1\u6279&#xff1a;\u8c01\u80fd\u62e6\u4f4f\u4e00\u6b21\u8c03\u7528<\/h4>\n<p>\u5de5\u5177\u6267\u884c\u8fd9\u6761\u6d41\u6c34\u7ebf\u4e0a&#xff0c;\u6709\u51e0\u4e2a\u4e13\u95e8\u7684\u300c\u5b89\u5168\u90e8\u4ef6\u300d&#xff0c;\u5b83\u4eec\u5404\u81ea\u8d1f\u8d23\u4e00\u4e2a\u7ef4\u5ea6&#xff1a;<\/p>\n<table>\n<tr>\u90e8\u4ef6ctx \u952e\u5b83\u7ba1\u4ec0\u4e48<\/tr>\n<tbody>\n<tr>\n<td>\u6c99\u7bb1<\/td>\n<td>ctx.sandbox<\/td>\n<td>\u6d88\u8d39\u65b9\u4ea4\u51fa\u5373\u5c06\u6267\u884c spawn \u7684\u786e\u5207 argv&#xff1b;\u540e\u7aef\u6309\u6bcf\u6b21\u8c03\u7528\u7684\u7b56\u7565\u5305\u88c5\u8be5 argv&#xff0c;\u5e76\u62a5\u544a\u5f3a\u5236\u6267\u884c\u60c5\u51b5<\/td>\n<\/tr>\n<tr>\n<td>\u6c99\u7bb1\u7b56\u7565<\/td>\n<td>ctx.sandboxPolicy<\/td>\n<td>\u7edf\u4e00\u4fdd\u5b58\u90e8\u7f72\u9ed8\u8ba4\u6a21\u5f0f\u548c\u5de5\u4f5c\u533a\u6839\u76ee\u5f55\u3002\u53ea\u6709\u6c99\u7bb1\u6267\u884c\u5668\u548c\u63d0\u4f9b\u65b9\u8bfb\u5b83&#xff0c;\u8fd9\u6837 bash \u548c fs \u4e0d\u4f1a\u9650\u5236\u5230\u4e0d\u540c\u7684\u6839\u76ee\u5f55<\/td>\n<\/tr>\n<tr>\n<td>\u5ba1\u6279<\/td>\n<td>ctx.approval<\/td>\n<td>\u4e00\u6b21\u6027\u6743\u9650\u51b3\u7b56&#xff0c;\u901a\u8fc7 approval\/request waterfall \u5206\u6d3e\u3002\u6ca1\u6709\u56de\u7b54\u65b9\u65f6&#xff0c;\u4ee5 unavailable \u5173\u95ed\u5931\u8d25&#xff08;\u4e5f\u5c31\u662f\u62d2\u7edd&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u6743\u9650\u9884\u8bbe<\/td>\n<td>ctx.permissionPresets<\/td>\n<td>\u9762\u5411\u7528\u6237\u7684\u9884\u8bbe\u8868&#xff08;workspace-write&#xff0f;danger-full-access&#xff09;&#xff0c;\u628a\u6c99\u7bb1\u6a21\u5f0f\u548c\u5ba1\u6279\u7b56\u7565\u9009\u9879\u7ec4\u5408\u5728\u4e00\u8d77\u3002\u4e00\u6b21\u5207\u6362\u5199\u4e00\u4e2a permission\/preset \u4e8b\u4ef6&#xff0c;\u5e76\u8d2f\u901a\u5230\u4e24\u4e2a\u9009\u9879\u4e8b\u4ef6<\/td>\n<\/tr>\n<tr>\n<td>\u6587\u4ef6\u7cfb\u7edf\u89c2\u6d4b\u7b56\u7565<\/td>\n<td>fs-observation-policy<\/td>\n<td>\u901a\u8fc7 fs\/* \u4e8b\u4ef6\u95e8\u7981\u8d21\u732e\u57fa\u4e8e\u89c2\u6d4b\u72b6\u6001\u7684\u68c0\u67e5\u3002\u5b98\u65b9\u7684\u8bf4\u6cd5\u662f\u300c\u6587\u4ef6\u7cfb\u7edf\u7684\u5148\u8bfb\u540e\u7f16\u8f91\u68c0\u67e5\u4f4d\u4e8e tool-fs \u4e4b\u4e0b\u300d<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5173\u4e8e\u5ba1\u6279&#xff0c;\u6709\u4e00\u4e2a\u8bbe\u8ba1\u7ec6\u8282\u5f88\u503c\u5f97\u5b66&#xff1a;ask \u7684\u8bed\u4e49\u662f\u300callowed-once\u300d\u2014\u2014\u4e00\u6b21\u6027\u653e\u884c\u3002\u8fd9\u610f\u5473\u7740\u6bcf\u6b21\u8be2\u95ee\u53ea\u5bf9\u5f53\u524d\u8fd9\u4e00\u6b21\u8c03\u7528\u6709\u6548&#xff0c;\u4e0d\u4f1a\u53d8\u6210\u4e00\u6761\u6c38\u4e45\u89c4\u5219\u3002\u800c\u5982\u679c\u6ca1\u6709\u56de\u7b54\u65b9&#xff08;\u6bd4\u5982\u5728\u6ca1\u6709\u754c\u9762\u7684 headless \u73af\u5883\u91cc&#xff09;&#xff0c;\u5b83\u4e0d\u4f1a\u5361\u4f4f&#xff0c;\u800c\u662f\u4ee5 unavailable \u5173\u95ed\u5931\u8d25\u3002<\/p>\n<p>\u5173\u952e<\/p>\n<p>\u300c\u6ca1\u6709\u56de\u7b54\u65b9 &#061; \u62d2\u7edd\u300d\u8fd9\u4e2a\u9ed8\u8ba4\u503c\u65b9\u5411\u5f88\u91cd\u8981\u3002\u5982\u679c\u9ed8\u8ba4\u662f\u653e\u884c&#xff0c;\u90a3\u4e48\u53ea\u8981\u4f60\u628a\u754c\u9762\u62ff\u6389&#xff0c;\u6240\u6709\u5ba1\u6279\u5c31\u5f62\u540c\u865a\u8bbe\u3002\u5b89\u5168\u7c7b\u7684\u9ed8\u8ba4\u503c\u5fc5\u987b\u5f80\u4e25\u7684\u65b9\u5411\u504f\u3002<\/p>\n<h4>6.10\u3000PTC mode&#xff1a;\u8ba9\u6a21\u578b\u5199\u4ee3\u7801\u6765\u8c03\u5de5\u5177<\/h4>\n<p>PTC \u662f\u8fd9\u4e00\u7ae0\u91cc\u6982\u5ff5\u6700\u65b0\u7684\u4e00\u5757\u3002\u5b83\u7684\u601d\u8def\u662f&#xff1a;\u4e0e\u5176\u8ba9\u6a21\u578b\u4e00\u6b21\u6b21\u5355\u72ec\u8c03\u7528\u5de5\u5177&#xff0c;\u4e0d\u5982\u8ba9\u5b83\u5199\u4e00\u6bb5\u4ee3\u7801&#xff0c;\u5728\u4ee3\u7801\u91cc\u6279\u91cf\u8c03\u7528\u3002<\/p>\n<p>\u5b98\u65b9\u5bf9\u5b83\u7684\u63cf\u8ff0\u662f&#xff1a;<\/p>\n<p>\u5728 PTC mode \u4e2d&#xff0c;\u6bcf\u4e2a\u53ef\u89c1\u7684\u5df2\u6ce8\u518c\u5de5\u5177\u90fd\u53ef\u4ee5\u901a\u8fc7 await tools.&lt;name&gt;(args) \u8c03\u7528&#xff0c;\u65e0\u9700\u989d\u5916\u96c6\u6210\u3002\u751f\u6210\u7684 ToolArgsMap \u548c ToolOutputMap \u4f1a\u6839\u636e\u540c\u4e00\u7ec4 schema \u5206\u522b\u6d3e\u751f\u7cbe\u786e\u7684\u53c2\u6570\u7c7b\u578b\u4e0e\u89c4\u8303\u8fd4\u56de\u7c7b\u578b&#xff0c;\u8c03\u7528\u5219\u91cd\u65b0\u8fdb\u5165\u6b63\u5e38\u7684\u6267\u884c\u6d41\u6c34\u7ebf\u3002<\/p>\n<p>\u51e0\u4e2a\u5173\u952e\u4e8b\u5b9e&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u6210\u529f\u8c03\u7528\u4f1a\u89e3\u6790\u4e3a\u7b56\u7565\u5904\u7406\u540e\u7684\u6700\u7ec8\u89c4\u8303 JSON \u503c&#xff0c;\u800c\u4e0d\u662f\u6e32\u67d3\u540e\u7684\u81ea\u7136\u8bed\u8a00\u5185\u5bb9\u3002\u8fd9\u5c31\u662f\u524d\u9762\u5f3a\u8c03\u300c\u89c4\u8303\u503c\u4e0e\u6e32\u67d3\u5185\u5bb9\u5206\u79bb\u300d\u7684\u539f\u56e0\u3002<\/p>\n<\/li>\n<li>\n<p>\u5931\u8d25\u8c03\u7528\u4f1a\u4ee5\u771f\u6b63\u7684 ToolCallError reject&#xff1b;\u7a0b\u5e8f\u53ea\u80fd\u68c0\u67e5\u5b83\u7684 name\u3001toolName \u548c\u53ef\u8bfb\u7684 message&#xff0c;\u62ff\u4e0d\u5230\u5185\u90e8\u9519\u8bef\u4ee3\u7801\u3002<\/p>\n<\/li>\n<li>\n<p>\u4f20\u8f93\u5c42\u662f run_code\u3002\u6865\u63a5\u5c42\u5728\u7b56\u7565\u4e4b\u524d\u53ea\u8bb0\u5f55\u914d\u5bf9 id\u3001\u540d\u79f0\u4e0e\u89c4\u8303\u5316\u53c2\u6570\u2014\u2014\u4e0d\u5e8f\u5217\u5316\u63cf\u8ff0\u3001\u53c2\u6570 schema \u6216 schema \u5b57\u6bb5\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b50\u8c03\u7528\u643a\u5e26\u7236\u7ea7 token&#xff0c;\u8bb0\u5f55 tool\/ptc-dispatch \u4e8b\u4ef6&#xff0c;\u628a\u62d2\u7edd\u5448\u73b0\u4e3a\u6709\u7ea6\u675f\u529b\u7684\u9a73\u56de&#xff0c;\u5e76\u7701\u7565 additionalContexts&#xff08;\u4ee5\u4fdd\u6301\u8c03\u7528\u4e0e\u7ed3\u679c\u76f8\u90bb&#xff09;\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u5b98\u65b9\u8fd8\u7ed9\u5de5\u5177\u4f5c\u8005\u63d0\u4e86\u4e00\u6761\u5f88\u5b9e\u7528\u7684\u5efa\u8bae&#xff0c;\u5173\u4e8e\u600e\u4e48\u8bbe\u8ba1 output.schema&#xff1a;<\/p>\n<p>\u8bf7\u628a output.schema \u8bbe\u8ba1\u4e3a\u5b9e\u7528\u7684\u7a0b\u5e8f\u5316 API&#xff1a;\u76f4\u63a5\u8fd4\u56de\u53e5\u67c4\u4e0e\u5b57\u6bb5&#xff1b;\u5f53\u6807\u91cf\u3001\u6570\u7ec4\u6216 null \u786e\u5b9e\u5c31\u662f\u7ed3\u679c\u65f6&#xff0c;\u5141\u8bb8\u91c7\u7528\u76f8\u5e94\u7684\u6839\u7c7b\u578b&#xff1b;\u5c06\u9762\u5411\u4eba\u7c7b\u7684\u89e3\u91ca\u653e\u5165 output.render\u3002<\/p>\n<p>\u4ee5\u53ca\u4e00\u4e2a\u5bb9\u6613\u5ffd\u7565\u7684\u8d44\u6e90\u4e8b\u5b9e&#xff1a;**\u4e2d\u95f4\u503c\u53ea\u5b58\u5728\u4e8e\u6267\u884c\u671f\u95f4&#xff0c;\u4e0d\u4f1a\u88ab\u6301\u4e45\u5316&#xff0c;\u4e5f\u4e0d\u4f1a\u6309\u63d0\u793a\u8bcd\u4e0a\u9650\u622a\u65ad&#xff0c;\u800c\u4e14\u4e0d\u8bbe\u5b57\u8282\u4e0a\u9650\u3002**\u6240\u4ee5\u300c\u5982\u5b9e\u58f0\u660e\u7684\u91c7\u96c6\u8fb9\u754c\u548c\u8fdb\u7a0b\u5185\u5b58\u300d\u4ecd\u7136\u662f\u4f60\u81ea\u5df1\u7684\u8d23\u4efb\u2014\u2014\u53ea\u6709\u5916\u5c42 run_code \u7684\u65e5\u5fd7\u548c\u7ed3\u679c\u4f1a\u53d7\u5230\u8f93\u51fa\u4e0a\u9650\u548c\u9762\u5411\u6a21\u578b\u7684 spill \u6d41\u6c34\u7ebf\u7ea6\u675f\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261003114057-6ac0e9c964926.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u56fe 22&#xff5c;PTC mode \u4e0d\u662f\u300c\u7ed5\u8fc7\u5b89\u5168\u300d&#xff0c;\u800c\u662f\u300c\u6362\u4e00\u79cd\u8c03\u7528\u5f62\u6001\u300d\u2014\u2014\u6d41\u6c34\u7ebf\u7167\u6837\u8d70\u3002<\/p>\n<h4>6.11\u3000\u540e\u53f0\u4efb\u52a1&#xff1a;\u5de5\u5177\u8dd1\u4e86\u5f88\u4e45\u600e\u4e48\u529e<\/h4>\n<p>\u6709\u4e9b\u5de5\u5177\u4e0d\u662f\u300c\u51e0\u79d2\u949f\u51fa\u7ed3\u679c\u300d&#xff0c;\u800c\u662f\u300c\u8dd1\u51e0\u5206\u949f\u300d\u3002\u5b98\u65b9\u4e3a\u8fd9\u79cd\u60c5\u51b5\u63d0\u4f9b\u4e86\u4e00\u5957\u540e\u53f0\u4efb\u52a1\u673a\u5236&#xff0c;\u6302\u5728\u4e00\u4e2a\u72ec\u7acb\u7684\u670d\u52a1\u4e0a\u3002<\/p>\n<p>\u6ce8\u518c\u4efb\u52a1\u7684\u65b9\u5f0f\u662f&#xff1a;<\/p>\n<p>ctx<span class=\"token punctuation\">.<\/span>jobs<span class=\"token punctuation\">.<\/span><span class=\"token function\">start<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">{<\/span> kind<span class=\"token punctuation\">,<\/span> label<span class=\"token punctuation\">,<\/span> owner<span class=\"token operator\">:<\/span> exec<span class=\"token punctuation\">.<\/span>agent<span class=\"token punctuation\">,<\/span> run <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u5b98\u65b9\u63cf\u8ff0\u7684\u5173\u952e\u8bed\u4e49\u6709\u51e0\u4e2a\u5fc5\u987b\u8bb0\u4f4f&#xff1a;<\/p>\n<table>\n<tr>\u89c4\u5219\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>\u9884\u5148\u4e2d\u6b62\u7684\u8c03\u7528\u7b97\u5931\u8d25<\/td>\n<td>\u6ce8\u518c\u8868\u4f1a\u5728\u8fdb\u5165 producer \u4e3b\u4f53\u524d&#xff0c;\u628a\u300csignal \u5df2\u7ecf\u4e2d\u6b62\u300d\u7684\u8c03\u7528\u5224\u4e3a\u5931\u8d25\u2014\u2014\u56e0\u4e3a\u6b64\u65f6\u6839\u672c\u6ca1\u6709\u4efb\u52a1&#xff0c;\u5b83\u7684 id \u65e0\u6cd5\u6ee1\u8db3\u6210\u529f\u8f93\u51fa\u7684 schema<\/td>\n<\/tr>\n<tr>\n<td>\u53d1\u5e03 id \u4e4b\u540e&#xff0c;\u7528\u4efb\u52a1\u81ea\u5df1\u7684\u53d6\u6d88\u4fe1\u53f7<\/td>\n<td>ctx.jobs.start() \u53d1\u5e03 id \u540e&#xff0c;\u5e94\u8be5\u4f7f\u7528\u4efb\u52a1\u81ea\u6709\u7684\u53d6\u6d88\u4fe1\u53f7&#xff0c;\u800c\u4e0d\u662f exec.signal\u3002\u56e0\u4e3a\u4e4b\u540e\u53d6\u6d88\u5916\u5c42\u8c03\u7528\u53ea\u5e94\u8be5\u505c\u6b62\u300c\u7b49\u5f85\u672c\u6b21\u8c03\u7528\u300d&#xff0c;\u4e0d\u5e94\u8be5\u7ec8\u6b62\u5df2\u7ecf\u53d1\u5e03\u7684\u5de5\u4f5c<\/td>\n<\/tr>\n<tr>\n<td>\u524d\u53f0\u5de5\u4f5c\u4ecd\u7136\u4e0e exec.signal \u8026\u5408<\/td>\n<td>\u4e0d\u8d70\u540e\u53f0\u7684\u8c03\u7528&#xff0c;\u4ecd\u7136\u8ddf\u7740\u8c03\u7528\u65b9\u7684\u53d6\u6d88\u4fe1\u53f7\u8d70<\/td>\n<\/tr>\n<tr>\n<td>\u751f\u547d\u5468\u671f\u5f52\u8c01\u7ba1<\/td>\n<td>\u5df2\u53d1\u5e03\u5de5\u4f5c\u7684\u751f\u547d\u5468\u671f\u5f52 job_kill\u3001owner dispose \u548c\u670d\u52a1 teardown \u6240\u6709<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u800c\u4e14\u540e\u53f0\u4efb\u52a1\u4e0d\u662f\u300c\u6254\u51fa\u53bb\u5c31\u4e0d\u7ba1\u4e86\u300d&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u6a21\u578b\u4fa7\u6709\u63a7\u5236\u5de5\u5177&#xff08;job_*&#xff09;\u53ef\u4ee5\u8bfb\u53d6\u3001\u5217\u51fa\u3001\u7ec8\u6b62\u4efb\u52a1\u3002<\/p>\n<\/li>\n<li>\n<p>\u6210\u529f\u7684\u540e\u53f0\u5206\u652f\u8fd4\u56de\u7c7b\u578b\u5316\u7684\u89c4\u8303\u53e5\u67c4&#xff0c;\u6bd4\u5982 { kind: &#039;background&#039;, jobId }\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b98\u65b9\u7684\u8b66\u544a\u5f88\u5230\u4f4d&#xff1a;**PTC mode \u7edd\u4e0d\u80fd\u901a\u8fc7\u89e3\u6790\u300cstarted background job bash-1\u300d\u8fd9\u79cd\u6587\u672c\u53bb\u53d6\u5f97 id\u3002**\u8981\u62ff id&#xff0c;\u62ff\u7ed3\u6784\u5316\u5b57\u6bb5\u3002<\/p>\n<\/li>\n<\/ul>\n<h4>6.12\u3000UI \u5361\u7247&#xff1a;\u4e00\u5c42\u72ec\u7acb\u7684\u6e32\u67d3\u610f\u56fe<\/h4>\n<p>\u8fd9\u4e00\u8282\u8bb2\u4e00\u4e2a\u5e38\u88ab\u5ffd\u89c6\u4f46\u5f88\u6709\u4ef7\u503c\u7684\u5206\u79bb\u3002\u5de5\u5177\u5728\u754c\u9762\u91cc\u957f\u4ec0\u4e48\u6837&#xff0c;\u548c\u5b83\u7ed9\u6a21\u578b\u4ec0\u4e48\u5185\u5bb9&#xff0c;\u662f\u4e24\u4ef6\u72ec\u7acb\u7684\u4e8b\u3002<\/p>\n<p>\u5b98\u65b9\u7684\u505a\u6cd5\u662f\u8ba9\u5de5\u5177\u8fd4\u56de\u4e00\u4e2a\u300ccard \u6807\u7b7e\u7684\u6e32\u67d3\u610f\u56fe\u300d\u2014\u2014\u4e00\u4e2a\u53ef\u8fa8\u8bc6\u8054\u5408\u7c7b\u578b&#xff0c;UI \u6865\u63a5\u5c42\u636e\u6b64\u5206\u53d1\u3002\u53ef\u7528\u7684\u5361\u7247\u7c7b\u578b\u6709\u8fd9\u4e48\u51e0\u79cd&#xff1a;<\/p>\n<table>\n<tr>\u5361\u7247\u9636\u6bb5\u957f\u4ec0\u4e48\u6837 \/ \u8c01\u5728\u7528<\/tr>\n<tbody>\n<tr>\n<td>generic<\/td>\n<td>\u5f85\u6267\u884c &amp; \u5df2\u5b8c\u6210<\/td>\n<td>\u9ed8\u8ba4\u5361\u7247\u3002\u53ef\u4ee5\u5e26 kind&#xff08;\u56fe\u6807&#xff09;\u548c locations&#xff08;\u6d89\u53ca\u7684\u6587\u4ef6&#xff0c;\u8ba9\u7f16\u8f91\u5668\u80fd\u8ddf\u968f\u8df3\u8f6c&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>terminal<\/td>\n<td>\u5f85\u6267\u884c &amp; \u5df2\u5b8c\u6210<\/td>\n<td>shell \u547d\u4ee4\u3002\u5df2\u5b8c\u6210\u65f6\u643a\u5e26\u539f\u59cb\u8f93\u51fa\u3001\u9000\u51fa\u7801\u3001\u4fe1\u53f7\u3002dsh-tool-bash \u7528\u5b83<\/td>\n<\/tr>\n<tr>\n<td>diff<\/td>\n<td>\u5f85\u6267\u884c &amp; \u5df2\u5b8c\u6210<\/td>\n<td>\u6587\u4ef6\u521b\u5efa&#xff0f;\u4fee\u6539\u7684\u884c\u5185 diff\u3002dsh-tool-fs \u7684 write&#xff0f;edit \u7528\u5b83<\/td>\n<\/tr>\n<tr>\n<td>read<\/td>\n<td>\u4ec5\u5df2\u5b8c\u6210<\/td>\n<td>\u5e26\u884c\u53f7\u3001\u53ef\u9009\u8bed\u6cd5\u9ad8\u4eae\u7684\u4ee3\u7801\u7a97\u53e3<\/td>\n<\/tr>\n<tr>\n<td>search<\/td>\n<td>\u4ec5\u5df2\u5b8c\u6210<\/td>\n<td>\u53d1\u73b0\u578b\u641c\u7d22\u7684\u7ed3\u679c&#xff1a;\u6309\u6587\u4ef6\u5206\u7ec4\u7684\u5339\u914d&#xff0c;\u6216\u6241\u5e73\u8def\u5f84\u5217\u8868<\/td>\n<\/tr>\n<tr>\n<td>web<\/td>\n<td>\u4ec5\u5df2\u5b8c\u6210<\/td>\n<td>web \u68c0\u7d22&#xff1a;kind: &#039;search&#039; \u6216 &#039;fetch&#039;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u6ce8\u610f read&#xff0f;search&#xff0f;web \u6ca1\u6709\u300c\u5f85\u6267\u884c\u300d\u7248\u672c\u3002\u5b98\u65b9\u7684\u89e3\u91ca\u5f88\u76f4\u767d&#xff1a;\u5185\u5bb9\u53ea\u5728 execute \u4e4b\u540e\u624d\u5b58\u5728&#xff0c;\u6240\u4ee5\u5b83\u4eec\u7684 pending \u72b6\u6001\u4fdd\u6301\u4e3a generic \u5361\u7247\u3002<\/p>\n<p>\u5173\u4e8e\u8fd9\u5c42\u7684\u5199\u6cd5&#xff0c;\u5b98\u65b9\u7ed9\u4e86\u51e0\u6761\u786c\u6027\u89c4\u5219&#xff0c;\u90fd\u662f\u300c\u8fdd\u53cd\u4f1a\u51fa\u95ee\u9898\u300d\u7ea7\u522b\u7684&#xff1a;<\/p>\n<ul>\n<li>\n<p>**\u5fc5\u987b\u662f\u7eaf\u51fd\u6570\u3002**\u8fd9\u4e9b\u65b9\u6cd5\u5728\u300c\u5b9e\u65f6\u6d41\u5f0f\u8f93\u51fa\u300d\u548c\u300c\u4f1a\u8bdd\u65e5\u5fd7\u56de\u653e\u300d\u4e24\u79cd\u573a\u666f\u4e0b\u90fd\u4f1a\u8dd1\u3002\u6240\u4ee5\u4e0d\u80fd\u505a I\/O\u3001\u4e0d\u80fd\u8bfb\u4f1a\u8bdd\u72b6\u6001\u3001\u4e0d\u80fd\u7528\u65f6\u949f\u6216\u968f\u673a\u6570\u3002<\/p>\n<\/li>\n<li>\n<p>**UI \u683c\u5f0f\u4e0d\u8fdb\u5165\u6a21\u578b\u7ed3\u679c\u3002**\u56f4\u680f\u4ee3\u7801\u5757\u3001diff\u3001\u76f8\u5bf9\u5316\u8def\u5f84\u90fd\u4e0d\u5e94\u8be5\u4ec5\u4e3a\u670d\u52a1\u754c\u9762\u800c\u8fdb\u5165\u89c4\u8303\u503c\u6216\u6a21\u578b\u5185\u5bb9\u3002<\/p>\n<\/li>\n<li>\n<p>**defineTool \u5bf9\u5c55\u793a\u8def\u5f84\u505a\u8f6f\u6821\u9a8c\u3002**\u683c\u5f0f\u9519\u8bef\u6216\u6765\u81ea\u65e7\u7248\u65e5\u5fd7\u7684\u53c2\u6570\u4f1a\u8ba9\u5305\u88c5\u5668\u8fd4\u56de undefined&#xff08;\u8d70\u901a\u7528\u56de\u9000&#xff09;&#xff0c;\u800c\u4e0d\u662f\u629b\u5f02\u5e38\u2014\u2014\u5c55\u793a\u7edd\u4e0d\u80fd\u5bfc\u81f4\u56de\u653e\u5d29\u6e83\u3002<\/p>\n<\/li>\n<\/ul>\n<p>\u8fd8\u6709\u4e00\u4e2a\u5b9e\u7528\u63d0\u9192&#xff1a;**\u5185\u7f6e Web Client \u4e0d\u6d88\u8d39 presentCall \u6216 presentResult\u3002**\u5b83\u8bfb\u7684\u662f page \u4e0e follow \u8fd0\u8f93\u7684\u539f\u59cb tool\/call \u548c tool\/result \u4e8b\u4ef6&#xff0c;\u7531\u5ba2\u6237\u7aef\u63d2\u4ef6\u5728 keyed slot \u91cc\u6ce8\u518c\u81ea\u5df1\u7684\u7ec4\u4ef6\u3002\u6240\u4ee5\u300c\u53ea\u5b9a\u4e49 Host \u5c55\u793a\u65b9\u6cd5\u4e0d\u4f1a\u589e\u52a0\u4e13\u7528 Web \u5361\u7247\u300d\u3002<\/p>\n<h4>6.13\u3000\u8fd9\u4e00\u7ae0\u8981\u5e26\u8d70\u7684\u4e09\u53e5\u8bdd<\/h4>\n<p>\u8fd9\u4e00\u7ae0\u8981\u5e26\u8d70\u7684\u4e09\u53e5\u8bdd<\/p>\n<li>\n<p>**\u4e09\u9053 waterfall &#043; \u4e00\u9053\u5355\u8c03\u5b88\u536b&#xff0c;\u5c31\u6784\u6210\u5b8c\u6574\u7684\u7b56\u7565\u5c42\u3002**\u5de5\u5177\u53ea\u7ba1\u5e72\u6d3b&#xff0c;\u7b56\u7565\u7edf\u4e00\u6302\u5728\u8fd9\u51e0\u4e2a\u70b9\u4e0a\u3002<\/p>\n<li>\n<p>**\u5b88\u536b\u53ea\u80fd\u62d2\u7edd&#xff0c;\u4e0d\u80fd\u5f3a\u5236\u653e\u884c\u3002**\u8fd9\u8ba9\u5b89\u5168\u4e0d\u4f9d\u8d56\u76d1\u542c\u5668\u987a\u5e8f\u3002<\/p>\n<\/li>\n<li>\n<p>**\u89c4\u8303\u503c\u548c\u6e32\u67d3\u5185\u5bb9\u662f\u4e24\u4ef6\u4e8b\u3002**\u524d\u8005\u7ed9\u7a0b\u5e8f&#xff0c;\u540e\u8005\u7ed9\u6a21\u578b&#xff0c;\u5c55\u793a\u5361\u7247\u7ed9\u754c\u9762\u2014\u2014\u4e09\u4e2a\u8bfb\u8005&#xff0c;\u4e09\u5957\u4ea7\u7269\u3002<\/p>\n<\/li>\n<\/li>\n","protected":false},"excerpt":{"rendered":"<p>\u7b2c 6 \u7ae0\u3000\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf&#xff1a;\u628a\u6743\u529b\u5173\u8fdb\u6d41\u7a0b\u91cc\u672c\u7ae0\u56f4\u7ed5\u300c\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf\u300d\u5c55\u5f00&#xff0c;\u7cfb\u7edf\u62c6\u89e3\u4e00\u6b21\u5de5\u5177\u8c03\u7528\u4ece\u88ab\u6a21\u578b\u70b9\u540d\u5230\u7ed3\u679c\u56de\u586b\u6240\u7ecf\u8fc7\u7684\u6bcf\u4e00\u9053\u5173\u5361&#xff1a;\u5148\u4ee5\u6700\u5c0f\u5de5\u5177\u793a\u4f8b\u5efa\u7acb\u57fa\u51c6&#xff0c;\u518d\u7ed9\u51fa\u5b8c\u6574\u5b57\u6bb5\u8868\u4e0e\u4e09\u9053 waterfall \u7684\u9009\u62e9\u5224\u65ad\u8868&#xff1b;\u968f\u540e\u6df1\u5165\u5355\u8c03\u5b88\u536b\u3001\u51b3\u7b56\u7c7b\u578b\u3001\u53c2\u6570\u4e0e\u7ed3\u679c\u7684\u300c\u7269\u5316  \u51bb\u7ed3\u300d\u3001\u5e76\u53d1\u8c03\u5ea6\u3001\u6c99\u7bb1\u4e0e\u5ba1\u6279\u3001PTC mode\u3001\u540e\u53f0\u4efb\u52a1\u4e0e UI \u5361\u7247\u7b49\u5173\u952e\u673a\u5236&#xff0c;\u6700\u540e\u4ee5\u4e09\u53e5\u8bdd\u6536\u675f\u5168\u7ae0\u8981\u70b9\u3002\u6807\u7b7e&amp;#xff1<\/p>\n","protected":false},"author":2,"featured_media":112462,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12785,12784,12786,12787,188],"topic":[],"class_list":["post-112465","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-ptc-mode","tag-waterfall","tag-12786","tag-12787","tag-188"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>0\u57fa\u7840\u6df1\u5165\u7406\u89e3DeepSeek Harness \u67b6\u6784\u30106\u3011\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf\uff1a\u628a\u6743\u529b\u5173\u8fdb\u6d41\u7a0b\u91cc - \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\/112465.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"0\u57fa\u7840\u6df1\u5165\u7406\u89e3DeepSeek Harness \u67b6\u6784\u30106\u3011\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf\uff1a\u628a\u6743\u529b\u5173\u8fdb\u6d41\u7a0b\u91cc - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u7b2c 6 \u7ae0\u3000\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf&#xff1a;\u628a\u6743\u529b\u5173\u8fdb\u6d41\u7a0b\u91cc\u672c\u7ae0\u56f4\u7ed5\u300c\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf\u300d\u5c55\u5f00&#xff0c;\u7cfb\u7edf\u62c6\u89e3\u4e00\u6b21\u5de5\u5177\u8c03\u7528\u4ece\u88ab\u6a21\u578b\u70b9\u540d\u5230\u7ed3\u679c\u56de\u586b\u6240\u7ecf\u8fc7\u7684\u6bcf\u4e00\u9053\u5173\u5361&#xff1a;\u5148\u4ee5\u6700\u5c0f\u5de5\u5177\u793a\u4f8b\u5efa\u7acb\u57fa\u51c6&#xff0c;\u518d\u7ed9\u51fa\u5b8c\u6574\u5b57\u6bb5\u8868\u4e0e\u4e09\u9053 waterfall \u7684\u9009\u62e9\u5224\u65ad\u8868&#xff1b;\u968f\u540e\u6df1\u5165\u5355\u8c03\u5b88\u536b\u3001\u51b3\u7b56\u7c7b\u578b\u3001\u53c2\u6570\u4e0e\u7ed3\u679c\u7684\u300c\u7269\u5316 \u51bb\u7ed3\u300d\u3001\u5e76\u53d1\u8c03\u5ea6\u3001\u6c99\u7bb1\u4e0e\u5ba1\u6279\u3001PTC mode\u3001\u540e\u53f0\u4efb\u52a1\u4e0e UI \u5361\u7247\u7b49\u5173\u952e\u673a\u5236&#xff0c;\u6700\u540e\u4ee5\u4e09\u53e5\u8bdd\u6536\u675f\u5168\u7ae0\u8981\u70b9\u3002\u6807\u7b7e&amp;#xff1\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/112465.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-10-03T11:40:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261003114056-6ac0e9c8c0cb8.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/112465.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/112465.html\",\"name\":\"0\u57fa\u7840\u6df1\u5165\u7406\u89e3DeepSeek Harness \u67b6\u6784\u30106\u3011\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf\uff1a\u628a\u6743\u529b\u5173\u8fdb\u6d41\u7a0b\u91cc - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-10-03T11:40:58+00:00\",\"dateModified\":\"2026-10-03T11:40:58+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/112465.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/112465.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/112465.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"0\u57fa\u7840\u6df1\u5165\u7406\u89e3DeepSeek Harness \u67b6\u6784\u30106\u3011\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf\uff1a\u628a\u6743\u529b\u5173\u8fdb\u6d41\u7a0b\u91cc\"}]},{\"@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":"0\u57fa\u7840\u6df1\u5165\u7406\u89e3DeepSeek Harness \u67b6\u6784\u30106\u3011\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf\uff1a\u628a\u6743\u529b\u5173\u8fdb\u6d41\u7a0b\u91cc - \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\/112465.html","og_locale":"zh_CN","og_type":"article","og_title":"0\u57fa\u7840\u6df1\u5165\u7406\u89e3DeepSeek Harness \u67b6\u6784\u30106\u3011\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf\uff1a\u628a\u6743\u529b\u5173\u8fdb\u6d41\u7a0b\u91cc - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u7b2c 6 \u7ae0\u3000\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf&#xff1a;\u628a\u6743\u529b\u5173\u8fdb\u6d41\u7a0b\u91cc\u672c\u7ae0\u56f4\u7ed5\u300c\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf\u300d\u5c55\u5f00&#xff0c;\u7cfb\u7edf\u62c6\u89e3\u4e00\u6b21\u5de5\u5177\u8c03\u7528\u4ece\u88ab\u6a21\u578b\u70b9\u540d\u5230\u7ed3\u679c\u56de\u586b\u6240\u7ecf\u8fc7\u7684\u6bcf\u4e00\u9053\u5173\u5361&#xff1a;\u5148\u4ee5\u6700\u5c0f\u5de5\u5177\u793a\u4f8b\u5efa\u7acb\u57fa\u51c6&#xff0c;\u518d\u7ed9\u51fa\u5b8c\u6574\u5b57\u6bb5\u8868\u4e0e\u4e09\u9053 waterfall \u7684\u9009\u62e9\u5224\u65ad\u8868&#xff1b;\u968f\u540e\u6df1\u5165\u5355\u8c03\u5b88\u536b\u3001\u51b3\u7b56\u7c7b\u578b\u3001\u53c2\u6570\u4e0e\u7ed3\u679c\u7684\u300c\u7269\u5316 \u51bb\u7ed3\u300d\u3001\u5e76\u53d1\u8c03\u5ea6\u3001\u6c99\u7bb1\u4e0e\u5ba1\u6279\u3001PTC mode\u3001\u540e\u53f0\u4efb\u52a1\u4e0e UI \u5361\u7247\u7b49\u5173\u952e\u673a\u5236&#xff0c;\u6700\u540e\u4ee5\u4e09\u53e5\u8bdd\u6536\u675f\u5168\u7ae0\u8981\u70b9\u3002\u6807\u7b7e&amp;#xff1","og_url":"https:\/\/www.wsisp.com\/helps\/112465.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-10-03T11:40:58+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20261003114056-6ac0e9c8c0cb8.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/112465.html","url":"https:\/\/www.wsisp.com\/helps\/112465.html","name":"0\u57fa\u7840\u6df1\u5165\u7406\u89e3DeepSeek Harness \u67b6\u6784\u30106\u3011\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf\uff1a\u628a\u6743\u529b\u5173\u8fdb\u6d41\u7a0b\u91cc - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-10-03T11:40:58+00:00","dateModified":"2026-10-03T11:40:58+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/112465.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/112465.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/112465.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"0\u57fa\u7840\u6df1\u5165\u7406\u89e3DeepSeek Harness \u67b6\u6784\u30106\u3011\u5de5\u5177\u6267\u884c\u6d41\u6c34\u7ebf\uff1a\u628a\u6743\u529b\u5173\u8fdb\u6d41\u7a0b\u91cc"}]},{"@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\/112465","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=112465"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/112465\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/112462"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=112465"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=112465"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=112465"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=112465"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}