import{s as _l,o as Zl,n as Hl}from"../chunks/scheduler.37c15a92.js";import{S as Gl,i as Nl,g as a,s as J,r as A,A as Bl,h as o,f as t,c as n,j as Cl,u as r,x as g,k as pl,y as Wl,a as T,v as y,d as O,t as M,w,m as vl,n as xl}from"../chunks/index.2bf4358c.js";import{T as ql}from"../chunks/Tip.363c041f.js";import{C as Ml}from"../chunks/CodeBlock.4e987730.js";import{C as Ll}from"../chunks/CourseFloatingBanner.6add7356.js";import{H as wl}from"../chunks/Heading.8ada512a.js";import{E as El}from"../chunks/getInferenceSnippets.42ccd5ac.js";function Fl(E){let U,i,u="this notebook",p;return{c(){U=vl("You can follow the code in "),i=a("a"),i.textContent=u,p=vl(" that you can run using Google Colab."),this.h()},l(s){U=xl(s,"You can follow the code in "),i=o(s,"A",{href:!0,target:!0,"data-svelte-h":!0}),g(i)!=="svelte-uwd44p"&&(i.textContent=u),p=xl(s," that you can run using Google Colab."),this.h()},h(){pl(i,"href","https://huggingface.co/agents-course/notebooks/blob/main/unit2/smolagents/tool_calling_agents.ipynb"),pl(i,"target","_blank")},m(s,c){T(s,U,c),T(s,i,c),T(s,p,c)},p:Hl,d(s){s&&(t(U),t(i),t(p))}}}function Sl(E){let U,i,u,p,s,c,m,F,j,S,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.",V,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,X,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://huggingface.co/papers/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,nl,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:",sl,_,al,Z,Ql="When you examine the agent’s trace, instead of seeing <code>Executing parsed code:</code>, you’ll see something like:",ol,H,Ul,G,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>.",il,N,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,B,Al,W,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,q,yl,L,Ol;return s=new Ll({props:{classNames:"absolute z-10 right-0 top-0",notebooks:[{label:"Google Colab",value:"https://colab.research.google.com/#fileId=https://huggingface.co/agents-course/notebooks/blob/main/unit2/smolagents/tool_calling_agents.ipynb"}],askForHelpUrl:"http://hf.co/join/discord"}}),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 ql({props:{$$slots:{default:[Fl]},$$scope:{ctx:E}}}),f=new Ml({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 Ml({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 Ml({props:{code:"ZnJvbSUyMHNtb2xhZ2VudHMlMjBpbXBvcnQlMjBUb29sQ2FsbGluZ0FnZW50JTJDJTIwRHVja0R1Y2tHb1NlYXJjaFRvb2wlMkMlMjBJbmZlcmVuY2VDbGllbnRNb2RlbCUwQSUwQWFnZW50JTIwJTNEJTIwVG9vbENhbGxpbmdBZ2VudCh0b29scyUzRCU1QkR1Y2tEdWNrR29TZWFyY2hUb29sKCklNUQlMkMlMjBtb2RlbCUzREluZmVyZW5jZUNsaWVudE1vZGVsKCkpJTBBJTBBYWdlbnQucnVuKCUyMlNlYXJjaCUyMGZvciUyMHRoZSUyMGJlc3QlMjBtdXNpYyUyMHJlY29tbWVuZGF0aW9ucyUyMGZvciUyMGElMjBwYXJ0eSUyMGF0JTIwdGhlJTIwV2F5bmUncyUyMG1hbnNpb24uJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> ToolCallingAgent, DuckDuckGoSearchTool, InferenceClientModel

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

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 Ml({props:{code:"JUUyJTk1JUFEJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk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TUlQUY=",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}}),B=new wl({props:{title:"Resources",local:"resources",headingTag:"h2"}}),q=new El({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/en/unit2/smolagents/tool_calling_agents.mdx"}}),{c(){U=a("meta"),i=J(),u=a("p"),p=J(),A(s.$$.fragment),c=J(),A(m.$$.fragment),F=J(),A(j.$$.fragment),S=J(),k=a("p"),k.innerHTML=ul,V=J(),I=a("p"),I.innerHTML=cl,Y=J(),A(f.$$.fragment),X=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),nl=J(),x=a("p"),x.innerHTML=Rl,sl=J(),A(_.$$.fragment),al=J(),Z=a("p"),Z.innerHTML=Ql,ol=J(),A(H.$$.fragment),Ul=J(),G=a("p"),G.innerHTML=Dl,il=J(),N=a("p"),N.innerHTML=dl,gl=J(),A(B.$$.fragment),Al=J(),W=a("ul"),W.innerHTML=bl,rl=J(),A(q.$$.fragment),yl=J(),L=a("p"),this.h()},l(l){const e=Bl("svelte-u9bgzb",document.head);U=o(e,"META",{name:!0,content:!0}),e.forEach(t),i=n(l),u=o(l,"P",{}),Cl(u).forEach(t),p=n(l),r(s.$$.fragment,l),c=n(l),r(m.$$.fragment,l),F=n(l),r(j.$$.fragment,l),S=n(l),k=o(l,"P",{"data-svelte-h":!0}),g(k)!=="svelte-1rmoi6l"&&(k.innerHTML=ul),V=n(l),I=o(l,"P",{"data-svelte-h":!0}),g(I)!=="svelte-1dxa6xl"&&(I.innerHTML=cl),Y=n(l),r(f.$$.fragment,l),X=n(l),h=o(l,"P",{"data-svelte-h":!0}),g(h)!=="svelte-1jax7uc"&&(h.innerHTML=jl),P=n(l),r(R.$$.fragment,l),z=n(l),Q=o(l,"P",{"data-svelte-h":!0}),g(Q)!=="svelte-yir591"&&(Q.textContent=ml),K=n(l),D=o(l,"P",{"data-svelte-h":!0}),g(D)!=="svelte-14p5555"&&(D.innerHTML=kl),ll=n(l),d=o(l,"P",{"data-svelte-h":!0}),g(d)!=="svelte-18ub6lf"&&(d.innerHTML=Il),el=n(l),r(b.$$.fragment,l),tl=n(l),$=o(l,"P",{"data-svelte-h":!0}),g($)!=="svelte-12pis8u"&&($.innerHTML=fl),Tl=n(l),C=o(l,"P",{"data-svelte-h":!0}),g(C)!=="svelte-npjcu3"&&(C.innerHTML=hl),Jl=n(l),r(v.$$.fragment,l),nl=n(l),x=o(l,"P",{"data-svelte-h":!0}),g(x)!=="svelte-u98cxl"&&(x.innerHTML=Rl),sl=n(l),r(_.$$.fragment,l),al=n(l),Z=o(l,"P",{"data-svelte-h":!0}),g(Z)!=="svelte-1agnc2a"&&(Z.innerHTML=Ql),ol=n(l),r(H.$$.fragment,l),Ul=n(l),G=o(l,"P",{"data-svelte-h":!0}),g(G)!=="svelte-kdf7f8"&&(G.innerHTML=Dl),il=n(l),N=o(l,"P",{"data-svelte-h":!0}),g(N)!=="svelte-160j1pf"&&(N.innerHTML=dl),gl=n(l),r(B.$$.fragment,l),Al=n(l),W=o(l,"UL",{"data-svelte-h":!0}),g(W)!=="svelte-ebdx7j"&&(W.innerHTML=bl),rl=n(l),r(q.$$.fragment,l),yl=n(l),L=o(l,"P",{}),Cl(L).forEach(t),this.h()},h(){pl(U,"name","hf:doc:metadata"),pl(U,"content",Vl)},m(l,e){Wl(document.head,U),T(l,i,e),T(l,u,e),T(l,p,e),y(s,l,e),T(l,c,e),y(m,l,e),T(l,F,e),y(j,l,e),T(l,S,e),T(l,k,e),T(l,V,e),T(l,I,e),T(l,Y,e),y(f,l,e),T(l,X,e),T(l,h,e),T(l,P,e),y(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),y(b,l,e),T(l,tl,e),T(l,$,e),T(l,Tl,e),T(l,C,e),T(l,Jl,e),y(v,l,e),T(l,nl,e),T(l,x,e),T(l,sl,e),y(_,l,e),T(l,al,e),T(l,Z,e),T(l,ol,e),y(H,l,e),T(l,Ul,e),T(l,G,e),T(l,il,e),T(l,N,e),T(l,gl,e),y(B,l,e),T(l,Al,e),T(l,W,e),T(l,rl,e),y(q,l,e),T(l,yl,e),T(l,L,e),Ol=!0},p(l,[e]){const $l={};e&2&&($l.$$scope={dirty:e,ctx:l}),j.$set($l)},i(l){Ol||(O(s.$$.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(H.$$.fragment,l),O(B.$$.fragment,l),O(q.$$.fragment,l),Ol=!0)},o(l){M(s.$$.fragment,l),M(m.$$.fragment,l),M(j.$$.fragment,l),M(f.$$.fragment,l),M(R.$$.fragment,l),M(b.$$.fragment,l),M(v.$$.fragment,l),M(_.$$.fragment,l),M(H.$$.fragment,l),M(B.$$.fragment,l),M(q.$$.fragment,l),Ol=!1},d(l){l&&(t(i),t(u),t(p),t(c),t(F),t(S),t(k),t(V),t(I),t(Y),t(X),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(nl),t(x),t(sl),t(al),t(Z),t(ol),t(Ul),t(G),t(il),t(N),t(gl),t(Al),t(W),t(rl),t(yl),t(L)),t(U),w(s,l),w(m,l),w(j,l),w(f,l),w(R,l),w(b,l),w(v,l),w(_,l),w(H,l),w(B,l),w(q,l)}}}const Vl='{"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(E){return Zl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Te extends Gl{constructor(U){super(),Nl(this,U,Yl,Sl,_l,{})}}export{Te as component};
