import{s as dl,o as vl,n as _l}from"../chunks/scheduler.889ebb13.js";import{S as Bl,i as Hl,g as s,s as e,r as g,A as Zl,h as A,f as t,c as U,j as hl,u as y,x as O,k as wl,y as xl,a as J,v as o,d as i,t as w,w as j,m as bl,n as Cl}from"../chunks/index.ca18042b.js";import{T as Nl}from"../chunks/Tip.b8116e3c.js";import{C as ol}from"../chunks/CodeBlock.a65374d4.js";import{C as Gl}from"../chunks/CourseFloatingBanner.897040e9.js";import{H as il,E as Fl}from"../chunks/index.544c5610.js";function Sl(q){let M,a,k="此 Notebook",I;return{c(){M=bl("您可以通过 "),a=s("a"),a.textContent=k,I=bl(" 跟随代码实践，该文件支持在 Google Colab 中运行。"),this.h()},l(n){M=Cl(n,"您可以通过 "),a=A(n,"A",{href:!0,target:!0,"data-svelte-h":!0}),O(a)!=="svelte-amc7jx"&&(a.textContent=k),I=Cl(n," 跟随代码实践，该文件支持在 Google Colab 中运行。"),this.h()},h(){wl(a,"href","https://huggingface.co/agents-course/notebooks/blob/main/unit2/smolagents/tool_calling_agents.ipynb"),wl(a,"target","_blank")},m(n,p){J(n,M,p),J(n,a,p),J(n,I,p)},p:_l,d(n){n&&(t(M),t(a),t(I))}}}function ql(q){let M,a,k,I,n,p,m,W,r,L,Q,jl="工具调用智能体（Tool Calling Agents）是 <code>smolagents</code> 中提供的第二种智能体类型。与使用 Python 代码片段的代码智能体（Code Agents）不同，这类智能体<strong>利用 LLM 提供商的内置工具调用能力</strong>来生成 <strong>JSON 结构</strong>的工具调用指令。这是 OpenAI、Anthropic 等主流提供商采用的标准方法。",X,R,Il="当 Alfred 想要搜索餐饮服务和派对创意时，<code>CodeAgent</code> 会生成并运行如下 Python 代码：",E,u,V,D,kl="而 <code>ToolCallingAgent</code> 则会创建 JSON 结构：",Y,f,P,c,pl="该 JSON 结构随后会被用于执行工具调用。",z,$,rl='尽管 <code>smolagents</code> 主要专注于 <code>CodeAgents</code>（因为<a href="https://arxiv.org/abs/2402.01030" rel="nofollow">它们整体表现更好</a>），但对于不需要变量处理或复杂工具调用的简单系统，<code>ToolCallingAgents</code> 仍然可以高效工作。',K,h,ml='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/code_vs_json_actions.png" alt="代码操作与 JSON 操作对比"/>',ll,b,Tl,C,Ql='工具调用智能体遵循与代码智能体相同的多步骤工作流程（详见<a href="./code_agents">前一章节</a>）。关键区别在于<strong>操作结构方式</strong>：智能体不再生成可执行代码，而是<strong>生成指定工具名称和参数的 JSON 对象</strong>，系统随后<strong>解析这些指令</strong>来执行相应工具。',tl,d,Jl,v,Rl="让我们重新审视 Alfred 开始筹备派对的示例，这次使用 <code>ToolCallingAgent</code> 来展示区别。我们将构建一个能够使用 DuckDuckGo 进行网页搜索的智能体，与代码智能体示例的唯一区别在于智能体类型——框架会处理其他所有细节：",el,_,Ul,B,ul="当查看智能体的执行跟踪时，您将看到类似以下内容而非 <code>Executing parsed code:</code>：",nl,H,sl,Z,Dl="智能体生成结构化的工具调用指令，系统通过处理这些指令来生成输出，而非像 <code>CodeAgent</code> 那样直接执行代码。",Al,x,fl="现在我们已经了解两种智能体类型，可以根据需求选择合适的一种。让我们继续探索 <code>smolagents</code>，让 Alfred 的派对大获成功！🎉",Ml,N,al,G,cl='<li><a href="https://huggingface.co/docs/smolagents/v1.8.1/en/reference/agents#smolagents.ToolCallingAgent" rel="nofollow">ToolCallingAgent 文档</a> - ToolCallingAgent 的官方文档</li>',Ol,F,gl,S,yl;return n=new Gl({props:{chapter:2,classNames:"absolute z-10 right-0 top-0",notebooks:[{label:"Google Colab",value:"https://colab.research.google.com/github/huggingface/agents-course/blob/main/notebooks/unit2/smolagents/tool_calling_agents.ipynb"}]}}),m=new il({props:{title:"将操作编写为代码片段或 JSON 结构",local:"将操作编写为代码片段或-json-结构",headingTag:"h1"}}),r=new Nl({props:{$$slots:{default:[Sl]},$$scope:{ctx:q}}}),u=new ol({props:{code:"Zm9yJTIwcXVlcnklMjBpbiUyMCU1QiUwQSUyMCUyMCUyMCUyMCUyMkJlc3QlMjBjYXRlcmluZyUyMHNlcnZpY2VzJTIwaW4lMjBHb3RoYW0lMjBDaXR5JTIyJTJDJTIwJTBBJTIwJTIwJTIwJTIwJTIyUGFydHklMjB0aGVtZSUyMGlkZWFzJTIwZm9yJTIwc3VwZXJoZXJvZXMlMjIlMEElNUQlM0ElMEElMjAlMjAlMjAlMjBwcmludCh3ZWJfc2VhcmNoKGYlMjJTZWFyY2glMjBmb3IlM0ElMjAlN0JxdWVyeSU3RCUyMikp",highlighted:`<span class="hljs-keyword">for</span> query <span class="hljs-keyword">in</span> [
    <span class="hljs-string">&quot;Best catering services in Gotham City&quot;</span>, 
    <span class="hljs-string">&quot;Party theme ideas for superheroes&quot;</span>
]:
    <span class="hljs-built_in">print</span>(web_search(<span class="hljs-string">f&quot;Search for: <span class="hljs-subst">{query}</span>&quot;</span>))`,wrap:!1}}),f=new ol({props:{code:"JTVCJTBBJTIwJTIwJTIwJTIwJTdCJTIybmFtZSUyMiUzQSUyMCUyMndlYl9zZWFyY2glMjIlMkMlMjAlMjJhcmd1bWVudHMlMjIlM0ElMjAlMjJCZXN0JTIwY2F0ZXJpbmclMjBzZXJ2aWNlcyUyMGluJTIwR290aGFtJTIwQ2l0eSUyMiU3RCUyQyUwQSUyMCUyMCUyMCUyMCU3QiUyMm5hbWUlMjIlM0ElMjAlMjJ3ZWJfc2VhcmNoJTIyJTJDJTIwJTIyYXJndW1lbnRzJTIyJTNBJTIwJTIyUGFydHklMjB0aGVtZSUyMGlkZWFzJTIwZm9yJTIwc3VwZXJoZXJvZXMlMjIlN0QlMEElNUQ=",highlighted:`[
    {<span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;web_search&quot;</span>, <span class="hljs-string">&quot;arguments&quot;</span>: <span class="hljs-string">&quot;Best catering services in Gotham City&quot;</span>},
    {<span class="hljs-string">&quot;name&quot;</span>: <span class="hljs-string">&quot;web_search&quot;</span>, <span class="hljs-string">&quot;arguments&quot;</span>: <span class="hljs-string">&quot;Party theme ideas for superheroes&quot;</span>}
]`,wrap:!1}}),b=new il({props:{title:"工具调用智能体的工作原理",local:"工具调用智能体的工作原理",headingTag:"h2"}}),d=new il({props:{title:"示例：运行工具调用智能体",local:"示例运行工具调用智能体",headingTag:"h2"}}),_=new ol({props:{code:"ZnJvbSUyMHNtb2xhZ2VudHMlMjBpbXBvcnQlMjBUb29sQ2FsbGluZ0FnZW50JTJDJTIwRHVja0R1Y2tHb1NlYXJjaFRvb2wlMkMlMjBIZkFwaU1vZGVsJTBBJTBBYWdlbnQlMjAlM0QlMjBUb29sQ2FsbGluZ0FnZW50KHRvb2xzJTNEJTVCRHVja0R1Y2tHb1NlYXJjaFRvb2woKSU1RCUyQyUyMG1vZGVsJTNESGZBcGlNb2RlbCgpKSUwQSUwQWFnZW50LnJ1biglMjJTZWFyY2glMjBmb3IlMjB0aGUlMjBiZXN0JTIwbXVzaWMlMjByZWNvbW1lbmRhdGlvbnMlMjBmb3IlMjBhJTIwcGFydHklMjBhdCUyMHRoZSUyMFdheW5lJ3MlMjBtYW5zaW9uLiUyMik=",highlighted:`<span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> ToolCallingAgent, DuckDuckGoSearchTool, HfApiModel

agent = ToolCallingAgent(tools=[DuckDuckGoSearchTool()], model=HfApiModel())

agent.run(<span class="hljs-string">&quot;Search for the best music recommendations for a party at the Wayne&#x27;s mansion.&quot;</span>)`,wrap:!1}}),H=new ol({props:{code:"JUUyJTk1JUFEJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJT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IlOTQlODAlRTIlOTQlODAlRTIlOTUlQUY=",highlighted:`╭─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ Calling tool: &#x27;web_search&#x27; with arguments: {&#x27;query&#x27;: &quot;best music recommendations for a party at Wayne&#x27;s         │
│ mansion&quot;}                                                                                                       │
╰─────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯`,wrap:!1}}),N=new il({props:{title:"资源",local:"资源",headingTag:"h2"}}),F=new Fl({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/zh-CN/unit2/smolagents/tool_calling_agents.mdx"}}),{c(){M=s("meta"),a=e(),k=s("p"),I=e(),g(n.$$.fragment),p=e(),g(m.$$.fragment),W=e(),g(r.$$.fragment),L=e(),Q=s("p"),Q.innerHTML=jl,X=e(),R=s("p"),R.innerHTML=Il,E=e(),g(u.$$.fragment),V=e(),D=s("p"),D.innerHTML=kl,Y=e(),g(f.$$.fragment),P=e(),c=s("p"),c.textContent=pl,z=e(),$=s("p"),$.innerHTML=rl,K=e(),h=s("p"),h.innerHTML=ml,ll=e(),g(b.$$.fragment),Tl=e(),C=s("p"),C.innerHTML=Ql,tl=e(),g(d.$$.fragment),Jl=e(),v=s("p"),v.innerHTML=Rl,el=e(),g(_.$$.fragment),Ul=e(),B=s("p"),B.innerHTML=ul,nl=e(),g(H.$$.fragment),sl=e(),Z=s("p"),Z.innerHTML=Dl,Al=e(),x=s("p"),x.innerHTML=fl,Ml=e(),g(N.$$.fragment),al=e(),G=s("ul"),G.innerHTML=cl,Ol=e(),g(F.$$.fragment),gl=e(),S=s("p"),this.h()},l(l){const T=Zl("svelte-u9bgzb",document.head);M=A(T,"META",{name:!0,content:!0}),T.forEach(t),a=U(l),k=A(l,"P",{}),hl(k).forEach(t),I=U(l),y(n.$$.fragment,l),p=U(l),y(m.$$.fragment,l),W=U(l),y(r.$$.fragment,l),L=U(l),Q=A(l,"P",{"data-svelte-h":!0}),O(Q)!=="svelte-4h5a59"&&(Q.innerHTML=jl),X=U(l),R=A(l,"P",{"data-svelte-h":!0}),O(R)!=="svelte-1uk3til"&&(R.innerHTML=Il),E=U(l),y(u.$$.fragment,l),V=U(l),D=A(l,"P",{"data-svelte-h":!0}),O(D)!=="svelte-1ly2vr7"&&(D.innerHTML=kl),Y=U(l),y(f.$$.fragment,l),P=U(l),c=A(l,"P",{"data-svelte-h":!0}),O(c)!=="svelte-2w7dg0"&&(c.textContent=pl),z=U(l),$=A(l,"P",{"data-svelte-h":!0}),O($)!=="svelte-1un3oi9"&&($.innerHTML=rl),K=U(l),h=A(l,"P",{"data-svelte-h":!0}),O(h)!=="svelte-kkam5r"&&(h.innerHTML=ml),ll=U(l),y(b.$$.fragment,l),Tl=U(l),C=A(l,"P",{"data-svelte-h":!0}),O(C)!=="svelte-1k6u3aa"&&(C.innerHTML=Ql),tl=U(l),y(d.$$.fragment,l),Jl=U(l),v=A(l,"P",{"data-svelte-h":!0}),O(v)!=="svelte-1mi69km"&&(v.innerHTML=Rl),el=U(l),y(_.$$.fragment,l),Ul=U(l),B=A(l,"P",{"data-svelte-h":!0}),O(B)!=="svelte-11effay"&&(B.innerHTML=ul),nl=U(l),y(H.$$.fragment,l),sl=U(l),Z=A(l,"P",{"data-svelte-h":!0}),O(Z)!=="svelte-oldvrt"&&(Z.innerHTML=Dl),Al=U(l),x=A(l,"P",{"data-svelte-h":!0}),O(x)!=="svelte-an91op"&&(x.innerHTML=fl),Ml=U(l),y(N.$$.fragment,l),al=U(l),G=A(l,"UL",{"data-svelte-h":!0}),O(G)!=="svelte-1b0h5wy"&&(G.innerHTML=cl),Ol=U(l),y(F.$$.fragment,l),gl=U(l),S=A(l,"P",{}),hl(S).forEach(t),this.h()},h(){wl(M,"name","hf:doc:metadata"),wl(M,"content",Wl)},m(l,T){xl(document.head,M),J(l,a,T),J(l,k,T),J(l,I,T),o(n,l,T),J(l,p,T),o(m,l,T),J(l,W,T),o(r,l,T),J(l,L,T),J(l,Q,T),J(l,X,T),J(l,R,T),J(l,E,T),o(u,l,T),J(l,V,T),J(l,D,T),J(l,Y,T),o(f,l,T),J(l,P,T),J(l,c,T),J(l,z,T),J(l,$,T),J(l,K,T),J(l,h,T),J(l,ll,T),o(b,l,T),J(l,Tl,T),J(l,C,T),J(l,tl,T),o(d,l,T),J(l,Jl,T),J(l,v,T),J(l,el,T),o(_,l,T),J(l,Ul,T),J(l,B,T),J(l,nl,T),o(H,l,T),J(l,sl,T),J(l,Z,T),J(l,Al,T),J(l,x,T),J(l,Ml,T),o(N,l,T),J(l,al,T),J(l,G,T),J(l,Ol,T),o(F,l,T),J(l,gl,T),J(l,S,T),yl=!0},p(l,[T]){const $l={};T&2&&($l.$$scope={dirty:T,ctx:l}),r.$set($l)},i(l){yl||(i(n.$$.fragment,l),i(m.$$.fragment,l),i(r.$$.fragment,l),i(u.$$.fragment,l),i(f.$$.fragment,l),i(b.$$.fragment,l),i(d.$$.fragment,l),i(_.$$.fragment,l),i(H.$$.fragment,l),i(N.$$.fragment,l),i(F.$$.fragment,l),yl=!0)},o(l){w(n.$$.fragment,l),w(m.$$.fragment,l),w(r.$$.fragment,l),w(u.$$.fragment,l),w(f.$$.fragment,l),w(b.$$.fragment,l),w(d.$$.fragment,l),w(_.$$.fragment,l),w(H.$$.fragment,l),w(N.$$.fragment,l),w(F.$$.fragment,l),yl=!1},d(l){l&&(t(a),t(k),t(I),t(p),t(W),t(L),t(Q),t(X),t(R),t(E),t(V),t(D),t(Y),t(P),t(c),t(z),t($),t(K),t(h),t(ll),t(Tl),t(C),t(tl),t(Jl),t(v),t(el),t(Ul),t(B),t(nl),t(sl),t(Z),t(Al),t(x),t(Ml),t(al),t(G),t(Ol),t(gl),t(S)),t(M),j(n,l),j(m,l),j(r,l),j(u,l),j(f,l),j(b,l),j(d,l),j(_,l),j(H,l),j(N,l),j(F,l)}}}const Wl='{"title":"将操作编写为代码片段或 JSON 结构","local":"将操作编写为代码片段或-json-结构","sections":[{"title":"工具调用智能体的工作原理","local":"工具调用智能体的工作原理","sections":[],"depth":2},{"title":"示例：运行工具调用智能体","local":"示例运行工具调用智能体","sections":[],"depth":2},{"title":"资源","local":"资源","sections":[],"depth":2}],"depth":1}';function Ll(q){return vl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Kl extends Bl{constructor(M){super(),Hl(this,M,Ll,ql,dl,{})}}export{Kl as component};
