{"id":89785,"date":"2026-08-03T18:40:44","date_gmt":"2026-08-03T10:40:44","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/89785.html"},"modified":"2026-08-03T18:40:44","modified_gmt":"2026-08-03T10:40:44","slug":"llm-agent%e6%ad%bb%e5%be%aa%e7%8e%af%e5%8d%a1%e6%ad%bb%ef%bc%9atool-calling%e6%97%a0%e9%99%90%e9%87%8d%e8%af%95%e4%b8%8e%e7%a1%ae%e5%ae%9a%e6%80%a7%e7%8a%b6%e6%80%81%e6%9c%ba%e9%98%b2%e7%ba%bf","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/89785.html","title":{"rendered":"LLM Agent\u6b7b\u5faa\u73af\u5361\u6b7b\uff1aTool Calling\u65e0\u9650\u91cd\u8bd5\u4e0e\u786e\u5b9a\u6027\u72b6\u6001\u673a\u9632\u7ebf"},"content":{"rendered":"<h2>LLM Agent\u6b7b\u5faa\u73af\u5361\u6b7b&#xff1a;Tool Calling\u65e0\u9650\u91cd\u8bd5\u4e0e\u786e\u5b9a\u6027\u72b6\u6001\u673a\u9632\u7ebf<\/h2>\n<h3>1. \u751f\u4ea7\u4e8b\u6545\u62a5\u8b66&#xff1a;\u540e\u53f0 Agent \u534f\u7a0b\u5361\u6b7b&#xff0c;\u5355\u6b21\u8bf7\u6c42\u89e6\u53d1 200 \u6b21 Tool Calling<\/h3>\n<p>\u4e0a\u5468\u4e8c\u7ebf\u4e0a\u544a\u8b66\u7fa4\u53d1\u6765\u6025\u62a5&#xff1a;\u5904\u7406\u81ea\u52a8\u5316\u6570\u636e\u5206\u6790\u7684\u540e\u53f0 Agent \u8282\u70b9\u5185\u5b58\u4e0e CPU \u6301\u7eed\u5c45\u9ad8\u4e0d\u4e0b&#xff0c;\u670d\u52a1\u54cd\u5e94\u5ef6\u8fdf\u6025\u5267\u98d9\u5347\u3002<\/p>\n<p>\u8c03\u51fa\u65e5\u5fd7\u4e00\u770b\u4ee4\u4eba\u9707\u60ca&#xff1a;\u4e00\u4e2a\u7b80\u5355\u7684\u201c\u67e5\u8be2\u8fd1\u4e03\u65e5\u8ba2\u5355\u201d\u4efb\u52a1&#xff0c;LLM Agent \u5728\u8c03\u7528 Tool Calling \u65f6\u7531\u4e8e\u5de5\u5177\u8fd4\u56de\u4e86\u5305\u542b\u7279\u6b8a\u5b57\u7b26\u7684\u5f02\u5e38\u5b57\u7b26\u4e32&#xff0c;\u5bfc\u81f4\u5927\u8bed\u8a00\u6a21\u578b\u672a\u80fd\u6210\u529f\u8bc6\u522b\u7ed3\u679c\u3002\u539f\u672c\u9884\u671f\u6a21\u578b\u5728\u6536\u5230\u9519\u8bef\u63d0\u793a\u540e\u4f1a\u5411\u7528\u6237\u62a5\u9519\u6216\u8981\u6c42\u91cd\u65b0\u8f93\u5165&#xff0c;\u4f46\u975e\u786e\u5b9a\u6027\u7684 LLM \u5374\u9677\u5165\u4e86\u72c2\u8e81\u72b6\u6001&#xff1a;\u5b83\u4e0d\u65ad\u5c1d\u8bd5\u91cd\u65b0\u751f\u6210\u76f8\u540c\u7684 Tool Call \u8bf7\u6c42&#xff0c;\u540e\u7aef Worker \u50bb\u50bb\u5730\u6267\u884c&#xff0c;\u6267\u884c\u5b8c\u6a21\u578b\u53c8\u62a5\u9519&#xff0c;\u5f62\u6210\u4e86\u4e00\u4e2a\u65e0\u4f11\u6b62\u7684\u6b7b\u5faa\u73af&#xff01;<\/p>\n<p>\u5355\u6b21 Request \u5728\u77ed\u77ed\u51e0\u5206\u949f\u5185\u89e6\u53d1\u4e86\u8d85\u8fc7 200 \u6b21\u5de5\u5177\u8c03\u7528&#xff0c;\u4e0d\u4ec5\u8fc5\u901f\u8017\u5c3d\u4e86 API Rate Limit \u9650\u989d&#xff0c;\u8fd8\u5bfc\u81f4\u540e\u53f0 Goroutine \u534f\u7a0b\u5927\u91cf\u6302\u8d77\u585e\u7206\u4e86\u5185\u5b58\u7f13\u51b2\u533a\u3002\u503c\u73ed\u8fd0\u7ef4\u5de5\u7a0b\u5e08\u5728\u8df3\u677f\u673a\u4e0a\u8f93\u5165 top -hp \u67e5\u770b&#xff0c;\u53d1\u73b0\u540e\u53f0\u6267\u884c\u7ebf\u7a0b\u5df2\u7ecf\u5c06\u534f\u7a0b\u6c60\u5168\u90e8\u5360\u6ee1\u3002<\/p>\n<p>flowchart TD<br \/>\n    Req[\u7528\u6237 Task \u8bf7\u6c42] &#8211;&gt; Agent[LLM Agent \u601d\u8003]<br \/>\n    Agent &#8211;&gt; ToolCall[Tool Calling \u4ea7\u751f\u5f02\u5e38\u683c\u5f0f]<br \/>\n    ToolCall &#8211;&gt;|\u65e0\u8f6e\u6b21\u9650\u5236| RetryLoop[\u6b7b\u5faa\u73af: \u5931\u8d25 \u2794 \u91cd\u8bd5 \u2794 \u518d\u6b21\u5931\u8d25]<br \/>\n    RetryLoop &#8211;&gt;|\u7206 Token | Billing[\u8017\u5c3d API \u989d\u5ea6 &amp; \u5361\u6b7b\u534f\u7a0b]<br \/>\n    Agent &#8211;&gt;|\u52a0\u5165\u72b6\u6001\u673a\u9632\u7ebf| FSM{MaxSteps \u8f6e\u6b21 &amp; \u5e42\u7b49 Hash \u6821\u9a8c}<br \/>\n    FSM &#8211;&gt;|\u8d85\u9650| FastFail[Fast-Fail \u622a\u65ad\u964d\u7ea7]<\/p>\n<h3>2. \u6839\u56e0\u5256\u6790&#xff1a;\u8fc7\u5ea6\u4fe1\u4efb\u6a21\u578b\u7684\u81ea\u4e3b\u95ed\u73af&#xff0c;\u7f3a\u5931\u786e\u5b9a\u6027\u5de5\u7a0b\u95f8\u95e8<\/h3>\n<p>\u6df1\u6316\u4ee3\u7801\u5b9e\u73b0\u53d1\u73b0&#xff0c;\u65e9\u671f\u5f00\u53d1\u4e3a\u4e86\u56fe\u7701\u4e8b&#xff0c;\u7ed9 Agent \u5199\u4e86\u4e00\u4e2a\u7b80\u5355\u7684 for \u5faa\u73af&#xff1a;<\/p>\n<p>\/\/ \u5371\u9669\u793a\u8303&#xff1a;\u7f3a\u4e4f\u72b6\u6001\u673a\u8f6e\u6b21\u4e0a\u9650\u4e0e\u5e42\u7b49\u6821\u9a8c<br \/>\nfor {<br \/>\n    resp :&#061; llm.Chat(history)<br \/>\n    if resp.HasToolCall() {<br \/>\n        result :&#061; executeTool(resp.Tool)<br \/>\n        history.Append(result)<br \/>\n    } else {<br \/>\n        break \/\/ \u4f9d\u9760\u6a21\u578b\u81ea\u5df1\u51b3\u5b9a\u4f55\u65f6\u9000\u51fa<br \/>\n    }<br \/>\n}<\/p>\n<p>\u8fd9\u79cd\u8bbe\u8ba1\u5b8c\u5168\u628a\u63a7\u5236\u6743\u4ea4\u7ed9\u4e86\u5177\u6709\u975e\u786e\u5b9a\u6027&#xff08;Nondeterminism&#xff09;\u7684\u5927\u6a21\u578b\u3002\u5728\u771f\u5b9e\u751f\u4ea7\u5de5\u7a0b\u4e2d&#xff0c;\u5927\u8bed\u8a00\u6a21\u578b\u7684\u6982\u7387\u8f93\u51fa\u7edd\u4e0d\u53ef\u4f5c\u4e3a\u63a7\u5236\u6d41\u7684\u7edd\u5bf9\u4f9d\u8d56\u3002\u4e00\u65e6\u6a21\u578b\u8f93\u51fa\u4e0d\u7b26\u5408\u9884\u671f&#xff0c;\u6216\u8005\u5de5\u5177\u8fd4\u56de\u4e86\u6a21\u578b\u65e0\u6cd5\u7406\u89e3\u7684\u9519\u8bef\u63d0\u793a&#xff0c;resp.HasToolCall() \u5c31\u4f1a\u6c38\u8fdc\u6210\u7acb&#xff0c;\u5bfc\u81f4\u4ee3\u7801\u76f4\u63a5\u9677\u5165\u65e0\u9650\u6b7b\u5faa\u73af\u3002<\/p>\n<p>\u6b64\u5916&#xff0c;\u7531\u4e8e\u6ca1\u6709\u8bbe\u7f6e\u5355\u6b21\u4efb\u52a1\u7684\u5168\u5c40 Context \u8d85\u65f6\u9650\u5b9a&#xff0c;\u540e\u53f0\u534f\u7a0b\u4f1a\u4e00\u76f4\u6302\u8d77\u5360\u7528\u7cfb\u7edf\u8d44\u6e90\u3002\u5728\u9ad8\u5e76\u53d1\u6d41\u91cf\u51b2\u5237\u4e0b&#xff0c;\u8fd9\u4e9b\u6b7b\u9501\u7684\u534f\u7a0b\u4f1a\u9010\u6e10\u8017\u5c3d Worker \u7ebf\u7a0b\u6c60&#xff0c;\u6700\u7ec8\u62c9\u57ae\u6574\u4e2a Agent \u5fae\u670d\u52a1\u96c6\u7fa4\u3002\u6211\u4eec\u53d1\u73b0\u8be5\u6545\u969c\u5bfc\u81f4\u5f53\u5929\u7684 OpenAI\/Claude API \u8d39\u7528\u66b4\u589e\u4e86\u8fd1 400 \u7f8e\u91d1&#xff0c;\u7ed9\u56e2\u961f\u5e26\u6765\u4e86\u76f4\u63a5\u7684\u8d22\u52a1\u7ecf\u6d4e\u635f\u5931\u3002<\/p>\n<h3>3. \u9632\u7ebf\u91cd\u6784&#xff1a;\u786e\u5b9a\u6027\u72b6\u6001\u673a&#xff08;FSM&#xff09;\u4e0e Tool Call \u5e42\u7b49 Hash \u6821\u9a8c<\/h3>\n<p>\u6cbb\u7406\u975e\u786e\u5b9a\u6027 LLM \u7684\u6838\u5fc3\u539f\u5219\u662f&#xff1a;\u7528\u786e\u5b9a\u6027\u7684\u8f6f\u4ef6\u5de5\u7a0b\u4f53\u7cfb&#xff08;\u72b6\u6001\u673a\u3001\u8f6e\u6b21\u786c\u9650\u5236\u3001\u5e42\u7b49 Hash \u6821\u9a8c&#xff09;\u4e3a\u6a21\u578b\u753b\u51fa\u7edd\u5bf9\u5b89\u5168\u8fb9\u754c\u3002\u5927\u6a21\u578b\u53ef\u4ee5\u8d1f\u8d23\u6982\u7387\u6027\u7684\u8bed\u4e49\u7406\u89e3&#xff0c;\u4f46\u6d41\u7a0b\u63a8\u8fdb\u5fc5\u987b\u7531\u5916\u90e8\u786e\u5b9a\u6027\u4ee3\u7801\u9501\u6b7b\u3002<\/p>\n<p>\u6211\u4eec\u5236\u5b9a\u4e86\u4e24\u6b65\u91cd\u6784\u9632\u7ebf&#xff1a;\u7b2c\u4e00\u6b65\u662f\u5728 Agent \u5916\u5c42\u5c01\u88c5\u5e26\u6709\u786c\u6027\u8f6e\u6b21\u4e0a\u9650 MaxSteps \u7684\u6709\u9650\u72b6\u6001\u673a&#xff08;FSM&#xff09;&#xff0c;\u5f3a\u5236\u62e6\u622a\u8d85\u9650\u6b7b\u5faa\u73af&#xff1b;\u7b2c\u4e8c\u6b65\u662f\u5bf9\u6bcf\u6b21\u5de5\u5177\u8c03\u7528\u7684\u540d\u79f0\u4e0e\u5165\u53c2\u8ba1\u7b97 SHA256 \u5e42\u7b49 Hash \u503c&#xff0c;\u4e00\u65e6\u68c0\u6d4b\u5230\u8fde\u7eed\u591a\u6b21\u89e6\u53d1\u5b8c\u5168\u76f8\u540c\u7684\u5de5\u5177\u4e0e\u53c2\u6570&#xff0c;\u7acb\u5373\u5224\u5b9a\u6a21\u578b\u9677\u5165\u903b\u8f91\u6b7b\u9501\u5e76\u89e6\u53d1 Fast-Fail \u622a\u65ad\u964d\u7ea7\u3002<\/p>\n<p>\u91cd\u6784\u540e\u7684\u786e\u5b9a\u6027 Agent \u6267\u884c\u5668\u4ee3\u7801\u5982\u4e0b&#xff1a;<\/p>\n<p>package main<\/p>\n<p>import (<br \/>\n&#034;context&#034;<br \/>\n&#034;crypto\/sha256&#034;<br \/>\n&#034;encoding\/hex&#034;<br \/>\n&#034;errors&#034;<br \/>\n&#034;fmt&#034;<br \/>\n&#034;time&#034;<br \/>\n)<\/p>\n<p>var (<br \/>\nErrMaxStepsExceeded  &#061; errors.New(&#034;agent execution reached max steps limit&#034;)<br \/>\nErrDuplicateToolCall &#061; errors.New(&#034;detected duplicate tool call loop&#034;)<br \/>\n)<\/p>\n<p>\/\/ AgentFSM \u786e\u5b9a\u6027 Agent \u72b6\u6001\u673a\u6267\u884c\u5668<br \/>\ntype AgentFSM struct {<br \/>\nMaxSteps int<br \/>\nseenHash map[string]int<br \/>\n}<\/p>\n<p>func NewAgentFSM(maxSteps int) *AgentFSM {<br \/>\nreturn &amp;AgentFSM{<br \/>\nMaxSteps: maxSteps,<br \/>\nseenHash: make(map[string]int),<br \/>\n}<br \/>\n}<\/p>\n<p>func (f *AgentFSM) CalculateToolHash(toolName string, args string) string {<br \/>\nh :&#061; sha256.New()<br \/>\nh.Write([]byte(toolName &#043; &#034;:&#034; &#043; args))<br \/>\nreturn hex.EncodeToString(h.Sum(nil))<br \/>\n}<\/p>\n<p>func (f *AgentFSM) ExecuteWithGuard(ctx context.Context, task string) error {<br \/>\nctx, cancel :&#061; context.WithTimeout(ctx, 30*time.Second)<br \/>\ndefer cancel()<\/p>\n<p>for step :&#061; 1; step &lt;&#061; f.MaxSteps; step&#043;&#043; {<br \/>\nselect {<br \/>\ncase &lt;-ctx.Done():<br \/>\nreturn ctx.Err()<br \/>\ndefault:<br \/>\n}<\/p>\n<p>fmt.Printf(&#034;[STEP %d\/%d] LLM \u6b63\u5728\u601d\u8003&#8230;<br \/>\n&#034;, step, f.MaxSteps)<br \/>\n\/\/ \u6a21\u62df LLM \u8fd4\u56de Tool Call<br \/>\ntoolName :&#061; &#034;query_order_db&#034;<br \/>\nargs :&#061; &#096;{&#034;user_id&#034;: &#034;10086&#034;}&#096; \/\/ \u6a21\u62df\u91cd\u590d\u53c2\u6570<\/p>\n<p>\/\/ \u6821\u9a8c\u91cd\u590d Tool Calling \u6b7b\u5faa\u73af<br \/>\nhash :&#061; f.CalculateToolHash(toolName, args)<br \/>\nf.seenHash[hash]&#043;&#043;<br \/>\nif f.seenHash[hash] &gt; 3 {<br \/>\n\/\/ \u8fde\u7eed 3 \u6b21\u76f8\u540c\u5de5\u5177\u8c03\u7528&#xff0c;\u65ad\u5b9a\u6a21\u578b\u9677\u5165\u5faa\u73af\u6b7b\u9501&#xff0c;\u89e6\u53d1 Fast-Fail<br \/>\nreturn fmt.Errorf(&#034;%w: \u5de5\u5177 %s \u53c2\u6570 %s \u8fde\u7eed\u6b7b\u9501 3 \u6b21&#034;, ErrDuplicateToolCall, toolName, args)<br \/>\n}<\/p>\n<p>fmt.Printf(&#034;[EXECUTE] \u5b89\u5168\u6267\u884c\u5de5\u5177: %s<br \/>\n&#034;, toolName)<br \/>\ntime.Sleep(100 * time.Millisecond)<br \/>\n}<\/p>\n<p>return ErrMaxStepsExceeded<br \/>\n}<\/p>\n<p>func main() {<br \/>\nfsm :&#061; NewAgentFSM(5)<br \/>\nerr :&#061; fsm.ExecuteWithGuard(context.Background(), &#034;\u5e2e\u6211\u67e5\u8be2\u7528\u6237\u8ba2\u5355&#034;)<br \/>\nif err !&#061; nil {<br \/>\nfmt.Printf(&#034;[GUARD ALERT] \u72b6\u6001\u673a\u6210\u529f\u62e6\u622a\u6b7b\u5faa\u73af: %v<br \/>\n&#034;, err)<br \/>\n}<br \/>\n}<\/p>\n<h3>4. \u4e0a\u7ebf\u56de\u5f52&#xff1a;\u6b7b\u5faa\u73af\u5f7b\u5e95\u62e6\u622a&#xff0c;API \u6210\u672c\u4e0b\u964d 35%<\/h3>\n<p>\u4e0a\u7ebf\u8be5\u786e\u5b9a\u6027\u9632\u7ebf\u540e&#xff0c;\u6211\u4eec\u5728 Staging \u73af\u5883\u7528\u8bf1\u5bfc\u6027\u810f\u6570\u636e\u6d4b\u8bd5 Agent&#xff1a;\u5f53\u6a21\u578b\u5c1d\u8bd5\u7b2c 3 \u6b21\u91cd\u590d\u8c03\u7528\u76f8\u540c\u7684\u9519\u8bef\u5de5\u5177\u65f6&#xff0c;AgentFSM \u5728 0.1ms \u5185\u77ac\u95f4\u89e6\u53d1 ErrDuplicateToolCall \u7194\u65ad\u62e6\u622a&#xff0c;\u5e76\u4f18\u96c5\u8fd4\u56de\u964d\u7ea7\u6587\u672c&#xff0c;\u907f\u514d\u4e86\u65e0\u6548\u7684 API Token \u6d88\u8017\u3002<\/p>\n<p>\u76d1\u63a7\u5927\u76d8\u4e0a\u7684 Agent \u5f02\u5e38\u8f6e\u6b21\u7387 \u964d\u5230\u4e86\u96f6&#xff0c;API Token \u6d6a\u8d39\u51cf\u5c11\u4e86\u8fd1 35%&#xff0c;\u5f7b\u5e95\u675c\u7edd\u4e86\u540e\u53f0\u534f\u7a0b\u5361\u6b7b\u4e8b\u6545\u3002\u7cfb\u7edf\u5728\u9762\u5bf9\u590d\u6742\u6216\u8005\u7578\u5f62\u7684\u8f93\u5165\u4efb\u52a1\u65f6&#xff0c;\u5c55\u73b0\u51fa\u4e86\u6781\u5f3a\u7684\u5de5\u7a0b\u81ea\u6108\u4e0e\u4f18\u96c5\u9632\u7206\u4ed3\u80fd\u529b\u3002<\/p>\n<p>\u6b64\u5916&#xff0c;\u6211\u4eec\u8fd8\u5c06 AgentFSM \u62e6\u622a\u4e8b\u4ef6\u66b4\u9732\u7ed9 Prometheus \u76d1\u63a7\u7cfb\u7edf&#xff0c;\u914d\u7f6e\u4e86 PromQL \u544a\u8b66\u89c4\u5219&#xff1a;<\/p>\n<p>sum(rate(agent_tool_loop_intercept_total[5m])) &gt; 2<\/p>\n<p>\u5f53 5 \u5206\u949f\u5185\u8fde\u7eed\u89e6\u53d1 2 \u6b21\u6b7b\u5faa\u73af\u62e6\u622a\u65f6&#xff0c;\u81ea\u52a8\u5316\u8fd0\u7ef4\u673a\u5668\u4eba\u4f1a\u7acb\u523b\u5411\u98de\u4e66\u7fa4\u63a8\u53d1 P2 \u9884\u8b66&#xff0c;\u65b9\u4fbf\u5de5\u7a0b\u5e08\u6392\u67e5\u5177\u4f53\u7684\u5de5\u5177\u63a5\u53e3 Bug\u3002<\/p>\n<h3>5. \u907f\u5751\u603b\u7ed3&#xff1a;AI Agent \u5de5\u7a0b\u5316\u7684\u4e09\u6761\u94c1\u5f8b<\/h3>\n<li>\u7edd\u5bf9\u4e0d\u8981\u8ba9\u5927\u6a21\u578b\u72ec\u638c\u5faa\u73af\u63a7\u5236\u6743&#xff1a;\u5fc5\u987b\u8bbe\u7f6e MaxSteps&#xff08;\u5982\u6700\u591a\u5141\u8bb8 5~8 \u8f6e&#xff09;\u786c\u6027\u7269\u7406\u4e0a\u9650&#xff0c;\u9632\u6b62\u65e0\u9650\u91cd\u8bd5\u3002<\/li>\n<li>\u6821\u9a8c Tool Call \u5e42\u7b49 Hash&#xff1a;\u8fde\u7eed\u76f8\u540c\u53c2\u6570\u7684 Tool Call \u8d85\u8fc7 2~3 \u6b21&#xff0c;\u5373\u53ef\u5224\u65ad\u6a21\u578b\u9677\u5165\u660f\u53a5&#xff0c;\u5fc5\u987b\u5f3a\u5236\u7194\u65ad\u3002<\/li>\n<li>\u5168\u5c40 Context \u5fc5\u987b\u6302 Timeout&#xff1a;\u4efb\u4f55 Agent \u534f\u7a0b\u5fc5\u987b\u7ed1\u5b9a\u8d85\u65f6 Context&#xff0c;\u9632\u6b62\u5355\u4e2a\u975e\u786e\u5b9a\u6027\u4efb\u52a1\u6c38\u4e45\u5360\u7528\u8ba1\u7b97\u8d44\u6e90\u3002<\/li>\n<li>\u591a\u7ea7\u964d\u7ea7\u9884\u6848&#xff1a;\u5f53 Agent \u89e6\u53d1\u6b7b\u9501\u622a\u65ad\u65f6&#xff0c;\u5e94\u4f18\u96c5\u8fd4\u56de\u7f13\u5b58\u7ed3\u679c\u6216\u63a8\u8350\u7684\u4eba\u5de5\u5ba2\u670d\u5f15\u5bfc&#xff0c;\u63d0\u5347\u7528\u6237\u4f53\u9a8c\u3002<\/li>\n","protected":false},"excerpt":{"rendered":"<p>LLM Agent\u6b7b\u5faa\u73af\u5361\u6b7b&#xff1a;Tool Calling\u65e0\u9650\u91cd\u8bd5\u4e0e\u786e\u5b9a\u6027\u72b6\u6001\u673a\u9632\u7ebf<br \/>\n1. \u751f\u4ea7\u4e8b\u6545\u62a5\u8b66&#xff1a;\u540e\u53f0 Agent \u534f\u7a0b\u5361\u6b7b&#xff0c;\u5355\u6b21\u8bf7\u6c42\u89e6\u53d1 200 \u6b21 Tool Calling<br \/>\n\u4e0a\u5468\u4e8c\u7ebf\u4e0a\u544a\u8b66\u7fa4\u53d1\u6765\u6025\u62a5&#xff1a;\u5904\u7406\u81ea\u52a8\u5316\u6570\u636e\u5206\u6790\u7684\u540e\u53f0 Agent \u8282\u70b9\u5185\u5b58\u4e0e CPU \u6301\u7eed\u5c45\u9ad8\u4e0d\u4e0b&#xff0c;\u670d\u52a1\u54cd\u5e94\u5ef6\u8fdf\u6025\u5267\u98d9\u5347\u3002<br \/>\n\u8c03\u51fa\u65e5\u5fd7\u4e00\u770b\u4ee4\u4eba\u9707\u60ca&#xff1a;\u4e00\u4e2a\u7b80\u5355\u7684\u201c\u67e5\u8be2\u8fd1\u4e03\u65e5\u8ba2\u5355\u201d\u4efb\u52a1&#xff0c;LLM Agent \u5728<\/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":[1493,120,763,121,1348],"topic":[],"class_list":["post-89785","post","type-post","status-publish","format-standard","hentry","category-server","tag-k8s","tag-kubernetes","tag-763","tag-121","tag-1348"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>LLM Agent\u6b7b\u5faa\u73af\u5361\u6b7b\uff1aTool Calling\u65e0\u9650\u91cd\u8bd5\u4e0e\u786e\u5b9a\u6027\u72b6\u6001\u673a\u9632\u7ebf - \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\/89785.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"LLM Agent\u6b7b\u5faa\u73af\u5361\u6b7b\uff1aTool Calling\u65e0\u9650\u91cd\u8bd5\u4e0e\u786e\u5b9a\u6027\u72b6\u6001\u673a\u9632\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"LLM Agent\u6b7b\u5faa\u73af\u5361\u6b7b&#xff1a;Tool Calling\u65e0\u9650\u91cd\u8bd5\u4e0e\u786e\u5b9a\u6027\u72b6\u6001\u673a\u9632\u7ebf 1. \u751f\u4ea7\u4e8b\u6545\u62a5\u8b66&#xff1a;\u540e\u53f0 Agent \u534f\u7a0b\u5361\u6b7b&#xff0c;\u5355\u6b21\u8bf7\u6c42\u89e6\u53d1 200 \u6b21 Tool Calling \u4e0a\u5468\u4e8c\u7ebf\u4e0a\u544a\u8b66\u7fa4\u53d1\u6765\u6025\u62a5&#xff1a;\u5904\u7406\u81ea\u52a8\u5316\u6570\u636e\u5206\u6790\u7684\u540e\u53f0 Agent \u8282\u70b9\u5185\u5b58\u4e0e CPU \u6301\u7eed\u5c45\u9ad8\u4e0d\u4e0b&#xff0c;\u670d\u52a1\u54cd\u5e94\u5ef6\u8fdf\u6025\u5267\u98d9\u5347\u3002 \u8c03\u51fa\u65e5\u5fd7\u4e00\u770b\u4ee4\u4eba\u9707\u60ca&#xff1a;\u4e00\u4e2a\u7b80\u5355\u7684\u201c\u67e5\u8be2\u8fd1\u4e03\u65e5\u8ba2\u5355\u201d\u4efb\u52a1&#xff0c;LLM Agent \u5728\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/89785.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-08-03T10:40:44+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\/89785.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/89785.html\",\"name\":\"LLM Agent\u6b7b\u5faa\u73af\u5361\u6b7b\uff1aTool Calling\u65e0\u9650\u91cd\u8bd5\u4e0e\u786e\u5b9a\u6027\u72b6\u6001\u673a\u9632\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-08-03T10:40:44+00:00\",\"dateModified\":\"2026-08-03T10:40:44+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/89785.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/89785.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/89785.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"LLM Agent\u6b7b\u5faa\u73af\u5361\u6b7b\uff1aTool Calling\u65e0\u9650\u91cd\u8bd5\u4e0e\u786e\u5b9a\u6027\u72b6\u6001\u673a\u9632\u7ebf\"}]},{\"@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 Agent\u6b7b\u5faa\u73af\u5361\u6b7b\uff1aTool Calling\u65e0\u9650\u91cd\u8bd5\u4e0e\u786e\u5b9a\u6027\u72b6\u6001\u673a\u9632\u7ebf - \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\/89785.html","og_locale":"zh_CN","og_type":"article","og_title":"LLM Agent\u6b7b\u5faa\u73af\u5361\u6b7b\uff1aTool Calling\u65e0\u9650\u91cd\u8bd5\u4e0e\u786e\u5b9a\u6027\u72b6\u6001\u673a\u9632\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"LLM Agent\u6b7b\u5faa\u73af\u5361\u6b7b&#xff1a;Tool Calling\u65e0\u9650\u91cd\u8bd5\u4e0e\u786e\u5b9a\u6027\u72b6\u6001\u673a\u9632\u7ebf 1. \u751f\u4ea7\u4e8b\u6545\u62a5\u8b66&#xff1a;\u540e\u53f0 Agent \u534f\u7a0b\u5361\u6b7b&#xff0c;\u5355\u6b21\u8bf7\u6c42\u89e6\u53d1 200 \u6b21 Tool Calling \u4e0a\u5468\u4e8c\u7ebf\u4e0a\u544a\u8b66\u7fa4\u53d1\u6765\u6025\u62a5&#xff1a;\u5904\u7406\u81ea\u52a8\u5316\u6570\u636e\u5206\u6790\u7684\u540e\u53f0 Agent \u8282\u70b9\u5185\u5b58\u4e0e CPU \u6301\u7eed\u5c45\u9ad8\u4e0d\u4e0b&#xff0c;\u670d\u52a1\u54cd\u5e94\u5ef6\u8fdf\u6025\u5267\u98d9\u5347\u3002 \u8c03\u51fa\u65e5\u5fd7\u4e00\u770b\u4ee4\u4eba\u9707\u60ca&#xff1a;\u4e00\u4e2a\u7b80\u5355\u7684\u201c\u67e5\u8be2\u8fd1\u4e03\u65e5\u8ba2\u5355\u201d\u4efb\u52a1&#xff0c;LLM Agent \u5728","og_url":"https:\/\/www.wsisp.com\/helps\/89785.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-08-03T10:40:44+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\/89785.html","url":"https:\/\/www.wsisp.com\/helps\/89785.html","name":"LLM Agent\u6b7b\u5faa\u73af\u5361\u6b7b\uff1aTool Calling\u65e0\u9650\u91cd\u8bd5\u4e0e\u786e\u5b9a\u6027\u72b6\u6001\u673a\u9632\u7ebf - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-08-03T10:40:44+00:00","dateModified":"2026-08-03T10:40:44+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/89785.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/89785.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/89785.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"LLM Agent\u6b7b\u5faa\u73af\u5361\u6b7b\uff1aTool Calling\u65e0\u9650\u91cd\u8bd5\u4e0e\u786e\u5b9a\u6027\u72b6\u6001\u673a\u9632\u7ebf"}]},{"@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\/89785","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=89785"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/89785\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=89785"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=89785"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=89785"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=89785"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}