import{s as Hl,o as El,n as gn}from"../chunks/scheduler.56730f09.js";import{S as Nl,i as Ul,g as r,s as n,r as d,A as Rl,h as s,f as a,c as o,j as _,u as m,x as u,k as b,y as t,a as i,v as c,d as p,t as h,w as g}from"../chunks/index.1f144517.js";import{T as ks}from"../chunks/Tip.41e845e5.js";import{D as $,E as Ra}from"../chunks/ExampleCodeBlock.e82611a0.js";import{C as wo}from"../chunks/CodeBlock.738eeccb.js";import{H as q,E as Wl}from"../chunks/EditOnGithub.854793f1.js";function Bl(P){let f,x=`Transformers Agent는 실험 중인 API이므로 언제든지 변경될 수 있습니다.
API나 기반 모델이 자주 업데이트되므로, 에이전트가 제공하는 결과물은 달라질 수 있습니다.`;return{c(){f=r("p"),f.textContent=x},l(y){f=s(y,"P",{"data-svelte-h":!0}),u(f)!=="svelte-1kfd8kh"&&(f.textContent=x)},m(y,w){i(y,f,w)},p:gn,d(y){y&&a(f)}}}function Vl(P){let f,x="Example:",y,w,T;return w=new wo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5hZ2VudHMlMjBpbXBvcnQlMjBDb2RlQWdlbnQlMkMlMjBQeXRob25JbnRlcnByZXRlclRvb2wlMEElMEFweXRob25faW50ZXJwcmV0ZXIlMjAlM0QlMjBQeXRob25JbnRlcnByZXRlclRvb2woKSUwQWFnZW50JTIwJTNEJTIwQ29kZUFnZW50KHRvb2xzJTNEJTVCcHl0aG9uX2ludGVycHJldGVyJTVEKSUwQWFnZW50LnJ1biglMjJXaGF0JTIwaXMlMjB0aGUlMjByZXN1bHQlMjBvZiUyMDIlMjBwb3dlciUyMDMuNzM4NCUzRiUyMik=",highlighted:`<span class="hljs-keyword">from</span> transformers.agents <span class="hljs-keyword">import</span> CodeAgent, PythonInterpreterTool

python_interpreter = PythonInterpreterTool()
agent = CodeAgent(tools=[python_interpreter])
agent.run(<span class="hljs-string">&quot;What is the result of 2 power 3.7384?&quot;</span>)`,wrap:!1}}),{c(){f=r("p"),f.textContent=x,y=n(),d(w.$$.fragment)},l(v){f=s(v,"P",{"data-svelte-h":!0}),u(f)!=="svelte-11lpom8"&&(f.textContent=x),y=o(v),m(w.$$.fragment,v)},m(v,C){i(v,f,C),i(v,y,C),c(w,v,C),T=!0},p:gn,i(v){T||(p(w.$$.fragment,v),T=!0)},o(v){h(w.$$.fragment,v),T=!1},d(v){v&&(a(f),a(y)),g(w,v)}}}function zl(P){let f,x="Example:",y,w,T;return w=new wo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5hZ2VudHMlMjBpbXBvcnQlMjBSZWFjdENvZGVBZ2VudCUwQWFnZW50JTIwJTNEJTIwUmVhY3RDb2RlQWdlbnQodG9vbHMlM0QlNUIlNUQpJTBBYWdlbnQucnVuKCUyMldoYXQlMjBpcyUyMHRoZSUyMHJlc3VsdCUyMG9mJTIwMiUyMHBvd2VyJTIwMy43Mzg0JTNGJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers.agents <span class="hljs-keyword">import</span> ReactCodeAgent
agent = ReactCodeAgent(tools=[])
agent.run(<span class="hljs-string">&quot;What is the result of 2 power 3.7384?&quot;</span>)`,wrap:!1}}),{c(){f=r("p"),f.textContent=x,y=n(),d(w.$$.fragment)},l(v){f=s(v,"P",{"data-svelte-h":!0}),u(f)!=="svelte-11lpom8"&&(f.textContent=x),y=o(v),m(w.$$.fragment,v)},m(v,C){i(v,f,C),i(v,y,C),c(w,v,C),T=!0},p:gn,i(v){T||(p(w.$$.fragment,v),T=!0)},o(v){h(w.$$.fragment,v),T=!1},d(v){v&&(a(f),a(y)),g(w,v)}}}function Sl(P){let f,x=`Loading a tool means that you’ll download the tool and execute it locally.
ALWAYS inspect the tool you’re downloading before loading it within your runtime, as you would do when
installing a package using pip/npm/apt.`;return{c(){f=r("p"),f.textContent=x},l(y){f=s(y,"P",{"data-svelte-h":!0}),u(f)!=="svelte-1kcherd"&&(f.textContent=x)},m(y,w){i(y,f,w)},p:gn,d(y){y&&a(f)}}}function Ol(P){let f,x=`Loading a tool from the Hub means that you’ll download the tool and execute it locally.
ALWAYS inspect the tool you’re downloading before loading it within your runtime, as you would do when
installing a package using pip/npm/apt.`;return{c(){f=r("p"),f.textContent=x},l(y){f=s(y,"P",{"data-svelte-h":!0}),u(f)!=="svelte-fpk7e5"&&(f.textContent=x)},m(y,w){i(y,f,w)},p:gn,d(y){y&&a(f)}}}function Zl(P){let f,x="For instance:",y,w,T;return w=new wo({props:{code:"ZnJvbSUyMG15X3Rvb2xfbW9kdWxlJTIwaW1wb3J0JTIwTXlUb29sJTBBbXlfdG9vbCUyMCUzRCUyME15VG9vbCgpJTBBbXlfdG9vbC5wdXNoX3RvX2h1YiglMjJteS11c2VybmFtZSUyRm15LXNwYWNlJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> my_tool_module <span class="hljs-keyword">import</span> MyTool
my_tool = MyTool()
my_tool.push_to_hub(<span class="hljs-string">&quot;my-username/my-space&quot;</span>)`,wrap:!1}}),{c(){f=r("p"),f.textContent=x,y=n(),d(w.$$.fragment)},l(v){f=s(v,"P",{"data-svelte-h":!0}),u(f)!=="svelte-4vay6o"&&(f.textContent=x),y=o(v),m(w.$$.fragment,v)},m(v,C){i(v,f,C),i(v,y,C),c(w,v,C),T=!0},p:gn,i(v){T||(p(w.$$.fragment,v),T=!0)},o(v){h(w.$$.fragment,v),T=!1},d(v){v&&(a(f),a(y)),g(w,v)}}}function Gl(P){let f,x="Example:",y,w,T;return w=new wo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRvb2xDb2xsZWN0aW9uJTJDJTIwUmVhY3RDb2RlQWdlbnQlMEElMEFpbWFnZV90b29sX2NvbGxlY3Rpb24lMjAlM0QlMjBUb29sQ29sbGVjdGlvbihjb2xsZWN0aW9uX3NsdWclM0QlMjJodWdnaW5nZmFjZS10b29scyUyRmRpZmZ1c2lvbi10b29scy02NjMwYmIxOWE5NDJjMjMwNmEyY2RiNmYlMjIpJTBBYWdlbnQlMjAlM0QlMjBSZWFjdENvZGVBZ2VudCh0b29scyUzRCU1QippbWFnZV90b29sX2NvbGxlY3Rpb24udG9vbHMlNUQlMkMlMjBhZGRfYmFzZV90b29scyUzRFRydWUpJTBBJTBBYWdlbnQucnVuKCUyMlBsZWFzZSUyMGRyYXclMjBtZSUyMGElMjBwaWN0dXJlJTIwb2YlMjByaXZlcnMlMjBhbmQlMjBsYWtlcy4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> ToolCollection, ReactCodeAgent

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

<span class="hljs-meta">&gt;&gt;&gt; </span>agent.run(<span class="hljs-string">&quot;Please draw me a picture of rivers and lakes.&quot;</span>)`,wrap:!1}}),{c(){f=r("p"),f.textContent=x,y=n(),d(w.$$.fragment)},l(v){f=s(v,"P",{"data-svelte-h":!0}),u(f)!=="svelte-11lpom8"&&(f.textContent=x),y=o(v),m(w.$$.fragment,v)},m(v,C){i(v,f,C),i(v,y,C),c(w,v,C),T=!0},p:gn,i(v){T||(p(w.$$.fragment,v),T=!0)},o(v){h(w.$$.fragment,v),T=!1},d(v){v&&(a(f),a(y)),g(w,v)}}}function Yl(P){let f,x,y,w,T,v,C,To,Ne,Cs=`에이전트와 도구에 대해 더 알아보려면 <a href="../transformers_agents">소개 가이드</a>를 꼭 읽어보세요.
이 페이지에는 기본 클래스에 대한 API 문서가 포함되어 있습니다.`,xo,Ue,ko,Re,Is='우리는 기본 <a href="/docs/transformers/pr_30674/ko/main_classes/agent#transformers.Agent">Agent</a> 클래스를 기반으로 두 가지 유형의 에이전트를 제공합니다:',Co,We,Ms='<li><a href="/docs/transformers/pr_30674/ko/main_classes/agent#transformers.CodeAgent">CodeAgent</a>는 한 번에 동작합니다. 작업을 해결하기 위해 코드를 생성한 다음, 바로 실행합니다.</li> <li><a href="/docs/transformers/pr_30674/ko/main_classes/agent#transformers.ReactAgent">ReactAgent</a>는 단계별로 동작하며, 각 단계는 하나의 생각, 하나의 도구 호출 및 실행으로 구성됩니다. 이 에이전트에는 두 가지 클래스가 있습니다:<ul><li><a href="/docs/transformers/pr_30674/ko/main_classes/agent#transformers.ReactJsonAgent">ReactJsonAgent</a>는 도구 호출을 JSON으로 작성합니다.</li> <li><a href="/docs/transformers/pr_30674/ko/main_classes/agent#transformers.ReactCodeAgent">ReactCodeAgent</a>는 도구 호출을 Python 코드로 작성합니다.</li></ul></li>',Io,Be,Mo,j,Ve,Wa,ee,ze,Ba,un,As=`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.`,Va,te,Se,za,fn,Ls="Parse action from the LLM output",Sa,ne,Oe,Oa,vn,qs="To be implemented in the child class",Za,oe,Ze,Ga,_n,Ps=`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.`,Ao,Ge,Lo,N,Ye,Ya,bn,js="A class for an agent that solves the given task using a single block of code. It plans all its actions, then executes all in one shot.",Fa,ae,Fe,Qa,$n,Js=`Override this method if you want to change the way the code is
cleaned in the <code>run</code> method.`,Xa,G,Qe,Ka,yn,Ds="Runs the agent for the given task.",er,re,qo,Xe,Po,M,Ke,tr,wn,Hs=`This agent that solves the given task step by step, using the ReAct framework:
While the objective is not reached, the agent will perform a cycle of thinking and acting.
The action will be parsed from the LLM output: it consists in calls to tools from the toolbox, with arguments chosen by the LLM engine.`,nr,se,et,or,Tn,Es="Runs the agent in direct mode, returning outputs only at the end: should be launched only in the <code>run</code> method.",ar,le,tt,rr,xn,Ns="Used periodically by the agent to plan the next steps to reach the objective.",sr,ie,nt,lr,kn,Us="This method provides a final answer to the task, based on the logs of the agent’s interactions.",ir,Y,ot,dr,Cn,Rs="Runs the agent for the given task.",mr,de,cr,me,at,pr,In,Ws="Runs the agent in streaming mode, yielding steps as they are executed: should be launched only in the <code>run</code> method.",jo,z,rt,hr,Mn,Bs=`This agent that solves the given task step by step, using the ReAct framework:
While the objective is not reached, the agent will perform a cycle of thinking and acting.
The tool calls will be formulated by the LLM in JSON format, then parsed and executed.`,gr,ce,st,ur,An,Vs=`Perform one step in the ReAct framework: the agent thinks, acts, and observes the result.
The errors are raised here, they are caught and logged in the run() method.`,Jo,S,lt,fr,Ln,zs=`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.`,vr,pe,it,_r,qn,Ss=`Perform one step in the ReAct framework: the agent thinks, acts, and observes the result.
The errors are raised here, they are caught and logged in the run() method.`,Do,dt,Ho,mt,Eo,O,ct,br,Pn,Os="Main function to quickly load a tool, be it on the Hub or in the Transformers library.",$r,he,No,pt,Uo,k,ht,yr,jn,Zs=`A base class for the functions used by the agent. Subclass this and implement the <code>__call__</code> method as well as the
following class attributes:`,wr,Jn,Gs=`<li><strong>description</strong> (<code>str</code>) — A short description of what your tool does, the inputs it expects and the output(s) it
will return. For instance ‘This is a tool that downloads a file from a <code>url</code>. It takes the <code>url</code> as input, and
returns the text contained in the file’.</li> <li><strong>name</strong> (<code>str</code>) — A performative name that will be used for your tool in the prompt to the agent. For instance
<code>&quot;text-classifier&quot;</code> or <code>&quot;image_generator&quot;</code>.</li> <li><strong>inputs</strong> (<code>Dict[str, Dict[str, Union[str, type]]]</code>) — The dict of modalities expected for the inputs.
It has one <code>type</code>key and a <code>description</code>key.
This is used by <code>launch_gradio_demo</code> or to make a nice space from your tool, and also can be used in the generated
description for your tool.</li> <li><strong>output_type</strong> (<code>type</code>) — The type of the tool output. This is used by <code>launch_gradio_demo</code>
or to make a nice space from your tool, and also can be used in the generated description for your tool.</li>`,Tr,Dn,Ys=`You can also override the method <a href="/docs/transformers/pr_30674/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_30674/ko/main_classes/agent#transformers.Tool.setup">setup()</a> will be called the first time you use your tool, but not at
instantiation.`,xr,ge,gt,kr,Hn,Fs='Creates a <a href="/docs/transformers/pr_30674/ko/main_classes/agent#transformers.Tool">Tool</a> from a gradio tool.',Cr,F,ut,Ir,En,Qs="Loads a tool defined on the Hub.",Mr,ue,Ar,fe,ft,Lr,Nn,Xs='Creates a <a href="/docs/transformers/pr_30674/ko/main_classes/agent#transformers.Tool">Tool</a> from a langchain tool.',qr,B,vt,Pr,Un,Ks="Upload the tool to the Hub.",jr,Rn,el="For this method to work properly, your tool must have been defined in a separate module (not <code>__main__</code>).",Jr,ve,Dr,V,_t,Hr,Wn,tl=`Saves the relevant code files for your tool so it can be pushed to the Hub. This will copy the code of your
tool in <code>output_dir</code> as well as autogenerate:`,Er,Bn,nl=`<li>a config file named <code>tool_config.json</code></li> <li>an <code>app.py</code> file so that your tool can be converted to a space</li> <li>a <code>requirements.txt</code> containing the names of the module used by your tool (as detected when inspecting its
code)</li>`,Nr,Vn,ol="You should only use this method to save tools that are defined in a separate module (not <code>__main__</code>).",Ur,_e,bt,Rr,zn,al=`Overwrite this method here for any operation that is expensive and needs to be executed before you start using
your tool. Such as loading a big model.`,Ro,$t,Wo,A,yt,Wr,Sn,rl=`The toolbox contains all tools that the agent can perform operations with, as well as a few methods to
manage them.`,Br,be,wt,Vr,On,sl="Adds a tool to the toolbox",zr,$e,Tt,Sr,Zn,ll="Clears the toolbox",Or,ye,xt,Zr,Gn,il="Removes a tool from the toolbox",Gr,we,kt,Yr,Yn,dl="Returns the description of all tools in the toolbox",Fr,Te,Ct,Qr,Fn,ml="Updates a tool in the toolbox according to its name.",Bo,It,Vo,L,Mt,Xr,Qn,cl=`A <a href="/docs/transformers/pr_30674/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_30674/ko/main_classes/agent#transformers.Tool">Tool</a>, you will
need to specify:`,Kr,Xn,pl=`<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 <code>AutoProcessor</code>) — The class to use to load the
pre-processor</li> <li><strong>post_processor_class</strong> (<code>type</code>, <em>optional</em>, defaults to <code>AutoProcessor</code>) — The class to use to load the
post-processor (when different from the pre-processor).</li>`,es,xe,At,ts,Kn,hl="Uses the <code>post_processor</code> to decode the model output.",ns,ke,Lt,os,eo,gl="Uses the <code>pre_processor</code> to prepare the inputs for the <code>model</code>.",as,Ce,qt,rs,to,ul="Sends the inputs through the <code>model</code>.",ss,Ie,Pt,ls,no,fl="Instantiates the <code>pre_processor</code>, <code>model</code> and <code>post_processor</code> if necessary.",zo,jt,So,X,Jt,is,oo,vl=`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>.`,Oo,Dt,Zo,U,Ht,ds,ao,_l="Tool collections enable loading all Spaces from a collection in order to be added to the agent’s toolbox.",ms,ro,bl=`<p>[!NOTE]
Only Spaces will be fetched, so you can feel free to add models and datasets to your collection if you’d
like for this collection to showcase them.</p>`,cs,Me,Go,Et,Yo,Nt,$l=`에이전트 프레임워크에서 사용할 수 있는 엔진을 자유롭게 만들고 사용할 수 있습니다.
이 엔진들은 다음과 같은 사양을 가지고 있습니다:`,Fo,Ut,yl='<li>입력(<code>List[Dict[str, str]]</code>)에 대한 <a href="../chat_templating.md">메시지 형식</a>을 따르고 문자열을 반환해야 합니다.</li> <li>인수 <code>stop_sequences</code>에 시퀀스가 전달되기 <em>전에</em> 출력을 생성하는 것을 중지해야 합니다.</li>',Qo,Rt,Xo,Wt,wl="편의를 위해, 위의 사항을 구현하고 대규모 언어 모델 실행을 위해 추론 엔드포인트를 사용하는 <code>HfEngine</code>을 추가했습니다.",Ko,Bt,ea,Vt,zt,ta,St,na,Ot,Tl=`에이전트는 도구 간의 모든 유형의 객체를 처리할 수 있습니다; 도구는 완전히 멀티모달이므로 텍스트, 이미지, 오디오, 비디오 등 다양한 유형을 수락하고 반환할 수 있습니다.
도구 간의 호환성을 높이고 ipython (jupyter, colab, ipython 노트북, …)에서 이러한
반환 값을 올바르게 렌더링하기 위해 이러한 유형을 중심으로 래퍼 클래스를
구현합니다.`,oa,Zt,xl=`래핑된 객체는 처음과 동일하게 작동해야 합니다; 텍스트 객체는 여전히 문자열로 작동해야 하며,
이미지 객체는 여전히 <code>PIL.Image</code>로 작동해야 합니다.`,aa,Gt,kl="이러한 유형에는 세 가지 특정 목적이 있습니다:",ra,Yt,Cl=`<li><code>to_raw</code>를 호출하면 기본 객체가 반환되어야 합니다.</li> <li><code>to_string</code>을 호출하면 객체가 문자열로 반환되어야 합니다:
<code>AgentText</code>의 경우 문자열이 될 수 있지만, 다른 경우에는 객체의 직렬화된 버전의 경로일 수 있습니다.</li> <li>ipython 커널에서 표시할 때 객체가 올바르게 표시되어야 합니다.</li>`,sa,Ft,la,K,Qt,ps,so,Il="Text type returned by the agent. Behaves as a string.",ia,Xt,da,J,Kt,hs,lo,Ml="Image type returned by the agent. Behaves as a PIL.Image.",gs,Ae,en,us,io,Al="Saves the image to a file.",fs,Le,tn,vs,mo,Ll="Returns the “raw” version of that object. In the case of an AgentImage, it is a PIL.Image.",_s,qe,nn,bs,co,ql=`Returns the stringified version of that object. In the case of an AgentImage, it is a path to the serialized
version of the image.`,ma,on,ca,R,an,$s,po,Pl="Audio type returned by the agent.",ys,Pe,rn,ws,ho,jl="Returns the “raw” version of that object. It is a <code>torch.Tensor</code> object.",Ts,je,sn,xs,go,Jl=`Returns the stringified version of that object. In the case of an AgentAudio, it is a path to the serialized
version of the audio.`,pa,ln,ha,yo,ga;return T=new q({props:{title:"에이전트 & 도구",local:"agents-tools",headingTag:"h1"}}),C=new ks({props:{warning:!0,$$slots:{default:[Bl]},$$scope:{ctx:P}}}),Ue=new q({props:{title:"에이전트",local:"agents",headingTag:"h2"}}),Be=new q({props:{title:"Agent",local:"agent ][ transformers.Agent",headingTag:"h3"}}),Ve=new $({props:{name:"class transformers.Agent",anchor:"transformers.Agent",parameters:[{name:"tools",val:": Union"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfEngine object at 0x7f46421fa410>"},{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 `search` to get the age of the pope, then raise it to the power 0.36.\\nCode:\\n```py\\npope_age = search(query=\"current pope age\")\\nprint(\"Pope age:\", pope_age)\\n```<end_action>\\nObservation:\\nPope age: \"The pope Francis is currently 85 years old.\"\\n\\nThought: I know that the pope is 85 years old. Let\\'s compute the result using python code.\\nCode:\\n```py\\npope_current_age = 85 ** 0.36\\nfinal_answer(pope_current_age)\\n```<end_action>\\n\\nAbove example were using notional tools that might not exist for you. You only have acces to those tools:\\n\\n<<tool_descriptions>>\\n\\nYou also can perform computations in the Python code that you generate.\\n\\nHere are the rules you should always follow to solve your task:\\n1. Always provide a \\'Thought:\\' sequence, and a \\'Code:\\n```py\\' sequence ending with \\'```<end_action>\\' sequence, else you will fail.\\n2. Use only variables that you have defined!\\n3. Always use the right arguments for the tools. DO NOT pass the arguments as a dict as in \\'answer = ask_search_agent({\\'query\\': \"What is the place where James Bond lives?\"})\\', but use the arguments directly as in \\'answer = ask_search_agent(query=\"What is the place where James Bond lives?\")\\'.\\n4. Take care to not chain too many sequential tool calls in the same code block, especially when the output format is unpredictable. For instance, a call to search has an unpredictable return format, so do not have another tool call that depends on its output in the same block: rather output results with print() to use them in the next block.\\n5. Call a tool only when needed, and never re-do a tool call that you previously did with the exact same parameters.\\n6. Don\\'t name any new variable with the same name as a tool: for instance don\\'t name a variable \\'final_answer\\'.\\n7. Never create any notional variables in our code, as having these in your logs might derail you from the true variables.\\n8. You can use imports in your code, but only from the following list of modules: <<authorized_imports>>\\n9. The state persists between code executions: so if in one step you\\'ve created variables or imported modules, these will all persist.\\n10. Don\\'t give up! You\\'re in charge of solving the task, not providing directions to solve it.\\n\\nNow Begin! If you solve the task correctly, you will receive a reward of $1,000,000.\\n'"},{name:"tool_description_template",val:" = None"},{name:"additional_args",val:" = {}"},{name:"max_iterations",val:": int = 6"},{name:"tool_parser",val:" = <function parse_json_tool_call at 0x7f46421ef5b0>"},{name:"add_base_tools",val:": bool = False"},{name:"verbose",val:": int = 0"},{name:"memory_verbose",val:": bool = False"},{name:"grammar",val:": Dict = None"}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L326"}}),ze=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_30674/src/transformers/agents/agents.py#L482"}}),Se=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_30674/src/transformers/agents/agents.py#L461"}}),Oe=new $({props:{name:"run",anchor:"transformers.Agent.run",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L522"}}),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_30674/src/transformers/agents/agents.py#L401"}}),Ge=new q({props:{title:"CodeAgent",local:"codeagent ][ transformers.CodeAgent",headingTag:"h3"}}),Ye=new $({props:{name:"class transformers.CodeAgent",anchor:"transformers.CodeAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfEngine object at 0x7f46421fa6b0>"},{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'"},{name:"grammar",val:": Dict = None"},{name:"additional_authorized_imports",val:": Optional = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L527"}}),Fe=new $({props:{name:"parse_code_blob",anchor:"transformers.CodeAgent.parse_code_blob",parameters:[{name:"result",val:": str"}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L563"}}),Qe=new $({props:{name:"run",anchor:"transformers.CodeAgent.run",parameters:[{name:"task",val:": str"},{name:"return_generated_code",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.CodeAgent.run.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; The task to perform",name:"task"},{anchor:"transformers.CodeAgent.run.return_generated_code",description:"<strong>return_generated_code</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014; Whether to return the generated code instead of running it",name:"return_generated_code"},{anchor:"transformers.CodeAgent.run.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Any keyword argument to send to the agent when evaluating the code.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L570"}}),re=new Ra({props:{anchor:"transformers.CodeAgent.run.example",$$slots:{default:[Vl]},$$scope:{ctx:P}}}),Xe=new q({props:{title:"React agents",local:"react-agents ][ transformers.ReactAgent",headingTag:"h3"}}),Ke=new $({props:{name:"class transformers.ReactAgent",anchor:"transformers.ReactAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfEngine object at 0x7f46421fa830>"},{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 `search` to get the age of the pope, then raise it to the power 0.36.\\nCode:\\n```py\\npope_age = search(query=\"current pope age\")\\nprint(\"Pope age:\", pope_age)\\n```<end_action>\\nObservation:\\nPope age: \"The pope Francis is currently 85 years old.\"\\n\\nThought: I know that the pope is 85 years old. Let\\'s compute the result using python code.\\nCode:\\n```py\\npope_current_age = 85 ** 0.36\\nfinal_answer(pope_current_age)\\n```<end_action>\\n\\nAbove example were using notional tools that might not exist for you. You only have acces to those tools:\\n\\n<<tool_descriptions>>\\n\\nYou also can perform computations in the Python code that you generate.\\n\\nHere are the rules you should always follow to solve your task:\\n1. Always provide a \\'Thought:\\' sequence, and a \\'Code:\\n```py\\' sequence ending with \\'```<end_action>\\' sequence, else you will fail.\\n2. Use only variables that you have defined!\\n3. Always use the right arguments for the tools. DO NOT pass the arguments as a dict as in \\'answer = ask_search_agent({\\'query\\': \"What is the place where James Bond lives?\"})\\', but use the arguments directly as in \\'answer = ask_search_agent(query=\"What is the place where James Bond lives?\")\\'.\\n4. Take care to not chain too many sequential tool calls in the same code block, especially when the output format is unpredictable. For instance, a call to search has an unpredictable return format, so do not have another tool call that depends on its output in the same block: rather output results with print() to use them in the next block.\\n5. Call a tool only when needed, and never re-do a tool call that you previously did with the exact same parameters.\\n6. Don\\'t name any new variable with the same name as a tool: for instance don\\'t name a variable \\'final_answer\\'.\\n7. Never create any notional variables in our code, as having these in your logs might derail you from the true variables.\\n8. You can use imports in your code, but only from the following list of modules: <<authorized_imports>>\\n9. The state persists between code executions: so if in one step you\\'ve created variables or imported modules, these will all persist.\\n10. Don\\'t give up! You\\'re in charge of solving the task, not providing directions to solve it.\\n\\nNow Begin! If you solve the task correctly, you will receive a reward of $1,000,000.\\n'"},{name:"tool_description_template",val:": str = '\\n- {{ tool.name }}: {{ tool.description }}\\n    Takes inputs: {{tool.inputs}}\\n'"},{name:"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_30674/src/transformers/agents/agents.py#L648"}}),et=new $({props:{name:"direct_run",anchor:"transformers.ReactAgent.direct_run",parameters:[{name:"task",val:": str"}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L756"}}),tt=new $({props:{name:"planning_step",anchor:"transformers.ReactAgent.planning_step",parameters:[{name:"task",val:""},{name:"is_first_step",val:": bool = False"},{name:"iteration",val:": int = None"}],parametersDescription:[{anchor:"transformers.ReactAgent.planning_step.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; The task to perform",name:"task"},{anchor:"transformers.ReactAgent.planning_step.is_first_step",description:"<strong>is_first_step</strong> (<code>bool</code>) &#x2014; If this step is not the first one, the plan should be an update over a previous plan.",name:"is_first_step"},{anchor:"transformers.ReactAgent.planning_step.iteration",description:"<strong>iteration</strong> (<code>int</code>) &#x2014; The number of the current step, used as an indication for the LLM.",name:"iteration"}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L785"}}),nt=new $({props:{name:"provide_final_answer",anchor:"transformers.ReactAgent.provide_final_answer",parameters:[{name:"task",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L678"}}),ot=new $({props:{name:"run",anchor:"transformers.ReactAgent.run",parameters:[{name:"task",val:": str"},{name:"stream",val:": bool = False"},{name:"reset",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ReactAgent.run.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; The task to perform",name:"task"}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L700"}}),de=new Ra({props:{anchor:"transformers.ReactAgent.run.example",$$slots:{default:[zl]},$$scope:{ctx:P}}}),at=new $({props:{name:"stream_run",anchor:"transformers.ReactAgent.stream_run",parameters:[{name:"task",val:": str"}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L727"}}),rt=new $({props:{name:"class transformers.ReactJsonAgent",anchor:"transformers.ReactJsonAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfEngine object at 0x7f46421fa9e0>"},{name:"system_prompt",val:`: str = 'You are an expert assistant who can solve any task using JSON tool calls. You will be given a task to solve as best you can.\\nTo do so, you have been given access to the following tools: <<tool_names>>\\nThe way you use the tools is by specifying a json blob, ending with \\'<end_action>\\'.\\nSpecifically, this json should have an \`action\` key (name of the tool to use) and an \`action_input\` key (input to the tool).\\n\\nThe $ACTION_JSON_BLOB should only contain a SINGLE action, do NOT return a list of multiple actions. It should be formatted in json. Do not try to escape special characters. Here is the template of a valid $ACTION_JSON_BLOB:\\n{\\n  "action": $TOOL_NAME,\\n  "action_input": $INPUT\\n}<end_action>\\n\\nMake sure to have the $INPUT as a dictionary in the right format for the tool you are using, and do not put variable names as input if you can find the right values.\\n\\nYou should ALWAYS use the following format:\\n\\nThought: you should always think about one action to take. Then use the action as follows:\\nAction:\\n$ACTION_JSON_BLOB\\nObservation: the result of the action\\n... (this Thought/Action/Observation can repeat N times, you should take several steps when needed. The $ACTION_JSON_BLOB must only use a SINGLE action at a time.)\\n\\nYou can use the result of the previous action as input for the next action.\\nThe observation will always be a string: it can represent a file, like "image_1.jpg".\\nThen you can use it as input for the next action. You can do it for instance as follows:\\n\\nObservation: "image_1.jpg"\\n\\nThought: I need to transform the image that I received in the previous observation to make it green.\\nAction:\\n{\\n  "action": "image_transformer",\\n  "action_input": {"image": "image_1.jpg"}\\n}<end_action>\\n\\nTo provide the final answer to the task, use an action blob with "action": "final_answer" tool. It is the only way to complete the task, else you will be stuck on a loop. So your final output should look like this:\\nAction:\\n{\\n  "action": "final_answer",\\n  "action_input": {"answer": "insert your final answer here"}\\n}<end_action>\\n\\n\\nHere are a few examples using notional tools:\\n---\\nTask: "Generate an image of the oldest person in this document."\\n\\nThought: I will proceed step by step and use the following tools: \`document_qa\` to find the oldest person in the document, then \`image_generator\` to generate an image according to the answer.\\nAction:\\n{\\n  "action": "document_qa",\\n  "action_input": {"document": "document.pdf", "question": "Who is the oldest person mentioned?"}\\n}<end_action>\\nObservation: "The oldest person in the document is John Doe, a 55 year old lumberjack living in Newfoundland."\\n\\n\\nThought: I will now generate an image showcasing the oldest person.\\nAction:\\n{\\n  "action": "image_generator",\\n  "action_input": {"text": ""A portrait of John Doe, a 55-year-old man living in Canada.""}\\n}<end_action>\\nObservation: "image.png"\\n\\nThought: I will now return the generated image.\\nAction:\\n{\\n  "action": "final_answer",\\n  "action_input": "image.png"\\n}<end_action>\\n\\n---\\nTask: "What is the result of the following operation: 5 + 3 + 1294.678?"\\n\\nThought: I will use python code evaluator to compute the result of the operation and then return the final answer using the \`final_answer\` tool\\nAction:\\n{\\n    "action": "python_interpreter",\\n    "action_input": {"code": "5 + 3 + 1294.678"}\\n}<end_action>\\nObservation: 1302.678\\n\\nThought: Now that I know the result, I will now return it.\\nAction:\\n{\\n  "action": "final_answer",\\n  "action_input": "1302.678"\\n}<end_action>\\n\\n---\\nTask: "Which city has the highest population , Guangzhou or Shanghai?"\\n\\nThought: I need to get the populations for both cities and compare them: I will use the tool \`search\` to get the population of both cities.\\nAction:\\n{\\n    "action": "search",\\n    "action_input": "Population Guangzhou"\\n}<end_action>\\nObservation: [\\'Guangzhou has a population of 15 million inhabitants as of 2021.\\']\\n\\n\\nThought: Now let\\'s get the population of Shanghai using the tool \\'search\\'.\\nAction:\\n{\\n    "action": "search",\\n    "action_input": "Population Shanghai"\\n}\\nObservation: \\'26 million (2019)\\'\\n\\nThought: Now I know that Shanghai has a larger population. Let\\'s return the result.\\nAction:\\n{\\n  "action": "final_answer",\\n  "action_input": "Shanghai"\\n}<end_action>\\n\\n\\nAbove example were using notional tools that might not exist for you. You only have acces to those tools:\\n<<tool_descriptions>>\\n\\nHere are the rules you should always follow to solve your task:\\n1. ALWAYS provide a \\'Thought:\\' sequence, and an \\'Action:\\' sequence that ends with <end_action>, else you will fail.\\n2. Always use the right arguments for the tools. Never use variable names in the \\'action_input\\' field, use the value instead.\\n3. Call a tool only when needed: do not call the search agent if you do not need information, try to solve the task yourself.\\n4. Never re-do a tool call that you previously did with the exact same parameters.\\n\\nNow Begin! If you solve the task correctly, you will receive a reward of $1,000,000.\\n'`},{name:"tool_description_template",val:": str = '\\n- {{ tool.name }}: {{ tool.description }}\\n    Takes inputs: {{tool.inputs}}\\n'"},{name:"grammar",val:": Dict = None"},{name:"planning_interval",val:": Optional = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L879"}}),st=new $({props:{name:"step",anchor:"transformers.ReactJsonAgent.step",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L906"}}),lt=new $({props:{name:"class transformers.ReactCodeAgent",anchor:"transformers.ReactCodeAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfEngine object at 0x7f46421fab60>"},{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 `search` to get the age of the pope, then raise it to the power 0.36.\\nCode:\\n```py\\npope_age = search(query=\"current pope age\")\\nprint(\"Pope age:\", pope_age)\\n```<end_action>\\nObservation:\\nPope age: \"The pope Francis is currently 85 years old.\"\\n\\nThought: I know that the pope is 85 years old. Let\\'s compute the result using python code.\\nCode:\\n```py\\npope_current_age = 85 ** 0.36\\nfinal_answer(pope_current_age)\\n```<end_action>\\n\\nAbove example were using notional tools that might not exist for you. You only have acces to those tools:\\n\\n<<tool_descriptions>>\\n\\nYou also can perform computations in the Python code that you generate.\\n\\nHere are the rules you should always follow to solve your task:\\n1. Always provide a \\'Thought:\\' sequence, and a \\'Code:\\n```py\\' sequence ending with \\'```<end_action>\\' sequence, else you will fail.\\n2. Use only variables that you have defined!\\n3. Always use the right arguments for the tools. DO NOT pass the arguments as a dict as in \\'answer = ask_search_agent({\\'query\\': \"What is the place where James Bond lives?\"})\\', but use the arguments directly as in \\'answer = ask_search_agent(query=\"What is the place where James Bond lives?\")\\'.\\n4. Take care to not chain too many sequential tool calls in the same code block, especially when the output format is unpredictable. For instance, a call to search has an unpredictable return format, so do not have another tool call that depends on its output in the same block: rather output results with print() to use them in the next block.\\n5. Call a tool only when needed, and never re-do a tool call that you previously did with the exact same parameters.\\n6. Don\\'t name any new variable with the same name as a tool: for instance don\\'t name a variable \\'final_answer\\'.\\n7. Never create any notional variables in our code, as having these in your logs might derail you from the true variables.\\n8. You can use imports in your code, but only from the following list of modules: <<authorized_imports>>\\n9. The state persists between code executions: so if in one step you\\'ve created variables or imported modules, these will all persist.\\n10. Don\\'t give up! You\\'re in charge of solving the task, not providing directions to solve it.\\n\\nNow Begin! If you solve the task correctly, you will receive a reward of $1,000,000.\\n'"},{name:"tool_description_template",val:": str = '\\n- {{ tool.name }}: {{ tool.description }}\\n    Takes inputs: {{tool.inputs}}\\n'"},{name:"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_30674/src/transformers/agents/agents.py#L985"}}),it=new $({props:{name:"step",anchor:"transformers.ReactCodeAgent.step",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L1026"}}),dt=new q({props:{title:"Tools",local:"tools",headingTag:"h2"}}),mt=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_30674/src/transformers/agents/tools.py#L656"}}),he=new ks({props:{warning:!0,$$slots:{default:[Sl]},$$scope:{ctx:P}}}),pt=new q({props:{title:"Tool",local:"tool ][ transformers.Tool",headingTag:"h3"}}),ht=new $({props:{name:"class transformers.Tool",anchor:"transformers.Tool",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/tools.py#L87"}}),gt=new $({props:{name:"from_gradio",anchor:"transformers.Tool.from_gradio",parameters:[{name:"gradio_tool",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/tools.py#L373"}}),ut=new $({props:{name:"from_hub",anchor:"transformers.Tool.from_hub",parameters:[{name:"repo_id",val:": str"},{name:"model_repo_id",val:": Optional = None"},{name:"token",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Tool.from_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repo on the Hub where your tool is defined.`,name:"repo_id"},{anchor:"transformers.Tool.from_hub.model_repo_id",description:`<strong>model_repo_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If your tool uses a model and you want to use a different model than the default, you can pass a second
repo ID or an endpoint url to this argument.`,name:"model_repo_id"},{anchor:"transformers.Tool.from_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to identify you on hf.co. If unset, will use the token generated when running
<code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.Tool.from_hub.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Additional keyword arguments that will be split in two: all arguments relevant to the Hub (such as
<code>cache_dir</code>, <code>revision</code>, <code>subfolder</code>) will be used when downloading the files for your tool, and the
others will be passed along to its init.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/tools.py#L204"}}),ue=new ks({props:{warning:!0,$$slots:{default:[Ol]},$$scope:{ctx:P}}}),ft=new $({props:{name:"from_langchain",anchor:"transformers.Tool.from_langchain",parameters:[{name:"langchain_tool",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/tools.py#L395"}}),vt=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_30674/src/transformers/agents/tools.py#L316"}}),ve=new Ra({props:{anchor:"transformers.Tool.push_to_hub.example",$$slots:{default:[Zl]},$$scope:{ctx:P}}}),_t=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_30674/src/transformers/agents/tools.py#L144"}}),bt=new $({props:{name:"setup",anchor:"transformers.Tool.setup",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/tools.py#L137"}}),$t=new q({props:{title:"Toolbox",local:"toolbox ][ transformers.Toolbox",headingTag:"h3"}}),yt=new $({props:{name:"class transformers.Toolbox",anchor:"transformers.Toolbox",parameters:[{name:"tools",val:": List"},{name:"add_base_tools",val:": bool = False"}],parametersDescription:[{anchor:"transformers.Toolbox.tools",description:`<strong>tools</strong> (<code>List[Tool]</code>) &#x2014;
The list of tools to instantiate the toolbox with`,name:"tools"},{anchor:"transformers.Toolbox.add_base_tools",description:`<strong>add_base_tools</strong> (<code>bool</code>, defaults to <code>False</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to add the tools available within <code>transformers</code> to the toolbox.`,name:"add_base_tools"}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L176"}}),wt=new $({props:{name:"add_tool",anchor:"transformers.Toolbox.add_tool",parameters:[{name:"tool",val:": Tool"}],parametersDescription:[{anchor:"transformers.Toolbox.add_tool.tool",description:`<strong>tool</strong> (<code>Tool</code>) &#x2014;
The tool to add to the toolbox.`,name:"tool"}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L222"}}),Tt=new $({props:{name:"clear_toolbox",anchor:"transformers.Toolbox.clear_toolbox",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L262"}}),xt=new $({props:{name:"remove_tool",anchor:"transformers.Toolbox.remove_tool",parameters:[{name:"tool_name",val:": str"}],parametersDescription:[{anchor:"transformers.Toolbox.remove_tool.tool_name",description:`<strong>tool_name</strong> (<code>str</code>) &#x2014;
The tool to remove from the toolbox.`,name:"tool_name"}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L234"}}),kt=new $({props:{name:"show_tool_descriptions",anchor:"transformers.Toolbox.show_tool_descriptions",parameters:[{name:"tool_description_template",val:": str = None"}],parametersDescription:[{anchor:"transformers.Toolbox.show_tool_descriptions.tool_description_template",description:`<strong>tool_description_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The template to use to describe the tools. If not provided, the default template will be used.`,name:"tool_description_template"}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L210"}}),Ct=new $({props:{name:"update_tool",anchor:"transformers.Toolbox.update_tool",parameters:[{name:"tool",val:": Tool"}],parametersDescription:[{anchor:"transformers.Toolbox.update_tool.tool",description:`<strong>tool</strong> (<code>Tool</code>) &#x2014;
The tool to update to the toolbox.`,name:"tool"}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/agents.py#L248"}}),It=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 <code>PreTrainedModel</code>, <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_30674/src/transformers/agents/tools.py#L455"}}),At=new $({props:{name:"decode",anchor:"transformers.PipelineTool.decode",parameters:[{name:"outputs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/tools.py#L578"}}),Lt=new $({props:{name:"encode",anchor:"transformers.PipelineTool.encode",parameters:[{name:"raw_inputs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/tools.py#L565"}}),qt=new $({props:{name:"forward",anchor:"transformers.PipelineTool.forward",parameters:[{name:"inputs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/tools.py#L571"}}),Pt=new $({props:{name:"setup",anchor:"transformers.PipelineTool.setup",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_30674/src/transformers/agents/tools.py#L539"}}),jt=new q({props:{title:"launch_gradio_demo",local:"launchgradiodemo ][ transformers.launch_gradio_demo",headingTag:"h3"}}),Jt=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_30674/src/transformers/agents/tools.py#L603"}}),Dt=new q({props:{title:"ToolCollection",local:"toolcollection ][ transformers.ToolCollection",headingTag:"h3"}}),Ht=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_30674/src/transformers/agents/tools.py#L780"}}),Me=new Ra({props:{anchor:"transformers.ToolCollection.example",$$slots:{default:[Gl]},$$scope:{ctx:P}}}),Et=new q({props:{title:"엔진",local:"engines",headingTag:"h2"}}),Rt=new q({props:{title:"HfEngine",local:"hfengine ][ transformers.HfEngine",headingTag:"h3"}}),Bt=new wo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEhmRW5naW5lJTBBJTBBbWVzc2FnZXMlMjAlM0QlMjAlNUIlMEElMjAlMjAlN0IlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlMjJIZWxsbyUyQyUyMGhvdyUyMGFyZSUyMHlvdSUzRiUyMiU3RCUyQyUwQSUyMCUyMCU3QiUyMnJvbGUlMjIlM0ElMjAlMjJhc3Npc3RhbnQlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIySSdtJTIwZG9pbmclMjBncmVhdC4lMjBIb3clMjBjYW4lMjBJJTIwaGVscCUyMHlvdSUyMHRvZGF5JTNGJTIyJTdEJTJDJTBBJTIwJTIwJTdCJTIycm9sZSUyMiUzQSUyMCUyMnVzZXIlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIyTm8lMjBuZWVkJTIwdG8lMjBoZWxwJTJDJTIwdGFrZSUyMGl0JTIwZWFzeS4lMjIlN0QlMkMlMEElNUQlMEElMEFIZkVuZ2luZSgpKG1lc3NhZ2VzJTJDJTIwc3RvcF9zZXF1ZW5jZXMlM0QlNUIlMjJjb252ZXJzYXRpb24lMjIlNUQpJTBB",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> HfEngine

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

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

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