{"id":103600,"date":"2026-09-11T02:49:55","date_gmt":"2026-09-10T18:49:55","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/103600.html"},"modified":"2026-09-11T02:49:55","modified_gmt":"2026-09-10T18:49:55","slug":"%e8%ae%a9-ai-%e8%87%aa%e5%b7%b1%e8%be%a9%e8%ae%ba%ef%bc%8c%e8%a3%81%e5%88%a4%e8%af%b4%e5%81%9c%e6%89%8d%e5%81%9c-%e5%a4%9a-agent-%e5%af%b9%e6%8a%97%e8%be%a9%e8%ae%ba%e7%b3%bb%e7%bb%9f","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/103600.html","title":{"rendered":"\u8ba9 AI \u81ea\u5df1\u8fa9\u8bba\uff0c\u88c1\u5224\u8bf4\u505c\u624d\u505c\u2014\u2014\u591a Agent \u5bf9\u6297\u8fa9\u8bba\u7cfb\u7edf"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260910184949-6aa2fbcda2c2f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>TL;DR&#xff08;30 \u79d2\u901f\u89c8&#xff09;<\/p>\n<ul>\n<li>\u5355 Agent \u5206\u6790\u5bb9\u6613&#034;\u4e00\u8fb9\u5012&#034;\u2014\u2014\u8981\u4e48\u8fc7\u5ea6\u770b\u591a&#xff0c;\u8981\u4e48\u8fc7\u5ea6\u770b\u7a7a\u3002\u89e3\u51b3\u65b9\u6848&#xff1a;\u8ba9 AI \u81ea\u5df1\u8fa9\u8bba<\/li>\n<li>\u4e09\u89d2\u8272\u6a21\u578b&#xff1a;**Judge&#xff08;\u88c1\u5224&#xff09;**\u8d1f\u8d23\u6d41\u7a0b\u548c\u4e2a\u6027\u5316 Prompt\u3001**Participants&#xff08;\u53c2\u4e0e\u8005&#xff09;**\u5bf9\u6297\u8fa9\u8bba\u3001Judge \u81ea\u4e3b\u5224\u65ad\u6536\u655b<\/li>\n<li>\u4e0d\u662f\u56fa\u5b9a\u8f6e\u6b21\u2014\u2014Judge \u901a\u8fc7\u7ed3\u6784\u5316 JSON {&#034;converged&#034;: true\/false} \u81ea\u4e3b\u51b3\u5b9a\u4f55\u65f6\u8fbe\u6210\u5171\u8bc6<\/li>\n<li>\u88c1\u5224\u4f7f\u7528\u4e2d\u7acb\u7f16\u6392 Prompt&#xff08;\u5265\u79bb\u4eba\u8bbe&#xff09;&#xff0c;\u9632\u6b62\u4e0d\u81ea\u89c9\u5730\u504f\u5411\u67d0\u4e2a\u53c2\u4e0e\u8005<\/li>\n<li>\u5f00\u6e90\u5730\u5740&#xff1a;github.com\/haibingzhao\/easyai<\/li>\n<\/ul>\n<p>\u524d\u60c5\u63d0\u8981&#xff1a;\u5728\u4e0a\u4e00\u7bc7\u6587\u7ae0\u4e2d&#xff0c;\u6211\u4eec\u804a\u4e86 DAG Swarm \u7f16\u6392\u2014\u2014\u7528 Kahn \u7b97\u6cd5\u5b9e\u73b0\u591a Agent \u7684\u5206\u5c42\u5e76\u884c\u6267\u884c\u3002\u4f46\u540c\u4e00\u5c42\u91cc\u7684\u591a\u4e2a Agent \u5404\u8bf4\u5404\u8bdd&#xff0c;\u8c01\u6765\u7efc\u5408\u5224\u65ad&#xff1f;\u7b54\u6848\u662f Deliberation\u2014\u2014\u5bf9\u6297\u8fa9\u8bba &#043; \u88c1\u5224\u88c1\u51b3\u3002<\/p>\n<hr \/>\n<h3>\u4e00\u4e2a Agent \u7684\u76f2\u533a<\/h3>\n<p>\u8ba9\u4e00\u4e2a AI \u5206\u6790\u82f9\u679c\u516c\u53f8\u7684\u6295\u8d44\u4ef7\u503c&#xff0c;\u5b83\u53ef\u80fd\u4f1a\u8bf4&#xff1a;<\/p>\n<p>\u201c\u82f9\u679c\u57fa\u672c\u9762\u5f3a\u52b2&#xff0c;iPhone \u9500\u91cf\u7a33\u5065&#xff0c;\u670d\u52a1\u4e1a\u52a1\u589e\u957f\u8fc5\u731b&#xff0c;\u5efa\u8bae\u4e70\u5165\u3002\u201d<\/p>\n<p>\u542c\u8d77\u6765\u5f88\u6709\u9053\u7406\u3002\u4f46\u4f60\u95ee\u5b83\u98ce\u9669\u56e0\u7d20&#xff0c;\u5b83\u4e5f\u80fd\u5217\u51fa\u4e00\u5806&#xff1a;<\/p>\n<p>\u201c\u4f30\u503c\u504f\u9ad8&#xff0c;\u4e2d\u7f8e\u5173\u7cfb\u5b58\u5728\u4e0d\u786e\u5b9a\u6027&#xff0c;\u521b\u65b0\u653e\u7f13\u3002\u201d<\/p>\n<p>\u7136\u540e\u5462&#xff1f;\u5b83\u53c8\u544a\u8bc9\u4f60&#034;\u7efc\u5408\u6765\u770b\u4ecd\u7136\u503c\u5f97\u4e70\u5165&#034;\u3002<\/p>\n<p>\u8fd9\u5c31\u662f\u5355 Agent \u7684\u76f2\u533a\u2014\u2014\u5b83\u4e0d\u662f\u6ca1\u6709\u770b\u5230\u53cd\u9762\u8bba\u636e&#xff0c;\u800c\u662f\u770b\u5230\u4e86\u4e5f\u4f1a\u5408\u7406\u5316\u6389\u3002LLM \u5929\u7136\u503e\u5411\u4e8e\u7ed9\u51fa\u4e00\u4e2a&#034;\u81ea\u6d3d&#034;\u7684\u7ed3\u8bba&#xff0c;\u800c\u4e0d\u662f\u771f\u6b63\u5bf9\u6297\u6027\u5730\u5ba1\u89c6\u81ea\u5df1\u7684\u89c2\u70b9\u3002<\/p>\n<p>\u6838\u5fc3\u77db\u76fe&#xff1a; \u5355 Agent \u80fd\u770b\u5230\u6b63\u53cd\u4e24\u9762\u7684\u4fe1\u606f&#xff0c;\u4f46\u7f3a\u4e4f\u7ed3\u6784\u6027\u5bf9\u6297\u2014\u2014\u6ca1\u6709\u4eba\u903c\u5b83\u8ba4\u771f\u5bf9\u5f85\u53cd\u9762\u8bba\u636e\u3002<\/p>\n<hr \/>\n<h3>\u7075\u611f\u6765\u81ea\u6cd5\u5ead<\/h3>\n<p>\u6cd5\u5ead\u662f\u600e\u4e48\u63a5\u8fd1\u771f\u76f8\u7684&#xff1f;\u4e0d\u662f\u8ba9\u4e00\u4e2a\u6cd5\u5b98\u81ea\u5df1\u53bb\u8c03\u67e5&#xff0c;\u800c\u662f&#xff1a;<\/p>\n<li>\u63a7\u65b9\u5168\u529b\u8bba\u8bc1\u88ab\u544a\u6709\u7f6a<\/li>\n<li>\u8fa9\u65b9\u5168\u529b\u8bba\u8bc1\u88ab\u544a\u65e0\u7f6a<\/li>\n<li>\u6cd5\u5b98\u5c45\u4e2d\u4e3b\u6301&#xff0c;\u786e\u4fdd\u7a0b\u5e8f\u516c\u6b63<\/li>\n<li>\u53cc\u65b9\u591a\u8f6e\u5bf9\u6297&#xff0c;\u4e92\u76f8\u8d28\u7591<\/li>\n<li>\u6700\u7ec8\u6cd5\u5b98\u57fa\u4e8e\u5b8c\u6574\u8fa9\u8bba\u505a\u51fa\u88c1\u51b3<\/li>\n<p>EasyAI \u7684 Deliberation \u673a\u5236\u5c31\u662f\u8fd9\u4e2a\u601d\u8def&#xff1a; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260910184951-6aa2fbcf7df60.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>Judge&#xff08;\u88c1\u5224&#xff09;<br \/>\n  \u251c\u2500\u2500 \u751f\u6210\u5f00\u573a Prompt \u2192 \u6240\u6709\u53c2\u4e0e\u8005\u54cd\u5e94<br \/>\n  \u251c\u2500\u2500 \u5ba1\u9605\u5b8c\u6574\u5386\u53f2 \u2192 \u4e3a\u6bcf\u4f4d\u53c2\u4e0e\u8005\u751f\u6210\u4e2a\u6027\u5316 Prompt<br \/>\n  \u251c\u2500\u2500 \u81ea\u4e3b\u5224\u65ad\u662f\u5426\u6536\u655b \u2192 \u672a\u6536\u655b\u5219\u7ee7\u7eed\u4e0b\u4e00\u8f6e<br \/>\n  \u2514\u2500\u2500 \u6536\u655b\u540e \u2192 \u8f93\u51fa\u6700\u7ec8\u88c1\u51b3<\/p>\n<p>Participant 1&#xff08;\u591a\u5934&#xff09;<br \/>\n  \u2514\u2500\u2500 \u63a5\u6536\u4e2a\u6027\u5316 Prompt \u2192 \u8f93\u51fa\u8bba\u70b9<\/p>\n<p>Participant 2&#xff08;\u7a7a\u5934&#xff09;<br \/>\n  \u2514\u2500\u2500 \u63a5\u6536\u4e2a\u6027\u5316 Prompt \u2192 \u8f93\u51fa\u8bba\u70b9<\/p>\n<hr \/>\n<h3>\u56db\u4e2a\u5173\u952e\u8bbe\u8ba1\u51b3\u7b56<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260910184952-6aa2fbd0dba6a.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4e00\u53e5\u8bdd\u6982\u62ec&#xff1a; Deliberation \u7684\u6838\u5fc3\u4e0d\u662f&#034;\u8ba9\u591a\u4e2a AI \u8bf4\u8bdd&#034;&#xff0c;\u800c\u662f\u8c01\u6765\u51b3\u5b9a\u8bf4\u4ec0\u4e48\u3001\u4ec0\u4e48\u65f6\u5019\u505c\u3001\u600e\u4e48\u907f\u514d\u504f\u89c1\u3002<\/p>\n<h4>\u51b3\u7b56 1&#xff1a;\u88c1\u5224\u7684\u4e2d\u7acb\u6027\u2014\u2014\u5265\u79bb\u4eba\u8bbe<\/h4>\n<p>\u8fd9\u662f\u6700\u5173\u952e\u7684\u8bbe\u8ba1\u3002\u5982\u679c Judge \u672c\u8eab\u662f\u4e00\u4e2a&#034;\u6295\u8d44\u5206\u6790\u5e08&#034;&#xff0c;\u5b83\u5728\u4e3b\u6301\u8fa9\u8bba\u65f6\u4f1a\u4e0d\u81ea\u89c9\u5730\u504f\u5411\u67d0\u79cd\u5206\u6790\u6846\u67b6\u3002<\/p>\n<p>\u89e3\u51b3\u65b9\u6848&#xff1a;\u5728\u7f16\u6392\u9636\u6bb5&#xff0c;\u66ff\u6362 Judge \u7684 System Prompt \u4e3a\u4e2d\u7acb\u7f16\u6392 Prompt\u3002<\/p>\n<p><span class=\"token comment\">\/\/ DeliberationTaskExecutor.kt<\/span><br \/>\n<span class=\"token keyword\">val<\/span> ORCHESTRATOR_SYSTEM_PROMPT <span class=\"token operator\">&#061;<\/span> <span class=\"token string-literal multiline\"><span class=\"token string\">&#034;&#034;&#034;<br \/>\n    |You are the orchestrator of a multi-agent deliberation session.<br \/>\n    |<br \/>\n    |Your responsibilities:<br \/>\n    |1. Generate clear, balanced prompts that guide participants<br \/>\n    |   through structured discussion<br \/>\n    |2. Objectively assess whether consensus has been reached<br \/>\n    |3. When generating personalized prompts, reference specific<br \/>\n    |   prior arguments and direct participants to address<br \/>\n    |   unresolved points<br \/>\n    |<br \/>\n    |Be neutral, fair, and focused on productive deliberation.<br \/>\n    |Do not inject your own opinions or expertise \u2014 your role<br \/>\n    |is to facilitate the discussion, not participate in it.<br \/>\n&#034;&#034;&#034;<\/span><\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">trimMargin<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u6ce8\u610f\u6700\u540e\u4e00\u53e5&#xff1a;\u201cDo not inject your own opinions \u2014 your role is to facilitate, not participate.\u201d Judge \u5728\u7f16\u6392\u9636\u6bb5\u662f\u7eaf\u7cb9\u7684\u6d41\u7a0b\u7ba1\u7406\u8005&#xff0c;\u4e0d\u5e26\u4efb\u4f55\u89c2\u70b9\u503e\u5411\u3002<\/p>\n<p>\u4f46\u5728\u6700\u7ec8\u88c1\u51b3&#xff08;Verdict&#xff09;\u9636\u6bb5&#xff0c;Judge \u6062\u590d\u81ea\u5df1\u7684\u4eba\u8bbe\u2014\u2014\u56e0\u4e3a\u88c1\u51b3\u672c\u8eab\u5c31\u662f\u9700\u8981\u4e13\u4e1a\u5224\u65ad\u7684\u3002<\/p>\n<h4>\u51b3\u7b56 2&#xff1a;\u4e2a\u6027\u5316 Prompt\u2014\u2014\u6bcf\u8f6e\u91cf\u8eab\u5b9a\u5236<\/h4>\n<p>\u7b2c 1 \u8f6e&#xff1a;\u6240\u6709\u53c2\u4e0e\u8005\u6536\u5230 Judge \u751f\u6210\u7684\u540c\u4e00\u4e2a\u5f00\u573a Prompt\u3002<\/p>\n<p>\u7b2c 2 \u8f6e\u8d77&#xff1a;Judge \u5ba1\u9605\u5b8c\u6574\u8fa9\u8bba\u5386\u53f2\u540e&#xff0c;\u4e3a\u6bcf\u4f4d\u53c2\u4e0e\u8005\u5355\u72ec\u751f\u6210 Prompt&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;converged&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;reason&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u591a\u5934\u5c1a\u672a\u56de\u5e94\u7a7a\u5934\u5173\u4e8e\u4f30\u503c\u6ce1\u6cab\u7684\u8d28\u7591&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;prompts&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;participantId&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;BullResearcher&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;prompt&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u7a7a\u5934\u6307\u51fa PE 35x \u8fdc\u8d85\u5386\u53f2\u5747\u503c\u3002\u8bf7\u4ece\u589e\u957f\u9884\u671f\u89d2\u5ea6\u56de\u5e94\u8fd9\u4e00\u4f30\u503c\u8d28\u7591\u3002\u4f60\u7684\u524d\u4e24\u8f6e\u8bba\u8bc1&#xff08;agent&#061;BullResearcher&#xff09;\u5f3a\u8c03\u4e86\u670d\u52a1\u4e1a\u52a1\u589e\u957f&#xff0c;\u8bf7\u5177\u4f53\u91cf\u5316\u3002&#034;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;participantId&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;BearResearcher&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;prompt&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u591a\u5934\u8ba4\u4e3a\u670d\u52a1\u4e1a\u52a1\u53ef\u4ee5\u652f\u6491\u9ad8\u4f30\u503c\u3002\u8bf7\u4ece\u5386\u53f2\u4f30\u503c\u56de\u5f52\u7684\u89d2\u5ea6&#xff0c;\u5177\u4f53\u5206\u6790\u670d\u52a1\u4e1a\u52a1\u7684\u5929\u82b1\u677f\u3002&#034;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u6bcf\u4e2a Prompt \u90fd&#xff1a;<\/p>\n<ul>\n<li>\u5f15\u7528\u4e86\u5177\u4f53\u7684\u5386\u53f2\u8bba\u70b9&#xff08;\u201c\u7a7a\u5934\u6307\u51fa PE 35x\u201d&#xff09;<\/li>\n<li>\u6307\u5411\u672a\u89e3\u51b3\u7684\u95ee\u9898&#xff08;\u201c\u4f30\u503c\u8d28\u7591\u201d&#xff09;<\/li>\n<li>\u63d0\u9192\u53c2\u4e0e\u8005\u81ea\u5df1\u7684\u8eab\u4efd&#xff08;\u201c\u4f60\u7684\u524d\u4e24\u8f6e\u8bba\u8bc1\u201d&#xff09;<\/li>\n<\/ul>\n<h4>\u51b3\u7b56 3&#xff1a;\u81ea\u4e3b\u6536\u655b\u2014\u2014\u4e0d\u662f\u56fa\u5b9a\u8f6e\u6b21<\/h4>\n<p>\u4f20\u7edf\u505a\u6cd5\u662f\u56fa\u5b9a\u8fa9\u8bba 3 \u8f6e\u5c31\u7ed3\u675f\u3002\u4f46\u6709\u4e9b\u8bae\u9898 2 \u8f6e\u5c31\u591f\u4e86&#xff0c;\u6709\u4e9b\u53ef\u80fd\u9700\u8981 5 \u8f6e\u3002<\/p>\n<p>EasyAI \u7684\u65b9\u6848&#xff1a;Judge \u901a\u8fc7\u7ed3\u6784\u5316 JSON \u81ea\u4e3b\u5224\u65ad\u6536\u655b\u3002<\/p>\n<p><span class=\"token comment\">\/\/ JSON Schema \u7ea6\u675f Judge \u7684\u8f93\u51fa<\/span><br \/>\n<span class=\"token keyword\">val<\/span> ROUND_PROMPTS_SCHEMA <span class=\"token operator\">&#061;<\/span> <span class=\"token string-literal multiline\"><span class=\"token string\">&#034;&#034;&#034;<br \/>\n{<br \/>\n  &#034;type&#034;: &#034;object&#034;,<br \/>\n  &#034;properties&#034;: {<br \/>\n    &#034;converged&#034;: { &#034;type&#034;: &#034;boolean&#034; },<br \/>\n    &#034;reason&#034;: { &#034;type&#034;: &#034;string&#034; },<br \/>\n    &#034;prompts&#034;: {<br \/>\n      &#034;type&#034;: &#034;array&#034;,<br \/>\n      &#034;items&#034;: {<br \/>\n        &#034;type&#034;: &#034;object&#034;,<br \/>\n        &#034;properties&#034;: {<br \/>\n          &#034;participantId&#034;: { &#034;type&#034;: &#034;string&#034; },<br \/>\n          &#034;prompt&#034;: { &#034;type&#034;: &#034;string&#034; }<br \/>\n        },<br \/>\n        &#034;required&#034;: [&#034;participantId&#034;, &#034;prompt&#034;]<br \/>\n      }<br \/>\n    }<br \/>\n  },<br \/>\n  &#034;required&#034;: [&#034;converged&#034;, &#034;reason&#034;]<br \/>\n}<br \/>\n&#034;&#034;&#034;<\/span><\/span><\/p>\n<p>\u5f53 converged &#061; true \u65f6&#xff0c;\u8fa9\u8bba\u7ed3\u675f&#xff0c;\u8fdb\u5165\u88c1\u51b3\u3002\u5f53 converged &#061; false \u65f6&#xff0c;Judge \u5fc5\u987b\u4e3a\u6bcf\u4f4d\u53c2\u4e0e\u8005\u751f\u6210\u4e0b\u4e00\u8f6e\u7684\u4e2a\u6027\u5316 Prompt\u3002<\/p>\n<p>\u5b89\u5168\u7f51&#xff1a; maxRounds&#xff08;\u9ed8\u8ba4 3&#xff09;\u662f\u786c\u6027\u4e0a\u9650&#xff0c;\u9632\u6b62\u65e0\u9650\u8fa9\u8bba\u3002<\/p>\n<p><span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span>round <span class=\"token keyword\">in<\/span> startRound<span class=\"token operator\">..<\/span>deliberation<span class=\"token punctuation\">.<\/span>maxRounds<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token comment\">\/\/ Judge \u751f\u6210\u4e2a\u6027\u5316 Prompt \u6216\u5224\u65ad\u6536\u655b<\/span><br \/>\n    <span class=\"token keyword\">val<\/span> generatedPrompts <span class=\"token operator\">&#061;<\/span> <span class=\"token function\">generateRoundPrompts<\/span><span class=\"token punctuation\">(<\/span><span class=\"token operator\">..<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> <span class=\"token punctuation\">(<\/span>generatedPrompts <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token keyword\">null<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/ converged &#061; true \u2192 \u8fdb\u5165\u88c1\u51b3<\/span><br \/>\n        <span class=\"token keyword\">break<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n    <span class=\"token comment\">\/\/ \u6bcf\u4f4d\u53c2\u4e0e\u8005\u54cd\u5e94<\/span><br \/>\n    <span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span>participantId <span class=\"token keyword\">in<\/span> speakers<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token comment\">\/\/ &#8230;<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token comment\">\/\/ \u88c1\u51b3\u9636\u6bb5<\/span><br \/>\n<span class=\"token keyword\">val<\/span> verdict <span class=\"token operator\">&#061;<\/span> workerExecutor<span class=\"token punctuation\">.<\/span><span class=\"token function\">executeWorker<\/span><span class=\"token punctuation\">(<\/span>judgeSpec<span class=\"token punctuation\">,<\/span> verdictPrompt<span class=\"token punctuation\">,<\/span> <span class=\"token operator\">..<\/span><span class=\"token punctuation\">.<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<h4>\u51b3\u7b56 4&#xff1a;\u53c2\u4e0e\u8005 Prompt \u4e92\u76f8\u9694\u79bb<\/h4>\n<p>\u53c2\u4e0e\u8005 P1 \u770b\u4e0d\u5230 P2 \u7684 System Prompt&#xff08;\u4eba\u8bbe&#xff09;&#xff0c;\u53ea\u80fd\u770b\u5230 P2 \u7684\u53d1\u8a00\u5185\u5bb9\u3002<\/p>\n<p>\u8fa9\u8bba\u5386\u53f2\u7528 XML \u6807\u7b7e\u683c\u5f0f\u5316&#xff0c;\u6e05\u6670\u533a\u5206\u6bcf\u4e2a\u53c2\u4e0e\u8005\u7684\u53d1\u8a00&#xff1a;<\/p>\n<p><span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>deliberation_history<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>entry<\/span> <span class=\"token attr-name\">agent<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>BullResearcher<span class=\"token punctuation\">&#034;<\/span><\/span> <span class=\"token attr-name\">round<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>1<span class=\"token punctuation\">&#034;<\/span><\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    \u82f9\u679c\u670d\u52a1\u4e1a\u52a1\u5e74\u589e\u957f 20%&#xff0c;\u62a4\u57ce\u6cb3\u6df1\u539a&#8230;<br \/>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>entry<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;<\/span>entry<\/span> <span class=\"token attr-name\">agent<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>BearResearcher<span class=\"token punctuation\">&#034;<\/span><\/span> <span class=\"token attr-name\">round<\/span><span class=\"token attr-value\"><span class=\"token punctuation attr-equals\">&#061;<\/span><span class=\"token punctuation\">&#034;<\/span>1<span class=\"token punctuation\">&#034;<\/span><\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n    PE 35x \u8fdc\u8d85\u5386\u53f2\u5747\u503c 22x&#xff0c;\u4f30\u503c\u6ce1\u6cab\u660e\u663e&#8230;<br \/>\n  <span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>entry<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><br \/>\n<span class=\"token tag\"><span class=\"token tag\"><span class=\"token punctuation\">&lt;\/<\/span>deliberation_history<\/span><span class=\"token punctuation\">&gt;<\/span><\/span><\/p>\n<p>\u8fd9\u786e\u4fdd\u4e86\u4fe1\u606f\u5bf9\u79f0\u2014\u2014\u6bcf\u4e2a\u53c2\u4e0e\u8005\u77e5\u9053\u5bf9\u65b9\u8bf4\u4e86\u4ec0\u4e48&#xff0c;\u4f46\u4e0d\u77e5\u9053\u5bf9\u65b9\u7684&#034;\u5185\u5fc3\u60f3\u6cd5&#034;&#xff08;System Prompt&#xff09;\u3002\u5c31\u50cf\u6cd5\u5ead\u4e0a&#xff0c;\u63a7\u8fa9\u53cc\u65b9\u53ef\u4ee5\u4e92\u76f8\u8d28\u8bc1&#xff0c;\u4f46\u4e0d\u80fd\u8bfb\u5bf9\u65b9\u7684\u5185\u5fc3\u3002<\/p>\n<hr \/>\n<h3>\u5b8c\u6574\u7684\u6267\u884c\u6d41\u7a0b<\/h3>\n<p>\u628a\u56db\u4e2a\u51b3\u7b56\u4e32\u8d77\u6765&#xff0c;\u4e00\u6b21\u5b8c\u6574\u7684 Deliberation \u6267\u884c\u6d41\u7a0b\u662f&#xff1a;<\/p>\n<p>\u250c\u2500 \u5f00\u573a\u9636\u6bb5 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502  Judge&#xff08;\u4e2d\u7acb\u7f16\u6392 Prompt&#xff09;\u2192 \u751f\u6210\u5f00\u573a Prompt           \u2502<br \/>\n\u2502  \u6240\u6709\u53c2\u4e0e\u8005\u6536\u5230\u540c\u4e00\u4e2a\u5f00\u573a Prompt \u2192 \u5404\u81ea\u54cd\u5e94            \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                        \u2193<br \/>\n\u250c\u2500 \u8fa9\u8bba\u5faa\u73af&#xff08;Round 2..maxRounds&#xff09;\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502  Judge \u5ba1\u9605\u5b8c\u6574\u5386\u53f2 \u2192 \u8f93\u51fa JSON&#xff1a;                     \u2502<br \/>\n\u2502    converged&#061;true  \u2192 \u8fdb\u5165\u88c1\u51b3                        \u2502<br \/>\n\u2502    converged&#061;false \u2192 \u4e3a\u6bcf\u4f4d\u53c2\u4e0e\u8005\u751f\u6210\u4e2a\u6027\u5316 Prompt     \u2502<br \/>\n\u2502  \u6bcf\u4f4d\u53c2\u4e0e\u8005\u6536\u5230\u81ea\u5df1\u7684 Prompt \u2192 \u5404\u81ea\u54cd\u5e94               \u2502<br \/>\n\u2502  \u6bcf\u8f6e\u7ed3\u675f\u540e\u6301\u4e45\u5316 DeliberationEntry                   \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<br \/>\n                        \u2193<br \/>\n\u250c\u2500 \u88c1\u51b3\u9636\u6bb5 \u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2510<br \/>\n\u2502  Judge&#xff08;\u6062\u590d\u81ea\u8eab\u4eba\u8bbe&#xff09;\u2192 \u6536\u5230\u5b8c\u6574\u8fa9\u8bba\u5386\u53f2              \u2502<br \/>\n\u2502  \u2192 \u8f93\u51fa\u6700\u7ec8\u88c1\u51b3&#xff08;\u7ed3\u8bba &#043; \u7406\u7531 &#043; \u7f6e\u4fe1\u5ea6&#xff09;              \u2502<br \/>\n\u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518<\/p>\n<hr \/>\n<h3>\u65ad\u70b9\u6062\u590d&#xff1a;\u8fa9\u8bba\u5230\u4e00\u534a\u670d\u52a1\u91cd\u542f\u4e86\u600e\u4e48\u529e<\/h3>\n<p>\u8fa9\u8bba\u53ef\u80fd\u6301\u7eed 10-20 \u5206\u949f\u3002\u5982\u679c\u7b2c 3 \u8f6e\u7ed3\u675f\u65f6\u670d\u52a1\u91cd\u542f\u4e86&#xff0c;\u524d 2 \u8f6e\u7684 token \u548c\u8ba8\u8bba\u5185\u5bb9\u4e0d\u80fd\u4e22\u3002<\/p>\n<p>\u65b9\u6848&#xff1a;\u6bcf\u4e2a\u53d1\u8a00\u8005\u5b8c\u6210\u540e\u7acb\u5373\u6301\u4e45\u5316\u3002<\/p>\n<p><span class=\"token comment\">\/\/ \u6bcf\u4e2a\u53c2\u4e0e\u8005\u54cd\u5e94\u540e\u7acb\u5373\u5199\u5165\u6570\u636e\u5e93<\/span><br \/>\nhistory<span class=\"token punctuation\">.<\/span><span class=\"token function\">add<\/span><span class=\"token punctuation\">(<\/span><span class=\"token function\">DeliberationEntry<\/span><span class=\"token punctuation\">(<\/span><br \/>\n    agentId <span class=\"token operator\">&#061;<\/span> participantId<span class=\"token punctuation\">,<\/span><br \/>\n    round <span class=\"token operator\">&#061;<\/span> round<span class=\"token punctuation\">,<\/span><br \/>\n    response <span class=\"token operator\">&#061;<\/span> result<span class=\"token punctuation\">.<\/span>summary<span class=\"token punctuation\">,<\/span><br \/>\n    inputTokens <span class=\"token operator\">&#061;<\/span> result<span class=\"token punctuation\">.<\/span>inputTokens<span class=\"token punctuation\">,<\/span><br \/>\n    outputTokens <span class=\"token operator\">&#061;<\/span> result<span class=\"token punctuation\">.<\/span>outputTokens<span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token comment\">\/\/ &#8230;<\/span><br \/>\n<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token comment\">\/\/ \u589e\u91cf\u6301\u4e45\u5316<\/span><br \/>\nstore<span class=\"token operator\">?<\/span><span class=\"token punctuation\">.<\/span><span class=\"token function\">saveDeliberationHistory<\/span><span class=\"token punctuation\">(<\/span>run<span class=\"token punctuation\">.<\/span>id<span class=\"token punctuation\">,<\/span> task<span class=\"token punctuation\">.<\/span>id<span class=\"token punctuation\">,<\/span> history<span class=\"token punctuation\">.<\/span><span class=\"token function\">toList<\/span><span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>\u6062\u590d\u65f6&#xff0c;\u4ece\u6570\u636e\u5e93\u52a0\u8f7d\u5386\u53f2\u8bb0\u5f55&#xff0c;\u91cd\u5efa token \u8ba1\u6570\u5668&#xff0c;\u627e\u5230\u6700\u540e\u4e00\u4e2a\u5b8c\u6574\u8f6e\u6b21&#xff0c;\u4ece\u4e0b\u4e00\u8f6e\u7ee7\u7eed&#xff1a;<\/p>\n<p><span class=\"token comment\">\/\/ \u4ece\u6301\u4e45\u5316\u5386\u53f2\u91cd\u5efa token \u8ba1\u6570\u5668<\/span><br \/>\n<span class=\"token keyword\">for<\/span> <span class=\"token punctuation\">(<\/span>entry <span class=\"token keyword\">in<\/span> history<span class=\"token punctuation\">)<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    total<span class=\"token punctuation\">.<\/span>input <span class=\"token operator\">&#043;&#061;<\/span> entry<span class=\"token punctuation\">.<\/span>inputTokens<br \/>\n    total<span class=\"token punctuation\">.<\/span>output <span class=\"token operator\">&#043;&#061;<\/span> entry<span class=\"token punctuation\">.<\/span>outputTokens<br \/>\n<span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token comment\">\/\/ \u627e\u5230\u6700\u540e\u5b8c\u6210\u7684\u8f6e\u6b21<\/span><br \/>\n<span class=\"token keyword\">val<\/span> lastCompletedRound <span class=\"token operator\">&#061;<\/span> <span class=\"token comment\">\/* \u627e\u5230\u6240\u6709\u53c2\u4e0e\u8005\u90fd\u5b8c\u6210\u7684\u6700\u540e\u8f6e\u6b21 *\/<\/span><br \/>\n<span class=\"token keyword\">val<\/span> startRound <span class=\"token operator\">&#061;<\/span> lastCompletedRound <span class=\"token operator\">&#043;<\/span> <span class=\"token number\">1<\/span><\/p>\n<p>\u5173\u952e\u7ec6\u8282&#xff1a; token \u8ba1\u6570\u5668\u5fc5\u987b\u4ece\u6301\u4e45\u5316\u6570\u636e\u91cd\u5efa&#xff0c;\u4e0d\u80fd\u4ece\u5185\u5b58\u6062\u590d\u2014\u2014\u56e0\u4e3a\u8fdb\u7a0b\u91cd\u542f\u540e\u5185\u5b58\u5df2\u7ecf\u6e05\u7a7a\u4e86\u3002<\/p>\n<hr \/>\n<h3>\u6d88\u9664\u504f\u89c1\u7684\u56db\u9053\u9632\u7ebf<\/h3>\n<table>\n<tr>\u504f\u89c1\u6765\u6e90\u6d88\u9664\u624b\u6bb5\u4ee3\u7801\u4f4d\u7f6e<\/tr>\n<tbody>\n<tr>\n<td>Judge \u81ea\u8eab\u4eba\u8bbe\u6cc4\u6f0f<\/td>\n<td>\u7f16\u6392\u9636\u6bb5\u66ff\u6362\u4e3a\u4e2d\u7acb Prompt<\/td>\n<td>ORCHESTRATOR_SYSTEM_PROMPT<\/td>\n<\/tr>\n<tr>\n<td>\u53c2\u4e0e\u8005\u4e92\u76f8\u5f71\u54cd\u4eba\u8bbe<\/td>\n<td>Prompt \u4e92\u76f8\u9694\u79bb&#xff0c;\u53ea\u5171\u4eab\u53d1\u8a00\u5185\u5bb9<\/td>\n<td>formatDeliberationHistoryText()<\/td>\n<\/tr>\n<tr>\n<td>LLM \u8dd1\u9898\u6216&#034;\u4eba\u8eab\u653b\u51fb&#034;<\/td>\n<td>JSON Schema \u7ea6\u675f\u8f93\u51fa\u683c\u5f0f<\/td>\n<td>ROUND_PROMPTS_SCHEMA<\/td>\n<\/tr>\n<tr>\n<td>\u65e0\u9650\u8fa9\u8bba<\/td>\n<td>maxRounds \u786c\u6027\u4e0a\u9650<\/td>\n<td>for (round in 1..maxRounds)<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u524d\u7aef\u53ef\u89c6\u5316<\/h3>\n<p>\u8fa9\u8bba\u8fc7\u7a0b\u5728\u524d\u7aef\u4ee5\u8f6e\u6b21\u5361\u7247\u7684\u5f62\u5f0f\u5c55\u793a&#xff1a;<\/p>\n<ul>\n<li>\u8f6e\u6b21\u9009\u62e9\u5668&#xff1a;\u9876\u90e8\u6a2a\u680f&#xff0c;\u70b9\u51fb\u5207\u6362\u4e0d\u540c\u8f6e\u6b21<\/li>\n<li>\u53c2\u4e0e\u8005\u5361\u7247&#xff1a;\u6bcf\u8f6e\u4e2d\u6bcf\u4e2a\u53c2\u4e0e\u8005\u7684\u53d1\u8a00\u72ec\u7acb\u5c55\u793a&#xff0c;\u53ef\u6298\u53e0<\/li>\n<li>\u5f00\u573a Prompt \/ \u8f6e\u6b21 Prompt&#xff1a;\u53ef\u67e5\u770b Judge \u4e3a\u6bcf\u8f6e\u751f\u6210\u7684 Prompt&#xff08;\u7406\u89e3&#034;\u4e3a\u4ec0\u4e48\u8fd9\u4e48\u95ee&#034;&#xff09;<\/li>\n<li>\u6536\u655b\u72b6\u6001\u6307\u793a\u5668&#xff1a;\u5b9e\u65f6\u663e\u793a\u8fa9\u8bba\u662f\u5426\u5df2\u6536\u655b<\/li>\n<li>\u6700\u7ec8\u88c1\u51b3\u533a&#xff1a;\u72ec\u7acb\u5c55\u793a Judge \u7684\u6700\u7ec8\u88c1\u51b3&#xff0c;\u652f\u6301 Markdown \u6e32\u67d3<\/li>\n<\/ul>\n<p>\u8fd0\u884c\u4e2d\u7684\u8fa9\u8bba\u901a\u8fc7\u8f6e\u8be2&#xff08;3 \u79d2\u95f4\u9694&#xff09;\u81ea\u52a8\u5237\u65b0\u2014\u2014\u6bcf\u5f53\u6709\u65b0\u7684 DeliberationEntry \u5199\u5165\u6570\u636e\u5e93&#xff0c;\u524d\u7aef\u5c31\u80fd\u770b\u5230\u3002<\/p>\n<hr \/>\n<h3>\u5b9e\u6218\u6848\u4f8b<\/h3>\n<h4>\u6848\u4f8b 1&#xff1a;\u591a\u7a7a\u8fa9\u8bba&#xff08;\u6295\u8d44\u5206\u6790&#xff09;<\/h4>\n<p>participants: [BullResearcher, BearResearcher]<br \/>\njudge: ResearchManager<br \/>\nmaxRounds: 3<\/p>\n<p>\u591a\u5934\u770b\u5230\u5229\u597d\u6570\u636e&#xff0c;\u7a7a\u5934\u770b\u5230\u98ce\u9669\u56e0\u7d20&#xff0c;\u88c1\u5224\u7efc\u5408\u88c1\u51b3\u3002\u7ecf\u8fc7 2-3 \u8f6e\u5bf9\u6297&#xff0c;\u901a\u5e38\u80fd\u6536\u655b\u5230\u4e00\u4e2a\u5e26\u6709\u660e\u786e\u8bc4\u7ea7&#xff08;\u4e70\u5165\/\u6301\u6709\/\u5356\u51fa&#xff09;\u7684\u6295\u8d44\u65b9\u6848\u3002<\/p>\n<h4>\u6848\u4f8b 2&#xff1a;\u4e09\u65b9\u98ce\u9669\u8fa9\u8bba<\/h4>\n<p>participants: [AggressiveAnalyst, ConservativeAnalyst, NeutralAnalyst]<br \/>\njudge: PortfolioManager<br \/>\nmaxRounds: 3<\/p>\n<p>\u5728\u591a\u7a7a\u8fa9\u8bba\u4e4b\u540e&#xff0c;\u518d\u52a0\u4e00\u8f6e\u4e09\u65b9\u8fa9\u8bba\u2014\u2014\u6fc0\u8fdb\u6d3e\u4e3b\u5f20\u91cd\u4ed3\u3001\u4fdd\u5b88\u6d3e\u4e3b\u5f20\u8f7b\u4ed3\u3001\u4e2d\u7acb\u6d3e\u5e73\u8861\u2014\u2014\u6700\u7ec8\u7531 Portfolio Manager \u7ed9\u51fa\u4ea4\u6613\u51b3\u7b56\u3002<\/p>\n<h4>\u6848\u4f8b 3&#xff1a;\u4ee3\u7801\u65b9\u6848\u8bc4\u5ba1<\/h4>\n<p>participants: [MicroserviceAdvocate, MonolithAdvocate]<br \/>\njudge: TechLead<br \/>\nmaxRounds: 2<\/p>\n<p>\u4e00\u4e2a Agent \u4e3b\u5f20\u5fae\u670d\u52a1\u67b6\u6784&#xff0c;\u53e6\u4e00\u4e2a\u4e3b\u5f20\u5355\u4f53\u2014\u2014\u88c1\u5224\u7ed9\u51fa\u6280\u672f\u63a8\u8350\u3002\u901a\u5e38 2 \u8f6e\u5c31\u591f\u4e86\u3002<\/p>\n<hr \/>\n<h3>\u8e29\u5751\u8bb0\u5f55<\/h3>\n<p>\u4e09\u4e2a\u5751&#xff0c;\u6bcf\u4e2a\u90fd\u548c&#034;LLM \u4e0d\u542c\u8bdd&#034;\u6709\u5173\u3002<\/p>\n<p>\u5751 1&#xff1a;Judge \u7684\u4eba\u8bbe\u6cc4\u6f0f\u3002 \u6700\u521d\u6ca1\u6709\u66ff\u6362 System Prompt&#xff0c;Judge \u5728\u751f\u6210\u4e2a\u6027\u5316 Prompt \u65f6\u4f1a\u4e0d\u81ea\u89c9\u5730\u504f\u5411\u67d0\u4e2a\u53c2\u4e0e\u8005\u2014\u2014\u6bd4\u5982\u7ed9\u591a\u5934\u751f\u6210&#034;\u8bf7\u7ee7\u7eed\u8bba\u8bc1\u589e\u957f\u903b\u8f91&#034;&#xff0c;\u7ed9\u7a7a\u5934\u751f\u6210&#034;\u8bf7\u7b80\u8981\u8bf4\u660e\u98ce\u9669&#034;\u3002\u4fee\u590d&#xff1a;\u5f15\u5165 ORCHESTRATOR_SYSTEM_PROMPT&#xff0c;\u5728\u7f16\u6392\u9636\u6bb5\u5b8c\u5168\u5265\u79bb\u4eba\u8bbe\u3002<\/p>\n<p>\u5751 2&#xff1a;LLM \u5077\u61d2\u63d0\u524d\u6536\u655b\u3002 \u6709\u65f6 Judge \u5728\u7b2c 1 \u8f6e\u5c31\u8fd4\u56de converged: true&#xff0c;\u7406\u7531\u662f&#034;\u53cc\u65b9\u89c2\u70b9\u5df2\u7ecf\u5f88\u6e05\u6670&#034;\u3002\u5b9e\u9645\u4e0a\u53c2\u4e0e\u8005\u8fd8\u6ca1\u6765\u5f97\u53ca\u4e92\u76f8\u8d28\u7591\u3002\u4fee\u590d&#xff1a;\u589e\u52a0 reason \u5b57\u6bb5\u7684\u68c0\u67e5\u2014\u2014\u5982\u679c reasoning \u592a\u77ed\u6216\u6ca1\u6709\u5f15\u7528\u5177\u4f53\u8bba\u70b9&#xff0c;\u4f7f\u7528 fallback Prompt \u5f3a\u5236\u7ee7\u7eed\u3002<\/p>\n<p>\u5751 3&#xff1a;\u6301\u4e45\u5316\u9057\u6f0f token \u7528\u91cf\u3002 \u6700\u521d DeliberationEntry \u4e0d\u5305\u542b token \u5b57\u6bb5&#xff0c;\u65ad\u70b9\u6062\u590d\u540e\u65e0\u6cd5\u7edf\u8ba1\u6210\u672c\u2014\u2014\u56e0\u4e3a\u5185\u5b58\u4e2d\u7684\u8ba1\u6570\u5668\u4e22\u4e86\u3002\u4fee\u590d&#xff1a;\u6bcf\u4e2a Entry \u8bb0\u5f55 inputTokens\u3001outputTokens\u3001cacheReadTokens\u3001cacheWriteTokens\u3001durationMs&#xff0c;\u6062\u590d\u65f6\u9010\u9879\u7d2f\u52a0\u91cd\u5efa\u3002<\/p>\n<hr \/>\n<h3>\u5199\u5728\u6700\u540e<\/h3>\n<p>\u5355 Agent \u5206\u6790\u50cf\u4e00\u4e2a\u4eba\u81ea\u5df1\u4e0b\u68cb\u2014\u2014\u4ed6\u80fd\u770b\u5230\u597d\u51e0\u79cd\u8d70\u6cd5&#xff0c;\u4f46\u6700\u7ec8\u4f1a\u9009\u81ea\u5df1\u6700\u559c\u6b22\u7684\u90a3\u4e00\u79cd\u3002\u591a Agent \u8fa9\u8bba\u50cf\u4e24\u4e2a\u9ad8\u624b\u5bf9\u5f08\u2014\u2014\u6bcf\u4e00\u6b65\u90fd\u4f1a\u88ab\u5bf9\u624b\u6311\u6218&#xff0c;\u6700\u7ec8\u7684\u7ed3\u679c\u66f4\u63a5\u8fd1\u771f\u76f8\u3002<\/p>\n<table>\n<tr>\u7ef4\u5ea6\u5355 Agent \u5206\u6790Deliberation \u8fa9\u8bba<\/tr>\n<tbody>\n<tr>\n<td>\u504f\u89c1\u63a7\u5236<\/td>\n<td>\u4f9d\u8d56 Prompt \u5de5\u7a0b<\/td>\n<td>\u7ed3\u6784\u6027\u5bf9\u6297<\/td>\n<\/tr>\n<tr>\n<td>\u53cd\u9762\u8bba\u636e<\/td>\n<td>\u770b\u5230\u4f46\u53ef\u80fd\u5408\u7406\u5316<\/td>\n<td>\u88ab\u5bf9\u624b\u5f3a\u5236\u63d0\u51fa<\/td>\n<\/tr>\n<tr>\n<td>\u6536\u655b\u5224\u65ad<\/td>\n<td>Agent \u81ea\u5df1\u8bf4\u4e86\u7b97<\/td>\n<td>Judge \u72ec\u7acb\u5224\u65ad<\/td>\n<\/tr>\n<tr>\n<td>\u8f93\u51fa\u8d28\u91cf<\/td>\n<td>\u81ea\u6d3d\u4f46\u53ef\u80fd\u504f\u9887<\/td>\n<td>\u7ecf\u8fc7\u5bf9\u6297\u68c0\u9a8c<\/td>\n<\/tr>\n<tr>\n<td>\u6210\u672c<\/td>\n<td>1 \u6b21 LLM \u8c03\u7528<\/td>\n<td>N \u8f6e \u00d7 M \u53c2\u4e0e\u8005 &#043; \u88c1\u51b3<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>EasyAI \u7684 DeliberationTaskExecutor \u7528 604 \u884c Kotlin \u4ee3\u7801\u5b9e\u73b0\u4e86\u5b8c\u6574\u7684\u5bf9\u6297\u8fa9\u8bba\u7cfb\u7edf\u2014\u2014\u4e2d\u7acb\u88c1\u5224\u3001\u4e2a\u6027\u5316 Prompt\u3001\u81ea\u4e3b\u6536\u655b\u3001\u65ad\u70b9\u6062\u590d\u3001\u589e\u91cf\u6301\u4e45\u5316\u3002\u6838\u5fc3\u601d\u60f3\u53ea\u6709\u4e00\u4e2a&#xff1a;\u8ba9 AI \u50cf\u6cd5\u5ead\u4e00\u6837\u63a5\u8fd1\u771f\u76f8\u3002<\/p>\n<p>\u4e0b\u4e00\u7bc7&#xff0c;\u6211\u4eec\u804a\u804a EasyAI \u7684 TEAM Agent\u2014\u2014Leader \u5982\u4f55\u81ea\u52a8\u5206\u89e3\u4efb\u52a1\u5e76\u534f\u8c03 6 \u4e2a\u4e13\u4e1a\u6210\u5458\u5e76\u884c\u5de5\u4f5c\u3002<\/p>\n<hr \/>\n<p>\u5f00\u6e90\u5730\u5740&#xff1a;https:\/\/github.com\/haibingzhao\/easyai<\/p>\n<p>\u6b22\u8fce Star\u3001Issue \u548c PR\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>TL;DR&#xff08;30 \u79d2\u901f\u89c8&#xff09; \u5355 Agent \u5206\u6790\u5bb9\u6613\\&#8221;\u4e00\u8fb9\u5012\\&#8221;\u2014\u2014\u8981\u4e48\u8fc7\u5ea6\u770b\u591a&#xff0c;\u8981\u4e48\u8fc7\u5ea6\u770b\u7a7a\u3002\u89e3\u51b3\u65b9\u6848&#xff1a;\u8ba9 AI \u81ea\u5df1\u8fa9\u8bba\u4e09\u89d2\u8272\u6a21\u578b&#xff1a;**Judge&#xff08;\u88c1\u5224&#xff09;**\u8d1f\u8d23\u6d41\u7a0b\u548c\u4e2a\u6027\u5316 Prompt\u3001**Participants&#xff08;\u53c2\u4e0e\u8005&#xff09;**\u5bf9\u6297\u8fa9\u8bba\u3001Judge \u81ea\u4e3b\u5224\u65ad\u6536\u655b\u4e0d\u662f\u56fa\u5b9a\u8f6e\u6b21\u2014\u2014Judge \u901a\u8fc7\u7ed3\u6784\u5316 JSON {\\&#8221;converged\\&#8221;: true<\/p>\n","protected":false},"author":2,"featured_media":103597,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[50],"topic":[],"class_list":["post-103600","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>\u8ba9 AI \u81ea\u5df1\u8fa9\u8bba\uff0c\u88c1\u5224\u8bf4\u505c\u624d\u505c\u2014\u2014\u591a Agent \u5bf9\u6297\u8fa9\u8bba\u7cfb\u7edf - \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\/103600.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u8ba9 AI \u81ea\u5df1\u8fa9\u8bba\uff0c\u88c1\u5224\u8bf4\u505c\u624d\u505c\u2014\u2014\u591a Agent \u5bf9\u6297\u8fa9\u8bba\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"TL;DR&#xff08;30 \u79d2\u901f\u89c8&#xff09; \u5355 Agent \u5206\u6790\u5bb9\u6613&quot;\u4e00\u8fb9\u5012&quot;\u2014\u2014\u8981\u4e48\u8fc7\u5ea6\u770b\u591a&#xff0c;\u8981\u4e48\u8fc7\u5ea6\u770b\u7a7a\u3002\u89e3\u51b3\u65b9\u6848&#xff1a;\u8ba9 AI \u81ea\u5df1\u8fa9\u8bba\u4e09\u89d2\u8272\u6a21\u578b&#xff1a;**Judge&#xff08;\u88c1\u5224&#xff09;**\u8d1f\u8d23\u6d41\u7a0b\u548c\u4e2a\u6027\u5316 Prompt\u3001**Participants&#xff08;\u53c2\u4e0e\u8005&#xff09;**\u5bf9\u6297\u8fa9\u8bba\u3001Judge \u81ea\u4e3b\u5224\u65ad\u6536\u655b\u4e0d\u662f\u56fa\u5b9a\u8f6e\u6b21\u2014\u2014Judge \u901a\u8fc7\u7ed3\u6784\u5316 JSON {&quot;converged&quot;: true\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/103600.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-10T18:49:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260910184949-6aa2fbcda2c2f.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/103600.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/103600.html\",\"name\":\"\u8ba9 AI \u81ea\u5df1\u8fa9\u8bba\uff0c\u88c1\u5224\u8bf4\u505c\u624d\u505c\u2014\u2014\u591a Agent \u5bf9\u6297\u8fa9\u8bba\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-10T18:49:55+00:00\",\"dateModified\":\"2026-09-10T18:49:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/103600.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/103600.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/103600.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u8ba9 AI \u81ea\u5df1\u8fa9\u8bba\uff0c\u88c1\u5224\u8bf4\u505c\u624d\u505c\u2014\u2014\u591a Agent \u5bf9\u6297\u8fa9\u8bba\u7cfb\u7edf\"}]},{\"@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":"\u8ba9 AI \u81ea\u5df1\u8fa9\u8bba\uff0c\u88c1\u5224\u8bf4\u505c\u624d\u505c\u2014\u2014\u591a Agent \u5bf9\u6297\u8fa9\u8bba\u7cfb\u7edf - \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\/103600.html","og_locale":"zh_CN","og_type":"article","og_title":"\u8ba9 AI \u81ea\u5df1\u8fa9\u8bba\uff0c\u88c1\u5224\u8bf4\u505c\u624d\u505c\u2014\u2014\u591a Agent \u5bf9\u6297\u8fa9\u8bba\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"TL;DR&#xff08;30 \u79d2\u901f\u89c8&#xff09; \u5355 Agent \u5206\u6790\u5bb9\u6613\"\u4e00\u8fb9\u5012\"\u2014\u2014\u8981\u4e48\u8fc7\u5ea6\u770b\u591a&#xff0c;\u8981\u4e48\u8fc7\u5ea6\u770b\u7a7a\u3002\u89e3\u51b3\u65b9\u6848&#xff1a;\u8ba9 AI \u81ea\u5df1\u8fa9\u8bba\u4e09\u89d2\u8272\u6a21\u578b&#xff1a;**Judge&#xff08;\u88c1\u5224&#xff09;**\u8d1f\u8d23\u6d41\u7a0b\u548c\u4e2a\u6027\u5316 Prompt\u3001**Participants&#xff08;\u53c2\u4e0e\u8005&#xff09;**\u5bf9\u6297\u8fa9\u8bba\u3001Judge \u81ea\u4e3b\u5224\u65ad\u6536\u655b\u4e0d\u662f\u56fa\u5b9a\u8f6e\u6b21\u2014\u2014Judge \u901a\u8fc7\u7ed3\u6784\u5316 JSON {\"converged\": true","og_url":"https:\/\/www.wsisp.com\/helps\/103600.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-10T18:49:55+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260910184949-6aa2fbcda2c2f.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/103600.html","url":"https:\/\/www.wsisp.com\/helps\/103600.html","name":"\u8ba9 AI \u81ea\u5df1\u8fa9\u8bba\uff0c\u88c1\u5224\u8bf4\u505c\u624d\u505c\u2014\u2014\u591a Agent \u5bf9\u6297\u8fa9\u8bba\u7cfb\u7edf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-10T18:49:55+00:00","dateModified":"2026-09-10T18:49:55+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/103600.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/103600.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/103600.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"\u8ba9 AI \u81ea\u5df1\u8fa9\u8bba\uff0c\u88c1\u5224\u8bf4\u505c\u624d\u505c\u2014\u2014\u591a Agent \u5bf9\u6297\u8fa9\u8bba\u7cfb\u7edf"}]},{"@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\/103600","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=103600"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/103600\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/103597"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=103600"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=103600"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=103600"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=103600"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}