import{s as _l,n as Hl,o as Zl}from"../chunks/scheduler.505acc25.js";import{S as Bl,i as Nl,e as s,s as J,c as U,h as Gl,a,d as t,b as n,f as xl,g as i,j as o,k as ul,l as Ll,m as T,n as g,t as A,o as r,p as y}from"../chunks/index.fbb49fb4.js";import{C as Wl}from"../chunks/CopyLLMTxtMenu.564b44fd.js";import{C as pl}from"../chunks/CodeBlock.7f0851b7.js";import{C as ql}from"../chunks/CourseFloatingBanner.742f9db5.js";import{H as wl}from"../chunks/Heading.511e0027.js";import{E as El}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.8c19e80e.js";function Sl(cl){let M,W,G,q,p,E,w,S,u,F,O,jl='<p>You can follow the code in <a href="https://huggingface.co/agents-course/notebooks/blob/main/unit2/smolagents/tool_calling_agents.ipynb" target="_blank">this notebook</a> that you can run using Google Colab.</p>',V,c,ml="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.",Y,j,kl="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:",X,m,P,k,Il="A <code>ToolCallingAgent</code> would instead create a JSON structure:",z,I,K,f,fl="This JSON blob is then used to execute the tool calls.",ll,Q,Ql='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.',el,R,Rl='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/transformers/code_vs_json_actions.png" alt="Code vs JSON Actions"/>',tl,h,Tl,D,hl='Tool Calling Agents follow the same multi-step workflow as Code Agents (see the <a href="./code_agents">previous section</a> for details).',Jl,d,Dl="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.",nl,b,sl,C,dl="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:",al,$,ol,v,bl="When you examine the agent’s trace, instead of seeing <code>Executing parsed code:</code>, you’ll see something like:",Ul,x,il,_,Cl="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>.",gl,H,$l="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! 🎉",Al,Z,rl,B,vl='<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>',yl,N,Ml,L,Ol;return p=new ql({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"}}),w=new Wl({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),u=new wl({props:{title:"Writing actions as code snippets or JSON blobs",local:"writing-actions-as-code-snippets-or-json-blobs",headingTag:"h1"}}),m=new pl({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}}),I=new pl({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}}),h=new wl({props:{title:"How Do Tool Calling Agents Work?",local:"how-do-tool-calling-agents-work",headingTag:"h2"}}),b=new wl({props:{title:"Example: Running a Tool Calling Agent",local:"example-running-a-tool-calling-agent",headingTag:"h2"}}),$=new pl({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}}),x=new pl({props:{code:"JUUyJTk1JUFEJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0JTgwJUUyJTk0J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RTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTQlODAlRTIlOTUlQUY=",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}}),Z=new wl({props:{title:"Resources",local:"resources",headingTag:"h2"}}),N=new El({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/en/unit2/smolagents/tool_calling_agents.mdx"}}),{c(){M=s("meta"),W=J(),G=s("p"),q=J(),U(p.$$.fragment),E=J(),U(w.$$.fragment),S=J(),U(u.$$.fragment),F=J(),O=s("blockquote"),O.innerHTML=jl,V=J(),c=s("p"),c.innerHTML=ml,Y=J(),j=s("p"),j.innerHTML=kl,X=J(),U(m.$$.fragment),P=J(),k=s("p"),k.innerHTML=Il,z=J(),U(I.$$.fragment),K=J(),f=s("p"),f.textContent=fl,ll=J(),Q=s("p"),Q.innerHTML=Ql,el=J(),R=s("p"),R.innerHTML=Rl,tl=J(),U(h.$$.fragment),Tl=J(),D=s("p"),D.innerHTML=hl,Jl=J(),d=s("p"),d.innerHTML=Dl,nl=J(),U(b.$$.fragment),sl=J(),C=s("p"),C.innerHTML=dl,al=J(),U($.$$.fragment),ol=J(),v=s("p"),v.innerHTML=bl,Ul=J(),U(x.$$.fragment),il=J(),_=s("p"),_.innerHTML=Cl,gl=J(),H=s("p"),H.innerHTML=$l,Al=J(),U(Z.$$.fragment),rl=J(),B=s("ul"),B.innerHTML=vl,yl=J(),U(N.$$.fragment),Ml=J(),L=s("p"),this.h()},l(l){const e=Gl("svelte-u9bgzb",document.head);M=a(e,"META",{name:!0,content:!0}),e.forEach(t),W=n(l),G=a(l,"P",{}),xl(G).forEach(t),q=n(l),i(p.$$.fragment,l),E=n(l),i(w.$$.fragment,l),S=n(l),i(u.$$.fragment,l),F=n(l),O=a(l,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),o(O)!=="svelte-1oh0rol"&&(O.innerHTML=jl),V=n(l),c=a(l,"P",{"data-svelte-h":!0}),o(c)!=="svelte-1rmoi6l"&&(c.innerHTML=ml),Y=n(l),j=a(l,"P",{"data-svelte-h":!0}),o(j)!=="svelte-1dxa6xl"&&(j.innerHTML=kl),X=n(l),i(m.$$.fragment,l),P=n(l),k=a(l,"P",{"data-svelte-h":!0}),o(k)!=="svelte-1jax7uc"&&(k.innerHTML=Il),z=n(l),i(I.$$.fragment,l),K=n(l),f=a(l,"P",{"data-svelte-h":!0}),o(f)!=="svelte-yir591"&&(f.textContent=fl),ll=n(l),Q=a(l,"P",{"data-svelte-h":!0}),o(Q)!=="svelte-14p5555"&&(Q.innerHTML=Ql),el=n(l),R=a(l,"P",{"data-svelte-h":!0}),o(R)!=="svelte-18ub6lf"&&(R.innerHTML=Rl),tl=n(l),i(h.$$.fragment,l),Tl=n(l),D=a(l,"P",{"data-svelte-h":!0}),o(D)!=="svelte-12pis8u"&&(D.innerHTML=hl),Jl=n(l),d=a(l,"P",{"data-svelte-h":!0}),o(d)!=="svelte-npjcu3"&&(d.innerHTML=Dl),nl=n(l),i(b.$$.fragment,l),sl=n(l),C=a(l,"P",{"data-svelte-h":!0}),o(C)!=="svelte-u98cxl"&&(C.innerHTML=dl),al=n(l),i($.$$.fragment,l),ol=n(l),v=a(l,"P",{"data-svelte-h":!0}),o(v)!=="svelte-1agnc2a"&&(v.innerHTML=bl),Ul=n(l),i(x.$$.fragment,l),il=n(l),_=a(l,"P",{"data-svelte-h":!0}),o(_)!=="svelte-kdf7f8"&&(_.innerHTML=Cl),gl=n(l),H=a(l,"P",{"data-svelte-h":!0}),o(H)!=="svelte-160j1pf"&&(H.innerHTML=$l),Al=n(l),i(Z.$$.fragment,l),rl=n(l),B=a(l,"UL",{"data-svelte-h":!0}),o(B)!=="svelte-ebdx7j"&&(B.innerHTML=vl),yl=n(l),i(N.$$.fragment,l),Ml=n(l),L=a(l,"P",{}),xl(L).forEach(t),this.h()},h(){ul(M,"name","hf:doc:metadata"),ul(M,"content",Fl),ul(O,"class","tip")},m(l,e){Ll(document.head,M),T(l,W,e),T(l,G,e),T(l,q,e),g(p,l,e),T(l,E,e),g(w,l,e),T(l,S,e),g(u,l,e),T(l,F,e),T(l,O,e),T(l,V,e),T(l,c,e),T(l,Y,e),T(l,j,e),T(l,X,e),g(m,l,e),T(l,P,e),T(l,k,e),T(l,z,e),g(I,l,e),T(l,K,e),T(l,f,e),T(l,ll,e),T(l,Q,e),T(l,el,e),T(l,R,e),T(l,tl,e),g(h,l,e),T(l,Tl,e),T(l,D,e),T(l,Jl,e),T(l,d,e),T(l,nl,e),g(b,l,e),T(l,sl,e),T(l,C,e),T(l,al,e),g($,l,e),T(l,ol,e),T(l,v,e),T(l,Ul,e),g(x,l,e),T(l,il,e),T(l,_,e),T(l,gl,e),T(l,H,e),T(l,Al,e),g(Z,l,e),T(l,rl,e),T(l,B,e),T(l,yl,e),g(N,l,e),T(l,Ml,e),T(l,L,e),Ol=!0},p:Hl,i(l){Ol||(A(p.$$.fragment,l),A(w.$$.fragment,l),A(u.$$.fragment,l),A(m.$$.fragment,l),A(I.$$.fragment,l),A(h.$$.fragment,l),A(b.$$.fragment,l),A($.$$.fragment,l),A(x.$$.fragment,l),A(Z.$$.fragment,l),A(N.$$.fragment,l),Ol=!0)},o(l){r(p.$$.fragment,l),r(w.$$.fragment,l),r(u.$$.fragment,l),r(m.$$.fragment,l),r(I.$$.fragment,l),r(h.$$.fragment,l),r(b.$$.fragment,l),r($.$$.fragment,l),r(x.$$.fragment,l),r(Z.$$.fragment,l),r(N.$$.fragment,l),Ol=!1},d(l){l&&(t(W),t(G),t(q),t(E),t(S),t(F),t(O),t(V),t(c),t(Y),t(j),t(X),t(P),t(k),t(z),t(K),t(f),t(ll),t(Q),t(el),t(R),t(tl),t(Tl),t(D),t(Jl),t(d),t(nl),t(sl),t(C),t(al),t(ol),t(v),t(Ul),t(il),t(_),t(gl),t(H),t(Al),t(rl),t(B),t(yl),t(Ml),t(L)),t(M),y(p,l),y(w,l),y(u,l),y(m,l),y(I,l),y(h,l),y(b,l),y($,l),y(x,l),y(Z,l),y(N,l)}}}const Fl='{"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 Vl(cl){return Zl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class te extends Bl{constructor(M){super(),Nl(this,M,Vl,Sl,_l,{})}}export{te as component};
