import{s as _l,o as Hl,n as Bl}from"../chunks/scheduler.37c15a92.js";import{S as Zl,i as Wl,g as a,s as J,r as A,A as Gl,h as o,f as t,c as s,j as Cl,u as r,x as g,k as pl,y as Nl,a as T,v as M,d as O,t as y,w,m as vl,n as xl}from"../chunks/index.2bf4358c.js";import{T as Ll}from"../chunks/Tip.363c041f.js";import{C as yl}from"../chunks/CodeBlock.4e987730.js";import{C as ql}from"../chunks/CourseFloatingBanner.6add7356.js";import{H as wl}from"../chunks/Heading.8ada512a.js";import{E as Fl}from"../chunks/index.2145fe70.js";function Sl(F){let i,U,u="this notebook",p;return{c(){i=vl("You can follow the code in "),U=a("a"),U.textContent=u,p=vl(" that you can run using Google Colab."),this.h()},l(n){i=xl(n,"You can follow the code in "),U=o(n,"A",{href:!0,target:!0,"data-svelte-h":!0}),g(U)!=="svelte-uwd44p"&&(U.textContent=u),p=xl(n," that you can run using Google Colab."),this.h()},h(){pl(U,"href","https://huggingface.co/agents-course/notebooks/blob/main/unit2/smolagents/tool_calling_agents.ipynb"),pl(U,"target","_blank")},m(n,c){T(n,i,c),T(n,U,c),T(n,p,c)},p:Bl,d(n){n&&(t(i),t(U),t(p))}}}function El(F){let i,U,u,p,n,c,m,S,j,E,k,ul="Tool Calling Agents are the second type of agent available in <code>smolagents</code>. Unlike Code Agents that use Python snippets, these agents <strong>use the built-in tool-calling capabilities of LLM providers</strong> to generate tool calls as <strong>JSON structures</strong>. This is the standard approach used by OpenAI, Anthropic, and many other providers.",X,I,cl="Let’s look at an example. When Alfred wants to search for catering services and party ideas, a <code>CodeAgent</code> would generate and run Python code like this:",Y,f,V,h,jl="A <code>ToolCallingAgent</code> would instead create a JSON structure:",P,R,z,Q,ml="This JSON blob is then used to execute the tool calls.",K,D,kl='While <code>smolagents</code> primarily focuses on <code>CodeAgents</code> since <a href="https://arxiv.org/abs/2402.01030" rel="nofollow">they perform better overall</a>, <code>ToolCallingAgents</code> can be effective for simple systems that don’t require variable handling or complex tool calls.',ll,d,Il='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/code_vs_json_actions.png" alt="Code vs JSON Actions"/>',el,b,tl,$,fl='Tool Calling Agents follow the same multi-step workflow as Code Agents (see the <a href="./code_agents">previous section</a> for details).',Tl,C,hl="The key difference is in <strong>how they structure their actions</strong>: instead of executable code, they <strong>generate JSON objects that specify tool names and arguments</strong>. The system then <strong>parses these instructions</strong> to execute the appropriate tools.",Jl,v,sl,x,Rl="Let’s revisit the previous example where Alfred started party preparations, but this time we’ll use a <code>ToolCallingAgent</code> to highlight the difference. We’ll build an agent that can search the web using DuckDuckGo, just like in our Code Agent example. The only difference is the agent type - the framework handles everything else:",nl,_,al,H,Ql="When you examine the agent’s trace, instead of seeing <code>Executing parsed code:</code>, you’ll see something like:",ol,B,il,Z,Dl="The agent generates a structured tool call that the system processes to produce the output, rather than directly executing code like a <code>CodeAgent</code>.",Ul,W,dl="Now that we understand both agent types, we can choose the right one for our needs. Let’s continue exploring <code>smolagents</code> to make Alfred’s party a success! 🎉",gl,G,Al,N,bl='<li><a href="https://huggingface.co/docs/smolagents/v1.8.1/en/reference/agents#smolagents.ToolCallingAgent" rel="nofollow">ToolCallingAgent documentation</a> - Official documentation for ToolCallingAgent</li>',rl,L,Ml,q,Ol;return n=new ql({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 wl({props:{title:"Writing actions as code snippets or JSON blobs",local:"writing-actions-as-code-snippets-or-json-blobs",headingTag:"h1"}}),j=new Ll({props:{$$slots:{default:[Sl]},$$scope:{ctx:F}}}),f=new yl({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}}),R=new yl({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 wl({props:{title:"How Do Tool Calling Agents Work?",local:"how-do-tool-calling-agents-work",headingTag:"h2"}}),v=new wl({props:{title:"Example: Running a Tool Calling Agent",local:"example-running-a-tool-calling-agent",headingTag:"h2"}}),_=new yl({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}}),B=new yl({props:{code:"JUUyJTk1JUFEJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JT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TIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTUlQUY=",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}}),G=new wl({props:{title:"Resources",local:"resources",headingTag:"h2"}}),L=new Fl({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/en/unit2/smolagents/tool_calling_agents.mdx"}}),{c(){i=a("meta"),U=J(),u=a("p"),p=J(),A(n.$$.fragment),c=J(),A(m.$$.fragment),S=J(),A(j.$$.fragment),E=J(),k=a("p"),k.innerHTML=ul,X=J(),I=a("p"),I.innerHTML=cl,Y=J(),A(f.$$.fragment),V=J(),h=a("p"),h.innerHTML=jl,P=J(),A(R.$$.fragment),z=J(),Q=a("p"),Q.textContent=ml,K=J(),D=a("p"),D.innerHTML=kl,ll=J(),d=a("p"),d.innerHTML=Il,el=J(),A(b.$$.fragment),tl=J(),$=a("p"),$.innerHTML=fl,Tl=J(),C=a("p"),C.innerHTML=hl,Jl=J(),A(v.$$.fragment),sl=J(),x=a("p"),x.innerHTML=Rl,nl=J(),A(_.$$.fragment),al=J(),H=a("p"),H.innerHTML=Ql,ol=J(),A(B.$$.fragment),il=J(),Z=a("p"),Z.innerHTML=Dl,Ul=J(),W=a("p"),W.innerHTML=dl,gl=J(),A(G.$$.fragment),Al=J(),N=a("ul"),N.innerHTML=bl,rl=J(),A(L.$$.fragment),Ml=J(),q=a("p"),this.h()},l(l){const e=Gl("svelte-u9bgzb",document.head);i=o(e,"META",{name:!0,content:!0}),e.forEach(t),U=s(l),u=o(l,"P",{}),Cl(u).forEach(t),p=s(l),r(n.$$.fragment,l),c=s(l),r(m.$$.fragment,l),S=s(l),r(j.$$.fragment,l),E=s(l),k=o(l,"P",{"data-svelte-h":!0}),g(k)!=="svelte-1rmoi6l"&&(k.innerHTML=ul),X=s(l),I=o(l,"P",{"data-svelte-h":!0}),g(I)!=="svelte-1dxa6xl"&&(I.innerHTML=cl),Y=s(l),r(f.$$.fragment,l),V=s(l),h=o(l,"P",{"data-svelte-h":!0}),g(h)!=="svelte-1jax7uc"&&(h.innerHTML=jl),P=s(l),r(R.$$.fragment,l),z=s(l),Q=o(l,"P",{"data-svelte-h":!0}),g(Q)!=="svelte-yir591"&&(Q.textContent=ml),K=s(l),D=o(l,"P",{"data-svelte-h":!0}),g(D)!=="svelte-1c0kvsc"&&(D.innerHTML=kl),ll=s(l),d=o(l,"P",{"data-svelte-h":!0}),g(d)!=="svelte-18ub6lf"&&(d.innerHTML=Il),el=s(l),r(b.$$.fragment,l),tl=s(l),$=o(l,"P",{"data-svelte-h":!0}),g($)!=="svelte-12pis8u"&&($.innerHTML=fl),Tl=s(l),C=o(l,"P",{"data-svelte-h":!0}),g(C)!=="svelte-npjcu3"&&(C.innerHTML=hl),Jl=s(l),r(v.$$.fragment,l),sl=s(l),x=o(l,"P",{"data-svelte-h":!0}),g(x)!=="svelte-u98cxl"&&(x.innerHTML=Rl),nl=s(l),r(_.$$.fragment,l),al=s(l),H=o(l,"P",{"data-svelte-h":!0}),g(H)!=="svelte-1agnc2a"&&(H.innerHTML=Ql),ol=s(l),r(B.$$.fragment,l),il=s(l),Z=o(l,"P",{"data-svelte-h":!0}),g(Z)!=="svelte-kdf7f8"&&(Z.innerHTML=Dl),Ul=s(l),W=o(l,"P",{"data-svelte-h":!0}),g(W)!=="svelte-160j1pf"&&(W.innerHTML=dl),gl=s(l),r(G.$$.fragment,l),Al=s(l),N=o(l,"UL",{"data-svelte-h":!0}),g(N)!=="svelte-ebdx7j"&&(N.innerHTML=bl),rl=s(l),r(L.$$.fragment,l),Ml=s(l),q=o(l,"P",{}),Cl(q).forEach(t),this.h()},h(){pl(i,"name","hf:doc:metadata"),pl(i,"content",Xl)},m(l,e){Nl(document.head,i),T(l,U,e),T(l,u,e),T(l,p,e),M(n,l,e),T(l,c,e),M(m,l,e),T(l,S,e),M(j,l,e),T(l,E,e),T(l,k,e),T(l,X,e),T(l,I,e),T(l,Y,e),M(f,l,e),T(l,V,e),T(l,h,e),T(l,P,e),M(R,l,e),T(l,z,e),T(l,Q,e),T(l,K,e),T(l,D,e),T(l,ll,e),T(l,d,e),T(l,el,e),M(b,l,e),T(l,tl,e),T(l,$,e),T(l,Tl,e),T(l,C,e),T(l,Jl,e),M(v,l,e),T(l,sl,e),T(l,x,e),T(l,nl,e),M(_,l,e),T(l,al,e),T(l,H,e),T(l,ol,e),M(B,l,e),T(l,il,e),T(l,Z,e),T(l,Ul,e),T(l,W,e),T(l,gl,e),M(G,l,e),T(l,Al,e),T(l,N,e),T(l,rl,e),M(L,l,e),T(l,Ml,e),T(l,q,e),Ol=!0},p(l,[e]){const $l={};e&2&&($l.$$scope={dirty:e,ctx:l}),j.$set($l)},i(l){Ol||(O(n.$$.fragment,l),O(m.$$.fragment,l),O(j.$$.fragment,l),O(f.$$.fragment,l),O(R.$$.fragment,l),O(b.$$.fragment,l),O(v.$$.fragment,l),O(_.$$.fragment,l),O(B.$$.fragment,l),O(G.$$.fragment,l),O(L.$$.fragment,l),Ol=!0)},o(l){y(n.$$.fragment,l),y(m.$$.fragment,l),y(j.$$.fragment,l),y(f.$$.fragment,l),y(R.$$.fragment,l),y(b.$$.fragment,l),y(v.$$.fragment,l),y(_.$$.fragment,l),y(B.$$.fragment,l),y(G.$$.fragment,l),y(L.$$.fragment,l),Ol=!1},d(l){l&&(t(U),t(u),t(p),t(c),t(S),t(E),t(k),t(X),t(I),t(Y),t(V),t(h),t(P),t(z),t(Q),t(K),t(D),t(ll),t(d),t(el),t(tl),t($),t(Tl),t(C),t(Jl),t(sl),t(x),t(nl),t(al),t(H),t(ol),t(il),t(Z),t(Ul),t(W),t(gl),t(Al),t(N),t(rl),t(Ml),t(q)),t(i),w(n,l),w(m,l),w(j,l),w(f,l),w(R,l),w(b,l),w(v,l),w(_,l),w(B,l),w(G,l),w(L,l)}}}const Xl='{"title":"Writing actions as code snippets or JSON blobs","local":"writing-actions-as-code-snippets-or-json-blobs","sections":[{"title":"How Do Tool Calling Agents Work?","local":"how-do-tool-calling-agents-work","sections":[],"depth":2},{"title":"Example: Running a Tool Calling Agent","local":"example-running-a-tool-calling-agent","sections":[],"depth":2},{"title":"Resources","local":"resources","sections":[],"depth":2}],"depth":1}';function Yl(F){return Hl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Te extends Zl{constructor(i){super(),Wl(this,i,Yl,El,_l,{})}}export{Te as component};
