import{s as Tt,o as bt,n as at}from"../chunks/scheduler.3d32dc09.js";import{S as yt,i as wt,e as f,s as l,c as i,h as vt,a as h,d as a,b as n,f as v,g as m,j as S,k as _,l as M,m as s,n as g,t as c,o as p,p as u}from"../chunks/index.f9718211.js";import{C as _t,H as C,E as Mt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.51c38499.js";import{D as U,E as tt}from"../chunks/ExampleCodeBlock.9d054956.js";import{C as st}from"../chunks/CodeBlock.ab331c21.js";function xt(J){let r,y="Examples:",T,d,$;return d=new st({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(),i(d.$$.fragment)},l(o){r=h(o,"P",{"data-svelte-h":!0}),S(r)!=="svelte-kvfsh7"&&(r.textContent=y),T=n(o),m(d.$$.fragment,o)},m(o,b){s(o,r,b),s(o,T,b),g(d,o,b),$=!0},p:at,i(o){$||(c(d.$$.fragment,o),$=!0)},o(o){p(d.$$.fragment,o),$=!1},d(o){o&&(a(r),a(T)),u(d,o)}}}function kt(J){let r,y="Examples:",T,d,$;return d=new st({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(),i(d.$$.fragment)},l(o){r=h(o,"P",{"data-svelte-h":!0}),S(r)!=="svelte-kvfsh7"&&(r.textContent=y),T=n(o),m(d.$$.fragment,o)},m(o,b){s(o,r,b),s(o,T,b),g(d,o,b),$=!0},p:at,i(o){$||(c(d.$$.fragment,o),$=!0)},o(o){p(d.$$.fragment,o),$=!1},d(o){o&&(a(r),a(T)),u(d,o)}}}function It(J){let r,y="Example:",T,d,$;return d=new st({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(),i(d.$$.fragment)},l(o){r=h(o,"P",{"data-svelte-h":!0}),S(r)!=="svelte-11lpom8"&&(r.textContent=y),T=n(o),m(d.$$.fragment,o)},m(o,b){s(o,r,b),s(o,T,b),g(d,o,b),$=!0},p:at,i(o){$||(c(d.$$.fragment,o),$=!0)},o(o){p(d.$$.fragment,o),$=!1},d(o){o&&(a(r),a(T)),u(d,o)}}}function Ct(J){let r,y,T,d,$,o,b,we,q,ot="Ready-to-use tool implementations provided by the <code>smolagents</code> library.",ve,E,lt=`These built-in tools are concrete implementations of the <a href="/docs/smolagents/v1.22.0/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.`,_e,V,nt="The built-in tools can be categorized by their primary functions:",Me,P,rt='<li><strong>Information Retrieval</strong>: Search and retrieve information from the web and specific knowledge sources.<ul><li><a href="/docs/smolagents/v1.22.0/en/reference/default_tools#smolagents.ApiWebSearchTool">ApiWebSearchTool</a></li> <li><a href="/docs/smolagents/v1.22.0/en/reference/default_tools#smolagents.DuckDuckGoSearchTool">DuckDuckGoSearchTool</a></li> <li><a href="/docs/smolagents/v1.22.0/en/reference/default_tools#smolagents.GoogleSearchTool">GoogleSearchTool</a></li> <li><a href="/docs/smolagents/v1.22.0/en/reference/default_tools#smolagents.WebSearchTool">WebSearchTool</a></li> <li><a href="/docs/smolagents/v1.22.0/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/v1.22.0/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/v1.22.0/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/v1.22.0/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/v1.22.0/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/v1.22.0/en/reference/default_tools#smolagents.FinalAnswerTool">FinalAnswerTool</a>: Conclude agent workflow with final response.</li></ul></li>',xe,G,ke,w,B,Xe,de,it=`Web search tool that performs API-based searches.
By default, it uses the Brave Search API.`,Qe,fe,mt=`This tool implements a rate limiting mechanism to ensure compliance with API usage policies.
By default, it limits requests to 1 query per second.`,Ye,j,Ie,F,Ce,x,Z,ze,he,gt="Web search tool that performs searches using the DuckDuckGo search engine.",Ke,A,Se,N,Ue,L,H,We,R,Je,X,Q,je,Y,Ae,z,K,De,O,qe,ee,te,Ee,ae,Ve,se,oe,Pe,le,Ge,ne,re,Be,ie,Fe,me,ge,Ze,ce,Ne,k,pe,Oe,$e,ct="Search Wikipedia and return the summary or full text of the requested article, along with the page URL.",et,D,Le,ue,He,be,Re;return $=new _t({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),b=new C({props:{title:"Built-in Tools",local:"built-in-tools",headingTag:"h1"}}),G=new C({props:{title:"ApiWebSearchTool",local:"smolagents.ApiWebSearchTool",headingTag:"h2"}}),B=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/v1.22.0/src/smolagents/default_tools.py#L246"}}),j=new tt({props:{anchor:"smolagents.ApiWebSearchTool.example",$$slots:{default:[xt]},$$scope:{ctx:J}}}),F=new C({props:{title:"DuckDuckGoSearchTool",local:"smolagents.DuckDuckGoSearchTool",headingTag:"h2"}}),Z=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/v1.22.0/src/smolagents/default_tools.py#L101"}}),A=new tt({props:{anchor:"smolagents.DuckDuckGoSearchTool.example",$$slots:{default:[kt]},$$scope:{ctx:J}}}),N=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/v1.22.0/src/smolagents/default_tools.py#L80"}}),R=new C({props:{title:"GoogleSearchTool",local:"smolagents.GoogleSearchTool",headingTag:"h2"}}),Q=new U({props:{name:"class smolagents.GoogleSearchTool",anchor:"smolagents.GoogleSearchTool",parameters:[{name:"provider",val:": str = 'serpapi'"}],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/default_tools.py#L159"}}),Y=new C({props:{title:"PythonInterpreterTool",local:"smolagents.PythonInterpreterTool",headingTag:"h2"}}),K=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/v1.22.0/src/smolagents/default_tools.py#L38"}}),O=new C({props:{title:"SpeechToTextTool",local:"smolagents.SpeechToTextTool",headingTag:"h2"}}),te=new U({props:{name:"class smolagents.SpeechToTextTool",anchor:"smolagents.SpeechToTextTool",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/default_tools.py#L606"}}),ae=new C({props:{title:"UserInputTool",local:"smolagents.UserInputTool",headingTag:"h2"}}),oe=new U({props:{name:"class smolagents.UserInputTool",anchor:"smolagents.UserInputTool",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/default_tools.py#L90"}}),le=new C({props:{title:"VisitWebpageTool",local:"smolagents.VisitWebpageTool",headingTag:"h2"}}),re=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/v1.22.0/src/smolagents/default_tools.py#L451"}}),ie=new C({props:{title:"WebSearchTool",local:"smolagents.WebSearchTool",headingTag:"h2"}}),ge=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/v1.22.0/src/smolagents/default_tools.py#L339"}}),ce=new C({props:{title:"WikipediaSearchTool",local:"smolagents.WikipediaSearchTool",headingTag:"h2"}}),pe=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/v1.22.0/src/smolagents/default_tools.py#L507"}}),D=new tt({props:{anchor:"smolagents.WikipediaSearchTool.example",$$slots:{default:[It]},$$scope:{ctx:J}}}),ue=new Mt({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"),d=l(),i($.$$.fragment),o=l(),i(b.$$.fragment),we=l(),q=f("p"),q.innerHTML=ot,ve=l(),E=f("p"),E.innerHTML=lt,_e=l(),V=f("p"),V.textContent=nt,Me=l(),P=f("ul"),P.innerHTML=rt,xe=l(),i(G.$$.fragment),ke=l(),w=f("div"),i(B.$$.fragment),Xe=l(),de=f("p"),de.textContent=it,Qe=l(),fe=f("p"),fe.textContent=mt,Ye=l(),i(j.$$.fragment),Ie=l(),i(F.$$.fragment),Ce=l(),x=f("div"),i(Z.$$.fragment),ze=l(),he=f("p"),he.textContent=gt,Ke=l(),i(A.$$.fragment),Se=l(),i(N.$$.fragment),Ue=l(),L=f("div"),i(H.$$.fragment),We=l(),i(R.$$.fragment),Je=l(),X=f("div"),i(Q.$$.fragment),je=l(),i(Y.$$.fragment),Ae=l(),z=f("div"),i(K.$$.fragment),De=l(),i(O.$$.fragment),qe=l(),ee=f("div"),i(te.$$.fragment),Ee=l(),i(ae.$$.fragment),Ve=l(),se=f("div"),i(oe.$$.fragment),Pe=l(),i(le.$$.fragment),Ge=l(),ne=f("div"),i(re.$$.fragment),Be=l(),i(ie.$$.fragment),Fe=l(),me=f("div"),i(ge.$$.fragment),Ze=l(),i(ce.$$.fragment),Ne=l(),k=f("div"),i(pe.$$.fragment),Oe=l(),$e=f("p"),$e.textContent=ct,et=l(),i(D.$$.fragment),Le=l(),i(ue.$$.fragment),He=l(),be=f("p"),this.h()},l(e){const t=vt("svelte-u9bgzb",document.head);r=h(t,"META",{name:!0,content:!0}),t.forEach(a),y=n(e),T=h(e,"P",{}),v(T).forEach(a),d=n(e),m($.$$.fragment,e),o=n(e),m(b.$$.fragment,e),we=n(e),q=h(e,"P",{"data-svelte-h":!0}),S(q)!=="svelte-1v5xf2u"&&(q.innerHTML=ot),ve=n(e),E=h(e,"P",{"data-svelte-h":!0}),S(E)!=="svelte-1l3gj6s"&&(E.innerHTML=lt),_e=n(e),V=h(e,"P",{"data-svelte-h":!0}),S(V)!=="svelte-1nsgdmq"&&(V.textContent=nt),Me=n(e),P=h(e,"UL",{"data-svelte-h":!0}),S(P)!=="svelte-qteg71"&&(P.innerHTML=rt),xe=n(e),m(G.$$.fragment,e),ke=n(e),w=h(e,"DIV",{class:!0});var I=v(w);m(B.$$.fragment,I),Xe=n(I),de=h(I,"P",{"data-svelte-h":!0}),S(de)!=="svelte-19l1i8r"&&(de.textContent=it),Qe=n(I),fe=h(I,"P",{"data-svelte-h":!0}),S(fe)!=="svelte-6wlmqi"&&(fe.textContent=mt),Ye=n(I),m(j.$$.fragment,I),I.forEach(a),Ie=n(e),m(F.$$.fragment,e),Ce=n(e),x=h(e,"DIV",{class:!0});var W=v(x);m(Z.$$.fragment,W),ze=n(W),he=h(W,"P",{"data-svelte-h":!0}),S(he)!=="svelte-2spxi2"&&(he.textContent=gt),Ke=n(W),m(A.$$.fragment,W),W.forEach(a),Se=n(e),m(N.$$.fragment,e),Ue=n(e),L=h(e,"DIV",{class:!0});var ye=v(L);m(H.$$.fragment,ye),ye.forEach(a),We=n(e),m(R.$$.fragment,e),Je=n(e),X=h(e,"DIV",{class:!0});var pt=v(X);m(Q.$$.fragment,pt),pt.forEach(a),je=n(e),m(Y.$$.fragment,e),Ae=n(e),z=h(e,"DIV",{class:!0});var ut=v(z);m(K.$$.fragment,ut),ut.forEach(a),De=n(e),m(O.$$.fragment,e),qe=n(e),ee=h(e,"DIV",{class:!0});var dt=v(ee);m(te.$$.fragment,dt),dt.forEach(a),Ee=n(e),m(ae.$$.fragment,e),Ve=n(e),se=h(e,"DIV",{class:!0});var ft=v(se);m(oe.$$.fragment,ft),ft.forEach(a),Pe=n(e),m(le.$$.fragment,e),Ge=n(e),ne=h(e,"DIV",{class:!0});var ht=v(ne);m(re.$$.fragment,ht),ht.forEach(a),Be=n(e),m(ie.$$.fragment,e),Fe=n(e),me=h(e,"DIV",{class:!0});var $t=v(me);m(ge.$$.fragment,$t),$t.forEach(a),Ze=n(e),m(ce.$$.fragment,e),Ne=n(e),k=h(e,"DIV",{class:!0});var Te=v(k);m(pe.$$.fragment,Te),Oe=n(Te),$e=h(Te,"P",{"data-svelte-h":!0}),S($e)!=="svelte-15mnjbs"&&($e.textContent=ct),et=n(Te),m(D.$$.fragment,Te),Te.forEach(a),Le=n(e),m(ue.$$.fragment,e),He=n(e),be=h(e,"P",{}),v(be).forEach(a),this.h()},h(){_(r,"name","hf:doc:metadata"),_(r,"content",St),_(w,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(x,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(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(e,t){M(document.head,r),s(e,y,t),s(e,T,t),s(e,d,t),g($,e,t),s(e,o,t),g(b,e,t),s(e,we,t),s(e,q,t),s(e,ve,t),s(e,E,t),s(e,_e,t),s(e,V,t),s(e,Me,t),s(e,P,t),s(e,xe,t),g(G,e,t),s(e,ke,t),s(e,w,t),g(B,w,null),M(w,Xe),M(w,de),M(w,Qe),M(w,fe),M(w,Ye),g(j,w,null),s(e,Ie,t),g(F,e,t),s(e,Ce,t),s(e,x,t),g(Z,x,null),M(x,ze),M(x,he),M(x,Ke),g(A,x,null),s(e,Se,t),g(N,e,t),s(e,Ue,t),s(e,L,t),g(H,L,null),s(e,We,t),g(R,e,t),s(e,Je,t),s(e,X,t),g(Q,X,null),s(e,je,t),g(Y,e,t),s(e,Ae,t),s(e,z,t),g(K,z,null),s(e,De,t),g(O,e,t),s(e,qe,t),s(e,ee,t),g(te,ee,null),s(e,Ee,t),g(ae,e,t),s(e,Ve,t),s(e,se,t),g(oe,se,null),s(e,Pe,t),g(le,e,t),s(e,Ge,t),s(e,ne,t),g(re,ne,null),s(e,Be,t),g(ie,e,t),s(e,Fe,t),s(e,me,t),g(ge,me,null),s(e,Ze,t),g(ce,e,t),s(e,Ne,t),s(e,k,t),g(pe,k,null),M(k,Oe),M(k,$e),M(k,et),g(D,k,null),s(e,Le,t),g(ue,e,t),s(e,He,t),s(e,be,t),Re=!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 ye={};t&2&&(ye.$$scope={dirty:t,ctx:e}),D.$set(ye)},i(e){Re||(c($.$$.fragment,e),c(b.$$.fragment,e),c(G.$$.fragment,e),c(B.$$.fragment,e),c(j.$$.fragment,e),c(F.$$.fragment,e),c(Z.$$.fragment,e),c(A.$$.fragment,e),c(N.$$.fragment,e),c(H.$$.fragment,e),c(R.$$.fragment,e),c(Q.$$.fragment,e),c(Y.$$.fragment,e),c(K.$$.fragment,e),c(O.$$.fragment,e),c(te.$$.fragment,e),c(ae.$$.fragment,e),c(oe.$$.fragment,e),c(le.$$.fragment,e),c(re.$$.fragment,e),c(ie.$$.fragment,e),c(ge.$$.fragment,e),c(ce.$$.fragment,e),c(pe.$$.fragment,e),c(D.$$.fragment,e),c(ue.$$.fragment,e),Re=!0)},o(e){p($.$$.fragment,e),p(b.$$.fragment,e),p(G.$$.fragment,e),p(B.$$.fragment,e),p(j.$$.fragment,e),p(F.$$.fragment,e),p(Z.$$.fragment,e),p(A.$$.fragment,e),p(N.$$.fragment,e),p(H.$$.fragment,e),p(R.$$.fragment,e),p(Q.$$.fragment,e),p(Y.$$.fragment,e),p(K.$$.fragment,e),p(O.$$.fragment,e),p(te.$$.fragment,e),p(ae.$$.fragment,e),p(oe.$$.fragment,e),p(le.$$.fragment,e),p(re.$$.fragment,e),p(ie.$$.fragment,e),p(ge.$$.fragment,e),p(ce.$$.fragment,e),p(pe.$$.fragment,e),p(D.$$.fragment,e),p(ue.$$.fragment,e),Re=!1},d(e){e&&(a(y),a(T),a(d),a(o),a(we),a(q),a(ve),a(E),a(_e),a(V),a(Me),a(P),a(xe),a(ke),a(w),a(Ie),a(Ce),a(x),a(Se),a(Ue),a(L),a(We),a(Je),a(X),a(je),a(Ae),a(z),a(De),a(qe),a(ee),a(Ee),a(Ve),a(se),a(Pe),a(Ge),a(ne),a(Be),a(Fe),a(me),a(Ze),a(Ne),a(k),a(Le),a(He),a(be)),a(r),u($,e),u(b,e),u(G,e),u(B),u(j),u(F,e),u(Z),u(A),u(N,e),u(H),u(R,e),u(Q),u(Y,e),u(K),u(O,e),u(te),u(ae,e),u(oe),u(le,e),u(re),u(ie,e),u(ge),u(ce,e),u(pe),u(D),u(ue,e)}}}const St='{"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 Ut(J){return bt(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class qt extends yt{constructor(r){super(),wt(this,r,Ut,Ct,Tt,{})}}export{qt as component};
