{"id":111387,"date":"2026-10-01T02:27:36","date_gmt":"2026-09-30T18:27:36","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/111387.html"},"modified":"2026-10-01T02:27:36","modified_gmt":"2026-09-30T18:27:36","slug":"ai%e5%b7%a5%e7%a8%8bjev-%e5%86%b3%e7%ad%96%e6%a8%a1%e5%9e%8b%e7%ac%ac%e4%ba%8c%e7%af%87%ef%bc%9a%e4%b8%89%e5%8e%9f%e8%af%ad%e3%80%81%e4%b8%80%e6%ac%a1%e5%a4%9a%e9%97%ae%e4%b8%8e%e7%bd%ae%e4%bf%a1","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/111387.html","title":{"rendered":"[AI\u5de5\u7a0b]Jev \u51b3\u7b56\u6a21\u578b\u7b2c\u4e8c\u7bc7\uff1a\u4e09\u539f\u8bed\u3001\u4e00\u6b21\u591a\u95ee\u4e0e\u7f6e\u4fe1\u5ea6\u8def\u7531\uff0c\u4ece Playground \u5230\u80fd\u4e0a\u7ebf\u7684\u4ee3\u7801"},"content":{"rendered":"<p>&#x1f4a1; \u4e0a\u4e00\u7bc7\u8bb2\u7684\u662f\u5b83\u662f\u4ec0\u4e48&#xff0c;\u8fd9\u4e00\u7bc7\u53ea\u8bb2\u600e\u4e48\u7528\u5b83\u3002\u5b98\u65b9\u7ed9\u7684\u5165\u53e3\u975e\u5e38\u7a84&#xff1a;\u4e00\u4e2a POST https:\/\/api.typesafe.ai\/v1\/systemone&#xff0c;\u8bf7\u6c42\u4f53\u4f60\u53ea\u8981\u7ba1\u4e09\u6837\u2014\u2014state\u3001model\u3001questions&#xff1b;\u8fd4\u56de\u4f53\u53ea\u8981\u7ba1\u4e24\u6837\u2014\u2014answers \u548c usage\u3002\u5269\u4e0b\u7684\u5168\u662f\u5de5\u7a0b\u95ee\u9898\u3002<\/p>\n<p>\u4f46\u771f\u8981\u628a\u5b83\u653e\u8fdb\u670d\u52a1\u91cc&#xff0c;\u95ee\u9898\u4f1a\u4e00\u4e32\u63a5\u4e00\u4e32\u5192\u51fa\u6765&#xff1a;\u4e00\u6b21\u80fd\u95ee\u51e0\u9053\u9898&#xff1f;\u9898\u76ee\u4e4b\u95f4\u4f1a\u4e0d\u4f1a\u4e92\u76f8\u5f71\u54cd&#xff1f;Choice \u7684\u9009\u9879\u80fd\u5199\u591a\u5c11\u4e2a&#xff0c;Score \u7684\u7b49\u7ea7\u6709\u4e0a\u9650\u5417&#xff1f;confidence 0.78 \u5230\u5e95\u7b97\u9ad8\u8fd8\u662f\u7b97\u4f4e&#xff1f;\u53ea\u8bfb\u64cd\u4f5c\u548c\u653e\u6b3e\u64cd\u4f5c\u7528\u540c\u4e00\u6761\u9608\u503c\u884c\u4e0d\u884c&#xff1f;jev-latest \u54ea\u5929\u6362\u6210\u65b0\u7248\u672c&#xff0c;\u6211\u8c03\u597d\u7684\u9608\u503c\u8fd8\u5728\u4e0d\u5728&#xff1f;<\/p>\n<p>\u8fd9\u4e9b\u5b98\u65b9\u6587\u6863\u90fd\u7b54\u4e86&#xff0c;\u53ea\u662f\u6563\u5728\u516d\u4e2a\u5730\u65b9&#xff1a;api \u8bb2\u8bf7\u6c42\u4f53&#xff0c;models \u8bb2\u4ef7\u683c\u548c\u9650\u989d&#xff0c;primitives \u8bb2\u4e09\u79cd\u539f\u8bed&#xff0c;confidence \u8bb2\u9608\u503c&#xff0c;patterns \u8bb2\u5957\u8def&#xff0c;cookbooks \u8bb2\u91cd\u6392\u3001function calling \u548c\u62a4\u680f\u3002<\/p>\n<p>\u9ebb\u70e6\u7684\u5730\u65b9\u4e0d\u5728\u4e8e\u6587\u6863\u5199\u5f97\u5c11&#xff0c;\u800c\u5728\u4e8e\u8fd9\u4e9b\u7b54\u6848\u4e92\u76f8\u7275\u5236&#xff1a;\u53ea\u6309\u8f93\u5165\u8ba1\u8d39\u8fd9\u4e00\u6761\u4f1a\u903c\u4f60\u6539\u5199 state \u7684\u5f62\u6001&#xff0c;state \u585e\u4e86\u4ec0\u4e48\u53c8\u76f4\u63a5\u51b3\u5b9a\u6982\u7387\u5206\u5e03\u957f\u4ec0\u4e48\u6837&#xff0c;\u5206\u5e03\u5f62\u72b6\u6700\u540e\u51b3\u5b9a\u4f60\u7684\u9608\u503c\u6562\u4e0d\u6562\u8ba9\u4ee3\u7801\u81ea\u52a8\u6267\u884c\u3002\u6240\u4ee5\u5355\u770b\u4efb\u4f55\u4e00\u9875\u90fd\u5f97\u4e0d\u51fa&#034;\u80fd\u4e0d\u80fd\u4e0a\u7ebf&#034;\u7684\u7ed3\u8bba\u3002<\/p>\n<h3>\u6240\u4ee5\u8fd9\u4e00\u7bc7\u7eaf\u8bb2\u5b9e\u64cd&#xff1a;\u4e00\u6b21\u8c03\u7528\u7684\u9aa8\u67b6\u957f\u4ec0\u4e48\u6837\u3001\u4e09\u539f\u8bed\u600e\u4e48\u9009\u3001\u4e00\u6b21\u591a\u95ee\u5230\u5e95\u7701\u5728\u54ea\u3001\u7f6e\u4fe1\u5ea6\u600e\u4e48\u5207\u6210\u4e09\u6863&#xff0c;\u4ee5\u53ca\u610f\u56fe\u8def\u7531\u3001\u68c0\u7d22\u91cd\u6392\u3001function calling\u3001LLM \u62a4\u680f\u8fd9\u56db\u4e2a\u5b98\u65b9 pattern \u5404\u81ea\u600e\u4e48\u843d\u5230\u4ee3\u7801\u91cc\u3002\u6536\u76ca\u6570\u5b57\u5168\u90e8\u6807\u6ce8\u6765\u6e90&#xff0c;\u4e0d\u63ba\u6211\u81ea\u5df1\u7684\u5b9e\u9a8c\u7ed3\u679c\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20260930182734-6abd5496850ec.png\" alt=\"jev-in-practice-cover \u7b2c\u4e8c\u7bc7\" \/><\/h3>\n<h3>1. \u52a8\u624b\u4e4b\u524d\u5fc5\u987b\u5148\u8bb0\u4f4f\u7684 5 \u4e2a\u6570<\/h3>\n<p>\u8fd9\u4e00\u7ae0\u56de\u7b54&#xff1a;\u8c03\u7528\u524d\u8981\u9489\u4f4f\u54ea\u51e0\u4e2a\u6570&#xff0c;\u4ee5\u53ca\u4ece\u62ff\u5230 key \u5230\u7b2c\u4e00\u6b21\u8c03\u901a\u6709\u54ea\u4e09\u6761\u8def\u5f84\u3002<\/p>\n<p>\u8fd9 5 \u4e2a\u6570\u51b3\u5b9a\u4e86\u540e\u9762\u6240\u6709\u8bbe\u8ba1\u5224\u65ad&#xff0c;\u5148\u644a\u6210\u4e00\u5f20\u8868\u3002<\/p>\n<table>\n<tr>\u7ef4\u5ea6\u5b98\u65b9\u7ed9\u7684\u6570\u5b83\u7ba1\u4f4f\u4e86\u4ec0\u4e48\u4e0a\u7ebf\u65f6\u600e\u4e48\u5904\u7406<\/tr>\n<tbody>\n<tr>\n<td>\u4ef7\u683c<\/td>\n<td>$42\/Btok&#xff0c;\u5373 $0.042\/Mtok&#xff1b;\u53ea\u6309\u8f93\u5165\u8ba1\u8d39&#xff0c;\u8f93\u51fa token \u514d\u8d39<\/td>\n<td>\u6210\u672c\u53ea\u8ddf&#034;\u5582\u8fdb\u53bb\u591a\u5c11&#034;\u6709\u5173&#xff0c;\u8ddf\u7b54\u6848\u957f\u77ed\u65e0\u5173<\/td>\n<td>\u6309 usage.input_tokens \u8bb0\u8d26&#xff0c;\u4e0d\u8981\u6309\u8c03\u7528\u6b21\u6570\u4f30\u6210\u672c<\/td>\n<\/tr>\n<tr>\n<td>\u4e0a\u4e0b\u6587\u9884\u7b97<\/td>\n<td>\u6bcf\u8bf7\u6c42 64k&#xff08;state &#043; \u6240\u6709\u95ee\u9898\u5408\u8ba1&#xff09;&#xff1b;\u53e6\u6709 32k&#xff08;state &#043; \u6700\u957f\u7684\u90a3\u4e00\u4e2a\u95ee\u9898&#xff09;<\/td>\n<td>\u4e24\u628a\u5c3a\u5b50&#xff1a;\u603b\u9884\u7b97\u548c\u5355\u9898\u9884\u7b97<\/td>\n<td>\u957f state \u52a0\u591a\u9898\u65f6\u4e24\u6761\u90fd\u7b97&#xff0c;\u8d85\u54ea\u6761\u780d\u54ea\u8fb9<\/td>\n<\/tr>\n<tr>\n<td>\u901f\u7387<\/td>\n<td>250,000 tokens\/\u79d2\u30011,200 requests\/\u5206\u949f&#xff1b;\u8d85\u9650\u8fd4\u56de 429<\/td>\n<td>\u4e00\u4e2a\u5361\u4f53\u91cf&#xff0c;\u4e00\u4e2a\u5361\u9891\u6b21<\/td>\n<td>\u9000\u907f &#043; \u961f\u5217\u4e0a\u9650&#xff0c;\u522b\u8ba9\u91cd\u8bd5\u628a\u81ea\u5df1\u6253\u7a7f<\/td>\n<\/tr>\n<tr>\n<td>\u8f93\u5165\u7c7b\u578b<\/td>\n<td>string \/ object \/ array&#xff0c;\u4ec5\u6587\u672c&#xff0c;\u4e0d\u63a5\u53d7\u56fe\u7247\u3001\u97f3\u9891\u3001\u89c6\u9891<\/td>\n<td>\u591a\u6a21\u6001\u8fd9\u6761\u7ebf\u73b0\u5728\u4e0d\u5b58\u5728<\/td>\n<td>\u56fe\u7247\u5148\u8f6c\u6210\u7ed3\u6784\u5316\u63cf\u8ff0&#xff0c;\u6216\u8005\u7559\u5728\u4f60\u81ea\u5df1\u7684\u94fe\u8def\u91cc<\/td>\n<\/tr>\n<tr>\n<td>\u8bed\u8a00<\/td>\n<td>\u82f1\u8bed\u4e3a\u4e3b&#xff0c;CJK \u80fd\u7528\u4f46\u7cbe\u5ea6\u66f4\u4f4e<\/td>\n<td>\u4e2d\u6587\u573a\u666f\u7684\u51c6\u786e\u7387\u4e0a\u9650<\/td>\n<td>\u4e0a\u4e2d\u6587\u524d\u5148\u7528\u81ea\u5bb6\u6570\u636e\u6d4b&#xff0c;\u8def\u7531\u65f6\u683c\u5916\u5173\u6ce8 confidence<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4ef7\u683c\u90a3\u884c\u503c\u5f97\u5355\u72ec\u8bf4\u4e00\u53e5&#xff1a;\u8f93\u51fa\u514d\u8d39\u4e0d\u53ea\u662f\u4fbf\u5b9c&#xff0c;\u5b83\u6539\u53d8\u4e86\u5199\u6cd5\u2014\u2014\u4f60\u4e0d\u5fc5\u518d\u538b\u7f29\u7b54\u6848\u957f\u5ea6\u3001\u4e0d\u5fc5\u5f3a\u5236\u7cbe\u7b80\u8fd4\u56de\u7ed3\u6784&#xff0c;\u751a\u81f3\u53ef\u4ee5\u8ba9\u6bcf\u9053\u9898\u591a\u5e26\u4e00\u6863\u515c\u5e95\u9009\u9879\u800c\u4e0d\u82b1\u94b1\u3002\u7b2c 4 \u7ae0\u7684 fan-out \u6536\u76ca\u548c\u7b2c 6 \u7ae0\u7684\u91cd\u6392\u6253\u5206\u90fd\u5efa\u7acb\u5728\u8fd9\u6761\u4e0a\u3002\u8fd8\u6709\u4e24\u4e2a\u6570\u5f88\u5bb9\u6613\u88ab\u5ffd\u7565\u3002\u9650\u989d\u672c\u8eab\u4e0d\u7a33&#xff1a;\u5b98\u65b9\u660e\u786e\u8b66\u544a\u5f53\u524d\u9700\u6c42\u6781\u5927\u3001\u9650\u989d\u53ef\u80fd\u968f\u65f6\u8c03\u6574&#xff0c;\u66f4\u9ad8\u9650\u989d\u8d70 custom \/ enterprise&#xff0c;\u6240\u4ee5\u522b\u628a 1,200 rpm \u5f53\u6210\u67b6\u6784\u5bb9\u91cf\u5199\u8fdb\u6269\u7f29\u5bb9\u516c\u5f0f&#xff0c;\u8981\u6309&#034;\u968f\u65f6\u53ef\u80fd\u53d8\u5c0f&#034;\u6765\u8bbe\u8ba1\u9000\u907f\u548c\u56de\u843d\u3002\u4e0d\u505a per-tenant \u5fae\u8c03&#xff1a;\u4e0d fine-tune\u3001\u4e0d LoRA&#xff0c;\u6240\u6709\u8d26\u6237\u540c\u4e00\u4efd\u6743\u91cd&#xff0c;\u60f3\u8ba9\u6a21\u578b\u6309\u4f60\u7684\u53e3\u5f84\u5224&#xff0c;\u53ea\u6709 state\u3001instructions\u3001criteria \u4e09\u5904\u5851\u5f62\u5165\u53e3\u2014\u2014\u8fd9\u4e5f\u662f\u540e\u9762\u51e0\u7ae0\u53cd\u590d\u56de\u5230 criteria \u63aa\u8f9e\u7684\u539f\u56e0\u3002<\/p>\n<p>\u90a3 250k tokens\/\u79d2 \u548c 1,200 rpm \u8c01\u4f1a\u5148\u649e\u4e0a&#xff1f;\u7b80\u5355\u6362\u7b97\u4e00\u4e0b\u5c31\u77e5\u9053&#xff08;\u524d\u63d0\u53ea\u6709\u5b98\u65b9\u8fd9\u4e24\u4e2a\u6570\u548c\u5b98\u65b9\u793a\u4f8b\u7684 392 input_tokens&#xff09;&#xff1a;400 token \u91cf\u7ea7\u7684\u77ed\u8bf7\u6c42\u8dd1\u6ee1 1,200 rpm&#xff0c;\u6298\u7b97\u53ea\u6709\u7ea6 8,000 tokens\/\u79d2&#xff0c;\u79bb 250,000 \u5dee\u4e24\u4e2a\u6570\u91cf\u7ea7&#xff0c;\u5148\u649e\u7684\u662f rpm&#xff1b;\u53cd\u8fc7\u6765 state \u5f88\u5927&#xff08;\u6587\u6863\u7ea7\u8d1f\u8f7d&#xff09;\u65f6&#xff0c;64k \u4e0a\u9650\u610f\u5473\u7740\u540c\u4e00\u79d2\u6700\u591a\u7ea6 3.9 \u4e2a\u6ee1\u8f7d\u8bf7\u6c42\u5c31\u80fd\u9876\u5230 250k tokens\/\u79d2&#xff0c;\u5148\u649e\u7684\u662f token \u7ebf\u3002\u6240\u4ee5\u77ed\u8bf7\u6c42\u573a\u666f\u8981\u505a\u7684\u662f\u9891\u63a7&#xff0c;\u957f\u6587\u6863\u573a\u666f\u8981\u505a\u7684\u662f\u5e76\u53d1\u95f8\u3002<\/p>\n<p>\u63a5\u5165\u7684\u4e09\u6761\u8def\u5f84\u5206\u5de5\u662f&#xff1a;Playground \u8bd5\u63aa\u8f9e\u3001\u770b\u8fd4\u56de\u957f\u4ec0\u4e48\u6837 \u2500\u2500&gt; curl \u786e\u8ba4\u9274\u6743\u4e0e\u8bf7\u6c42\u4f53\u5f62\u72b6 \u2500\u2500&gt; SDK \u6216\u88f8 HTTP \u8fdb\u670d\u52a1\u3002Playground \u5728 https:\/\/console.typesafe.ai\/playground&#xff0c;\u767b\u5f55\u5c31\u80fd\u7528&#xff1a;\u628a\u6587\u672c\u7c98\u8fdb\u53bb\u5f53 state&#xff0c;\u52a0\u95ee\u9898&#xff0c;\u591a\u4e2a\u7ed3\u679c\u4e00\u6b21\u6df7\u7740\u770b&#xff1b;API key \u5728 https:\/\/console.typesafe.ai\/keys\u3002Playground \u7701\u6389\u7684\u662f\u63aa\u8f9e\u8fed\u4ee3\u90a3\u4e00\u8f6e\u6210\u672c\u2014\u2014criteria \u600e\u4e48\u5199&#xff0c;\u5728\u6ca1\u770b\u5230\u8fd4\u56de\u7684 probabilities \u4e4b\u524d\u5f88\u96be\u51ed\u7a7a\u8c03\u3002curl \u8fd9\u6761\u5efa\u8bae\u6bcf\u4e2a\u4eba\u5148\u8d70\u4e00\u904d&#xff0c;\u5b83\u80fd\u628a&#034;\u5b98\u65b9\u793a\u4f8b&#034;\u548c&#034;\u6211\u7684\u670d\u52a1&#034;\u4e4b\u95f4\u90a3\u5c42\u58f3\u5265\u6389&#xff08;key \u4e00\u5f8b\u8d70\u73af\u5883\u53d8\u91cf&#xff09;&#xff1a;<\/p>\n<p><span class=\"token function\">curl<\/span> <span class=\"token parameter variable\">-X<\/span> POST https:\/\/api.typesafe.ai\/v1\/systemone <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-H<\/span> <span class=\"token string\">&#034;Authorization: Bearer <span class=\"token variable\">$TYPESAFE_API_KEY<\/span>&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-H<\/span> <span class=\"token string\">&#034;Content-Type: application\/json&#034;<\/span> <span class=\"token punctuation\">\\\\<\/span><br \/>\n  <span class=\"token parameter variable\">-d<\/span> &#064;- <span class=\"token operator\">&lt;&lt;<\/span><span class=\"token string\">&#039;EOF&#039;<br \/>\n  { &#034;state&#034;: &#034;Hi, I&#039;ve been trying to connect my Stripe account for 3 days and the integration keeps failing. I&#039;m losing sales. Please help ASAP.&#034;,<br \/>\n    &#034;model&#034;: &#034;jev-latest&#034;,<br \/>\n    &#034;questions&#034;: { &#034;urgency&#034;: { &#034;type&#034;: &#034;noul&#034;, &#034;instructions&#034;: &#034;Does this message express urgency?&#034; } } }<br \/>\nEOF<\/span><\/p>\n<p>\u8981\u770b\u5f53\u524d\u6709\u54ea\u4e9b\u6a21\u578b&#xff0c;\u5c31 GET https:\/\/api.typesafe.ai\/v1\/models&#xff0c;\u8fd4\u56de name \/ description \/ release_date \u4e09\u4e2a\u5b57\u6bb5\u2014\u2014\u8fd9\u4e09\u4e2a\u5b57\u6bb5\u5c31\u662f\u7248\u672c pin \u7684\u6570\u636e\u6765\u6e90&#xff0c;\u7b2c 7 \u7ae0\u4f1a\u56de\u5230\u8fd9\u91cc\u3002SDK \u8fd9\u6761\u8def\u5f84&#xff1a;pip install typesafe-sdk&#xff08;\u6216 uv add typesafe-sdk&#xff09;&#xff0c;\u8981\u6c42 Python &gt;&#061; 3.10&#xff0c;\u5ba2\u6237\u7aef\u81ea\u52a8\u8bfb\u73af\u5883\u53d8\u91cf TYPESAFE_API_KEY&#xff0c;\u9ed8\u8ba4\u6a21\u578b jev-latest&#xff0c;\u63d0\u4f9b TypeSafeClient \u548c AsyncTypeSafeClient&#xff0c;\u652f\u6301 context manager&#xff1b;JavaScript \u4fa7\u5305\u540d\u662f &#064;typesafe-ai\/sdk&#xff0c;new TypeSafeClient()&#xff0c;\u5217\u6a21\u578b\u662f await client.models.list()\u3002<\/p>\n<h5>Q1&#xff1a;\u5b98\u65b9 SDK \u53ea\u6709 Python \u548c JavaScript&#xff0c;\u6211\u7684 Go \/ Java \u670d\u52a1\u600e\u4e48\u529e&#xff1f;<\/h5>\n<p>\u76f4\u63a5\u8c03 HTTP\u3002\u5b98\u65b9 Client SDKs \u9875\u53ea\u5217\u4e86\u8fd9\u4e24\u79cd\u8bed\u8a00&#xff0c;\u4f46\u540c\u4e00\u9875\u539f\u6587\u5199\u660e\u4e5f\u53ef\u4ee5\u76f4\u63a5\u8c03\u7528 HTTP API \u4ece\u4efb\u610f\u8bed\u8a00\u63a5\u5165\u3002SDK \u7684\u589e\u503c\u70b9\u5176\u5b9e\u5c31\u4e24\u6761&#xff1a;\u9ed8\u8ba4\u5904\u7406\u91cd\u8bd5&#xff08;\u6307\u6570\u9000\u907f&#xff09;&#xff0c;\u4ee5\u53ca\u9075\u5b88 retry-after \u5934\u3002\u81ea\u5df1\u5b9e\u73b0\u7684\u8bdd\u8fd9\u4e24\u6761\u5f97\u8865\u4e0a&#xff0c;\u522b\u53ea\u5199\u4e00\u4e2a RestTemplate \u5c31\u4e0a\u7ebf\u3002<\/p>\n<hr \/>\n<h3>2. \u4e00\u6b21\u8c03\u7528\u7684\u9aa8\u67b6&#xff1a;state &#043; questions \u8fdb&#xff0c;answers &#043; usage \u51fa<\/h3>\n<p>\u8fd9\u4e00\u7ae0\u56de\u7b54&#xff1a;\u8bf7\u6c42\u4f53\u548c\u54cd\u5e94\u4f53\u5230\u5e95\u957f\u4ec0\u4e48\u6837&#xff0c;\u95ee\u9898 key \u548c\u7b54\u6848\u662f\u600e\u4e48\u5bf9\u9f50\u7684\u3002<\/p>\n<p>\u8bf7\u6c42                                              \u54cd\u5e94<br \/>\nstate&#xff08;string | object | array&#xff09;  \u2500\u2500\u2510   \u250c\u2500\u2500 answers.&lt;\u4f60\u81ea\u5df1\u5b9a\u7684 id&gt;&#xff1a;type &#043; \u7b54\u6848\u5b57\u6bb5 &#043; probabilities &#043; confidence<br \/>\nquestions&#xff08;map&lt;id, Question&gt;&#xff09;    \u2500\u2500\u2518   \u2514\u2500\u2500 model&#xff08;\u771f\u5b9e\u7248\u672c ID&#xff0c;\u5982 jev-1.13.0&#xff09; &#043; usage&#xff08;input_tokens \/ output_tokens&#xff09;<\/p>\n<p>\u8bf7\u6c42\u4f53\u9876\u5c42\u4e09\u4e2a\u5b57\u6bb5\u5168\u90e8\u5fc5\u586b&#xff1a;state&#xff08;string \/ object \/ array&#xff0c;\u8981\u88ab\u5224\u65ad\u7684\u5185\u5bb9&#xff09;\u3001model&#xff08;\u5982 jev-latest&#xff09;\u3001questions&#xff08;map&lt;\u4f60\u81ea\u5b9a\u7684 id, Question&gt;&#xff0c;id \u53ea\u7528\u6765\u5bf9\u9f50\u7b54\u6848\u3001\u4e0d\u53c2\u4e0e\u63a8\u7406&#xff09;\u3002\u6bcf\u9053\u9898\u91cc type \u548c instructions \u5fc5\u586b&#xff0c;criteria \u770b\u539f\u8bed&#xff1a;noul \u53ef\u9009\u3001choice \u5fc5\u586b map\u3001score \u5fc5\u586b\u6709\u5e8f\u6570\u7ec4&#xff08;\u7b2c 3 \u7ae0\u7ec6\u8bb2&#xff09;\u3002\u5b98\u65b9 quickstart \u7684\u5b8c\u6574\u4f8b\u5b50\u5c31\u662f\u8fd9\u4e00\u5f62\u72b6\u7684\u6700\u597d\u8bf4\u660e&#xff08;\u4e0b\u9762\u6574\u6bb5\u662f\u5b98\u65b9\u793a\u4f8b&#xff0c;\u5b57\u6bb5\u3001\u53d6\u503c\u3001\u6ce8\u91ca\u4e00\u5f8b\u539f\u6837&#xff0c;\u53ea\u538b\u6389\u4e86\u591a\u4f59\u6298\u884c&#xff09;&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> typesafe_sdk <span class=\"token keyword\">import<\/span> Choice<span class=\"token punctuation\">,<\/span> Noul<span class=\"token punctuation\">,<\/span> Score<span class=\"token punctuation\">,<\/span> TypeSafeClient<\/p>\n<p>client <span class=\"token operator\">&#061;<\/span> TypeSafeClient<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\nticket <span class=\"token operator\">&#061;<\/span> <span class=\"token string\">&#034;Hi, I&#039;ve been trying to connect my Stripe account for 3 days and the integration keeps failing. I&#039;m losing sales. Please help ASAP.&#034;<\/span><\/p>\n<p>response <span class=\"token operator\">&#061;<\/span> client<span class=\"token punctuation\">.<\/span>system_one<span class=\"token punctuation\">(<\/span><br \/>\n    state<span class=\"token operator\">&#061;<\/span>ticket<span class=\"token punctuation\">,<\/span><br \/>\n    questions<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">{<\/span><br \/>\n        <span class=\"token string\">&#034;department&#034;<\/span><span class=\"token punctuation\">:<\/span> Choice<span class=\"token punctuation\">(<\/span><br \/>\n            instructions<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;Which team should handle this&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            criteria<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;billing&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;Payment or subscription issues&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                      <span class=\"token string\">&#034;technical&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;Bugs or integration problems&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                      <span class=\"token string\">&#034;sales&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;Pricing or account questions&#034;<\/span><span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string\">&#034;frustration&#034;<\/span><span class=\"token punctuation\">:<\/span> Score<span class=\"token punctuation\">(<\/span><br \/>\n            instructions<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;How frustrated the customer appears&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            criteria<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;Calm, just stating facts&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;Frustrated but civil&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;Very angry, strong language&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        <span class=\"token string\">&#034;is_urgent&#034;<\/span><span class=\"token punctuation\">:<\/span> Noul<span class=\"token punctuation\">(<\/span>instructions<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;The message conveys urgency or time-sensitivity&#034;<\/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 punctuation\">)<\/span><\/p>\n<p><span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>response<span class=\"token punctuation\">.<\/span>answers<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;department&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>choice<span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># &#034;technical&#034;<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>response<span class=\"token punctuation\">.<\/span>answers<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;frustration&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>score<span class=\"token punctuation\">)<\/span>  <span class=\"token comment\"># 1.0<\/span><br \/>\n<span class=\"token keyword\">print<\/span><span class=\"token punctuation\">(<\/span>response<span class=\"token punctuation\">.<\/span>answers<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;is_urgent&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>noul<span class=\"token punctuation\">)<\/span>     <span class=\"token comment\"># 1.0<\/span><\/p>\n<p>\u5b98\u65b9\u540c\u4e00\u4f8b\u5b50\u7684\u54cd\u5e94\u4f53&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;model&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;jev-1.13.0&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;answers&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string-property property\">&#034;department&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;choice&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;choice&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;technical&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;confidence&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0.78<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;probabilities&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;technical&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0.85<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;sales&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0.0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;billing&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0.15<\/span> <span class=\"token punctuation\">}<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;frustration&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;score&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;score&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1.0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;confidence&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1.0<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;legend&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;0&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;Calm, just stating facts&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;1&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;Frustrated but civil&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;2&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;Very angry, strong language&#034;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;probabilities&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;0&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0.0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;1&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1.0<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;2&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">0.0<\/span> <span class=\"token punctuation\">}<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string-property property\">&#034;is_urgent&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;noul&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;noul&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">1.0<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;usage&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;input_tokens&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">392<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;output_tokens&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token number\">65<\/span> <span class=\"token punctuation\">}<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u4e09\u4ef6\u4e8b\u4e00\u773c\u80fd\u8bfb\u51fa\u6765&#xff1a;answers \u7684\u952e\u5c31\u662f\u4f60\u5199\u7684 id&#xff1b;\u6bcf\u6761\u7b54\u6848\u81ea\u5e26 type&#xff0c;\u65b9\u4fbf\u4ee3\u7801\u6309\u7c7b\u578b\u5206\u6d3e&#xff1b;noul \u90a3\u6761\u6ca1\u6709 confidence&#xff0c;\u53ea\u6709 noul \u6570\u503c&#xff08;\u7b2c 3 \u7ae0\u8bb2\u4e3a\u4ec0\u4e48&#xff09;\u3002usage \u91cc\u90a3\u4e24\u4e2a\u6570\u662f\u540e\u9762\u6240\u6709\u6210\u672c\u63a8\u5bfc\u7684\u951a\u70b9&#xff1a;\u4e00\u6b21\u4e09\u9898\u8bf7\u6c42&#xff0c;\u8f93\u5165 392\u3001\u8f93\u51fa 65&#xff0c;\u800c\u8f93\u51fa\u8fd9\u4e00\u534a\u4e0d\u6536\u8d39\u3002<\/p>\n<p>state \u7684\u4e09\u79cd\u5f62\u6001\u5404\u6709\u5206\u5de5&#xff0c;\u5b98\u65b9 concepts\/state \u9875\u7684\u539f\u6587\u53e3\u5f84&#xff1a;string \u653e\u5355\u6761\u6d88\u606f\u3001\u6587\u7ae0\u3001\u6bb5\u843d&#xff08;&#034;My card was charged twice.&#034;&#xff09;&#xff1b;object \u653e\u547d\u540d\u5b57\u6bb5\u3001\u76f8\u5173\u8bb0\u5f55\u3001\u5e94\u7528\u5f53\u524d\u72b6\u6001&#xff08;{&#034;message&#034;: &#034;My card was charged twice.&#034;, &#034;order_id&#034;: &#034;A-104&#034;}&#xff09;&#xff1b;array \u653e\u6d88\u606f\u5e8f\u5217\u3001\u591a\u6761\u8bb0\u5f55&#xff08;[&#034;Hi&#034;, &#034;My customer number is TS1337.&#034;, &#034;My card was charged twice.&#034;]&#xff09;\u3002\u5b98\u65b9\u5efa\u8bae\u5927\u591a\u6570\u8bf7\u6c42\u7528 object&#xff0c;\u8ba9\u6bcf\u4e00\u90e8\u5206\u6709\u63cf\u8ff0\u6027\u540d\u5b57\u3001\u5173\u7cfb\u6e05\u6670&#xff1b;\u7b80\u5355\u573a\u666f\u624d\u7528 string\u3002\u8fd9\u6761\u5efa\u8bae\u7684\u4ef7\u503c\u4e0d\u5728\u6392\u7248&#xff0c;\u5728\u4e8e\u628a&#034;\u8fd9\u6bb5\u6587\u672c\u662f\u4ec0\u4e48\u89d2\u8272&#034;\u663e\u5f0f\u4ea4\u7ed9\u5224\u65ad\u2014\u2014\u540c\u4e00\u4e2a order_id \u5b57\u6bb5\u540d&#xff0c;\u6bd4\u5728\u81ea\u7136\u8bed\u8a00\u91cc\u63d2\u4e00\u53e5&#034;\u8ba2\u5355\u53f7\u662f A-104&#034;\u66f4\u7a33&#xff08;\u8fd9\u662f\u6211\u7684\u8bfb\u6cd5&#xff0c;\u5b98\u65b9\u53ea\u7ed9\u4e86&#034;\u5173\u7cfb\u6e05\u6670&#034;\u8fd9\u4e2a\u7406\u7531&#xff09;\u3002<\/p>\n<p>\u5b57\u6bb5\u8bbf\u95ee\u65b9\u5f0f&#xff0c;SDK \u4f8b\u5b50\u7ed9\u7684\u662f response.answers[&#034;department&#034;].choice&#xff1b;\u5b98\u65b9\u53e6\u4e00\u5904\u8ba1\u6570\u4f8b\u5b50\u91cc\u7684\u5199\u6cd5\u662f result.nouls[&#034;item_0&#034;].noul&#xff0c;\u4e5f\u5c31\u662f\u8bf4\u6279\u91cf\u540c\u79cd\u95ee\u9898\u65f6\u7528\u539f\u8bed\u540d\u7684\u590d\u6570\u5bb9\u5668&#xff0c;\u952e\u8fd8\u662f\u4f60\u7684 id\u3002\u5ba2\u6237\u7aef\u521d\u59cb\u5316\u8fd8\u80fd\u76f4\u63a5\u6307\u5b9a\u7248\u672c&#xff1a;TypeSafeClient(model&#061;&#034;jev-1.13&#034;)\u3002<\/p>\n<h5>Q1&#xff1a;\u95ee\u9898\u7684 key \u4f1a\u4e0d\u4f1a\u5f71\u54cd\u5224\u65ad\u7ed3\u679c&#xff1f;\u4e00\u6b21\u8bf7\u6c42\u80fd\u95ee\u51e0\u9053\u9898\u3001\u80fd\u653e\u56fe\u7247\u5417&#xff1f;<\/h5>\n<p>key \u4e0d\u4f1a\u5f71\u54cd\u3002\u5b98\u65b9\u660e\u786e\u5199\u4e86&#xff1a;\u95ee\u9898\u7684 id \u4e0d\u4f1a\u9001\u8fdb\u6a21\u578b\u3001\u4e0d\u53c2\u4e0e\u63a8\u7406&#xff0c;\u53ea\u7528\u4e8e\u628a\u56de\u7b54\u5bf9\u9f50\u56de\u4f60\u7684 key\u3002\u6240\u4ee5\u60f3\u5728\u9898\u76ee\u91cc\u8868\u8fbe\u7684\u4e1c\u897f\u53ea\u80fd\u5199\u8fdb instructions \u548c criteria&#xff0c;\u628a\u4e1a\u52a1\u542b\u4e49\u85cf\u5728 id \u540d\u5b57\u91cc\u662f\u65e0\u6548\u7684\u2014\u2014\u8fd9\u662f\u4e2a\u5f88\u5bb9\u6613\u72af\u7684\u9519&#xff0c;\u5c24\u5176\u662f\u4e60\u60ef\u7528\u5b57\u6bb5\u540d\u81ea\u89e3\u91ca\u7684\u540e\u7aef\u540c\u5b66\u3002\u9898\u6570\u6ca1\u6709\u4e0a\u9650&#xff0c;\u5b98\u65b9\u7ed9\u7684\u662f token \u9884\u7b97&#xff1a;\u6bcf\u8bf7\u6c42 64k&#xff08;state &#043; \u6240\u6709\u95ee\u9898\u5408\u8ba1&#xff09;\u3001\u53e6\u5916 32k&#xff08;state &#043; \u6700\u957f\u7684\u90a3\u4e00\u4e2a\u95ee\u9898&#xff09;&#xff0c;\u8bf4\u767d\u4e86\u9898\u6570\u662f\u88ab\u9884\u7b97\u7ba1\u7684&#xff0c;\u4e0d\u662f\u88ab\u914d\u989d\u7ba1\u7684&#xff0c;\u7b2c 4 \u7ae0\u4f1a\u628a\u8fd9\u4e2a\u6362\u7b97\u8bb2\u5b9e\u3002\u56fe\u7247\u3001\u97f3\u9891\u3001\u89c6\u9891\u90fd\u4e0d\u5728\u63a5\u53d7\u8303\u56f4\u91cc&#xff0c;\u4e09\u79cd\u5f62\u6001\u5168\u662f\u6587\u672c\u2014\u2014\u591a\u6a21\u6001\u7684\u6d3b\u8981\u7559\u5728\u4f60\u81ea\u5df1\u7684\u94fe\u8def\u91cc\u505a\u5b8c&#xff0c;\u518d\u628a\u7ed3\u8bba\u4f5c\u4e3a\u6587\u672c\u653e\u8fdb state\u3002<\/p>\n<hr \/>\n<h3>3. \u4e09\u539f\u8bed\u600e\u4e48\u9009&#xff1a;Noul \/ Choice \/ Score<\/h3>\n<p>\u8fd9\u4e00\u7ae0\u56de\u7b54&#xff1a;\u4e09\u79cd\u539f\u8bed\u8fd4\u56de\u7684\u5b57\u6bb5\u5dee\u5728\u54ea\u3001\u8c01\u5e26 confidence\u3001\u9009\u9879\u548c\u7b49\u7ea7\u5404\u6709\u591a\u5c11\u4e0a\u9650\u3001instructions \u7684\u7ed3\u6784\u5316\u5199\u6cd5\u600e\u4e48\u7528\u3002<\/p>\n<p>\u4e00\u5f20\u8868\u9489\u6b7b\u5dee\u5f02&#xff08;\u8fd9\u5f20\u8868\u5c31\u662f\u9009\u578b\u7684\u5168\u90e8\u4f9d\u636e&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u539f\u8bed\u5b83\u5728\u56de\u7b54\u4ec0\u4e48criteriacriteria \u5f62\u6001\u4e0a\u9650\u8fd4\u56de\u5b57\u6bb5confidence<\/tr>\n<tbody>\n<tr>\n<td>noul<\/td>\n<td>\u67d0\u4ef6\u4e8b\u6210\u4e0d\u6210\u7acb&#xff08;\u662f \/ \u5426&#xff09;<\/td>\n<td>\u53ef\u9009<\/td>\n<td>{&#034;true&#034;: &#034;&#8230;&#034;, &#034;false&#034;: &#034;&#8230;&#034;}&#xff0c;\u5b9a\u4e49&#034;\u662f&#034;\u548c&#034;\u5426&#034;\u5404\u610f\u5473\u7740\u4ec0\u4e48<\/td>\n<td>\u6587\u6863\u672a\u7ed9\u4e0a\u9650<\/td>\n<td>\u53ea\u6709 noul \u4e00\u4e2a\u6570\u503c<\/td>\n<td>\u4e0d\u5e26<\/td>\n<\/tr>\n<tr>\n<td>choice<\/td>\n<td>\u7ed9\u5b9a\u9009\u9879\u91cc\u54ea\u4e00\u4e2a\u6700\u8d34&#xff08;\u9009\u9879\u4e4b\u95f4\u6bd4\u8f83&#xff09;<\/td>\n<td>\u5fc5\u586b<\/td>\n<td>&#034;\u9009\u9879 \u2192 \u5224\u636e\u63cf\u8ff0&#034;\u7684 map&#xff0c;\u67d0\u9009\u9879\u53ef\u4ee5\u7ed9 null<\/td>\n<td>\u6bcf\u4e2a Choice \u6700\u591a 255 \u4e2a\u9009\u9879<\/td>\n<td>choice &#043; probabilities&#xff08;\u548c\u4e3a 1&#xff09;<\/td>\n<td>\u5e26<\/td>\n<\/tr>\n<tr>\n<td>score<\/td>\n<td>\u843d\u5728\u6709\u5e8f\u6863\u4f4d\u7684\u7b2c\u51e0\u7ea7<\/td>\n<td>\u5fc5\u586b<\/td>\n<td>\u6709\u5e8f\u7b49\u7ea7\u63cf\u8ff0\u6570\u7ec4<\/td>\n<td>\u81f3\u5c11 2 \u7ea7&#xff0c;API \u6700\u591a\u63a5\u53d7 10 \u7ea7<\/td>\n<td>score &#043; legend &#043; probabilities<\/td>\n<td>\u5e26<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>noul \u7684 criteria \u5b57\u6bb5\u540d\u5c31\u662f &#034;true&#034; \/ &#034;false&#034;&#xff0c;\u5b98\u65b9\u7ed9\u7684\u5f62\u6001\u662f {&#034;true&#034;: &#034;Explicitly time-sensitive&#034;, &#034;false&#034;: &#034;No urgency expressed&#034;}\u3002\u4e0d\u5199\u4e5f\u80fd\u8dd1&#xff0c;\u4f46&#034;\u4ec0\u4e48\u7b97\u5426&#034;\u5c31\u53ea\u80fd\u9760\u6a21\u578b\u731c\u2014\u2014\u5199\u6e05\u695a\u662f\u628a\u53e3\u5f84\u4ece\u6a21\u578b\u4fa7\u642c\u5230\u4f60\u4ee3\u7801\u4fa7\u7684\u4e3b\u8981\u624b\u6bb5\u3002score \u7684\u8fd4\u56de\u91cc\u90a3\u4e2a legend \u628a\u6570\u5b57\u6863\u4f4d\u6620\u5c04\u56de\u4f60\u5199\u7684\u63cf\u8ff0&#xff08;\u5b98\u65b9\u793a\u4f8b\u54cd\u5e94\u91cc\u5c31\u662f {&#034;0&#034;: &#034;Calm, just stating facts&#034;, &#034;1&#034;: &#8230;, &#034;2&#034;: &#8230;}&#xff09;&#xff0c;\u8fd9\u4e2a\u5b57\u6bb5\u8be5\u8ddf\u7740\u7b54\u6848\u4e00\u8d77\u843d\u5e93&#xff0c;\u5426\u5219\u534a\u5e74\u540e\u4f60\u53ea\u77e5\u9053\u67d0\u6761\u8bb0\u5f55 score \u662f 1.0&#xff0c;\u4e0d\u77e5\u9053 1.0 \u5f53\u65f6\u662f\u54ea\u53e5\u63cf\u8ff0\u2014\u2014\u800c criteria \u662f\u4f1a\u6539\u7684\u3002<\/p>\n<p>instructions \u9664\u4e86\u5b57\u7b26\u4e32&#xff0c;\u8fd8\u80fd\u7ed9\u5bf9\u8c61&#xff0c;\u7528\u6765\u628a&#034;\u95ee\u9898&#034;\u548c&#034;\u5b83\u8981\u5f15\u7528\u7684\u6570\u636e&#034;\u5206\u5f00\u3002\u5b98\u65b9\u539f\u6587\u793a\u4f8b&#xff1a;<\/p>\n<p><span class=\"token string-property property\">&#034;instructions&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;potential_duplicate&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span> <span class=\"token string-property property\">&#034;name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;John Smith&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;location&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;Oakland, California&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string-property property\">&#034;last_employer&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;Google&#034;<\/span> <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;question&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;Is the resume for the same person as &#096;potential_duplicate&#096;?&#034;<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u5173\u952e\u662f\u95ee\u9898\u91cc\u90a3\u4e2a\u53cd\u5f15\u53f7\u5305\u4f4f\u7684\u5b57\u6bb5\u540d&#xff1a;potential_duplicate \u5728\u5bf9\u8c61\u91cc\u662f\u6570\u636e&#xff0c;\u5728 question \u91cc\u662f\u4e00\u4e2a\u5f15\u7528\u70b9\u3002\u8bf4\u767d\u4e86&#xff0c;\u8fd9\u662f\u628a&#034;\u5f85\u6bd4\u8f83\u7684\u53e6\u4e00\u6761\u8bb0\u5f55&#034;\u4ece\u6b63\u6587\u91cc\u62ce\u51fa\u6765\u5355\u72ec\u547d\u540d&#xff0c;state \u653e\u4e3b\u5bf9\u8c61&#xff0c;instructions \u653e\u5bf9\u7167\u5bf9\u8c61&#xff0c;\u4e24\u8005\u4e0d\u6df7\u6210\u4e00\u5768\u6587\u672c\u3002<\/p>\n<p>Choice \u548c Noul \u7b54\u7684\u4e0d\u662f\u540c\u4e00\u4e2a\u95ee\u9898&#xff0c;\u8fd9\u662f\u9009\u578b\u91cc\u6700\u5bb9\u6613\u7cca\u7684\u4e00\u70b9&#xff1a;Choice \u662f\u5019\u9009\u4e4b\u95f4\u4e92\u76f8\u6bd4\u8f83\u3001\u5fc5\u51fa\u4e00\u4e2a\u2014\u2014\u54ea\u6015\u6240\u6709\u9009\u9879\u90fd\u4e0d\u5408\u9002&#xff0c;\u5b83\u4e5f\u4e00\u5b9a\u4f1a\u9009\u4e00\u4e2a&#xff1b;Noul \u662f\u6bcf\u4e2a\u5019\u9009\u5404\u81ea\u5224\u3001\u53ef\u4ee5\u5168\u90e8\u4e3a\u5426\u2014\u2014\u201c\u4e00\u4e2a\u90fd\u4e0d\u63a8\u8350&#034;\u662f\u4e00\u4e2a\u5408\u6cd5\u7ed3\u679c\u3002\u5b98\u65b9 skill suggestion cookbook \u7684\u505a\u6cd5\u628a\u8fd9\u4e24\u8005\u540c\u65f6\u7528\u4e86&#xff0c;\u7406\u7531\u5f88\u6e05\u695a&#xff1a;\u540c\u4e00\u4efd\u5019\u9009\u96c6\u4e0a&#xff0c;Choice \u8d1f\u8d23&#034;\u9009\u54ea\u4e2a\u6280\u80fd\u201d&#xff08;\u76f8\u5bf9&#xff09;&#xff0c;Noul \u8d1f\u8d23&#034;\u5230\u5e95\u8981\u4e0d\u8981\u63a8\u8350&#034;&#xff08;\u7edd\u5bf9&#xff0c;\u53ef\u80fd\u5168\u4f4e&#xff09;\u3002\u53ea\u8981\u4f60\u7684\u573a\u666f\u91cc\u5b58\u5728&#034;\u5b81\u53ef\u4e0d\u7b54&#034;\u8fd9\u4e2a\u9009\u9879&#xff0c;\u5c31\u4e0d\u8981\u53ea\u5199 Choice\u3002\u5b98\u65b9\u56db\u4e2a pattern \u91cc\u8fd8\u6709\u4e00\u6761 composite scoring&#xff0c;\u539f\u6587\u662f \u201cBreak a complex judgment into atomic scores, combine with weights you control in code.\u201d\u2014\u2014\u590d\u6742\u5224\u65ad\u62c6\u6210\u539f\u5b50 Score&#xff0c;\u6743\u91cd\u4e0e\u5408\u6210\u903b\u8f91\u7559\u5728\u4ee3\u7801\u91cc\u3002\u8fd9\u6761\u548c\u4e0a\u4e00\u53e5\u662f\u540c\u4e00\u4e2a\u610f\u601d\u7684\u4e24\u9762&#xff1a;\u6392\u5e8f\u3001\u52a0\u6743\u3001\u9608\u503c\u8fd9\u4e9b\u7b97\u672f&#xff0c;\u5b98\u65b9\u4e00\u5f8b\u4ea4\u7ed9\u4f60\u7684\u4ee3\u7801&#xff0c;\u5b83\u53ea\u8d1f\u8d23\u6bcf\u9898\u7684\u5206\u3002<\/p>\n<h5>Q1&#xff1a;255 \u4e2a\u9009\u9879\u300110 \u4e2a\u7b49\u7ea7&#xff0c;\u662f\u5efa\u8bae\u503c\u8fd8\u662f\u786c\u9650\u5236&#xff1f;<\/h5>\n<p>\u6309 API \u6821\u9a8c\u7b97\u786c\u9650\u5236&#xff1a;\u5b98\u65b9 api \u9875\u5199\u7684\u662f&#034;\u6bcf\u4e2a Choice \u6700\u591a 255 \u4e2a\u9009\u9879&#034;\u3001\u201cScore \u81f3\u5c11 2 \u7ea7\u3001API \u6700\u591a\u63a5\u53d7 10 \u7ea7\u201d&#xff0c;\u8d85\u51fa\u4f1a\u8d70 422&#xff0c;\u800c\u4e14\u54cd\u5e94 body \u4f1a\u6307\u51fa\u662f\u54ea\u4e2a\u5b57\u6bb5\u4e0d\u5408\u683c\u3002\u6240\u4ee5\u522b\u6307\u671b&#034;\u591a\u585e\u51e0\u4e2a\u6a21\u578b\u4f1a\u81ea\u5df1\u5ffd\u7565&#034;\u3002<\/p>\n<h5>Q2&#xff1a;Score \u7528 Choice \u52a0\u4e2a\u6392\u5e8f\u4e0d\u884c\u5417&#xff1f;<\/h5>\n<p>\u8bed\u4e49\u4e0d\u4e00\u6837\u3002Choice \u7684 probabilities \u662f\u4e92\u65a5\u9009\u9879\u4e0a\u7684\u5206\u5e03&#xff08;\u548c\u4e3a 1&#xff09;&#xff0c;Score \u7684 score \u662f\u6982\u7387\u52a0\u6743\u540e\u7684\u6863\u4f4d\u503c&#xff0c;\u53ef\u4ee5\u843d\u5728\u4e24\u7ea7\u4e4b\u95f4&#xff08;\u5b98\u65b9\u53e3\u5f84&#xff09;&#xff0c;\u4e5f\u5c31\u662f&#034;\u4ecb\u4e8e\u2019\u5e73\u9759\u2019\u548c\u2019\u607c\u706b\u2019\u4e4b\u95f4&#034;\u8fd9\u79cd\u4e2d\u95f4\u6001\u662f\u80fd\u88ab\u8868\u8fbe\u7684&#xff0c;\u800c Choice \u91cc\u6ca1\u6709\u8fd9\u4e2a\u4f4d\u7f6e\u3002\u53cd\u8fc7\u6765&#xff0c;Score \u7684\u6863\u4f4d\u5fc5\u987b\u6709\u5e8f&#xff0c;\u4f60\u8981\u662f\u62ff\u5b83\u88c5&#034;\u90e8\u95e8 \/ \u7c7b\u578b&#034;\u8fd9\u79cd\u65e0\u5e8f\u6807\u7b7e&#xff0c;\u5c31\u7528\u9519\u4e86\u3002\u81f3\u4e8e noul \u4e3a\u4ec0\u4e48\u4e0d\u5e26 confidence&#xff1a;\u5b98\u65b9\u7684 confidence \u662f\u4ece\u6982\u7387\u5206\u5e03\u5f62\u72b6\u7b97\u51fa\u6765\u7684\u7edf\u8ba1\u91cf&#xff0c;\u53ea\u5728 Choice \/ Score \u4e0a\u63d0\u4f9b&#xff08;\u516c\u5f0f\u5728\u7b2c 5 \u7ae0&#xff09;&#xff0c;\u800c noul \u90a3\u4e2a 0~1 \u6570\u503c\u672c\u8eab\u5c31\u5e26\u5f3a\u5f31\u542b\u4e49\u2014\u2014\u5b98\u65b9\u62a4\u680f cookbook \u5c31\u628a\u5b83\u63cf\u8ff0\u6210&#034;\u6bcf\u7c7b\u5371\u5bb3\u7684\u662f \/ \u5426\u6982\u7387&#034;&#xff0c;\u8981\u8def\u7531\u76f4\u63a5\u5bf9\u5b83\u8bbe\u9608\u503c\u5c31\u884c\u3002<\/p>\n<hr \/>\n<h3>4. \u4e00\u6b21\u8bf7\u6c42\u95ee\u591a\u4e2a\u95ee\u9898&#xff1a;\u7701\u94b1\u7701\u65f6\u7684\u4e3b\u6218\u573a<\/h3>\n<p>\u8fd9\u4e00\u7ae0\u56de\u7b54&#xff1a;fan-out \u4e3a\u4ec0\u4e48\u80fd\u7701\u8fd9\u4e48\u591a\u3001\u7701\u7684\u94b1\u5177\u4f53\u4ece\u54ea\u6765\u3001\u4ee5\u53ca\u4ec0\u4e48\u65f6\u5019\u4e0d\u8be5 fan-out\u3002<\/p>\n<p>\u5b98\u65b9\u7684\u6027\u8d28\u63cf\u8ff0\u662f\u6574\u4e2a\u6210\u672c\u7ed3\u6784\u7684\u5730\u57fa&#xff0c;\u539f\u6587\u662f&#xff1a;\u201cJev ingests the state once and evaluates every question against it in parallel\u201d\u2014\u2014state \u53ea\u541e\u4e00\u6b21&#xff0c;\u6240\u6709\u95ee\u9898\u5e76\u884c\u3001\u76f8\u4e92\u72ec\u7acb\u5730\u5bf9\u5b83\u8bc4\u5206\u3002\u7701\u5728\u54ea\u4e00\u76ee\u4e86\u7136&#xff1a;\u62c6\u6210 13 \u6b21\u8bf7\u6c42\u5c31\u8981\u4ed8 13 \u4efd state \u7684\u8f93\u5165 token \u548c 13 \u6b21\u5f80\u8fd4&#xff0c;\u5408\u6210 1 \u6b21\u8bf7\u6c42\u53ea\u4ed8 1 \u4efd state\u30011 \u6b21\u5f80\u8fd4&#xff0c;13 \u4e2a\u7b54\u6848\u5e76\u884c\u8fd4\u56de\u3002<\/p>\n<p>\u5b98\u65b9 Parallel questions cookbook \u7684\u5b9e\u6d4b\u7ed3\u679c&#xff08;\u8fd9\u662f\u5b98\u65b9 cookbook \u81ea\u8ff0\u7684\u5b9e\u6d4b\u7ed3\u8bba&#xff0c;\u4e0d\u662f\u6211\u8dd1\u51fa\u6765\u7684&#xff09;&#xff1a;\u8d1f\u8f7d\u662f\u4e00\u7bc7\u7ea6 54,000 \u5b57\u7b26\u7684 GDPR \u7ef4\u57fa\u957f\u6587\u52a0 13 \u9053\u9898&#xff08;8 noul \/ 2 choice \/ 3 score&#xff09;&#xff0c;\u6279\u91cf\u5bf9\u5355\u9898\u5206\u8bf7\u6c42&#xff0c;12.2x \u66f4\u4fbf\u5b9c\u300110.0x \u66f4\u5feb&#xff0c;\u7b54\u6848\u4e0d\u53d8\u3002<\/p>\n<p>&#034;\u7b54\u6848\u4e0d\u53d8&#034;\u5b98\u65b9\u8bf4\u5f97\u5f88\u5177\u4f53&#xff0c;\u503c\u5f97\u6284\u6210\u4f60\u7684\u56de\u5f52\u5224\u636e&#xff1a;2 \u4e2a Choice\u30013 \u4e2a Score \u548c 8 \u4e2a Noul \u91cc\u7684 6 \u4e2a&#xff0c;\u5728 5 \u6b21\u91cd\u590d\u4e2d\u6570\u503c\u5b8c\u5168\u4e00\u81f4&#xff0c;run-to-run std dev \u6b63\u597d 0.0&#xff1b;\u5269\u4e0b breach_72h \u548c criminal_penalties \u4e24\u9053\u9898\u5e26\u4e00\u70b9\u91c7\u6837\u566a\u58f0&#xff0c;\u4f46\u4e24\u79cd\u6279\u5904\u7406\u7b56\u7565\u4e0b\u566a\u58f0\u540c\u91cf\u7ea7\u3001\u5747\u503c\u843d\u5728\u566a\u58f0\u5185\u3002\u5b98\u65b9\u7ed3\u8bba\u662f\u566a\u58f0\u5c5e\u4e8e\u9898\u76ee\u672c\u8eab&#xff0c;\u4e0d\u662f\u6279\u5904\u7406\u5f15\u5165\u7684\u3002\u8fd8\u6709\u4e00\u4e2a\u53e3\u5f84\u5fc5\u987b\u4e00\u8d77\u8bfb&#xff1a;10.0x \u90a3\u4e2a\u65f6\u5ef6&#xff0c;\u662f\u628a 13 \u6b21\u5355\u9898\u8bf7\u6c42\u7684\u8017\u65f6\u4e32\u8d77\u6765\u52a0\u603b\u5f97\u5230\u7684&#xff08;\u5b98\u65b9\u539f\u8bdd\u70b9\u660e\u4e86\u8fd9\u70b9&#xff09;\u3002\u5982\u679c\u4f60\u5e76\u53d1\u6253\u8fd9 13 \u4e2a\u8bf7\u6c42&#xff0c;\u65f6\u5ef6\u5dee\u8ddd\u4f1a\u660e\u663e\u7f29\u5c0f&#xff0c;\u4f46 13x \u7684 token \u8282\u7701\u4e0d\u4f1a\u8ddf\u7740\u7f29\u3002\u6240\u4ee5&#034;\u5feb 10 \u500d&#034;\u80fd\u4e0d\u80fd\u7b97\u8fdb\u4f60\u7684 SLO&#xff0c;\u53d6\u51b3\u4e8e\u4f60\u73b0\u5728\u90a3 13 \u6b21\u8c03\u7528\u662f\u4e32\u884c\u8fd8\u662f\u5e76\u53d1\u2014\u2014\u6210\u672c\u8fd9\u6761\u662f\u786c\u6536\u76ca&#xff0c;\u65f6\u5ef6\u90a3\u6761\u8981\u770b\u4f60\u539f\u6765\u7684\u5199\u6cd5\u3002<\/p>\n<p>\u4e0b\u9762\u8fd9\u51e0\u6761\u662f\u6211\u6309\u5b98\u65b9\u8ba1\u8d39\u7ed3\u6784\u505a\u7684\u63a8\u7b97&#xff0c;\u524d\u63d0\u90fd\u5199\u51fa\u6765&#xff0c;\u8bfb\u8005\u8bf7\u6309\u81ea\u5df1\u7684 state \u89c4\u6a21\u91cd\u7b97&#xff1a;<\/p>\n<ul>\n<li>\u5355\u6b21\u6210\u672c\u91cf\u7ea7\u3002\u524d\u63d0&#xff1a;$0.042\/Mtok \u4e14\u53ea\u8ba1\u8f93\u5165&#xff1b;\u5b98\u65b9 quickstart \u4f8b\u5355\u6b21 input_tokens &#061; 392\u3002\u63a8\u5bfc&#xff1a;392 \/ 1e6 \u00d7 0.042 \u2248 1.6e-5 \u7f8e\u5143 \/ \u6b21\u3002<\/li>\n<li>\u8dd1\u6ee1\u9650\u989d\u4e00\u5c0f\u65f6\u591a\u5c11\u94b1\u3002\u524d\u63d0&#xff1a;\u540c\u4e0a&#xff0c;\u4e14\u6bcf\u6b21\u8f93\u5165\u89c4\u6a21\u63a5\u8fd1 400 token\u3002\u63a8\u5bfc&#xff1a;1,200 rpm \u8dd1\u6ee1\u4e00\u5c0f\u65f6\u662f 7.2 \u4e07\u6b21\u8bf7\u6c42&#xff0c;\u8f93\u5165\u7ea6 2.9e7 token&#xff0c;\u6210\u672c\u91cf\u7ea7\u7ea6 1.2 \u7f8e\u5143 \/ \u5c0f\u65f6\u3002\u8fd9\u4e2a\u91cf\u7ea7\u610f\u5473\u7740&#xff1a;\u5728\u8fd9\u4e2a\u6a21\u578b\u4e0a&#xff0c;\u5de5\u7a0b\u6210\u672c&#xff08;\u91cd\u8bd5\u3001\u9650\u6d41\u3001\u4eba\u5de5\u590d\u6838&#xff09;\u5927\u6982\u7387\u6bd4 token \u8d26\u5355\u8d35\u3002<\/li>\n<li>12.2x \u4e3a\u4ec0\u4e48\u4e0d\u662f 13x\u3002\u524d\u63d0&#xff1a;\u5b98\u65b9 cookbook \u662f\u6587\u6863\u4e3b\u5bfc\u8d1f\u8f7d&#xff08;GDPR \u6587\u7ae0\u7ea6 54,000 \u5b57\u7b26&#xff09;\u52a0 13 \u4e2a\u95ee\u9898\u3002\u63a8\u5bfc&#xff1a;\u62c6\u6210 13 \u6b21\u8bf7\u6c42\u8981\u628a\u6587\u6863\u7684 token \u4ed8 13 \u6b21&#xff0c;\u6240\u4ee5\u7406\u8bba\u4e0a\u9650\u63a5\u8fd1 13x&#xff1b;\u5b98\u65b9\u5b9e\u6d4b 12.2x&#xff0c;\u5dee\u7684\u7ea6 0.8x \u53ef\u4ee5\u5f52\u56e0\u4e8e&#034;\u95ee\u9898\u81ea\u8eab\u4e5f\u8981\u4ed8\u8f93\u5165 token&#034;\u2014\u2014\u6279\u91cf\u8bf7\u6c42\u91cc 13 \u9053\u9898\u7684\u6587\u672c\u662f\u540c\u65f6\u8fdb\u8f93\u5165\u7684\u3002\u8fd9\u662f\u6211\u6309\u5b98\u65b9\u8ba1\u8d39\u7ed3\u6784\u7684\u63a8\u7b97&#xff0c;\u4e0d\u662f\u5b98\u65b9\u7ed9\u51fa\u7684\u7ed3\u8bba&#xff1b;\u800c\u4e14\u5b83\u53ea\u5728&#034;\u8f93\u51fa\u514d\u8d39&#034;\u8fd9\u4e2a\u7ed3\u6784\u4e0b\u6210\u7acb\u3002<\/li>\n<\/ul>\n<p>\u5b98\u65b9 Speculative fan-out pattern \u7684\u539f\u6587\u6b63\u597d\u7ed9\u4e86 fan-out \u7684\u6b63\u786e\u7528\u6cd5&#xff1a;\u201cSend many questions in a single call, including speculative ones, and let your code decide what\u2019s relevant.\u201d\u2014\u2014\u628a\u53ef\u80fd\u7528\u5230\u7684\u5224\u65ad\u4e00\u6b21\u95ee\u5b8c&#xff0c;\u518d\u7531\u4ee3\u7801\u51b3\u5b9a\u8bfb\u54ea\u6761\u7b54\u6848\u3002\u63a5\u7740\u4e0a\u9762\u90a3\u4e2a\u5b98\u65b9\u4f8b\u5b50\u7684\u5f62\u72b6\u52a0\u4e24\u9053\u6295\u673a\u9898&#xff08;angry \u7684\u53e3\u5f84\u5199\u8fdb criteria\u3001compensation \u662f\u4e00\u9053\u56db\u6863 Score\u3001needs_human \u662f\u5347\u7ea7\u5224\u65ad&#xff09;&#xff0c;\u88c1\u51b3\u4fa7\u5c31\u6210\u4e86\u7eaf\u4ee3\u7801&#xff1a;<\/p>\n<p>answers <span class=\"token operator\">&#061;<\/span> client<span class=\"token punctuation\">.<\/span>system_one<span class=\"token punctuation\">(<\/span>state<span class=\"token operator\">&#061;<\/span>ticket<span class=\"token punctuation\">,<\/span> questions<span class=\"token operator\">&#061;<\/span>questions<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>answers   <span class=\"token comment\"># 4 \u9053\u9898\u4e00\u6b21\u95ee\u5b8c<\/span><br \/>\n<span class=\"token keyword\">if<\/span> answers<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;angry&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>noul <span class=\"token operator\">&gt;<\/span> <span class=\"token number\">0.5<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    tier <span class=\"token operator\">&#061;<\/span> answers<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;compensation&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>score      <span class=\"token comment\"># \u6295\u673a\u9898&#xff1a;\u53ea\u6709\u89e6\u53d1\u8fd9\u6761\u5206\u652f\u5b83\u624d\u4ea7\u751f\u4e1a\u52a1\u610f\u4e49<\/span><br \/>\n    issue_refund<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token keyword\">if<\/span> tier <span class=\"token operator\">&gt;&#061;<\/span> <span class=\"token number\">2.0<\/span> <span class=\"token keyword\">else<\/span> issue_coupon<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">elif<\/span> answers<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;department&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>choice <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#034;technical&#034;<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    enqueue_specialist<span class=\"token punctuation\">(<\/span>queue<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;integration&#034;<\/span><span class=\"token punctuation\">)<\/span>   <span class=\"token comment\"># needs_human \u7684\u7b54\u6848\u8eba\u7740\u4e0d\u52a8&#xff0c;\u94b1\u5df2\u7ecf\u4ed8\u8fc7\u4e86<\/span><\/p>\n<p>\u5173\u952e\u70b9\u5728\u6700\u540e\u4e00\u884c\u6ce8\u91ca&#xff1a;compensation \u7684 token \u5df2\u7ecf\u5728\u8bf7\u6c42\u91cc\u4ed8\u6389\u4e86&#xff0c;\u4f46\u8bfb\u4e0d\u8bfb\u7531\u4ee3\u7801\u51b3\u5b9a\u3002\u6295\u673a\u9898\u7684\u6210\u672c\u6a21\u578b\u662f&#034;\u82b1\u51e0\u884c\u9898\u76ee\u6587\u672c\u7684\u94b1&#xff0c;\u6362\u6389\u4e00\u6b21\u989d\u5916\u5f80\u8fd4&#034;&#xff0c;\u4e0d\u662f\u514d\u8d39\u7684\u3002\u800c\u9898\u76ee\u4e4b\u95f4\u4e0d\u4f1a\u4e92\u76f8\u5e72\u6270\u2014\u2014\u6240\u6709\u95ee\u9898\u662f\u5e76\u884c\u3001\u76f8\u4e92\u72ec\u7acb\u8bc4\u5206\u7684&#xff0c;\u52a0\u9898\u4e3b\u8981\u52a0\u7684\u662f\u8f93\u5165 token \u800c\u4e0d\u662f\u4e32\u8d77\u6765\u7684\u65f6\u5ef6&#xff08;\u8fd9\u662f&#034;\u5e76\u884c\u3001\u76f8\u4e92\u72ec\u7acb&#034;\u90a3\u53e5\u7684\u76f4\u63a5\u63a8\u8bba&#xff09;&#xff1b;\u771f\u6b63\u4f1a\u4e92\u76f8\u5f71\u54cd\u7684\u53ea\u6709\u4e00\u4ef6\u4e8b&#xff0c;\u5b83\u4eec\u548c state \u4e00\u8d77\u6324\u5728\u540c\u4e00\u6761 64k \u9884\u7b97\u91cc\u3002\u4e5f\u522b\u6309\u987a\u5e8f\u53d6\u7b54\u6848&#xff1a;answers \u662f\u6309\u4f60\u81ea\u5b9a\u7684 id \u5bf9\u9f50\u7684\u5bb9\u5668&#xff0c;id \u4e0d\u53c2\u4e0e\u63a8\u7406&#xff0c;\u4e5f\u5c31\u6ca1\u6709\u4efb\u4f55&#034;\u5148\u540e&#034;\u8bed\u4e49&#xff0c;\u5b98\u65b9\u793a\u4f8b\u91cc\u5168\u662f answers[&#034;department&#034;] \u8fd9\u79cd\u6309\u952e\u53d6&#xff1b;\u8981\u6309\u9898\u5e8f\u5904\u7406&#xff0c;\u8bf7\u81ea\u5df1\u7ef4\u62a4\u4e00\u4e2a id \u5217\u8868\u3002\u771f\u51fa\u73b0\u53d8\u6162&#xff0c;\u5148\u6000\u7591 250k tokens\/\u79d2 \u90a3\u6761\u7ebf\u88ab\u9876\u5230&#xff0c;\u6216\u8005 429 \u5728\u6084\u6084\u91cd\u8bd5\u2014\u2014\u628a usage.input_tokens \u548c\u72b6\u6001\u7801\u4e00\u8d77\u843d\u5e93\u5c31\u80fd\u533a\u5206\u3002<\/p>\n<table>\n<tr>\u573a\u666f\u4e00\u6b21\u591a\u95ee\u5408\u4e0d\u5408\u9002\u539f\u56e0\u5199\u6cd5\u5efa\u8bae<\/tr>\n<tbody>\n<tr>\n<td>\u5de5\u5355\u5206\u8bca&#xff08;\u540c\u4e00\u5c01\u4fe1\u8981 5~8 \u4e2a\u5224\u65ad&#xff09;<\/td>\n<td>\u5408\u9002<\/td>\n<td>state \u53ea\u541e\u4e00\u6b21&#xff0c;\u591a\u9898\u644a\u8584\u5230\u540c\u4e00\u4efd\u8f93\u5165<\/td>\n<td>\u4e3b\u5224\u65ad &#043; \u6295\u673a\u9898\u653e\u540c\u4e00\u8bf7\u6c42&#xff0c;\u4ee3\u7801\u6309\u5206\u652f\u53d6\u7b54\u6848<\/td>\n<\/tr>\n<tr>\n<td>\u68c0\u7d22\u91cd\u6392&#xff08;N \u4e2a\u5019\u9009&#xff09;<\/td>\n<td>\u5408\u9002&#xff0c;\u4f46\u8981\u7b97\u94b1<\/td>\n<td>\u6bcf\u4e2a\u5019\u9009\u4e00\u9053 Noul&#xff0c;\u5019\u9009\u6570\u76f4\u63a5\u8fdb\u8f93\u5165 token<\/td>\n<td>\u5148\u7528\u5feb\u53ec\u56de\u628a\u5019\u9009\u7f29\u5230\u51e0\u5341\u4e2a&#xff08;\u5b98\u65b9 cookbook \u7528\u7684\u5c31\u662f\u6bcf\u67e5\u8be2 30 \u6761&#xff09;<\/td>\n<\/tr>\n<tr>\n<td>\u540e\u4e00\u9898\u4f9d\u8d56\u524d\u4e00\u9898\u7684\u7b54\u6848<\/td>\n<td>\u4e0d\u5408\u9002<\/td>\n<td>\u95ee\u9898\u76f8\u4e92\u72ec\u7acb\u3001\u5e76\u884c\u8bc4\u5206&#xff0c;\u4e00\u6b21\u8bf7\u6c42\u91cc\u505a\u4e0d\u5230\u94fe\u5f0f<\/td>\n<td>\u62c6\u6210\u4e24\u6b21\u8c03\u7528&#xff0c;\u7b2c\u4e00\u6b21\u7684\u5206\u5f53\u7b2c\u4e8c\u6b21\u7684 state \u5b57\u6bb5<\/td>\n<\/tr>\n<tr>\n<td>\u5019\u9009\u96c6\u8981\u5728\u8fd0\u884c\u65f6\u624d\u77e5\u9053<\/td>\n<td>\u4e0d\u5408\u9002<\/td>\n<td>\u8bf7\u6c42\u53d1\u51fa\u524d questions \u8fd9\u4e2a map \u5c31\u5f97\u5b9a\u4e0b\u6765<\/td>\n<td>\u5148\u53ec\u56de\u518d\u53d1\u7b2c\u4e8c\u8bf7\u6c42&#xff0c;\u672c\u8d28\u5c31\u662f\u4e0a\u4e00\u884c<\/td>\n<\/tr>\n<tr>\n<td>\u8d85\u957f\u6587\u6863 &#043; \u53ea\u8981\u4e00\u4e2a\u5224\u65ad<\/td>\n<td>\u4e00\u822c<\/td>\n<td>\u7701\u7684\u662f\u91cd\u590d state&#xff0c;\u4e0d\u662f\u95ee\u9898\u672c\u8eab<\/td>\n<td>\u5148\u770b 64k \/ 32k \u591f\u4e0d\u591f&#xff0c;\u518d\u8c08 fan-out<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>5. \u7f6e\u4fe1\u5ea6\u8def\u7531&#xff1a;\u4e00\u6761\u5730\u677f\u7ebf&#xff0c;\u4e24\u6761\u6267\u884c\u7ebf<\/h3>\n<p>\u8fd9\u4e00\u7ae0\u56de\u7b54&#xff1a;confidence \u662f\u600e\u4e48\u7b97\u51fa\u6765\u7684\u3001\u4e09\u6863\u884c\u4e3a\u600e\u4e48\u843d\u5730\u3001\u4e3a\u4ec0\u4e48\u540c\u4e00\u7cfb\u7edf\u91cc\u53ea\u8bfb\u548c\u7834\u574f\u6027\u64cd\u4f5c\u8981\u7528\u4e0d\u540c\u9608\u503c\u3002<\/p>\n<p>\u5b98\u65b9\u7684\u4e09\u9009\u9879 demo \u7ed9\u7684\u8fd1\u4f3c\u516c\u5f0f\u662f (3 \u00d7 \u6700\u5927\u6982\u7387 \u2212 1) \/ 2&#xff0c;\u4e00\u822c\u5f0f\u5199\u6210 (n \u00d7 maxP \u2212 1) \/ (n \u2212 1)&#xff1a;\u5168\u90e8\u538b\u529b\u96c6\u4e2d\u5728\u4e00\u4e2a\u9009\u9879\u4e0a\u5f97 1.0&#xff0c;\u5206\u5e03\u8d8a\u5e73\u5747\u8d8a\u4f4e\u3002\u5b83\u662f\u4ece probabilities \u5206\u5e03\u5f62\u72b6\u7b97\u51fa\u7684 0~1 \u7edf\u8ba1\u91cf&#xff0c;\u53ea\u5b58\u5728\u4e8e Choice \/ Score \u4e0a\u3002\u62ff\u5b98\u65b9 quickstart \u7684\u54cd\u5e94\u4f53\u505a\u7eaf\u7b97\u672f\u6838\u5bf9&#xff08;\u4e0d\u6d89\u53ca\u4efb\u4f55\u8c03\u7528&#xff09;&#xff1a;department \u7684 probabilities \u662f {technical: 0.85, sales: 0.0, billing: 0.15}&#xff0c;\u4ee3\u8fdb\u516c\u5f0f (3 \u00d7 0.85 \u2212 1) \/ 2 &#061; 0.775&#xff0c;\u56db\u820d\u4e94\u5165\u6b63\u597d\u662f\u54cd\u5e94\u91cc\u7684 0.78&#xff1b;frustration \u7684\u6982\u7387\u5168\u538b\u5728\u4e00\u6863\u4e0a&#xff0c;(3 \u00d7 1 \u2212 1) \/ 2 &#061; 1.0&#xff0c;\u548c\u54cd\u5e94\u91cc\u7684 1.0 \u4e00\u81f4\u3002\u4e5f\u5c31\u662f\u8bf4&#xff1a;confidence \u4e0d\u662f\u6a21\u578b\u81ea\u62a5\u7684&#034;\u5fc3\u60c5&#034;&#xff0c;\u662f\u5206\u5e03\u7684\u51fd\u6570&#xff0c;\u4f60\u80fd\u81ea\u5df1\u590d\u7b97\u3002<\/p>\n<p>\u5b98\u65b9\u7ed9\u7684\u4e09\u6863\u5efa\u8bae&#xff1a;<\/p>\n<table>\n<tr>\u6863\u4f4d\u5b98\u65b9\u5efa\u8bae\u7684\u884c\u4e3a\u843d\u5230\u4ee3\u7801\u91cc\u5e38\u89c1\u9519\u6cd5<\/tr>\n<tbody>\n<tr>\n<td>\u9ad8\u7f6e\u4fe1<\/td>\n<td>\u81ea\u52a8\u6267\u884c<\/td>\n<td>\u76f4\u63a5\u8fdb\u5206\u652f<\/td>\n<td>\u53ea\u8bfb\u64cd\u4f5c\u4e5f\u52a0\u4e8c\u6b21\u786e\u8ba4&#xff0c;\u628a\u65f6\u5ef6\u82b1\u5728\u4e0d\u9700\u8981\u98ce\u9669\u63a7\u5236\u7684\u5730\u65b9<\/td>\n<\/tr>\n<tr>\n<td>\u4e2d\u7f6e\u4fe1<\/td>\n<td>\u8c28\u614e\u63a8\u8fdb&#xff1a;\u8981\u7528\u6237\u786e\u8ba4 \/ \u6807\u8bb0\u590d\u6838 \/ \u8865\u4fe1\u606f<\/td>\n<td>\u8d70\u786e\u8ba4\u94fe\u8def\u6216\u6253 needs_review \u6807<\/td>\n<td>\u5f53\u6210\u9ad8\u7f6e\u4fe1\u76f4\u63a5\u6267\u884c&#xff0c;\u6216\u8005\u5f53\u6210\u4f4e\u7f6e\u4fe1\u5168\u90e8\u8f6c\u4eba\u5de5<\/td>\n<\/tr>\n<tr>\n<td>\u4f4e\u7f6e\u4fe1<\/td>\n<td>\u4e0d\u6267\u884c&#xff0c;\u8f6c\u4eba\u5de5\u6216\u6362\u7cfb\u7edf<\/td>\n<td>route_to_human()&#xff0c;\u5e76\u8bb0\u5f55\u539f\u59cb\u7b54\u6848<\/td>\n<td>\u62ff&#034;\u518d\u95ee\u4e00\u6b21\u6a21\u578b&#034;\u5f53\u964d\u7ea7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e3b\u4f8b\u5c31\u7528\u5b98\u65b9 confidence \u9875\u7684\u539f\u6587\u4ee3\u7801&#xff08;\u4e0b\u9762\u8fd9\u6bb5\u662f\u5b98\u65b9\u793a\u4f8b&#xff0c;\u9010\u884c\u8bb2&#xff09;&#xff1a;<\/p>\n<p>response <span class=\"token operator\">&#061;<\/span> client<span class=\"token punctuation\">.<\/span>system_one<span class=\"token punctuation\">(<\/span><br \/>\n    state<span class=\"token operator\">&#061;<\/span>user_message<span class=\"token punctuation\">,<\/span><br \/>\n    questions<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;action&#034;<\/span><span class=\"token punctuation\">:<\/span> Choice<span class=\"token punctuation\">(<\/span><br \/>\n        instructions<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;What is the user trying to do?&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        criteria<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">{<\/span><span class=\"token string\">&#034;check_balance&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;View account balance&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                  <span class=\"token string\">&#034;approve_transfer&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;Approve the pending withdrawal request&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                  <span class=\"token string\">&#034;support&#034;<\/span><span class=\"token punctuation\">:<\/span> <span class=\"token string\">&#034;Get help with an issue&#034;<\/span><span class=\"token punctuation\">}<\/span><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>action <span class=\"token operator\">&#061;<\/span> response<span class=\"token punctuation\">.<\/span>answers<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;action&#034;<\/span><span class=\"token punctuation\">]<\/span><br \/>\nconfidence <span class=\"token operator\">&#061;<\/span> action<span class=\"token punctuation\">.<\/span>confidence<\/p>\n<p><span class=\"token keyword\">if<\/span> confidence <span class=\"token operator\">&lt;<\/span> <span class=\"token number\">0.5<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token comment\"># Model is genuinely unsure. Don&#039;t guess.<\/span><br \/>\n    route_to_human<span class=\"token punctuation\">(<\/span>user_message<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">elif<\/span> action<span class=\"token punctuation\">.<\/span>choice <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#034;check_balance&#034;<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token comment\"># Low stakes. Showing the wrong screen is recoverable.<\/span><br \/>\n    show_balance<span class=\"token punctuation\">(<\/span>account_id<span class=\"token punctuation\">)<\/span><br \/>\n<span class=\"token keyword\">elif<\/span> action<span class=\"token punctuation\">.<\/span>choice <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#034;approve_transfer&#034;<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> confidence <span class=\"token operator\">&gt;<\/span> <span class=\"token number\">0.9<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token comment\"># High stakes, high confidence. Proceed with confirmation.<\/span><br \/>\n        confirm_then_execute<span class=\"token punctuation\">(<\/span>account_id<span class=\"token punctuation\">)<\/span><br \/>\n    <span class=\"token keyword\">else<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token comment\"># High stakes, moderate confidence. Verify first.<\/span><br \/>\n        ask_user_to_confirm<span class=\"token punctuation\">(<\/span>account_id<span class=\"token punctuation\">)<\/span><\/p>\n<p>\u8fd9\u6bb5\u7684\u7ed3\u6784\u503c\u5f97\u6284&#xff0c;\u6ce8\u91ca\u503c\u5f97\u9010\u6761\u8bfb&#xff1a;confidence &lt; 0.5 \u662f\u4e00\u6761\u4e0e\u4e1a\u52a1\u65e0\u5173\u7684\u5730\u677f\u7ebf&#xff0c;\u515c\u4f4f&#034;\u6a21\u578b\u81ea\u62a5\u4e0d\u786e\u5b9a&#034;&#xff0c;\u4e0d\u7ba1\u4ec0\u4e48\u64cd\u4f5c\u90fd\u4e0d\u8bb8\u8d8a\u8fc7\u5b83&#xff1b;\u5730\u677f\u7ebf\u4e4b\u4e0a&#xff0c;check_balance \u76f4\u63a5\u6267\u884c&#xff08;\u9519\u4e86\u5c31\u662f\u770b\u9519\u9875\u9762&#xff0c;\u4ee3\u4ef7\u53ef\u6062\u590d&#xff09;&#xff0c;approve_transfer \u5374\u8fd8\u8981\u518d\u770b\u4e00\u6b21 0.9\u3002\u540c\u4e00\u4e2a confidence\u3001\u540c\u4e00\u4e2a\u7b54\u6848&#xff0c;\u4e24\u6761\u4e0d\u540c\u7684\u95e8\u69db\u2014\u2014\u5b98\u65b9\u90a3\u53e5\u8bdd\u70b9\u5f97\u5f88\u76f4\u767d&#xff1a;\u98ce\u9669\u5bb9\u5fcd\u5ea6\u7531\u4f60\u7684\u4ee3\u7801\u7f16\u7801\u3002\u644a\u6210\u77e9\u9635\u770b\u66f4\u6e05\u695a&#xff08;\u8fd9\u662f\u6211\u5bf9\u4e0a\u9762\u90a3\u6bb5\u5b98\u65b9\u4ee3\u7801\u7684\u8bfb\u6cd5&#xff0c;\u4e0d\u662f\u5b98\u65b9\u56fe\u8868&#xff09;&#xff1a;<\/p>\n<p>                     confidence &lt; 0.5        0.5 &lt;&#061; confidence &lt;&#061; 0.9        confidence &gt; 0.9<br \/>\n\u53ea\u8bfb&#xff08;\u67e5\u4f59\u989d&#xff09;        \u8f6c\u4eba\u5de5                   \u76f4\u63a5\u6267\u884c                        \u76f4\u63a5\u6267\u884c<br \/>\n\u7834\u574f\u6027&#xff08;\u653e\u6b3e&#xff09;        \u8f6c\u4eba\u5de5                   \u8981\u7528\u6237\u786e\u8ba4                      \u5e26\u786e\u8ba4\u6267\u884c<\/p>\n<p>\u5b98\u65b9\u4e5f\u63d0\u9192\u4e86&#xff1a;\u6b63\u786e\u9608\u503c\u53d6\u51b3\u4e8e\u4f60\u7684\u57df\u548c\u6a21\u578b\u5728\u4f60\u7528\u4f8b\u4e0a\u7684\u8868\u73b0&#xff0c;\u4fdd\u5b88\u8d77\u6b65\u3001\u7528\u81ea\u5df1\u6570\u636e\u6d4b\u3001\u89c2\u5bdf\u540e\u518d\u8c03\u3002\u6240\u4ee5 0.5 \u548c 0.9 \u8fd9\u4e24\u4e2a\u6570\u662f\u793a\u4f8b\u503c&#xff0c;\u522b\u5f53\u63a8\u8350\u503c\u6284\u8fdb\u914d\u7f6e\u4e2d\u5fc3\u3002<\/p>\n<h5>Q1&#xff1a;\u5b98\u65b9\u90a3\u4e24\u4e2a\u6570&#xff08;0.5 \/ 0.9&#xff09;\u80fd\u4e0d\u80fd\u76f4\u63a5\u7528&#xff1f;confidence \u4e00\u76f4\u504f\u4f4e\u53c8\u662f\u600e\u4e48\u56de\u4e8b&#xff1f;<\/h5>\n<p>\u9608\u503c&#xff1a;\u80fd\u7528\u6765\u81ea\u7ed3\u6784&#xff0c;\u4e0d\u80fd\u7528\u6765\u81ea\u6570\u503c\u3002\u53ef\u4ee5\u7167\u642c\u7684\u662f&#034;\u4e00\u6761\u5730\u677f\u7ebf &#043; \u6309\u64cd\u4f5c\u98ce\u9669\u5206\u6863&#034;\u8fd9\u4e2a\u5f62\u72b6&#xff1b;\u6570\u5b57\u5fc5\u987b\u81ea\u5df1\u5b9a\u2014\u2014\u5b98\u65b9\u81ea\u5df1\u5c31\u5199\u4e86\u9608\u503c\u53d6\u51b3\u4e8e\u57df\u548c\u8868\u73b0\u3002\u6211\u4f1a\u7528\u5b98\u65b9\u793a\u4f8b\u503c\u8d77\u6b65&#xff0c;\u7136\u540e\u6309 confidence \u5206\u5e03\u62c9\u5f00\u5206\u4f4d\u70b9\u770b\u8bef\u5224\u843d\u5728\u54ea\u3002\u504f\u4f4e\u5219\u6709\u4e24\u79cd\u53ef\u80fd&#xff0c;\u770b probabilities \u800c\u4e0d\u662f\u53ea\u770b confidence \u4e00\u4e2a\u6570\u5c31\u80fd\u5206\u6e05&#xff1a;\u5206\u5e03\u63a5\u8fd1\u5e73\u5766&#xff0c;\u8bf4\u660e\u9898\u76ee\u672c\u8eab\u5728\u4f60\u7684\u5224\u636e\u4e0b\u65e0\u6cd5\u533a\u5206&#xff0c;\u8fd9\u65f6\u5019\u6539 criteria \u7684\u63cf\u8ff0\u6bd4\u8c03\u9608\u503c\u503c\u94b1&#xff08;\u5851\u5f62\u5165\u53e3\u53ea\u6709 state \/ instructions \/ criteria&#xff09;&#xff1b;\u5206\u5e03\u5df2\u7ecf\u5f88\u5c16\u4f46\u4e1a\u52a1\u4e0a\u786e\u5b9e\u4e0d\u8be5\u6267\u884c&#xff0c;\u90a3\u662f\u9608\u503c\u8be5\u62ac\u9ad8\u3002\u8fd9\u4e2a\u8c03\u8bd5\u56de\u8def\u7684\u524d\u63d0&#xff0c;\u540c\u6837\u662f\u628a probabilities \u8ddf\u7740\u7b54\u6848\u843d\u5e93\u3002<\/p>\n<h5>Q2&#xff1a;noul \u6ca1\u6709 confidence&#xff0c;\u8fd9\u7c7b\u9898\u600e\u4e48\u8def\u7531&#xff1f;<\/h5>\n<p>\u76f4\u63a5\u7528 noul \u90a3\u4e2a 0~1 \u6570\u503c\u8bbe\u9608\u503c\u3002\u5b98\u65b9\u62a4\u680f cookbook \u5c31\u662f\u8fd9\u4e48\u505a\u7684&#xff1a;\u4e00\u6574\u5957 Noul&#xff08;\u6bcf\u7c7b\u5371\u5bb3\u7684\u662f \/ \u5426\u6982\u7387&#xff09;\u52a0\u4e00\u9053 Score&#xff08;\u7167\u505a\u7684\u5371\u5bb3\u6709\u591a\u91cd&#xff09;&#xff0c;\u7136\u540e\u7531\u4f60\u8bbe\u9608\u503c\u51b3\u5b9a\u653e\u884c\u3001\u9001\u5ba1\u3001\u62e6\u622a\u8fd8\u662f\u8f6c\u5ba2\u670d\u3002\u4e8c\u503c\u9898\u6ca1\u6709&#034;\u5206\u5e03\u5f62\u72b6&#034;\u8fd9\u4e00\u5c42&#xff0c;\u4f46\u5206\u672c\u8eab\u5df2\u7ecf\u53ef\u7528\u3002<\/p>\n<hr \/>\n<h3>6. \u56db\u4e2a\u80fd\u76f4\u63a5\u8fdb\u751f\u4ea7\u7684 pattern<\/h3>\n<p>\u8fd9\u4e00\u7ae0\u56de\u7b54&#xff1a;\u610f\u56fe\u8def\u7531\u3001\u68c0\u7d22\u91cd\u6392\u3001function calling\u3001LLM \u62a4\u680f\u5404\u81ea\u7684\u8f93\u5165\u662f\u4ec0\u4e48\u3001\u95ee\u9898\u600e\u4e48\u8bbe\u8ba1\u3001\u4ee3\u7801\u600e\u4e48\u88c1\u51b3\u3002<\/p>\n<p>\u6bcf\u4e2a pattern \u90fd\u6309\u540c\u4e09\u6bb5\u8d70&#xff1a;\u8f93\u5165 \u2192 \u95ee\u9898\u8bbe\u8ba1 \u2192 \u4ee3\u7801\u600e\u4e48\u88c1\u51b3\u3002\u8fd9\u4e5f\u662f\u6211\u6838\u5bf9\u5b98\u65b9 patterns \/ cookbooks \u65f6\u7684\u8bfb\u6cd5\u987a\u5e8f\u3002<\/p>\n<h4>6.1 \u610f\u56fe\u8def\u7531&#xff1a;\u4e09\u6761\u51fa\u8def&#xff0c;\u4e0d\u662f\u53ea\u6709&#034;\u4ea4\u7ed9\u6a21\u578b&#034;<\/h4>\n<p>\u5b98\u65b9 patterns \u9875\u539f\u6587&#xff1a;\u201cClassify incoming requests and route each to the optimal handler: deterministic logic, a specialist LLM, or a human.\u201d\u2014\u2014\u6ce8\u610f&#034;optimal handler&#034;\u662f\u4e09\u7c7b&#xff0c;\u4e0d\u662f\u53ea\u628a\u8bf7\u6c42\u4ea4\u7ed9\u53e6\u4e00\u4e2a\u5927\u6a21\u578b\u3002\u94fe\u8def\u5c31\u662f&#xff1a;\u8bf7\u6c42\u8fdb\u6765 \u2500\u2500&gt; Choice \u9009\u54ea\u6761\u8def \u2500\u2500&gt; confidence \u5206\u6863 \u2500\u2500&gt; \u786e\u5b9a\u6027\u903b\u8f91 \/ \u4e13\u5bb6 LLM \/ \u4eba\u5de5\u3002<\/p>\n<p>\u95ee\u9898\u8bbe\u8ba1\u4e09\u6761\u8981\u70b9&#xff08;\u4f9d\u636e\u5b98\u65b9\u793a\u4f8b\u7684\u5199\u6cd5&#xff09;&#xff1a;criteria \u91cc\u6bcf\u4e2a\u9009\u9879\u5199\u7684\u662f\u5224\u636e\u63cf\u8ff0&#xff0c;\u4e0d\u662f\u6807\u7b7e\u590d\u8bfb&#xff08;\u5b98\u65b9\u7ed9\u7684\u662f &#034;billing&#034;: &#034;Payment or subscription issues&#034;&#xff0c;\u800c\u4e0d\u662f &#034;billing&#034;: &#034;billing&#034;&#xff09;&#xff1b;\u5fc5\u987b\u7559\u4e00\u4e2a\u975e\u4e1a\u52a1\u51fa\u53e3&#xff08;\u5b98\u65b9\u793a\u4f8b\u91cc\u5c31\u662f support&#xff09;&#xff1b;\u53ea\u8bfb\u5206\u652f\u548c\u7834\u574f\u6027\u5206\u652f\u8981\u80fd\u5728\u540c\u4e00\u4efd probabilities \u4e0a\u88ab\u533a\u5206\u5f00&#xff0c;\u7b2c 5 \u7ae0\u90a3\u4e2a\u53cc\u9608\u503c\u5c31\u662f\u7ed9\u8fd9\u4e2a\u7528\u7684\u3002\u88c1\u51b3\u4fa7\u5c31\u662f\u7b2c 5 \u7ae0\u90a3\u6bb5\u5b98\u65b9\u4ee3\u7801&#xff0c;\u4e0d\u91cd\u590d\u3002\u8865\u4e00\u6761\u5de5\u7a0b\u7ea6\u675f&#xff1a;\u8def\u7531\u7ed3\u679c\u8981\u8fde probabilities \u4e00\u8d77\u843d\u5e93&#xff0c;\u5426\u5219\u7ebf\u4e0a\u51fa\u73b0&#034;\u8be5\u8d70\u4eba\u5de5\u5374\u8d70\u4e86 LLM&#034;\u8fd9\u7c7b\u4e8b\u6545\u65f6&#xff0c;\u4f60\u65e0\u6cd5\u56de\u6eaf\u5f53\u65f6\u662f\u5206\u5e03\u5e73\u8fd8\u662f\u9608\u503c\u677e\u3002<\/p>\n<h4>6.2 \u68c0\u7d22\u91cd\u6392&#xff1a;\u5feb\u53ec\u56de\u8d1f\u8d23\u7f29\u5c0f\u96c6\u5408&#xff0c;Jev \u8d1f\u8d23\u9009\u5bf9\u90a3\u4e00\u6761<\/h4>\n<p>\u5b98\u65b9\u300aRe-ranking\u300bcookbook \u7684\u8bbe\u5b9a\u548c\u7ed3\u679c&#xff08;\u5168\u90e8\u4e3a\u5b98\u65b9 cookbook \u7684\u5b9e\u6d4b\u7ed3\u679c&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u73af\u8282\u5b98\u65b9\u8bbe\u5b9a\u6570\u5b57<\/tr>\n<tbody>\n<tr>\n<td>\u6570\u636e\u96c6<\/td>\n<td>CLERC \u6cd5\u5f8b\u6570\u636e\u96c6&#xff0c;\u6cd5\u9662\u610f\u89c1\u4e66\u6bb5<\/td>\n<td>3,565 \u6bb5<\/td>\n<\/tr>\n<tr>\n<td>\u5feb\u53ec\u56de<\/td>\n<td>BM25&#xff0c;\u4e3a\u6bcf\u4e2a\u67e5\u8be2\u53d6\u5019\u9009<\/td>\n<td>40 \u4e2a\u67e5\u8be2 \u00d7 \u5404 30 \u6761\u5019\u9009<\/td>\n<\/tr>\n<tr>\n<td>\u91cd\u6392<\/td>\n<td>\u6bcf\u5019\u9009\u4e00\u9053 Noul&#xff0c;\u4e00\u6b21\u8bf7\u6c42\u95ee\u5b8c<\/td>\n<td>\u6bcf\u67e5\u8be2 30 \u9053\u9898<\/td>\n<\/tr>\n<tr>\n<td>top-1 \u547d\u4e2d<\/td>\n<td>\u91cd\u6392\u524d \u2192 \u91cd\u6392\u540e<\/td>\n<td>5% \u2192 18%<\/td>\n<\/tr>\n<tr>\n<td>top-10 \u547d\u4e2d<\/td>\n<td>\u91cd\u6392\u524d \u2192 \u91cd\u6392\u540e<\/td>\n<td>38% \u2192 62%<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u8981\u70b9\u662f\u5b98\u65b9\u8fd9\u4e2a\u5206\u5de5&#xff1a;\u5feb\u53ec\u56de\u8d1f\u8d23\u7f29\u5c0f\u96c6\u5408&#xff0c;Jev \u8d1f\u8d23\u5728\u5019\u9009\u91cc\u5224\u5bf9\u7684\u90a3\u4e00\u6761\u3002\u8fd9\u91cc\u6709\u4e2a\u8bbe\u8ba1\u9009\u62e9\u503c\u5f97\u5355\u72ec\u770b&#xff1a;\u5b98\u65b9\u660e\u786e\u8bf4\u4e3a\u4ec0\u4e48\u7528 Noul \u800c\u4e0d\u662f Choice\u2014\u2014\u201c\u8981\u5728 30 \u4e2a\u5019\u9009\u91cc\u6392\u5e8f&#xff0c;\u4e00\u4e2a\u975e\u9ed1\u5373\u767d\u7684\u7b54\u6848\u4e0d\u591f\u7528\u201d&#xff0c;\u800c Noul \u8fd4\u56de\u7684\u662f 0~1 \u7684\u6570\u503c&#xff0c;\u8fd9\u4e2a\u6570\u672c\u8eab\u5c31\u662f\u4ee3\u7801\u62ff\u6765\u6392\u5e8f\u7684\u5206\u6570&#xff0c;\u4f60\u4e0d\u9700\u8981\u4e3a\u901a\u7528\u6a21\u578b\u53e6\u9020\u4e00\u5957\u6253\u5206\u6807\u5c3a\u3002\u95ee\u9898\u6a21\u677f\u5b98\u65b9\u7ed9\u7684\u662f\u539f\u6587\u4e00\u53e5 Could this candidate passage be from the cited precedent?&#xff0c;\u9760 criteria \u5b9a\u4e49\u4ec0\u4e48\u7b97\u771f\u3001\u4ec0\u4e48\u7b97\u5047&#xff0c;\u5bf9\u6bcf\u4e2a query-\u5019\u9009\u5bf9\u5957\u540c\u4e00\u53e5\u3002\u90a3\u4e3a\u4ec0\u4e48\u4e0d\u5e72\u8106\u7528 Jev \u505a\u53ec\u56de\u3001\u7701\u6389 BM25&#xff1f;\u56e0\u4e3a 3,565 \u6bb5\u5168\u585e\u8fdb\u4e00\u4e2a\u8bf7\u6c42\u5c31\u9876\u7a7f 64k \u9884\u7b97\u4e86&#xff0c;\u5c31\u7b97\u5207\u6210\u591a\u6b21&#xff0c;\u8f93\u5165 token \u4e5f\u662f\u6309\u6bb5\u843d\u603b\u91cf\u4ed8\u8d39&#xff0c;\u6bd4 BM25 \u4fbf\u5b9c\u5f97\u591a\u7684\u53ec\u56de\u5148\u8dd1\u4e00\u6b21\u624d\u5408\u7406\u2014\u2014\u8fd9\u4e0d\u662f\u504f\u597d&#xff0c;\u662f\u9884\u7b97\u548c\u5355\u4ef7\u7b97\u51fa\u6765\u7684&#xff08;\u524d\u63d0&#xff1a;\u6bcf\u5019\u9009\u4e00\u9053 Noul &#043; \u53ea\u6309\u8f93\u5165\u8ba1\u8d39&#xff09;\u3002\u4e5f\u6b63\u56e0\u4e3a\u6bcf\u5019\u9009\u4e00\u9053\u9898&#xff0c;\u5019\u9009\u6570\u76f4\u63a5\u8fdb\u8f93\u5165 token \u8d26\u5355&#xff1a;\u628a 30 \u53d8\u6210 300&#xff0c;\u82b1\u7684\u94b1\u548c\u4e24\u6761\u9884\u7b97\u7ebf\u90fd\u8ddf\u7740\u7ebf\u6027\u53d8\u3002<\/p>\n<h4>6.3 Function calling&#xff1a;\u4ece\u7c7b\u578b\u6807\u6ce8\u91cc\u62bd\u95ed\u96c6<\/h4>\n<p>\u5b98\u65b9 cookbook \u7684\u6bd4\u55bb\u5f88\u597d\u61c2&#xff1a;\u5496\u5561\u5e08\u4e0d\u4f1a\u628a\u4f60\u7684\u8bdd\u539f\u6837\u8bb0\u4e0b\u6765&#xff0c;\u800c\u662f\u5728\u676f\u5b50\u4e0a\u52fe\u56db\u4e2a\u9009\u9879&#xff1b;Jev \u505a\u540c\u6837\u7684\u4e8b\u3002\u505a\u6cd5\u662f\u4ece\u51fd\u6570\u7b7e\u540d\u7684\u7c7b\u578b\u6807\u6ce8\u91cc\u627e\u95ed\u96c6&#xff0c;\u6620\u5c04\u5173\u7cfb&#xff08;\u5b98\u65b9\u53e3\u5f84&#xff09;&#xff1a;<\/p>\n<table>\n<tr>\u7c7b\u578b\u6807\u6ce8\u751f\u6210\u4ec0\u4e48\u5b98\u65b9\u53eb\u6cd5\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>Literal[&#8230;]<\/td>\n<td>\u4e00\u9053 choice \u9898<\/td>\n<td>One-of<\/td>\n<td>\u6210\u5458\u5c31\u662f\u9009\u9879&#xff0c;\u5224\u636e\u5199\u5728 criteria \u7684\u63cf\u8ff0\u91cc<\/td>\n<\/tr>\n<tr>\n<td>list[Literal[&#8230;]]<\/td>\n<td>\u4e00\u9053 set \u9898<\/td>\n<td>Any-number<\/td>\n<td>\u4ece\u6210\u5458\u91cc\u6311\u4efb\u610f\u4e2a<\/td>\n<\/tr>\n<tr>\n<td>bool<\/td>\n<td>\u4e00\u9053 flag \u9898<\/td>\n<td>on \/ off<\/td>\n<td>\u5f00\u5173\u8bed\u4e49<\/td>\n<\/tr>\n<tr>\n<td>int\u3001\u81ea\u7531\u6587\u672c\u3001\u6570\u5b57\u3001\u65e5\u671f<\/td>\n<td>\u4e0d\u751f\u6210\u95ee\u9898<\/td>\n<td>\u2014\u2014<\/td>\n<td>\u6cbf\u7528\u51fd\u6570\u9ed8\u8ba4\u503c<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b98\u65b9\u4f8b\u5b50\u89c4\u6a21&#xff1a;10 \u4e2a\u51fd\u6570\u5171 28 \u4e2a\u53ef\u586b\u53c2\u6570\u3002\u53e6\u5916\u8981\u51c6\u5907\u4e00\u4efd spec&#xff1a;\u6bcf\u4e2a\u53c2\u6570\u4e00\u53e5\u95ee\u9898\u3001\u6bcf\u4e2a\u9009\u9879\u4e00\u884c\u63cf\u8ff0\u3001\u6bcf\u4e2a\u51fd\u6570\u4e00\u53e5\u63cf\u8ff0&#xff0c;\u518d\u52a0\u4e00\u9053**\u201c\u5728\u51fd\u6570\u4e4b\u95f4\u9009\u54ea\u4e2a\u201d**\u7684\u9898&#xff1b;\u5b98\u65b9\u660e\u786e\u8bf4\u8fd9\u4efd spec \u53ef\u4ee5\u7531 LLM \u4ece\u7b7e\u540d\u66ff\u4f60\u751f\u6210\u3002\u6309\u4e0a\u9762\u7684\u6620\u5c04&#xff0c;book_meal(dish: Literal[&#034;pasta&#034;, &#034;risotto&#034;, &#034;grilled&#034;], is_spicy: bool, guests: int) \u8fd9\u4e2a\u7b7e\u540d\u62c6\u51fa\u6765\u5c31\u662f\u4e24\u9053\u9898&#xff1a;dish \u8d70 choice&#xff08;criteria \u91cc\u6bcf\u4e2a\u9009\u9879\u5199\u4e00\u884c\u5224\u636e&#xff0c;\u6bd4\u5982 &#034;grilled&#034;: &#034;Names a grilled item, no starch mentioned&#034;&#xff09;\u3001is_spicy \u8d70 flag&#xff0c;guests \u662f int&#xff0c;\u4e0d\u751f\u6210\u9898\u3001\u6cbf\u7528\u9ed8\u8ba4\u503c\u3002\u6838\u5fc3\u4ef7\u503c\u94fe\u4e00\u53e5\u8bdd&#xff1a;\u8fdb\u5230\u51fd\u6570\u91cc\u7684\u503c\u4e00\u5b9a\u662f\u8be5\u51fd\u6570\u63a5\u53d7\u7684\u5c01\u95ed\u96c6\u6210\u5458\u3002<\/p>\n<p>\u5b98\u65b9 date extraction cookbook \u662f\u540c\u4e00\u624b\u6cd5\u7684\u53e6\u4e00\u4e2a\u65b9\u5411\u2014\u2014\u628a\u65e5\u671f\u6bcf\u4e2a\u5206\u91cf\u5f53\u95ed\u96c6\u7528 Choice \u679a\u4e3e&#xff08;12 \u4e2a\u6708\u30011-31 \u65e5\u3001\u6709\u754c\u5e74\u4efd&#xff09;&#xff0c;\u5e76\u4e14\u663e\u5f0f\u52a0\u4e00\u4e2a&#034;\u672a\u8bf4\u660e&#034;\u9009\u9879&#xff0c;\u4ee3\u7801\u518d\u7ec4\u88c5\u6210\u771f\u65e5\u671f&#xff1b;\u4e4b\u540e\u7684\u5927\u5c0f\u6bd4\u8f83\u3001\u65f6\u957f\u3001\u661f\u671f\u5168\u90e8\u7559\u5728\u4ee3\u7801\u91cc\u3002\u8fd9\u4e2a&#034;\u672a\u8bf4\u660e&#034;\u9009\u9879\u503c\u5f97\u6284&#xff1a;\u5b83\u662f\u628a&#034;\u6a21\u578b\u4e0d\u77e5\u9053&#034;\u548c&#034;\u6587\u672c\u91cc\u6ca1\u8bf4&#034;\u533a\u5206\u5f00\u7684\u552f\u4e00\u529e\u6cd5\u3002<\/p>\n<h4>6.4 LLM \u62a4\u680f&#xff1a;\u4e3a\u4ec0\u4e48&#034;\u518d\u5957\u4e00\u4e2a LLM \u5f53\u95f8\u95e8&#034;\u4e0d\u5212\u7b97<\/h4>\n<p>\u5b98\u65b9\u7684\u8bba\u8bc1\u6709\u4e09\u5c42&#xff0c;\u6bcf\u5c42\u90fd\u633a\u624e\u5fc3&#xff1a;\u5404\u5bb6 LLM \u7684\u5b89\u5168\u7ebf\u4f4d\u7f6e\u4e0d\u540c\u3001\u6bcf\u4e2a\u7248\u672c\u8fd8\u4f1a\u632a&#xff1b;\u800c\u4f60\u7684\u7cfb\u7edf\u63d0\u793a\u8bcd&#xff0c;\u6b63\u597d\u5199\u5728&#034;\u8d8a\u72f1\u8bdd\u672f\u8981\u7ed5\u8fc7\u7684\u90a3\u4e2a\u4f4d\u7f6e&#034;\u4e0a\u2014\u2014\u8fd9\u4e5f\u662f\u62a4\u680f\u4e0d\u80fd\u53ea\u5199\u5728 prompt \u91cc\u7684\u539f\u56e0&#xff0c;\u95f8\u95e8\u548c\u88ab\u4fdd\u62a4\u7684\u4e1c\u897f\u5728\u540c\u4e00\u4e2a\u53ef\u8bf4\u670d\u7684\u7ec4\u4ef6\u91cc\u3002\u81f3\u4e8e\u518d\u653e\u4e00\u4e2a LLM \u5f53\u95f8\u95e8\u2014\u2014\u6bcf\u4e2a\u6765\u56de\u90fd\u8981\u591a\u4ed8\u4e00\u6b21\u5ef6\u8fdf\u548c\u4e00\u6b21\u8c03\u7528&#xff0c;\u800c\u4e14\u5b83\u540c\u6837\u80fd\u88ab\u8bf4\u670d\u3002\u6539\u6cd5&#xff08;\u5b98\u65b9 cookbook \u7684\u601d\u8def&#xff09;&#xff1a;\u4e00\u6b21\u8bf7\u6c42\u91cc\u653e\u4e00\u6574\u5957 Noul&#xff08;\u6bcf\u7c7b\u5371\u5bb3\u7684\u662f \/ \u5426\u6982\u7387&#xff09;\u52a0\u4e00\u9053 Score&#xff08;\u7167\u505a\u7684\u5371\u5bb3\u6709\u591a\u91cd&#xff09;&#xff0c;\u7136\u540e\u7531\u4f60\u8bbe\u9608\u503c\u51b3\u5b9a\u653e\u884c \/ \u9001\u5ba1 \/ \u62e6\u622a \/ \u8f6c\u5ba2\u670d\u3002\u5f62\u72b6\u7167\u5b98\u65b9\u63cf\u8ff0\u5199&#xff08;\u9608\u503c\u5168\u662f\u793a\u610f\u503c&#xff0c;\u5b98\u65b9\u53ea\u8bf4&#034;\u7531\u4f60\u8bbe\u9608\u503c&#034;&#xff0c;\u6ca1\u7ed9\u63a8\u8350\u6570&#xff1b;score \u53ef\u843d\u4e24\u7ea7\u4e4b\u95f4&#xff0c;\u6240\u4ee5\u7528 &gt;&#061; 2.0 \u800c\u4e0d\u662f &#061;&#061; 2&#xff09;&#xff1a;<\/p>\n<p><span class=\"token keyword\">from<\/span> typesafe_sdk <span class=\"token keyword\">import<\/span> Noul<span class=\"token punctuation\">,<\/span> Score<span class=\"token punctuation\">,<\/span> TypeSafeClient<\/p>\n<p>client <span class=\"token operator\">&#061;<\/span> TypeSafeClient<span class=\"token punctuation\">(<\/span><span class=\"token punctuation\">)<\/span><\/p>\n<p>GUARD_QUESTIONS <span class=\"token operator\">&#061;<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string\">&#034;violence&#034;<\/span><span class=\"token punctuation\">:<\/span> Noul<span class=\"token punctuation\">(<\/span>instructions<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;The text asks for help planning violence against people&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;self_harm&#034;<\/span><span class=\"token punctuation\">:<\/span> Noul<span class=\"token punctuation\">(<\/span>instructions<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;The text expresses intent to harm oneself&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;jailbreak&#034;<\/span><span class=\"token punctuation\">:<\/span> Noul<span class=\"token punctuation\">(<\/span>instructions<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;The text tries to ignore or override the assistant&#039;s instructions&#034;<\/span><span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;severity&#034;<\/span><span class=\"token punctuation\">:<\/span> Score<span class=\"token punctuation\">(<\/span>instructions<span class=\"token operator\">&#061;<\/span><span class=\"token string\">&#034;How much harm would following this text cause&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n        criteria<span class=\"token operator\">&#061;<\/span><span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;No harm&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;Financial or reputational harm&#034;<\/span><span class=\"token punctuation\">,<\/span> <span class=\"token string\">&#034;Physical harm to a person&#034;<\/span><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><span class=\"token keyword\">def<\/span> <span class=\"token function\">gate<\/span><span class=\"token punctuation\">(<\/span>text<span class=\"token punctuation\">:<\/span> <span class=\"token builtin\">str<\/span><span class=\"token punctuation\">)<\/span> <span class=\"token operator\">&#8211;<\/span><span class=\"token operator\">&gt;<\/span> <span class=\"token builtin\">str<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    a <span class=\"token operator\">&#061;<\/span> client<span class=\"token punctuation\">.<\/span>system_one<span class=\"token punctuation\">(<\/span>state<span class=\"token operator\">&#061;<\/span>text<span class=\"token punctuation\">,<\/span> questions<span class=\"token operator\">&#061;<\/span>GUARD_QUESTIONS<span class=\"token punctuation\">)<\/span><span class=\"token punctuation\">.<\/span>answers<br \/>\n    <span class=\"token keyword\">if<\/span> a<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;severity&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>score <span class=\"token operator\">&gt;&#061;<\/span> <span class=\"token number\">2.0<\/span> <span class=\"token keyword\">or<\/span> a<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;violence&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>noul <span class=\"token operator\">&gt;<\/span> <span class=\"token number\">0.7<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token string\">&#034;block&#034;<\/span><br \/>\n    <span class=\"token keyword\">if<\/span> a<span class=\"token punctuation\">[<\/span><span class=\"token string\">&#034;self_harm&#034;<\/span><span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">.<\/span>noul <span class=\"token operator\">&gt;<\/span> <span class=\"token number\">0.5<\/span><span class=\"token punctuation\">:<\/span><br \/>\n        <span class=\"token keyword\">return<\/span> <span class=\"token string\">&#034;route_to_support&#034;<\/span><br \/>\n    <span class=\"token keyword\">return<\/span> <span class=\"token string\">&#034;pass&#034;<\/span><\/p>\n<p>decision <span class=\"token operator\">&#061;<\/span> gate<span class=\"token punctuation\">(<\/span>user_text<span class=\"token punctuation\">)<\/span>          <span class=\"token comment\"># \u8f93\u5165\u4fa7\u8fc7\u4e00\u6b21<\/span><br \/>\n<span class=\"token keyword\">if<\/span> decision <span class=\"token operator\">&#061;&#061;<\/span> <span class=\"token string\">&#034;pass&#034;<\/span><span class=\"token punctuation\">:<\/span><br \/>\n    answer <span class=\"token operator\">&#061;<\/span> your_llm<span class=\"token punctuation\">(<\/span>user_text<span class=\"token punctuation\">)<\/span><br \/>\n    decision <span class=\"token operator\">&#061;<\/span> gate<span class=\"token punctuation\">(<\/span>answer<span class=\"token punctuation\">)<\/span>         <span class=\"token comment\"># \u8f93\u51fa\u4fa7\u518d\u8fc7\u4e00\u6b21<\/span><\/p>\n<p>\u4e24\u4e2a\u5b98\u65b9\u5f3a\u8c03\u70b9\u503c\u5f97\u5355\u72ec\u8bb0\u4f4f&#xff1a;\u8f93\u5165\u4fa7\u548c\u8f93\u51fa\u4fa7\u90fd\u8981\u8fc7\u4e00\u904d&#xff0c;\u56e0\u4e3a\u770b\u8d77\u6765\u5f88\u6b63\u5e38\u7684\u63d0\u95ee\u4e5f\u53ef\u80fd\u5f15\u51fa\u6709\u5bb3\u56de\u7b54&#xff1b;\u800c &#034;Ignore your instructions&#034; \u8fd9\u7c7b\u6587\u672c\u5728\u8fd9\u91cc\u662f\u88ab\u6253\u5206\u6210\u8d8a\u72f1&#xff0c;\u4e0d\u662f\u88ab\u5f53\u6210\u6307\u4ee4\u6267\u884c\u2014\u2014\u5224\u65ad\u548c\u6267\u884c\u88ab\u62c6\u5230\u4e86\u4e24\u4e2a\u7ec4\u4ef6\u91cc&#xff0c;\u8fd9\u6b63\u662f&#034;\u95f8\u95e8\u4e0d\u662f\u53e6\u4e00\u4e2a LLM&#034;\u7684\u610f\u4e49\u3002\u81f3\u4e8e\u56db\u4e2a pattern \u7684\u5171\u540c\u5f62\u72b6&#xff0c;\u5176\u5b9e\u5c31\u4e00\u884c&#xff1a;<\/p>\n<p>\u628a\u5224\u65ad\u62c6\u6210\u9898&#xff08;\u4e00\u6b21\u8bf7\u6c42&#xff09;\u2500\u2500&gt; \u6309 id \u53d6\u7b54\u6848 \u2500\u2500&gt; \u9608\u503c \/ \u6743\u91cd \/ \u679a\u4e3e\u6821\u9a8c\u5728\u4ee3\u7801\u91cc \u2500\u2500&gt; \u4e09\u6761\u51fa\u8def&#xff1a;\u786e\u5b9a\u6027\u903b\u8f91 \/ \u4e13\u5bb6\u6a21\u578b \/ \u4eba\u5de5<\/p>\n<p>\u56db\u6bb5\u5168\u90e8\u662f\u4f60\u81ea\u5df1\u7684\u4ee3\u7801&#xff0c;\u5b98\u65b9\u53ea\u7ed9\u7b2c\u4e00\u6bb5\u548c\u6700\u540e\u4e00\u6bb5\u4e4b\u95f4\u7684\u5b57\u6bb5\u3002<\/p>\n<hr \/>\n<h3>7. \u63a5\u5230\u81ea\u5df1\u7cfb\u7edf\u91cc\u7684\u5de5\u7a0b\u7ec6\u8282<\/h3>\n<p>\u8fd9\u4e00\u7ae0\u56de\u7b54&#xff1a;\u7248\u672c\u600e\u4e48 pin\u3001\u9519\u8bef\u7801\u600e\u4e48\u63a5\u3001state \u600e\u4e48\u7626\u8eab\u3001\u4e2d\u6587\u573a\u666f\u8981\u989d\u5916\u76ef\u4ec0\u4e48\u3001\u4ee5\u53ca\u8ba9\u7f16\u7801\u52a9\u624b\u66ff\u4f60\u5199\u63a5\u5165\u4ee3\u7801\u3002<\/p>\n<p>\u7248\u672c\u8fd9\u6761\u6700\u5bb9\u6613\u57cb\u96f7\u3002\u5b98\u65b9\u5f53\u524d\u7684\u6307\u5411\u5173\u7cfb&#xff1a;<\/p>\n<table>\n<tr>\u5199\u6cd5\u73b0\u5728\u6307\u5411\u4f1a\u4e0d\u4f1a\u6f02\u8be5\u7528\u5728\u54ea<\/tr>\n<tbody>\n<tr>\n<td>jev-latest<\/td>\n<td>jev-1.13.0<\/td>\n<td>\u4f1a&#xff0c;\u65b0\u7248\u672c\u53d1\u5e03\u540e\u522b\u540d\u8ddf\u7740\u8d70<\/td>\n<td>\u63a2\u7d22\u671f\u3001Playground\u3001\u7ebf\u4e0a\u6ca1\u6709\u8c03\u597d\u7684\u9608\u503c<\/td>\n<\/tr>\n<tr>\n<td>jev-preview<\/td>\n<td>\u76ee\u524d\u4e5f\u662f jev-1.13.0<\/td>\n<td>\u5b98\u65b9\u6ce8\u660e\u73b0\u5728\u6ca1\u6709\u72ec\u7acb preview \u7248\u672c<\/td>\n<td>\u522b\u628a\u5b83\u5f53&#034;\u5b9e\u9a8c\u7279\u6027\u5f00\u5173&#034;\u7528<\/td>\n<\/tr>\n<tr>\n<td>jev-1.13<\/td>\n<td>\u56fa\u5b9a<\/td>\n<td>\u4e0d\u6f02<\/td>\n<td>\u9608\u503c \/ \u8bc4\u4f30\u96c6\u5bf9\u7740\u5b83\u8c03\u51fa\u6765\u7684\u7ebf\u4e0a\u670d\u52a1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u5b98\u65b9\u5efa\u8bae\u5199\u5f97\u5f88\u76f4\u63a5&#xff1a;\u5982\u679c\u4f60\u7684\u7f6e\u4fe1\u5ea6\u9608\u503c\u662f\u5bf9\u7740\u67d0\u4e2a\u7248\u672c\u8c03\u51fa\u6765\u7684&#xff0c;\u5c31 pin \u7248\u672c ID \u800c\u4e0d\u662f\u522b\u540d&#xff0c;\u5e76\u6309\u81ea\u5df1\u7684\u8282\u594f\u5347\u7ea7&#xff1b;\u540c\u65f6\u54cd\u5e94\u91cc\u7684 model \u5b57\u6bb5\u56de\u7684\u662f\u771f\u5b9e\u7248\u672c&#xff08;\u5982 jev-1.13.0&#xff09;&#xff0c;\u5e94\u8be5\u843d\u65e5\u5fd7\u3002SDK \u4fa7\u7684\u5199\u6cd5\u662f TypeSafeClient(model&#061;&#034;jev-1.13&#034;)\u3002\u6211\u5728\u6838\u5bf9\u65f6\u770b\u5230\u4e00\u4e2a\u633a\u80fd\u8bf4\u660e\u95ee\u9898\u7684\u73b0\u8c61&#xff1a;\u5b98\u65b9\u516c\u5f00\u7684 Models \u9875\u5f53\u524d\u5199\u7684\u662f jev-1.13.0&#xff0c;\u800c\u300aParallel questions\u300bcookbook \u7684\u793a\u4f8b\u4ee3\u7801\u91cc pin \u7684\u662f jev-1.12\u2014\u2014\u4e24\u5904\u7248\u672c\u53e3\u5f84\u4e0d\u5b8c\u5168\u4e00\u81f4\u3002\u6211\u4e0d\u5224\u65ad\u54ea\u8fb9\u662f\u5bf9\u7684&#xff0c;\u4f46\u5b83\u6070\u597d\u662f&#034;\u4e3a\u4ec0\u4e48\u8981 pin\u3001\u4e3a\u4ec0\u4e48\u8981\u628a\u54cd\u5e94\u7684 model \u843d\u5e93&#034;\u6700\u73b0\u5b9e\u7684\u7406\u7531&#xff1a;\u6587\u6863\u53e3\u5f84\u90fd\u4e0d\u5b8c\u5168\u540c\u6b65&#xff0c;\u4f60\u7ebf\u4e0a\u6309\u522b\u540d\u8d70&#xff0c;\u51fa\u4e8b\u65f6\u51ed\u4ec0\u4e48\u786e\u5b9a\u5f53\u65f6\u8dd1\u7684\u662f\u54ea\u4e2a\u7248\u672c\u3002\u5224\u65ad\u6807\u51c6\u6211\u6309&#034;\u9608\u503c\u6709\u6ca1\u6709\u5bf9\u7740\u5b83\u8c03\u8fc7&#034;\u6765\u5206&#xff1a;\u8c03\u8fc7\u5c31 pin \u7248\u672c ID&#xff0c;\u6ca1\u8c03\u8fc7&#xff08;\u63a2\u7d22\u671f\u3001\u5185\u90e8\u5de5\u5177&#xff09;\u7528 jev-latest \u65e0\u59a8&#xff1b;\u7070\u5ea6\u65f6\u6309 model \u5b57\u6bb5\u5206\u7ec4\u5bf9\u6bd4 confidence \u5206\u5e03&#xff0c;\u6bd4\u770b\u603b\u51c6\u786e\u7387\u66f4\u65e9\u53d1\u73b0\u95ee\u9898&#xff08;\u8bbe\u8ba1\u5224\u65ad&#xff09;\u3002<\/p>\n<p>\u9519\u8bef\u7801\u56db\u4ef6\u5957&#xff1a;<\/p>\n<table>\n<tr>\u72b6\u6001\u7801\u542b\u4e49&#xff08;\u5b98\u65b9\u53e3\u5f84&#xff09;\u8be5\u600e\u4e48\u63a5\u6211\u7684\u5904\u7406\u987a\u5e8f<\/tr>\n<tbody>\n<tr>\n<td>401<\/td>\n<td>key \u7f3a\u5931\u6216\u65e0\u6548<\/td>\n<td>\u914d\u7f6e\u95ee\u9898&#xff0c;\u91cd\u8bd5\u65e0\u610f\u4e49<\/td>\n<td>\u542f\u52a8\u65f6\u5c31\u6821\u9a8c\u73af\u5883\u53d8\u91cf&#xff0c;\u5931\u8d25\u522b\u7b49\u9996\u4e2a\u6d41\u91cf<\/td>\n<\/tr>\n<tr>\n<td>422<\/td>\n<td>\u8bf7\u6c42\u4f53\u6821\u9a8c\u5931\u8d25&#xff0c;body \u4f1a\u6307\u51fa\u54ea\u4e2a\u5b57\u6bb5<\/td>\n<td>\u4fee\u4ee3\u7801<\/td>\n<td>\u65e5\u5fd7\u91cc\u5b58\u6574\u4e2a body&#xff0c;\u4e0d\u8981\u53ea\u5b58\u72b6\u6001\u7801<\/td>\n<\/tr>\n<tr>\n<td>429<\/td>\n<td>\u8d85\u8fc7\u901f\u7387\u9650\u5236<\/td>\n<td>\u9000\u907f\u91cd\u8bd5<\/td>\n<td>\u961f\u5217\u8981\u6709\u4e0a\u9650&#xff0c;\u8d85\u4e86\u5c31\u8d70\u786e\u5b9a\u6027\u8def\u5f84<\/td>\n<\/tr>\n<tr>\n<td>529<\/td>\n<td>TypeSafe \u4e34\u65f6\u8fc7\u8f7d<\/td>\n<td>\u7a0d\u540e\u91cd\u8bd5<\/td>\n<td>\u4e0e 429 \u5206\u5f00\u8ba1\u6570&#xff0c;\u4e00\u4e2a\u662f\u4f60\u7684\u91cf&#xff0c;\u4e00\u4e2a\u662f\u5b83\u7684\u91cf<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>SDK \u9ed8\u8ba4\u5904\u7406\u91cd\u8bd5&#xff08;\u6307\u6570\u9000\u907f&#xff09;\u5e76\u9075\u5b88 retry-after \u5934&#xff1b;\u81ea\u5df1\u5199 HTTP \u7684\u8fd9\u4e24\u6761\u8981\u8865\u3002401 \/ 422 \u5c5e\u4e8e\u8bf7\u6c42\u672c\u8eab\u9519&#xff0c;\u91cd\u8bd5\u53ea\u4f1a\u653e\u5927\u95ee\u9898&#xff08;\u8fd9\u662f\u6211\u7684\u5224\u65ad&#xff0c;\u5b98\u65b9\u53ea\u8bf4\u4e86 SDK \u4f1a\u91cd\u8bd5\u4e0e\u9075\u5b88 retry-after&#xff0c;\u6ca1\u6709\u6309\u7801\u533a\u5206&#xff09;\u3002429 \u610f\u5473\u7740\u4f60\u649e\u7684\u662f\u81ea\u5df1\u90a3 1,200 rpm&#xff08;\u6216 250k tokens\/\u79d2&#xff09;\u7684\u7ebf&#xff0c;\u800c\u5b98\u65b9\u8fd8\u8b66\u544a\u9650\u989d\u53ef\u80fd\u968f\u65f6\u8c03\u6574&#xff0c;\u6240\u4ee5\u91cd\u8bd5\u961f\u5217\u5fc5\u987b\u6709\u4e0a\u9650&#xff1b;\u4e0a\u9650\u4e4b\u5916\u6309\u5b98\u65b9 intent routing \u7684\u7b2c\u4e00\u6761\u51fa\u8def\u56de\u843d\u786e\u5b9a\u6027\u903b\u8f91&#xff0c;\u800c\u4e0d\u662f\u65e0\u9650\u9000\u907f\u628a\u5de5\u5355\u5806\u5230\u8d85\u65f6\u3002<\/p>\n<p>state \u7626\u8eab\u7684\u51e0\u6761\u5b9e\u64cd&#xff08;\u4f9d\u636e\u5b98\u65b9 state \u5f62\u6001\u5efa\u8bae &#043; \u9884\u7b97\u7ed3\u6784&#xff09;&#xff1a;\u4f18\u5148 object \u4e14\u53ea\u653e\u5224\u65ad\u9700\u8981\u7684\u5b57\u6bb5&#xff0c;\u7528\u6237\u5386\u53f2\u3001\u9644\u4ef6\u6458\u8981\u3001\u5185\u90e8\u6807\u7b7e\u7559\u5728\u81ea\u5df1\u5e93\u91cc&#xff1b;\u4e24\u628a\u5c3a\u5b50\u90fd\u8981\u7b97&#xff0c;64k \u7ba1 state \u52a0\u6240\u6709\u95ee\u9898\u7684\u603b\u91cf\u300132k \u7ba1 state \u52a0\u6700\u957f\u5355\u9898&#xff0c;\u957f\u6587\u6863\u8d1f\u8f7d\u649e\u7684\u7b2c\u4e8c\u6761\u66f4\u9690\u853d&#xff0c;\u56e0\u4e3a\u5355\u9898\u5199\u957f\u4e86\u540c\u6837\u4f1a\u8d85&#xff1b;\u6295\u673a\u9898\u4e5f\u7b97 state \u4e4b\u5916\u7684\u8f93\u5165&#xff0c;\u4e00\u6b21 fan-out \u91cc\u5341\u51e0\u9053 instructions \u4f1a\u660e\u663e\u63a8\u9ad8 input_tokens&#xff0c;\u8bb0\u8fdb\u65e5\u5fd7\u624d\u80fd\u5f52\u56e0&#xff1b;\u91cd\u6392\u573a\u666f\u91cc\u5019\u9009\u6bb5\u843d\u662f\u7edd\u5bf9\u4e3b\u6210\u672c&#xff0c;\u5148\u538b\u5019\u9009\u6570\u518d\u538b\u9898\u957f\u3002<\/p>\n<p>\u4e2d\u6587&#xff08;CJK&#xff09;\u573a\u666f\u8981\u989d\u5916\u76ef\u7684&#xff1a;\u5b98\u65b9\u53e3\u5f84\u662f\u82f1\u8bed\u4e3a\u4e3b\u3001CJK \u80fd\u7528\u4f46\u7cbe\u5ea6\u66f4\u4f4e&#xff0c;\u4e0a\u975e\u82f1\u8bed\u8d1f\u8f7d\u524d\u5148\u7528\u81ea\u5bb6\u6570\u636e\u6d4b&#xff0c;\u8def\u7531\u65f6\u683c\u5916\u5173\u6ce8 confidence\u3002\u6211\u4f1a\u8fd9\u4e48\u843d&#xff08;\u4ee5\u4e0b\u662f\u6211\u7684\u8bbe\u8ba1\u5224\u65ad&#xff0c;\u4e0d\u662f\u5b98\u65b9\u5efa\u8bae&#xff09;&#xff1a;\u4e2d\u6587\u9608\u503c\u6574\u4f53\u6bd4\u82f1\u6587\u4fdd\u5b88\u8d77\u6b65&#xff1b;Choice \u91cc\u7ed9&#034;\u5176\u4ed6 \/ \u4fe1\u606f\u4e0d\u8db3&#034;\u8fd9\u7c7b\u515c\u5e95\u9009\u9879&#xff08;\u5b98\u65b9 date extraction \u90a3\u4e2a&#034;\u672a\u8bf4\u660e&#034;\u9009\u9879\u7684\u624b\u6cd5\u4e0e\u8bed\u8a00\u65e0\u5173&#xff09;&#xff1b;\u7ebf\u4e0a\u6309\u8bed\u8a00\u5206\u7ec4\u770b confidence \u5206\u5e03&#xff0c;\u522b\u8ba9\u4e00\u4e2a\u5e73\u5747\u503c\u628a\u4e24\u7c7b\u6df7\u5728\u4e00\u8d77\u76d6\u4f4f\u3002\u5b98\u65b9\u6587\u6863\u6ca1\u6709\u89c4\u5b9a instructions \u8be5\u7528\u54ea\u79cd\u8bed\u8a00&#xff0c;\u6240\u6709\u5b98\u65b9\u793a\u4f8b\u90fd\u662f\u82f1\u6587&#xff0c;\u4e2d\u6587\u9898\u91cc\u8981\u4e0d\u8981\u5199\u6210\u4e2d\u6587\u6211\u62ff\u4e0d\u5230\u6587\u6863\u7b54\u6848&#xff0c;\u53ea\u80fd\u4f60\u81ea\u5df1\u6d4b\u2014\u2014\u8fd9\u6761\u6211\u660e\u786e\u6807\u4e3a\u672a\u6838\u5b9e\u3002<\/p>\n<p>\u6700\u540e\u4e00\u4ef6\u7701\u4e8b\u7684\u4e8b&#xff1a;\u5b98\u65b9\u7ed9\u4e86 agent skill&#xff0c;\u8ba9\u7f16\u7801\u52a9\u624b\u66ff\u4f60\u5199\u63a5\u5165\u4ee3\u7801\u3002Claude Code \u8d70\u63d2\u4ef6\u5e02\u573a claude plugin marketplace add typesafe-ai\/skills \u7136\u540e claude plugin install typesafe&#064;typesafe-ai&#xff1b;\u5176\u4ed6 agent \u7528 npx skills add typesafe-ai\/skills &#8211;skill typesafe-ai&#xff0c;\u9ed8\u8ba4\u88c5\u5230\u9879\u76ee\u7ea7&#xff0c;\u52a0 -g \u88c5\u5168\u5c40\u3002\u5b98\u65b9\u8bf4\u660e\u662f&#xff1a;\u88c5\u4e86\u8fd9\u4e2a skill&#xff0c;\u7f16\u7801\u52a9\u624b\u5c31\u80fd\u62ff\u5230 API\u3001primitives\u3001patterns \u7684\u5b8c\u6574\u4e0a\u4e0b\u6587\u6765\u751f\u6210\u6b63\u786e\u4ee3\u7801&#xff08;SKILL.md \u662f\u516c\u5f00\u6587\u4ef6&#xff0c;\u5728\u5b98\u65b9 skills \u4ed3\u5e93\u91cc&#xff09;\u3002\u8fd9\u91cc\u8981\u8bf4\u6e05\u695a\u907f\u514d\u8bef\u4f1a&#xff1a;\u672c\u6587\u6240\u6709\u793a\u4f8b\u90fd\u662f\u6211\u4ece\u5b98\u65b9\u6587\u6863\u4e0e cookbook \u539f\u6587\u6539\u5199\u6765\u7684&#xff0c;\u6ca1\u6709\u501f\u52a9\u8fd9\u4e2a skill \u751f\u6210&#xff0c;\u4e5f\u6ca1\u6709\u5b9e\u6d4b\u8fc7\u5b83\u751f\u6210\u7684\u4ee3\u7801\u3002\u4f46\u6309\u5b83\u7684\u5b9a\u4f4d&#xff0c;\u8ba9\u7f16\u7801\u52a9\u624b\u5199\u63a5\u5165\u4ee3\u7801\u65f6\u6302\u4e0a\u5b83&#xff0c;\u6bd4\u8ba9\u5b83\u51ed\u8bb0\u5fc6\u731c\u5b57\u6bb5\u540d\u5b89\u5168\u5f97\u591a\u3002<\/p>\n<h5>Q1&#xff1a;\u80fd\u4e0d\u80fd\u8ba9\u5b83\u5b66\u6211\u7684\u4e1a\u52a1\u53e3\u5f84&#xff1f;<\/h5>\n<p>\u4e0d\u80fd\u5fae\u8c03&#xff0c;\u5b98\u65b9\u660e\u786e\u4e0d fine-tune\u3001\u4e0d LoRA\u3001\u6240\u6709\u8d26\u6237\u540c\u4e00\u4efd\u6743\u91cd\u3002\u4e1a\u52a1\u53e3\u5f84\u53ea\u6709\u4e09\u4e2a\u843d\u70b9&#xff1a;state \u91cc\u653e\u4ec0\u4e48\u5b57\u6bb5\u3001instructions \u600e\u4e48\u95ee\u3001criteria \u6bcf\u6761\u63cf\u8ff0\u600e\u4e48\u5199\u3002\u7b2c 4 \u7ae0\u90a3\u4e2a criteria&#061;{&#034;true&#034;: &#8230;, &#034;false&#034;: &#8230;} \u548c\u7b2c 3 \u7ae0\u7684\u53cd\u5f15\u53f7\u7ed3\u6784\u5316\u5f15\u7528&#xff0c;\u5c31\u662f\u5168\u90e8\u7684\u53ef\u63a7\u9762\u3002<\/p>\n<hr \/>\n<h3>\u6700\u540e\u603b\u7ed3<\/h3>\n<ul>\n<li>\u63a5\u5165\u8fd9\u4ef6\u4e8b\u672c\u8eab\u5f88\u5feb&#xff1a;Playground \u8bd5\u63aa\u8f9e\u3001curl \u5b9a\u5f62\u72b6\u3001SDK \u6216\u88f8 HTTP \u8fdb\u670d\u52a1&#xff1b;\u5b98\u65b9 SDK \u53ea\u6709 Python&#xff08;&gt;&#061; 3.10&#xff09;\u548c JavaScript&#xff0c;\u5176\u4ed6\u8bed\u8a00\u76f4\u63a5\u8c03 POST https:\/\/api.typesafe.ai\/v1\/systemone&#xff0c;SDK \u7684\u589e\u503c\u662f\u91cd\u8bd5\u6307\u6570\u9000\u907f\u548c\u9075\u5b88 retry-after\u3002<\/li>\n<li>5 \u4e2a\u6570\u51b3\u5b9a\u67b6\u6784&#xff1a;$0.042\/Mtok \u4e14\u8f93\u51fa\u514d\u8d39\u300164k \u4e0e 32k \u4e24\u628a\u9884\u7b97\u5c3a\u3001250k tokens\/\u79d2 \u4e0e 1,200 rpm\u3001\u53ea\u63a5\u6587\u672c\u3001\u82f1\u8bed\u4e3a\u4e3b CJK \u7cbe\u5ea6\u66f4\u4f4e&#xff1b;\u800c\u4e14\u5b98\u65b9\u81ea\u5df1\u5199\u4e86\u9650\u989d\u53ef\u80fd\u968f\u65f6\u8c03\u6574&#xff0c;\u6240\u4ee5\u5bb9\u91cf\u6309&#034;\u4f1a\u53d8\u5c0f&#034;\u8bbe\u8ba1\u3002<\/li>\n<li>\u4e00\u6b21\u591a\u95ee\u662f\u4e3b\u6218\u573a&#xff1a;\u5b98\u65b9\u53e3\u5f84\u662f state \u53ea\u541e\u4e00\u6b21\u3001\u6240\u6709\u95ee\u9898\u5e76\u884c\u4e14\u76f8\u4e92\u72ec\u7acb&#xff0c;cookbook \u5b9e\u6d4b 12.2x \u66f4\u4fbf\u5b9c\u300110.0x \u66f4\u5feb\u3001\u7b54\u6848\u4e0d\u53d8&#xff1b;12.2x \u548c 13x \u4e4b\u95f4\u90a3 0.8x&#xff0c;\u662f\u95ee\u9898\u81ea\u8eab\u4e5f\u8981\u4ed8\u8f93\u5165 token \u7684\u7ed3\u679c&#xff08;\u6211\u6309\u5b98\u65b9\u8ba1\u8d39\u7ed3\u6784\u7684\u63a8\u7b97&#xff09;\u3002\u4f46\u90a3\u4e2a 10.0x \u7684\u524d\u63d0\u662f&#034;\u5355\u9898\u8bf7\u6c42\u4e32\u884c\u53d1&#034;&#xff0c;\u4f60\u539f\u6765\u5c31\u5e76\u53d1\u7684\u8bdd\u65f6\u5ef6\u6536\u76ca\u4f1a\u7f29\u6c34&#xff0c;\u65e0\u6761\u4ef6\u6210\u7acb\u7684\u662f\u6210\u672c\u90a3\u6761\u3002<\/li>\n<li>\u4e09\u539f\u8bed\u7684\u5dee\u522b\u5728\u8fd4\u56de\u5b57\u6bb5&#xff0c;\u4e0d\u5728\u8bed\u4e49\u5305\u88c5&#xff1a;choice \u7ed9\u76f8\u5bf9\u9009\u62e9\u3001score \u7ed9\u7edd\u5bf9\u6863\u4f4d\u4e14\u53ef\u843d\u4e24\u7ea7\u4e4b\u95f4&#xff0c;\u4e24\u8005\u5e26 confidence&#xff1b;noul \u53ea\u6709\u6570\u503c\u3001\u4e0d\u5e26 confidence&#xff0c;\u8def\u7531\u65f6\u76f4\u63a5\u5bf9\u5b83\u8bbe\u9608\u503c\u3002\u53ea\u8981\u573a\u666f\u91cc\u5b58\u5728&#034;\u5b81\u53ef\u4e0d\u7b54&#034;&#xff0c;\u5c31\u4e0d\u8981\u53ea\u5199 Choice\u3002<\/li>\n<li>\u7f6e\u4fe1\u5ea6\u662f\u53ef\u590d\u7b97\u7684\u5206\u5e03\u51fd\u6570&#xff1a;(n \u00d7 maxP \u2212 1) \/ (n \u2212 1) \u80fd\u5bf9\u4e0a\u5b98\u65b9\u54cd\u5e94\u91cc\u7684 0.78 \u548c 1.0&#xff1b;\u8981\u6284\u7684\u662f&#034;\u4e00\u6761\u5730\u677f\u7ebf &#043; \u6309\u64cd\u4f5c\u98ce\u9669\u5206\u6863&#034;\u8fd9\u4e2a\u5f62\u72b6&#xff0c;0.5 \/ 0.9 \u8fd9\u4e24\u4e2a\u6570\u5f97\u81ea\u5df1\u91cd\u5b9a\u3002<\/li>\n<li>\u56db\u4e2a pattern \u7684\u5171\u540c\u5f62\u72b6&#xff1a;\u628a\u5224\u65ad\u62c6\u6210\u9898&#xff08;\u4e00\u6b21\u8bf7\u6c42&#xff09;\u2192 \u6309 id \u53d6\u7b54\u6848 \u2192 \u9608\u503c \/ \u6743\u91cd \/ \u679a\u4e3e\u6821\u9a8c\u5168\u5728\u4f60\u4ee3\u7801\u91cc \u2192 \u51fa\u53e3\u4fdd\u7559\u786e\u5b9a\u6027\u903b\u8f91\u3001\u4e13\u5bb6\u6a21\u578b\u3001\u4eba\u5de5\u4e09\u6761\u3002\u62a4\u680f\u8fd9\u6761\u5b98\u65b9\u8bb2\u5f97\u6700\u72e0&#xff1a;\u518d\u5957\u4e00\u4e2a LLM \u5f53\u95f8\u95e8\u8981\u591a\u4ed8\u4e00\u6b21\u5ef6\u8fdf\u4e00\u6b21\u8c03\u7528&#xff0c;\u800c\u4e14\u5b83\u540c\u6837\u80fd\u88ab\u8bf4\u670d\u3002<\/li>\n<li>\u5de5\u7a0b\u7ec6\u8282\u91cc\u6700\u5bb9\u6613\u88ab\u8df3\u8fc7\u7684\u662f\u7248\u672c&#xff0c;\u4e5f\u6700\u4e0d\u8be5\u8df3\u8fc7&#xff1a;\u522b\u540d\u4f1a\u6f02\u3001jev-preview \u73b0\u5728\u5e76\u6ca1\u6709\u72ec\u7acb\u7248\u672c\u3001pin \u7248\u672c ID \u5e76\u628a\u54cd\u5e94 model \u843d\u65e5\u5fd7&#xff1b;\u81f3\u4e8e\u5bf9\u540e\u7aef \/ \u67b6\u6784\u540c\u5b66&#xff0c;\u8fd9\u4e2a\u63a5\u53e3\u771f\u6b63\u7701\u4e0b\u6765\u7684\u4e0d\u662f&#034;\u5c11\u5199 prompt&#034;&#xff0c;\u662f\u628a\u4e00\u6bb5\u975e\u7ed3\u6784\u5316\u5224\u65ad\u6362\u6210\u4e00\u7ec4\u53ef\u843d\u5e93\u3001\u53ef\u7d22\u5f15\u3001\u53ef\u56de\u5f52\u7684\u5b57\u6bb5\u2014\u2014\u4f60\u8981\u5efa\u7684\u8fd8\u662f\u90a3\u4e09\u6837\u8001\u4e1c\u897f&#xff1a;answers \u843d\u5e93\u8868\u3001usage.input_tokens \u7684\u6210\u672c\u5f52\u56e0\u3001429 \/ 529 \u4e4b\u540e\u7684\u786e\u5b9a\u6027\u56de\u843d\u3002<\/li>\n<\/ul>\n<p>\u4e00\u53e5\u8bdd\u7ed3\u8bba&#xff1a;\u628a Jev \u5f53\u4e00\u4e2a&#034;\u8fd4\u56de\u5b57\u6bb5\u7684\u63a5\u53e3&#034;\u8bbe\u8ba1&#xff0c;\u5b83\u4f1a\u5f88\u542c\u8bdd&#xff1b;\u628a\u5b83\u5f53\u4e00\u4e2a&#034;\u4f1a\u66ff\u4f60\u51b3\u5b9a\u7684\u670d\u52a1&#034;\u63a5\u8fdb\u4e3b\u5e72&#xff0c;\u4f60\u7f3a\u7684\u4e0d\u662f\u6a21\u578b\u80fd\u529b&#xff0c;\u662f\u9608\u503c\u3001\u56de\u843d\u548c\u65e5\u5fd7\u8fd9\u4e09\u4ef6\u8001\u57fa\u672c\u529f\u3002<\/p>\n<h3>\u53c2\u8003\u8d44\u6599 &amp; \u81f4\u8c22<\/h3>\n<p>[1] Quick start-\u5b98\u65b9\u6587\u6863 [2] API reference-\u5b98\u65b9\u6587\u6863 [3] Models\u3001\u4ef7\u683c\u4e0e\u9650\u989d-\u5b98\u65b9\u6587\u6863 [4] \u4e09\u79cd\u539f\u8bed-\u5b98\u65b9\u6587\u6863 [5] State \u5199\u6cd5-\u5b98\u65b9\u6587\u6863 [6] SDK-\u5b98\u65b9\u6587\u6863 [7] Parallel questions-\u5b98\u65b9 cookbook [8] Speculative fan-out-\u5b98\u65b9 patterns [9] Confidence-\u5b98\u65b9\u6587\u6863 [10] Intent routing-\u5b98\u65b9 patterns [11] Re-ranking-\u5b98\u65b9 cookbook [12] Function calling-\u5b98\u65b9 cookbook [13] Guardrails for LLMs-\u5b98\u65b9 cookbook [14] Agent skill-\u5b98\u65b9\u6587\u6863<\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#x1f4a1; \u4e0a\u4e00\u7bc7\u8bb2\u7684\u662f\u5b83\u662f\u4ec0\u4e48&#xff0c;\u8fd9\u4e00\u7bc7\u53ea\u8bb2\u600e\u4e48\u7528\u5b83\u3002\u5b98\u65b9\u7ed9\u7684\u5165\u53e3\u975e\u5e38\u7a84&#xff1a;\u4e00\u4e2a POST https:\/\/api.typesafe.ai\/v1\/systemone&#xff0c;\u8bf7\u6c42\u4f53\u4f60\u53ea\u8981\u7ba1\u4e09\u6837\u2014\u2014state\u3001model\u3001questions&#xff1b;\u8fd4\u56de\u4f53\u53ea\u8981\u7ba1\u4e24\u6837\u2014\u2014answers \u548c usage\u3002\u5269\u4e0b\u7684\u5168\u662f\u5de5\u7a0b\u95ee\u9898\u3002<br \/>\n\u4f46\u771f\u8981\u628a\u5b83\u653e\u8fdb\u670d\u52a1\u91cc&#xff0c;\u95ee\u9898\u4f1a\u4e00\u4e32\u63a5\u4e00\u4e32\u5192\u51fa\u6765&#xff1a;\u4e00\u6b21\u80fd\u95ee\u51e0\u9053\u9898&#xff1f;\u9898\u76ee\u4e4b<\/p>\n","protected":false},"author":2,"featured_media":111386,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[11653,50],"topic":[],"class_list":["post-111387","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-11653","tag-50"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>[AI\u5de5\u7a0b]Jev \u51b3\u7b56\u6a21\u578b\u7b2c\u4e8c\u7bc7\uff1a\u4e09\u539f\u8bed\u3001\u4e00\u6b21\u591a\u95ee\u4e0e\u7f6e\u4fe1\u5ea6\u8def\u7531\uff0c\u4ece Playground \u5230\u80fd\u4e0a\u7ebf\u7684\u4ee3\u7801 - \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\/111387.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"[AI\u5de5\u7a0b]Jev \u51b3\u7b56\u6a21\u578b\u7b2c\u4e8c\u7bc7\uff1a\u4e09\u539f\u8bed\u3001\u4e00\u6b21\u591a\u95ee\u4e0e\u7f6e\u4fe1\u5ea6\u8def\u7531\uff0c\u4ece Playground \u5230\u80fd\u4e0a\u7ebf\u7684\u4ee3\u7801 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"&#x1f4a1; \u4e0a\u4e00\u7bc7\u8bb2\u7684\u662f\u5b83\u662f\u4ec0\u4e48&#xff0c;\u8fd9\u4e00\u7bc7\u53ea\u8bb2\u600e\u4e48\u7528\u5b83\u3002\u5b98\u65b9\u7ed9\u7684\u5165\u53e3\u975e\u5e38\u7a84&#xff1a;\u4e00\u4e2a POST https:\/\/api.typesafe.ai\/v1\/systemone&#xff0c;\u8bf7\u6c42\u4f53\u4f60\u53ea\u8981\u7ba1\u4e09\u6837\u2014\u2014state\u3001model\u3001questions&#xff1b;\u8fd4\u56de\u4f53\u53ea\u8981\u7ba1\u4e24\u6837\u2014\u2014answers \u548c usage\u3002\u5269\u4e0b\u7684\u5168\u662f\u5de5\u7a0b\u95ee\u9898\u3002 \u4f46\u771f\u8981\u628a\u5b83\u653e\u8fdb\u670d\u52a1\u91cc&#xff0c;\u95ee\u9898\u4f1a\u4e00\u4e32\u63a5\u4e00\u4e32\u5192\u51fa\u6765&#xff1a;\u4e00\u6b21\u80fd\u95ee\u51e0\u9053\u9898&#xff1f;\u9898\u76ee\u4e4b\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/111387.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-30T18:27:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20260930182734-6abd5496850ec.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=\"13 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111387.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/111387.html\",\"name\":\"[AI\u5de5\u7a0b]Jev \u51b3\u7b56\u6a21\u578b\u7b2c\u4e8c\u7bc7\uff1a\u4e09\u539f\u8bed\u3001\u4e00\u6b21\u591a\u95ee\u4e0e\u7f6e\u4fe1\u5ea6\u8def\u7531\uff0c\u4ece Playground \u5230\u80fd\u4e0a\u7ebf\u7684\u4ee3\u7801 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-30T18:27:36+00:00\",\"dateModified\":\"2026-09-30T18:27:36+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/111387.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/111387.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/111387.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"[AI\u5de5\u7a0b]Jev \u51b3\u7b56\u6a21\u578b\u7b2c\u4e8c\u7bc7\uff1a\u4e09\u539f\u8bed\u3001\u4e00\u6b21\u591a\u95ee\u4e0e\u7f6e\u4fe1\u5ea6\u8def\u7531\uff0c\u4ece Playground \u5230\u80fd\u4e0a\u7ebf\u7684\u4ee3\u7801\"}]},{\"@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":"[AI\u5de5\u7a0b]Jev \u51b3\u7b56\u6a21\u578b\u7b2c\u4e8c\u7bc7\uff1a\u4e09\u539f\u8bed\u3001\u4e00\u6b21\u591a\u95ee\u4e0e\u7f6e\u4fe1\u5ea6\u8def\u7531\uff0c\u4ece Playground \u5230\u80fd\u4e0a\u7ebf\u7684\u4ee3\u7801 - \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\/111387.html","og_locale":"zh_CN","og_type":"article","og_title":"[AI\u5de5\u7a0b]Jev \u51b3\u7b56\u6a21\u578b\u7b2c\u4e8c\u7bc7\uff1a\u4e09\u539f\u8bed\u3001\u4e00\u6b21\u591a\u95ee\u4e0e\u7f6e\u4fe1\u5ea6\u8def\u7531\uff0c\u4ece Playground \u5230\u80fd\u4e0a\u7ebf\u7684\u4ee3\u7801 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"&#x1f4a1; \u4e0a\u4e00\u7bc7\u8bb2\u7684\u662f\u5b83\u662f\u4ec0\u4e48&#xff0c;\u8fd9\u4e00\u7bc7\u53ea\u8bb2\u600e\u4e48\u7528\u5b83\u3002\u5b98\u65b9\u7ed9\u7684\u5165\u53e3\u975e\u5e38\u7a84&#xff1a;\u4e00\u4e2a POST https:\/\/api.typesafe.ai\/v1\/systemone&#xff0c;\u8bf7\u6c42\u4f53\u4f60\u53ea\u8981\u7ba1\u4e09\u6837\u2014\u2014state\u3001model\u3001questions&#xff1b;\u8fd4\u56de\u4f53\u53ea\u8981\u7ba1\u4e24\u6837\u2014\u2014answers \u548c usage\u3002\u5269\u4e0b\u7684\u5168\u662f\u5de5\u7a0b\u95ee\u9898\u3002 \u4f46\u771f\u8981\u628a\u5b83\u653e\u8fdb\u670d\u52a1\u91cc&#xff0c;\u95ee\u9898\u4f1a\u4e00\u4e32\u63a5\u4e00\u4e32\u5192\u51fa\u6765&#xff1a;\u4e00\u6b21\u80fd\u95ee\u51e0\u9053\u9898&#xff1f;\u9898\u76ee\u4e4b","og_url":"https:\/\/www.wsisp.com\/helps\/111387.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-30T18:27:36+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/10\/20260930182734-6abd5496850ec.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"13 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/111387.html","url":"https:\/\/www.wsisp.com\/helps\/111387.html","name":"[AI\u5de5\u7a0b]Jev \u51b3\u7b56\u6a21\u578b\u7b2c\u4e8c\u7bc7\uff1a\u4e09\u539f\u8bed\u3001\u4e00\u6b21\u591a\u95ee\u4e0e\u7f6e\u4fe1\u5ea6\u8def\u7531\uff0c\u4ece Playground \u5230\u80fd\u4e0a\u7ebf\u7684\u4ee3\u7801 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-30T18:27:36+00:00","dateModified":"2026-09-30T18:27:36+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/111387.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/111387.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/111387.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"[AI\u5de5\u7a0b]Jev \u51b3\u7b56\u6a21\u578b\u7b2c\u4e8c\u7bc7\uff1a\u4e09\u539f\u8bed\u3001\u4e00\u6b21\u591a\u95ee\u4e0e\u7f6e\u4fe1\u5ea6\u8def\u7531\uff0c\u4ece Playground \u5230\u80fd\u4e0a\u7ebf\u7684\u4ee3\u7801"}]},{"@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\/111387","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=111387"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/111387\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/111386"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=111387"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=111387"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=111387"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=111387"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}