import{s as qs,o as Ys,n as X}from"../chunks/scheduler.f6319a2a.js";import{S as Qs,i as Xs,g as i,s as o,r as d,A as zs,h as m,f as s,c as n,j as w,u as g,x as v,k as x,y as t,a as c,v as p,d as u,t as h,w as f}from"../chunks/index.85aa684c.js";import{T as ns}from"../chunks/Tip.3d397a88.js";import{D as j,E as no}from"../chunks/ExampleCodeBlock.ac5a24b2.js";import{C as so}from"../chunks/CodeBlock.3400fc53.js";import{H as U,E as Ks}from"../chunks/getInferenceSnippets.743412b2.js";function Os(I){let l,_="Smolagents एक experimental API है जो किसी भी समय बदल सकता है। एजेंट्स द्वारा लौटाए गए परिणाम भिन्न हो सकते हैं क्योंकि APIs या underlying मॉडल बदलने की संभावना रखते हैं।";return{c(){l=i("p"),l.textContent=_},l($){l=m($,"P",{"data-svelte-h":!0}),v(l)!=="svelte-1f42n0i"&&(l.textContent=_)},m($,b){c($,l,b)},p:X,d($){$&&s(l)}}}function ea(I){let l,_=`Loading a tool means that you’ll download the tool and execute it locally.
ALWAYS inspect the tool you’re downloading before loading it within your runtime, as you would do when
installing a package using pip/npm/apt.`;return{c(){l=i("p"),l.textContent=_},l($){l=m($,"P",{"data-svelte-h":!0}),v(l)!=="svelte-1kcherd"&&(l.textContent=_)},m($,b){c($,l,b)},p:X,d($){$&&s(l)}}}function ta(I){let l,_=`Loading a tool from the Hub means that you’ll download the tool and execute it locally.
ALWAYS inspect the tool you’re downloading before loading it within your runtime, as you would do when
installing a package using pip/npm/apt.`;return{c(){l=i("p"),l.textContent=_},l($){l=m($,"P",{"data-svelte-h":!0}),v(l)!=="svelte-fpk7e5"&&(l.textContent=_)},m($,b){c($,l,b)},p:X,d($){$&&s(l)}}}function oa(I){let l,_="Examples:",$,b,T;return b=new so({props:{code:"aW1hZ2VfZ2VuZXJhdG9yJTIwJTNEJTIwVG9vbC5mcm9tX3NwYWNlKCUwQSUyMCUyMCUyMCUyMHNwYWNlX2lkJTNEJTIyYmxhY2stZm9yZXN0LWxhYnMlMkZGTFVYLjEtc2NobmVsbCUyMiUyQyUwQSUyMCUyMCUyMCUyMG5hbWUlM0QlMjJpbWFnZS1nZW5lcmF0b3IlMjIlMkMlMEElMjAlMjAlMjAlMjBkZXNjcmlwdGlvbiUzRCUyMkdlbmVyYXRlJTIwYW4lMjBpbWFnZSUyMGZyb20lMjBhJTIwcHJvbXB0JTIyJTBBKSUwQWltYWdlJTIwJTNEJTIwaW1hZ2VfZ2VuZXJhdG9yKCUyMkdlbmVyYXRlJTIwYW4lMjBpbWFnZSUyMG9mJTIwYSUyMGNvb2wlMjBzdXJmZXIlMjBpbiUyMFRhaGl0aSUyMik=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>image_generator = Tool.from_space(
<span class="hljs-meta">... </span>    space_id=<span class="hljs-string">&quot;black-forest-labs/FLUX.1-schnell&quot;</span>,
<span class="hljs-meta">... </span>    name=<span class="hljs-string">&quot;image-generator&quot;</span>,
<span class="hljs-meta">... </span>    description=<span class="hljs-string">&quot;Generate an image from a prompt&quot;</span>
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = image_generator(<span class="hljs-string">&quot;Generate an image of a cool surfer in Tahiti&quot;</span>)`,wrap:!1}}),{c(){l=i("p"),l.textContent=_,$=o(),d(b.$$.fragment)},l(r){l=m(r,"P",{"data-svelte-h":!0}),v(l)!=="svelte-kvfsh7"&&(l.textContent=_),$=n(r),g(b.$$.fragment,r)},m(r,M){c(r,l,M),c(r,$,M),p(b,r,M),T=!0},p:X,i(r){T||(u(b.$$.fragment,r),T=!0)},o(r){h(b.$$.fragment,r),T=!1},d(r){r&&(s(l),s($)),f(b,r)}}}function na(I){let l,_;return l=new so({props:{code:"ZmFjZV9zd2FwcGVyJTIwJTNEJTIwVG9vbC5mcm9tX3NwYWNlKCUwQSUyMCUyMCUyMCUyMCUyMnR1YW4yMzA4JTJGZmFjZS1zd2FwJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyZmFjZV9zd2FwcGVyJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyVG9vbCUyMHRoYXQlMjBwdXRzJTIwdGhlJTIwZmFjZSUyMHNob3duJTIwb24lMjB0aGUlMjBmaXJzdCUyMGltYWdlJTIwb24lMjB0aGUlMjBzZWNvbmQlMjBpbWFnZS4lMjBZb3UlMjBjYW4lMjBnaXZlJTIwaXQlMjBwYXRocyUyMHRvJTIwaW1hZ2VzLiUyMiUyQyUwQSklMEFpbWFnZSUyMCUzRCUyMGZhY2Vfc3dhcHBlcignLiUyRmF5bWVyaWMuanBlZyclMkMlMjAnLiUyRnJ1dGguanBnJyk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>face_swapper = Tool.from_space(
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;tuan2308/face-swap&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;face_swapper&quot;</span>,
<span class="hljs-meta">... </span>    <span class="hljs-string">&quot;Tool that puts the face shown on the first image on the second image. You can give it paths to images.&quot;</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>image = face_swapper(<span class="hljs-string">&#x27;./aymeric.jpeg&#x27;</span>, <span class="hljs-string">&#x27;./ruth.jpg&#x27;</span>)`,wrap:!1}}),{c(){d(l.$$.fragment)},l($){g(l.$$.fragment,$)},m($,b){p(l,$,b),_=!0},p:X,i($){_||(u(l.$$.fragment,$),_=!0)},o($){h(l.$$.fragment,$),_=!1},d($){f(l,$)}}}function sa(I){let l,_="Examples:",$,b,T;return b=new so({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(){l=i("p"),l.textContent=_,$=o(),d(b.$$.fragment)},l(r){l=m(r,"P",{"data-svelte-h":!0}),v(l)!=="svelte-kvfsh7"&&(l.textContent=_),$=n(r),g(b.$$.fragment,r)},m(r,M){c(r,l,M),c(r,$,M),p(b,r,M),T=!0},p:X,i(r){T||(u(b.$$.fragment,r),T=!0)},o(r){h(b.$$.fragment,r),T=!1},d(r){r&&(s(l),s($)),f(b,r)}}}function aa(I){let l,_="Example:",$,b,T;return b=new so({props:{code:"ZnJvbSUyMHNtb2xhZ2VudHMlMjBpbXBvcnQlMjBUb29sQ29sbGVjdGlvbiUyQyUyMENvZGVBZ2VudCUwQSUwQWltYWdlX3Rvb2xfY29sbGVjdGlvbiUyMCUzRCUyMFRvb2xDb2xsZWN0aW9uLmZyb21faHViKCUyMmh1Z2dpbmdmYWNlLXRvb2xzJTJGZGlmZnVzaW9uLXRvb2xzLTY2MzBiYjE5YTk0MmMyMzA2YTJjZGI2ZiUyMiklMEFhZ2VudCUyMCUzRCUyMENvZGVBZ2VudCh0b29scyUzRCU1QippbWFnZV90b29sX2NvbGxlY3Rpb24udG9vbHMlNUQlMkMlMjBhZGRfYmFzZV90b29scyUzRFRydWUpJTBBJTBBYWdlbnQucnVuKCUyMlBsZWFzZSUyMGRyYXclMjBtZSUyMGElMjBwaWN0dXJlJTIwb2YlMjByaXZlcnMlMjBhbmQlMjBsYWtlcy4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> ToolCollection, CodeAgent

<span class="hljs-meta">&gt;&gt;&gt; </span>image_tool_collection = ToolCollection.from_hub(<span class="hljs-string">&quot;huggingface-tools/diffusion-tools-6630bb19a942c2306a2cdb6f&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>agent = CodeAgent(tools=[*image_tool_collection.tools], add_base_tools=<span class="hljs-literal">True</span>)

<span class="hljs-meta">&gt;&gt;&gt; </span>agent.run(<span class="hljs-string">&quot;Please draw me a picture of rivers and lakes.&quot;</span>)`,wrap:!1}}),{c(){l=i("p"),l.textContent=_,$=o(),d(b.$$.fragment)},l(r){l=m(r,"P",{"data-svelte-h":!0}),v(l)!=="svelte-11lpom8"&&(l.textContent=_),$=n(r),g(b.$$.fragment,r)},m(r,M){c(r,l,M),c(r,$,M),p(b,r,M),T=!0},p:X,i(r){T||(u(b.$$.fragment,r),T=!0)},o(r){h(b.$$.fragment,r),T=!1},d(r){r&&(s(l),s($)),f(b,r)}}}function la(I){let l,_="Example with a Stdio MCP server:",$,b,T;return b=new so({props:{code:"aW1wb3J0JTIwb3MlMEFmcm9tJTIwc21vbGFnZW50cyUyMGltcG9ydCUyMFRvb2xDb2xsZWN0aW9uJTJDJTIwQ29kZUFnZW50JTJDJTIwSW5mZXJlbmNlQ2xpZW50TW9kZWwlMEFmcm9tJTIwbWNwJTIwaW1wb3J0JTIwU3RkaW9TZXJ2ZXJQYXJhbWV0ZXJzJTBBJTBBbW9kZWwlMjAlM0QlMjBJbmZlcmVuY2VDbGllbnRNb2RlbCgpJTBBJTBBc2VydmVyX3BhcmFtZXRlcnMlMjAlM0QlMjBTdGRpb1NlcnZlclBhcmFtZXRlcnMoJTBBJTIwJTIwJTIwJTIwY29tbWFuZCUzRCUyMnV2eCUyMiUyQyUwQSUyMCUyMCUyMCUyMGFyZ3MlM0QlNUIlMjItLXF1aWV0JTIyJTJDJTIwJTIycHVibWVkbWNwJTQwMC4xLjMlMjIlNUQlMkMlMEElMjAlMjAlMjAlMjBlbnYlM0QlN0IlMjJVVl9QWVRIT04lMjIlM0ElMjAlMjIzLjEyJTIyJTJDJTIwKipvcy5lbnZpcm9uJTdEJTJDJTBBKSUwQSUwQXdpdGglMjBUb29sQ29sbGVjdGlvbi5mcm9tX21jcChzZXJ2ZXJfcGFyYW1ldGVycyUyQyUyMHRydXN0X3JlbW90ZV9jb2RlJTNEVHJ1ZSklMjBhcyUyMHRvb2xfY29sbGVjdGlvbiUzQSUwQSUyMCUyMCUyMCUyMGFnZW50JTIwJTNEJTIwQ29kZUFnZW50KHRvb2xzJTNEJTVCKnRvb2xfY29sbGVjdGlvbi50b29scyU1RCUyQyUyMGFkZF9iYXNlX3Rvb2xzJTNEVHJ1ZSUyQyUyMG1vZGVsJTNEbW9kZWwpJTBBJTIwJTIwJTIwJTIwYWdlbnQucnVuKCUyMlBsZWFzZSUyMGZpbmQlMjBhJTIwcmVtZWR5JTIwZm9yJTIwaGFuZ292ZXIuJTIyKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">import</span> os
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> ToolCollection, CodeAgent, InferenceClientModel
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> mcp <span class="hljs-keyword">import</span> StdioServerParameters

<span class="hljs-meta">&gt;&gt;&gt; </span>model = InferenceClientModel()

<span class="hljs-meta">&gt;&gt;&gt; </span>server_parameters = StdioServerParameters(
<span class="hljs-meta">&gt;&gt;&gt; </span>    command=<span class="hljs-string">&quot;uvx&quot;</span>,
<span class="hljs-meta">&gt;&gt;&gt; </span>    args=[<span class="hljs-string">&quot;--quiet&quot;</span>, <span class="hljs-string">&quot;pubmedmcp@0.1.3&quot;</span>],
<span class="hljs-meta">&gt;&gt;&gt; </span>    env={<span class="hljs-string">&quot;UV_PYTHON&quot;</span>: <span class="hljs-string">&quot;3.12&quot;</span>, **os.environ},
<span class="hljs-meta">&gt;&gt;&gt; </span>)

<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> ToolCollection.from_mcp(server_parameters, trust_remote_code=<span class="hljs-literal">True</span>) <span class="hljs-keyword">as</span> tool_collection:
<span class="hljs-meta">&gt;&gt;&gt; </span>    agent = CodeAgent(tools=[*tool_collection.tools], add_base_tools=<span class="hljs-literal">True</span>, model=model)
<span class="hljs-meta">&gt;&gt;&gt; </span>    agent.run(<span class="hljs-string">&quot;Please find a remedy for hangover.&quot;</span>)`,wrap:!1}}),{c(){l=i("p"),l.textContent=_,$=o(),d(b.$$.fragment)},l(r){l=m(r,"P",{"data-svelte-h":!0}),v(l)!=="svelte-49dhgx"&&(l.textContent=_),$=n(r),g(b.$$.fragment,r)},m(r,M){c(r,l,M),c(r,$,M),p(b,r,M),T=!0},p:X,i(r){T||(u(b.$$.fragment,r),T=!0)},o(r){h(b.$$.fragment,r),T=!1},d(r){r&&(s(l),s($)),f(b,r)}}}function ra(I){let l,_="Example with a Streamable HTTP MCP server:",$,b,T;return b=new so({props:{code:"d2l0aCUyMFRvb2xDb2xsZWN0aW9uLmZyb21fbWNwKCU3QiUyMnVybCUyMiUzQSUyMCUyMmh0dHAlM0ElMkYlMkYxMjcuMC4wLjElM0E4MDAwJTJGbWNwJTIyJTJDJTIwJTIydHJhbnNwb3J0JTIyJTNBJTIwJTIyc3RyZWFtYWJsZS1odHRwJTIyJTdEJTJDJTIwdHJ1c3RfcmVtb3RlX2NvZGUlM0RUcnVlKSUyMGFzJTIwdG9vbF9jb2xsZWN0aW9uJTNBJTBBJTIwJTIwJTIwJTIwYWdlbnQlMjAlM0QlMjBDb2RlQWdlbnQodG9vbHMlM0QlNUIqdG9vbF9jb2xsZWN0aW9uLnRvb2xzJTVEJTJDJTIwYWRkX2Jhc2VfdG9vbHMlM0RUcnVlJTJDJTIwbW9kZWwlM0Rtb2RlbCklMEElMjAlMjAlMjAlMjBhZ2VudC5ydW4oJTIyUGxlYXNlJTIwZmluZCUyMGElMjByZW1lZHklMjBmb3IlMjBoYW5nb3Zlci4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">with</span> ToolCollection.from_mcp({<span class="hljs-string">&quot;url&quot;</span>: <span class="hljs-string">&quot;http://127.0.0.1:8000/mcp&quot;</span>, <span class="hljs-string">&quot;transport&quot;</span>: <span class="hljs-string">&quot;streamable-http&quot;</span>}, trust_remote_code=<span class="hljs-literal">True</span>) <span class="hljs-keyword">as</span> tool_collection:
<span class="hljs-meta">&gt;&gt;&gt; </span>    agent = CodeAgent(tools=[*tool_collection.tools], add_base_tools=<span class="hljs-literal">True</span>, model=model)
<span class="hljs-meta">&gt;&gt;&gt; </span>    agent.run(<span class="hljs-string">&quot;Please find a remedy for hangover.&quot;</span>)`,wrap:!1}}),{c(){l=i("p"),l.textContent=_,$=o(),d(b.$$.fragment)},l(r){l=m(r,"P",{"data-svelte-h":!0}),v(l)!=="svelte-178fndi"&&(l.textContent=_),$=n(r),g(b.$$.fragment,r)},m(r,M){c(r,l,M),c(r,$,M),p(b,r,M),T=!0},p:X,i(r){T||(u(b.$$.fragment,r),T=!0)},o(r){h(b.$$.fragment,r),T=!1},d(r){r&&(s(l),s($)),f(b,r)}}}function ia(I){let l,_,$,b,T,r,M,lo,$e,ss=`एजेंट्स और टूल्स के बारे में अधिक जानने के लिए <a href="../index">introductory guide</a> पढ़ना सुनिश्चित करें।
यह पेज underlying क्लासेज के लिए API docs को शामिल करता है।`,ro,be,io,ve,mo,A,_e,zo,_t,as="Main function to quickly load a tool from the Hub.",Ko,z,co,Te,go,R,ye,Oo,Tt,ls="Convert a function into an instance of a dynamically created Tool subclass.",po,we,uo,y,xe,en,yt,rs=`A base class for the functions used by the agent. Subclass this and implement the <code>forward</code> method as well as the
following class attributes:`,tn,wt,is=`<li><strong>description</strong> (<code>str</code>) — A short description of what your tool does, the inputs it expects and the output(s) it
will return. For instance ‘This is a tool that downloads a file from a <code>url</code>. It takes the <code>url</code> as input, and
returns the text contained in the file’.</li> <li><strong>name</strong> (<code>str</code>) — A performative name that will be used for your tool in the prompt to the agent. For instance
<code>&quot;text-classifier&quot;</code> or <code>&quot;image_generator&quot;</code>.</li> <li><strong>inputs</strong> (<code>Dict[str, Dict[str, Union[str, type, bool]]]</code>) — The dict of modalities expected for the inputs.
It has one <code>type</code>key and a <code>description</code>key.
This is used by <code>launch_gradio_demo</code> or to make a nice space from your tool, and also can be used in the generated
description for your tool.</li> <li><strong>output_type</strong> (<code>type</code>) — The type of the tool output. This is used by <code>launch_gradio_demo</code>
or to make a nice space from your tool, and also can be used in the generated description for your tool.</li>`,on,xt,ms=`You can also override the method <a href="/docs/smolagents/v1.21.0/hi/reference/tools#smolagents.Tool.setup">setup()</a> if your tool has an expensive operation to perform before being
usable (such as loading a model). <a href="/docs/smolagents/v1.21.0/hi/reference/tools#smolagents.Tool.setup">setup()</a> will be called the first time you use your tool, but not at
instantiation.`,nn,K,Ce,sn,Ct,cs="Create tool from a dictionary representation.",an,O,Me,ln,Mt,ds='Creates a <a href="/docs/smolagents/v1.21.0/hi/reference/tools#smolagents.Tool">Tool</a> from a gradio tool.',rn,S,je,mn,jt,gs="Loads a tool defined on the Hub.",cn,ee,dn,te,Ie,gn,It,ps='Creates a <a href="/docs/smolagents/v1.21.0/hi/reference/tools#smolagents.Tool">Tool</a> from a langchain tool.',pn,L,ke,un,kt,us='Creates a <a href="/docs/smolagents/v1.21.0/hi/reference/tools#smolagents.Tool">Tool</a> from a Space given its id on the Hub.',hn,oe,fn,ne,$n,se,Je,bn,Jt,hs="Upload the tool to the Hub.",vn,B,Ue,_n,Ut,fs=`Saves the relevant code files for your tool so it can be pushed to the Hub. This will copy the code of your
tool in <code>output_dir</code> as well as autogenerate:`,Tn,Zt,$s=`<li>a <code>{tool_file_name}.py</code> file containing the logic for your tool.
If you pass <code>make_gradio_app=True</code>, this will also write:</li> <li>an <code>app.py</code> file providing a UI for your tool when it is exported to a Space with <code>tool.push_to_hub()</code></li> <li>a <code>requirements.txt</code> containing the names of the modules used by your tool (as detected when inspecting its
code)</li>`,yn,ae,Ze,wn,Wt,bs=`Overwrite this method here for any operation that is expensive and needs to be executed before you start using
your tool. Such as loading a big model.`,xn,le,We,Cn,Vt,vs="Returns a dictionary representing the tool",ho,Ve,fo,F,De,Mn,Dt,_s=`Launches a gradio demo for a tool. The corresponding tool class needs to properly implement the class attributes
<code>inputs</code> and <code>output_type</code>.`,$o,Le,bo,Pe,vo,Ae,Ge,_o,He,To,G,Se,jn,Lt,Ts="Web search tool that performs searches using the DuckDuckGo search engine.",In,re,yo,Be,wo,Ee,Ne,xo,Re,Co,Fe,qe,Mo,Ye,jo,k,Qe,kn,Pt,ys="Tool collections enable loading a collection of tools in the agent’s toolbox.",Jn,At,ws="Collections can be loaded from a collection in the Hub or from an MCP server, see:",Un,Gt,xs='<li><a href="/docs/smolagents/v1.21.0/hi/reference/tools#smolagents.ToolCollection.from_hub">ToolCollection.from_hub()</a></li> <li><a href="/docs/smolagents/v1.21.0/hi/reference/tools#smolagents.ToolCollection.from_mcp">ToolCollection.from_mcp()</a></li>',Zn,Ht,Cs='For example and usage, see: <a href="/docs/smolagents/v1.21.0/hi/reference/tools#smolagents.ToolCollection.from_hub">ToolCollection.from_hub()</a> and <a href="/docs/smolagents/v1.21.0/hi/reference/tools#smolagents.ToolCollection.from_mcp">ToolCollection.from_mcp()</a>',Wn,W,Xe,Vn,St,Ms="Loads a tool collection from the Hub.",Dn,Bt,js="it adds a collection of tools from all Spaces in the collection to the agent’s toolbox",Ln,Et,Is=`<p>[!NOTE]
Only Spaces will be fetched, so you can feel free to add models and datasets to your collection if you’d
like for this collection to showcase them.</p>`,Pn,ie,An,J,ze,Gn,Nt,ks="Automatically load a tool collection from an MCP server.",Hn,Rt,Js=`This method supports Stdio, Streamable HTTP, and legacy HTTP+SSE MCP servers. Look at the <code>server_parameters</code>
argument for more details on how to connect to each MCP server.`,Sn,Ft,Us=`Note: a separate thread will be spawned to run an asyncio event loop handling
the MCP server.`,Bn,me,En,ce,Io,Ke,ko,Oe,Zs=`एजेंट्स टूल्स के बीच किसी भी प्रकार की ऑब्जेक्ट को संभाल सकते हैं; टूल्स, पूरी तरह से मल्टीमोडल होने के कारण, टेक्स्ट, इमेज, ऑडियो, वीडियो सहित अन्य प्रकारों को स्वीकार और रिटर्न कर सकते हैं।
टूल्स के बीच अनुकूलता बढ़ाने के साथ-साथ इन रिटर्न्स को ipython (jupyter, colab, ipython notebooks, …) में सही ढंग से रेंडर करने के लिए, हम इन टाइप्स के आसपास रैपर क्लासेज को लागू करते हैं।`,Jo,et,Ws=`रैप किए गए ऑब्जेक्ट्स को प्रारंभ में जैसा व्यवहार करना चाहिए वैसा ही करना जारी रखना चाहिए; एक टेक्स्ट ऑब्जेक्ट को अभी भी स्ट्रिंग की तरह व्यवहार करना चाहिए|
एक इमेज ऑब्जेक्ट को अभी भी <code>PIL.Image</code> की तरह व्यवहार करना चाहिए।`,Uo,tt,Vs="इन टाइप्स के तीन विशिष्ट उद्देश्य हैं:",Zo,ot,Ds="<li>टाइप पर <code>to_raw</code> को कॉल करने से अंतर्निहित ऑब्जेक्ट रिटर्न होना चाहिए</li> <li>टाइप पर <code>to_string</code> को कॉल करने से ऑब्जेक्ट को स्ट्रिंग के रूप में रिटर्न होना चाहिए: वह <code>AgentText</code> के मामले में स्ट्रिंग हो सकती है लेकिन अन्य उदाहरणों में ऑब्जेक्ट के सीरियलाइज्ड वर्जन का पाथ होगा</li> <li>इसे एक ipython kernel में प्रदर्शित करने पर ऑब्जेक्ट को सही ढंग से प्रदर्शित करना चाहिए</li>",Wo,nt,Vo,q,st,Nn,qt,Ls="Text type returned by the agent. Behaves as a string.",Do,at,Lo,Z,lt,Rn,Yt,Ps="Image type returned by the agent. Behaves as a PIL.Image.Image.",Fn,de,rt,qn,Qt,As="Saves the image to a file.",Yn,ge,it,Qn,Xt,Gs="Returns the “raw” version of that object. In the case of an AgentImage, it is a PIL.Image.Image.",Xn,pe,mt,zn,zt,Hs=`Returns the stringified version of that object. In the case of an AgentImage, it is a path to the serialized
version of the image.`,Po,ct,Ao,D,dt,Kn,Kt,Ss="Audio type returned by the agent.",On,ue,gt,es,Ot,Bs="Returns the “raw” version of that object. It is a <code>torch.Tensor</code> object.",ts,he,pt,os,eo,Es=`Returns the stringified version of that object. In the case of an AgentAudio, it is a path to the serialized
version of the audio.`,Go,ut,Ho,ao,So;return T=new U({props:{title:"Tools",local:"tools",headingTag:"h1"}}),M=new ns({props:{warning:!0,$$slots:{default:[Os]},$$scope:{ctx:I}}}),be=new U({props:{title:"Tools",local:"tools",headingTag:"h2"}}),ve=new U({props:{title:"load_tool",local:"smolagents.load_tool",headingTag:"h3"}}),_e=new j({props:{name:"smolagents.load_tool",anchor:"smolagents.load_tool",parameters:[{name:"repo_id",val:""},{name:"model_repo_id",val:": str | None = None"},{name:"token",val:": str | None = None"},{name:"trust_remote_code",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.load_tool.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
Space repo ID of a tool on the Hub.`,name:"repo_id"},{anchor:"smolagents.load_tool.model_repo_id",description:`<strong>model_repo_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Use this argument to use a different model than the default one for the tool you selected.`,name:"model_repo_id"},{anchor:"smolagents.load_tool.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to identify you on hf.co. If unset, will use the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"smolagents.load_tool.trust_remote_code",description:`<strong>trust_remote_code</strong> (<code>bool</code>, <em>optional</em>, defaults to False) &#x2014;
This needs to be accepted in order to load a tool from Hub.`,name:"trust_remote_code"},{anchor:"smolagents.load_tool.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Additional keyword arguments that will be split in two: all arguments relevant to the Hub (such as
<code>cache_dir</code>, <code>revision</code>, <code>subfolder</code>) will be used when downloading the files for your tool, and the others
will be passed along to its init.`,name:"kwargs"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L791"}}),z=new ns({props:{warning:!0,$$slots:{default:[ea]},$$scope:{ctx:I}}}),Te=new U({props:{title:"tool",local:"smolagents.tool",headingTag:"h3"}}),ye=new j({props:{name:"smolagents.tool",anchor:"smolagents.tool",parameters:[{name:"tool_function",val:": Callable"}],parametersDescription:[{anchor:"smolagents.tool.tool_function",description:`<strong>tool_function</strong> (<code>Callable</code>) &#x2014; Function to convert into a Tool subclass.
Should have type hints for each input and a type hint for the output.
Should also have a docstring including the description of the function
and an &#x2018;Args:&#x2019; part where each argument is described.`,name:"tool_function"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L985"}}),we=new U({props:{title:"Tool",local:"smolagents.Tool",headingTag:"h3"}}),xe=new j({props:{name:"class smolagents.Tool",anchor:"smolagents.Tool",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L106"}}),Ce=new j({props:{name:"from_dict",anchor:"smolagents.Tool.from_dict",parameters:[{name:"tool_dict",val:": dict[str, Any]"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.Tool.from_dict.tool_dict",description:"<strong>tool_dict</strong> (<code>dict[str, Any]</code>) &#x2014; Dictionary representation of the tool.",name:"tool_dict"},{anchor:"smolagents.Tool.from_dict.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments to pass to the tool&#x2019;s constructor.",name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L329",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Tool object.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>Tool</code></p>
`}}),Me=new j({props:{name:"from_gradio",anchor:"smolagents.Tool.from_gradio",parameters:[{name:"gradio_tool",val:""}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L692"}}),je=new j({props:{name:"from_hub",anchor:"smolagents.Tool.from_hub",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": str | None = None"},{name:"trust_remote_code",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.Tool.from_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the Space repo on the Hub where your tool is defined.`,name:"repo_id"},{anchor:"smolagents.Tool.from_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to identify you on hf.co. If unset, will use the token generated when running
<code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"smolagents.Tool.from_hub.trust_remote_code(str,",description:`<strong>trust_remote_code(<code>str</code>,</strong> <em>optional</em>, defaults to False) &#x2014;
This flags marks that you understand the risk of running remote code and that you trust this tool.
If not setting this to True, loading the tool from Hub will fail.`,name:"trust_remote_code(str,"},{anchor:"smolagents.Tool.from_hub.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Additional keyword arguments that will be split in two: all arguments relevant to the Hub (such as
<code>cache_dir</code>, <code>revision</code>, <code>subfolder</code>) will be used when downloading the files for your tool, and the
others will be passed along to its init.`,name:"kwargs"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L471"}}),ee=new ns({props:{warning:!0,$$slots:{default:[ta]},$$scope:{ctx:I}}}),Ie=new j({props:{name:"from_langchain",anchor:"smolagents.Tool.from_langchain",parameters:[{name:"langchain_tool",val:""}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L713"}}),ke=new j({props:{name:"from_space",anchor:"smolagents.Tool.from_space",parameters:[{name:"space_id",val:": str"},{name:"name",val:": str"},{name:"description",val:": str"},{name:"api_name",val:": str | None = None"},{name:"token",val:": str | None = None"}],parametersDescription:[{anchor:"smolagents.Tool.from_space.space_id",description:`<strong>space_id</strong> (<code>str</code>) &#x2014;
The id of the Space on the Hub.`,name:"space_id"},{anchor:"smolagents.Tool.from_space.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The name of the tool.`,name:"name"},{anchor:"smolagents.Tool.from_space.description",description:`<strong>description</strong> (<code>str</code>) &#x2014;
The description of the tool.`,name:"description"},{anchor:"smolagents.Tool.from_space.api_name",description:`<strong>api_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The specific api_name to use, if the space has several tabs. If not precised, will default to the first available api.`,name:"api_name"},{anchor:"smolagents.Tool.from_space.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Add your token to access private spaces or increase your GPU quotas.`,name:"token"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L550",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>The Space, as a tool.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><a href="/docs/smolagents/v1.21.0/hi/reference/tools#smolagents.Tool">Tool</a></p>
`}}),oe=new no({props:{anchor:"smolagents.Tool.from_space.example",$$slots:{default:[oa]},$$scope:{ctx:I}}}),ne=new no({props:{anchor:"smolagents.Tool.from_space.example-2",$$slots:{default:[na]},$$scope:{ctx:I}}}),Je=new j({props:{name:"push_to_hub",anchor:"smolagents.Tool.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"commit_message",val:": str = 'Upload tool'"},{name:"private",val:": bool | None = None"},{name:"token",val:": bool | str | None = None"},{name:"create_pr",val:": bool = False"}],parametersDescription:[{anchor:"smolagents.Tool.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your tool to. It should contain your organization name when
pushing to a given organization.`,name:"repo_id"},{anchor:"smolagents.Tool.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;Upload tool&quot;</code>) &#x2014;
Message to commit while pushing.`,name:"commit_message"},{anchor:"smolagents.Tool.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to make the repo private. If <code>None</code> (default), the repo will be public unless the organization&#x2019;s default is private. This value is ignored if the repo already exists.`,name:"private"},{anchor:"smolagents.Tool.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If unset, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"smolagents.Tool.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to create a PR with the uploaded files or directly commit.`,name:"create_pr"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L376"}}),Ue=new j({props:{name:"save",anchor:"smolagents.Tool.save",parameters:[{name:"output_dir",val:": str | Path"},{name:"tool_file_name",val:": str = 'tool'"},{name:"make_gradio_app",val:": bool = True"}],parametersDescription:[{anchor:"smolagents.Tool.save.output_dir",description:"<strong>output_dir</strong> (<code>str</code> or <code>Path</code>) &#x2014; The folder in which you want to save your tool.",name:"output_dir"},{anchor:"smolagents.Tool.save.tool_file_name",description:"<strong>tool_file_name</strong> (<code>str</code>, <em>optional</em>) &#x2014; The file name in which you want to save your tool.",name:"tool_file_name"},{anchor:"smolagents.Tool.save.make_gradio_app",description:"<strong>make_gradio_app</strong> (<code>bool</code>, <em>optional</em>, defaults to True) &#x2014; Whether to also export a <code>requirements.txt</code> file and Gradio UI.",name:"make_gradio_app"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L345"}}),Ze=new j({props:{name:"setup",anchor:"smolagents.Tool.setup",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L241"}}),We=new j({props:{name:"to_dict",anchor:"smolagents.Tool.to_dict",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L264"}}),Ve=new U({props:{title:"launch_gradio_demo",local:"smolagents.launch_gradio_demo",headingTag:"h3"}}),De=new j({props:{name:"smolagents.launch_gradio_demo",anchor:"smolagents.launch_gradio_demo",parameters:[{name:"tool",val:": Tool"}],parametersDescription:[{anchor:"smolagents.launch_gradio_demo.tool",description:"<strong>tool</strong> (<code>Tool</code>) &#x2014; The tool for which to launch the demo.",name:"tool"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L745"}}),Le=new U({props:{title:"Default Tools",local:"default-tools",headingTag:"h2"}}),Pe=new U({props:{title:"PythonInterpreterTool",local:"smolagents.PythonInterpreterTool",headingTag:"h3"}}),Ge=new j({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.21.0/src/smolagents/default_tools.py#L38"}}),He=new U({props:{title:"DuckDuckGoSearchTool",local:"smolagents.DuckDuckGoSearchTool",headingTag:"h3"}}),Se=new j({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.21.0/src/smolagents/default_tools.py#L101"}}),re=new no({props:{anchor:"smolagents.DuckDuckGoSearchTool.example",$$slots:{default:[sa]},$$scope:{ctx:I}}}),Be=new U({props:{title:"VisitWebpageTool",local:"smolagents.VisitWebpageTool",headingTag:"h3"}}),Ne=new j({props:{name:"class smolagents.VisitWebpageTool",anchor:"smolagents.VisitWebpageTool",parameters:[{name:"max_output_length",val:": int = 40000"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/default_tools.py#L451"}}),Re=new U({props:{title:"UserInputTool",local:"smolagents.UserInputTool",headingTag:"h3"}}),qe=new j({props:{name:"class smolagents.UserInputTool",anchor:"smolagents.UserInputTool",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/default_tools.py#L90"}}),Ye=new U({props:{title:"ToolCollection",local:"smolagents.ToolCollection",headingTag:"h2"}}),Qe=new j({props:{name:"class smolagents.ToolCollection",anchor:"smolagents.ToolCollection",parameters:[{name:"tools",val:": list[Tool]"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L846"}}),Xe=new j({props:{name:"from_hub",anchor:"smolagents.ToolCollection.from_hub",parameters:[{name:"collection_slug",val:": str"},{name:"token",val:": str | None = None"},{name:"trust_remote_code",val:": bool = False"}],parametersDescription:[{anchor:"smolagents.ToolCollection.from_hub.collection_slug",description:"<strong>collection_slug</strong> (str) &#x2014; The collection slug referencing the collection.",name:"collection_slug"},{anchor:"smolagents.ToolCollection.from_hub.token",description:"<strong>token</strong> (str, <em>optional</em>) &#x2014; The authentication token if the collection is private.",name:"token"},{anchor:"smolagents.ToolCollection.from_hub.trust_remote_code",description:"<strong>trust_remote_code</strong> (bool, <em>optional</em>, defaults to False) &#x2014; Whether to trust the remote code.",name:"trust_remote_code"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L860",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A tool collection instance loaded with the tools.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>ToolCollection</p>
`}}),ie=new no({props:{anchor:"smolagents.ToolCollection.from_hub.example",$$slots:{default:[aa]},$$scope:{ctx:I}}}),ze=new j({props:{name:"from_mcp",anchor:"smolagents.ToolCollection.from_mcp",parameters:[{name:"server_parameters",val:": 'mcp.StdioServerParameters' | dict"},{name:"trust_remote_code",val:": bool = False"}],parametersDescription:[{anchor:"smolagents.ToolCollection.from_mcp.server_parameters",description:`<strong>server_parameters</strong> (<code>mcp.StdioServerParameters</code> or <code>dict</code>) &#x2014;
Configuration parameters to connect to the MCP server. This can be:</p>
<ul>
<li>
<p>An instance of <code>mcp.StdioServerParameters</code> for connecting a Stdio MCP server via standard input/output using a subprocess.</p>
</li>
<li>
<p>A <code>dict</code> with at least:</p>
<ul>
<li>&#x201C;url&#x201D;: URL of the server.</li>
<li>&#x201C;transport&#x201D;: Transport protocol to use, one of:<ul>
<li>&#x201C;streamable-http&#x201D;: Streamable HTTP transport (default).</li>
<li>&#x201C;sse&#x201D;: Legacy HTTP+SSE transport (deprecated).</li>
</ul></li>
</ul>
</li>
</ul>`,name:"server_parameters"},{anchor:"smolagents.ToolCollection.from_mcp.trust_remote_code",description:`<strong>trust_remote_code</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to trust the execution of code from tools defined on the MCP server.
This option should only be set to <code>True</code> if you trust the MCP server,
and undertand the risks associated with running remote code on your local machine.
If set to <code>False</code>, loading tools from MCP will fail.`,name:"trust_remote_code"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/tools.py#L900",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>A tool collection instance.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>ToolCollection</p>
`}}),me=new no({props:{anchor:"smolagents.ToolCollection.from_mcp.example",$$slots:{default:[la]},$$scope:{ctx:I}}}),ce=new no({props:{anchor:"smolagents.ToolCollection.from_mcp.example-2",$$slots:{default:[ra]},$$scope:{ctx:I}}}),Ke=new U({props:{title:"Agent टाइप्स",local:"agent-टइपस",headingTag:"h2"}}),nt=new U({props:{title:"AgentText",local:"smolagents.AgentText",headingTag:"h3"}}),st=new j({props:{name:"class smolagents.AgentText",anchor:"smolagents.AgentText",parameters:[{name:"value",val:""}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/agent_types.py#L62"}}),at=new U({props:{title:"AgentImage",local:"smolagents.AgentImage",headingTag:"h3"}}),lt=new j({props:{name:"class smolagents.AgentImage",anchor:"smolagents.AgentImage",parameters:[{name:"value",val:""}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/agent_types.py#L74"}}),rt=new j({props:{name:"save",anchor:"smolagents.AgentImage.save",parameters:[{name:"output_bytes",val:""},{name:"format",val:": str = None"},{name:"**params",val:""}],parametersDescription:[{anchor:"smolagents.AgentImage.save.output_bytes",description:"<strong>output_bytes</strong> (bytes) &#x2014; The output bytes to save the image to.",name:"output_bytes"},{anchor:"smolagents.AgentImage.save.format",description:"<strong>format</strong> (str) &#x2014; The format to use for the output image. The format is the same as in PIL.Image.save.",name:"format"},{anchor:"smolagents.AgentImage.save.*params",description:"*<strong>*params</strong> &#x2014; Additional parameters to pass to PIL.Image.save.",name:"*params"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/agent_types.py#L164"}}),it=new j({props:{name:"to_raw",anchor:"smolagents.AgentImage.to_raw",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/agent_types.py#L119"}}),mt=new j({props:{name:"to_string",anchor:"smolagents.AgentImage.to_string",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/agent_types.py#L136"}}),ct=new U({props:{title:"AgentAudio",local:"smolagents.AgentAudio",headingTag:"h3"}}),dt=new j({props:{name:"class smolagents.AgentAudio",anchor:"smolagents.AgentAudio",parameters:[{name:"value",val:""},{name:"samplerate",val:" = 16000"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/agent_types.py#L176"}}),gt=new j({props:{name:"to_raw",anchor:"smolagents.AgentAudio.to_raw",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/agent_types.py#L216"}}),pt=new j({props:{name:"to_string",anchor:"smolagents.AgentAudio.to_string",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.0/src/smolagents/agent_types.py#L237"}}),ut=new Ks({props:{source:"https://github.com/huggingface/smolagents/blob/main/docs/source/hi/reference/tools.md"}}),{c(){l=i("meta"),_=o(),$=i("p"),b=o(),d(T.$$.fragment),r=o(),d(M.$$.fragment),lo=o(),$e=i("p"),$e.innerHTML=ss,ro=o(),d(be.$$.fragment),io=o(),d(ve.$$.fragment),mo=o(),A=i("div"),d(_e.$$.fragment),zo=o(),_t=i("p"),_t.textContent=as,Ko=o(),d(z.$$.fragment),co=o(),d(Te.$$.fragment),go=o(),R=i("div"),d(ye.$$.fragment),Oo=o(),Tt=i("p"),Tt.textContent=ls,po=o(),d(we.$$.fragment),uo=o(),y=i("div"),d(xe.$$.fragment),en=o(),yt=i("p"),yt.innerHTML=rs,tn=o(),wt=i("ul"),wt.innerHTML=is,on=o(),xt=i("p"),xt.innerHTML=ms,nn=o(),K=i("div"),d(Ce.$$.fragment),sn=o(),Ct=i("p"),Ct.textContent=cs,an=o(),O=i("div"),d(Me.$$.fragment),ln=o(),Mt=i("p"),Mt.innerHTML=ds,rn=o(),S=i("div"),d(je.$$.fragment),mn=o(),jt=i("p"),jt.textContent=gs,cn=o(),d(ee.$$.fragment),dn=o(),te=i("div"),d(Ie.$$.fragment),gn=o(),It=i("p"),It.innerHTML=ps,pn=o(),L=i("div"),d(ke.$$.fragment),un=o(),kt=i("p"),kt.innerHTML=us,hn=o(),d(oe.$$.fragment),fn=o(),d(ne.$$.fragment),$n=o(),se=i("div"),d(Je.$$.fragment),bn=o(),Jt=i("p"),Jt.textContent=hs,vn=o(),B=i("div"),d(Ue.$$.fragment),_n=o(),Ut=i("p"),Ut.innerHTML=fs,Tn=o(),Zt=i("ul"),Zt.innerHTML=$s,yn=o(),ae=i("div"),d(Ze.$$.fragment),wn=o(),Wt=i("p"),Wt.textContent=bs,xn=o(),le=i("div"),d(We.$$.fragment),Cn=o(),Vt=i("p"),Vt.textContent=vs,ho=o(),d(Ve.$$.fragment),fo=o(),F=i("div"),d(De.$$.fragment),Mn=o(),Dt=i("p"),Dt.innerHTML=_s,$o=o(),d(Le.$$.fragment),bo=o(),d(Pe.$$.fragment),vo=o(),Ae=i("div"),d(Ge.$$.fragment),_o=o(),d(He.$$.fragment),To=o(),G=i("div"),d(Se.$$.fragment),jn=o(),Lt=i("p"),Lt.textContent=Ts,In=o(),d(re.$$.fragment),yo=o(),d(Be.$$.fragment),wo=o(),Ee=i("div"),d(Ne.$$.fragment),xo=o(),d(Re.$$.fragment),Co=o(),Fe=i("div"),d(qe.$$.fragment),Mo=o(),d(Ye.$$.fragment),jo=o(),k=i("div"),d(Qe.$$.fragment),kn=o(),Pt=i("p"),Pt.textContent=ys,Jn=o(),At=i("p"),At.textContent=ws,Un=o(),Gt=i("ul"),Gt.innerHTML=xs,Zn=o(),Ht=i("p"),Ht.innerHTML=Cs,Wn=o(),W=i("div"),d(Xe.$$.fragment),Vn=o(),St=i("p"),St.textContent=Ms,Dn=o(),Bt=i("p"),Bt.textContent=js,Ln=o(),Et=i("blockquote"),Et.innerHTML=Is,Pn=o(),d(ie.$$.fragment),An=o(),J=i("div"),d(ze.$$.fragment),Gn=o(),Nt=i("p"),Nt.textContent=ks,Hn=o(),Rt=i("p"),Rt.innerHTML=Js,Sn=o(),Ft=i("p"),Ft.textContent=Us,Bn=o(),d(me.$$.fragment),En=o(),d(ce.$$.fragment),Io=o(),d(Ke.$$.fragment),ko=o(),Oe=i("p"),Oe.textContent=Zs,Jo=o(),et=i("p"),et.innerHTML=Ws,Uo=o(),tt=i("p"),tt.textContent=Vs,Zo=o(),ot=i("ul"),ot.innerHTML=Ds,Wo=o(),d(nt.$$.fragment),Vo=o(),q=i("div"),d(st.$$.fragment),Nn=o(),qt=i("p"),qt.textContent=Ls,Do=o(),d(at.$$.fragment),Lo=o(),Z=i("div"),d(lt.$$.fragment),Rn=o(),Yt=i("p"),Yt.textContent=Ps,Fn=o(),de=i("div"),d(rt.$$.fragment),qn=o(),Qt=i("p"),Qt.textContent=As,Yn=o(),ge=i("div"),d(it.$$.fragment),Qn=o(),Xt=i("p"),Xt.textContent=Gs,Xn=o(),pe=i("div"),d(mt.$$.fragment),zn=o(),zt=i("p"),zt.textContent=Hs,Po=o(),d(ct.$$.fragment),Ao=o(),D=i("div"),d(dt.$$.fragment),Kn=o(),Kt=i("p"),Kt.textContent=Ss,On=o(),ue=i("div"),d(gt.$$.fragment),es=o(),Ot=i("p"),Ot.innerHTML=Bs,ts=o(),he=i("div"),d(pt.$$.fragment),os=o(),eo=i("p"),eo.textContent=Es,Go=o(),d(ut.$$.fragment),Ho=o(),ao=i("p"),this.h()},l(e){const a=zs("svelte-u9bgzb",document.head);l=m(a,"META",{name:!0,content:!0}),a.forEach(s),_=n(e),$=m(e,"P",{}),w($).forEach(s),b=n(e),g(T.$$.fragment,e),r=n(e),g(M.$$.fragment,e),lo=n(e),$e=m(e,"P",{"data-svelte-h":!0}),v($e)!=="svelte-1y9anji"&&($e.innerHTML=ss),ro=n(e),g(be.$$.fragment,e),io=n(e),g(ve.$$.fragment,e),mo=n(e),A=m(e,"DIV",{class:!0});var Y=w(A);g(_e.$$.fragment,Y),zo=n(Y),_t=m(Y,"P",{"data-svelte-h":!0}),v(_t)!=="svelte-fgf0mn"&&(_t.textContent=as),Ko=n(Y),g(z.$$.fragment,Y),Y.forEach(s),co=n(e),g(Te.$$.fragment,e),go=n(e),R=m(e,"DIV",{class:!0});var ht=w(R);g(ye.$$.fragment,ht),Oo=n(ht),Tt=m(ht,"P",{"data-svelte-h":!0}),v(Tt)!=="svelte-1yvj8b1"&&(Tt.textContent=ls),ht.forEach(s),po=n(e),g(we.$$.fragment,e),uo=n(e),y=m(e,"DIV",{class:!0});var C=w(y);g(xe.$$.fragment,C),en=n(C),yt=m(C,"P",{"data-svelte-h":!0}),v(yt)!=="svelte-1poxk5s"&&(yt.innerHTML=rs),tn=n(C),wt=m(C,"UL",{"data-svelte-h":!0}),v(wt)!=="svelte-19a37je"&&(wt.innerHTML=is),on=n(C),xt=m(C,"P",{"data-svelte-h":!0}),v(xt)!=="svelte-1gxl95g"&&(xt.innerHTML=ms),nn=n(C),K=m(C,"DIV",{class:!0});var ft=w(K);g(Ce.$$.fragment,ft),sn=n(ft),Ct=m(ft,"P",{"data-svelte-h":!0}),v(Ct)!=="svelte-2agex6"&&(Ct.textContent=cs),ft.forEach(s),an=n(C),O=m(C,"DIV",{class:!0});var $t=w(O);g(Me.$$.fragment,$t),ln=n($t),Mt=m($t,"P",{"data-svelte-h":!0}),v(Mt)!=="svelte-6pambb"&&(Mt.innerHTML=ds),$t.forEach(s),rn=n(C),S=m(C,"DIV",{class:!0});var Q=w(S);g(je.$$.fragment,Q),mn=n(Q),jt=m(Q,"P",{"data-svelte-h":!0}),v(jt)!=="svelte-yy7b2c"&&(jt.textContent=gs),cn=n(Q),g(ee.$$.fragment,Q),Q.forEach(s),dn=n(C),te=m(C,"DIV",{class:!0});var bt=w(te);g(Ie.$$.fragment,bt),gn=n(bt),It=m(bt,"P",{"data-svelte-h":!0}),v(It)!=="svelte-4noal4"&&(It.innerHTML=ps),bt.forEach(s),pn=n(C),L=m(C,"DIV",{class:!0});var H=w(L);g(ke.$$.fragment,H),un=n(H),kt=m(H,"P",{"data-svelte-h":!0}),v(kt)!=="svelte-1afbgss"&&(kt.innerHTML=us),hn=n(H),g(oe.$$.fragment,H),fn=n(H),g(ne.$$.fragment,H),H.forEach(s),$n=n(C),se=m(C,"DIV",{class:!0});var vt=w(se);g(Je.$$.fragment,vt),bn=n(vt),Jt=m(vt,"P",{"data-svelte-h":!0}),v(Jt)!=="svelte-1u3gku9"&&(Jt.textContent=hs),vt.forEach(s),vn=n(C),B=m(C,"DIV",{class:!0});var to=w(B);g(Ue.$$.fragment,to),_n=n(to),Ut=m(to,"P",{"data-svelte-h":!0}),v(Ut)!=="svelte-19evuwa"&&(Ut.innerHTML=fs),Tn=n(to),Zt=m(to,"UL",{"data-svelte-h":!0}),v(Zt)!=="svelte-1s62xm4"&&(Zt.innerHTML=$s),to.forEach(s),yn=n(C),ae=m(C,"DIV",{class:!0});var Bo=w(ae);g(Ze.$$.fragment,Bo),wn=n(Bo),Wt=m(Bo,"P",{"data-svelte-h":!0}),v(Wt)!=="svelte-63kthh"&&(Wt.textContent=bs),Bo.forEach(s),xn=n(C),le=m(C,"DIV",{class:!0});var Eo=w(le);g(We.$$.fragment,Eo),Cn=n(Eo),Vt=m(Eo,"P",{"data-svelte-h":!0}),v(Vt)!=="svelte-1l397l"&&(Vt.textContent=vs),Eo.forEach(s),C.forEach(s),ho=n(e),g(Ve.$$.fragment,e),fo=n(e),F=m(e,"DIV",{class:!0});var No=w(F);g(De.$$.fragment,No),Mn=n(No),Dt=m(No,"P",{"data-svelte-h":!0}),v(Dt)!=="svelte-j4u4it"&&(Dt.innerHTML=_s),No.forEach(s),$o=n(e),g(Le.$$.fragment,e),bo=n(e),g(Pe.$$.fragment,e),vo=n(e),Ae=m(e,"DIV",{class:!0});var Ns=w(Ae);g(Ge.$$.fragment,Ns),Ns.forEach(s),_o=n(e),g(He.$$.fragment,e),To=n(e),G=m(e,"DIV",{class:!0});var oo=w(G);g(Se.$$.fragment,oo),jn=n(oo),Lt=m(oo,"P",{"data-svelte-h":!0}),v(Lt)!=="svelte-2spxi2"&&(Lt.textContent=Ts),In=n(oo),g(re.$$.fragment,oo),oo.forEach(s),yo=n(e),g(Be.$$.fragment,e),wo=n(e),Ee=m(e,"DIV",{class:!0});var Rs=w(Ee);g(Ne.$$.fragment,Rs),Rs.forEach(s),xo=n(e),g(Re.$$.fragment,e),Co=n(e),Fe=m(e,"DIV",{class:!0});var Fs=w(Fe);g(qe.$$.fragment,Fs),Fs.forEach(s),Mo=n(e),g(Ye.$$.fragment,e),jo=n(e),k=m(e,"DIV",{class:!0});var V=w(k);g(Qe.$$.fragment,V),kn=n(V),Pt=m(V,"P",{"data-svelte-h":!0}),v(Pt)!=="svelte-g073wf"&&(Pt.textContent=ys),Jn=n(V),At=m(V,"P",{"data-svelte-h":!0}),v(At)!=="svelte-wb0eyv"&&(At.textContent=ws),Un=n(V),Gt=m(V,"UL",{"data-svelte-h":!0}),v(Gt)!=="svelte-u18at0"&&(Gt.innerHTML=xs),Zn=n(V),Ht=m(V,"P",{"data-svelte-h":!0}),v(Ht)!=="svelte-liqsmx"&&(Ht.innerHTML=Cs),Wn=n(V),W=m(V,"DIV",{class:!0});var E=w(W);g(Xe.$$.fragment,E),Vn=n(E),St=m(E,"P",{"data-svelte-h":!0}),v(St)!=="svelte-pdgtcq"&&(St.textContent=Ms),Dn=n(E),Bt=m(E,"P",{"data-svelte-h":!0}),v(Bt)!=="svelte-b4jhp8"&&(Bt.textContent=js),Ln=n(E),Et=m(E,"BLOCKQUOTE",{"data-svelte-h":!0}),v(Et)!=="svelte-1ezz2hf"&&(Et.innerHTML=Is),Pn=n(E),g(ie.$$.fragment,E),E.forEach(s),An=n(V),J=m(V,"DIV",{class:!0});var P=w(J);g(ze.$$.fragment,P),Gn=n(P),Nt=m(P,"P",{"data-svelte-h":!0}),v(Nt)!=="svelte-tdu9dm"&&(Nt.textContent=ks),Hn=n(P),Rt=m(P,"P",{"data-svelte-h":!0}),v(Rt)!=="svelte-ovzouy"&&(Rt.innerHTML=Js),Sn=n(P),Ft=m(P,"P",{"data-svelte-h":!0}),v(Ft)!=="svelte-17y4fsr"&&(Ft.textContent=Us),Bn=n(P),g(me.$$.fragment,P),En=n(P),g(ce.$$.fragment,P),P.forEach(s),V.forEach(s),Io=n(e),g(Ke.$$.fragment,e),ko=n(e),Oe=m(e,"P",{"data-svelte-h":!0}),v(Oe)!=="svelte-nmlvuv"&&(Oe.textContent=Zs),Jo=n(e),et=m(e,"P",{"data-svelte-h":!0}),v(et)!=="svelte-1bhk4eb"&&(et.innerHTML=Ws),Uo=n(e),tt=m(e,"P",{"data-svelte-h":!0}),v(tt)!=="svelte-1hwudnq"&&(tt.textContent=Vs),Zo=n(e),ot=m(e,"UL",{"data-svelte-h":!0}),v(ot)!=="svelte-zdfeom"&&(ot.innerHTML=Ds),Wo=n(e),g(nt.$$.fragment,e),Vo=n(e),q=m(e,"DIV",{class:!0});var Ro=w(q);g(st.$$.fragment,Ro),Nn=n(Ro),qt=m(Ro,"P",{"data-svelte-h":!0}),v(qt)!=="svelte-57fhj7"&&(qt.textContent=Ls),Ro.forEach(s),Do=n(e),g(at.$$.fragment,e),Lo=n(e),Z=m(e,"DIV",{class:!0});var N=w(Z);g(lt.$$.fragment,N),Rn=n(N),Yt=m(N,"P",{"data-svelte-h":!0}),v(Yt)!=="svelte-1qa18j9"&&(Yt.textContent=Ps),Fn=n(N),de=m(N,"DIV",{class:!0});var Fo=w(de);g(rt.$$.fragment,Fo),qn=n(Fo),Qt=m(Fo,"P",{"data-svelte-h":!0}),v(Qt)!=="svelte-qix5eq"&&(Qt.textContent=As),Fo.forEach(s),Yn=n(N),ge=m(N,"DIV",{class:!0});var qo=w(ge);g(it.$$.fragment,qo),Qn=n(qo),Xt=m(qo,"P",{"data-svelte-h":!0}),v(Xt)!=="svelte-xppdw9"&&(Xt.textContent=Gs),qo.forEach(s),Xn=n(N),pe=m(N,"DIV",{class:!0});var Yo=w(pe);g(mt.$$.fragment,Yo),zn=n(Yo),zt=m(Yo,"P",{"data-svelte-h":!0}),v(zt)!=="svelte-chc6sp"&&(zt.textContent=Hs),Yo.forEach(s),N.forEach(s),Po=n(e),g(ct.$$.fragment,e),Ao=n(e),D=m(e,"DIV",{class:!0});var fe=w(D);g(dt.$$.fragment,fe),Kn=n(fe),Kt=m(fe,"P",{"data-svelte-h":!0}),v(Kt)!=="svelte-ckiqb6"&&(Kt.textContent=Ss),On=n(fe),ue=m(fe,"DIV",{class:!0});var Qo=w(ue);g(gt.$$.fragment,Qo),es=n(Qo),Ot=m(Qo,"P",{"data-svelte-h":!0}),v(Ot)!=="svelte-10rnn1x"&&(Ot.innerHTML=Bs),Qo.forEach(s),ts=n(fe),he=m(fe,"DIV",{class:!0});var Xo=w(he);g(pt.$$.fragment,Xo),os=n(Xo),eo=m(Xo,"P",{"data-svelte-h":!0}),v(eo)!=="svelte-1xu9o93"&&(eo.textContent=Es),Xo.forEach(s),fe.forEach(s),Go=n(e),g(ut.$$.fragment,e),Ho=n(e),ao=m(e,"P",{}),w(ao).forEach(s),this.h()},h(){x(l,"name","hf:doc:metadata"),x(l,"content",ma),x(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(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(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(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(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(D,"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,a){t(document.head,l),c(e,_,a),c(e,$,a),c(e,b,a),p(T,e,a),c(e,r,a),p(M,e,a),c(e,lo,a),c(e,$e,a),c(e,ro,a),p(be,e,a),c(e,io,a),p(ve,e,a),c(e,mo,a),c(e,A,a),p(_e,A,null),t(A,zo),t(A,_t),t(A,Ko),p(z,A,null),c(e,co,a),p(Te,e,a),c(e,go,a),c(e,R,a),p(ye,R,null),t(R,Oo),t(R,Tt),c(e,po,a),p(we,e,a),c(e,uo,a),c(e,y,a),p(xe,y,null),t(y,en),t(y,yt),t(y,tn),t(y,wt),t(y,on),t(y,xt),t(y,nn),t(y,K),p(Ce,K,null),t(K,sn),t(K,Ct),t(y,an),t(y,O),p(Me,O,null),t(O,ln),t(O,Mt),t(y,rn),t(y,S),p(je,S,null),t(S,mn),t(S,jt),t(S,cn),p(ee,S,null),t(y,dn),t(y,te),p(Ie,te,null),t(te,gn),t(te,It),t(y,pn),t(y,L),p(ke,L,null),t(L,un),t(L,kt),t(L,hn),p(oe,L,null),t(L,fn),p(ne,L,null),t(y,$n),t(y,se),p(Je,se,null),t(se,bn),t(se,Jt),t(y,vn),t(y,B),p(Ue,B,null),t(B,_n),t(B,Ut),t(B,Tn),t(B,Zt),t(y,yn),t(y,ae),p(Ze,ae,null),t(ae,wn),t(ae,Wt),t(y,xn),t(y,le),p(We,le,null),t(le,Cn),t(le,Vt),c(e,ho,a),p(Ve,e,a),c(e,fo,a),c(e,F,a),p(De,F,null),t(F,Mn),t(F,Dt),c(e,$o,a),p(Le,e,a),c(e,bo,a),p(Pe,e,a),c(e,vo,a),c(e,Ae,a),p(Ge,Ae,null),c(e,_o,a),p(He,e,a),c(e,To,a),c(e,G,a),p(Se,G,null),t(G,jn),t(G,Lt),t(G,In),p(re,G,null),c(e,yo,a),p(Be,e,a),c(e,wo,a),c(e,Ee,a),p(Ne,Ee,null),c(e,xo,a),p(Re,e,a),c(e,Co,a),c(e,Fe,a),p(qe,Fe,null),c(e,Mo,a),p(Ye,e,a),c(e,jo,a),c(e,k,a),p(Qe,k,null),t(k,kn),t(k,Pt),t(k,Jn),t(k,At),t(k,Un),t(k,Gt),t(k,Zn),t(k,Ht),t(k,Wn),t(k,W),p(Xe,W,null),t(W,Vn),t(W,St),t(W,Dn),t(W,Bt),t(W,Ln),t(W,Et),t(W,Pn),p(ie,W,null),t(k,An),t(k,J),p(ze,J,null),t(J,Gn),t(J,Nt),t(J,Hn),t(J,Rt),t(J,Sn),t(J,Ft),t(J,Bn),p(me,J,null),t(J,En),p(ce,J,null),c(e,Io,a),p(Ke,e,a),c(e,ko,a),c(e,Oe,a),c(e,Jo,a),c(e,et,a),c(e,Uo,a),c(e,tt,a),c(e,Zo,a),c(e,ot,a),c(e,Wo,a),p(nt,e,a),c(e,Vo,a),c(e,q,a),p(st,q,null),t(q,Nn),t(q,qt),c(e,Do,a),p(at,e,a),c(e,Lo,a),c(e,Z,a),p(lt,Z,null),t(Z,Rn),t(Z,Yt),t(Z,Fn),t(Z,de),p(rt,de,null),t(de,qn),t(de,Qt),t(Z,Yn),t(Z,ge),p(it,ge,null),t(ge,Qn),t(ge,Xt),t(Z,Xn),t(Z,pe),p(mt,pe,null),t(pe,zn),t(pe,zt),c(e,Po,a),p(ct,e,a),c(e,Ao,a),c(e,D,a),p(dt,D,null),t(D,Kn),t(D,Kt),t(D,On),t(D,ue),p(gt,ue,null),t(ue,es),t(ue,Ot),t(D,ts),t(D,he),p(pt,he,null),t(he,os),t(he,eo),c(e,Go,a),p(ut,e,a),c(e,Ho,a),c(e,ao,a),So=!0},p(e,[a]){const Y={};a&2&&(Y.$$scope={dirty:a,ctx:e}),M.$set(Y);const ht={};a&2&&(ht.$$scope={dirty:a,ctx:e}),z.$set(ht);const C={};a&2&&(C.$$scope={dirty:a,ctx:e}),ee.$set(C);const ft={};a&2&&(ft.$$scope={dirty:a,ctx:e}),oe.$set(ft);const $t={};a&2&&($t.$$scope={dirty:a,ctx:e}),ne.$set($t);const Q={};a&2&&(Q.$$scope={dirty:a,ctx:e}),re.$set(Q);const bt={};a&2&&(bt.$$scope={dirty:a,ctx:e}),ie.$set(bt);const H={};a&2&&(H.$$scope={dirty:a,ctx:e}),me.$set(H);const vt={};a&2&&(vt.$$scope={dirty:a,ctx:e}),ce.$set(vt)},i(e){So||(u(T.$$.fragment,e),u(M.$$.fragment,e),u(be.$$.fragment,e),u(ve.$$.fragment,e),u(_e.$$.fragment,e),u(z.$$.fragment,e),u(Te.$$.fragment,e),u(ye.$$.fragment,e),u(we.$$.fragment,e),u(xe.$$.fragment,e),u(Ce.$$.fragment,e),u(Me.$$.fragment,e),u(je.$$.fragment,e),u(ee.$$.fragment,e),u(Ie.$$.fragment,e),u(ke.$$.fragment,e),u(oe.$$.fragment,e),u(ne.$$.fragment,e),u(Je.$$.fragment,e),u(Ue.$$.fragment,e),u(Ze.$$.fragment,e),u(We.$$.fragment,e),u(Ve.$$.fragment,e),u(De.$$.fragment,e),u(Le.$$.fragment,e),u(Pe.$$.fragment,e),u(Ge.$$.fragment,e),u(He.$$.fragment,e),u(Se.$$.fragment,e),u(re.$$.fragment,e),u(Be.$$.fragment,e),u(Ne.$$.fragment,e),u(Re.$$.fragment,e),u(qe.$$.fragment,e),u(Ye.$$.fragment,e),u(Qe.$$.fragment,e),u(Xe.$$.fragment,e),u(ie.$$.fragment,e),u(ze.$$.fragment,e),u(me.$$.fragment,e),u(ce.$$.fragment,e),u(Ke.$$.fragment,e),u(nt.$$.fragment,e),u(st.$$.fragment,e),u(at.$$.fragment,e),u(lt.$$.fragment,e),u(rt.$$.fragment,e),u(it.$$.fragment,e),u(mt.$$.fragment,e),u(ct.$$.fragment,e),u(dt.$$.fragment,e),u(gt.$$.fragment,e),u(pt.$$.fragment,e),u(ut.$$.fragment,e),So=!0)},o(e){h(T.$$.fragment,e),h(M.$$.fragment,e),h(be.$$.fragment,e),h(ve.$$.fragment,e),h(_e.$$.fragment,e),h(z.$$.fragment,e),h(Te.$$.fragment,e),h(ye.$$.fragment,e),h(we.$$.fragment,e),h(xe.$$.fragment,e),h(Ce.$$.fragment,e),h(Me.$$.fragment,e),h(je.$$.fragment,e),h(ee.$$.fragment,e),h(Ie.$$.fragment,e),h(ke.$$.fragment,e),h(oe.$$.fragment,e),h(ne.$$.fragment,e),h(Je.$$.fragment,e),h(Ue.$$.fragment,e),h(Ze.$$.fragment,e),h(We.$$.fragment,e),h(Ve.$$.fragment,e),h(De.$$.fragment,e),h(Le.$$.fragment,e),h(Pe.$$.fragment,e),h(Ge.$$.fragment,e),h(He.$$.fragment,e),h(Se.$$.fragment,e),h(re.$$.fragment,e),h(Be.$$.fragment,e),h(Ne.$$.fragment,e),h(Re.$$.fragment,e),h(qe.$$.fragment,e),h(Ye.$$.fragment,e),h(Qe.$$.fragment,e),h(Xe.$$.fragment,e),h(ie.$$.fragment,e),h(ze.$$.fragment,e),h(me.$$.fragment,e),h(ce.$$.fragment,e),h(Ke.$$.fragment,e),h(nt.$$.fragment,e),h(st.$$.fragment,e),h(at.$$.fragment,e),h(lt.$$.fragment,e),h(rt.$$.fragment,e),h(it.$$.fragment,e),h(mt.$$.fragment,e),h(ct.$$.fragment,e),h(dt.$$.fragment,e),h(gt.$$.fragment,e),h(pt.$$.fragment,e),h(ut.$$.fragment,e),So=!1},d(e){e&&(s(_),s($),s(b),s(r),s(lo),s($e),s(ro),s(io),s(mo),s(A),s(co),s(go),s(R),s(po),s(uo),s(y),s(ho),s(fo),s(F),s($o),s(bo),s(vo),s(Ae),s(_o),s(To),s(G),s(yo),s(wo),s(Ee),s(xo),s(Co),s(Fe),s(Mo),s(jo),s(k),s(Io),s(ko),s(Oe),s(Jo),s(et),s(Uo),s(tt),s(Zo),s(ot),s(Wo),s(Vo),s(q),s(Do),s(Lo),s(Z),s(Po),s(Ao),s(D),s(Go),s(Ho),s(ao)),s(l),f(T,e),f(M,e),f(be,e),f(ve,e),f(_e),f(z),f(Te,e),f(ye),f(we,e),f(xe),f(Ce),f(Me),f(je),f(ee),f(Ie),f(ke),f(oe),f(ne),f(Je),f(Ue),f(Ze),f(We),f(Ve,e),f(De),f(Le,e),f(Pe,e),f(Ge),f(He,e),f(Se),f(re),f(Be,e),f(Ne),f(Re,e),f(qe),f(Ye,e),f(Qe),f(Xe),f(ie),f(ze),f(me),f(ce),f(Ke,e),f(nt,e),f(st),f(at,e),f(lt),f(rt),f(it),f(mt),f(ct,e),f(dt),f(gt),f(pt),f(ut,e)}}}const ma='{"title":"Tools","local":"tools","sections":[{"title":"Tools","local":"tools","sections":[{"title":"load_tool","local":"smolagents.load_tool","sections":[],"depth":3},{"title":"tool","local":"smolagents.tool","sections":[],"depth":3},{"title":"Tool","local":"smolagents.Tool","sections":[],"depth":3},{"title":"launch_gradio_demo","local":"smolagents.launch_gradio_demo","sections":[],"depth":3}],"depth":2},{"title":"Default Tools","local":"default-tools","sections":[{"title":"PythonInterpreterTool","local":"smolagents.PythonInterpreterTool","sections":[],"depth":3},{"title":"DuckDuckGoSearchTool","local":"smolagents.DuckDuckGoSearchTool","sections":[],"depth":3},{"title":"VisitWebpageTool","local":"smolagents.VisitWebpageTool","sections":[],"depth":3},{"title":"UserInputTool","local":"smolagents.UserInputTool","sections":[],"depth":3}],"depth":2},{"title":"ToolCollection","local":"smolagents.ToolCollection","sections":[],"depth":2},{"title":"Agent टाइप्स","local":"agent-टइपस","sections":[{"title":"AgentText","local":"smolagents.AgentText","sections":[],"depth":3},{"title":"AgentImage","local":"smolagents.AgentImage","sections":[],"depth":3},{"title":"AgentAudio","local":"smolagents.AgentAudio","sections":[],"depth":3}],"depth":2}],"depth":1}';function ca(I){return Ys(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class $a extends Qs{constructor(l){super(),Xs(this,l,ca,ia,qs,{})}}export{$a as component};
