import{s as Hi,o as Zi,n as ae}from"../chunks/scheduler.25b97de1.js";import{S as qi,i as Ni,g as a,s as n,r as m,A as Ri,h as l,f as r,c as o,j as v,u as d,x as $,k as _,y as t,a as i,v as p,d as g,t as c,w as f}from"../chunks/index.d9030fc9.js";import{T as vl}from"../chunks/Tip.baa67368.js";import{D as y}from"../chunks/Docstring.ffac8efa.js";import{C as Se}from"../chunks/CodeBlock.e6cd0d95.js";import{E as So}from"../chunks/ExampleCodeBlock.22dfe688.js";import{H as I,E as Wi}from"../chunks/EditOnGithub.91d95064.js";function Di(j){let u,x=`Transformers Agents is an experimental API which is subject to change at any time. Results returned by the agents
can vary as the APIs or underlying models are prone to change.`;return{c(){u=a("p"),u.textContent=x},l(b){u=l(b,"P",{"data-svelte-h":!0}),$(u)!=="svelte-1fgfei3"&&(u.textContent=x)},m(b,T){i(b,u,T)},p:ae,d(b){b&&r(u)}}}function Bi(j){let u,x="Example:",b,T,w;return T=new Se({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5hZ2VudHMlMjBpbXBvcnQlMjBDb2RlQWdlbnQlMEElMEFhZ2VudCUyMCUzRCUyMENvZGVBZ2VudCh0b29scyUzRCU1QiU1RCklMEFhZ2VudC5ydW4oJTIyV2hhdCUyMGlzJTIwdGhlJTIwcmVzdWx0JTIwb2YlMjAyJTIwcG93ZXIlMjAzLjczODQlM0YlMjIp",highlighted:`<span class="hljs-keyword">from</span> transformers.agents <span class="hljs-keyword">import</span> CodeAgent

agent = CodeAgent(tools=[])
agent.run(<span class="hljs-string">&quot;What is the result of 2 power 3.7384?&quot;</span>)`,wrap:!1}}),{c(){u=a("p"),u.textContent=x,b=n(),m(T.$$.fragment)},l(h){u=l(h,"P",{"data-svelte-h":!0}),$(u)!=="svelte-11lpom8"&&(u.textContent=x),b=o(h),d(T.$$.fragment,h)},m(h,M){i(h,u,M),i(h,b,M),p(T,h,M),w=!0},p:ae,i(h){w||(g(T.$$.fragment,h),w=!0)},o(h){c(T.$$.fragment,h),w=!1},d(h){h&&(r(u),r(b)),f(T,h)}}}function Fi(j){let u,x="Example:",b,T,w;return T=new Se({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5hZ2VudHMlMjBpbXBvcnQlMjBSZWFjdENvZGVBZ2VudCUwQWFnZW50JTIwJTNEJTIwUmVhY3RDb2RlQWdlbnQodG9vbHMlM0QlNUIlNUQpJTBBYWdlbnQucnVuKCUyMldoYXQlMjBpcyUyMHRoZSUyMHJlc3VsdCUyMG9mJTIwMiUyMHBvd2VyJTIwMy43Mzg0JTNGJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers.agents <span class="hljs-keyword">import</span> ReactCodeAgent
agent = ReactCodeAgent(tools=[])
agent.run(<span class="hljs-string">&quot;What is the result of 2 power 3.7384?&quot;</span>)`,wrap:!1}}),{c(){u=a("p"),u.textContent=x,b=n(),m(T.$$.fragment)},l(h){u=l(h,"P",{"data-svelte-h":!0}),$(u)!=="svelte-11lpom8"&&(u.textContent=x),b=o(h),d(T.$$.fragment,h)},m(h,M){i(h,u,M),i(h,b,M),p(T,h,M),w=!0},p:ae,i(h){w||(g(T.$$.fragment,h),w=!0)},o(h){c(T.$$.fragment,h),w=!1},d(h){h&&(r(u),r(b)),f(T,h)}}}function zi(j){let u,x=`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(){u=a("p"),u.textContent=x},l(b){u=l(b,"P",{"data-svelte-h":!0}),$(u)!=="svelte-1kcherd"&&(u.textContent=x)},m(b,T){i(b,u,T)},p:ae,d(b){b&&r(u)}}}function Gi(j){let u,x=`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(){u=a("p"),u.textContent=x},l(b){u=l(b,"P",{"data-svelte-h":!0}),$(u)!=="svelte-fpk7e5"&&(u.textContent=x)},m(b,T){i(b,u,T)},p:ae,d(b){b&&r(u)}}}function Si(j){let u,x="Examples:",b,T,w;return T=new Se({props:{code:"aW1hZ2VfZ2VuZXJhdG9yJTIwJTNEJTIwVG9vbC5mcm9tX3NwYWNlKCUwQSUyMCUyMCUyMCUyMHNwYWNlX2lkJTNEJTIyYmxhY2stZm9yZXN0LWxhYnMlMkZGTFVYLjEtc2NobmVsbCUyMiUyQyUwQSUyMCUyMCUyMCUyMG5hbWUlM0QlMjJpbWFnZS1nZW5lcmF0b3IlMjIlMkMlMEElMjAlMjAlMjAlMjBkZXNjcmlwdGlvbiUzRCUyMkdlbmVyYXRlJTIwYW4lMjBpbWFnZSUyMGZyb20lMjBhJTIwcHJvbXB0JTIyJTBBKSUwQWltYWdlJTIwJTNEJTIwaW1hZ2VfZ2VuZXJhdG9yKCUyMkdlbmVyYXRlJTIwYW4lMjBpbWFnZSUyMG9mJTIwYSUyMGNvb2wlMjBzdXJmZXIlMjBpbiUyMFRhaGl0aSUyMik=",highlighted:`image_generator = Tool.from_space(
    <span class="hljs-attribute">space_id</span>=<span class="hljs-string">&quot;black-forest-labs/FLUX.1-schnell&quot;</span>,
    <span class="hljs-attribute">name</span>=<span class="hljs-string">&quot;image-generator&quot;</span>,
    <span class="hljs-attribute">description</span>=<span class="hljs-string">&quot;Generate an image from a prompt&quot;</span>
)
image = image_generator(<span class="hljs-string">&quot;Generate an image of a cool surfer in Tahiti&quot;</span>)`,wrap:!1}}),{c(){u=a("p"),u.textContent=x,b=n(),m(T.$$.fragment)},l(h){u=l(h,"P",{"data-svelte-h":!0}),$(u)!=="svelte-kvfsh7"&&(u.textContent=x),b=o(h),d(T.$$.fragment,h)},m(h,M){i(h,u,M),i(h,b,M),p(T,h,M),w=!0},p:ae,i(h){w||(g(T.$$.fragment,h),w=!0)},o(h){c(T.$$.fragment,h),w=!1},d(h){h&&(r(u),r(b)),f(T,h)}}}function Xi(j){let u,x;return u=new Se({props:{code:"ZmFjZV9zd2FwcGVyJTIwJTNEJTIwVG9vbC5mcm9tX3NwYWNlKCUwQSUyMCUyMCUyMCUyMCUyMnR1YW4yMzA4JTJGZmFjZS1zd2FwJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyZmFjZV9zd2FwcGVyJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyVG9vbCUyMHRoYXQlMjBwdXRzJTIwdGhlJTIwZmFjZSUyMHNob3duJTIwb24lMjB0aGUlMjBmaXJzdCUyMGltYWdlJTIwb24lMjB0aGUlMjBzZWNvbmQlMjBpbWFnZS4lMjBZb3UlMjBjYW4lMjBnaXZlJTIwaXQlMjBwYXRocyUyMHRvJTIwaW1hZ2VzLiUyMiUyQyUwQSklMEFpbWFnZSUyMCUzRCUyMGZhY2Vfc3dhcHBlcignLiUyRmF5bWVyaWMuanBlZyclMkMlMjAnLiUyRnJ1dGguanBnJyk=",highlighted:`face_swapper = <span class="hljs-type">Tool</span>.from_space(
    <span class="hljs-comment">&quot;tuan2308/face-swap&quot;</span>,
    <span class="hljs-comment">&quot;face_swapper&quot;</span>,
    <span class="hljs-comment">&quot;Tool that puts the face shown on the first image on the second image. You can give it paths to images.&quot;</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(){m(u.$$.fragment)},l(b){d(u.$$.fragment,b)},m(b,T){p(u,b,T),x=!0},p:ae,i(b){x||(g(u.$$.fragment,b),x=!0)},o(b){c(u.$$.fragment,b),x=!1},d(b){f(u,b)}}}function Qi(j){let u,x="For instance:",b,T,w;return T=new Se({props:{code:"ZnJvbSUyMG15X3Rvb2xfbW9kdWxlJTIwaW1wb3J0JTIwTXlUb29sJTBBbXlfdG9vbCUyMCUzRCUyME15VG9vbCgpJTBBbXlfdG9vbC5wdXNoX3RvX2h1YiglMjJteS11c2VybmFtZSUyRm15LXNwYWNlJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> my_tool_module <span class="hljs-keyword">import</span> MyTool
my_tool = MyTool()
my_tool.push_to_hub(<span class="hljs-string">&quot;my-username/my-space&quot;</span>)`,wrap:!1}}),{c(){u=a("p"),u.textContent=x,b=n(),m(T.$$.fragment)},l(h){u=l(h,"P",{"data-svelte-h":!0}),$(u)!=="svelte-4vay6o"&&(u.textContent=x),b=o(h),d(T.$$.fragment,h)},m(h,M){i(h,u,M),i(h,b,M),p(T,h,M),w=!0},p:ae,i(h){w||(g(T.$$.fragment,h),w=!0)},o(h){c(T.$$.fragment,h),w=!1},d(h){h&&(r(u),r(b)),f(T,h)}}}function Yi(j){let u,x="Example:",b,T,w;return T=new Se({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRvb2xDb2xsZWN0aW9uJTJDJTIwUmVhY3RDb2RlQWdlbnQlMEElMEFpbWFnZV90b29sX2NvbGxlY3Rpb24lMjAlM0QlMjBUb29sQ29sbGVjdGlvbihjb2xsZWN0aW9uX3NsdWclM0QlMjJodWdnaW5nZmFjZS10b29scyUyRmRpZmZ1c2lvbi10b29scy02NjMwYmIxOWE5NDJjMjMwNmEyY2RiNmYlMjIpJTBBYWdlbnQlMjAlM0QlMjBSZWFjdENvZGVBZ2VudCh0b29scyUzRCU1QippbWFnZV90b29sX2NvbGxlY3Rpb24udG9vbHMlNUQlMkMlMjBhZGRfYmFzZV90b29scyUzRFRydWUpJTBBJTBBYWdlbnQucnVuKCUyMlBsZWFzZSUyMGRyYXclMjBtZSUyMGElMjBwaWN0dXJlJTIwb2YlMjByaXZlcnMlMjBhbmQlMjBsYWtlcy4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> ToolCollection, ReactCodeAgent

<span class="hljs-meta">&gt;&gt;&gt; </span>image_tool_collection = ToolCollection(collection_slug=<span class="hljs-string">&quot;huggingface-tools/diffusion-tools-6630bb19a942c2306a2cdb6f&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>agent = ReactCodeAgent(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(){u=a("p"),u.textContent=x,b=n(),m(T.$$.fragment)},l(h){u=l(h,"P",{"data-svelte-h":!0}),$(u)!=="svelte-11lpom8"&&(u.textContent=x),b=o(h),d(T.$$.fragment,h)},m(h,M){i(h,u,M),i(h,b,M),p(T,h,M),w=!0},p:ae,i(h){w||(g(T.$$.fragment,h),w=!0)},o(h){c(T.$$.fragment,h),w=!1},d(h){h&&(r(u),r(b)),f(T,h)}}}function Oi(j){let u,x,b,T,w,h,M,Qo,Xe,_l=`To learn more about agents and tools make sure to read the <a href="../transformers_agents">introductory guide</a>. This page
contains the API docs for the underlying classes.`,Yo,Qe,Oo,Ye,yl='We provide two types of agents, based on the main <a href="/docs/transformers/main/en/main_classes/agent#transformers.Agent">Agent</a> class:',Ko,Oe,Tl='<li><a href="/docs/transformers/main/en/main_classes/agent#transformers.CodeAgent">CodeAgent</a> acts in one shot, generating code to solve the task, then executes it at once.</li> <li><a href="/docs/transformers/main/en/main_classes/agent#transformers.ReactAgent">ReactAgent</a> acts step by step, each step consisting of one thought, then one tool call and execution. It has two classes:<ul><li><a href="/docs/transformers/main/en/main_classes/agent#transformers.ReactJsonAgent">ReactJsonAgent</a> writes its tool calls in JSON.</li> <li><a href="/docs/transformers/main/en/main_classes/agent#transformers.ReactCodeAgent">ReactCodeAgent</a> writes its tool calls in Python code.</li></ul></li>',er,Ke,tr,E,et,Cs,le,tt,ks,Vn,xl=`Execute tool with the provided input and returns the result.
This method replaces arguments with the actual values from the state if they refer to state variables.`,Is,ie,nt,js,Hn,wl="Parse action from the LLM output",As,me,ot,Js,Zn,Ml="To be implemented in the child class",Ls,de,rt,Us,qn,Cl=`Reads past llm_outputs, actions, and observations or errors from the logs into a series of messages
that can be used as input to the LLM.`,nr,st,or,Z,at,Es,Nn,kl="A class for an agent that solves the given task using a single block of code. It plans all its actions, then executes all in one shot.",Ps,pe,lt,Vs,Rn,Il=`Override this method if you want to change the way the code is
cleaned in the <code>run</code> method.`,Hs,Q,it,Zs,Wn,jl="Runs the agent for the given task.",qs,ge,rr,mt,sr,A,dt,Ns,Dn,Al=`This agent that solves the given task step by step, using the ReAct framework:
While the objective is not reached, the agent will perform a cycle of thinking and acting.
The action will be parsed from the LLM output: it consists in calls to tools from the toolbox, with arguments chosen by the LLM engine.`,Rs,ce,pt,Ws,Bn,Jl="Runs the agent in direct mode, returning outputs only at the end: should be launched only in the <code>run</code> method.",Ds,fe,gt,Bs,Fn,Ll="Used periodically by the agent to plan the next steps to reach the objective.",Fs,ue,ct,zs,zn,Ul="This method provides a final answer to the task, based on the logs of the agent’s interactions.",Gs,Y,ft,Ss,Gn,El="Runs the agent for the given task.",Xs,he,Qs,$e,ut,Ys,Sn,Pl="Runs the agent in streaming mode, yielding steps as they are executed: should be launched only in the <code>run</code> method.",ar,F,ht,Os,Xn,Vl=`This agent that solves the given task step by step, using the ReAct framework:
While the objective is not reached, the agent will perform a cycle of thinking and acting.
The tool calls will be formulated by the LLM in JSON format, then parsed and executed.`,Ks,be,$t,ea,Qn,Hl=`Perform one step in the ReAct framework: the agent thinks, acts, and observes the result.
The errors are raised here, they are caught and logged in the run() method.`,lr,z,bt,ta,Yn,Zl=`This agent that solves the given task step by step, using the ReAct framework:
While the objective is not reached, the agent will perform a cycle of thinking and acting.
The tool calls will be formulated by the LLM in code format, then parsed and executed.`,na,ve,vt,oa,On,ql=`Perform one step in the ReAct framework: the agent thinks, acts, and observes the result.
The errors are raised here, they are caught and logged in the run() method.`,ir,_t,mr,yt,Tt,dr,xt,pr,wt,gr,G,Mt,ra,Kn,Nl="Main function to quickly load a tool, be it on the Hub or in the Transformers library.",sa,_e,cr,Ct,fr,ee,kt,aa,eo,Rl="Converts a function into an instance of a Tool subclass.",ur,It,hr,C,jt,la,to,Wl=`A base class for the functions used by the agent. Subclass this and implement the <code>__call__</code> method as well as the
following class attributes:`,ia,no,Dl=`<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]]]</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>`,ma,oo,Bl=`You can also override the method <a href="/docs/transformers/main/en/main_classes/agent#transformers.Tool.setup">setup()</a> if your tool as an expensive operation to perform before being
usable (such as loading a model). <a href="/docs/transformers/main/en/main_classes/agent#transformers.Tool.setup">setup()</a> will be called the first time you use your tool, but not at
instantiation.`,da,ye,At,pa,ro,Fl='Creates a <a href="/docs/transformers/main/en/main_classes/agent#transformers.Tool">Tool</a> from a gradio tool.',ga,O,Jt,ca,so,zl="Loads a tool defined on the Hub.",fa,Te,ua,xe,Lt,ha,ao,Gl='Creates a <a href="/docs/transformers/main/en/main_classes/agent#transformers.Tool">Tool</a> from a langchain tool.',$a,W,Ut,ba,lo,Sl='Creates a <a href="/docs/transformers/main/en/main_classes/agent#transformers.Tool">Tool</a> from a Space given its id on the Hub.',va,we,_a,Me,ya,D,Et,Ta,io,Xl="Upload the tool to the Hub.",xa,mo,Ql="For this method to work properly, your tool must have been defined in a separate module (not <code>__main__</code>).",wa,Ce,Ma,B,Pt,Ca,po,Yl=`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:`,ka,go,Ol=`<li>a config file named <code>tool_config.json</code></li> <li>an <code>app.py</code> file so that your tool can be converted to a space</li> <li>a <code>requirements.txt</code> containing the names of the module used by your tool (as detected when inspecting its
code)</li>`,Ia,co,Kl="You should only use this method to save tools that are defined in a separate module (not <code>__main__</code>).",ja,ke,Vt,Aa,fo,ei=`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.`,$r,Ht,br,J,Zt,Ja,uo,ti=`The toolbox contains all tools that the agent can perform operations with, as well as a few methods to
manage them.`,La,Ie,qt,Ua,ho,ni="Adds a tool to the toolbox",Ea,je,Nt,Pa,$o,oi="Clears the toolbox",Va,Ae,Rt,Ha,bo,ri="Removes a tool from the toolbox",Za,Je,Wt,qa,vo,si="Returns the description of all tools in the toolbox",Na,Le,Dt,Ra,_o,ai="Updates a tool in the toolbox according to its name.",vr,Bt,_r,L,Ft,Wa,yo,li=`A <a href="/docs/transformers/main/en/main_classes/agent#transformers.Tool">Tool</a> tailored towards Transformer models. On top of the class attributes of the base class <a href="/docs/transformers/main/en/main_classes/agent#transformers.Tool">Tool</a>, you will
need to specify:`,Da,To,ii=`<li><strong>model_class</strong> (<code>type</code>) — The class to use to load the model in this tool.</li> <li><strong>default_checkpoint</strong> (<code>str</code>) — The default checkpoint that should be used when the user doesn’t specify one.</li> <li><strong>pre_processor_class</strong> (<code>type</code>, <em>optional</em>, defaults to <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a>) — The class to use to load the
pre-processor</li> <li><strong>post_processor_class</strong> (<code>type</code>, <em>optional</em>, defaults to <a href="/docs/transformers/main/en/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a>) — The class to use to load the
post-processor (when different from the pre-processor).</li>`,Ba,Ue,zt,Fa,xo,mi="Uses the <code>post_processor</code> to decode the model output.",za,Ee,Gt,Ga,wo,di="Uses the <code>pre_processor</code> to prepare the inputs for the <code>model</code>.",Sa,Pe,St,Xa,Mo,pi="Sends the inputs through the <code>model</code>.",Qa,Ve,Xt,Ya,Co,gi="Instantiates the <code>pre_processor</code>, <code>model</code> and <code>post_processor</code> if necessary.",yr,Qt,Tr,te,Yt,Oa,ko,ci=`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>.`,xr,Ot,wr,ne,Kt,Ka,Io,fi="Runs an agent with the given task and streams the messages from the agent as gradio ChatMessages.",Mr,en,Cr,q,tn,el,jo,ui="Tool collections enable loading all Spaces from a collection in order to be added to the agent’s toolbox.",tl,Ao,hi=`<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>`,nl,He,kr,nn,Ir,on,$i=`You’re free to create and use your own engines to be usable by the Agents framework.
These engines have the following specification:`,jr,rn,bi='<li>Follow the <a href="../chat_templating.md">messages format</a> for its input (<code>List[Dict[str, str]]</code>) and return a string.</li> <li>Stop generating outputs <em>before</em> the sequences passed in the argument <code>stop_sequences</code></li>',Ar,sn,Jr,an,vi="For convenience, we have added a <code>TransformersEngine</code> that implements the points above, taking a pre-initialized <code>Pipeline</code> as input.",Lr,ln,Ur,oe,mn,ol,Jo,_i="This engine uses a pre-initialized local text-generation pipeline.",Er,dn,Pr,pn,yi='The <code>HfApiEngine</code> is an engine that wraps an <a href="https://huggingface.co/docs/api-inference/index" rel="nofollow">HF Inference API</a> client for the execution of the LLM.',Vr,gn,Hr,S,cn,rl,Lo,Ti="A class to interact with Hugging Face’s Inference API for language model interaction.",sl,Uo,xi="This engine allows you to communicate with Hugging Face’s models using the Inference API. It can be used in both serverless mode or with a dedicated endpoint, supporting features like stop sequences and grammar customization.",Zr,fn,qr,un,wi=`Agents can handle any type of object in-between tools; tools, being completely multimodal, can accept and return
text, image, audio, video, among other types. In order to increase compatibility between tools, as well as to
correctly render these returns in ipython (jupyter, colab, ipython notebooks, …), we implement wrapper classes
around these types.`,Nr,hn,Mi=`The wrapped objects should continue behaving as initially; a text object should still behave as a string, an image
object should still behave as a <code>PIL.Image</code>.`,Rr,$n,Ci="These types have three specific purposes:",Wr,bn,ki=`<li>Calling <code>to_raw</code> on the type should return the underlying object</li> <li>Calling <code>to_string</code> on the type should return the object as a string: that can be the string in case of an <code>AgentText</code>
but will be the path of the serialized version of the object in other instances</li> <li>Displaying it in an ipython kernel should display the object correctly</li>`,Dr,vn,Br,re,_n,al,Eo,Ii="Text type returned by the agent. Behaves as a string.",Fr,yn,zr,P,Tn,ll,Po,ji="Image type returned by the agent. Behaves as a PIL.Image.",il,Ze,xn,ml,Vo,Ai="Saves the image to a file.",dl,qe,wn,pl,Ho,Ji="Returns the “raw” version of that object. In the case of an AgentImage, it is a PIL.Image.",gl,Ne,Mn,cl,Zo,Li=`Returns the stringified version of that object. In the case of an AgentImage, it is a path to the serialized
version of the image.`,Gr,Cn,Sr,N,kn,fl,qo,Ui="Audio type returned by the agent.",ul,Re,In,hl,No,Ei="Returns the “raw” version of that object. It is a <code>torch.Tensor</code> object.",$l,We,jn,bl,Ro,Pi=`Returns the stringified version of that object. In the case of an AgentAudio, it is a path to the serialized
version of the audio.`,Xr,An,Qr,Xo,Yr;return w=new I({props:{title:"Agents & Tools",local:"agents--tools",headingTag:"h1"}}),M=new vl({props:{warning:!0,$$slots:{default:[Di]},$$scope:{ctx:j}}}),Qe=new I({props:{title:"Agents",local:"agents",headingTag:"h2"}}),Ke=new I({props:{title:"Agent",local:"transformers.Agent",headingTag:"h3"}}),et=new y({props:{name:"class transformers.Agent",anchor:"transformers.Agent",parameters:[{name:"tools",val:": typing.Union[typing.List[transformers.agents.tools.Tool], transformers.agents.agents.Toolbox]"},{name:"llm_engine",val:": typing.Callable = None"},{name:"system_prompt",val:": typing.Optional[str] = None"},{name:"tool_description_template",val:": typing.Optional[str] = None"},{name:"additional_args",val:": typing.Dict = {}"},{name:"max_iterations",val:": int = 6"},{name:"tool_parser",val:": typing.Optional[typing.Callable] = None"},{name:"add_base_tools",val:": bool = False"},{name:"verbose",val:": int = 0"},{name:"grammar",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"managed_agents",val:": typing.Optional[typing.List] = None"},{name:"step_callbacks",val:": typing.Optional[typing.List[typing.Callable]] = None"},{name:"monitor_metrics",val:": bool = True"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L354"}}),tt=new y({props:{name:"execute_tool_call",anchor:"transformers.Agent.execute_tool_call",parameters:[{name:"tool_name",val:": str"},{name:"arguments",val:": typing.Dict[str, str]"}],parametersDescription:[{anchor:"transformers.Agent.execute_tool_call.tool_name",description:"<strong>tool_name</strong> (<code>str</code>) &#x2014; Name of the Tool to execute (should be one from self.toolbox).",name:"tool_name"},{anchor:"transformers.Agent.execute_tool_call.arguments",description:"<strong>arguments</strong> (Dict[str, str]) &#x2014; Arguments passed to the Tool.",name:"arguments"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L530"}}),nt=new y({props:{name:"extract_action",anchor:"transformers.Agent.extract_action",parameters:[{name:"llm_output",val:": str"},{name:"split_token",val:": str"}],parametersDescription:[{anchor:"transformers.Agent.extract_action.llm_output",description:"<strong>llm_output</strong> (<code>str</code>) &#x2014; Output of the LLM",name:"llm_output"},{anchor:"transformers.Agent.extract_action.split_token",description:"<strong>split_token</strong> (<code>str</code>) &#x2014; Separator for the action. Should match the example in the system prompt.",name:"split_token"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L509"}}),ot=new y({props:{name:"run",anchor:"transformers.Agent.run",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L585"}}),rt=new y({props:{name:"write_inner_memory_from_logs",anchor:"transformers.Agent.write_inner_memory_from_logs",parameters:[{name:"summary_mode",val:": typing.Optional[bool] = False"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L449"}}),st=new I({props:{title:"CodeAgent",local:"transformers.CodeAgent",headingTag:"h3"}}),at=new y({props:{name:"class transformers.CodeAgent",anchor:"transformers.CodeAgent",parameters:[{name:"tools",val:": typing.List[transformers.agents.tools.Tool]"},{name:"llm_engine",val:": typing.Optional[typing.Callable] = None"},{name:"system_prompt",val:": typing.Optional[str] = None"},{name:"tool_description_template",val:": typing.Optional[str] = None"},{name:"grammar",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"additional_authorized_imports",val:": typing.Optional[typing.List[str]] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L590"}}),lt=new y({props:{name:"parse_code_blob",anchor:"transformers.CodeAgent.parse_code_blob",parameters:[{name:"result",val:": str"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L632"}}),it=new y({props:{name:"run",anchor:"transformers.CodeAgent.run",parameters:[{name:"task",val:": str"},{name:"return_generated_code",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.CodeAgent.run.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; The task to perform",name:"task"},{anchor:"transformers.CodeAgent.run.return_generated_code",description:"<strong>return_generated_code</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014; Whether to return the generated code instead of running it",name:"return_generated_code"},{anchor:"transformers.CodeAgent.run.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Any keyword argument to send to the agent when evaluating the code.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L639"}}),ge=new So({props:{anchor:"transformers.CodeAgent.run.example",$$slots:{default:[Bi]},$$scope:{ctx:j}}}),mt=new I({props:{title:"React agents",local:"transformers.ReactAgent",headingTag:"h3"}}),dt=new y({props:{name:"class transformers.ReactAgent",anchor:"transformers.ReactAgent",parameters:[{name:"tools",val:": typing.List[transformers.agents.tools.Tool]"},{name:"llm_engine",val:": typing.Optional[typing.Callable] = None"},{name:"system_prompt",val:": typing.Optional[str] = None"},{name:"tool_description_template",val:": typing.Optional[str] = None"},{name:"grammar",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"plan_type",val:": typing.Optional[str] = None"},{name:"planning_interval",val:": typing.Optional[int] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L716"}}),pt=new y({props:{name:"direct_run",anchor:"transformers.ReactAgent.direct_run",parameters:[{name:"task",val:": str"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L844"}}),gt=new y({props:{name:"planning_step",anchor:"transformers.ReactAgent.planning_step",parameters:[{name:"task",val:""},{name:"is_first_step",val:": bool = False"},{name:"iteration",val:": int = None"}],parametersDescription:[{anchor:"transformers.ReactAgent.planning_step.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; The task to perform",name:"task"},{anchor:"transformers.ReactAgent.planning_step.is_first_step",description:"<strong>is_first_step</strong> (<code>bool</code>) &#x2014; If this step is not the first one, the plan should be an update over a previous plan.",name:"is_first_step"},{anchor:"transformers.ReactAgent.planning_step.iteration",description:"<strong>iteration</strong> (<code>int</code>) &#x2014; The number of the current step, used as an indication for the LLM.",name:"iteration"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L884"}}),ct=new y({props:{name:"provide_final_answer",anchor:"transformers.ReactAgent.provide_final_answer",parameters:[{name:"task",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L755"}}),ft=new y({props:{name:"run",anchor:"transformers.ReactAgent.run",parameters:[{name:"task",val:": str"},{name:"stream",val:": bool = False"},{name:"reset",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ReactAgent.run.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; The task to perform",name:"task"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L777"}}),he=new So({props:{anchor:"transformers.ReactAgent.run.example",$$slots:{default:[Fi]},$$scope:{ctx:j}}}),ut=new y({props:{name:"stream_run",anchor:"transformers.ReactAgent.stream_run",parameters:[{name:"task",val:": str"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L804"}}),ht=new y({props:{name:"class transformers.ReactJsonAgent",anchor:"transformers.ReactJsonAgent",parameters:[{name:"tools",val:": typing.List[transformers.agents.tools.Tool]"},{name:"llm_engine",val:": typing.Optional[typing.Callable] = None"},{name:"system_prompt",val:": typing.Optional[str] = None"},{name:"tool_description_template",val:": typing.Optional[str] = None"},{name:"grammar",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"planning_interval",val:": typing.Optional[int] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L984"}}),$t=new y({props:{name:"step",anchor:"transformers.ReactJsonAgent.step",parameters:[{name:"log_entry",val:": typing.Dict[str, typing.Any]"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L1017"}}),bt=new y({props:{name:"class transformers.ReactCodeAgent",anchor:"transformers.ReactCodeAgent",parameters:[{name:"tools",val:": typing.List[transformers.agents.tools.Tool]"},{name:"llm_engine",val:": typing.Optional[typing.Callable] = None"},{name:"system_prompt",val:": typing.Optional[str] = None"},{name:"tool_description_template",val:": typing.Optional[str] = None"},{name:"grammar",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"additional_authorized_imports",val:": typing.Optional[typing.List[str]] = None"},{name:"planning_interval",val:": typing.Optional[int] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L1095"}}),vt=new y({props:{name:"step",anchor:"transformers.ReactCodeAgent.step",parameters:[{name:"log_entry",val:": typing.Dict[str, typing.Any]"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L1142"}}),_t=new I({props:{title:"ManagedAgent",local:"transformers.ManagedAgent",headingTag:"h3"}}),Tt=new y({props:{name:"class transformers.ManagedAgent",anchor:"transformers.ManagedAgent",parameters:[{name:"agent",val:""},{name:"name",val:""},{name:"description",val:""},{name:"additional_prompting",val:" = None"},{name:"provide_run_summary",val:" = False"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L1227"}}),xt=new I({props:{title:"Tools",local:"tools",headingTag:"h2"}}),wt=new I({props:{title:"load_tool",local:"transformers.load_tool",headingTag:"h3"}}),Mt=new y({props:{name:"transformers.load_tool",anchor:"transformers.load_tool",parameters:[{name:"task_or_repo_id",val:""},{name:"model_repo_id",val:" = None"},{name:"token",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.load_tool.task_or_repo_id",description:`<strong>task_or_repo_id</strong> (<code>str</code>) &#x2014;
The task for which to load the tool or a repo ID of a tool on the Hub. Tasks implemented in Transformers
are:</p>
<ul>
<li><code>&quot;document_question_answering&quot;</code></li>
<li><code>&quot;image_question_answering&quot;</code></li>
<li><code>&quot;speech_to_text&quot;</code></li>
<li><code>&quot;text_to_speech&quot;</code></li>
<li><code>&quot;translation&quot;</code></li>
</ul>`,name:"task_or_repo_id"},{anchor:"transformers.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:"transformers.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:"transformers.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/transformers/blob/main/src/transformers/agents/tools.py#L825"}}),_e=new vl({props:{warning:!0,$$slots:{default:[zi]},$$scope:{ctx:j}}}),Ct=new I({props:{title:"tool",local:"transformers.tool",headingTag:"h3"}}),kt=new y({props:{name:"transformers.tool",anchor:"transformers.tool",parameters:[{name:"tool_function",val:": typing.Callable"}],parametersDescription:[{anchor:"transformers.tool.tool_function",description:"<strong>tool_function</strong> &#x2014; Your function. Should have type hints for each input and a type hint for the output.",name:"tool_function"},{anchor:"transformers.tool.Should",description:"<strong>Should</strong> also have a docstring description including an &#x2018;Args &#x2014;&#x2019; part where each argument is described.",name:"Should"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L972"}}),It=new I({props:{title:"Tool",local:"transformers.Tool",headingTag:"h3"}}),jt=new y({props:{name:"class transformers.Tool",anchor:"transformers.Tool",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L108"}}),At=new y({props:{name:"from_gradio",anchor:"transformers.Tool.from_gradio",parameters:[{name:"gradio_tool",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L537"}}),Jt=new y({props:{name:"from_hub",anchor:"transformers.Tool.from_hub",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Tool.from_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repo on the Hub where your tool is defined.`,name:"repo_id"},{anchor:"transformers.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:"transformers.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/transformers/blob/main/src/transformers/agents/tools.py#L253"}}),Te=new vl({props:{warning:!0,$$slots:{default:[Gi]},$$scope:{ctx:j}}}),Lt=new y({props:{name:"from_langchain",anchor:"transformers.Tool.from_langchain",parameters:[{name:"langchain_tool",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L558"}}),Ut=new y({props:{name:"from_space",anchor:"transformers.Tool.from_space",parameters:[{name:"space_id",val:": str"},{name:"name",val:": str"},{name:"description",val:": str"},{name:"api_name",val:": typing.Optional[str] = None"},{name:"token",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"transformers.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:"transformers.Tool.from_space.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The name of the tool.`,name:"name"},{anchor:"transformers.Tool.from_space.description",description:`<strong>description</strong> (<code>str</code>) &#x2014;
The description of the tool.`,name:"description"},{anchor:"transformers.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:"transformers.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/transformers/blob/main/src/transformers/agents/tools.py#L421",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/transformers/main/en/main_classes/agent#transformers.Tool">Tool</a></p>
`}}),we=new So({props:{anchor:"transformers.Tool.from_space.example",$$slots:{default:[Si]},$$scope:{ctx:j}}}),Me=new So({props:{anchor:"transformers.Tool.from_space.example-2",$$slots:{default:[Xi]},$$scope:{ctx:j}}}),Et=new y({props:{name:"push_to_hub",anchor:"transformers.Tool.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"commit_message",val:": str = 'Upload tool'"},{name:"private",val:": typing.Optional[bool] = None"},{name:"token",val:": typing.Union[bool, str, NoneType] = None"},{name:"create_pr",val:": bool = False"}],parametersDescription:[{anchor:"transformers.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:"transformers.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:"transformers.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:"transformers.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:"transformers.Tool.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L364"}}),Ce=new So({props:{anchor:"transformers.Tool.push_to_hub.example",$$slots:{default:[Qi]},$$scope:{ctx:j}}}),Pt=new y({props:{name:"save",anchor:"transformers.Tool.save",parameters:[{name:"output_dir",val:""}],parametersDescription:[{anchor:"transformers.Tool.save.output_dir",description:"<strong>output_dir</strong> (<code>str</code>) &#x2014; The folder in which you want to save your tool.",name:"output_dir"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L193"}}),Vt=new y({props:{name:"setup",anchor:"transformers.Tool.setup",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L186"}}),Ht=new I({props:{title:"Toolbox",local:"transformers.Toolbox",headingTag:"h3"}}),Zt=new y({props:{name:"class transformers.Toolbox",anchor:"transformers.Toolbox",parameters:[{name:"tools",val:": typing.List[transformers.agents.tools.Tool]"},{name:"add_base_tools",val:": bool = False"}],parametersDescription:[{anchor:"transformers.Toolbox.tools",description:`<strong>tools</strong> (<code>List[Tool]</code>) &#x2014;
The list of tools to instantiate the toolbox with`,name:"tools"},{anchor:"transformers.Toolbox.add_base_tools",description:`<strong>add_base_tools</strong> (<code>bool</code>, defaults to <code>False</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to add the tools available within <code>transformers</code> to the toolbox.`,name:"add_base_tools"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L184"}}),qt=new y({props:{name:"add_tool",anchor:"transformers.Toolbox.add_tool",parameters:[{name:"tool",val:": Tool"}],parametersDescription:[{anchor:"transformers.Toolbox.add_tool.tool",description:`<strong>tool</strong> (<code>Tool</code>) &#x2014;
The tool to add to the toolbox.`,name:"tool"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L230"}}),Nt=new y({props:{name:"clear_toolbox",anchor:"transformers.Toolbox.clear_toolbox",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L270"}}),Rt=new y({props:{name:"remove_tool",anchor:"transformers.Toolbox.remove_tool",parameters:[{name:"tool_name",val:": str"}],parametersDescription:[{anchor:"transformers.Toolbox.remove_tool.tool_name",description:`<strong>tool_name</strong> (<code>str</code>) &#x2014;
The tool to remove from the toolbox.`,name:"tool_name"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L242"}}),Wt=new y({props:{name:"show_tool_descriptions",anchor:"transformers.Toolbox.show_tool_descriptions",parameters:[{name:"tool_description_template",val:": str = None"}],parametersDescription:[{anchor:"transformers.Toolbox.show_tool_descriptions.tool_description_template",description:`<strong>tool_description_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The template to use to describe the tools. If not provided, the default template will be used.`,name:"tool_description_template"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L218"}}),Dt=new y({props:{name:"update_tool",anchor:"transformers.Toolbox.update_tool",parameters:[{name:"tool",val:": Tool"}],parametersDescription:[{anchor:"transformers.Toolbox.update_tool.tool",description:`<strong>tool</strong> (<code>Tool</code>) &#x2014;
The tool to update to the toolbox.`,name:"tool"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L256"}}),Bt=new I({props:{title:"PipelineTool",local:"transformers.PipelineTool",headingTag:"h3"}}),Ft=new y({props:{name:"class transformers.PipelineTool",anchor:"transformers.PipelineTool",parameters:[{name:"model",val:" = None"},{name:"pre_processor",val:" = None"},{name:"post_processor",val:" = None"},{name:"device",val:" = None"},{name:"device_map",val:" = None"},{name:"model_kwargs",val:" = None"},{name:"token",val:" = None"},{name:"**hub_kwargs",val:""}],parametersDescription:[{anchor:"transformers.PipelineTool.model",description:`<strong>model</strong> (<code>str</code> or <a href="/docs/transformers/main/en/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>, <em>optional</em>) &#x2014;
The name of the checkpoint to use for the model, or the instantiated model. If unset, will default to the
value of the class attribute <code>default_checkpoint</code>.`,name:"model"},{anchor:"transformers.PipelineTool.pre_processor",description:`<strong>pre_processor</strong> (<code>str</code> or <code>Any</code>, <em>optional</em>) &#x2014;
The name of the checkpoint to use for the pre-processor, or the instantiated pre-processor (can be a
tokenizer, an image processor, a feature extractor or a processor). Will default to the value of <code>model</code> if
unset.`,name:"pre_processor"},{anchor:"transformers.PipelineTool.post_processor",description:`<strong>post_processor</strong> (<code>str</code> or <code>Any</code>, <em>optional</em>) &#x2014;
The name of the checkpoint to use for the post-processor, or the instantiated pre-processor (can be a
tokenizer, an image processor, a feature extractor or a processor). Will default to the <code>pre_processor</code> if
unset.`,name:"post_processor"},{anchor:"transformers.PipelineTool.device",description:`<strong>device</strong> (<code>int</code>, <code>str</code> or <code>torch.device</code>, <em>optional</em>) &#x2014;
The device on which to execute the model. Will default to any accelerator available (GPU, MPS etc&#x2026;), the
CPU otherwise.`,name:"device"},{anchor:"transformers.PipelineTool.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>dict</code>, <em>optional</em>) &#x2014;
If passed along, will be used to instantiate the model.`,name:"device_map"},{anchor:"transformers.PipelineTool.model_kwargs",description:`<strong>model_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Any keyword argument to send to the model instantiation.`,name:"model_kwargs"},{anchor:"transformers.PipelineTool.token",description:`<strong>token</strong> (<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:"transformers.PipelineTool.hub_kwargs",description:`<strong>hub_kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Any additional keyword argument to send to the methods that will load the data from the Hub.`,name:"hub_kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L622"}}),zt=new y({props:{name:"decode",anchor:"transformers.PipelineTool.decode",parameters:[{name:"outputs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L745"}}),Gt=new y({props:{name:"encode",anchor:"transformers.PipelineTool.encode",parameters:[{name:"raw_inputs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L732"}}),St=new y({props:{name:"forward",anchor:"transformers.PipelineTool.forward",parameters:[{name:"inputs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L738"}}),Xt=new y({props:{name:"setup",anchor:"transformers.PipelineTool.setup",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L706"}}),Qt=new I({props:{title:"launch_gradio_demo",local:"transformers.launch_gradio_demo",headingTag:"h3"}}),Yt=new y({props:{name:"transformers.launch_gradio_demo",anchor:"transformers.launch_gradio_demo",parameters:[{name:"tool_class",val:": Tool"}],parametersDescription:[{anchor:"transformers.launch_gradio_demo.tool_class",description:"<strong>tool_class</strong> (<code>type</code>) &#x2014; The class of the tool for which to launch the demo.",name:"tool_class"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L770"}}),Ot=new I({props:{title:"stream_to_gradio",local:"transformers.stream_to_gradio",headingTag:"h3"}}),Kt=new y({props:{name:"transformers.stream_to_gradio",anchor:"transformers.stream_to_gradio",parameters:[{name:"agent",val:""},{name:"task",val:": str"},{name:"test_mode",val:": bool = False"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/monitoring.py#L60"}}),en=new I({props:{title:"ToolCollection",local:"transformers.ToolCollection",headingTag:"h3"}}),tn=new y({props:{name:"class transformers.ToolCollection",anchor:"transformers.ToolCollection",parameters:[{name:"collection_slug",val:": str"},{name:"token",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"transformers.ToolCollection.collection_slug",description:`<strong>collection_slug</strong> (str) &#x2014;
The collection slug referencing the collection.`,name:"collection_slug"},{anchor:"transformers.ToolCollection.token",description:`<strong>token</strong> (str, <em>optional</em>) &#x2014;
The authentication token if the collection is private.`,name:"token"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L940"}}),He=new So({props:{anchor:"transformers.ToolCollection.example",$$slots:{default:[Yi]},$$scope:{ctx:j}}}),nn=new I({props:{title:"Engines",local:"engines",headingTag:"h2"}}),sn=new I({props:{title:"TransformersEngine",local:"transformers.TransformersEngine",headingTag:"h3"}}),ln=new Se({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF1dG9Nb2RlbEZvckNhdXNhbExNJTJDJTIwQXV0b1Rva2VuaXplciUyQyUyMHBpcGVsaW5lJTJDJTIwVHJhbnNmb3JtZXJzRW5naW5lJTBBJTBBbW9kZWxfbmFtZSUyMCUzRCUyMCUyMkh1Z2dpbmdGYWNlVEIlMkZTbW9sTE0tMTM1TS1JbnN0cnVjdCUyMiUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKG1vZGVsX25hbWUpJTBBbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWxGb3JDYXVzYWxMTS5mcm9tX3ByZXRyYWluZWQobW9kZWxfbmFtZSklMEElMEFwaXBlJTIwJTNEJTIwcGlwZWxpbmUoJTIydGV4dC1nZW5lcmF0aW9uJTIyJTJDJTIwbW9kZWwlM0Rtb2RlbCUyQyUyMHRva2VuaXplciUzRHRva2VuaXplciklMEElMEFlbmdpbmUlMjAlM0QlMjBUcmFuc2Zvcm1lcnNFbmdpbmUocGlwZSklMEFlbmdpbmUoJTVCJTdCJTIycm9sZSUyMiUzQSUyMCUyMnVzZXIlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIyT2shJTIyJTdEJTVEJTJDJTIwc3RvcF9zZXF1ZW5jZXMlM0QlNUIlMjJncmVhdCUyMiU1RCklMEE=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForCausalLM, AutoTokenizer, pipeline, TransformersEngine

<span class="hljs-meta">&gt;&gt;&gt; </span>model_name = <span class="hljs-string">&quot;HuggingFaceTB/SmolLM-135M-Instruct&quot;</span>
<span class="hljs-meta">&gt;&gt;&gt; </span>tokenizer = AutoTokenizer.from_pretrained(model_name)
<span class="hljs-meta">&gt;&gt;&gt; </span>model = AutoModelForCausalLM.from_pretrained(model_name)

<span class="hljs-meta">&gt;&gt;&gt; </span>pipe = pipeline(<span class="hljs-string">&quot;text-generation&quot;</span>, model=model, tokenizer=tokenizer)

<span class="hljs-meta">&gt;&gt;&gt; </span>engine = TransformersEngine(pipe)
<span class="hljs-meta">&gt;&gt;&gt; </span>engine([{<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;Ok!&quot;</span>}], stop_sequences=[<span class="hljs-string">&quot;great&quot;</span>])

<span class="hljs-string">&quot;What a &quot;</span>`,wrap:!1}}),mn=new y({props:{name:"class transformers.TransformersEngine",anchor:"transformers.TransformersEngine",parameters:[{name:"pipeline",val:": Pipeline"},{name:"model_id",val:": typing.Optional[str] = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/llm_engine.py#L196"}}),dn=new I({props:{title:"HfApiEngine",local:"transformers.HfApiEngine",headingTag:"h3"}}),gn=new Se({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEhmQXBpRW5naW5lJTBBJTBBbWVzc2FnZXMlMjAlM0QlMjAlNUIlMEElMjAlMjAlN0IlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlMjJIZWxsbyUyQyUyMGhvdyUyMGFyZSUyMHlvdSUzRiUyMiU3RCUyQyUwQSUyMCUyMCU3QiUyMnJvbGUlMjIlM0ElMjAlMjJhc3Npc3RhbnQlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIySSdtJTIwZG9pbmclMjBncmVhdC4lMjBIb3clMjBjYW4lMjBJJTIwaGVscCUyMHlvdSUyMHRvZGF5JTNGJTIyJTdEJTJDJTBBJTIwJTIwJTdCJTIycm9sZSUyMiUzQSUyMCUyMnVzZXIlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIyTm8lMjBuZWVkJTIwdG8lMjBoZWxwJTJDJTIwdGFrZSUyMGl0JTIwZWFzeS4lMjIlN0QlMkMlMEElNUQlMEElMEFIZkFwaUVuZ2luZSgpKG1lc3NhZ2VzJTJDJTIwc3RvcF9zZXF1ZW5jZXMlM0QlNUIlMjJjb252ZXJzYXRpb24lMjIlNUQpJTBB",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> HfApiEngine

<span class="hljs-meta">&gt;&gt;&gt; </span>messages = [
<span class="hljs-meta">... </span>  {<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;Hello, how are you?&quot;</span>},
<span class="hljs-meta">... </span>  {<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;assistant&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;I&#x27;m doing great. How can I help you today?&quot;</span>},
<span class="hljs-meta">... </span>  {<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;No need to help, take it easy.&quot;</span>},
<span class="hljs-meta">... </span>]

<span class="hljs-meta">&gt;&gt;&gt; </span>HfApiEngine()(messages, stop_sequences=[<span class="hljs-string">&quot;conversation&quot;</span>])

<span class="hljs-string">&quot;That&#x27;s very kind of you to say! It&#x27;s always nice to have a relaxed &quot;</span>`,wrap:!1}}),cn=new y({props:{name:"class transformers.HfApiEngine",anchor:"transformers.HfApiEngine",parameters:[{name:"model",val:": str = 'meta-llama/Meta-Llama-3.1-8B-Instruct'"},{name:"token",val:": typing.Optional[str] = None"},{name:"max_tokens",val:": typing.Optional[int] = 1500"},{name:"timeout",val:": typing.Optional[int] = 120"}],parametersDescription:[{anchor:"transformers.HfApiEngine.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;meta-llama/Meta-Llama-3.1-8B-Instruct&quot;</code>) &#x2014;
The Hugging Face model ID to be used for inference. This can be a path or model identifier from the Hugging Face model hub.`,name:"model"},{anchor:"transformers.HfApiEngine.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Token used by the Hugging Face API for authentication.
If not provided, the class will use the token stored in the Hugging Face CLI configuration.`,name:"token"},{anchor:"transformers.HfApiEngine.max_tokens",description:`<strong>max_tokens</strong> (<code>int</code>, <em>optional</em>, defaults to 1500) &#x2014;
The maximum number of tokens allowed in the output.`,name:"max_tokens"},{anchor:"transformers.HfApiEngine.timeout",description:`<strong>timeout</strong> (<code>int</code>, <em>optional</em>, defaults to 120) &#x2014;
Timeout for the API request, in seconds.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/llm_engine.py#L145",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>ValueError</code> —
If the model name is not provided.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValueError</code></p>
`}}),fn=new I({props:{title:"Agent Types",local:"agent-types",headingTag:"h2"}}),vn=new I({props:{title:"AgentText",local:"transformers.agents.agent_types.AgentText",headingTag:"h3"}}),_n=new y({props:{name:"class transformers.agents.agent_types.AgentText",anchor:"transformers.agents.agent_types.AgentText",parameters:[{name:"value",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agent_types.py#L73"}}),yn=new I({props:{title:"AgentImage",local:"transformers.agents.agent_types.AgentImage",headingTag:"h3"}}),Tn=new y({props:{name:"class transformers.agents.agent_types.AgentImage",anchor:"transformers.agents.agent_types.AgentImage",parameters:[{name:"value",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agent_types.py#L85"}}),xn=new y({props:{name:"save",anchor:"transformers.agents.agent_types.AgentImage.save",parameters:[{name:"output_bytes",val:""},{name:"format",val:""},{name:"**params",val:""}],parametersDescription:[{anchor:"transformers.agents.agent_types.AgentImage.save.output_bytes",description:"<strong>output_bytes</strong> (bytes) &#x2014; The output bytes to save the image to.",name:"output_bytes"},{anchor:"transformers.agents.agent_types.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:"transformers.agents.agent_types.AgentImage.save.*params",description:"*<strong>*params</strong> &#x2014; Additional parameters to pass to PIL.Image.save.",name:"*params"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agent_types.py#L162"}}),wn=new y({props:{name:"to_raw",anchor:"transformers.agents.agent_types.AgentImage.to_raw",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agent_types.py#L120"}}),Mn=new y({props:{name:"to_string",anchor:"transformers.agents.agent_types.AgentImage.to_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agent_types.py#L135"}}),Cn=new I({props:{title:"AgentAudio",local:"transformers.agents.agent_types.AgentAudio",headingTag:"h3"}}),kn=new y({props:{name:"class transformers.agents.agent_types.AgentAudio",anchor:"transformers.agents.agent_types.AgentAudio",parameters:[{name:"value",val:""},{name:"samplerate",val:" = 16000"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agent_types.py#L174"}}),In=new y({props:{name:"to_raw",anchor:"transformers.agents.agent_types.AgentAudio.to_raw",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agent_types.py#L210"}}),jn=new y({props:{name:"to_string",anchor:"transformers.agents.agent_types.AgentAudio.to_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agent_types.py#L222"}}),An=new Wi({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/en/main_classes/agent.md"}}),{c(){u=a("meta"),x=n(),b=a("p"),T=n(),m(w.$$.fragment),h=n(),m(M.$$.fragment),Qo=n(),Xe=a("p"),Xe.innerHTML=_l,Yo=n(),m(Qe.$$.fragment),Oo=n(),Ye=a("p"),Ye.innerHTML=yl,Ko=n(),Oe=a("ul"),Oe.innerHTML=Tl,er=n(),m(Ke.$$.fragment),tr=n(),E=a("div"),m(et.$$.fragment),Cs=n(),le=a("div"),m(tt.$$.fragment),ks=n(),Vn=a("p"),Vn.textContent=xl,Is=n(),ie=a("div"),m(nt.$$.fragment),js=n(),Hn=a("p"),Hn.textContent=wl,As=n(),me=a("div"),m(ot.$$.fragment),Js=n(),Zn=a("p"),Zn.textContent=Ml,Ls=n(),de=a("div"),m(rt.$$.fragment),Us=n(),qn=a("p"),qn.textContent=Cl,nr=n(),m(st.$$.fragment),or=n(),Z=a("div"),m(at.$$.fragment),Es=n(),Nn=a("p"),Nn.textContent=kl,Ps=n(),pe=a("div"),m(lt.$$.fragment),Vs=n(),Rn=a("p"),Rn.innerHTML=Il,Hs=n(),Q=a("div"),m(it.$$.fragment),Zs=n(),Wn=a("p"),Wn.textContent=jl,qs=n(),m(ge.$$.fragment),rr=n(),m(mt.$$.fragment),sr=n(),A=a("div"),m(dt.$$.fragment),Ns=n(),Dn=a("p"),Dn.textContent=Al,Rs=n(),ce=a("div"),m(pt.$$.fragment),Ws=n(),Bn=a("p"),Bn.innerHTML=Jl,Ds=n(),fe=a("div"),m(gt.$$.fragment),Bs=n(),Fn=a("p"),Fn.textContent=Ll,Fs=n(),ue=a("div"),m(ct.$$.fragment),zs=n(),zn=a("p"),zn.textContent=Ul,Gs=n(),Y=a("div"),m(ft.$$.fragment),Ss=n(),Gn=a("p"),Gn.textContent=El,Xs=n(),m(he.$$.fragment),Qs=n(),$e=a("div"),m(ut.$$.fragment),Ys=n(),Sn=a("p"),Sn.innerHTML=Pl,ar=n(),F=a("div"),m(ht.$$.fragment),Os=n(),Xn=a("p"),Xn.textContent=Vl,Ks=n(),be=a("div"),m($t.$$.fragment),ea=n(),Qn=a("p"),Qn.textContent=Hl,lr=n(),z=a("div"),m(bt.$$.fragment),ta=n(),Yn=a("p"),Yn.textContent=Zl,na=n(),ve=a("div"),m(vt.$$.fragment),oa=n(),On=a("p"),On.textContent=ql,ir=n(),m(_t.$$.fragment),mr=n(),yt=a("div"),m(Tt.$$.fragment),dr=n(),m(xt.$$.fragment),pr=n(),m(wt.$$.fragment),gr=n(),G=a("div"),m(Mt.$$.fragment),ra=n(),Kn=a("p"),Kn.textContent=Nl,sa=n(),m(_e.$$.fragment),cr=n(),m(Ct.$$.fragment),fr=n(),ee=a("div"),m(kt.$$.fragment),aa=n(),eo=a("p"),eo.textContent=Rl,ur=n(),m(It.$$.fragment),hr=n(),C=a("div"),m(jt.$$.fragment),la=n(),to=a("p"),to.innerHTML=Wl,ia=n(),no=a("ul"),no.innerHTML=Dl,ma=n(),oo=a("p"),oo.innerHTML=Bl,da=n(),ye=a("div"),m(At.$$.fragment),pa=n(),ro=a("p"),ro.innerHTML=Fl,ga=n(),O=a("div"),m(Jt.$$.fragment),ca=n(),so=a("p"),so.textContent=zl,fa=n(),m(Te.$$.fragment),ua=n(),xe=a("div"),m(Lt.$$.fragment),ha=n(),ao=a("p"),ao.innerHTML=Gl,$a=n(),W=a("div"),m(Ut.$$.fragment),ba=n(),lo=a("p"),lo.innerHTML=Sl,va=n(),m(we.$$.fragment),_a=n(),m(Me.$$.fragment),ya=n(),D=a("div"),m(Et.$$.fragment),Ta=n(),io=a("p"),io.textContent=Xl,xa=n(),mo=a("p"),mo.innerHTML=Ql,wa=n(),m(Ce.$$.fragment),Ma=n(),B=a("div"),m(Pt.$$.fragment),Ca=n(),po=a("p"),po.innerHTML=Yl,ka=n(),go=a("ul"),go.innerHTML=Ol,Ia=n(),co=a("p"),co.innerHTML=Kl,ja=n(),ke=a("div"),m(Vt.$$.fragment),Aa=n(),fo=a("p"),fo.textContent=ei,$r=n(),m(Ht.$$.fragment),br=n(),J=a("div"),m(Zt.$$.fragment),Ja=n(),uo=a("p"),uo.textContent=ti,La=n(),Ie=a("div"),m(qt.$$.fragment),Ua=n(),ho=a("p"),ho.textContent=ni,Ea=n(),je=a("div"),m(Nt.$$.fragment),Pa=n(),$o=a("p"),$o.textContent=oi,Va=n(),Ae=a("div"),m(Rt.$$.fragment),Ha=n(),bo=a("p"),bo.textContent=ri,Za=n(),Je=a("div"),m(Wt.$$.fragment),qa=n(),vo=a("p"),vo.textContent=si,Na=n(),Le=a("div"),m(Dt.$$.fragment),Ra=n(),_o=a("p"),_o.textContent=ai,vr=n(),m(Bt.$$.fragment),_r=n(),L=a("div"),m(Ft.$$.fragment),Wa=n(),yo=a("p"),yo.innerHTML=li,Da=n(),To=a("ul"),To.innerHTML=ii,Ba=n(),Ue=a("div"),m(zt.$$.fragment),Fa=n(),xo=a("p"),xo.innerHTML=mi,za=n(),Ee=a("div"),m(Gt.$$.fragment),Ga=n(),wo=a("p"),wo.innerHTML=di,Sa=n(),Pe=a("div"),m(St.$$.fragment),Xa=n(),Mo=a("p"),Mo.innerHTML=pi,Qa=n(),Ve=a("div"),m(Xt.$$.fragment),Ya=n(),Co=a("p"),Co.innerHTML=gi,yr=n(),m(Qt.$$.fragment),Tr=n(),te=a("div"),m(Yt.$$.fragment),Oa=n(),ko=a("p"),ko.innerHTML=ci,xr=n(),m(Ot.$$.fragment),wr=n(),ne=a("div"),m(Kt.$$.fragment),Ka=n(),Io=a("p"),Io.textContent=fi,Mr=n(),m(en.$$.fragment),Cr=n(),q=a("div"),m(tn.$$.fragment),el=n(),jo=a("p"),jo.textContent=ui,tl=n(),Ao=a("blockquote"),Ao.innerHTML=hi,nl=n(),m(He.$$.fragment),kr=n(),m(nn.$$.fragment),Ir=n(),on=a("p"),on.textContent=$i,jr=n(),rn=a("ol"),rn.innerHTML=bi,Ar=n(),m(sn.$$.fragment),Jr=n(),an=a("p"),an.innerHTML=vi,Lr=n(),m(ln.$$.fragment),Ur=n(),oe=a("div"),m(mn.$$.fragment),ol=n(),Jo=a("p"),Jo.textContent=_i,Er=n(),m(dn.$$.fragment),Pr=n(),pn=a("p"),pn.innerHTML=yi,Vr=n(),m(gn.$$.fragment),Hr=n(),S=a("div"),m(cn.$$.fragment),rl=n(),Lo=a("p"),Lo.textContent=Ti,sl=n(),Uo=a("p"),Uo.textContent=xi,Zr=n(),m(fn.$$.fragment),qr=n(),un=a("p"),un.textContent=wi,Nr=n(),hn=a("p"),hn.innerHTML=Mi,Rr=n(),$n=a("p"),$n.textContent=Ci,Wr=n(),bn=a("ul"),bn.innerHTML=ki,Dr=n(),m(vn.$$.fragment),Br=n(),re=a("div"),m(_n.$$.fragment),al=n(),Eo=a("p"),Eo.textContent=Ii,Fr=n(),m(yn.$$.fragment),zr=n(),P=a("div"),m(Tn.$$.fragment),ll=n(),Po=a("p"),Po.textContent=ji,il=n(),Ze=a("div"),m(xn.$$.fragment),ml=n(),Vo=a("p"),Vo.textContent=Ai,dl=n(),qe=a("div"),m(wn.$$.fragment),pl=n(),Ho=a("p"),Ho.textContent=Ji,gl=n(),Ne=a("div"),m(Mn.$$.fragment),cl=n(),Zo=a("p"),Zo.textContent=Li,Gr=n(),m(Cn.$$.fragment),Sr=n(),N=a("div"),m(kn.$$.fragment),fl=n(),qo=a("p"),qo.textContent=Ui,ul=n(),Re=a("div"),m(In.$$.fragment),hl=n(),No=a("p"),No.innerHTML=Ei,$l=n(),We=a("div"),m(jn.$$.fragment),bl=n(),Ro=a("p"),Ro.textContent=Pi,Xr=n(),m(An.$$.fragment),Qr=n(),Xo=a("p"),this.h()},l(e){const s=Ri("svelte-u9bgzb",document.head);u=l(s,"META",{name:!0,content:!0}),s.forEach(r),x=o(e),b=l(e,"P",{}),v(b).forEach(r),T=o(e),d(w.$$.fragment,e),h=o(e),d(M.$$.fragment,e),Qo=o(e),Xe=l(e,"P",{"data-svelte-h":!0}),$(Xe)!=="svelte-7mj07q"&&(Xe.innerHTML=_l),Yo=o(e),d(Qe.$$.fragment,e),Oo=o(e),Ye=l(e,"P",{"data-svelte-h":!0}),$(Ye)!=="svelte-n8fmrj"&&(Ye.innerHTML=yl),Ko=o(e),Oe=l(e,"UL",{"data-svelte-h":!0}),$(Oe)!=="svelte-kxuq94"&&(Oe.innerHTML=Tl),er=o(e),d(Ke.$$.fragment,e),tr=o(e),E=l(e,"DIV",{class:!0});var R=v(E);d(et.$$.fragment,R),Cs=o(R),le=l(R,"DIV",{class:!0});var Jn=v(le);d(tt.$$.fragment,Jn),ks=o(Jn),Vn=l(Jn,"P",{"data-svelte-h":!0}),$(Vn)!=="svelte-a91m64"&&(Vn.textContent=xl),Jn.forEach(r),Is=o(R),ie=l(R,"DIV",{class:!0});var Ln=v(ie);d(nt.$$.fragment,Ln),js=o(Ln),Hn=l(Ln,"P",{"data-svelte-h":!0}),$(Hn)!=="svelte-104knry"&&(Hn.textContent=wl),Ln.forEach(r),As=o(R),me=l(R,"DIV",{class:!0});var Un=v(me);d(ot.$$.fragment,Un),Js=o(Un),Zn=l(Un,"P",{"data-svelte-h":!0}),$(Zn)!=="svelte-wvvftk"&&(Zn.textContent=Ml),Un.forEach(r),Ls=o(R),de=l(R,"DIV",{class:!0});var En=v(de);d(rt.$$.fragment,En),Us=o(En),qn=l(En,"P",{"data-svelte-h":!0}),$(qn)!=="svelte-1cw6633"&&(qn.textContent=Cl),En.forEach(r),R.forEach(r),nr=o(e),d(st.$$.fragment,e),or=o(e),Z=l(e,"DIV",{class:!0});var X=v(Z);d(at.$$.fragment,X),Es=o(X),Nn=l(X,"P",{"data-svelte-h":!0}),$(Nn)!=="svelte-rq8zg0"&&(Nn.textContent=kl),Ps=o(X),pe=l(X,"DIV",{class:!0});var Pn=v(pe);d(lt.$$.fragment,Pn),Vs=o(Pn),Rn=l(Pn,"P",{"data-svelte-h":!0}),$(Rn)!=="svelte-tvi94l"&&(Rn.innerHTML=Il),Pn.forEach(r),Hs=o(X),Q=l(X,"DIV",{class:!0});var se=v(Q);d(it.$$.fragment,se),Zs=o(se),Wn=l(se,"P",{"data-svelte-h":!0}),$(Wn)!=="svelte-tbr5ck"&&(Wn.textContent=jl),qs=o(se),d(ge.$$.fragment,se),se.forEach(r),X.forEach(r),rr=o(e),d(mt.$$.fragment,e),sr=o(e),A=l(e,"DIV",{class:!0});var U=v(A);d(dt.$$.fragment,U),Ns=o(U),Dn=l(U,"P",{"data-svelte-h":!0}),$(Dn)!=="svelte-c95fji"&&(Dn.textContent=Al),Rs=o(U),ce=l(U,"DIV",{class:!0});var Or=v(ce);d(pt.$$.fragment,Or),Ws=o(Or),Bn=l(Or,"P",{"data-svelte-h":!0}),$(Bn)!=="svelte-17ywxxr"&&(Bn.innerHTML=Jl),Or.forEach(r),Ds=o(U),fe=l(U,"DIV",{class:!0});var Kr=v(fe);d(gt.$$.fragment,Kr),Bs=o(Kr),Fn=l(Kr,"P",{"data-svelte-h":!0}),$(Fn)!=="svelte-e54ku6"&&(Fn.textContent=Ll),Kr.forEach(r),Fs=o(U),ue=l(U,"DIV",{class:!0});var es=v(ue);d(ct.$$.fragment,es),zs=o(es),zn=l(es,"P",{"data-svelte-h":!0}),$(zn)!=="svelte-1ii4mb"&&(zn.textContent=Ul),es.forEach(r),Gs=o(U),Y=l(U,"DIV",{class:!0});var Wo=v(Y);d(ft.$$.fragment,Wo),Ss=o(Wo),Gn=l(Wo,"P",{"data-svelte-h":!0}),$(Gn)!=="svelte-tbr5ck"&&(Gn.textContent=El),Xs=o(Wo),d(he.$$.fragment,Wo),Wo.forEach(r),Qs=o(U),$e=l(U,"DIV",{class:!0});var ts=v($e);d(ut.$$.fragment,ts),Ys=o(ts),Sn=l(ts,"P",{"data-svelte-h":!0}),$(Sn)!=="svelte-nf9see"&&(Sn.innerHTML=Pl),ts.forEach(r),U.forEach(r),ar=o(e),F=l(e,"DIV",{class:!0});var Do=v(F);d(ht.$$.fragment,Do),Os=o(Do),Xn=l(Do,"P",{"data-svelte-h":!0}),$(Xn)!=="svelte-1ip7q5f"&&(Xn.textContent=Vl),Ks=o(Do),be=l(Do,"DIV",{class:!0});var ns=v(be);d($t.$$.fragment,ns),ea=o(ns),Qn=l(ns,"P",{"data-svelte-h":!0}),$(Qn)!=="svelte-1bbx2c8"&&(Qn.textContent=Hl),ns.forEach(r),Do.forEach(r),lr=o(e),z=l(e,"DIV",{class:!0});var Bo=v(z);d(bt.$$.fragment,Bo),ta=o(Bo),Yn=l(Bo,"P",{"data-svelte-h":!0}),$(Yn)!=="svelte-1egm30q"&&(Yn.textContent=Zl),na=o(Bo),ve=l(Bo,"DIV",{class:!0});var os=v(ve);d(vt.$$.fragment,os),oa=o(os),On=l(os,"P",{"data-svelte-h":!0}),$(On)!=="svelte-1bbx2c8"&&(On.textContent=ql),os.forEach(r),Bo.forEach(r),ir=o(e),d(_t.$$.fragment,e),mr=o(e),yt=l(e,"DIV",{class:!0});var Vi=v(yt);d(Tt.$$.fragment,Vi),Vi.forEach(r),dr=o(e),d(xt.$$.fragment,e),pr=o(e),d(wt.$$.fragment,e),gr=o(e),G=l(e,"DIV",{class:!0});var Fo=v(G);d(Mt.$$.fragment,Fo),ra=o(Fo),Kn=l(Fo,"P",{"data-svelte-h":!0}),$(Kn)!=="svelte-16uh3p8"&&(Kn.textContent=Nl),sa=o(Fo),d(_e.$$.fragment,Fo),Fo.forEach(r),cr=o(e),d(Ct.$$.fragment,e),fr=o(e),ee=l(e,"DIV",{class:!0});var rs=v(ee);d(kt.$$.fragment,rs),aa=o(rs),eo=l(rs,"P",{"data-svelte-h":!0}),$(eo)!=="svelte-1792ccx"&&(eo.textContent=Rl),rs.forEach(r),ur=o(e),d(It.$$.fragment,e),hr=o(e),C=l(e,"DIV",{class:!0});var k=v(C);d(jt.$$.fragment,k),la=o(k),to=l(k,"P",{"data-svelte-h":!0}),$(to)!=="svelte-cca4c5"&&(to.innerHTML=Wl),ia=o(k),no=l(k,"UL",{"data-svelte-h":!0}),$(no)!=="svelte-1cvtzkm"&&(no.innerHTML=Dl),ma=o(k),oo=l(k,"P",{"data-svelte-h":!0}),$(oo)!=="svelte-10s049q"&&(oo.innerHTML=Bl),da=o(k),ye=l(k,"DIV",{class:!0});var ss=v(ye);d(At.$$.fragment,ss),pa=o(ss),ro=l(ss,"P",{"data-svelte-h":!0}),$(ro)!=="svelte-548oc7"&&(ro.innerHTML=Fl),ss.forEach(r),ga=o(k),O=l(k,"DIV",{class:!0});var zo=v(O);d(Jt.$$.fragment,zo),ca=o(zo),so=l(zo,"P",{"data-svelte-h":!0}),$(so)!=="svelte-yy7b2c"&&(so.textContent=zl),fa=o(zo),d(Te.$$.fragment,zo),zo.forEach(r),ua=o(k),xe=l(k,"DIV",{class:!0});var as=v(xe);d(Lt.$$.fragment,as),ha=o(as),ao=l(as,"P",{"data-svelte-h":!0}),$(ao)!=="svelte-umcuss"&&(ao.innerHTML=Gl),as.forEach(r),$a=o(k),W=l(k,"DIV",{class:!0});var De=v(W);d(Ut.$$.fragment,De),ba=o(De),lo=l(De,"P",{"data-svelte-h":!0}),$(lo)!=="svelte-1sbm90g"&&(lo.innerHTML=Sl),va=o(De),d(we.$$.fragment,De),_a=o(De),d(Me.$$.fragment,De),De.forEach(r),ya=o(k),D=l(k,"DIV",{class:!0});var Be=v(D);d(Et.$$.fragment,Be),Ta=o(Be),io=l(Be,"P",{"data-svelte-h":!0}),$(io)!=="svelte-1u3gku9"&&(io.textContent=Xl),xa=o(Be),mo=l(Be,"P",{"data-svelte-h":!0}),$(mo)!=="svelte-1yeagwn"&&(mo.innerHTML=Ql),wa=o(Be),d(Ce.$$.fragment,Be),Be.forEach(r),Ma=o(k),B=l(k,"DIV",{class:!0});var Fe=v(B);d(Pt.$$.fragment,Fe),Ca=o(Fe),po=l(Fe,"P",{"data-svelte-h":!0}),$(po)!=="svelte-19evuwa"&&(po.innerHTML=Yl),ka=o(Fe),go=l(Fe,"UL",{"data-svelte-h":!0}),$(go)!=="svelte-15of9ze"&&(go.innerHTML=Ol),Ia=o(Fe),co=l(Fe,"P",{"data-svelte-h":!0}),$(co)!=="svelte-msa4ge"&&(co.innerHTML=Kl),Fe.forEach(r),ja=o(k),ke=l(k,"DIV",{class:!0});var ls=v(ke);d(Vt.$$.fragment,ls),Aa=o(ls),fo=l(ls,"P",{"data-svelte-h":!0}),$(fo)!=="svelte-63kthh"&&(fo.textContent=ei),ls.forEach(r),k.forEach(r),$r=o(e),d(Ht.$$.fragment,e),br=o(e),J=l(e,"DIV",{class:!0});var V=v(J);d(Zt.$$.fragment,V),Ja=o(V),uo=l(V,"P",{"data-svelte-h":!0}),$(uo)!=="svelte-1jgzyq0"&&(uo.textContent=ti),La=o(V),Ie=l(V,"DIV",{class:!0});var is=v(Ie);d(qt.$$.fragment,is),Ua=o(is),ho=l(is,"P",{"data-svelte-h":!0}),$(ho)!=="svelte-g8q0nk"&&(ho.textContent=ni),is.forEach(r),Ea=o(V),je=l(V,"DIV",{class:!0});var ms=v(je);d(Nt.$$.fragment,ms),Pa=o(ms),$o=l(ms,"P",{"data-svelte-h":!0}),$($o)!=="svelte-1l2znf2"&&($o.textContent=oi),ms.forEach(r),Va=o(V),Ae=l(V,"DIV",{class:!0});var ds=v(Ae);d(Rt.$$.fragment,ds),Ha=o(ds),bo=l(ds,"P",{"data-svelte-h":!0}),$(bo)!=="svelte-165lhg0"&&(bo.textContent=ri),ds.forEach(r),Za=o(V),Je=l(V,"DIV",{class:!0});var ps=v(Je);d(Wt.$$.fragment,ps),qa=o(ps),vo=l(ps,"P",{"data-svelte-h":!0}),$(vo)!=="svelte-15vkk0u"&&(vo.textContent=si),ps.forEach(r),Na=o(V),Le=l(V,"DIV",{class:!0});var gs=v(Le);d(Dt.$$.fragment,gs),Ra=o(gs),_o=l(gs,"P",{"data-svelte-h":!0}),$(_o)!=="svelte-1p64qrs"&&(_o.textContent=ai),gs.forEach(r),V.forEach(r),vr=o(e),d(Bt.$$.fragment,e),_r=o(e),L=l(e,"DIV",{class:!0});var H=v(L);d(Ft.$$.fragment,H),Wa=o(H),yo=l(H,"P",{"data-svelte-h":!0}),$(yo)!=="svelte-1tqfigx"&&(yo.innerHTML=li),Da=o(H),To=l(H,"UL",{"data-svelte-h":!0}),$(To)!=="svelte-n6zm2g"&&(To.innerHTML=ii),Ba=o(H),Ue=l(H,"DIV",{class:!0});var cs=v(Ue);d(zt.$$.fragment,cs),Fa=o(cs),xo=l(cs,"P",{"data-svelte-h":!0}),$(xo)!=="svelte-zkjq4t"&&(xo.innerHTML=mi),cs.forEach(r),za=o(H),Ee=l(H,"DIV",{class:!0});var fs=v(Ee);d(Gt.$$.fragment,fs),Ga=o(fs),wo=l(fs,"P",{"data-svelte-h":!0}),$(wo)!=="svelte-1vxzk80"&&(wo.innerHTML=di),fs.forEach(r),Sa=o(H),Pe=l(H,"DIV",{class:!0});var us=v(Pe);d(St.$$.fragment,us),Xa=o(us),Mo=l(us,"P",{"data-svelte-h":!0}),$(Mo)!=="svelte-1qgsi13"&&(Mo.innerHTML=pi),us.forEach(r),Qa=o(H),Ve=l(H,"DIV",{class:!0});var hs=v(Ve);d(Xt.$$.fragment,hs),Ya=o(hs),Co=l(hs,"P",{"data-svelte-h":!0}),$(Co)!=="svelte-1ojxz66"&&(Co.innerHTML=gi),hs.forEach(r),H.forEach(r),yr=o(e),d(Qt.$$.fragment,e),Tr=o(e),te=l(e,"DIV",{class:!0});var $s=v(te);d(Yt.$$.fragment,$s),Oa=o($s),ko=l($s,"P",{"data-svelte-h":!0}),$(ko)!=="svelte-j4u4it"&&(ko.innerHTML=ci),$s.forEach(r),xr=o(e),d(Ot.$$.fragment,e),wr=o(e),ne=l(e,"DIV",{class:!0});var bs=v(ne);d(Kt.$$.fragment,bs),Ka=o(bs),Io=l(bs,"P",{"data-svelte-h":!0}),$(Io)!=="svelte-3yyclm"&&(Io.textContent=fi),bs.forEach(r),Mr=o(e),d(en.$$.fragment,e),Cr=o(e),q=l(e,"DIV",{class:!0});var ze=v(q);d(tn.$$.fragment,ze),el=o(ze),jo=l(ze,"P",{"data-svelte-h":!0}),$(jo)!=="svelte-n5kqzu"&&(jo.textContent=ui),tl=o(ze),Ao=l(ze,"BLOCKQUOTE",{"data-svelte-h":!0}),$(Ao)!=="svelte-1ezz2hf"&&(Ao.innerHTML=hi),nl=o(ze),d(He.$$.fragment,ze),ze.forEach(r),kr=o(e),d(nn.$$.fragment,e),Ir=o(e),on=l(e,"P",{"data-svelte-h":!0}),$(on)!=="svelte-oor881"&&(on.textContent=$i),jr=o(e),rn=l(e,"OL",{"data-svelte-h":!0}),$(rn)!=="svelte-1fvckr8"&&(rn.innerHTML=bi),Ar=o(e),d(sn.$$.fragment,e),Jr=o(e),an=l(e,"P",{"data-svelte-h":!0}),$(an)!=="svelte-326rto"&&(an.innerHTML=vi),Lr=o(e),d(ln.$$.fragment,e),Ur=o(e),oe=l(e,"DIV",{class:!0});var vs=v(oe);d(mn.$$.fragment,vs),ol=o(vs),Jo=l(vs,"P",{"data-svelte-h":!0}),$(Jo)!=="svelte-phvciw"&&(Jo.textContent=_i),vs.forEach(r),Er=o(e),d(dn.$$.fragment,e),Pr=o(e),pn=l(e,"P",{"data-svelte-h":!0}),$(pn)!=="svelte-1korg3b"&&(pn.innerHTML=yi),Vr=o(e),d(gn.$$.fragment,e),Hr=o(e),S=l(e,"DIV",{class:!0});var Go=v(S);d(cn.$$.fragment,Go),rl=o(Go),Lo=l(Go,"P",{"data-svelte-h":!0}),$(Lo)!=="svelte-wuqm71"&&(Lo.textContent=Ti),sl=o(Go),Uo=l(Go,"P",{"data-svelte-h":!0}),$(Uo)!=="svelte-av1h5"&&(Uo.textContent=xi),Go.forEach(r),Zr=o(e),d(fn.$$.fragment,e),qr=o(e),un=l(e,"P",{"data-svelte-h":!0}),$(un)!=="svelte-jsq4jz"&&(un.textContent=wi),Nr=o(e),hn=l(e,"P",{"data-svelte-h":!0}),$(hn)!=="svelte-1ixcu88"&&(hn.innerHTML=Mi),Rr=o(e),$n=l(e,"P",{"data-svelte-h":!0}),$($n)!=="svelte-1nfvcwf"&&($n.textContent=Ci),Wr=o(e),bn=l(e,"UL",{"data-svelte-h":!0}),$(bn)!=="svelte-ysem30"&&(bn.innerHTML=ki),Dr=o(e),d(vn.$$.fragment,e),Br=o(e),re=l(e,"DIV",{class:!0});var _s=v(re);d(_n.$$.fragment,_s),al=o(_s),Eo=l(_s,"P",{"data-svelte-h":!0}),$(Eo)!=="svelte-57fhj7"&&(Eo.textContent=Ii),_s.forEach(r),Fr=o(e),d(yn.$$.fragment,e),zr=o(e),P=l(e,"DIV",{class:!0});var K=v(P);d(Tn.$$.fragment,K),ll=o(K),Po=l(K,"P",{"data-svelte-h":!0}),$(Po)!=="svelte-1hsb0qs"&&(Po.textContent=ji),il=o(K),Ze=l(K,"DIV",{class:!0});var ys=v(Ze);d(xn.$$.fragment,ys),ml=o(ys),Vo=l(ys,"P",{"data-svelte-h":!0}),$(Vo)!=="svelte-qix5eq"&&(Vo.textContent=Ai),ys.forEach(r),dl=o(K),qe=l(K,"DIV",{class:!0});var Ts=v(qe);d(wn.$$.fragment,Ts),pl=o(Ts),Ho=l(Ts,"P",{"data-svelte-h":!0}),$(Ho)!=="svelte-ybie7i"&&(Ho.textContent=Ji),Ts.forEach(r),gl=o(K),Ne=l(K,"DIV",{class:!0});var xs=v(Ne);d(Mn.$$.fragment,xs),cl=o(xs),Zo=l(xs,"P",{"data-svelte-h":!0}),$(Zo)!=="svelte-chc6sp"&&(Zo.textContent=Li),xs.forEach(r),K.forEach(r),Gr=o(e),d(Cn.$$.fragment,e),Sr=o(e),N=l(e,"DIV",{class:!0});var Ge=v(N);d(kn.$$.fragment,Ge),fl=o(Ge),qo=l(Ge,"P",{"data-svelte-h":!0}),$(qo)!=="svelte-ckiqb6"&&(qo.textContent=Ui),ul=o(Ge),Re=l(Ge,"DIV",{class:!0});var ws=v(Re);d(In.$$.fragment,ws),hl=o(ws),No=l(ws,"P",{"data-svelte-h":!0}),$(No)!=="svelte-10rnn1x"&&(No.innerHTML=Ei),ws.forEach(r),$l=o(Ge),We=l(Ge,"DIV",{class:!0});var Ms=v(We);d(jn.$$.fragment,Ms),bl=o(Ms),Ro=l(Ms,"P",{"data-svelte-h":!0}),$(Ro)!=="svelte-1xu9o93"&&(Ro.textContent=Pi),Ms.forEach(r),Ge.forEach(r),Xr=o(e),d(An.$$.fragment,e),Qr=o(e),Xo=l(e,"P",{}),v(Xo).forEach(r),this.h()},h(){_(u,"name","hf:doc:metadata"),_(u,"content",Ki),_(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ie,"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"),_(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Q,"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"),_(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ve,"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"),_(yt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(G,"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"),_(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(C,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Ue,"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"),_(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Ve,"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"),_(te,"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"),_(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Ze,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(qe,"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"),_(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(We,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(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(e,s){t(document.head,u),i(e,x,s),i(e,b,s),i(e,T,s),p(w,e,s),i(e,h,s),p(M,e,s),i(e,Qo,s),i(e,Xe,s),i(e,Yo,s),p(Qe,e,s),i(e,Oo,s),i(e,Ye,s),i(e,Ko,s),i(e,Oe,s),i(e,er,s),p(Ke,e,s),i(e,tr,s),i(e,E,s),p(et,E,null),t(E,Cs),t(E,le),p(tt,le,null),t(le,ks),t(le,Vn),t(E,Is),t(E,ie),p(nt,ie,null),t(ie,js),t(ie,Hn),t(E,As),t(E,me),p(ot,me,null),t(me,Js),t(me,Zn),t(E,Ls),t(E,de),p(rt,de,null),t(de,Us),t(de,qn),i(e,nr,s),p(st,e,s),i(e,or,s),i(e,Z,s),p(at,Z,null),t(Z,Es),t(Z,Nn),t(Z,Ps),t(Z,pe),p(lt,pe,null),t(pe,Vs),t(pe,Rn),t(Z,Hs),t(Z,Q),p(it,Q,null),t(Q,Zs),t(Q,Wn),t(Q,qs),p(ge,Q,null),i(e,rr,s),p(mt,e,s),i(e,sr,s),i(e,A,s),p(dt,A,null),t(A,Ns),t(A,Dn),t(A,Rs),t(A,ce),p(pt,ce,null),t(ce,Ws),t(ce,Bn),t(A,Ds),t(A,fe),p(gt,fe,null),t(fe,Bs),t(fe,Fn),t(A,Fs),t(A,ue),p(ct,ue,null),t(ue,zs),t(ue,zn),t(A,Gs),t(A,Y),p(ft,Y,null),t(Y,Ss),t(Y,Gn),t(Y,Xs),p(he,Y,null),t(A,Qs),t(A,$e),p(ut,$e,null),t($e,Ys),t($e,Sn),i(e,ar,s),i(e,F,s),p(ht,F,null),t(F,Os),t(F,Xn),t(F,Ks),t(F,be),p($t,be,null),t(be,ea),t(be,Qn),i(e,lr,s),i(e,z,s),p(bt,z,null),t(z,ta),t(z,Yn),t(z,na),t(z,ve),p(vt,ve,null),t(ve,oa),t(ve,On),i(e,ir,s),p(_t,e,s),i(e,mr,s),i(e,yt,s),p(Tt,yt,null),i(e,dr,s),p(xt,e,s),i(e,pr,s),p(wt,e,s),i(e,gr,s),i(e,G,s),p(Mt,G,null),t(G,ra),t(G,Kn),t(G,sa),p(_e,G,null),i(e,cr,s),p(Ct,e,s),i(e,fr,s),i(e,ee,s),p(kt,ee,null),t(ee,aa),t(ee,eo),i(e,ur,s),p(It,e,s),i(e,hr,s),i(e,C,s),p(jt,C,null),t(C,la),t(C,to),t(C,ia),t(C,no),t(C,ma),t(C,oo),t(C,da),t(C,ye),p(At,ye,null),t(ye,pa),t(ye,ro),t(C,ga),t(C,O),p(Jt,O,null),t(O,ca),t(O,so),t(O,fa),p(Te,O,null),t(C,ua),t(C,xe),p(Lt,xe,null),t(xe,ha),t(xe,ao),t(C,$a),t(C,W),p(Ut,W,null),t(W,ba),t(W,lo),t(W,va),p(we,W,null),t(W,_a),p(Me,W,null),t(C,ya),t(C,D),p(Et,D,null),t(D,Ta),t(D,io),t(D,xa),t(D,mo),t(D,wa),p(Ce,D,null),t(C,Ma),t(C,B),p(Pt,B,null),t(B,Ca),t(B,po),t(B,ka),t(B,go),t(B,Ia),t(B,co),t(C,ja),t(C,ke),p(Vt,ke,null),t(ke,Aa),t(ke,fo),i(e,$r,s),p(Ht,e,s),i(e,br,s),i(e,J,s),p(Zt,J,null),t(J,Ja),t(J,uo),t(J,La),t(J,Ie),p(qt,Ie,null),t(Ie,Ua),t(Ie,ho),t(J,Ea),t(J,je),p(Nt,je,null),t(je,Pa),t(je,$o),t(J,Va),t(J,Ae),p(Rt,Ae,null),t(Ae,Ha),t(Ae,bo),t(J,Za),t(J,Je),p(Wt,Je,null),t(Je,qa),t(Je,vo),t(J,Na),t(J,Le),p(Dt,Le,null),t(Le,Ra),t(Le,_o),i(e,vr,s),p(Bt,e,s),i(e,_r,s),i(e,L,s),p(Ft,L,null),t(L,Wa),t(L,yo),t(L,Da),t(L,To),t(L,Ba),t(L,Ue),p(zt,Ue,null),t(Ue,Fa),t(Ue,xo),t(L,za),t(L,Ee),p(Gt,Ee,null),t(Ee,Ga),t(Ee,wo),t(L,Sa),t(L,Pe),p(St,Pe,null),t(Pe,Xa),t(Pe,Mo),t(L,Qa),t(L,Ve),p(Xt,Ve,null),t(Ve,Ya),t(Ve,Co),i(e,yr,s),p(Qt,e,s),i(e,Tr,s),i(e,te,s),p(Yt,te,null),t(te,Oa),t(te,ko),i(e,xr,s),p(Ot,e,s),i(e,wr,s),i(e,ne,s),p(Kt,ne,null),t(ne,Ka),t(ne,Io),i(e,Mr,s),p(en,e,s),i(e,Cr,s),i(e,q,s),p(tn,q,null),t(q,el),t(q,jo),t(q,tl),t(q,Ao),t(q,nl),p(He,q,null),i(e,kr,s),p(nn,e,s),i(e,Ir,s),i(e,on,s),i(e,jr,s),i(e,rn,s),i(e,Ar,s),p(sn,e,s),i(e,Jr,s),i(e,an,s),i(e,Lr,s),p(ln,e,s),i(e,Ur,s),i(e,oe,s),p(mn,oe,null),t(oe,ol),t(oe,Jo),i(e,Er,s),p(dn,e,s),i(e,Pr,s),i(e,pn,s),i(e,Vr,s),p(gn,e,s),i(e,Hr,s),i(e,S,s),p(cn,S,null),t(S,rl),t(S,Lo),t(S,sl),t(S,Uo),i(e,Zr,s),p(fn,e,s),i(e,qr,s),i(e,un,s),i(e,Nr,s),i(e,hn,s),i(e,Rr,s),i(e,$n,s),i(e,Wr,s),i(e,bn,s),i(e,Dr,s),p(vn,e,s),i(e,Br,s),i(e,re,s),p(_n,re,null),t(re,al),t(re,Eo),i(e,Fr,s),p(yn,e,s),i(e,zr,s),i(e,P,s),p(Tn,P,null),t(P,ll),t(P,Po),t(P,il),t(P,Ze),p(xn,Ze,null),t(Ze,ml),t(Ze,Vo),t(P,dl),t(P,qe),p(wn,qe,null),t(qe,pl),t(qe,Ho),t(P,gl),t(P,Ne),p(Mn,Ne,null),t(Ne,cl),t(Ne,Zo),i(e,Gr,s),p(Cn,e,s),i(e,Sr,s),i(e,N,s),p(kn,N,null),t(N,fl),t(N,qo),t(N,ul),t(N,Re),p(In,Re,null),t(Re,hl),t(Re,No),t(N,$l),t(N,We),p(jn,We,null),t(We,bl),t(We,Ro),i(e,Xr,s),p(An,e,s),i(e,Qr,s),i(e,Xo,s),Yr=!0},p(e,[s]){const R={};s&2&&(R.$$scope={dirty:s,ctx:e}),M.$set(R);const Jn={};s&2&&(Jn.$$scope={dirty:s,ctx:e}),ge.$set(Jn);const Ln={};s&2&&(Ln.$$scope={dirty:s,ctx:e}),he.$set(Ln);const Un={};s&2&&(Un.$$scope={dirty:s,ctx:e}),_e.$set(Un);const En={};s&2&&(En.$$scope={dirty:s,ctx:e}),Te.$set(En);const X={};s&2&&(X.$$scope={dirty:s,ctx:e}),we.$set(X);const Pn={};s&2&&(Pn.$$scope={dirty:s,ctx:e}),Me.$set(Pn);const se={};s&2&&(se.$$scope={dirty:s,ctx:e}),Ce.$set(se);const U={};s&2&&(U.$$scope={dirty:s,ctx:e}),He.$set(U)},i(e){Yr||(g(w.$$.fragment,e),g(M.$$.fragment,e),g(Qe.$$.fragment,e),g(Ke.$$.fragment,e),g(et.$$.fragment,e),g(tt.$$.fragment,e),g(nt.$$.fragment,e),g(ot.$$.fragment,e),g(rt.$$.fragment,e),g(st.$$.fragment,e),g(at.$$.fragment,e),g(lt.$$.fragment,e),g(it.$$.fragment,e),g(ge.$$.fragment,e),g(mt.$$.fragment,e),g(dt.$$.fragment,e),g(pt.$$.fragment,e),g(gt.$$.fragment,e),g(ct.$$.fragment,e),g(ft.$$.fragment,e),g(he.$$.fragment,e),g(ut.$$.fragment,e),g(ht.$$.fragment,e),g($t.$$.fragment,e),g(bt.$$.fragment,e),g(vt.$$.fragment,e),g(_t.$$.fragment,e),g(Tt.$$.fragment,e),g(xt.$$.fragment,e),g(wt.$$.fragment,e),g(Mt.$$.fragment,e),g(_e.$$.fragment,e),g(Ct.$$.fragment,e),g(kt.$$.fragment,e),g(It.$$.fragment,e),g(jt.$$.fragment,e),g(At.$$.fragment,e),g(Jt.$$.fragment,e),g(Te.$$.fragment,e),g(Lt.$$.fragment,e),g(Ut.$$.fragment,e),g(we.$$.fragment,e),g(Me.$$.fragment,e),g(Et.$$.fragment,e),g(Ce.$$.fragment,e),g(Pt.$$.fragment,e),g(Vt.$$.fragment,e),g(Ht.$$.fragment,e),g(Zt.$$.fragment,e),g(qt.$$.fragment,e),g(Nt.$$.fragment,e),g(Rt.$$.fragment,e),g(Wt.$$.fragment,e),g(Dt.$$.fragment,e),g(Bt.$$.fragment,e),g(Ft.$$.fragment,e),g(zt.$$.fragment,e),g(Gt.$$.fragment,e),g(St.$$.fragment,e),g(Xt.$$.fragment,e),g(Qt.$$.fragment,e),g(Yt.$$.fragment,e),g(Ot.$$.fragment,e),g(Kt.$$.fragment,e),g(en.$$.fragment,e),g(tn.$$.fragment,e),g(He.$$.fragment,e),g(nn.$$.fragment,e),g(sn.$$.fragment,e),g(ln.$$.fragment,e),g(mn.$$.fragment,e),g(dn.$$.fragment,e),g(gn.$$.fragment,e),g(cn.$$.fragment,e),g(fn.$$.fragment,e),g(vn.$$.fragment,e),g(_n.$$.fragment,e),g(yn.$$.fragment,e),g(Tn.$$.fragment,e),g(xn.$$.fragment,e),g(wn.$$.fragment,e),g(Mn.$$.fragment,e),g(Cn.$$.fragment,e),g(kn.$$.fragment,e),g(In.$$.fragment,e),g(jn.$$.fragment,e),g(An.$$.fragment,e),Yr=!0)},o(e){c(w.$$.fragment,e),c(M.$$.fragment,e),c(Qe.$$.fragment,e),c(Ke.$$.fragment,e),c(et.$$.fragment,e),c(tt.$$.fragment,e),c(nt.$$.fragment,e),c(ot.$$.fragment,e),c(rt.$$.fragment,e),c(st.$$.fragment,e),c(at.$$.fragment,e),c(lt.$$.fragment,e),c(it.$$.fragment,e),c(ge.$$.fragment,e),c(mt.$$.fragment,e),c(dt.$$.fragment,e),c(pt.$$.fragment,e),c(gt.$$.fragment,e),c(ct.$$.fragment,e),c(ft.$$.fragment,e),c(he.$$.fragment,e),c(ut.$$.fragment,e),c(ht.$$.fragment,e),c($t.$$.fragment,e),c(bt.$$.fragment,e),c(vt.$$.fragment,e),c(_t.$$.fragment,e),c(Tt.$$.fragment,e),c(xt.$$.fragment,e),c(wt.$$.fragment,e),c(Mt.$$.fragment,e),c(_e.$$.fragment,e),c(Ct.$$.fragment,e),c(kt.$$.fragment,e),c(It.$$.fragment,e),c(jt.$$.fragment,e),c(At.$$.fragment,e),c(Jt.$$.fragment,e),c(Te.$$.fragment,e),c(Lt.$$.fragment,e),c(Ut.$$.fragment,e),c(we.$$.fragment,e),c(Me.$$.fragment,e),c(Et.$$.fragment,e),c(Ce.$$.fragment,e),c(Pt.$$.fragment,e),c(Vt.$$.fragment,e),c(Ht.$$.fragment,e),c(Zt.$$.fragment,e),c(qt.$$.fragment,e),c(Nt.$$.fragment,e),c(Rt.$$.fragment,e),c(Wt.$$.fragment,e),c(Dt.$$.fragment,e),c(Bt.$$.fragment,e),c(Ft.$$.fragment,e),c(zt.$$.fragment,e),c(Gt.$$.fragment,e),c(St.$$.fragment,e),c(Xt.$$.fragment,e),c(Qt.$$.fragment,e),c(Yt.$$.fragment,e),c(Ot.$$.fragment,e),c(Kt.$$.fragment,e),c(en.$$.fragment,e),c(tn.$$.fragment,e),c(He.$$.fragment,e),c(nn.$$.fragment,e),c(sn.$$.fragment,e),c(ln.$$.fragment,e),c(mn.$$.fragment,e),c(dn.$$.fragment,e),c(gn.$$.fragment,e),c(cn.$$.fragment,e),c(fn.$$.fragment,e),c(vn.$$.fragment,e),c(_n.$$.fragment,e),c(yn.$$.fragment,e),c(Tn.$$.fragment,e),c(xn.$$.fragment,e),c(wn.$$.fragment,e),c(Mn.$$.fragment,e),c(Cn.$$.fragment,e),c(kn.$$.fragment,e),c(In.$$.fragment,e),c(jn.$$.fragment,e),c(An.$$.fragment,e),Yr=!1},d(e){e&&(r(x),r(b),r(T),r(h),r(Qo),r(Xe),r(Yo),r(Oo),r(Ye),r(Ko),r(Oe),r(er),r(tr),r(E),r(nr),r(or),r(Z),r(rr),r(sr),r(A),r(ar),r(F),r(lr),r(z),r(ir),r(mr),r(yt),r(dr),r(pr),r(gr),r(G),r(cr),r(fr),r(ee),r(ur),r(hr),r(C),r($r),r(br),r(J),r(vr),r(_r),r(L),r(yr),r(Tr),r(te),r(xr),r(wr),r(ne),r(Mr),r(Cr),r(q),r(kr),r(Ir),r(on),r(jr),r(rn),r(Ar),r(Jr),r(an),r(Lr),r(Ur),r(oe),r(Er),r(Pr),r(pn),r(Vr),r(Hr),r(S),r(Zr),r(qr),r(un),r(Nr),r(hn),r(Rr),r($n),r(Wr),r(bn),r(Dr),r(Br),r(re),r(Fr),r(zr),r(P),r(Gr),r(Sr),r(N),r(Xr),r(Qr),r(Xo)),r(u),f(w,e),f(M,e),f(Qe,e),f(Ke,e),f(et),f(tt),f(nt),f(ot),f(rt),f(st,e),f(at),f(lt),f(it),f(ge),f(mt,e),f(dt),f(pt),f(gt),f(ct),f(ft),f(he),f(ut),f(ht),f($t),f(bt),f(vt),f(_t,e),f(Tt),f(xt,e),f(wt,e),f(Mt),f(_e),f(Ct,e),f(kt),f(It,e),f(jt),f(At),f(Jt),f(Te),f(Lt),f(Ut),f(we),f(Me),f(Et),f(Ce),f(Pt),f(Vt),f(Ht,e),f(Zt),f(qt),f(Nt),f(Rt),f(Wt),f(Dt),f(Bt,e),f(Ft),f(zt),f(Gt),f(St),f(Xt),f(Qt,e),f(Yt),f(Ot,e),f(Kt),f(en,e),f(tn),f(He),f(nn,e),f(sn,e),f(ln,e),f(mn),f(dn,e),f(gn,e),f(cn),f(fn,e),f(vn,e),f(_n),f(yn,e),f(Tn),f(xn),f(wn),f(Mn),f(Cn,e),f(kn),f(In),f(jn),f(An,e)}}}const Ki='{"title":"Agents & Tools","local":"agents--tools","sections":[{"title":"Agents","local":"agents","sections":[{"title":"Agent","local":"transformers.Agent","sections":[],"depth":3},{"title":"CodeAgent","local":"transformers.CodeAgent","sections":[],"depth":3},{"title":"React agents","local":"transformers.ReactAgent","sections":[],"depth":3},{"title":"ManagedAgent","local":"transformers.ManagedAgent","sections":[],"depth":3}],"depth":2},{"title":"Tools","local":"tools","sections":[{"title":"load_tool","local":"transformers.load_tool","sections":[],"depth":3},{"title":"tool","local":"transformers.tool","sections":[],"depth":3},{"title":"Tool","local":"transformers.Tool","sections":[],"depth":3},{"title":"Toolbox","local":"transformers.Toolbox","sections":[],"depth":3},{"title":"PipelineTool","local":"transformers.PipelineTool","sections":[],"depth":3},{"title":"launch_gradio_demo","local":"transformers.launch_gradio_demo","sections":[],"depth":3},{"title":"stream_to_gradio","local":"transformers.stream_to_gradio","sections":[],"depth":3},{"title":"ToolCollection","local":"transformers.ToolCollection","sections":[],"depth":3}],"depth":2},{"title":"Engines","local":"engines","sections":[{"title":"TransformersEngine","local":"transformers.TransformersEngine","sections":[],"depth":3},{"title":"HfApiEngine","local":"transformers.HfApiEngine","sections":[],"depth":3}],"depth":2},{"title":"Agent Types","local":"agent-types","sections":[{"title":"AgentText","local":"transformers.agents.agent_types.AgentText","sections":[],"depth":3},{"title":"AgentImage","local":"transformers.agents.agent_types.AgentImage","sections":[],"depth":3},{"title":"AgentAudio","local":"transformers.agents.agent_types.AgentAudio","sections":[],"depth":3}],"depth":2}],"depth":1}';function em(j){return Zi(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class im extends qi{constructor(u){super(),Ni(this,u,em,Oi,Hi,{})}}export{im as component};
