{"id":110145,"date":"2026-09-26T08:25:03","date_gmt":"2026-09-26T00:25:03","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/110145.html"},"modified":"2026-09-26T08:25:03","modified_gmt":"2026-09-26T00:25:03","slug":"llm-%e5%ba%94%e7%94%a8%e6%88%90%e6%9c%ac%e5%b7%a5%e7%a8%8b%ef%bc%9a%e5%8d%95%e4%bb%b7%e4%bd%8e%e4%b8%8d%e7%ad%89%e4%ba%8e%e6%80%bb%e8%b4%a6%e4%bd%8e%ef%bc%8cagent-%e7%9a%84-token-%e8%b4%a6%e6%80%8e","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/110145.html","title":{"rendered":"LLM \u5e94\u7528\u6210\u672c\u5de5\u7a0b\uff1a\u5355\u4ef7\u4f4e\u4e0d\u7b49\u4e8e\u603b\u8d26\u4f4e\uff0cAgent \u7684 token \u8d26\u600e\u4e48\u7b97"},"content":{"rendered":"<h2>LLM \u5e94\u7528\u6210\u672c\u5de5\u7a0b&#xff1a;\u5355\u4ef7\u4f4e\u4e0d\u7b49\u4e8e\u603b\u8d26\u4f4e&#xff0c;Agent \u7684 token \u8d26\u600e\u4e48\u7b97<\/h2>\n<p>LLM \u7cfb\u5217\u53c8\u4e00\u7bc7\u3002\u524d\u9762\u8bb2\u4e86 Agent\u3001\u8bb0\u5fc6\u3001\u8bc4\u6d4b\u3001\u5b89\u5168\u2014\u2014\u4f46\u6709\u4e2a\u6bcf\u5f20\u8d26\u5355\u90fd\u5728\u95ee\u7684\u95ee\u9898\u6ca1\u6b63\u9762\u8bb2\u8fc7&#xff1a;\u6210\u672c\u3002\u8fd9\u7bc7\u628a\u5b83\u7b97\u6e05\u695a\u3002<\/p>\n<h3>\u4e00\u3001\u7ed3\u8bba\u5148\u653e\u8fd9\u513f<\/h3>\n<table>\n<tr>\u6760\u6746\u7701\u591a\u5c11\u6210\u672c<\/tr>\n<tbody>\n<tr>\n<td>\u63d0\u793a\u8bcd\u7f13\u5b58<\/td>\n<td>\u8f93\u5165\u6210\u672c\u780d 5~10 \u500d<\/td>\n<td>\u96f6\u4ee3\u7801&#xff0c;\u6539 API \u53c2\u6570<\/td>\n<\/tr>\n<tr>\n<td>\u6a21\u578b\u5206\u7ea7\u8def\u7531<\/td>\n<td>\u5355\u6b65\u6210\u672c\u780d 5~20 \u500d<\/td>\n<td>\u52a0\u4e00\u4e2a\u5206\u8bca\u5c42<\/td>\n<\/tr>\n<tr>\n<td>\u4e0a\u4e0b\u6587\u7626\u8eab<\/td>\n<td>\u8f93\u5165 token \u780d\u4e00\u534a<\/td>\n<td>\u63a5\u8bb0\u5fc6\u7cfb\u7edf\u7684\u538b\u7f29\u7b56\u7565<\/td>\n<\/tr>\n<tr>\n<td>\u6362\u4fbf\u5b9c\u6a21\u578b<\/td>\n<td>\u5355\u4ef7\u780d 10 \u500d<\/td>\n<td>\u8d28\u91cf\u8981\u56de\u5f52\u9a8c\u8bc1<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u4e00\u53e5\u8bdd\u8bb0\u4f4f&#xff1a;\u5355\u4ef7\u4f4e \u2260 \u603b\u8d26\u4f4e&#xff0c;\u7f13\u5b58\u624d\u662f Agent \u573a\u666f\u7684\u7b2c\u4e00\u7701\u94b1\u6760\u6746\u3002<\/p>\n<h3>\u4e8c\u3001\u6210\u672c\u4ece\u54ea\u6765&#xff1a;Agent \u4e00\u6b21\u4efb\u52a1\u7684 token \u8d26<\/h3>\n<p>Agent \u548c\u804a\u5929\u673a\u5668\u4eba\u7684\u6210\u672c\u7ed3\u6784\u5b8c\u5168\u4e0d\u540c\u3002\u804a\u5929\u4e00\u6b21\u4e00\u53d1&#xff0c;Agent \u4e00\u4e2a\u4efb\u52a1\u8fde\u53d1\u5341\u51e0\u6b21\u751a\u81f3\u51e0\u5341\u6b21\u8bf7\u6c42&#xff0c;\u800c\u4e14\u6bcf\u6b21\u90fd\u91cd\u53d1\u5168\u91cf\u4e0a\u4e0b\u6587&#xff1a;<\/p>\n<p>\u4e00\u6b21 Agent \u4efb\u52a1\u7684\u5178\u578b\u6784\u6210&#xff08;20 \u8f6e\u5faa\u73af&#xff09;&#xff1a;<br \/>\n\u7cfb\u7edf\u63d0\u793a\u8bcd &#043; \u5de5\u5177\u5b9a\u4e49      ~3000 token \u00d7 20 \u6b21<br \/>\n\u5bf9\u8bdd\u5386\u53f2 &#043; \u4e2d\u95f4\u7ed3\u679c        ~4000 token \u00d7 20 \u6b21&#xff08;\u8d8a\u6eda\u8d8a\u5927&#xff09;<br \/>\n\u6a21\u578b\u8f93\u51fa                   ~500 token \u00d7 20 \u6b21<br \/>\n\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500<br \/>\n\u8f93\u5165 ~14 \u4e07 token&#xff0c;\u8f93\u51fa ~1 \u4e07 token<\/p>\n<p>\u5173\u952e\u4e8b\u5b9e&#xff1a;Agent \u573a\u666f\u8f93\u5165 token \u662f\u8f93\u51fa\u7684 10 \u500d\u4ee5\u4e0a&#xff0c;\u800c\u8f93\u5165\u662f\u6309\u6b21\u91cd\u53d1\u7684\u3002 \u8fd9\u610f\u5473\u7740\u4e24\u4ef6\u4e8b&#xff1a;<\/p>\n<li>\u7b97\u8d26\u522b\u53ea\u770b\u5355\u4ef7&#xff1a;\u6a21\u578b A \u5355\u4ef7\u662f B \u7684 3 \u500d&#xff0c;\u4f46\u5982\u679c A \u7684\u7f13\u5b58\u547d\u4e2d\u7a33\u5b9a\u3001B \u4ece\u4e0d\u547d\u4e2d&#xff0c;\u8dd1 Agent \u573a\u666f A \u53cd\u800c\u66f4\u7701\u2014\u2014\u8fd9\u5c31\u662f\u6536\u85cf\u699c\u4e0a\u300cClaude Code \u6362\u56fd\u4ea7\u5927\u8111\u300d\u90a3\u7bc7\u5b9e\u6d4b\u51fa\u6765\u7684\u7ed3\u8bba<\/li>\n<li>\u7701\u94b1\u7684\u4e3b\u6218\u573a\u5728\u8f93\u5165\u4fa7&#xff1a;\u7f13\u5b58\u3001\u4e0a\u4e0b\u6587\u7626\u8eab\u90fd\u5728\u52a8\u8f93\u5165&#xff0c;\u8f93\u51fa\u90a3\u70b9 token \u4e0d\u503c\u5f97\u4f18\u5316<\/li>\n<h3>\u4e09\u3001\u7b2c\u4e00\u6760\u6746&#xff1a;\u63d0\u793a\u8bcd\u7f13\u5b58<\/h3>\n<p>\u4e3b\u6d41 API \u90fd\u652f\u6301\u63d0\u793a\u8bcd\u7f13\u5b58&#xff08;prompt caching&#xff09;&#xff1a;\u76f8\u540c\u524d\u7f00\u7684\u5185\u5bb9\u53ea\u7b97\u4e00\u6b21\u5168\u4ef7&#xff0c;\u547d\u4e2d\u90e8\u5206\u6309 1\/5 \u5230 1\/10 \u8ba1\u8d39\u3002Agent \u7684\u7cfb\u7edf\u63d0\u793a\u8bcd\u3001\u5de5\u5177\u5b9a\u4e49\u6bcf\u8f6e\u90fd\u4e00\u6837\u2014\u2014\u6b63\u662f\u7f13\u5b58\u7684\u6700\u4f73\u547d\u4e2d\u533a&#xff1a;<\/p>\n<p># Anthropic \u98ce\u683c&#xff1a;\u663e\u5f0f\u6807\u8bb0\u7f13\u5b58\u65ad\u70b9<br \/>\nsystem &#061; [{<br \/>\n    &#034;type&#034;: &#034;text&#034;,<br \/>\n    &#034;text&#034;: SYSTEM_PROMPT &#043; TOOLS_DEFINITION,<br \/>\n    &#034;cache_control&#034;: {&#034;type&#034;: &#034;ephemeral&#034;},   # \u8fd9\u6bb5\u8fdb\u7f13\u5b58<br \/>\n}]<\/p>\n<p># \u5bf9\u8bdd\u5386\u53f2\u8ffd\u52a0\u65f6&#xff0c;\u524d\u7f00\u4e0d\u53d8 \u2192 \u7b2c 2 \u8f6e\u8d77\u547d\u4e2d<br \/>\nmessages.append({&#034;role&#034;: &#034;user&#034;, &#034;content&#034;: user_input})<\/p>\n<p>\u9a8c\u8bc1\u7f13\u5b58\u547d\u4e2d&#xff0c;\u770b\u8fd4\u56de\u91cc\u7684 usage \u5b57\u6bb5&#xff1a;<\/p>\n<p>usage &#061; resp.usage<br \/>\nprint(usage.cache_read_input_tokens)    # \u547d\u4e2d\u4e86\u591a\u5c11 token&#xff08;\u6309 1\/10 \u4ef7\u8ba1&#xff09;<br \/>\nprint(usage.cache_creation_input_tokens) # \u7b2c\u4e00\u6b21\u5199\u5165\u7f13\u5b58\u7684 token<\/p>\n<p>\u600e\u4e48\u5b9e\u6d4b\u7f13\u5b58\u547d\u4e2d\u7387&#xff1a;\u6784\u9020 1 \u4e07 token \u7684\u56fa\u5b9a system \u4e0a\u4e0b\u6587&#xff0c;\u4e00\u5b57\u4e0d\u5dee\u8fde\u53d1 5 \u8f6e&#xff0c;\u8bb0\u5f55\u6bcf\u8f6e cache_read_input_tokens\u3002\u6709\u7684\u6a21\u578b\u7b2c\u4e8c\u8f6e\u8d77\u7a33\u5b9a\u547d\u4e2d 98%&#xff0c;\u6709\u7684\u95f4\u6b47\u547d\u4e2d&#xff0c;\u6709\u7684\u5168\u7a0b 0%\u2014\u2014\u540c\u4e00\u4e2a\u7f51\u5173\u4e0b\u4e0d\u540c\u6a21\u578b\u7f13\u5b58\u8868\u73b0\u5929\u5dee\u5730\u522b&#xff0c;\u8dd1 Agent \u524d\u5148\u6d4b\u8fd9\u4e2a\u3002\u6d4b\u8bd5\u65b9\u6cd5\u7167\u6284\u7cfb\u5217\u8bc4\u6d4b\u7bc7&#xff1a;\u56fa\u5b9a\u8f93\u5165\u3001\u591a\u8f6e\u3001\u53ea\u4fe1 usage \u5b57\u6bb5\u7684\u6570\u3002<\/p>\n<h3>\u56db\u3001\u7b2c\u4e8c\u6760\u6746&#xff1a;\u6a21\u578b\u5206\u7ea7\u8def\u7531<\/h3>\n<p>\u4e0d\u662f\u6bcf\u4e00\u6b65\u90fd\u503c\u5f97\u7528\u65d7\u8230\u6a21\u578b\u3002Agent \u5faa\u73af\u91cc\u7684\u6b65\u9aa4\u5206\u4e09\u516d\u4e5d\u7b49&#xff1a;<\/p>\n<table>\n<tr>\u6b65\u9aa4\u7528\u4ec0\u4e48\u7406\u7531<\/tr>\n<tbody>\n<tr>\n<td>\u610f\u56fe\u5206\u8bca\u3001\u5206\u7c7b\u3001\u5224\u65ad<\/td>\n<td>\u5c0f\u6a21\u578b\/\u4e13\u95e8\u6a21\u578b<\/td>\n<td>\u7cfb\u5217\u7b2c\u5341\u7bc7 Jev \u5c31\u662f\u5e72\u8fd9\u4e2a\u7684&#xff0c;\u8f93\u51fa\u514d\u8d39<\/td>\n<\/tr>\n<tr>\n<td>\u5de5\u5177\u53c2\u6570\u751f\u6210\u3001\u683c\u5f0f\u5316<\/td>\n<td>\u4e2d\u6863\u6a21\u578b<\/td>\n<td>\u683c\u5f0f\u7c7b\u4efb\u52a1\u4fbf\u5b9c\u6a21\u578b\u591f\u7528<\/td>\n<\/tr>\n<tr>\n<td>\u590d\u6742\u63a8\u7406\u3001\u4ee3\u7801\u751f\u6210<\/td>\n<td>\u65d7\u8230\u6a21\u578b<\/td>\n<td>\u53ea\u6709\u8fd9\u6b65\u914d\u5f97\u4e0a\u5355\u4ef7<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>def route(task_type: str, prompt: str) -&gt; str:<br \/>\n    if task_type in (&#034;classify&#034;, &#034;triage&#034;, &#034;check&#034;):<br \/>\n        return call_cheap_model(prompt)      # \u5206\u8bca\u7c7b&#xff1a;\u4fbf\u5b9c\u6a21\u578b<br \/>\n    if task_type in (&#034;codegen&#034;, &#034;reason&#034;):<br \/>\n        return call_flagship_model(prompt)   # \u786c\u6d3b&#xff1a;\u65d7\u8230<br \/>\n    return call_mid_model(prompt)<\/p>\n<p>\u5206\u8bca\u5224\u65ad\u8fd9\u7c7b\u6b65\u9aa4\u5360 Agent \u8c03\u7528\u91cf\u7684 60% \u4ee5\u4e0a&#xff0c;\u628a\u5b83\u4eec\u632a\u5230\u4fbf\u5b9c\u6a21\u578b\u4e0a&#xff0c;\u603b\u8d26\u76f4\u63a5\u780d\u4e00\u534a\u8d77\u6b65\u3002\u5177\u4f53\u8def\u7531\u5b9e\u73b0&#xff08;Jev \u7684 Choice\/Noul\u3001\u6216\u5c0f\u6a21\u578b\u5206\u7c7b&#xff09;\u7cfb\u5217\u7b2c\u5341\u7bc7\u8bb2\u8fc7&#xff0c;\u539f\u6837\u63a5\u4e0a\u3002<\/p>\n<h3>\u4e94\u3001\u7b2c\u4e09\u6760\u6746&#xff1a;\u4e0a\u4e0b\u6587\u7626\u8eab<\/h3>\n<p>\u8f93\u5165 token \u8d8a\u6eda\u8d8a\u5927\u662f Agent \u7684\u5e38\u6001&#xff0c;\u7626\u8eab\u4e09\u677f\u65a7&#xff08;\u90fd\u662f\u7cfb\u5217\u8bb2\u8fc7\u7684\u96f6\u4ef6&#xff09;&#xff1a;<\/p>\n<li>\u5386\u53f2\u538b\u7f29&#xff1a;\u8001\u5bf9\u8bdd\u538b\u6210\u6458\u8981&#xff08;\u7cfb\u5217\u8bb0\u5fc6\u7bc7\u7684 compact&#xff0c;50 \u8f6e\u538b 200 \u5b57&#xff09;&#xff0c;\u5386\u53f2\u4e0d\u518d\u7ebf\u6027\u589e\u957f<\/li>\n<li>\u5de5\u5177\u7ed3\u679c\u88c1\u526a&#xff1a;read_file \u8fd4\u56de 3000 \u884c&#xff0c;\u5582\u7ed9\u6a21\u578b\u524d\u622a\u53d6\u76f8\u5173\u6bb5\u843d\u2014\u2014\u5de5\u5177\u7ed3\u679c\u662f\u6700\u5bb9\u6613\u88ab\u5ffd\u7565\u7684 token \u9ed1\u6d1e<\/li>\n<li>middle-out \u622a\u65ad&#xff1a;\u8d85\u957f\u4e0a\u4e0b\u6587\u4fdd\u5934\u4fdd\u5c3e\u3001\u6390\u4e2d\u95f4&#xff0c;\u91cd\u8981\u7ea6\u5b9a\u653e system prompt \u548c\u5bf9\u8bdd\u5f00\u5934<\/li>\n<p>\u8fd9\u4e09\u4ef6\u4e8b\u5c31\u662f\u7cfb\u5217\u7b2c\u516d\u7bc7 Harness\u300c\u4e0a\u4e0b\u6587\u7ba1\u7406\u300d\u90e8\u4ef6\u7684\u5b8c\u6574\u7248\u2014\u2014Harness \u7ba1\u7684\u4e0d\u53ea\u662f\u6743\u9650&#xff0c;\u8fd8\u6709 token \u9884\u7b97\u3002<\/p>\n<h3>\u516d\u3001\u7b97\u8d26&#xff1a;\u4e00\u4e2a\u53ef\u6284\u7684\u6210\u672c\u6838\u7b97\u811a\u672c<\/h3>\n<p>def task_cost(rounds: int, ctx_tokens: int, out_tokens: int,<br \/>\n              price_in: float, price_out: float,<br \/>\n              cache_hit_ratio: float &#061; 0.0, cache_discount: float &#061; 0.1) -&gt; dict:<br \/>\n    &#034;&#034;&#034;\u7b97\u4e00\u6b21 Agent \u4efb\u52a1\u7684 token \u8d26&#xff08;\u5355\u4f4d&#xff1a;\u5143\/\u767e\u4e07token&#xff09;&#034;&#034;&#034;<br \/>\n    hit, miss &#061; cache_hit_ratio, 1 &#8211; cache_hit_ratio<br \/>\n    in_cost &#061; rounds * ctx_tokens * (hit * price_in * cache_discount<br \/>\n                                     &#043; miss * price_in) \/ 1e6<br \/>\n    out_cost &#061; rounds * out_tokens * price_out \/ 1e6<br \/>\n    return {&#034;input&#034;: round(in_cost, 4), &#034;output&#034;: round(out_cost, 4),<br \/>\n            &#034;total&#034;: round(in_cost &#043; out_cost, 4)}<\/p>\n<p># \u540c\u4e00\u4e2a\u4efb\u52a1&#xff1a;20 \u8f6e&#xff0c;\u6bcf\u8f6e\u91cd\u53d1 7000 token \u4e0a\u4e0b\u6587<br \/>\nno_cache   &#061; task_cost(20, 7000, 500, 8, 28)                 # \u4e0d\u8d70\u7f13\u5b58<br \/>\nwith_cache &#061; task_cost(20, 7000, 500, 8, 28, cache_hit_ratio&#061;0.95)<br \/>\nprint(no_cache, with_cache)<br \/>\n# {&#039;input&#039;: 1.12, &#8230;} \u2192 \u7f13\u5b58\u540e\u8f93\u5165 0.19&#xff1a;\u540c\u4e00\u4efb\u52a1\u5dee 5 \u500d<\/p>\n<p>\u628a price_in\/out \u6362\u6210\u4f60\u6240\u7528\u6a21\u578b\u7684\u5b9e\u9645\u5b9a\u4ef7\u3001cache_hit_ratio \u6362\u6210\u5b9e\u6d4b\u547d\u4e2d\u7387&#xff08;\u7b2c\u4e09\u8282\u7684\u65b9\u6cd5&#xff09;&#xff0c;\u6bcf\u4e2a\u4efb\u52a1\u8dd1\u4e4b\u524d\u5148\u7b97\u8d26&#xff0c;\u8dd1\u5b8c\u5bf9\u8d26\u5355\u2014\u2014\u6ca1\u6709\u8d26\u672c\u7684\u4f18\u5316\u548c\u6ca1\u6709\u8bc4\u6d4b\u96c6\u7684\u8c03\u4f18\u4e00\u6837&#xff0c;\u90fd\u662f\u7384\u5b66&#xff08;\u7cfb\u5217\u8bc4\u6d4b\u7bc7\u7684\u8001\u8bdd&#xff09;\u3002<\/p>\n<h3>\u4e03\u3001\u522b\u7701\u8fc7\u5934&#xff1a;\u6210\u672c\u56de\u5f52<\/h3>\n<p>\u7701\u94b1\u4f18\u5316\u7684\u6700\u5927\u98ce\u9669\u662f\u628a\u8d28\u91cf\u7701\u6ca1\u4e86&#xff1a;\u6362\u4fbf\u5b9c\u6a21\u578b\u3001\u780d\u4e0a\u4e0b\u6587\u3001\u538b\u7f29\u5386\u53f2&#xff0c;\u6bcf\u4e00\u6b65\u90fd\u53ef\u80fd\u52a3\u5316\u3002\u6240\u4ee5\u6210\u672c\u4f18\u5316\u548c\u529f\u80fd\u5f00\u53d1\u4e00\u6837\u8981\u56de\u5f52\u9a8c\u8bc1&#xff1a;<\/p>\n<li>\u6bcf\u6b21\u6210\u672c\u6539\u52a8\u8dd1\u4e00\u904d\u8bc4\u6d4b\u96c6&#xff08;\u7cfb\u5217\u8bc4\u6d4b\u7bc7\u7684 60 \u884c runner&#xff0c;\u539f\u6837\u7528&#xff09;<\/li>\n<li>\u901a\u8fc7\u7387\u6389\u8d85\u8fc7 5% \u5c31\u56de\u6eda\u2014\u2014\u7701\u4e0b\u7684\u94b1\u4e0d\u591f\u8d54\u8fd4\u5de5<\/li>\n<li>\u8d26\u5355\u548c\u8bc4\u6d4b\u66f2\u7ebf\u653e\u4e00\u8d77\u770b&#xff1a;\u6210\u672c\u964d\u4e86\u3001\u8bc4\u6d4b\u6ca1\u6389&#xff0c;\u624d\u662f\u771f\u7684\u4f18\u5316\u6210\u529f<\/li>\n<h3>\u516b\u3001\u8e29\u5751\u63d0\u9192<\/h3>\n<li>\u7f13\u5b58\u524d\u7f00\u5fc5\u987b\u4e00\u5b57\u4e0d\u5dee&#xff1a;system prompt \u6539\u4e00\u4e2a\u6807\u70b9&#xff0c;\u6574\u6bb5\u7f13\u5b58\u5931\u6548\u91cd\u65b0\u8ba1\u4ef7\u2014\u2014\u52a8\u6001\u5185\u5bb9&#xff08;\u65f6\u95f4\u6233\u3001\u968f\u673a ID&#xff09;\u522b\u653e\u8fdb\u7f13\u5b58\u524d\u7f00<\/li>\n<li>\u5386\u53f2\u65e0\u8111\u8ffd\u52a0\u662f\u8d26\u5355\u6740\u624b&#xff1a;20 \u8f6e\u4efb\u52a1\u5386\u53f2\u6eda\u5230\u51e0\u4e07 token&#xff0c;\u6bcf\u6b21\u5168\u4ef7\u91cd\u53d1\u2014\u2014\u63a5\u8bb0\u5fc6\u7bc7\u7684\u538b\u7f29\u7b56\u7565<\/li>\n<li>\u8f93\u51fa max_tokens \u522b\u62cd\u8111\u888b\u8bbe 8192&#xff1a;\u6309\u4efb\u52a1\u5b9e\u9645\u9700\u8981\u8bbe&#xff0c;\u8d85\u957f\u8f93\u51fa\u65e2\u6162\u53c8\u8d35<\/li>\n<li>\u522b\u7528\u300c\u611f\u89c9\u8fd9\u4e2a\u6a21\u578b\u4fbf\u5b9c\u300d\u505a\u51b3\u7b56&#xff1a;\u5355\u4ef7\u3001\u7f13\u5b58\u547d\u4e2d\u3001\u6bcf\u6b65\u8c03\u7528\u91cf\u4e09\u4e2a\u53d8\u91cf\u4e00\u8d77\u7b97\u603b\u8d26&#xff08;\u7b2c\u516d\u8282\u7684\u811a\u672c&#xff09;&#xff0c;\u8d26\u672c\u8bf4\u4e86\u7b97<\/li>\n<h3>\u603b\u7ed3<\/h3>\n<table>\n<tr>\u539f\u5219\u4e00\u53e5\u8bdd<\/tr>\n<tbody>\n<tr>\n<td>\u6210\u672c\u7ed3\u6784<\/td>\n<td>Agent \u8f93\u5165\u662f\u8f93\u51fa\u7684 10 \u500d&#043;&#xff0c;\u7701\u94b1\u4e3b\u6218\u573a\u5728\u8f93\u5165\u4fa7<\/td>\n<\/tr>\n<tr>\n<td>\u7b2c\u4e00\u6760\u6746<\/td>\n<td>\u63d0\u793a\u8bcd\u7f13\u5b58&#xff0c;\u8f93\u5165\u780d 5~10 \u500d&#xff0c;\u96f6\u4ee3\u7801<\/td>\n<\/tr>\n<tr>\n<td>\u7b2c\u4e8c\u6760\u6746<\/td>\n<td>\u6a21\u578b\u5206\u7ea7\u8def\u7531&#xff0c;\u5206\u8bca\u7c7b\u6b65\u9aa4\u5360 6 \u6210\u8c03\u7528\u91cf<\/td>\n<\/tr>\n<tr>\n<td>\u7b2c\u4e09\u6760\u6746<\/td>\n<td>\u4e0a\u4e0b\u6587\u7626\u8eab&#xff1a;\u538b\u7f29\u5386\u53f2\u3001\u88c1\u526a\u5de5\u5177\u7ed3\u679c<\/td>\n<\/tr>\n<tr>\n<td>\u94c1\u5f8b<\/td>\n<td>\u5355\u4ef7\u4f4e \u2260 \u603b\u8d26\u4f4e&#xff0c;\u5148\u7b97\u8d26\u518d\u4f18\u5316&#xff0c;\u6539\u5b8c\u8dd1\u56de\u5f52<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>\u81f3\u6b64\u7cfb\u5217\u7684\u9690\u5f62\u4e3b\u7ebf\u6d6e\u51fa\u6c34\u9762&#xff1a;Harness \u7ba1\u9884\u7b97\u3001\u8bb0\u5fc6\u7ba1\u538b\u7f29\u3001Jev \u7ba1\u5206\u8bca\u3001\u8bc4\u6d4b\u7ba1\u56de\u5f52\u2014\u2014\u5168\u90fd\u662f\u6210\u672c\u5de5\u7a0b\u7684\u96f6\u4ef6\u3002 \u5927\u6a21\u578b\u5e94\u7528\u7684\u80dc\u8d1f\u624b\u4ece\u6765\u4e0d\u53ea\u662f\u6548\u679c&#xff0c;\u8fd8\u6709\u6bcf\u767e\u4e07 token \u7684\u8d26\u3002\u89c9\u5f97\u6709\u7528\u70b9\u4e2a\u5173\u6ce8\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>LLM \u5e94\u7528\u6210\u672c\u5de5\u7a0b&#xff1a;\u5355\u4ef7\u4f4e\u4e0d\u7b49\u4e8e\u603b\u8d26\u4f4e&#xff0c;Agent \u7684 token \u8d26\u600e\u4e48\u7b97LLM \u7cfb\u5217\u53c8\u4e00\u7bc7\u3002\u524d\u9762\u8bb2\u4e86 Agent\u3001\u8bb0\u5fc6\u3001\u8bc4\u6d4b\u3001\u5b89\u5168\u2014\u2014\u4f46\u6709\u4e2a\u6bcf\u5f20\u8d26\u5355\u90fd\u5728\u95ee\u7684\u95ee\u9898\u6ca1\u6b63\u9762\u8bb2\u8fc7&#xff1a;\u6210\u672c\u3002\u8fd9\u7bc7\u628a\u5b83\u7b97\u6e05\u695a\u3002\u4e00\u3001\u7ed3\u8bba\u5148\u653e\u8fd9\u513f<br \/>\n\u6760\u6746\u7701\u591a\u5c11\u6210\u672c\u63d0\u793a\u8bcd\u7f13\u5b58\u8f93\u5165\u6210\u672c\u780d 5~10 \u500d\u96f6\u4ee3\u7801&#xff0c;\u6539 API \u53c2\u6570\u6a21\u578b\u5206\u7ea7\u8def\u7531\u5355\u6b65\u6210\u672c\u780d 5~20 \u500d\u52a0\u4e00\u4e2a\u5206\u8bca\u5c42\u4e0a\u4e0b\u6587\u7626\u8eab\u8f93\u5165 token \u780d\u4e00\u534a\u63a5\u8bb0\u5fc6\u7cfb\u7edf\u7684\u538b\u7f29\u7b56\u7565\u6362\u4fbf\u5b9c\u6a21\u578b\u5355\u4ef7\u780d 10 \u500d\u8d28\u91cf\u8981<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10792,74,66,75,398],"topic":[],"class_list":["post-110145","post","type-post","status-publish","format-standard","hentry","category-server","tag-10792","tag-agent","tag-ai","tag-llm","tag-398"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>LLM \u5e94\u7528\u6210\u672c\u5de5\u7a0b\uff1a\u5355\u4ef7\u4f4e\u4e0d\u7b49\u4e8e\u603b\u8d26\u4f4e\uff0cAgent \u7684 token \u8d26\u600e\u4e48\u7b97 - \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\/110145.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LLM \u5e94\u7528\u6210\u672c\u5de5\u7a0b\uff1a\u5355\u4ef7\u4f4e\u4e0d\u7b49\u4e8e\u603b\u8d26\u4f4e\uff0cAgent \u7684 token \u8d26\u600e\u4e48\u7b97 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"LLM \u5e94\u7528\u6210\u672c\u5de5\u7a0b&#xff1a;\u5355\u4ef7\u4f4e\u4e0d\u7b49\u4e8e\u603b\u8d26\u4f4e&#xff0c;Agent \u7684 token \u8d26\u600e\u4e48\u7b97LLM \u7cfb\u5217\u53c8\u4e00\u7bc7\u3002\u524d\u9762\u8bb2\u4e86 Agent\u3001\u8bb0\u5fc6\u3001\u8bc4\u6d4b\u3001\u5b89\u5168\u2014\u2014\u4f46\u6709\u4e2a\u6bcf\u5f20\u8d26\u5355\u90fd\u5728\u95ee\u7684\u95ee\u9898\u6ca1\u6b63\u9762\u8bb2\u8fc7&#xff1a;\u6210\u672c\u3002\u8fd9\u7bc7\u628a\u5b83\u7b97\u6e05\u695a\u3002\u4e00\u3001\u7ed3\u8bba\u5148\u653e\u8fd9\u513f \u6760\u6746\u7701\u591a\u5c11\u6210\u672c\u63d0\u793a\u8bcd\u7f13\u5b58\u8f93\u5165\u6210\u672c\u780d 5~10 \u500d\u96f6\u4ee3\u7801&#xff0c;\u6539 API \u53c2\u6570\u6a21\u578b\u5206\u7ea7\u8def\u7531\u5355\u6b65\u6210\u672c\u780d 5~20 \u500d\u52a0\u4e00\u4e2a\u5206\u8bca\u5c42\u4e0a\u4e0b\u6587\u7626\u8eab\u8f93\u5165 token \u780d\u4e00\u534a\u63a5\u8bb0\u5fc6\u7cfb\u7edf\u7684\u538b\u7f29\u7b56\u7565\u6362\u4fbf\u5b9c\u6a21\u578b\u5355\u4ef7\u780d 10 \u500d\u8d28\u91cf\u8981\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/110145.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-26T00:25:03+00:00\" \/>\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=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/110145.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/110145.html\",\"name\":\"LLM \u5e94\u7528\u6210\u672c\u5de5\u7a0b\uff1a\u5355\u4ef7\u4f4e\u4e0d\u7b49\u4e8e\u603b\u8d26\u4f4e\uff0cAgent \u7684 token \u8d26\u600e\u4e48\u7b97 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-26T00:25:03+00:00\",\"dateModified\":\"2026-09-26T00:25:03+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/110145.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/110145.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/110145.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LLM \u5e94\u7528\u6210\u672c\u5de5\u7a0b\uff1a\u5355\u4ef7\u4f4e\u4e0d\u7b49\u4e8e\u603b\u8d26\u4f4e\uff0cAgent \u7684 token \u8d26\u600e\u4e48\u7b97\"}]},{\"@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":"LLM \u5e94\u7528\u6210\u672c\u5de5\u7a0b\uff1a\u5355\u4ef7\u4f4e\u4e0d\u7b49\u4e8e\u603b\u8d26\u4f4e\uff0cAgent \u7684 token \u8d26\u600e\u4e48\u7b97 - \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\/110145.html","og_locale":"zh_CN","og_type":"article","og_title":"LLM \u5e94\u7528\u6210\u672c\u5de5\u7a0b\uff1a\u5355\u4ef7\u4f4e\u4e0d\u7b49\u4e8e\u603b\u8d26\u4f4e\uff0cAgent \u7684 token \u8d26\u600e\u4e48\u7b97 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"LLM \u5e94\u7528\u6210\u672c\u5de5\u7a0b&#xff1a;\u5355\u4ef7\u4f4e\u4e0d\u7b49\u4e8e\u603b\u8d26\u4f4e&#xff0c;Agent \u7684 token \u8d26\u600e\u4e48\u7b97LLM \u7cfb\u5217\u53c8\u4e00\u7bc7\u3002\u524d\u9762\u8bb2\u4e86 Agent\u3001\u8bb0\u5fc6\u3001\u8bc4\u6d4b\u3001\u5b89\u5168\u2014\u2014\u4f46\u6709\u4e2a\u6bcf\u5f20\u8d26\u5355\u90fd\u5728\u95ee\u7684\u95ee\u9898\u6ca1\u6b63\u9762\u8bb2\u8fc7&#xff1a;\u6210\u672c\u3002\u8fd9\u7bc7\u628a\u5b83\u7b97\u6e05\u695a\u3002\u4e00\u3001\u7ed3\u8bba\u5148\u653e\u8fd9\u513f \u6760\u6746\u7701\u591a\u5c11\u6210\u672c\u63d0\u793a\u8bcd\u7f13\u5b58\u8f93\u5165\u6210\u672c\u780d 5~10 \u500d\u96f6\u4ee3\u7801&#xff0c;\u6539 API \u53c2\u6570\u6a21\u578b\u5206\u7ea7\u8def\u7531\u5355\u6b65\u6210\u672c\u780d 5~20 \u500d\u52a0\u4e00\u4e2a\u5206\u8bca\u5c42\u4e0a\u4e0b\u6587\u7626\u8eab\u8f93\u5165 token \u780d\u4e00\u534a\u63a5\u8bb0\u5fc6\u7cfb\u7edf\u7684\u538b\u7f29\u7b56\u7565\u6362\u4fbf\u5b9c\u6a21\u578b\u5355\u4ef7\u780d 10 \u500d\u8d28\u91cf\u8981","og_url":"https:\/\/www.wsisp.com\/helps\/110145.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-26T00:25:03+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/110145.html","url":"https:\/\/www.wsisp.com\/helps\/110145.html","name":"LLM \u5e94\u7528\u6210\u672c\u5de5\u7a0b\uff1a\u5355\u4ef7\u4f4e\u4e0d\u7b49\u4e8e\u603b\u8d26\u4f4e\uff0cAgent \u7684 token \u8d26\u600e\u4e48\u7b97 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-26T00:25:03+00:00","dateModified":"2026-09-26T00:25:03+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/110145.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/110145.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/110145.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"LLM \u5e94\u7528\u6210\u672c\u5de5\u7a0b\uff1a\u5355\u4ef7\u4f4e\u4e0d\u7b49\u4e8e\u603b\u8d26\u4f4e\uff0cAgent \u7684 token \u8d26\u600e\u4e48\u7b97"}]},{"@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\/110145","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=110145"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/110145\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=110145"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=110145"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=110145"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=110145"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}