import{s as Ul,o as Rl,n as gn}from"../chunks/scheduler.bdbef820.js";import{S as Wl,i as Vl,g as r,s as n,r as d,A as zl,h as s,f as a,c as o,j as _,u as m,x as u,k as b,y as t,a as i,v as p,d as c,t as h,w as g}from"../chunks/index.33f81d56.js";import{T as As}from"../chunks/Tip.34194030.js";import{D as $}from"../chunks/Docstring.64554317.js";import{C as xo}from"../chunks/CodeBlock.362b34a4.js";import{E as Va}from"../chunks/ExampleCodeBlock.4f2252c6.js";import{H as q,E as Bl}from"../chunks/EditOnGithub.a9246e21.js";function Sl(P){let f,T=`Transformers Agent는 실험 중인 API이므로 언제든지 변경될 수 있습니다.
API나 기반 모델이 자주 업데이트되므로, 에이전트가 제공하는 결과물은 달라질 수 있습니다.`;return{c(){f=r("p"),f.textContent=T},l(y){f=s(y,"P",{"data-svelte-h":!0}),u(f)!=="svelte-1kfd8kh"&&(f.textContent=T)},m(y,w){i(y,f,w)},p:gn,d(y){y&&a(f)}}}function Ol(P){let f,T="Example:",y,w,x;return w=new xo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5hZ2VudHMlMjBpbXBvcnQlMjBDb2RlQWdlbnQlMEElMEFhZ2VudCUyMCUzRCUyMENvZGVBZ2VudCh0b29scyUzRCU1QiU1RCklMEFhZ2VudC5ydW4oJTIyV2hhdCUyMGlzJTIwdGhlJTIwcmVzdWx0JTIwb2YlMjAyJTIwcG93ZXIlMjAzLjczODQlM0YlMjIp",highlighted:`<span class="hljs-keyword">from</span> transformers.agents <span class="hljs-keyword">import</span> CodeAgent

agent = CodeAgent(tools=[])
agent.run(<span class="hljs-string">&quot;What is the result of 2 power 3.7384?&quot;</span>)`,wrap:!1}}),{c(){f=r("p"),f.textContent=T,y=n(),d(w.$$.fragment)},l(v){f=s(v,"P",{"data-svelte-h":!0}),u(f)!=="svelte-11lpom8"&&(f.textContent=T),y=o(v),m(w.$$.fragment,v)},m(v,C){i(v,f,C),i(v,y,C),p(w,v,C),x=!0},p:gn,i(v){x||(c(w.$$.fragment,v),x=!0)},o(v){h(w.$$.fragment,v),x=!1},d(v){v&&(a(f),a(y)),g(w,v)}}}function Gl(P){let f,T="Example:",y,w,x;return w=new xo({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=T,y=n(),d(w.$$.fragment)},l(v){f=s(v,"P",{"data-svelte-h":!0}),u(f)!=="svelte-11lpom8"&&(f.textContent=T),y=o(v),m(w.$$.fragment,v)},m(v,C){i(v,f,C),i(v,y,C),p(w,v,C),x=!0},p:gn,i(v){x||(c(w.$$.fragment,v),x=!0)},o(v){h(w.$$.fragment,v),x=!1},d(v){v&&(a(f),a(y)),g(w,v)}}}function Zl(P){let f,T=`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=T},l(y){f=s(y,"P",{"data-svelte-h":!0}),u(f)!=="svelte-1kcherd"&&(f.textContent=T)},m(y,w){i(y,f,w)},p:gn,d(y){y&&a(f)}}}function Yl(P){let f,T=`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=T},l(y){f=s(y,"P",{"data-svelte-h":!0}),u(f)!=="svelte-fpk7e5"&&(f.textContent=T)},m(y,w){i(y,f,w)},p:gn,d(y){y&&a(f)}}}function Fl(P){let f,T="For instance:",y,w,x;return w=new xo({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=T,y=n(),d(w.$$.fragment)},l(v){f=s(v,"P",{"data-svelte-h":!0}),u(f)!=="svelte-4vay6o"&&(f.textContent=T),y=o(v),m(w.$$.fragment,v)},m(v,C){i(v,f,C),i(v,y,C),p(w,v,C),x=!0},p:gn,i(v){x||(c(w.$$.fragment,v),x=!0)},o(v){h(w.$$.fragment,v),x=!1},d(v){v&&(a(f),a(y)),g(w,v)}}}function Ql(P){let f,T="Example:",y,w,x;return w=new xo({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=T,y=n(),d(w.$$.fragment)},l(v){f=s(v,"P",{"data-svelte-h":!0}),u(f)!=="svelte-11lpom8"&&(f.textContent=T),y=o(v),m(w.$$.fragment,v)},m(v,C){i(v,f,C),i(v,y,C),p(w,v,C),x=!0},p:gn,i(v){x||(c(w.$$.fragment,v),x=!0)},o(v){h(w.$$.fragment,v),x=!1},d(v){v&&(a(f),a(y)),g(w,v)}}}function Xl(P){let f,T,y,w,x,v,C,To,Ue,Ms=`에이전트와 도구에 대해 더 알아보려면 <a href="../transformers_agents">소개 가이드</a>를 꼭 읽어보세요.
이 페이지에는 기본 클래스에 대한 API 문서가 포함되어 있습니다.`,ko,Re,Co,We,Ls='우리는 기본 <a href="/docs/transformers/pr_22105/ko/main_classes/agent#transformers.Agent">Agent</a> 클래스를 기반으로 두 가지 유형의 에이전트를 제공합니다:',Io,Ve,qs='<li><a href="/docs/transformers/pr_22105/ko/main_classes/agent#transformers.CodeAgent">CodeAgent</a>는 한 번에 동작합니다. 작업을 해결하기 위해 코드를 생성한 다음, 바로 실행합니다.</li> <li><a href="/docs/transformers/pr_22105/ko/main_classes/agent#transformers.ReactAgent">ReactAgent</a>는 단계별로 동작하며, 각 단계는 하나의 생각, 하나의 도구 호출 및 실행으로 구성됩니다. 이 에이전트에는 두 가지 클래스가 있습니다:<ul><li><a href="/docs/transformers/pr_22105/ko/main_classes/agent#transformers.ReactJsonAgent">ReactJsonAgent</a>는 도구 호출을 JSON으로 작성합니다.</li> <li><a href="/docs/transformers/pr_22105/ko/main_classes/agent#transformers.ReactCodeAgent">ReactCodeAgent</a>는 도구 호출을 Python 코드로 작성합니다.</li></ul></li>',Ao,ze,Mo,j,Be,za,te,Se,Ba,un,Ps=`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,ne,Oe,Oa,fn,js="Parse action from the LLM output",Ga,oe,Ge,Za,vn,Ds="To be implemented in the child class",Ya,ae,Ze,Fa,_n,Es=`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.`,Lo,Ye,qo,N,Fe,Qa,bn,Hs="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.",Xa,re,Qe,Ka,$n,Js=`Override this method if you want to change the way the code is
cleaned in the <code>run</code> method.`,er,Z,Xe,tr,yn,Ns="Runs the agent for the given task.",nr,se,Po,Ke,jo,A,et,or,wn,Us=`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.`,ar,le,tt,rr,xn,Rs="Runs the agent in direct mode, returning outputs only at the end: should be launched only in the <code>run</code> method.",sr,ie,nt,lr,Tn,Ws="Used periodically by the agent to plan the next steps to reach the objective.",ir,de,ot,dr,kn,Vs="This method provides a final answer to the task, based on the logs of the agent’s interactions.",mr,Y,at,pr,Cn,zs="Runs the agent for the given task.",cr,me,hr,pe,rt,gr,In,Bs="Runs the agent in streaming mode, yielding steps as they are executed: should be launched only in the <code>run</code> method.",Do,B,st,ur,An,Ss=`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.`,fr,ce,lt,vr,Mn,Os=`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.`,Eo,S,it,_r,Ln,Gs=`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,dt,$r,qn,Zs=`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.`,Ho,mt,Jo,pt,No,O,ct,yr,Pn,Ys="Main function to quickly load a tool, be it on the Hub or in the Transformers library.",wr,ge,Uo,ht,Ro,k,gt,xr,jn,Fs=`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:`,Tr,Dn,Qs=`<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>`,kr,En,Xs=`You can also override the method <a href="/docs/transformers/pr_22105/ko/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/pr_22105/ko/main_classes/agent#transformers.Tool.setup">setup()</a> will be called the first time you use your tool, but not at
instantiation.`,Cr,ue,ut,Ir,Hn,Ks='Creates a <a href="/docs/transformers/pr_22105/ko/main_classes/agent#transformers.Tool">Tool</a> from a gradio tool.',Ar,F,ft,Mr,Jn,el="Loads a tool defined on the Hub.",Lr,fe,qr,ve,vt,Pr,Nn,tl='Creates a <a href="/docs/transformers/pr_22105/ko/main_classes/agent#transformers.Tool">Tool</a> from a langchain tool.',jr,V,_t,Dr,Un,nl="Upload the tool to the Hub.",Er,Rn,ol="For this method to work properly, your tool must have been defined in a separate module (not <code>__main__</code>).",Hr,_e,Jr,z,bt,Nr,Wn,al=`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:`,Ur,Vn,rl=`<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>`,Rr,zn,sl="You should only use this method to save tools that are defined in a separate module (not <code>__main__</code>).",Wr,be,$t,Vr,Bn,ll=`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.`,Wo,yt,Vo,M,wt,zr,Sn,il=`The toolbox contains all tools that the agent can perform operations with, as well as a few methods to
manage them.`,Br,$e,xt,Sr,On,dl="Adds a tool to the toolbox",Or,ye,Tt,Gr,Gn,ml="Clears the toolbox",Zr,we,kt,Yr,Zn,pl="Removes a tool from the toolbox",Fr,xe,Ct,Qr,Yn,cl="Returns the description of all tools in the toolbox",Xr,Te,It,Kr,Fn,hl="Updates a tool in the toolbox according to its name.",zo,At,Bo,L,Mt,es,Qn,gl=`A <a href="/docs/transformers/pr_22105/ko/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/pr_22105/ko/main_classes/agent#transformers.Tool">Tool</a>, you will
need to specify:`,ts,Xn,ul=`<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/pr_22105/ko/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/pr_22105/ko/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a>) — The class to use to load the
post-processor (when different from the pre-processor).</li>`,ns,ke,Lt,os,Kn,fl="Uses the <code>post_processor</code> to decode the model output.",as,Ce,qt,rs,eo,vl="Uses the <code>pre_processor</code> to prepare the inputs for the <code>model</code>.",ss,Ie,Pt,ls,to,_l="Sends the inputs through the <code>model</code>.",is,Ae,jt,ds,no,bl="Instantiates the <code>pre_processor</code>, <code>model</code> and <code>post_processor</code> if necessary.",So,Dt,Oo,X,Et,ms,oo,$l=`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>.`,Go,Ht,Zo,U,Jt,ps,ao,yl="Tool collections enable loading all Spaces from a collection in order to be added to the agent’s toolbox.",cs,ro,wl=`<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>`,hs,Me,Yo,Nt,Fo,Ut,xl=`에이전트 프레임워크에서 사용할 수 있는 엔진을 자유롭게 만들고 사용할 수 있습니다.
이 엔진들은 다음과 같은 사양을 가지고 있습니다:`,Qo,Rt,Tl='<li>입력(<code>List[Dict[str, str]]</code>)에 대한 <a href="../chat_templating.md">메시지 형식</a>을 따르고 문자열을 반환해야 합니다.</li> <li>인수 <code>stop_sequences</code>에 시퀀스가 전달되기 <em>전에</em> 출력을 생성하는 것을 중지해야 합니다.</li>',Xo,Wt,Ko,Vt,kl="편의를 위해, 위의 사항을 구현하고 대규모 언어 모델 실행을 위해 추론 엔드포인트를 사용하는 <code>HfApiEngine</code>을 추가했습니다.",ea,zt,ta,K,Bt,gs,so,Cl="This engine leverages Hugging Face’s Inference API service, either serverless or with a dedicated endpoint.",na,St,oa,Ot,Il=`에이전트는 도구 간의 모든 유형의 객체를 처리할 수 있습니다; 도구는 완전히 멀티모달이므로 텍스트, 이미지, 오디오, 비디오 등 다양한 유형을 수락하고 반환할 수 있습니다.
도구 간의 호환성을 높이고 ipython (jupyter, colab, ipython 노트북, …)에서 이러한
반환 값을 올바르게 렌더링하기 위해 이러한 유형을 중심으로 래퍼 클래스를
구현합니다.`,aa,Gt,Al=`래핑된 객체는 처음과 동일하게 작동해야 합니다; 텍스트 객체는 여전히 문자열로 작동해야 하며,
이미지 객체는 여전히 <code>PIL.Image</code>로 작동해야 합니다.`,ra,Zt,Ml="이러한 유형에는 세 가지 특정 목적이 있습니다:",sa,Yt,Ll=`<li><code>to_raw</code>를 호출하면 기본 객체가 반환되어야 합니다.</li> <li><code>to_string</code>을 호출하면 객체가 문자열로 반환되어야 합니다:
<code>AgentText</code>의 경우 문자열이 될 수 있지만, 다른 경우에는 객체의 직렬화된 버전의 경로일 수 있습니다.</li> <li>ipython 커널에서 표시할 때 객체가 올바르게 표시되어야 합니다.</li>`,la,Ft,ia,ee,Qt,us,lo,ql="Text type returned by the agent. Behaves as a string.",da,Xt,ma,D,Kt,fs,io,Pl="Image type returned by the agent. Behaves as a PIL.Image.",vs,Le,en,_s,mo,jl="Saves the image to a file.",bs,qe,tn,$s,po,Dl="Returns the “raw” version of that object. In the case of an AgentImage, it is a PIL.Image.",ys,Pe,nn,ws,co,El=`Returns the stringified version of that object. In the case of an AgentImage, it is a path to the serialized
version of the image.`,pa,on,ca,R,an,xs,ho,Hl="Audio type returned by the agent.",Ts,je,rn,ks,go,Jl="Returns the “raw” version of that object. It is a <code>torch.Tensor</code> object.",Cs,De,sn,Is,uo,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,wo,ua;return x=new q({props:{title:"에이전트 & 도구",local:"agents-tools",headingTag:"h1"}}),C=new As({props:{warning:!0,$$slots:{default:[Sl]},$$scope:{ctx:P}}}),Re=new q({props:{title:"에이전트",local:"agents",headingTag:"h2"}}),ze=new q({props:{title:"Agent",local:"agent ][ transformers.Agent",headingTag:"h3"}}),Be=new $({props:{name:"class transformers.Agent",anchor:"transformers.Agent",parameters:[{name:"tools",val:": Union"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfApiEngine object at 0x7f3c4e5f95d0>"},{name:"system_prompt",val:" = '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.\\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\\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 `wiki` to get the age of the pope, then raise it to the power 0.36.\\nCode:\\n```py\\npope_age = wiki(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. On top of performing computations in the Python code snippets that you create, you have acces to those tools (and no other tool):\\n\\n<<tool_descriptions>>\\n\\n<<managed_agents_descriptions>>\\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 = wiki({\\'query\\': \"What is the place where James Bond lives?\"})\\', but use the arguments directly as in \\'answer = wiki(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:" = None"},{name:"additional_args",val:" = {}"},{name:"max_iterations",val:": int = 6"},{name:"tool_parser",val:" = <function parse_json_tool_call at 0x7f3c4e5fc670>"},{name:"add_base_tools",val:": bool = False"},{name:"verbose",val:": int = 0"},{name:"grammar",val:": Dict = None"},{name:"managed_agents",val:": List = None"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/agents.py#L352"}}),Se=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/vr_22105/src/transformers/agents/agents.py#L513"}}),Oe=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/vr_22105/src/transformers/agents/agents.py#L492"}}),Ge=new $({props:{name:"run",anchor:"transformers.Agent.run",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/agents.py#L568"}}),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/vr_22105/src/transformers/agents/agents.py#L432"}}),Ye=new q({props:{title:"CodeAgent",local:"codeagent ][ transformers.CodeAgent",headingTag:"h3"}}),Fe=new $({props:{name:"class transformers.CodeAgent",anchor:"transformers.CodeAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfApiEngine object at 0x7f3c4e5f9840>"},{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\\nThought: I 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\\nThought: I 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\\nThought: I 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\\nThought: I 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\\nThought: I 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\\nThought: I 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    Returns an output of type: {{tool.output_type}}\\n'"},{name:"grammar",val:": Dict = None"},{name:"additional_authorized_imports",val:": Optional = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/agents.py#L573"}}),Qe=new $({props:{name:"parse_code_blob",anchor:"transformers.CodeAgent.parse_code_blob",parameters:[{name:"result",val:": str"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/agents.py#L609"}}),Xe=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/vr_22105/src/transformers/agents/agents.py#L616"}}),se=new Va({props:{anchor:"transformers.CodeAgent.run.example",$$slots:{default:[Ol]},$$scope:{ctx:P}}}),Ke=new q({props:{title:"React agents",local:"react-agents ][ transformers.ReactAgent",headingTag:"h3"}}),et=new $({props:{name:"class transformers.ReactAgent",anchor:"transformers.ReactAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfApiEngine object at 0x7f3c4e5f99c0>"},{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.\\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\\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 `wiki` to get the age of the pope, then raise it to the power 0.36.\\nCode:\\n```py\\npope_age = wiki(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. On top of performing computations in the Python code snippets that you create, you have acces to those tools (and no other tool):\\n\\n<<tool_descriptions>>\\n\\n<<managed_agents_descriptions>>\\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 = wiki({\\'query\\': \"What is the place where James Bond lives?\"})\\', but use the arguments directly as in \\'answer = wiki(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    Returns an output of type: {{tool.output_type}}\\n'"},{name:"grammar",val:": Dict = None"},{name:"plan_type",val:": Literal = 'default'"},{name:"planning_interval",val:": Optional = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/agents.py#L693"}}),tt=new $({props:{name:"direct_run",anchor:"transformers.ReactAgent.direct_run",parameters:[{name:"task",val:": str"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/agents.py#L801"}}),nt=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/vr_22105/src/transformers/agents/agents.py#L830"}}),ot=new $({props:{name:"provide_final_answer",anchor:"transformers.ReactAgent.provide_final_answer",parameters:[{name:"task",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/agents.py#L723"}}),at=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/vr_22105/src/transformers/agents/agents.py#L745"}}),me=new Va({props:{anchor:"transformers.ReactAgent.run.example",$$slots:{default:[Gl]},$$scope:{ctx:P}}}),rt=new $({props:{name:"stream_run",anchor:"transformers.ReactAgent.stream_run",parameters:[{name:"task",val:": str"}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/agents.py#L772"}}),st=new $({props:{name:"class transformers.ReactJsonAgent",anchor:"transformers.ReactJsonAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfApiEngine object at 0x7f3c4e5f9b70>"},{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": {"prompt": "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    Returns an output of type: {{tool.output_type}}\\n'"},{name:"grammar",val:": Dict = None"},{name:"planning_interval",val:": Optional = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/agents.py#L930"}}),lt=new $({props:{name:"step",anchor:"transformers.ReactJsonAgent.step",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/agents.py#L957"}}),it=new $({props:{name:"class transformers.ReactCodeAgent",anchor:"transformers.ReactCodeAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfApiEngine object at 0x7f3c4e5f9cf0>"},{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.\\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\\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 `wiki` to get the age of the pope, then raise it to the power 0.36.\\nCode:\\n```py\\npope_age = wiki(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. On top of performing computations in the Python code snippets that you create, you have acces to those tools (and no other tool):\\n\\n<<tool_descriptions>>\\n\\n<<managed_agents_descriptions>>\\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 = wiki({\\'query\\': \"What is the place where James Bond lives?\"})\\', but use the arguments directly as in \\'answer = wiki(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    Returns an output of type: {{tool.output_type}}\\n'"},{name:"grammar",val:": Dict = None"},{name:"additional_authorized_imports",val:": Optional = None"},{name:"planning_interval",val:": Optional = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/agents.py#L1037"}}),dt=new $({props:{name:"step",anchor:"transformers.ReactCodeAgent.step",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/agents.py#L1078"}}),mt=new q({props:{title:"Tools",local:"tools",headingTag:"h2"}}),pt=new q({props:{title:"load_tool",local:"loadtool ][ 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/vr_22105/src/transformers/agents/tools.py#L693"}}),ge=new As({props:{warning:!0,$$slots:{default:[Zl]},$$scope:{ctx:P}}}),ht=new q({props:{title:"Tool",local:"tool ][ 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/vr_22105/src/transformers/agents/tools.py#L103"}}),ut=new $({props:{name:"from_gradio",anchor:"transformers.Tool.from_gradio",parameters:[{name:"gradio_tool",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/tools.py#L408"}}),ft=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/vr_22105/src/transformers/agents/tools.py#L239"}}),fe=new As({props:{warning:!0,$$slots:{default:[Yl]},$$scope:{ctx:P}}}),vt=new $({props:{name:"from_langchain",anchor:"transformers.Tool.from_langchain",parameters:[{name:"langchain_tool",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/tools.py#L430"}}),_t=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/vr_22105/src/transformers/agents/tools.py#L351"}}),_e=new Va({props:{anchor:"transformers.Tool.push_to_hub.example",$$slots:{default:[Fl]},$$scope:{ctx:P}}}),bt=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/vr_22105/src/transformers/agents/tools.py#L179"}}),$t=new $({props:{name:"setup",anchor:"transformers.Tool.setup",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/tools.py#L172"}}),yt=new q({props:{title:"Toolbox",local:"toolbox ][ transformers.Toolbox",headingTag:"h3"}}),wt=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/vr_22105/src/transformers/agents/agents.py#L182"}}),xt=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/vr_22105/src/transformers/agents/agents.py#L228"}}),Tt=new $({props:{name:"clear_toolbox",anchor:"transformers.Toolbox.clear_toolbox",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/agents.py#L268"}}),kt=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/vr_22105/src/transformers/agents/agents.py#L240"}}),Ct=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/vr_22105/src/transformers/agents/agents.py#L216"}}),It=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/vr_22105/src/transformers/agents/agents.py#L254"}}),At=new q({props:{title:"PipelineTool",local:"pipelinetool ][ transformers.PipelineTool",headingTag:"h3"}}),Mt=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/pr_22105/ko/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/vr_22105/src/transformers/agents/tools.py#L491"}}),Lt=new $({props:{name:"decode",anchor:"transformers.PipelineTool.decode",parameters:[{name:"outputs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/tools.py#L614"}}),qt=new $({props:{name:"encode",anchor:"transformers.PipelineTool.encode",parameters:[{name:"raw_inputs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/tools.py#L601"}}),Pt=new $({props:{name:"forward",anchor:"transformers.PipelineTool.forward",parameters:[{name:"inputs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/tools.py#L607"}}),jt=new $({props:{name:"setup",anchor:"transformers.PipelineTool.setup",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_22105/src/transformers/agents/tools.py#L575"}}),Dt=new q({props:{title:"launch_gradio_demo",local:"launchgradiodemo ][ transformers.launch_gradio_demo",headingTag:"h3"}}),Et=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/vr_22105/src/transformers/agents/tools.py#L639"}}),Ht=new q({props:{title:"ToolCollection",local:"toolcollection ][ transformers.ToolCollection",headingTag:"h3"}}),Jt=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/vr_22105/src/transformers/agents/tools.py#L817"}}),Me=new Va({props:{anchor:"transformers.ToolCollection.example",$$slots:{default:[Ql]},$$scope:{ctx:P}}}),Nt=new q({props:{title:"엔진",local:"engines",headingTag:"h2"}}),Wt=new q({props:{title:"HfApiEngine",local:"HfApiEngine ][ transformers.HfApiEngine",headingTag:"h3"}}),zt=new xo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEhmQXBpRW5naW5lJTBBJTBBbWVzc2FnZXMlMjAlM0QlMjAlNUIlMEElMjAlMjAlN0IlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlMjJIZWxsbyUyQyUyMGhvdyUyMGFyZSUyMHlvdSUzRiUyMiU3RCUyQyUwQSUyMCUyMCU3QiUyMnJvbGUlMjIlM0ElMjAlMjJhc3Npc3RhbnQlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIySSdtJTIwZG9pbmclMjBncmVhdC4lMjBIb3clMjBjYW4lMjBJJTIwaGVscCUyMHlvdSUyMHRvZGF5JTNGJTIyJTdEJTJDJTBBJTIwJTIwJTdCJTIycm9sZSUyMiUzQSUyMCUyMnVzZXIlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIyTm8lMjBuZWVkJTIwdG8lMjBoZWxwJTJDJTIwdGFrZSUyMGl0JTIwZWFzeS4lMjIlN0QlMkMlMEElNUQlMEElMEFIZkFwaUVuZ2luZSgpKG1lc3NhZ2VzJTJDJTIwc3RvcF9zZXF1ZW5jZXMlM0QlNUIlMjJjb252ZXJzYXRpb24lMjIlNUQpJTBB",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> HfApiEngine

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

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

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