import{s as El,o as Hl,n as pn}from"../chunks/scheduler.25b97de1.js";import{S as Dl,i as Ul,g as r,s as n,r as d,A as Rl,h as s,f as a,c as o,j as v,u as m,x as u,k as _,y as t,a as i,v as c,d as h,t as g,w as p}from"../chunks/index.d9030fc9.js";import{T as ks}from"../chunks/Tip.baa67368.js";import{D as $}from"../chunks/Docstring.e257edda.js";import{C as wo}from"../chunks/CodeBlock.e6cd0d95.js";import{E as Ra}from"../chunks/ExampleCodeBlock.20db4b6e.js";import{H as j,E as Wl}from"../chunks/EditOnGithub.91d95064.js";function Bl(q){let f,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(){f=r("p"),f.textContent=x},l(y){f=s(y,"P",{"data-svelte-h":!0}),u(f)!=="svelte-1fgfei3"&&(f.textContent=x)},m(y,w){i(y,f,w)},p:pn,d(y){y&&a(f)}}}function Sl(q){let f,x="Example:",y,w,T;return w=new wo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5hZ2VudHMlMjBpbXBvcnQlMjBDb2RlQWdlbnQlMkMlMjBQeXRob25JbnRlcnByZXRlclRvb2wlMEElMEFweXRob25faW50ZXJwcmV0ZXIlMjAlM0QlMjBQeXRob25JbnRlcnByZXRlclRvb2woKSUwQWFnZW50JTIwJTNEJTIwQ29kZUFnZW50KHRvb2xzJTNEJTVCcHl0aG9uX2ludGVycHJldGVyJTVEKSUwQWFnZW50LnJ1biglMjJXaGF0JTIwaXMlMjB0aGUlMjByZXN1bHQlMjBvZiUyMDIlMjBwb3dlciUyMDMuNzM4NCUzRiUyMik=",highlighted:`<span class="hljs-keyword">from</span> transformers.agents <span class="hljs-keyword">import</span> CodeAgent, PythonInterpreterTool

python_interpreter = PythonInterpreterTool()
agent = CodeAgent(tools=[python_interpreter])
agent.run(<span class="hljs-string">&quot;What is the result of 2 power 3.7384?&quot;</span>)`,wrap:!1}}),{c(){f=r("p"),f.textContent=x,y=n(),d(w.$$.fragment)},l(b){f=s(b,"P",{"data-svelte-h":!0}),u(f)!=="svelte-11lpom8"&&(f.textContent=x),y=o(b),m(w.$$.fragment,b)},m(b,C){i(b,f,C),i(b,y,C),c(w,b,C),T=!0},p:pn,i(b){T||(h(w.$$.fragment,b),T=!0)},o(b){g(w.$$.fragment,b),T=!1},d(b){b&&(a(f),a(y)),p(w,b)}}}function Ol(q){let f,x="Example:",y,w,T;return w=new wo({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(){f=r("p"),f.textContent=x,y=n(),d(w.$$.fragment)},l(b){f=s(b,"P",{"data-svelte-h":!0}),u(f)!=="svelte-11lpom8"&&(f.textContent=x),y=o(b),m(w.$$.fragment,b)},m(b,C){i(b,f,C),i(b,y,C),c(w,b,C),T=!0},p:pn,i(b){T||(h(w.$$.fragment,b),T=!0)},o(b){g(w.$$.fragment,b),T=!1},d(b){b&&(a(f),a(y)),p(w,b)}}}function Vl(q){let f,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(){f=r("p"),f.textContent=x},l(y){f=s(y,"P",{"data-svelte-h":!0}),u(f)!=="svelte-1kcherd"&&(f.textContent=x)},m(y,w){i(y,f,w)},p:pn,d(y){y&&a(f)}}}function zl(q){let f,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(){f=r("p"),f.textContent=x},l(y){f=s(y,"P",{"data-svelte-h":!0}),u(f)!=="svelte-fpk7e5"&&(f.textContent=x)},m(y,w){i(y,f,w)},p:pn,d(y){y&&a(f)}}}function Zl(q){let f,x="For instance:",y,w,T;return w=new wo({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(){f=r("p"),f.textContent=x,y=n(),d(w.$$.fragment)},l(b){f=s(b,"P",{"data-svelte-h":!0}),u(f)!=="svelte-4vay6o"&&(f.textContent=x),y=o(b),m(w.$$.fragment,b)},m(b,C){i(b,f,C),i(b,y,C),c(w,b,C),T=!0},p:pn,i(b){T||(h(w.$$.fragment,b),T=!0)},o(b){g(w.$$.fragment,b),T=!1},d(b){b&&(a(f),a(y)),p(w,b)}}}function Gl(q){let f,x="Example:",y,w,T;return w=new wo({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(){f=r("p"),f.textContent=x,y=n(),d(w.$$.fragment)},l(b){f=s(b,"P",{"data-svelte-h":!0}),u(f)!=="svelte-11lpom8"&&(f.textContent=x),y=o(b),m(w.$$.fragment,b)},m(b,C){i(b,f,C),i(b,y,C),c(w,b,C),T=!0},p:pn,i(b){T||(h(w.$$.fragment,b),T=!0)},o(b){g(w.$$.fragment,b),T=!1},d(b){b&&(a(f),a(y)),p(w,b)}}}function Yl(q){let f,x,y,w,T,b,C,To,De,Cs=`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.`,xo,Ue,ko,Re,Is='We provide two types of agents, based on the main <a href="/docs/transformers/main/en/main_classes/agent#transformers.Agent">Agent</a> class:',Co,We,As='<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>',Io,Be,Ao,P,Se,Wa,ee,Oe,Ba,un,Ms=`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.`,Sa,te,Ve,Oa,fn,Ls="Parse action from the LLM output",Va,ne,ze,za,bn,js="To be implemented in the child class",Za,oe,Ze,Ga,vn,qs=`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.`,Mo,Ge,Lo,D,Ye,Ya,_n,Ps="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.",Fa,ae,Fe,Qa,$n,Ns=`Override this method if you want to change the way the code is
cleaned in the <code>run</code> method.`,Xa,G,Qe,Ka,yn,Js="Runs the agent for the given task.",er,re,jo,Xe,qo,A,Ke,tr,wn,Es=`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.`,nr,se,et,or,Tn,Hs="Runs the agent in direct mode, returning outputs only at the end: should be launched only in the <code>run</code> method.",ar,le,tt,rr,xn,Ds="Used periodically by the agent to plan the next steps to reach the objective.",sr,ie,nt,lr,kn,Us="This method provides a final answer to the task, based on the logs of the agent’s interactions.",ir,Y,ot,dr,Cn,Rs="Runs the agent for the given task.",mr,de,cr,me,at,hr,In,Ws="Runs the agent in streaming mode, yielding steps as they are executed: should be launched only in the <code>run</code> method.",Po,O,rt,gr,An,Bs=`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.`,pr,ce,st,ur,Mn,Ss=`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.`,No,V,lt,fr,Ln,Os=`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.`,br,he,it,vr,jn,Vs=`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.`,Jo,dt,Eo,mt,Ho,z,ct,_r,qn,zs="Main function to quickly load a tool, be it on the Hub or in the Transformers library.",$r,ge,Do,ht,Uo,k,gt,yr,Pn,Zs=`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:`,wr,Nn,Gs=`<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>`,Tr,Jn,Ys=`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.`,xr,pe,pt,kr,En,Fs='Creates a <a href="/docs/transformers/main/en/main_classes/agent#transformers.Tool">Tool</a> from a gradio tool.',Cr,F,ut,Ir,Hn,Qs="Loads a tool defined on the Hub.",Ar,ue,Mr,fe,ft,Lr,Dn,Xs='Creates a <a href="/docs/transformers/main/en/main_classes/agent#transformers.Tool">Tool</a> from a langchain tool.',jr,B,bt,qr,Un,Ks="Upload the tool to the Hub.",Pr,Rn,el="For this method to work properly, your tool must have been defined in a separate module (not <code>__main__</code>).",Nr,be,Jr,S,vt,Er,Wn,tl=`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:`,Hr,Bn,nl=`<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>`,Dr,Sn,ol="You should only use this method to save tools that are defined in a separate module (not <code>__main__</code>).",Ur,ve,_t,Rr,On,al=`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.`,Ro,$t,Wo,M,yt,Wr,Vn,rl=`The toolbox contains all tools that the agent can perform operations with, as well as a few methods to
manage them.`,Br,_e,wt,Sr,zn,sl="Adds a tool to the toolbox",Or,$e,Tt,Vr,Zn,ll="Clears the toolbox",zr,ye,xt,Zr,Gn,il="Removes a tool from the toolbox",Gr,we,kt,Yr,Yn,dl="Returns the description of all tools in the toolbox",Fr,Te,Ct,Qr,Fn,ml="Updates a tool in the toolbox according to its name.",Bo,It,So,L,At,Xr,Qn,cl=`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:`,Kr,Xn,hl=`<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>`,es,xe,Mt,ts,Kn,gl="Uses the <code>post_processor</code> to decode the model output.",ns,ke,Lt,os,eo,pl="Uses the <code>pre_processor</code> to prepare the inputs for the <code>model</code>.",as,Ce,jt,rs,to,ul="Sends the inputs through the <code>model</code>.",ss,Ie,qt,ls,no,fl="Instantiates the <code>pre_processor</code>, <code>model</code> and <code>post_processor</code> if necessary.",Oo,Pt,Vo,X,Nt,is,oo,bl=`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>.`,zo,Jt,Zo,U,Et,ds,ao,vl="Tool collections enable loading all Spaces from a collection in order to be added to the agent’s toolbox.",ms,ro,_l=`<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>`,cs,Ae,Go,Ht,Yo,Dt,$l=`You’re free to create and use your own engines to be usable by the Agents framework.
These engines have the following specification:`,Fo,Ut,yl='<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>',Qo,Rt,Xo,Wt,wl="For convenience, we have added a <code>HfEngine</code> that implements the points above and uses an inference endpoint for the execution of the LLM.",Ko,Bt,ea,St,Ot,ta,Vt,na,zt,Tl=`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.`,oa,Zt,xl=`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>.`,aa,Gt,kl="These types have three specific purposes:",ra,Yt,Cl=`<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>`,sa,Ft,la,K,Qt,hs,so,Il="Text type returned by the agent. Behaves as a string.",ia,Xt,da,N,Kt,gs,lo,Al="Image type returned by the agent. Behaves as a PIL.Image.",ps,Me,en,us,io,Ml="Saves the image to a file.",fs,Le,tn,bs,mo,Ll="Returns the “raw” version of that object. In the case of an AgentImage, it is a PIL.Image.",vs,je,nn,_s,co,jl=`Returns the stringified version of that object. In the case of an AgentImage, it is a path to the serialized
version of the image.`,ma,on,ca,R,an,$s,ho,ql="Audio type returned by the agent.",ys,qe,rn,ws,go,Pl="Returns the “raw” version of that object. It is a <code>torch.Tensor</code> object.",Ts,Pe,sn,xs,po,Nl=`Returns the stringified version of that object. In the case of an AgentAudio, it is a path to the serialized
version of the audio.`,ha,ln,ga,yo,pa;return T=new j({props:{title:"Agents & Tools",local:"agents--tools",headingTag:"h1"}}),C=new ks({props:{warning:!0,$$slots:{default:[Bl]},$$scope:{ctx:q}}}),Ue=new j({props:{title:"Agents",local:"agents",headingTag:"h2"}}),Be=new j({props:{title:"Agent",local:"transformers.Agent",headingTag:"h3"}}),Se=new $({props:{name:"class transformers.Agent",anchor:"transformers.Agent",parameters:[{name:"tools",val:": Union"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfEngine object at 0x7ff433cc9c90>"},{name:"system_prompt",val:` = 'You are an expert assistant who can solve any task using JSON tool calls. You will be given a task to solve as best you can.\\nTo do so, you have been given access to the following tools: <<tool_names>>\\nThe way you use the tools is by specifying a json blob, ending with \\'<end_action>\\'.\\nSpecifically, this json should have an \`action\` key (name of the tool to use) and an \`action_input\` key (input to the tool).\\n\\nThe $ACTION_JSON_BLOB should only contain a SINGLE action, do NOT return a list of multiple actions. It should be formatted in json. Do not try to escape special characters. Here is the template of a valid $ACTION_JSON_BLOB:\\n{\\n  "action": $TOOL_NAME,\\n  "action_input": $INPUT\\n}<end_action>\\n\\nMake sure to have the $INPUT as a dictionary in the right format for the tool you are using, and do not put variable names as input if you can find the right values.\\n\\nYou should ALWAYS use the following format:\\n\\nThought: you should always think about one action to take. Then use the action as follows:\\nAction:\\n$ACTION_JSON_BLOB\\nObservation: the result of the action\\n... (this Thought/Action/Observation can repeat N times, you should take several steps when needed. The $ACTION_JSON_BLOB must only use a SINGLE action at a time.)\\n\\nYou can use the result of the previous action as input for the next action.\\nThe observation will always be a string: it can represent a file, like "image_1.jpg".\\nThen you can use it as input for the next action. You can do it for instance as follows:\\n\\nObservation: "image_1.jpg"\\n\\nThought: I need to transform the image that I received in the previous observation to make it green.\\nAction:\\n{\\n  "action": "image_transformer",\\n  "action_input": {"image": "image_1.jpg"}\\n}<end_action>\\n\\nTo provide the final answer to the task, use an action blob with "action": "final_answer" tool. It is the only way to complete the task, else you will be stuck on a loop. So your final output should look like this:\\nAction:\\n{\\n  "action": "final_answer",\\n  "action_input": {"answer": "insert your final answer here"}\\n}<end_action>\\n\\n\\nHere are a few examples using notional tools:\\n---\\nTask: "Generate an image of the oldest person in this document."\\n\\nThought: I will proceed step by step and use the following tools: \`document_qa\` to find the oldest person in the document, then \`image_generator\` to generate an image according to the answer.\\nAction:\\n{\\n  "action": "document_qa",\\n  "action_input": {"document": "document.pdf", "question": "Who is the oldest person mentioned?"}\\n}<end_action>\\nObservation: "The oldest person in the document is John Doe, a 55 year old lumberjack living in Newfoundland."\\n\\n\\nThought: I will now generate an image showcasing the oldest person.\\nAction:\\n{\\n  "action": "image_generator",\\n  "action_input": {"text": ""A portrait of John Doe, a 55-year-old man living in Canada.""}\\n}<end_action>\\nObservation: "image.png"\\n\\nThought: I will now return the generated image.\\nAction:\\n{\\n  "action": "final_answer",\\n  "action_input": "image.png"\\n}<end_action>\\n\\n---\\nTask: "What is the result of the following operation: 5 + 3 + 1294.678?"\\n\\nThought: I will use python code evaluator to compute the result of the operation and then return the final answer using the \`final_answer\` tool\\nAction:\\n{\\n    "action": "python_interpreter",\\n    "action_input": {"code": "5 + 3 + 1294.678"}\\n}<end_action>\\nObservation: 1302.678\\n\\nThought: Now that I know the result, I will now return it.\\nAction:\\n{\\n  "action": "final_answer",\\n  "action_input": "1302.678"\\n}<end_action>\\n\\n---\\nTask: "Which city has the highest population , Guangzhou or Shanghai?"\\n\\nThought: I need to get the populations for both cities and compare them: I will use the tool \`search\` to get the population of both cities.\\nAction:\\n{\\n    "action": "search",\\n    "action_input": "Population Guangzhou"\\n}<end_action>\\nObservation: [\\'Guangzhou has a population of 15 million inhabitants as of 2021.\\']\\n\\n\\nThought: Now let\\'s get the population of Shanghai using the tool \\'search\\'.\\nAction:\\n{\\n    "action": "search",\\n    "action_input": "Population Shanghai"\\n}\\nObservation: \\'26 million (2019)\\'\\n\\nThought: Now I know that Shanghai has a larger population. Let\\'s return the result.\\nAction:\\n{\\n  "action": "final_answer",\\n  "action_input": "Shanghai"\\n}<end_action>\\n\\n\\nAbove example were using notional tools that might not exist for you. You only have acces to those tools:\\n<<tool_descriptions>>\\n\\nHere are the rules you should always follow to solve your task:\\n1. ALWAYS provide a \\'Thought:\\' sequence, and an \\'Action:\\' sequence that ends with <end_action>, else you will fail.\\n2. Always use the right arguments for the tools. Never use variable names in the \\'action_input\\' field, use the value instead.\\n3. Call a tool only when needed: do not call the search agent if you do not need information, try to solve the task yourself.\\n4. Never re-do a tool call that you previously did with the exact same parameters.\\n\\nNow Begin! If you solve the task correctly, you will receive a reward of $1,000,000.\\n'`},{name:"tool_description_template",val:" = None"},{name:"additional_args",val:" = {}"},{name:"max_iterations",val:": int = 6"},{name:"tool_parser",val:" = <function parse_json_tool_call at 0x7ff433cbe710>"},{name:"add_base_tools",val:": bool = False"},{name:"verbose",val:": int = 0"},{name:"memory_verbose",val:": bool = False"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L327"}}),Oe=new $({props:{name:"execute_tool_call",anchor:"transformers.Agent.execute_tool_call",parameters:[{name:"tool_name",val:": str"},{name:"arguments",val:": Dict"}],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#L481"}}),Ve=new $({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#L460"}}),ze=new $({props:{name:"run",anchor:"transformers.Agent.run",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L521"}}),Ze=new $({props:{name:"write_inner_memory_from_logs",anchor:"transformers.Agent.write_inner_memory_from_logs",parameters:[{name:"summary_mode",val:": Optional = False"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L400"}}),Ge=new j({props:{title:"CodeAgent",local:"transformers.CodeAgent",headingTag:"h3"}}),Ye=new $({props:{name:"class transformers.CodeAgent",anchor:"transformers.CodeAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfEngine object at 0x7ff433cc9ed0>"},{name:"system_prompt",val:': str = \'You will be given a task to solve, your job is to come up with a series of simple commands in Python that will perform the task.\\nTo help you, I will give you access to a set of tools that you can use. Each tool is a Python function and has a description explaining the task it performs, the inputs it expects and the outputs it returns.\\nYou should first explain which tool you will use to perform the task and for what reason, then write the code in Python.\\nEach instruction in Python should be a simple assignment. You can print intermediate results if it makes sense to do so.\\nIn the end, use tool \\\'final_answer\\\' to return your answer, its argument will be what gets returned.\\nYou can use imports in your code, but only from the following list of modules: <<authorized_imports>>\\nBe sure to provide a \\\'Code:\\\' token, else the run will fail.\\n\\nTools:\\n<<tool_descriptions>>\\n\\nExamples:\\n---\\nTask: "Answer the question in the variable `question` about the image stored in the variable `image`. The question is in French."\\n\\nI will use the following tools: `translator` to translate the question into English and then `image_qa` to answer the question on the input image.\\nCode:\\n```py\\ntranslated_question = translator(question=question, src_lang="French", tgt_lang="English")\\nprint(f"The translated question is {translated_question}.")\\nanswer = image_qa(image=image, question=translated_question)\\nfinal_answer(f"The answer is {answer}")\\n```<end_action>\\n\\n---\\nTask: "Identify the oldest person in the `document` and create an image showcasing the result."\\n\\nI will use the following tools: `document_qa` to find the oldest person in the document, then `image_generator` to generate an image according to the answer.\\nCode:\\n```py\\nanswer = document_qa(document, question="What is the oldest person?")\\nprint(f"The answer is {answer}.")\\nimage = image_generator(answer)\\nfinal_answer(image)\\n```<end_action>\\n\\n---\\nTask: "Generate an image using the text given in the variable `caption`."\\n\\nI will use the following tool: `image_generator` to generate an image.\\nCode:\\n```py\\nimage = image_generator(prompt=caption)\\nfinal_answer(image)\\n```<end_action>\\n\\n---\\nTask: "Summarize the text given in the variable `text` and read it out loud."\\n\\nI will use the following tools: `summarizer` to create a summary of the input text, then `text_reader` to read it out loud.\\nCode:\\n```py\\nsummarized_text = summarizer(text)\\nprint(f"Summary: {summarized_text}")\\naudio_summary = text_reader(summarized_text)\\nfinal_answer(audio_summary)\\n```<end_action>\\n\\n---\\nTask: "Answer the question in the variable `question` about the text in the variable `text`. Use the answer to generate an image."\\n\\nI will use the following tools: `text_qa` to create the answer, then `image_generator` to generate an image according to the answer.\\nCode:\\n```py\\nanswer = text_qa(text=text, question=question)\\nprint(f"The answer is {answer}.")\\nimage = image_generator(answer)\\nfinal_answer(image)\\n```<end_action>\\n\\n---\\nTask: "Caption the following `image`."\\n\\nI will use the following tool: `image_captioner` to generate a caption for the image.\\nCode:\\n```py\\ncaption = image_captioner(image)\\nfinal_answer(caption)\\n```<end_action>\\n\\n---\\nAbove example were using tools that might not exist for you. You only have acces to those Tools:\\n<<tool_names>>\\n\\nRemember to make sure that variables you use are all defined.\\nBe sure to provide a \\\'Code:\\n```\\\' sequence before the code and \\\'```<end_action>\\\' after, else you will get an error.\\nDO NOT pass the arguments as a dict as in \\\'answer = ask_search_agent({\\\'query\\\': "What is the place where James Bond lives?"})\\\', but use the arguments directly as in \\\'answer = ask_search_agent(query="What is the place where James Bond lives?")\\\'.\\n\\nNow Begin! If you solve the task correctly, you will receive a reward of $1,000,000.\\n\''},{name:"tool_description_template",val:": str = '\\n- {{ tool.name }}: {{ tool.description }}\\n    Takes inputs: {{tool.inputs}}\\n'"},{name:"additional_authorized_imports",val:": Optional = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L526"}}),Fe=new $({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#L560"}}),Qe=new $({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#L567"}}),re=new Ra({props:{anchor:"transformers.CodeAgent.run.example",$$slots:{default:[Sl]},$$scope:{ctx:q}}}),Xe=new j({props:{title:"React agents",local:"transformers.ReactAgent",headingTag:"h3"}}),Ke=new $({props:{name:"class transformers.ReactAgent",anchor:"transformers.ReactAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfEngine object at 0x7ff433cca080>"},{name:"system_prompt",val:": str = 'You are an expert assistant who can solve any task using code blobs. You will be given a task to solve as best you can.\\nTo do so, you have been given access to a list of tools: these tools are basically Python functions which you can call with code.\\nTo solve the task, you must plan forward to proceed in a series of steps, in a cycle of \\'Thought:\\', \\'Code:\\', and \\'Observation:\\' sequences.\\n\\nAt each step, in the \\'Thought:\\' sequence, you should first explain your reasoning towards solving the task and the tools that you want to use.\\nThen in the \\'Code:\\' sequence, you should write the code in simple Python. The code sequence must end with \\'<end_action>\\' sequence.\\nDuring each intermediate step, you can use \\'print()\\' to save whatever important information you will then need.\\nThese print outputs will then appear in the \\'Observation:\\' field, which will be available as input for the next step.\\nIn the end you have to return a final answer using the `final_answer` tool.\\n\\nHere are a few examples using notional tools:\\n---\\nTask: \"Generate an image of the oldest person in this document.\"\\n\\nThought: I will proceed step by step and use the following tools: `document_qa` to find the oldest person in the document, then `image_generator` to generate an image according to the answer.\\nCode:\\n```py\\nanswer = document_qa(document=document, question=\"Who is the oldest person mentioned?\")\\nprint(answer)\\n```<end_action>\\nObservation: \"The oldest person in the document is John Doe, a 55 year old lumberjack living in Newfoundland.\"\\n\\nThought: I will now generate an image showcasing the oldest person.\\n\\nCode:\\n```py\\nimage = image_generator(\"A portrait of John Doe, a 55-year-old man living in Canada.\")\\nfinal_answer(image)\\n```<end_action>\\n\\n---\\nTask: \"What is the result of the following operation: 5 + 3 + 1294.678?\"\\n\\nThought: I will use python code to compute the result of the operation and then return the final answer using the `final_answer` tool\\n\\nCode:\\n```py\\nresult = 5 + 3 + 1294.678\\nfinal_answer(result)\\n```<end_action>\\n\\n---\\nTask: \"Which city has the highest population: Guangzhou or Shanghai?\"\\n\\nThought: I need to get the populations for both cities and compare them: I will use the tool `search` to get the population of both cities.\\nCode:\\n```py\\npopulation_guangzhou = search(\"Guangzhou population\")\\nprint(\"Population Guangzhou:\", population_guangzhou)\\npopulation_shanghai = search(\"Shanghai population\")\\nprint(\"Population Shanghai:\", population_shanghai)\\n```<end_action>\\nObservation:\\nPopulation Guangzhou: [\\'Guangzhou has a population of 15 million inhabitants as of 2021.\\']\\nPopulation Shanghai: \\'26 million (2019)\\'\\n\\nThought: Now I know that Shanghai has the highest population.\\nCode:\\n```py\\nfinal_answer(\"Shanghai\")\\n```<end_action>\\n\\n---\\nTask: \"What is the current age of the pope, raised to the power 0.36?\"\\n\\nThought: I will use the tool `search` to get the age of the pope, then raise it to the power 0.36.\\nCode:\\n```py\\npope_age = search(query=\"current pope age\")\\nprint(\"Pope age:\", pope_age)\\n```<end_action>\\nObservation:\\nPope age: \"The pope Francis is currently 85 years old.\"\\n\\nThought: I know that the pope is 85 years old. Let\\'s compute the result using python code.\\nCode:\\n```py\\npope_current_age = 85 ** 0.36\\nfinal_answer(pope_current_age)\\n```<end_action>\\n\\nAbove example were using notional tools that might not exist for you. You only have acces to those tools:\\n\\n<<tool_descriptions>>\\n\\nYou also can perform computations in the Python code that you generate.\\n\\nHere are the rules you should always follow to solve your task:\\n1. Always provide a \\'Thought:\\' sequence, and a \\'Code:\\n```py\\' sequence ending with \\'```<end_action>\\' sequence, else you will fail.\\n2. Use only variables that you have defined!\\n3. Always use the right arguments for the tools. DO NOT pass the arguments as a dict as in \\'answer = ask_search_agent({\\'query\\': \"What is the place where James Bond lives?\"})\\', but use the arguments directly as in \\'answer = ask_search_agent(query=\"What is the place where James Bond lives?\")\\'.\\n4. Take care to not chain too many sequential tool calls in the same code block, especially when the output format is unpredictable. For instance, a call to search has an unpredictable return format, so do not have another tool call that depends on its output in the same block: rather output results with print() to use them in the next block.\\n5. Call a tool only when needed, and never re-do a tool call that you previously did with the exact same parameters.\\n6. Don\\'t name any new variable with the same name as a tool: for instance don\\'t name a variable \\'final_answer\\'.\\n7. Never create any notional variables in our code, as having these in your logs might derail you from the true variables.\\n8. You can use imports in your code, but only from the following list of modules: <<authorized_imports>>\\n9. The state persists between code executions: so if in one step you\\'ve created variables or imported modules, these will all persist.\\n10. Don\\'t give up! You\\'re in charge of solving the task, not providing directions to solve it.\\n\\nNow Begin! If you solve the task correctly, you will receive a reward of $1,000,000.\\n'"},{name:"tool_description_template",val:": str = '\\n- {{ tool.name }}: {{ tool.description }}\\n    Takes inputs: {{tool.inputs}}\\n'"},{name:"planning_interval",val:": Optional = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L643"}}),et=new $({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#L746"}}),tt=new $({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#L775"}}),nt=new $({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#L668"}}),ot=new $({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#L690"}}),de=new Ra({props:{anchor:"transformers.ReactAgent.run.example",$$slots:{default:[Ol]},$$scope:{ctx:q}}}),at=new $({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#L717"}}),rt=new $({props:{name:"class transformers.ReactJsonAgent",anchor:"transformers.ReactJsonAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfEngine object at 0x7ff433cca200>"},{name:"system_prompt",val:`: str = 'You are an expert assistant who can solve any task using JSON tool calls. You will be given a task to solve as best you can.\\nTo do so, you have been given access to the following tools: <<tool_names>>\\nThe way you use the tools is by specifying a json blob, ending with \\'<end_action>\\'.\\nSpecifically, this json should have an \`action\` key (name of the tool to use) and an \`action_input\` key (input to the tool).\\n\\nThe $ACTION_JSON_BLOB should only contain a SINGLE action, do NOT return a list of multiple actions. It should be formatted in json. Do not try to escape special characters. Here is the template of a valid $ACTION_JSON_BLOB:\\n{\\n  "action": $TOOL_NAME,\\n  "action_input": $INPUT\\n}<end_action>\\n\\nMake sure to have the $INPUT as a dictionary in the right format for the tool you are using, and do not put variable names as input if you can find the right values.\\n\\nYou should ALWAYS use the following format:\\n\\nThought: you should always think about one action to take. Then use the action as follows:\\nAction:\\n$ACTION_JSON_BLOB\\nObservation: the result of the action\\n... (this Thought/Action/Observation can repeat N times, you should take several steps when needed. The $ACTION_JSON_BLOB must only use a SINGLE action at a time.)\\n\\nYou can use the result of the previous action as input for the next action.\\nThe observation will always be a string: it can represent a file, like "image_1.jpg".\\nThen you can use it as input for the next action. You can do it for instance as follows:\\n\\nObservation: "image_1.jpg"\\n\\nThought: I need to transform the image that I received in the previous observation to make it green.\\nAction:\\n{\\n  "action": "image_transformer",\\n  "action_input": {"image": "image_1.jpg"}\\n}<end_action>\\n\\nTo provide the final answer to the task, use an action blob with "action": "final_answer" tool. It is the only way to complete the task, else you will be stuck on a loop. So your final output should look like this:\\nAction:\\n{\\n  "action": "final_answer",\\n  "action_input": {"answer": "insert your final answer here"}\\n}<end_action>\\n\\n\\nHere are a few examples using notional tools:\\n---\\nTask: "Generate an image of the oldest person in this document."\\n\\nThought: I will proceed step by step and use the following tools: \`document_qa\` to find the oldest person in the document, then \`image_generator\` to generate an image according to the answer.\\nAction:\\n{\\n  "action": "document_qa",\\n  "action_input": {"document": "document.pdf", "question": "Who is the oldest person mentioned?"}\\n}<end_action>\\nObservation: "The oldest person in the document is John Doe, a 55 year old lumberjack living in Newfoundland."\\n\\n\\nThought: I will now generate an image showcasing the oldest person.\\nAction:\\n{\\n  "action": "image_generator",\\n  "action_input": {"text": ""A portrait of John Doe, a 55-year-old man living in Canada.""}\\n}<end_action>\\nObservation: "image.png"\\n\\nThought: I will now return the generated image.\\nAction:\\n{\\n  "action": "final_answer",\\n  "action_input": "image.png"\\n}<end_action>\\n\\n---\\nTask: "What is the result of the following operation: 5 + 3 + 1294.678?"\\n\\nThought: I will use python code evaluator to compute the result of the operation and then return the final answer using the \`final_answer\` tool\\nAction:\\n{\\n    "action": "python_interpreter",\\n    "action_input": {"code": "5 + 3 + 1294.678"}\\n}<end_action>\\nObservation: 1302.678\\n\\nThought: Now that I know the result, I will now return it.\\nAction:\\n{\\n  "action": "final_answer",\\n  "action_input": "1302.678"\\n}<end_action>\\n\\n---\\nTask: "Which city has the highest population , Guangzhou or Shanghai?"\\n\\nThought: I need to get the populations for both cities and compare them: I will use the tool \`search\` to get the population of both cities.\\nAction:\\n{\\n    "action": "search",\\n    "action_input": "Population Guangzhou"\\n}<end_action>\\nObservation: [\\'Guangzhou has a population of 15 million inhabitants as of 2021.\\']\\n\\n\\nThought: Now let\\'s get the population of Shanghai using the tool \\'search\\'.\\nAction:\\n{\\n    "action": "search",\\n    "action_input": "Population Shanghai"\\n}\\nObservation: \\'26 million (2019)\\'\\n\\nThought: Now I know that Shanghai has a larger population. Let\\'s return the result.\\nAction:\\n{\\n  "action": "final_answer",\\n  "action_input": "Shanghai"\\n}<end_action>\\n\\n\\nAbove example were using notional tools that might not exist for you. You only have acces to those tools:\\n<<tool_descriptions>>\\n\\nHere are the rules you should always follow to solve your task:\\n1. ALWAYS provide a \\'Thought:\\' sequence, and an \\'Action:\\' sequence that ends with <end_action>, else you will fail.\\n2. Always use the right arguments for the tools. Never use variable names in the \\'action_input\\' field, use the value instead.\\n3. Call a tool only when needed: do not call the search agent if you do not need information, try to solve the task yourself.\\n4. Never re-do a tool call that you previously did with the exact same parameters.\\n\\nNow Begin! If you solve the task correctly, you will receive a reward of $1,000,000.\\n'`},{name:"tool_description_template",val:": str = '\\n- {{ tool.name }}: {{ tool.description }}\\n    Takes inputs: {{tool.inputs}}\\n'"},{name:"planning_interval",val:": Optional = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L866"}}),st=new $({props:{name:"step",anchor:"transformers.ReactJsonAgent.step",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L891"}}),lt=new $({props:{name:"class transformers.ReactCodeAgent",anchor:"transformers.ReactCodeAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfEngine object at 0x7ff433cca380>"},{name:"system_prompt",val:": str = 'You are an expert assistant who can solve any task using code blobs. You will be given a task to solve as best you can.\\nTo do so, you have been given access to a list of tools: these tools are basically Python functions which you can call with code.\\nTo solve the task, you must plan forward to proceed in a series of steps, in a cycle of \\'Thought:\\', \\'Code:\\', and \\'Observation:\\' sequences.\\n\\nAt each step, in the \\'Thought:\\' sequence, you should first explain your reasoning towards solving the task and the tools that you want to use.\\nThen in the \\'Code:\\' sequence, you should write the code in simple Python. The code sequence must end with \\'<end_action>\\' sequence.\\nDuring each intermediate step, you can use \\'print()\\' to save whatever important information you will then need.\\nThese print outputs will then appear in the \\'Observation:\\' field, which will be available as input for the next step.\\nIn the end you have to return a final answer using the `final_answer` tool.\\n\\nHere are a few examples using notional tools:\\n---\\nTask: \"Generate an image of the oldest person in this document.\"\\n\\nThought: I will proceed step by step and use the following tools: `document_qa` to find the oldest person in the document, then `image_generator` to generate an image according to the answer.\\nCode:\\n```py\\nanswer = document_qa(document=document, question=\"Who is the oldest person mentioned?\")\\nprint(answer)\\n```<end_action>\\nObservation: \"The oldest person in the document is John Doe, a 55 year old lumberjack living in Newfoundland.\"\\n\\nThought: I will now generate an image showcasing the oldest person.\\n\\nCode:\\n```py\\nimage = image_generator(\"A portrait of John Doe, a 55-year-old man living in Canada.\")\\nfinal_answer(image)\\n```<end_action>\\n\\n---\\nTask: \"What is the result of the following operation: 5 + 3 + 1294.678?\"\\n\\nThought: I will use python code to compute the result of the operation and then return the final answer using the `final_answer` tool\\n\\nCode:\\n```py\\nresult = 5 + 3 + 1294.678\\nfinal_answer(result)\\n```<end_action>\\n\\n---\\nTask: \"Which city has the highest population: Guangzhou or Shanghai?\"\\n\\nThought: I need to get the populations for both cities and compare them: I will use the tool `search` to get the population of both cities.\\nCode:\\n```py\\npopulation_guangzhou = search(\"Guangzhou population\")\\nprint(\"Population Guangzhou:\", population_guangzhou)\\npopulation_shanghai = search(\"Shanghai population\")\\nprint(\"Population Shanghai:\", population_shanghai)\\n```<end_action>\\nObservation:\\nPopulation Guangzhou: [\\'Guangzhou has a population of 15 million inhabitants as of 2021.\\']\\nPopulation Shanghai: \\'26 million (2019)\\'\\n\\nThought: Now I know that Shanghai has the highest population.\\nCode:\\n```py\\nfinal_answer(\"Shanghai\")\\n```<end_action>\\n\\n---\\nTask: \"What is the current age of the pope, raised to the power 0.36?\"\\n\\nThought: I will use the tool `search` to get the age of the pope, then raise it to the power 0.36.\\nCode:\\n```py\\npope_age = search(query=\"current pope age\")\\nprint(\"Pope age:\", pope_age)\\n```<end_action>\\nObservation:\\nPope age: \"The pope Francis is currently 85 years old.\"\\n\\nThought: I know that the pope is 85 years old. Let\\'s compute the result using python code.\\nCode:\\n```py\\npope_current_age = 85 ** 0.36\\nfinal_answer(pope_current_age)\\n```<end_action>\\n\\nAbove example were using notional tools that might not exist for you. You only have acces to those tools:\\n\\n<<tool_descriptions>>\\n\\nYou also can perform computations in the Python code that you generate.\\n\\nHere are the rules you should always follow to solve your task:\\n1. Always provide a \\'Thought:\\' sequence, and a \\'Code:\\n```py\\' sequence ending with \\'```<end_action>\\' sequence, else you will fail.\\n2. Use only variables that you have defined!\\n3. Always use the right arguments for the tools. DO NOT pass the arguments as a dict as in \\'answer = ask_search_agent({\\'query\\': \"What is the place where James Bond lives?\"})\\', but use the arguments directly as in \\'answer = ask_search_agent(query=\"What is the place where James Bond lives?\")\\'.\\n4. Take care to not chain too many sequential tool calls in the same code block, especially when the output format is unpredictable. For instance, a call to search has an unpredictable return format, so do not have another tool call that depends on its output in the same block: rather output results with print() to use them in the next block.\\n5. Call a tool only when needed, and never re-do a tool call that you previously did with the exact same parameters.\\n6. Don\\'t name any new variable with the same name as a tool: for instance don\\'t name a variable \\'final_answer\\'.\\n7. Never create any notional variables in our code, as having these in your logs might derail you from the true variables.\\n8. You can use imports in your code, but only from the following list of modules: <<authorized_imports>>\\n9. The state persists between code executions: so if in one step you\\'ve created variables or imported modules, these will all persist.\\n10. Don\\'t give up! You\\'re in charge of solving the task, not providing directions to solve it.\\n\\nNow Begin! If you solve the task correctly, you will receive a reward of $1,000,000.\\n'"},{name:"tool_description_template",val:": str = '\\n- {{ tool.name }}: {{ tool.description }}\\n    Takes inputs: {{tool.inputs}}\\n'"},{name:"additional_authorized_imports",val:": Optional = None"},{name:"planning_interval",val:": Optional = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L967"}}),it=new $({props:{name:"step",anchor:"transformers.ReactCodeAgent.step",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L1006"}}),dt=new j({props:{title:"Tools",local:"tools",headingTag:"h2"}}),mt=new j({props:{title:"load_tool",local:"transformers.load_tool",headingTag:"h3"}}),ct=new $({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#L656"}}),ge=new ks({props:{warning:!0,$$slots:{default:[Vl]},$$scope:{ctx:q}}}),ht=new j({props:{title:"Tool",local:"transformers.Tool",headingTag:"h3"}}),gt=new $({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#L87"}}),pt=new $({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#L373"}}),ut=new $({props:{name:"from_hub",anchor:"transformers.Tool.from_hub",parameters:[{name:"repo_id",val:": str"},{name:"model_repo_id",val:": Optional = None"},{name:"token",val:": Optional = 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.model_repo_id",description:`<strong>model_repo_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If your tool uses a model and you want to use a different model than the default, you can pass a second
repo ID or an endpoint url to this argument.`,name:"model_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#L204"}}),ue=new ks({props:{warning:!0,$$slots:{default:[zl]},$$scope:{ctx:q}}}),ft=new $({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#L395"}}),bt=new $({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:": Optional = None"},{name:"token",val:": Union = 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 or not the repository created should be private.`,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#L316"}}),be=new Ra({props:{anchor:"transformers.Tool.push_to_hub.example",$$slots:{default:[Zl]},$$scope:{ctx:q}}}),vt=new $({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#L144"}}),_t=new $({props:{name:"setup",anchor:"transformers.Tool.setup",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L137"}}),$t=new j({props:{title:"Toolbox",local:"transformers.Toolbox",headingTag:"h3"}}),yt=new $({props:{name:"class transformers.Toolbox",anchor:"transformers.Toolbox",parameters:[{name:"tools",val:": List"},{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#L177"}}),wt=new $({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#L223"}}),Tt=new $({props:{name:"clear_toolbox",anchor:"transformers.Toolbox.clear_toolbox",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L263"}}),xt=new $({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#L235"}}),kt=new $({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#L211"}}),Ct=new $({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#L249"}}),It=new j({props:{title:"PipelineTool",local:"transformers.PipelineTool",headingTag:"h3"}}),At=new $({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#L455"}}),Mt=new $({props:{name:"decode",anchor:"transformers.PipelineTool.decode",parameters:[{name:"outputs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L578"}}),Lt=new $({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#L565"}}),jt=new $({props:{name:"forward",anchor:"transformers.PipelineTool.forward",parameters:[{name:"inputs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L571"}}),qt=new $({props:{name:"setup",anchor:"transformers.PipelineTool.setup",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L539"}}),Pt=new j({props:{title:"launch_gradio_demo",local:"transformers.launch_gradio_demo",headingTag:"h3"}}),Nt=new $({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#L603"}}),Jt=new j({props:{title:"ToolCollection",local:"transformers.ToolCollection",headingTag:"h3"}}),Et=new $({props:{name:"class transformers.ToolCollection",anchor:"transformers.ToolCollection",parameters:[{name:"collection_slug",val:": str"},{name:"token",val:": Optional = 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#L780"}}),Ae=new Ra({props:{anchor:"transformers.ToolCollection.example",$$slots:{default:[Gl]},$$scope:{ctx:q}}}),Ht=new j({props:{title:"Engines",local:"engines",headingTag:"h2"}}),Rt=new j({props:{title:"HfEngine",local:"transformers.HfEngine",headingTag:"h3"}}),Bt=new wo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEhmRW5naW5lJTBBJTBBbWVzc2FnZXMlMjAlM0QlMjAlNUIlMEElMjAlMjAlN0IlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlMjJIZWxsbyUyQyUyMGhvdyUyMGFyZSUyMHlvdSUzRiUyMiU3RCUyQyUwQSUyMCUyMCU3QiUyMnJvbGUlMjIlM0ElMjAlMjJhc3Npc3RhbnQlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIySSdtJTIwZG9pbmclMjBncmVhdC4lMjBIb3clMjBjYW4lMjBJJTIwaGVscCUyMHlvdSUyMHRvZGF5JTNGJTIyJTdEJTJDJTBBJTIwJTIwJTdCJTIycm9sZSUyMiUzQSUyMCUyMnVzZXIlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIyTm8lMjBuZWVkJTIwdG8lMjBoZWxwJTJDJTIwdGFrZSUyMGl0JTIwZWFzeS4lMjIlN0QlMkMlMEElNUQlMEElMEFIZkVuZ2luZSgpKG1lc3NhZ2VzJTJDJTIwc3RvcF9zZXF1ZW5jZXMlM0QlNUIlMjJjb252ZXJzYXRpb24lMjIlNUQpJTBB",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> HfEngine

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