import{s as ht,o as $t,n as et}from"../chunks/scheduler.f6319a2a.js";import{S as Tt,i as bt,g as f,s as l,r as m,A as yt,h,f as a,c as n,j as _,u as c,x as S,k as M,y as v,a as s,v as g,d as p,t as u,w as d}from"../chunks/index.85aa684c.js";import{D as U,E as Oe}from"../chunks/ExampleCodeBlock.3d8cc3b7.js";import{C as tt}from"../chunks/CodeBlock.3400fc53.js";import{H as C,E as wt}from"../chunks/getInferenceSnippets.55a93fbe.js";function _t(J){let r,y="Examples:",T,i,$;return i=new tt({props:{code:"ZnJvbSUyMHNtb2xhZ2VudHMlMjBpbXBvcnQlMjBBcGlXZWJTZWFyY2hUb29sJTBBd2ViX3NlYXJjaF90b29sJTIwJTNEJTIwQXBpV2ViU2VhcmNoVG9vbChyYXRlX2xpbWl0JTNENTAuMCklMEFyZXN1bHRzJTIwJTNEJTIwd2ViX3NlYXJjaF90b29sKCUyMkh1Z2dpbmclMjBGYWNlJTIyKSUwQXByaW50KHJlc3VsdHMp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> ApiWebSearchTool
<span class="hljs-meta">&gt;&gt;&gt; </span>web_search_tool = ApiWebSearchTool(rate_limit=<span class="hljs-number">50.0</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>results = web_search_tool(<span class="hljs-string">&quot;Hugging Face&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(results)`,wrap:!1}}),{c(){r=f("p"),r.textContent=y,T=l(),m(i.$$.fragment)},l(o){r=h(o,"P",{"data-svelte-h":!0}),S(r)!=="svelte-kvfsh7"&&(r.textContent=y),T=n(o),c(i.$$.fragment,o)},m(o,b){s(o,r,b),s(o,T,b),g(i,o,b),$=!0},p:et,i(o){$||(p(i.$$.fragment,o),$=!0)},o(o){u(i.$$.fragment,o),$=!1},d(o){o&&(a(r),a(T)),d(i,o)}}}function Mt(J){let r,y="Examples:",T,i,$;return i=new tt({props:{code:"ZnJvbSUyMHNtb2xhZ2VudHMlMjBpbXBvcnQlMjBEdWNrRHVja0dvU2VhcmNoVG9vbCUwQXdlYl9zZWFyY2hfdG9vbCUyMCUzRCUyMER1Y2tEdWNrR29TZWFyY2hUb29sKG1heF9yZXN1bHRzJTNENSUyQyUyMHJhdGVfbGltaXQlM0QyLjApJTBBcmVzdWx0cyUyMCUzRCUyMHdlYl9zZWFyY2hfdG9vbCglMjJIdWdnaW5nJTIwRmFjZSUyMiklMEFwcmludChyZXN1bHRzKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> DuckDuckGoSearchTool
<span class="hljs-meta">&gt;&gt;&gt; </span>web_search_tool = DuckDuckGoSearchTool(max_results=<span class="hljs-number">5</span>, rate_limit=<span class="hljs-number">2.0</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>results = web_search_tool(<span class="hljs-string">&quot;Hugging Face&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(results)`,wrap:!1}}),{c(){r=f("p"),r.textContent=y,T=l(),m(i.$$.fragment)},l(o){r=h(o,"P",{"data-svelte-h":!0}),S(r)!=="svelte-kvfsh7"&&(r.textContent=y),T=n(o),c(i.$$.fragment,o)},m(o,b){s(o,r,b),s(o,T,b),g(i,o,b),$=!0},p:et,i(o){$||(p(i.$$.fragment,o),$=!0)},o(o){u(i.$$.fragment,o),$=!1},d(o){o&&(a(r),a(T)),d(i,o)}}}function vt(J){let r,y="Example:",T,i,$;return i=new tt({props:{code:"ZnJvbSUyMHNtb2xhZ2VudHMlMjBpbXBvcnQlMjBDb2RlQWdlbnQlMkMlMjBJbmZlcmVuY2VDbGllbnRNb2RlbCUyQyUyMFdpa2lwZWRpYVNlYXJjaFRvb2wlMEFhZ2VudCUyMCUzRCUyMENvZGVBZ2VudCglMEElMjAlMjAlMjAlMjB0b29scyUzRCU1QiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMFdpa2lwZWRpYVNlYXJjaFRvb2woJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwdXNlcl9hZ2VudCUzRCUyMk15UmVzZWFyY2hCb3QlMjAobXllbWFpbCU0MGV4YW1wbGUuY29tKSUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMGxhbmd1YWdlJTNEJTIyZW4lMjIlMkMlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBjb250ZW50X3R5cGUlM0QlMjJzdW1tYXJ5JTIyJTJDJTIwJTIwJTIzJTIwb3IlMjAlMjJ0ZXh0JTIyJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwZXh0cmFjdF9mb3JtYXQlM0QlMjJXSUtJJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwKSUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCU1RCUyQyUwQSUyMCUyMCUyMCUyMG1vZGVsJTNESW5mZXJlbmNlQ2xpZW50TW9kZWwoKSUyQyUwQSklMEFhZ2VudC5ydW4oJTIyUHl0aG9uXyhwcm9ncmFtbWluZ19sYW5ndWFnZSklMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> CodeAgent, InferenceClientModel, WikipediaSearchTool
<span class="hljs-meta">&gt;&gt;&gt; </span>agent = CodeAgent(
<span class="hljs-meta">&gt;&gt;&gt; </span>    tools=[
<span class="hljs-meta">&gt;&gt;&gt; </span>           WikipediaSearchTool(
<span class="hljs-meta">&gt;&gt;&gt; </span>               user_agent=<span class="hljs-string">&quot;MyResearchBot (myemail@example.com)&quot;</span>,
<span class="hljs-meta">&gt;&gt;&gt; </span>               language=<span class="hljs-string">&quot;en&quot;</span>,
<span class="hljs-meta">&gt;&gt;&gt; </span>               content_type=<span class="hljs-string">&quot;summary&quot;</span>,  <span class="hljs-comment"># or &quot;text&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>               extract_format=<span class="hljs-string">&quot;WIKI&quot;</span>,
<span class="hljs-meta">&gt;&gt;&gt; </span>           )
<span class="hljs-meta">&gt;&gt;&gt; </span>       ],
<span class="hljs-meta">&gt;&gt;&gt; </span>    model=InferenceClientModel(),
<span class="hljs-meta">&gt;&gt;&gt; </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>agent.run(<span class="hljs-string">&quot;Python_(programming_language)&quot;</span>)`,wrap:!1}}),{c(){r=f("p"),r.textContent=y,T=l(),m(i.$$.fragment)},l(o){r=h(o,"P",{"data-svelte-h":!0}),S(r)!=="svelte-11lpom8"&&(r.textContent=y),T=n(o),c(i.$$.fragment,o)},m(o,b){s(o,r,b),s(o,T,b),g(i,o,b),$=!0},p:et,i(o){$||(p(i.$$.fragment,o),$=!0)},o(o){u(i.$$.fragment,o),$=!1},d(o){o&&(a(r),a(T)),d(i,o)}}}function kt(J){let r,y,T,i,$,o,b,at="Ready-to-use tool implementations provided by the <code>smolagents</code> library.",ye,E,st=`These built-in tools are concrete implementations of the <a href="/docs/smolagents/main/en/reference/tools#smolagents.Tool">Tool</a> base class, each designed for specific tasks such as web searching, Python code execution, webpage retrieval, and user interaction.
You can use these tools directly in your agents without having to implement the underlying functionality yourself.
Each tool handles a particular capability and follows a consistent interface, making it easy to compose them into powerful agent workflows.`,we,V,ot="The built-in tools can be categorized by their primary functions:",_e,q,lt='<li><strong>Information Retrieval</strong>: Search and retrieve information from the web and specific knowledge sources.<ul><li><a href="/docs/smolagents/main/en/reference/default_tools#smolagents.ApiWebSearchTool">ApiWebSearchTool</a></li> <li><a href="/docs/smolagents/main/en/reference/default_tools#smolagents.DuckDuckGoSearchTool">DuckDuckGoSearchTool</a></li> <li><a href="/docs/smolagents/main/en/reference/default_tools#smolagents.GoogleSearchTool">GoogleSearchTool</a></li> <li><a href="/docs/smolagents/main/en/reference/default_tools#smolagents.WebSearchTool">WebSearchTool</a></li> <li><a href="/docs/smolagents/main/en/reference/default_tools#smolagents.WikipediaSearchTool">WikipediaSearchTool</a></li></ul></li> <li><strong>Web Interaction</strong>: Fetch and process content from specific web pages.<ul><li><a href="/docs/smolagents/main/en/reference/default_tools#smolagents.VisitWebpageTool">VisitWebpageTool</a></li></ul></li> <li><strong>Code Execution</strong>: Dynamic execution of Python code for computational tasks.<ul><li><a href="/docs/smolagents/main/en/reference/default_tools#smolagents.PythonInterpreterTool">PythonInterpreterTool</a></li></ul></li> <li><strong>User Interaction</strong>: Enable Human-in-the-Loop collaboration between agents and users.<ul><li><a href="/docs/smolagents/main/en/reference/default_tools#smolagents.UserInputTool">UserInputTool</a>: Collect input from users.</li></ul></li> <li><strong>Speech Processing</strong>: Convert audio to textual data.<ul><li><a href="/docs/smolagents/main/en/reference/default_tools#smolagents.SpeechToTextTool">SpeechToTextTool</a></li></ul></li> <li><strong>Workflow Control</strong>: Manage and direct the flow of agent operations.<ul><li><a href="/docs/smolagents/main/en/reference/default_tools#smolagents.FinalAnswerTool">FinalAnswerTool</a>: Conclude agent workflow with final response.</li></ul></li>',Me,P,ve,w,G,Le,ue,nt=`Web search tool that performs API-based searches.
By default, it uses the Brave Search API.`,Re,de,rt=`This tool implements a rate limiting mechanism to ensure compliance with API usage policies.
By default, it limits requests to 1 query per second.`,Xe,j,ke,B,xe,k,F,Qe,fe,it="Web search tool that performs searches using the DuckDuckGo search engine.",Ye,A,Ie,Z,Ce,N,H,Se,L,Ue,R,X,We,Q,Je,Y,z,je,K,Ae,O,ee,De,te,Ee,ae,se,Ve,oe,qe,le,ne,Pe,re,Ge,ie,me,Be,ce,Fe,x,ge,ze,he,mt="Search Wikipedia and return the summary or full text of the requested article, along with the page URL.",Ke,D,Ze,pe,Ne,Te,He;return $=new C({props:{title:"Built-in Tools",local:"built-in-tools",headingTag:"h1"}}),P=new C({props:{title:"ApiWebSearchTool",local:"smolagents.ApiWebSearchTool",headingTag:"h2"}}),G=new U({props:{name:"class smolagents.ApiWebSearchTool",anchor:"smolagents.ApiWebSearchTool",parameters:[{name:"endpoint",val:": str = ''"},{name:"api_key",val:": str = ''"},{name:"api_key_name",val:": str = ''"},{name:"headers",val:": dict = None"},{name:"params",val:": dict = None"},{name:"rate_limit",val:": float | None = 1.0"}],parametersDescription:[{anchor:"smolagents.ApiWebSearchTool.endpoint",description:"<strong>endpoint</strong> (<code>str</code>) &#x2014; API endpoint URL. Defaults to Brave Search API.",name:"endpoint"},{anchor:"smolagents.ApiWebSearchTool.api_key",description:"<strong>api_key</strong> (<code>str</code>) &#x2014; API key for authentication.",name:"api_key"},{anchor:"smolagents.ApiWebSearchTool.api_key_name",description:"<strong>api_key_name</strong> (<code>str</code>) &#x2014; Environment variable name containing the API key. Defaults to &#x201C;BRAVE_API_KEY&#x201D;.",name:"api_key_name"},{anchor:"smolagents.ApiWebSearchTool.headers",description:"<strong>headers</strong> (<code>dict</code>, <em>optional</em>) &#x2014; Headers for API requests.",name:"headers"},{anchor:"smolagents.ApiWebSearchTool.params",description:"<strong>params</strong> (<code>dict</code>, <em>optional</em>) &#x2014; Parameters for API requests.",name:"params"},{anchor:"smolagents.ApiWebSearchTool.rate_limit",description:"<strong>rate_limit</strong> (<code>float</code>, default <code>1.0</code>) &#x2014; Maximum queries per second. Set to <code>None</code> to disable rate limiting.",name:"rate_limit"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/default_tools.py#L246"}}),j=new Oe({props:{anchor:"smolagents.ApiWebSearchTool.example",$$slots:{default:[_t]},$$scope:{ctx:J}}}),B=new C({props:{title:"DuckDuckGoSearchTool",local:"smolagents.DuckDuckGoSearchTool",headingTag:"h2"}}),F=new U({props:{name:"class smolagents.DuckDuckGoSearchTool",anchor:"smolagents.DuckDuckGoSearchTool",parameters:[{name:"max_results",val:": int = 10"},{name:"rate_limit",val:": float | None = 1.0"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.DuckDuckGoSearchTool.max_results",description:"<strong>max_results</strong> (<code>int</code>, default <code>10</code>) &#x2014; Maximum number of search results to return.",name:"max_results"},{anchor:"smolagents.DuckDuckGoSearchTool.rate_limit",description:"<strong>rate_limit</strong> (<code>float</code>, default <code>1.0</code>) &#x2014; Maximum queries per second. Set to <code>None</code> to disable rate limiting.",name:"rate_limit"},{anchor:"smolagents.DuckDuckGoSearchTool.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments for the <code>DDGS</code> client.",name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/default_tools.py#L101"}}),A=new Oe({props:{anchor:"smolagents.DuckDuckGoSearchTool.example",$$slots:{default:[Mt]},$$scope:{ctx:J}}}),Z=new C({props:{title:"FinalAnswerTool",local:"smolagents.FinalAnswerTool",headingTag:"h2"}}),H=new U({props:{name:"class smolagents.FinalAnswerTool",anchor:"smolagents.FinalAnswerTool",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/default_tools.py#L80"}}),L=new C({props:{title:"GoogleSearchTool",local:"smolagents.GoogleSearchTool",headingTag:"h2"}}),X=new U({props:{name:"class smolagents.GoogleSearchTool",anchor:"smolagents.GoogleSearchTool",parameters:[{name:"provider",val:": str = 'serpapi'"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/default_tools.py#L159"}}),Q=new C({props:{title:"PythonInterpreterTool",local:"smolagents.PythonInterpreterTool",headingTag:"h2"}}),z=new U({props:{name:"class smolagents.PythonInterpreterTool",anchor:"smolagents.PythonInterpreterTool",parameters:[{name:"*args",val:""},{name:"authorized_imports",val:" = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/default_tools.py#L38"}}),K=new C({props:{title:"SpeechToTextTool",local:"smolagents.SpeechToTextTool",headingTag:"h2"}}),ee=new U({props:{name:"class smolagents.SpeechToTextTool",anchor:"smolagents.SpeechToTextTool",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/default_tools.py#L606"}}),te=new C({props:{title:"UserInputTool",local:"smolagents.UserInputTool",headingTag:"h2"}}),se=new U({props:{name:"class smolagents.UserInputTool",anchor:"smolagents.UserInputTool",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/default_tools.py#L90"}}),oe=new C({props:{title:"VisitWebpageTool",local:"smolagents.VisitWebpageTool",headingTag:"h2"}}),ne=new U({props:{name:"class smolagents.VisitWebpageTool",anchor:"smolagents.VisitWebpageTool",parameters:[{name:"max_output_length",val:": int = 40000"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/default_tools.py#L451"}}),re=new C({props:{title:"WebSearchTool",local:"smolagents.WebSearchTool",headingTag:"h2"}}),me=new U({props:{name:"class smolagents.WebSearchTool",anchor:"smolagents.WebSearchTool",parameters:[{name:"max_results",val:": int = 10"},{name:"engine",val:": str = 'duckduckgo'"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/default_tools.py#L339"}}),ce=new C({props:{title:"WikipediaSearchTool",local:"smolagents.WikipediaSearchTool",headingTag:"h2"}}),ge=new U({props:{name:"class smolagents.WikipediaSearchTool",anchor:"smolagents.WikipediaSearchTool",parameters:[{name:"user_agent",val:": str = 'Smolagents (myemail@example.com)'"},{name:"language",val:": str = 'en'"},{name:"content_type",val:": str = 'text'"},{name:"extract_format",val:": str = 'WIKI'"}],parametersDescription:[{anchor:"smolagents.WikipediaSearchTool.user_agent",description:`<strong>user_agent</strong> (<code>str</code>) &#x2014; Custom user-agent string to identify the project. This is required as per Wikipedia API policies.
See: <a href="https://foundation.wikimedia.org/wiki/Policy:Wikimedia_Foundation_User-Agent_Policy" rel="nofollow">https://foundation.wikimedia.org/wiki/Policy:Wikimedia_Foundation_User-Agent_Policy</a>`,name:"user_agent"},{anchor:"smolagents.WikipediaSearchTool.language",description:`<strong>language</strong> (<code>str</code>, default <code>&quot;en&quot;</code>) &#x2014; Language in which to retrieve Wikipedia article.
See: <a href="http://meta.wikimedia.org/wiki/List_of_Wikipedias" rel="nofollow">http://meta.wikimedia.org/wiki/List_of_Wikipedias</a>`,name:"language"},{anchor:"smolagents.WikipediaSearchTool.content_type",description:"<strong>content_type</strong> (<code>Literal[&quot;summary&quot;, &quot;text&quot;]</code>, default <code>&quot;text&quot;</code>) &#x2014; Type of content to fetch. Can be &#x201C;summary&#x201D; for a short summary or &#x201C;text&#x201D; for the full article.",name:"content_type"},{anchor:"smolagents.WikipediaSearchTool.extract_format",description:"<strong>extract_format</strong> (<code>Literal[&quot;HTML&quot;, &quot;WIKI&quot;]</code>, default <code>&quot;WIKI&quot;</code>) &#x2014; Extraction format of the output. Can be <code>&quot;WIKI&quot;</code> or <code>&quot;HTML&quot;</code>.",name:"extract_format"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/default_tools.py#L507"}}),D=new Oe({props:{anchor:"smolagents.WikipediaSearchTool.example",$$slots:{default:[vt]},$$scope:{ctx:J}}}),pe=new wt({props:{source:"https://github.com/huggingface/smolagents/blob/main/docs/source/en/reference/default_tools.md"}}),{c(){r=f("meta"),y=l(),T=f("p"),i=l(),m($.$$.fragment),o=l(),b=f("p"),b.innerHTML=at,ye=l(),E=f("p"),E.innerHTML=st,we=l(),V=f("p"),V.textContent=ot,_e=l(),q=f("ul"),q.innerHTML=lt,Me=l(),m(P.$$.fragment),ve=l(),w=f("div"),m(G.$$.fragment),Le=l(),ue=f("p"),ue.textContent=nt,Re=l(),de=f("p"),de.textContent=rt,Xe=l(),m(j.$$.fragment),ke=l(),m(B.$$.fragment),xe=l(),k=f("div"),m(F.$$.fragment),Qe=l(),fe=f("p"),fe.textContent=it,Ye=l(),m(A.$$.fragment),Ie=l(),m(Z.$$.fragment),Ce=l(),N=f("div"),m(H.$$.fragment),Se=l(),m(L.$$.fragment),Ue=l(),R=f("div"),m(X.$$.fragment),We=l(),m(Q.$$.fragment),Je=l(),Y=f("div"),m(z.$$.fragment),je=l(),m(K.$$.fragment),Ae=l(),O=f("div"),m(ee.$$.fragment),De=l(),m(te.$$.fragment),Ee=l(),ae=f("div"),m(se.$$.fragment),Ve=l(),m(oe.$$.fragment),qe=l(),le=f("div"),m(ne.$$.fragment),Pe=l(),m(re.$$.fragment),Ge=l(),ie=f("div"),m(me.$$.fragment),Be=l(),m(ce.$$.fragment),Fe=l(),x=f("div"),m(ge.$$.fragment),ze=l(),he=f("p"),he.textContent=mt,Ke=l(),m(D.$$.fragment),Ze=l(),m(pe.$$.fragment),Ne=l(),Te=f("p"),this.h()},l(e){const t=yt("svelte-u9bgzb",document.head);r=h(t,"META",{name:!0,content:!0}),t.forEach(a),y=n(e),T=h(e,"P",{}),_(T).forEach(a),i=n(e),c($.$$.fragment,e),o=n(e),b=h(e,"P",{"data-svelte-h":!0}),S(b)!=="svelte-1v5xf2u"&&(b.innerHTML=at),ye=n(e),E=h(e,"P",{"data-svelte-h":!0}),S(E)!=="svelte-udckd6"&&(E.innerHTML=st),we=n(e),V=h(e,"P",{"data-svelte-h":!0}),S(V)!=="svelte-1nsgdmq"&&(V.textContent=ot),_e=n(e),q=h(e,"UL",{"data-svelte-h":!0}),S(q)!=="svelte-1t85ud5"&&(q.innerHTML=lt),Me=n(e),c(P.$$.fragment,e),ve=n(e),w=h(e,"DIV",{class:!0});var I=_(w);c(G.$$.fragment,I),Le=n(I),ue=h(I,"P",{"data-svelte-h":!0}),S(ue)!=="svelte-19l1i8r"&&(ue.textContent=nt),Re=n(I),de=h(I,"P",{"data-svelte-h":!0}),S(de)!=="svelte-6wlmqi"&&(de.textContent=rt),Xe=n(I),c(j.$$.fragment,I),I.forEach(a),ke=n(e),c(B.$$.fragment,e),xe=n(e),k=h(e,"DIV",{class:!0});var W=_(k);c(F.$$.fragment,W),Qe=n(W),fe=h(W,"P",{"data-svelte-h":!0}),S(fe)!=="svelte-2spxi2"&&(fe.textContent=it),Ye=n(W),c(A.$$.fragment,W),W.forEach(a),Ie=n(e),c(Z.$$.fragment,e),Ce=n(e),N=h(e,"DIV",{class:!0});var be=_(N);c(H.$$.fragment,be),be.forEach(a),Se=n(e),c(L.$$.fragment,e),Ue=n(e),R=h(e,"DIV",{class:!0});var ct=_(R);c(X.$$.fragment,ct),ct.forEach(a),We=n(e),c(Q.$$.fragment,e),Je=n(e),Y=h(e,"DIV",{class:!0});var gt=_(Y);c(z.$$.fragment,gt),gt.forEach(a),je=n(e),c(K.$$.fragment,e),Ae=n(e),O=h(e,"DIV",{class:!0});var pt=_(O);c(ee.$$.fragment,pt),pt.forEach(a),De=n(e),c(te.$$.fragment,e),Ee=n(e),ae=h(e,"DIV",{class:!0});var ut=_(ae);c(se.$$.fragment,ut),ut.forEach(a),Ve=n(e),c(oe.$$.fragment,e),qe=n(e),le=h(e,"DIV",{class:!0});var dt=_(le);c(ne.$$.fragment,dt),dt.forEach(a),Pe=n(e),c(re.$$.fragment,e),Ge=n(e),ie=h(e,"DIV",{class:!0});var ft=_(ie);c(me.$$.fragment,ft),ft.forEach(a),Be=n(e),c(ce.$$.fragment,e),Fe=n(e),x=h(e,"DIV",{class:!0});var $e=_(x);c(ge.$$.fragment,$e),ze=n($e),he=h($e,"P",{"data-svelte-h":!0}),S(he)!=="svelte-15mnjbs"&&(he.textContent=mt),Ke=n($e),c(D.$$.fragment,$e),$e.forEach(a),Ze=n(e),c(pe.$$.fragment,e),Ne=n(e),Te=h(e,"P",{}),_(Te).forEach(a),this.h()},h(){M(r,"name","hf:doc:metadata"),M(r,"content",xt),M(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,t){v(document.head,r),s(e,y,t),s(e,T,t),s(e,i,t),g($,e,t),s(e,o,t),s(e,b,t),s(e,ye,t),s(e,E,t),s(e,we,t),s(e,V,t),s(e,_e,t),s(e,q,t),s(e,Me,t),g(P,e,t),s(e,ve,t),s(e,w,t),g(G,w,null),v(w,Le),v(w,ue),v(w,Re),v(w,de),v(w,Xe),g(j,w,null),s(e,ke,t),g(B,e,t),s(e,xe,t),s(e,k,t),g(F,k,null),v(k,Qe),v(k,fe),v(k,Ye),g(A,k,null),s(e,Ie,t),g(Z,e,t),s(e,Ce,t),s(e,N,t),g(H,N,null),s(e,Se,t),g(L,e,t),s(e,Ue,t),s(e,R,t),g(X,R,null),s(e,We,t),g(Q,e,t),s(e,Je,t),s(e,Y,t),g(z,Y,null),s(e,je,t),g(K,e,t),s(e,Ae,t),s(e,O,t),g(ee,O,null),s(e,De,t),g(te,e,t),s(e,Ee,t),s(e,ae,t),g(se,ae,null),s(e,Ve,t),g(oe,e,t),s(e,qe,t),s(e,le,t),g(ne,le,null),s(e,Pe,t),g(re,e,t),s(e,Ge,t),s(e,ie,t),g(me,ie,null),s(e,Be,t),g(ce,e,t),s(e,Fe,t),s(e,x,t),g(ge,x,null),v(x,ze),v(x,he),v(x,Ke),g(D,x,null),s(e,Ze,t),g(pe,e,t),s(e,Ne,t),s(e,Te,t),He=!0},p(e,[t]){const I={};t&2&&(I.$$scope={dirty:t,ctx:e}),j.$set(I);const W={};t&2&&(W.$$scope={dirty:t,ctx:e}),A.$set(W);const be={};t&2&&(be.$$scope={dirty:t,ctx:e}),D.$set(be)},i(e){He||(p($.$$.fragment,e),p(P.$$.fragment,e),p(G.$$.fragment,e),p(j.$$.fragment,e),p(B.$$.fragment,e),p(F.$$.fragment,e),p(A.$$.fragment,e),p(Z.$$.fragment,e),p(H.$$.fragment,e),p(L.$$.fragment,e),p(X.$$.fragment,e),p(Q.$$.fragment,e),p(z.$$.fragment,e),p(K.$$.fragment,e),p(ee.$$.fragment,e),p(te.$$.fragment,e),p(se.$$.fragment,e),p(oe.$$.fragment,e),p(ne.$$.fragment,e),p(re.$$.fragment,e),p(me.$$.fragment,e),p(ce.$$.fragment,e),p(ge.$$.fragment,e),p(D.$$.fragment,e),p(pe.$$.fragment,e),He=!0)},o(e){u($.$$.fragment,e),u(P.$$.fragment,e),u(G.$$.fragment,e),u(j.$$.fragment,e),u(B.$$.fragment,e),u(F.$$.fragment,e),u(A.$$.fragment,e),u(Z.$$.fragment,e),u(H.$$.fragment,e),u(L.$$.fragment,e),u(X.$$.fragment,e),u(Q.$$.fragment,e),u(z.$$.fragment,e),u(K.$$.fragment,e),u(ee.$$.fragment,e),u(te.$$.fragment,e),u(se.$$.fragment,e),u(oe.$$.fragment,e),u(ne.$$.fragment,e),u(re.$$.fragment,e),u(me.$$.fragment,e),u(ce.$$.fragment,e),u(ge.$$.fragment,e),u(D.$$.fragment,e),u(pe.$$.fragment,e),He=!1},d(e){e&&(a(y),a(T),a(i),a(o),a(b),a(ye),a(E),a(we),a(V),a(_e),a(q),a(Me),a(ve),a(w),a(ke),a(xe),a(k),a(Ie),a(Ce),a(N),a(Se),a(Ue),a(R),a(We),a(Je),a(Y),a(je),a(Ae),a(O),a(De),a(Ee),a(ae),a(Ve),a(qe),a(le),a(Pe),a(Ge),a(ie),a(Be),a(Fe),a(x),a(Ze),a(Ne),a(Te)),a(r),d($,e),d(P,e),d(G),d(j),d(B,e),d(F),d(A),d(Z,e),d(H),d(L,e),d(X),d(Q,e),d(z),d(K,e),d(ee),d(te,e),d(se),d(oe,e),d(ne),d(re,e),d(me),d(ce,e),d(ge),d(D),d(pe,e)}}}const xt='{"title":"Built-in Tools","local":"built-in-tools","sections":[{"title":"ApiWebSearchTool","local":"smolagents.ApiWebSearchTool","sections":[],"depth":2},{"title":"DuckDuckGoSearchTool","local":"smolagents.DuckDuckGoSearchTool","sections":[],"depth":2},{"title":"FinalAnswerTool","local":"smolagents.FinalAnswerTool","sections":[],"depth":2},{"title":"GoogleSearchTool","local":"smolagents.GoogleSearchTool","sections":[],"depth":2},{"title":"PythonInterpreterTool","local":"smolagents.PythonInterpreterTool","sections":[],"depth":2},{"title":"SpeechToTextTool","local":"smolagents.SpeechToTextTool","sections":[],"depth":2},{"title":"UserInputTool","local":"smolagents.UserInputTool","sections":[],"depth":2},{"title":"VisitWebpageTool","local":"smolagents.VisitWebpageTool","sections":[],"depth":2},{"title":"WebSearchTool","local":"smolagents.WebSearchTool","sections":[],"depth":2},{"title":"WikipediaSearchTool","local":"smolagents.WikipediaSearchTool","sections":[],"depth":2}],"depth":1}';function It(J){return $t(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class jt extends Tt{constructor(r){super(),bt(this,r,It,kt,ht,{})}}export{jt as component};
