Buckets:

rtrm's picture
download
raw
104 kB
import{s as Ul,o as Rl,n as hn}from"../chunks/scheduler.9bc65507.js";import{S as Wl,i as Bl,g as r,s as n,r as d,A as Vl,h as s,f as a,c as o,j as v,u as m,x as u,k as _,y as t,a as i,v as c,d as p,t as g,w as h}from"../chunks/index.707bf1b6.js";import{T as Ms}from"../chunks/Tip.c2ecdbf4.js";import{D as $,E as Ba}from"../chunks/ExampleCodeBlock.90aeff6e.js";import{C as To}from"../chunks/CodeBlock.54a9f38d.js";import{H as q,E as zl}from"../chunks/EditOnGithub.922df6ba.js";function Sl(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:hn,d(y){y&&a(f)}}}function Ol(P){let f,x="Example:",y,w,T;return w=new To({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5hZ2VudHMlMjBpbXBvcnQlMjBDb2RlQWdlbnQlMkMlMjBQeXRob25JbnRlcnByZXRlclRvb2wlMEElMEFweXRob25faW50ZXJwcmV0ZXIlMjAlM0QlMjBQeXRob25JbnRlcnByZXRlclRvb2woKSUwQWFnZW50JTIwJTNEJTIwQ29kZUFnZW50KHRvb2xzJTNEJTVCcHl0aG9uX2ludGVycHJldGVyJTVEKSUwQWFnZW50LnJ1biglMjJXaGF0JTIwaXMlMjB0aGUlMjByZXN1bHQlMjBvZiUyMDIlMjBwb3dlciUyMDMuNzM4NCUzRiUyMik=",highlighted:`<span class="hljs-keyword">from</span> transformers.agents <span class="hljs-keyword">import</span> CodeAgent, PythonInterpreterTool
python_interpreter = PythonInterpreterTool()
agent = CodeAgent(tools=[python_interpreter])
agent.run(<span class="hljs-string">&quot;What is the result of 2 power 3.7384?&quot;</span>)`,wrap:!1}}),{c(){f=r("p"),f.textContent=x,y=n(),d(w.$$.fragment)},l(b){f=s(b,"P",{"data-svelte-h":!0}),u(f)!=="svelte-11lpom8"&&(f.textContent=x),y=o(b),m(w.$$.fragment,b)},m(b,C){i(b,f,C),i(b,y,C),c(w,b,C),T=!0},p:hn,i(b){T||(p(w.$$.fragment,b),T=!0)},o(b){g(w.$$.fragment,b),T=!1},d(b){b&&(a(f),a(y)),h(w,b)}}}function Zl(P){let f,x="Example:",y,w,T;return w=new To({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5hZ2VudHMlMjBpbXBvcnQlMjBSZWFjdENvZGVBZ2VudCUwQWFnZW50JTIwJTNEJTIwUmVhY3RDb2RlQWdlbnQodG9vbHMlM0QlNUIlNUQpJTBBYWdlbnQucnVuKCUyMldoYXQlMjBpcyUyMHRoZSUyMHJlc3VsdCUyMG9mJTIwMiUyMHBvd2VyJTIwMy43Mzg0JTNGJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers.agents <span class="hljs-keyword">import</span> ReactCodeAgent
agent = ReactCodeAgent(tools=[])
agent.run(<span class="hljs-string">&quot;What is the result of 2 power 3.7384?&quot;</span>)`,wrap:!1}}),{c(){f=r("p"),f.textContent=x,y=n(),d(w.$$.fragment)},l(b){f=s(b,"P",{"data-svelte-h":!0}),u(f)!=="svelte-11lpom8"&&(f.textContent=x),y=o(b),m(w.$$.fragment,b)},m(b,C){i(b,f,C),i(b,y,C),c(w,b,C),T=!0},p:hn,i(b){T||(p(w.$$.fragment,b),T=!0)},o(b){g(w.$$.fragment,b),T=!1},d(b){b&&(a(f),a(y)),h(w,b)}}}function Gl(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:hn,d(y){y&&a(f)}}}function Yl(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:hn,d(y){y&&a(f)}}}function Fl(P){let f,x="For instance:",y,w,T;return w=new To({props:{code:"ZnJvbSUyMG15X3Rvb2xfbW9kdWxlJTIwaW1wb3J0JTIwTXlUb29sJTBBbXlfdG9vbCUyMCUzRCUyME15VG9vbCgpJTBBbXlfdG9vbC5wdXNoX3RvX2h1YiglMjJteS11c2VybmFtZSUyRm15LXNwYWNlJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> my_tool_module <span class="hljs-keyword">import</span> MyTool
my_tool = MyTool()
my_tool.push_to_hub(<span class="hljs-string">&quot;my-username/my-space&quot;</span>)`,wrap:!1}}),{c(){f=r("p"),f.textContent=x,y=n(),d(w.$$.fragment)},l(b){f=s(b,"P",{"data-svelte-h":!0}),u(f)!=="svelte-4vay6o"&&(f.textContent=x),y=o(b),m(w.$$.fragment,b)},m(b,C){i(b,f,C),i(b,y,C),c(w,b,C),T=!0},p:hn,i(b){T||(p(w.$$.fragment,b),T=!0)},o(b){g(w.$$.fragment,b),T=!1},d(b){b&&(a(f),a(y)),h(w,b)}}}function Ql(P){let f,x="Example:",y,w,T;return w=new To({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRvb2xDb2xsZWN0aW9uJTJDJTIwUmVhY3RDb2RlQWdlbnQlMEElMEFpbWFnZV90b29sX2NvbGxlY3Rpb24lMjAlM0QlMjBUb29sQ29sbGVjdGlvbihjb2xsZWN0aW9uX3NsdWclM0QlMjJodWdnaW5nZmFjZS10b29scyUyRmRpZmZ1c2lvbi10b29scy02NjMwYmIxOWE5NDJjMjMwNmEyY2RiNmYlMjIpJTBBYWdlbnQlMjAlM0QlMjBSZWFjdENvZGVBZ2VudCh0b29scyUzRCU1QippbWFnZV90b29sX2NvbGxlY3Rpb24udG9vbHMlNUQlMkMlMjBhZGRfYmFzZV90b29scyUzRFRydWUpJTBBJTBBYWdlbnQucnVuKCUyMlBsZWFzZSUyMGRyYXclMjBtZSUyMGElMjBwaWN0dXJlJTIwb2YlMjByaXZlcnMlMjBhbmQlMjBsYWtlcy4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> ToolCollection, ReactCodeAgent
<span class="hljs-meta">&gt;&gt;&gt; </span>image_tool_collection = ToolCollection(collection_slug=<span class="hljs-string">&quot;huggingface-tools/diffusion-tools-6630bb19a942c2306a2cdb6f&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>agent = ReactCodeAgent(tools=[*image_tool_collection.tools], add_base_tools=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>agent.run(<span class="hljs-string">&quot;Please draw me a picture of rivers and lakes.&quot;</span>)`,wrap:!1}}),{c(){f=r("p"),f.textContent=x,y=n(),d(w.$$.fragment)},l(b){f=s(b,"P",{"data-svelte-h":!0}),u(f)!=="svelte-11lpom8"&&(f.textContent=x),y=o(b),m(w.$$.fragment,b)},m(b,C){i(b,f,C),i(b,y,C),c(w,b,C),T=!0},p:hn,i(b){T||(p(w.$$.fragment,b),T=!0)},o(b){g(w.$$.fragment,b),T=!1},d(b){b&&(a(f),a(y)),h(w,b)}}}function Xl(P){let f,x,y,w,T,b,C,xo,Ue,As=`에이전트와 도구에 대해 더 알아보려면 <a href="../transformers_agents">소개 가이드</a>를 꼭 읽어보세요.
이 페이지에는 기본 클래스에 대한 API 문서가 포함되어 있습니다.`,ko,Re,Co,We,Ls='우리는 기본 <a href="/docs/transformers/main/ko/main_classes/agent#transformers.Agent">Agent</a> 클래스를 기반으로 두 가지 유형의 에이전트를 제공합니다:',Io,Be,qs='<li><a href="/docs/transformers/main/ko/main_classes/agent#transformers.CodeAgent">CodeAgent</a>는 한 번에 동작합니다. 작업을 해결하기 위해 코드를 생성한 다음, 바로 실행합니다.</li> <li><a href="/docs/transformers/main/ko/main_classes/agent#transformers.ReactAgent">ReactAgent</a>는 단계별로 동작하며, 각 단계는 하나의 생각, 하나의 도구 호출 및 실행으로 구성됩니다. 이 에이전트에는 두 가지 클래스가 있습니다:<ul><li><a href="/docs/transformers/main/ko/main_classes/agent#transformers.ReactJsonAgent">ReactJsonAgent</a>는 도구 호출을 JSON으로 작성합니다.</li> <li><a href="/docs/transformers/main/ko/main_classes/agent#transformers.ReactCodeAgent">ReactCodeAgent</a>는 도구 호출을 Python 코드로 작성합니다.</li></ul></li>',Mo,Ve,Ao,j,ze,Va,te,Se,za,un,Ps=`Execute tool with the provided input and returns the result.
This method replaces arguments with the actual values from the state if they refer to state variables.`,Sa,ne,Oe,Oa,fn,js="Parse action from the LLM output",Za,oe,Ze,Ga,bn,Hs="To be implemented in the child class",Ya,ae,Ge,Fa,vn,Js=`Reads past llm_outputs, actions, and observations or errors from the logs into a series of messages
that can be used as input to the LLM.`,Lo,Ye,qo,N,Fe,Qa,_n,Ds="A class for an agent that solves the given task using a single block of code. It plans all its actions, then executes all in one shot.",Xa,re,Qe,Ka,$n,Es=`Override this method if you want to change the way the code is
cleaned in the <code>run</code> method.`,er,G,Xe,tr,yn,Ns="Runs the agent for the given task.",nr,se,Po,Ke,jo,M,et,or,wn,Us=`This agent that solves the given task step by step, using the ReAct framework:
While the objective is not reached, the agent will perform a cycle of thinking and acting.
The action will be parsed from the LLM output: it consists in calls to tools from the toolbox, with arguments chosen by the LLM engine.`,ar,le,tt,rr,Tn,Rs="Runs the agent in direct mode, returning outputs only at the end: should be launched only in the <code>run</code> method.",sr,ie,nt,lr,xn,Ws="Used periodically by the agent to plan the next steps to reach the objective.",ir,de,ot,dr,kn,Bs="This method provides a final answer to the task, based on the logs of the agent’s interactions.",mr,Y,at,cr,Cn,Vs="Runs the agent for the given task.",pr,me,gr,ce,rt,hr,In,zs="Runs the agent in streaming mode, yielding steps as they are executed: should be launched only in the <code>run</code> method.",Ho,z,st,ur,Mn,Ss=`This agent that solves the given task step by step, using the ReAct framework:
While the objective is not reached, the agent will perform a cycle of thinking and acting.
The tool calls will be formulated by the LLM in JSON format, then parsed and executed.`,fr,pe,lt,br,An,Os=`Perform one step in the ReAct framework: the agent thinks, acts, and observes the result.
The errors are raised here, they are caught and logged in the run() method.`,Jo,S,it,vr,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.`,_r,ge,dt,$r,qn,Gs=`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,mt,Eo,ct,No,O,pt,yr,Pn,Ys="Main function to quickly load a tool, be it on the Hub or in the Transformers library.",wr,he,Uo,gt,Ro,k,ht,Tr,jn,Fs=`A base class for the functions used by the agent. Subclass this and implement the <code>__call__</code> method as well as the
following class attributes:`,xr,Hn,Qs=`<li><strong>description</strong> (<code>str</code>) — A short description of what your tool does, the inputs it expects and the output(s) it
will return. For instance ‘This is a tool that downloads a file from a <code>url</code>. It takes the <code>url</code> as input, and
returns the text contained in the file’.</li> <li><strong>name</strong> (<code>str</code>) — A performative name that will be used for your tool in the prompt to the agent. For instance
<code>&quot;text-classifier&quot;</code> or <code>&quot;image_generator&quot;</code>.</li> <li><strong>inputs</strong> (<code>Dict[str, Dict[str, Union[str, type]]]</code>) — The dict of modalities expected for the inputs.
It has one <code>type</code>key and a <code>description</code>key.
This is used by <code>launch_gradio_demo</code> or to make a nice space from your tool, and also can be used in the generated
description for your tool.</li> <li><strong>output_type</strong> (<code>type</code>) — The type of the tool output. This is used by <code>launch_gradio_demo</code>
or to make a nice space from your tool, and also can be used in the generated description for your tool.</li>`,kr,Jn,Xs=`You can also override the method <a href="/docs/transformers/main/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/main/ko/main_classes/agent#transformers.Tool.setup">setup()</a> will be called the first time you use your tool, but not at
instantiation.`,Cr,ue,ut,Ir,Dn,Ks='Creates a <a href="/docs/transformers/main/ko/main_classes/agent#transformers.Tool">Tool</a> from a gradio tool.',Mr,F,ft,Ar,En,el="Loads a tool defined on the Hub.",Lr,fe,qr,be,bt,Pr,Nn,tl='Creates a <a href="/docs/transformers/main/ko/main_classes/agent#transformers.Tool">Tool</a> from a langchain tool.',jr,B,vt,Hr,Un,nl="Upload the tool to the Hub.",Jr,Rn,ol="For this method to work properly, your tool must have been defined in a separate module (not <code>__main__</code>).",Dr,ve,Er,V,_t,Nr,Wn,al=`Saves the relevant code files for your tool so it can be pushed to the Hub. This will copy the code of your
tool in <code>output_dir</code> as well as autogenerate:`,Ur,Bn,rl=`<li>a config file named <code>tool_config.json</code></li> <li>an <code>app.py</code> file so that your tool can be converted to a space</li> <li>a <code>requirements.txt</code> containing the names of the module used by your tool (as detected when inspecting its
code)</li>`,Rr,Vn,sl="You should only use this method to save tools that are defined in a separate module (not <code>__main__</code>).",Wr,_e,$t,Br,zn,ll=`Overwrite this method here for any operation that is expensive and needs to be executed before you start using
your tool. Such as loading a big model.`,Wo,yt,Bo,A,wt,Vr,Sn,il=`The toolbox contains all tools that the agent can perform operations with, as well as a few methods to
manage them.`,zr,$e,Tt,Sr,On,dl="Adds a tool to the toolbox",Or,ye,xt,Zr,Zn,ml="Clears the toolbox",Gr,we,kt,Yr,Gn,cl="Removes a tool from the toolbox",Fr,Te,Ct,Qr,Yn,pl="Returns the description of all tools in the toolbox",Xr,xe,It,Kr,Fn,gl="Updates a tool in the toolbox according to its name.",Vo,Mt,zo,L,At,es,Qn,hl=`A <a href="/docs/transformers/main/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/main/ko/main_classes/agent#transformers.Tool">Tool</a>, you will
need to specify:`,ts,Xn,ul=`<li><strong>model_class</strong> (<code>type</code>) — The class to use to load the model in this tool.</li> <li><strong>default_checkpoint</strong> (<code>str</code>) — The default checkpoint that should be used when the user doesn’t specify one.</li> <li><strong>pre_processor_class</strong> (<code>type</code>, <em>optional</em>, defaults to <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>`,ns,ke,Lt,os,Kn,fl="Uses the <code>post_processor</code> to decode the model output.",as,Ce,qt,rs,eo,bl="Uses the <code>pre_processor</code> to prepare the inputs for the <code>model</code>.",ss,Ie,Pt,ls,to,vl="Sends the inputs through the <code>model</code>.",is,Me,jt,ds,no,_l="Instantiates the <code>pre_processor</code>, <code>model</code> and <code>post_processor</code> if necessary.",So,Ht,Oo,X,Jt,ms,oo,$l=`Launches a gradio demo for a tool. The corresponding tool class needs to properly implement the class attributes
<code>inputs</code> and <code>output_type</code>.`,Zo,Dt,Go,U,Et,cs,ao,yl="Tool collections enable loading all Spaces from a collection in order to be added to the agent’s toolbox.",ps,ro,wl=`<p>[!NOTE]
Only Spaces will be fetched, so you can feel free to add models and datasets to your collection if you’d
like for this collection to showcase them.</p>`,gs,Ae,Yo,Nt,Fo,Ut,Tl=`에이전트 프레임워크에서 사용할 수 있는 엔진을 자유롭게 만들고 사용할 수 있습니다.
이 엔진들은 다음과 같은 사양을 가지고 있습니다:`,Qo,Rt,xl='<li>입력(<code>List[Dict[str, str]]</code>)에 대한 <a href="../chat_templating.md">메시지 형식</a>을 따르고 문자열을 반환해야 합니다.</li> <li>인수 <code>stop_sequences</code>에 시퀀스가 전달되기 <em>전에</em> 출력을 생성하는 것을 중지해야 합니다.</li>',Xo,Wt,Ko,Bt,kl="편의를 위해, 위의 사항을 구현하고 대규모 언어 모델 실행을 위해 추론 엔드포인트를 사용하는 <code>HfApiEngine</code>을 추가했습니다.",ea,Vt,ta,K,zt,hs,so,Cl="This engine leverages Hugging Face’s Inference API service, either serverless or with a dedicated endpoint.",na,St,oa,Ot,Il=`에이전트는 도구 간의 모든 유형의 객체를 처리할 수 있습니다; 도구는 완전히 멀티모달이므로 텍스트, 이미지, 오디오, 비디오 등 다양한 유형을 수락하고 반환할 수 있습니다.
도구 간의 호환성을 높이고 ipython (jupyter, colab, ipython 노트북, …)에서 이러한
반환 값을 올바르게 렌더링하기 위해 이러한 유형을 중심으로 래퍼 클래스를
구현합니다.`,aa,Zt,Ml=`래핑된 객체는 처음과 동일하게 작동해야 합니다; 텍스트 객체는 여전히 문자열로 작동해야 하며,
이미지 객체는 여전히 <code>PIL.Image</code>로 작동해야 합니다.`,ra,Gt,Al="이러한 유형에는 세 가지 특정 목적이 있습니다:",sa,Yt,Ll=`<li><code>to_raw</code>를 호출하면 기본 객체가 반환되어야 합니다.</li> <li><code>to_string</code>을 호출하면 객체가 문자열로 반환되어야 합니다:
<code>AgentText</code>의 경우 문자열이 될 수 있지만, 다른 경우에는 객체의 직렬화된 버전의 경로일 수 있습니다.</li> <li>ipython 커널에서 표시할 때 객체가 올바르게 표시되어야 합니다.</li>`,la,Ft,ia,ee,Qt,us,lo,ql="Text type returned by the agent. Behaves as a string.",da,Xt,ma,H,Kt,fs,io,Pl="Image type returned by the agent. Behaves as a PIL.Image.",bs,Le,en,vs,mo,jl="Saves the image to a file.",_s,qe,tn,$s,co,Hl="Returns the “raw” version of that object. In the case of an AgentImage, it is a PIL.Image.",ys,Pe,nn,ws,po,Jl=`Returns the stringified version of that object. In the case of an AgentImage, it is a path to the serialized
version of the image.`,ca,on,pa,R,an,Ts,go,Dl="Audio type returned by the agent.",xs,je,rn,ks,ho,El="Returns the “raw” version of that object. It is a <code>torch.Tensor</code> object.",Cs,He,sn,Is,uo,Nl=`Returns the stringified version of that object. In the case of an AgentAudio, it is a path to the serialized
version of the audio.`,ga,ln,ha,wo,ua;return T=new q({props:{title:"에이전트 & 도구",local:"agents-tools",headingTag:"h1"}}),C=new Ms({props:{warning:!0,$$slots:{default:[Sl]},$$scope:{ctx:P}}}),Re=new q({props:{title:"에이전트",local:"agents",headingTag:"h2"}}),Ve=new q({props:{title:"Agent",local:"agent ][ transformers.Agent",headingTag:"h3"}}),ze=new $({props:{name:"class transformers.Agent",anchor:"transformers.Agent",parameters:[{name:"tools",val:": Union"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfApiEngine object at 0x7fb16734e890>"},{name:"system_prompt",val:" = 'You are an expert assistant who can solve any task using code blobs. You will be given a task to solve as best you can.\\nTo do so, you have been given access to a list of tools: these tools are basically Python functions which you can call with code.\\nTo solve the task, you must plan forward to proceed in a series of steps, in a cycle of \\'Thought:\\', \\'Code:\\', and \\'Observation:\\' sequences.\\n\\nAt each step, in the \\'Thought:\\' sequence, you should first explain your reasoning towards solving the task and the tools that you want to use.\\nThen in the \\'Code:\\' sequence, you should write the code in simple Python. The code sequence must end with \\'<end_action>\\' sequence.\\nDuring each intermediate step, you can use \\'print()\\' to save whatever important information you will then need.\\nThese print outputs will then appear in the \\'Observation:\\' field, which will be available as input for the next step.\\nIn the end you have to return a final answer using the `final_answer` tool.\\n\\nHere are a few examples using notional tools:\\n---\\nTask: \"Generate an image of the oldest person in this document.\"\\n\\nThought: I will proceed step by step and use the following tools: `document_qa` to find the oldest person in the document, then `image_generator` to generate an image according to the answer.\\nCode:\\n```py\\nanswer = document_qa(document=document, question=\"Who is the oldest person mentioned?\")\\nprint(answer)\\n```<end_action>\\nObservation: \"The oldest person in the document is John Doe, a 55 year old lumberjack living in Newfoundland.\"\\n\\nThought: I will now generate an image showcasing the oldest person.\\nCode:\\n```py\\nimage = image_generator(\"A portrait of John Doe, a 55-year-old man living in Canada.\")\\nfinal_answer(image)\\n```<end_action>\\n\\n---\\nTask: \"What is the result of the following operation: 5 + 3 + 1294.678?\"\\n\\nThought: I will use python code to compute the result of the operation and then return the final answer using the `final_answer` tool\\nCode:\\n```py\\nresult = 5 + 3 + 1294.678\\nfinal_answer(result)\\n```<end_action>\\n\\n---\\nTask: \"Which city has the highest population: Guangzhou or Shanghai?\"\\n\\nThought: I need to get the populations for both cities and compare them: I will use the tool `search` to get the population of both cities.\\nCode:\\n```py\\npopulation_guangzhou = search(\"Guangzhou population\")\\nprint(\"Population Guangzhou:\", population_guangzhou)\\npopulation_shanghai = search(\"Shanghai population\")\\nprint(\"Population Shanghai:\", population_shanghai)\\n```<end_action>\\nObservation:\\nPopulation Guangzhou: [\\'Guangzhou has a population of 15 million inhabitants as of 2021.\\']\\nPopulation Shanghai: \\'26 million (2019)\\'\\n\\nThought: Now I know that Shanghai has the highest population.\\nCode:\\n```py\\nfinal_answer(\"Shanghai\")\\n```<end_action>\\n\\n---\\nTask: \"What is the current age of the pope, raised to the power 0.36?\"\\n\\nThought: I will use the tool `wiki` to get the age of the pope, then raise it to the power 0.36.\\nCode:\\n```py\\npope_age = wiki(query=\"current pope age\")\\nprint(\"Pope age:\", pope_age)\\n```<end_action>\\nObservation:\\nPope age: \"The pope Francis is currently 85 years old.\"\\n\\nThought: I know that the pope is 85 years old. Let\\'s compute the result using python code.\\nCode:\\n```py\\npope_current_age = 85 ** 0.36\\nfinal_answer(pope_current_age)\\n```<end_action>\\n\\nAbove example were using notional tools that might not exist for you. On top of performing computations in the Python code snippets that you create, you have acces to those tools (and no other tool):\\n\\n<<tool_descriptions>>\\n\\n<<managed_agents_descriptions>>\\n\\nHere are the rules you should always follow to solve your task:\\n1. Always provide a \\'Thought:\\' sequence, and a \\'Code:\\n```py\\' sequence ending with \\'```<end_action>\\' sequence, else you will fail.\\n2. Use only variables that you have defined!\\n3. Always use the right arguments for the tools. DO NOT pass the arguments as a dict as in \\'answer = wiki({\\'query\\': \"What is the place where James Bond lives?\"})\\', but use the arguments directly as in \\'answer = wiki(query=\"What is the place where James Bond lives?\")\\'.\\n4. Take care to not chain too many sequential tool calls in the same code block, especially when the output format is unpredictable. For instance, a call to search has an unpredictable return format, so do not have another tool call that depends on its output in the same block: rather output results with print() to use them in the next block.\\n5. Call a tool only when needed, and never re-do a tool call that you previously did with the exact same parameters.\\n6. Don\\'t name any new variable with the same name as a tool: for instance don\\'t name a variable \\'final_answer\\'.\\n7. Never create any notional variables in our code, as having these in your logs might derail you from the true variables.\\n8. You can use imports in your code, but only from the following list of modules: <<authorized_imports>>\\n9. The state persists between code executions: so if in one step you\\'ve created variables or imported modules, these will all persist.\\n10. Don\\'t give up! You\\'re in charge of solving the task, not providing directions to solve it.\\n\\nNow Begin! If you solve the task correctly, you will receive a reward of $1,000,000.\\n'"},{name:"tool_description_template",val:" = None"},{name:"additional_args",val:" = {}"},{name:"max_iterations",val:": int = 6"},{name:"tool_parser",val:" = <function parse_json_tool_call at 0x7fb167347910>"},{name:"add_base_tools",val:": bool = False"},{name:"verbose",val:": int = 0"},{name:"grammar",val:": Dict = None"},{name:"managed_agents",val:": List = None"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L352"}}),Se=new $({props:{name:"execute_tool_call",anchor:"transformers.Agent.execute_tool_call",parameters:[{name:"tool_name",val:": str"},{name:"arguments",val:": Dict"}],parametersDescription:[{anchor:"transformers.Agent.execute_tool_call.tool_name",description:"<strong>tool_name</strong> (<code>str</code>) &#x2014; Name of the Tool to execute (should be one from self.toolbox).",name:"tool_name"},{anchor:"transformers.Agent.execute_tool_call.arguments",description:"<strong>arguments</strong> (Dict[str, str]) &#x2014; Arguments passed to the Tool.",name:"arguments"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L513"}}),Oe=new $({props:{name:"extract_action",anchor:"transformers.Agent.extract_action",parameters:[{name:"llm_output",val:": str"},{name:"split_token",val:": str"}],parametersDescription:[{anchor:"transformers.Agent.extract_action.llm_output",description:"<strong>llm_output</strong> (<code>str</code>) &#x2014; Output of the LLM",name:"llm_output"},{anchor:"transformers.Agent.extract_action.split_token",description:"<strong>split_token</strong> (<code>str</code>) &#x2014; Separator for the action. Should match the example in the system prompt.",name:"split_token"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L492"}}),Ze=new $({props:{name:"run",anchor:"transformers.Agent.run",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L568"}}),Ge=new $({props:{name:"write_inner_memory_from_logs",anchor:"transformers.Agent.write_inner_memory_from_logs",parameters:[{name:"summary_mode",val:": Optional = False"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L432"}}),Ye=new q({props:{title:"CodeAgent",local:"codeagent ][ transformers.CodeAgent",headingTag:"h3"}}),Fe=new $({props:{name:"class transformers.CodeAgent",anchor:"transformers.CodeAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfApiEngine object at 0x7fb16734eb30>"},{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/main/src/transformers/agents/agents.py#L573"}}),Qe=new $({props:{name:"parse_code_blob",anchor:"transformers.CodeAgent.parse_code_blob",parameters:[{name:"result",val:": str"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L609"}}),Xe=new $({props:{name:"run",anchor:"transformers.CodeAgent.run",parameters:[{name:"task",val:": str"},{name:"return_generated_code",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.CodeAgent.run.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; The task to perform",name:"task"},{anchor:"transformers.CodeAgent.run.return_generated_code",description:"<strong>return_generated_code</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014; Whether to return the generated code instead of running it",name:"return_generated_code"},{anchor:"transformers.CodeAgent.run.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Any keyword argument to send to the agent when evaluating the code.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L616"}}),se=new Ba({props:{anchor:"transformers.CodeAgent.run.example",$$slots:{default:[Ol]},$$scope:{ctx:P}}}),Ke=new q({props:{title:"React agents",local:"react-agents ][ transformers.ReactAgent",headingTag:"h3"}}),et=new $({props:{name:"class transformers.ReactAgent",anchor:"transformers.ReactAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfApiEngine object at 0x7fb16734ecb0>"},{name:"system_prompt",val:": str = 'You are an expert assistant who can solve any task using code blobs. You will be given a task to solve as best you can.\\nTo do so, you have been given access to a list of tools: these tools are basically Python functions which you can call with code.\\nTo solve the task, you must plan forward to proceed in a series of steps, in a cycle of \\'Thought:\\', \\'Code:\\', and \\'Observation:\\' sequences.\\n\\nAt each step, in the \\'Thought:\\' sequence, you should first explain your reasoning towards solving the task and the tools that you want to use.\\nThen in the \\'Code:\\' sequence, you should write the code in simple Python. The code sequence must end with \\'<end_action>\\' sequence.\\nDuring each intermediate step, you can use \\'print()\\' to save whatever important information you will then need.\\nThese print outputs will then appear in the \\'Observation:\\' field, which will be available as input for the next step.\\nIn the end you have to return a final answer using the `final_answer` tool.\\n\\nHere are a few examples using notional tools:\\n---\\nTask: \"Generate an image of the oldest person in this document.\"\\n\\nThought: I will proceed step by step and use the following tools: `document_qa` to find the oldest person in the document, then `image_generator` to generate an image according to the answer.\\nCode:\\n```py\\nanswer = document_qa(document=document, question=\"Who is the oldest person mentioned?\")\\nprint(answer)\\n```<end_action>\\nObservation: \"The oldest person in the document is John Doe, a 55 year old lumberjack living in Newfoundland.\"\\n\\nThought: I will now generate an image showcasing the oldest person.\\nCode:\\n```py\\nimage = image_generator(\"A portrait of John Doe, a 55-year-old man living in Canada.\")\\nfinal_answer(image)\\n```<end_action>\\n\\n---\\nTask: \"What is the result of the following operation: 5 + 3 + 1294.678?\"\\n\\nThought: I will use python code to compute the result of the operation and then return the final answer using the `final_answer` tool\\nCode:\\n```py\\nresult = 5 + 3 + 1294.678\\nfinal_answer(result)\\n```<end_action>\\n\\n---\\nTask: \"Which city has the highest population: Guangzhou or Shanghai?\"\\n\\nThought: I need to get the populations for both cities and compare them: I will use the tool `search` to get the population of both cities.\\nCode:\\n```py\\npopulation_guangzhou = search(\"Guangzhou population\")\\nprint(\"Population Guangzhou:\", population_guangzhou)\\npopulation_shanghai = search(\"Shanghai population\")\\nprint(\"Population Shanghai:\", population_shanghai)\\n```<end_action>\\nObservation:\\nPopulation Guangzhou: [\\'Guangzhou has a population of 15 million inhabitants as of 2021.\\']\\nPopulation Shanghai: \\'26 million (2019)\\'\\n\\nThought: Now I know that Shanghai has the highest population.\\nCode:\\n```py\\nfinal_answer(\"Shanghai\")\\n```<end_action>\\n\\n---\\nTask: \"What is the current age of the pope, raised to the power 0.36?\"\\n\\nThought: I will use the tool `wiki` to get the age of the pope, then raise it to the power 0.36.\\nCode:\\n```py\\npope_age = wiki(query=\"current pope age\")\\nprint(\"Pope age:\", pope_age)\\n```<end_action>\\nObservation:\\nPope age: \"The pope Francis is currently 85 years old.\"\\n\\nThought: I know that the pope is 85 years old. Let\\'s compute the result using python code.\\nCode:\\n```py\\npope_current_age = 85 ** 0.36\\nfinal_answer(pope_current_age)\\n```<end_action>\\n\\nAbove example were using notional tools that might not exist for you. On top of performing computations in the Python code snippets that you create, you have acces to those tools (and no other tool):\\n\\n<<tool_descriptions>>\\n\\n<<managed_agents_descriptions>>\\n\\nHere are the rules you should always follow to solve your task:\\n1. Always provide a \\'Thought:\\' sequence, and a \\'Code:\\n```py\\' sequence ending with \\'```<end_action>\\' sequence, else you will fail.\\n2. Use only variables that you have defined!\\n3. Always use the right arguments for the tools. DO NOT pass the arguments as a dict as in \\'answer = wiki({\\'query\\': \"What is the place where James Bond lives?\"})\\', but use the arguments directly as in \\'answer = wiki(query=\"What is the place where James Bond lives?\")\\'.\\n4. Take care to not chain too many sequential tool calls in the same code block, especially when the output format is unpredictable. For instance, a call to search has an unpredictable return format, so do not have another tool call that depends on its output in the same block: rather output results with print() to use them in the next block.\\n5. Call a tool only when needed, and never re-do a tool call that you previously did with the exact same parameters.\\n6. Don\\'t name any new variable with the same name as a tool: for instance don\\'t name a variable \\'final_answer\\'.\\n7. Never create any notional variables in our code, as having these in your logs might derail you from the true variables.\\n8. You can use imports in your code, but only from the following list of modules: <<authorized_imports>>\\n9. The state persists between code executions: so if in one step you\\'ve created variables or imported modules, these will all persist.\\n10. Don\\'t give up! You\\'re in charge of solving the task, not providing directions to solve it.\\n\\nNow Begin! If you solve the task correctly, you will receive a reward of $1,000,000.\\n'"},{name:"tool_description_template",val:": str = '\\n- {{ tool.name }}: {{ tool.description }}\\n Takes inputs: {{tool.inputs}}\\n'"},{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/main/src/transformers/agents/agents.py#L694"}}),tt=new $({props:{name:"direct_run",anchor:"transformers.ReactAgent.direct_run",parameters:[{name:"task",val:": str"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L802"}}),nt=new $({props:{name:"planning_step",anchor:"transformers.ReactAgent.planning_step",parameters:[{name:"task",val:""},{name:"is_first_step",val:": bool = False"},{name:"iteration",val:": int = None"}],parametersDescription:[{anchor:"transformers.ReactAgent.planning_step.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; The task to perform",name:"task"},{anchor:"transformers.ReactAgent.planning_step.is_first_step",description:"<strong>is_first_step</strong> (<code>bool</code>) &#x2014; If this step is not the first one, the plan should be an update over a previous plan.",name:"is_first_step"},{anchor:"transformers.ReactAgent.planning_step.iteration",description:"<strong>iteration</strong> (<code>int</code>) &#x2014; The number of the current step, used as an indication for the LLM.",name:"iteration"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L831"}}),ot=new $({props:{name:"provide_final_answer",anchor:"transformers.ReactAgent.provide_final_answer",parameters:[{name:"task",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L724"}}),at=new $({props:{name:"run",anchor:"transformers.ReactAgent.run",parameters:[{name:"task",val:": str"},{name:"stream",val:": bool = False"},{name:"reset",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ReactAgent.run.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; The task to perform",name:"task"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L746"}}),me=new Ba({props:{anchor:"transformers.ReactAgent.run.example",$$slots:{default:[Zl]},$$scope:{ctx:P}}}),rt=new $({props:{name:"stream_run",anchor:"transformers.ReactAgent.stream_run",parameters:[{name:"task",val:": str"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L773"}}),st=new $({props:{name:"class transformers.ReactJsonAgent",anchor:"transformers.ReactJsonAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfApiEngine object at 0x7fb16734ee60>"},{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/main/src/transformers/agents/agents.py#L931"}}),lt=new $({props:{name:"step",anchor:"transformers.ReactJsonAgent.step",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L958"}}),it=new $({props:{name:"class transformers.ReactCodeAgent",anchor:"transformers.ReactCodeAgent",parameters:[{name:"tools",val:": List"},{name:"llm_engine",val:": Callable = <transformers.agents.llm_engine.HfApiEngine object at 0x7fb16734efe0>"},{name:"system_prompt",val:": str = 'You are an expert assistant who can solve any task using code blobs. You will be given a task to solve as best you can.\\nTo do so, you have been given access to a list of tools: these tools are basically Python functions which you can call with code.\\nTo solve the task, you must plan forward to proceed in a series of steps, in a cycle of \\'Thought:\\', \\'Code:\\', and \\'Observation:\\' sequences.\\n\\nAt each step, in the \\'Thought:\\' sequence, you should first explain your reasoning towards solving the task and the tools that you want to use.\\nThen in the \\'Code:\\' sequence, you should write the code in simple Python. The code sequence must end with \\'<end_action>\\' sequence.\\nDuring each intermediate step, you can use \\'print()\\' to save whatever important information you will then need.\\nThese print outputs will then appear in the \\'Observation:\\' field, which will be available as input for the next step.\\nIn the end you have to return a final answer using the `final_answer` tool.\\n\\nHere are a few examples using notional tools:\\n---\\nTask: \"Generate an image of the oldest person in this document.\"\\n\\nThought: I will proceed step by step and use the following tools: `document_qa` to find the oldest person in the document, then `image_generator` to generate an image according to the answer.\\nCode:\\n```py\\nanswer = document_qa(document=document, question=\"Who is the oldest person mentioned?\")\\nprint(answer)\\n```<end_action>\\nObservation: \"The oldest person in the document is John Doe, a 55 year old lumberjack living in Newfoundland.\"\\n\\nThought: I will now generate an image showcasing the oldest person.\\nCode:\\n```py\\nimage = image_generator(\"A portrait of John Doe, a 55-year-old man living in Canada.\")\\nfinal_answer(image)\\n```<end_action>\\n\\n---\\nTask: \"What is the result of the following operation: 5 + 3 + 1294.678?\"\\n\\nThought: I will use python code to compute the result of the operation and then return the final answer using the `final_answer` tool\\nCode:\\n```py\\nresult = 5 + 3 + 1294.678\\nfinal_answer(result)\\n```<end_action>\\n\\n---\\nTask: \"Which city has the highest population: Guangzhou or Shanghai?\"\\n\\nThought: I need to get the populations for both cities and compare them: I will use the tool `search` to get the population of both cities.\\nCode:\\n```py\\npopulation_guangzhou = search(\"Guangzhou population\")\\nprint(\"Population Guangzhou:\", population_guangzhou)\\npopulation_shanghai = search(\"Shanghai population\")\\nprint(\"Population Shanghai:\", population_shanghai)\\n```<end_action>\\nObservation:\\nPopulation Guangzhou: [\\'Guangzhou has a population of 15 million inhabitants as of 2021.\\']\\nPopulation Shanghai: \\'26 million (2019)\\'\\n\\nThought: Now I know that Shanghai has the highest population.\\nCode:\\n```py\\nfinal_answer(\"Shanghai\")\\n```<end_action>\\n\\n---\\nTask: \"What is the current age of the pope, raised to the power 0.36?\"\\n\\nThought: I will use the tool `wiki` to get the age of the pope, then raise it to the power 0.36.\\nCode:\\n```py\\npope_age = wiki(query=\"current pope age\")\\nprint(\"Pope age:\", pope_age)\\n```<end_action>\\nObservation:\\nPope age: \"The pope Francis is currently 85 years old.\"\\n\\nThought: I know that the pope is 85 years old. Let\\'s compute the result using python code.\\nCode:\\n```py\\npope_current_age = 85 ** 0.36\\nfinal_answer(pope_current_age)\\n```<end_action>\\n\\nAbove example were using notional tools that might not exist for you. On top of performing computations in the Python code snippets that you create, you have acces to those tools (and no other tool):\\n\\n<<tool_descriptions>>\\n\\n<<managed_agents_descriptions>>\\n\\nHere are the rules you should always follow to solve your task:\\n1. Always provide a \\'Thought:\\' sequence, and a \\'Code:\\n```py\\' sequence ending with \\'```<end_action>\\' sequence, else you will fail.\\n2. Use only variables that you have defined!\\n3. Always use the right arguments for the tools. DO NOT pass the arguments as a dict as in \\'answer = wiki({\\'query\\': \"What is the place where James Bond lives?\"})\\', but use the arguments directly as in \\'answer = wiki(query=\"What is the place where James Bond lives?\")\\'.\\n4. Take care to not chain too many sequential tool calls in the same code block, especially when the output format is unpredictable. For instance, a call to search has an unpredictable return format, so do not have another tool call that depends on its output in the same block: rather output results with print() to use them in the next block.\\n5. Call a tool only when needed, and never re-do a tool call that you previously did with the exact same parameters.\\n6. Don\\'t name any new variable with the same name as a tool: for instance don\\'t name a variable \\'final_answer\\'.\\n7. Never create any notional variables in our code, as having these in your logs might derail you from the true variables.\\n8. You can use imports in your code, but only from the following list of modules: <<authorized_imports>>\\n9. The state persists between code executions: so if in one step you\\'ve created variables or imported modules, these will all persist.\\n10. Don\\'t give up! You\\'re in charge of solving the task, not providing directions to solve it.\\n\\nNow Begin! If you solve the task correctly, you will receive a reward of $1,000,000.\\n'"},{name:"tool_description_template",val:": str = '\\n- {{ tool.name }}: {{ tool.description }}\\n Takes inputs: {{tool.inputs}}\\n'"},{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/main/src/transformers/agents/agents.py#L1041"}}),dt=new $({props:{name:"step",anchor:"transformers.ReactCodeAgent.step",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L1082"}}),mt=new q({props:{title:"Tools",local:"tools",headingTag:"h2"}}),ct=new q({props:{title:"load_tool",local:"loadtool ][ transformers.load_tool",headingTag:"h3"}}),pt=new $({props:{name:"transformers.load_tool",anchor:"transformers.load_tool",parameters:[{name:"task_or_repo_id",val:""},{name:"model_repo_id",val:" = None"},{name:"token",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.load_tool.task_or_repo_id",description:`<strong>task_or_repo_id</strong> (<code>str</code>) &#x2014;
The task for which to load the tool or a repo ID of a tool on the Hub. Tasks implemented in Transformers
are:</p>
<ul>
<li><code>&quot;document_question_answering&quot;</code></li>
<li><code>&quot;image_question_answering&quot;</code></li>
<li><code>&quot;speech_to_text&quot;</code></li>
<li><code>&quot;text_to_speech&quot;</code></li>
<li><code>&quot;translation&quot;</code></li>
</ul>`,name:"task_or_repo_id"},{anchor:"transformers.load_tool.model_repo_id",description:`<strong>model_repo_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Use this argument to use a different model than the default one for the tool you selected.`,name:"model_repo_id"},{anchor:"transformers.load_tool.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to identify you on hf.co. If unset, will use the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.load_tool.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Additional keyword arguments that will be split in two: all arguments relevant to the Hub (such as
<code>cache_dir</code>, <code>revision</code>, <code>subfolder</code>) will be used when downloading the files for your tool, and the others
will be passed along to its init.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L658"}}),he=new Ms({props:{warning:!0,$$slots:{default:[Gl]},$$scope:{ctx:P}}}),gt=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/main/src/transformers/agents/tools.py#L88"}}),ut=new $({props:{name:"from_gradio",anchor:"transformers.Tool.from_gradio",parameters:[{name:"gradio_tool",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L374"}}),ft=new $({props:{name:"from_hub",anchor:"transformers.Tool.from_hub",parameters:[{name:"repo_id",val:": str"},{name:"model_repo_id",val:": Optional = None"},{name:"token",val:": Optional = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Tool.from_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repo on the Hub where your tool is defined.`,name:"repo_id"},{anchor:"transformers.Tool.from_hub.model_repo_id",description:`<strong>model_repo_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
If your tool uses a model and you want to use a different model than the default, you can pass a second
repo ID or an endpoint url to this argument.`,name:"model_repo_id"},{anchor:"transformers.Tool.from_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to identify you on hf.co. If unset, will use the token generated when running
<code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.Tool.from_hub.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Additional keyword arguments that will be split in two: all arguments relevant to the Hub (such as
<code>cache_dir</code>, <code>revision</code>, <code>subfolder</code>) will be used when downloading the files for your tool, and the
others will be passed along to its init.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L205"}}),fe=new Ms({props:{warning:!0,$$slots:{default:[Yl]},$$scope:{ctx:P}}}),bt=new $({props:{name:"from_langchain",anchor:"transformers.Tool.from_langchain",parameters:[{name:"langchain_tool",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L396"}}),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/main/src/transformers/agents/tools.py#L317"}}),ve=new Ba({props:{anchor:"transformers.Tool.push_to_hub.example",$$slots:{default:[Fl]},$$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/main/src/transformers/agents/tools.py#L145"}}),$t=new $({props:{name:"setup",anchor:"transformers.Tool.setup",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L138"}}),yt=new q({props:{title:"Toolbox",local:"toolbox ][ transformers.Toolbox",headingTag:"h3"}}),wt=new $({props:{name:"class transformers.Toolbox",anchor:"transformers.Toolbox",parameters:[{name:"tools",val:": List"},{name:"add_base_tools",val:": bool = False"}],parametersDescription:[{anchor:"transformers.Toolbox.tools",description:`<strong>tools</strong> (<code>List[Tool]</code>) &#x2014;
The list of tools to instantiate the toolbox with`,name:"tools"},{anchor:"transformers.Toolbox.add_base_tools",description:`<strong>add_base_tools</strong> (<code>bool</code>, defaults to <code>False</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to add the tools available within <code>transformers</code> to the toolbox.`,name:"add_base_tools"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L182"}}),Tt=new $({props:{name:"add_tool",anchor:"transformers.Toolbox.add_tool",parameters:[{name:"tool",val:": Tool"}],parametersDescription:[{anchor:"transformers.Toolbox.add_tool.tool",description:`<strong>tool</strong> (<code>Tool</code>) &#x2014;
The tool to add to the toolbox.`,name:"tool"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L228"}}),xt=new $({props:{name:"clear_toolbox",anchor:"transformers.Toolbox.clear_toolbox",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L268"}}),kt=new $({props:{name:"remove_tool",anchor:"transformers.Toolbox.remove_tool",parameters:[{name:"tool_name",val:": str"}],parametersDescription:[{anchor:"transformers.Toolbox.remove_tool.tool_name",description:`<strong>tool_name</strong> (<code>str</code>) &#x2014;
The tool to remove from the toolbox.`,name:"tool_name"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L240"}}),Ct=new $({props:{name:"show_tool_descriptions",anchor:"transformers.Toolbox.show_tool_descriptions",parameters:[{name:"tool_description_template",val:": str = None"}],parametersDescription:[{anchor:"transformers.Toolbox.show_tool_descriptions.tool_description_template",description:`<strong>tool_description_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The template to use to describe the tools. If not provided, the default template will be used.`,name:"tool_description_template"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L216"}}),It=new $({props:{name:"update_tool",anchor:"transformers.Toolbox.update_tool",parameters:[{name:"tool",val:": Tool"}],parametersDescription:[{anchor:"transformers.Toolbox.update_tool.tool",description:`<strong>tool</strong> (<code>Tool</code>) &#x2014;
The tool to update to the toolbox.`,name:"tool"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agents.py#L254"}}),Mt=new q({props:{title:"PipelineTool",local:"pipelinetool ][ transformers.PipelineTool",headingTag:"h3"}}),At=new $({props:{name:"class transformers.PipelineTool",anchor:"transformers.PipelineTool",parameters:[{name:"model",val:" = None"},{name:"pre_processor",val:" = None"},{name:"post_processor",val:" = None"},{name:"device",val:" = None"},{name:"device_map",val:" = None"},{name:"model_kwargs",val:" = None"},{name:"token",val:" = None"},{name:"**hub_kwargs",val:""}],parametersDescription:[{anchor:"transformers.PipelineTool.model",description:`<strong>model</strong> (<code>str</code> or <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/main/src/transformers/agents/tools.py#L456"}}),Lt=new $({props:{name:"decode",anchor:"transformers.PipelineTool.decode",parameters:[{name:"outputs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L579"}}),qt=new $({props:{name:"encode",anchor:"transformers.PipelineTool.encode",parameters:[{name:"raw_inputs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L566"}}),Pt=new $({props:{name:"forward",anchor:"transformers.PipelineTool.forward",parameters:[{name:"inputs",val:""}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L572"}}),jt=new $({props:{name:"setup",anchor:"transformers.PipelineTool.setup",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L540"}}),Ht=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/main/src/transformers/agents/tools.py#L604"}}),Dt=new q({props:{title:"ToolCollection",local:"toolcollection ][ transformers.ToolCollection",headingTag:"h3"}}),Et=new $({props:{name:"class transformers.ToolCollection",anchor:"transformers.ToolCollection",parameters:[{name:"collection_slug",val:": str"},{name:"token",val:": Optional = None"}],parametersDescription:[{anchor:"transformers.ToolCollection.collection_slug",description:`<strong>collection_slug</strong> (str) &#x2014;
The collection slug referencing the collection.`,name:"collection_slug"},{anchor:"transformers.ToolCollection.token",description:`<strong>token</strong> (str, <em>optional</em>) &#x2014;
The authentication token if the collection is private.`,name:"token"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/tools.py#L782"}}),Ae=new Ba({props:{anchor:"transformers.ToolCollection.example",$$slots:{default:[Ql]},$$scope:{ctx:P}}}),Nt=new q({props:{title:"엔진",local:"engines",headingTag:"h2"}}),Wt=new q({props:{title:"HfApiEngine",local:"HfApiEngine ][ transformers.HfApiEngine",headingTag:"h3"}}),Vt=new To({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEhmQXBpRW5naW5lJTBBJTBBbWVzc2FnZXMlMjAlM0QlMjAlNUIlMEElMjAlMjAlN0IlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlMjJIZWxsbyUyQyUyMGhvdyUyMGFyZSUyMHlvdSUzRiUyMiU3RCUyQyUwQSUyMCUyMCU3QiUyMnJvbGUlMjIlM0ElMjAlMjJhc3Npc3RhbnQlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIySSdtJTIwZG9pbmclMjBncmVhdC4lMjBIb3clMjBjYW4lMjBJJTIwaGVscCUyMHlvdSUyMHRvZGF5JTNGJTIyJTdEJTJDJTBBJTIwJTIwJTdCJTIycm9sZSUyMiUzQSUyMCUyMnVzZXIlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIyTm8lMjBuZWVkJTIwdG8lMjBoZWxwJTJDJTIwdGFrZSUyMGl0JTIwZWFzeS4lMjIlN0QlMkMlMEElNUQlMEElMEFIZkFwaUVuZ2luZSgpKG1lc3NhZ2VzJTJDJTIwc3RvcF9zZXF1ZW5jZXMlM0QlNUIlMjJjb252ZXJzYXRpb24lMjIlNUQpJTBB",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> HfApiEngine
<span class="hljs-meta">&gt;&gt;&gt; </span>messages = [
<span class="hljs-meta">... </span> {<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;Hello, how are you?&quot;</span>},
<span class="hljs-meta">... </span> {<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;assistant&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;I&#x27;m doing great. How can I help you today?&quot;</span>},
<span class="hljs-meta">... </span> {<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;No need to help, take it easy.&quot;</span>},
<span class="hljs-meta">... </span>]
<span class="hljs-meta">&gt;&gt;&gt; </span>HfApiEngine()(messages, stop_sequences=[<span class="hljs-string">&quot;conversation&quot;</span>])
<span class="hljs-string">&quot;That&#x27;s very kind of you to say! It&#x27;s always nice to have a relaxed &quot;</span>`,wrap:!1}}),zt=new $({props:{name:"class transformers.HfApiEngine",anchor:"transformers.HfApiEngine",parameters:[{name:"model",val:": str = 'meta-llama/Meta-Llama-3.1-8B-Instruct'"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/llm_engine.py#L70"}}),St=new q({props:{title:"에이전트 유형",local:"agent-types",headingTag:"h2"}}),Ft=new q({props:{title:"AgentText",local:"agenttext ][ transformers.agents.agent_types.AgentText",headingTag:"h3"}}),Qt=new $({props:{name:"class transformers.agents.agent_types.AgentText",anchor:"transformers.agents.agent_types.AgentText",parameters:[{name:"value",val:""}],source:"https://github.com/huggingface/transformers/blob/main/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/main/src/transformers/agents/agent_types.py#L85"}}),en=new $({props:{name:"save",anchor:"transformers.agents.agent_types.AgentImage.save",parameters:[{name:"output_bytes",val:""},{name:"format",val:""},{name:"**params",val:""}],parametersDescription:[{anchor:"transformers.agents.agent_types.AgentImage.save.output_bytes",description:"<strong>output_bytes</strong> (bytes) &#x2014; The output bytes to save the image to.",name:"output_bytes"},{anchor:"transformers.agents.agent_types.AgentImage.save.format",description:`<strong>format</strong> (str) &#x2014; The format to use for the output image. The format is the same as in PIL.Image.save.
**params &#x2014; Additional parameters to pass to PIL.Image.save.`,name:"format"}],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agent_types.py#L162"}}),tn=new $({props:{name:"to_raw",anchor:"transformers.agents.agent_types.AgentImage.to_raw",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agent_types.py#L120"}}),nn=new $({props:{name:"to_string",anchor:"transformers.agents.agent_types.AgentImage.to_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agent_types.py#L135"}}),on=new 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/main/src/transformers/agents/agent_types.py#L174"}}),rn=new $({props:{name:"to_raw",anchor:"transformers.agents.agent_types.AgentAudio.to_raw",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agent_types.py#L210"}}),sn=new $({props:{name:"to_string",anchor:"transformers.agents.agent_types.AgentAudio.to_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/main/src/transformers/agents/agent_types.py#L222"}}),ln=new zl({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),b=n(),d(C.$$.fragment),xo=n(),Ue=r("p"),Ue.innerHTML=As,ko=n(),d(Re.$$.fragment),Co=n(),We=r("p"),We.innerHTML=Ls,Io=n(),Be=r("ul"),Be.innerHTML=qs,Mo=n(),d(Ve.$$.fragment),Ao=n(),j=r("div"),d(ze.$$.fragment),Va=n(),te=r("div"),d(Se.$$.fragment),za=n(),un=r("p"),un.textContent=Ps,Sa=n(),ne=r("div"),d(Oe.$$.fragment),Oa=n(),fn=r("p"),fn.textContent=js,Za=n(),oe=r("div"),d(Ze.$$.fragment),Ga=n(),bn=r("p"),bn.textContent=Hs,Ya=n(),ae=r("div"),d(Ge.$$.fragment),Fa=n(),vn=r("p"),vn.textContent=Js,Lo=n(),d(Ye.$$.fragment),qo=n(),N=r("div"),d(Fe.$$.fragment),Qa=n(),_n=r("p"),_n.textContent=Ds,Xa=n(),re=r("div"),d(Qe.$$.fragment),Ka=n(),$n=r("p"),$n.innerHTML=Es,er=n(),G=r("div"),d(Xe.$$.fragment),tr=n(),yn=r("p"),yn.textContent=Ns,nr=n(),d(se.$$.fragment),Po=n(),d(Ke.$$.fragment),jo=n(),M=r("div"),d(et.$$.fragment),or=n(),wn=r("p"),wn.textContent=Us,ar=n(),le=r("div"),d(tt.$$.fragment),rr=n(),Tn=r("p"),Tn.innerHTML=Rs,sr=n(),ie=r("div"),d(nt.$$.fragment),lr=n(),xn=r("p"),xn.textContent=Ws,ir=n(),de=r("div"),d(ot.$$.fragment),dr=n(),kn=r("p"),kn.textContent=Bs,mr=n(),Y=r("div"),d(at.$$.fragment),cr=n(),Cn=r("p"),Cn.textContent=Vs,pr=n(),d(me.$$.fragment),gr=n(),ce=r("div"),d(rt.$$.fragment),hr=n(),In=r("p"),In.innerHTML=zs,Ho=n(),z=r("div"),d(st.$$.fragment),ur=n(),Mn=r("p"),Mn.textContent=Ss,fr=n(),pe=r("div"),d(lt.$$.fragment),br=n(),An=r("p"),An.textContent=Os,Jo=n(),S=r("div"),d(it.$$.fragment),vr=n(),Ln=r("p"),Ln.textContent=Zs,_r=n(),ge=r("div"),d(dt.$$.fragment),$r=n(),qn=r("p"),qn.textContent=Gs,Do=n(),d(mt.$$.fragment),Eo=n(),d(ct.$$.fragment),No=n(),O=r("div"),d(pt.$$.fragment),yr=n(),Pn=r("p"),Pn.textContent=Ys,wr=n(),d(he.$$.fragment),Uo=n(),d(gt.$$.fragment),Ro=n(),k=r("div"),d(ht.$$.fragment),Tr=n(),jn=r("p"),jn.innerHTML=Fs,xr=n(),Hn=r("ul"),Hn.innerHTML=Qs,kr=n(),Jn=r("p"),Jn.innerHTML=Xs,Cr=n(),ue=r("div"),d(ut.$$.fragment),Ir=n(),Dn=r("p"),Dn.innerHTML=Ks,Mr=n(),F=r("div"),d(ft.$$.fragment),Ar=n(),En=r("p"),En.textContent=el,Lr=n(),d(fe.$$.fragment),qr=n(),be=r("div"),d(bt.$$.fragment),Pr=n(),Nn=r("p"),Nn.innerHTML=tl,jr=n(),B=r("div"),d(vt.$$.fragment),Hr=n(),Un=r("p"),Un.textContent=nl,Jr=n(),Rn=r("p"),Rn.innerHTML=ol,Dr=n(),d(ve.$$.fragment),Er=n(),V=r("div"),d(_t.$$.fragment),Nr=n(),Wn=r("p"),Wn.innerHTML=al,Ur=n(),Bn=r("ul"),Bn.innerHTML=rl,Rr=n(),Vn=r("p"),Vn.innerHTML=sl,Wr=n(),_e=r("div"),d($t.$$.fragment),Br=n(),zn=r("p"),zn.textContent=ll,Wo=n(),d(yt.$$.fragment),Bo=n(),A=r("div"),d(wt.$$.fragment),Vr=n(),Sn=r("p"),Sn.textContent=il,zr=n(),$e=r("div"),d(Tt.$$.fragment),Sr=n(),On=r("p"),On.textContent=dl,Or=n(),ye=r("div"),d(xt.$$.fragment),Zr=n(),Zn=r("p"),Zn.textContent=ml,Gr=n(),we=r("div"),d(kt.$$.fragment),Yr=n(),Gn=r("p"),Gn.textContent=cl,Fr=n(),Te=r("div"),d(Ct.$$.fragment),Qr=n(),Yn=r("p"),Yn.textContent=pl,Xr=n(),xe=r("div"),d(It.$$.fragment),Kr=n(),Fn=r("p"),Fn.textContent=gl,Vo=n(),d(Mt.$$.fragment),zo=n(),L=r("div"),d(At.$$.fragment),es=n(),Qn=r("p"),Qn.innerHTML=hl,ts=n(),Xn=r("ul"),Xn.innerHTML=ul,ns=n(),ke=r("div"),d(Lt.$$.fragment),os=n(),Kn=r("p"),Kn.innerHTML=fl,as=n(),Ce=r("div"),d(qt.$$.fragment),rs=n(),eo=r("p"),eo.innerHTML=bl,ss=n(),Ie=r("div"),d(Pt.$$.fragment),ls=n(),to=r("p"),to.innerHTML=vl,is=n(),Me=r("div"),d(jt.$$.fragment),ds=n(),no=r("p"),no.innerHTML=_l,So=n(),d(Ht.$$.fragment),Oo=n(),X=r("div"),d(Jt.$$.fragment),ms=n(),oo=r("p"),oo.innerHTML=$l,Zo=n(),d(Dt.$$.fragment),Go=n(),U=r("div"),d(Et.$$.fragment),cs=n(),ao=r("p"),ao.textContent=yl,ps=n(),ro=r("blockquote"),ro.innerHTML=wl,gs=n(),d(Ae.$$.fragment),Yo=n(),d(Nt.$$.fragment),Fo=n(),Ut=r("p"),Ut.textContent=Tl,Qo=n(),Rt=r("ol"),Rt.innerHTML=xl,Xo=n(),d(Wt.$$.fragment),Ko=n(),Bt=r("p"),Bt.innerHTML=kl,ea=n(),d(Vt.$$.fragment),ta=n(),K=r("div"),d(zt.$$.fragment),hs=n(),so=r("p"),so.textContent=Cl,na=n(),d(St.$$.fragment),oa=n(),Ot=r("p"),Ot.textContent=Il,aa=n(),Zt=r("p"),Zt.innerHTML=Ml,ra=n(),Gt=r("p"),Gt.textContent=Al,sa=n(),Yt=r("ul"),Yt.innerHTML=Ll,la=n(),d(Ft.$$.fragment),ia=n(),ee=r("div"),d(Qt.$$.fragment),us=n(),lo=r("p"),lo.textContent=ql,da=n(),d(Xt.$$.fragment),ma=n(),H=r("div"),d(Kt.$$.fragment),fs=n(),io=r("p"),io.textContent=Pl,bs=n(),Le=r("div"),d(en.$$.fragment),vs=n(),mo=r("p"),mo.textContent=jl,_s=n(),qe=r("div"),d(tn.$$.fragment),$s=n(),co=r("p"),co.textContent=Hl,ys=n(),Pe=r("div"),d(nn.$$.fragment),ws=n(),po=r("p"),po.textContent=Jl,ca=n(),d(on.$$.fragment),pa=n(),R=r("div"),d(an.$$.fragment),Ts=n(),go=r("p"),go.textContent=Dl,xs=n(),je=r("div"),d(rn.$$.fragment),ks=n(),ho=r("p"),ho.innerHTML=El,Cs=n(),He=r("div"),d(sn.$$.fragment),Is=n(),uo=r("p"),uo.textContent=Nl,ga=n(),d(ln.$$.fragment),ha=n(),wo=r("p"),this.h()},l(e){const l=Vl("svelte-u9bgzb",document.head);f=s(l,"META",{name:!0,content:!0}),l.forEach(a),x=o(e),y=s(e,"P",{}),v(y).forEach(a),w=o(e),m(T.$$.fragment,e),b=o(e),m(C.$$.fragment,e),xo=o(e),Ue=s(e,"P",{"data-svelte-h":!0}),u(Ue)!=="svelte-18njsj2"&&(Ue.innerHTML=As),ko=o(e),m(Re.$$.fragment,e),Co=o(e),We=s(e,"P",{"data-svelte-h":!0}),u(We)!=="svelte-aecfmy"&&(We.innerHTML=Ls),Io=o(e),Be=s(e,"UL",{"data-svelte-h":!0}),u(Be)!=="svelte-3pnbrm"&&(Be.innerHTML=qs),Mo=o(e),m(Ve.$$.fragment,e),Ao=o(e),j=s(e,"DIV",{class:!0});var W=v(j);m(ze.$$.fragment,W),Va=o(W),te=s(W,"DIV",{class:!0});var dn=v(te);m(Se.$$.fragment,dn),za=o(dn),un=s(dn,"P",{"data-svelte-h":!0}),u(un)!=="svelte-a91m64"&&(un.textContent=Ps),dn.forEach(a),Sa=o(W),ne=s(W,"DIV",{class:!0});var mn=v(ne);m(Oe.$$.fragment,mn),Oa=o(mn),fn=s(mn,"P",{"data-svelte-h":!0}),u(fn)!=="svelte-104knry"&&(fn.textContent=js),mn.forEach(a),Za=o(W),oe=s(W,"DIV",{class:!0});var cn=v(oe);m(Ze.$$.fragment,cn),Ga=o(cn),bn=s(cn,"P",{"data-svelte-h":!0}),u(bn)!=="svelte-wvvftk"&&(bn.textContent=Hs),cn.forEach(a),Ya=o(W),ae=s(W,"DIV",{class:!0});var pn=v(ae);m(Ge.$$.fragment,pn),Fa=o(pn),vn=s(pn,"P",{"data-svelte-h":!0}),u(vn)!=="svelte-1cw6633"&&(vn.textContent=Js),pn.forEach(a),W.forEach(a),Lo=o(e),m(Ye.$$.fragment,e),qo=o(e),N=s(e,"DIV",{class:!0});var Z=v(N);m(Fe.$$.fragment,Z),Qa=o(Z),_n=s(Z,"P",{"data-svelte-h":!0}),u(_n)!=="svelte-rq8zg0"&&(_n.textContent=Ds),Xa=o(Z),re=s(Z,"DIV",{class:!0});var gn=v(re);m(Qe.$$.fragment,gn),Ka=o(gn),$n=s(gn,"P",{"data-svelte-h":!0}),u($n)!=="svelte-tvi94l"&&($n.innerHTML=Es),gn.forEach(a),er=o(Z),G=s(Z,"DIV",{class:!0});var fo=v(G);m(Xe.$$.fragment,fo),tr=o(fo),yn=s(fo,"P",{"data-svelte-h":!0}),u(yn)!=="svelte-tbr5ck"&&(yn.textContent=Ns),nr=o(fo),m(se.$$.fragment,fo),fo.forEach(a),Z.forEach(a),Po=o(e),m(Ke.$$.fragment,e),jo=o(e),M=s(e,"DIV",{class:!0});var J=v(M);m(et.$$.fragment,J),or=o(J),wn=s(J,"P",{"data-svelte-h":!0}),u(wn)!=="svelte-c95fji"&&(wn.textContent=Us),ar=o(J),le=s(J,"DIV",{class:!0});var fa=v(le);m(tt.$$.fragment,fa),rr=o(fa),Tn=s(fa,"P",{"data-svelte-h":!0}),u(Tn)!=="svelte-17ywxxr"&&(Tn.innerHTML=Rs),fa.forEach(a),sr=o(J),ie=s(J,"DIV",{class:!0});var ba=v(ie);m(nt.$$.fragment,ba),lr=o(ba),xn=s(ba,"P",{"data-svelte-h":!0}),u(xn)!=="svelte-e54ku6"&&(xn.textContent=Ws),ba.forEach(a),ir=o(J),de=s(J,"DIV",{class:!0});var va=v(de);m(ot.$$.fragment,va),dr=o(va),kn=s(va,"P",{"data-svelte-h":!0}),u(kn)!=="svelte-1ii4mb"&&(kn.textContent=Bs),va.forEach(a),mr=o(J),Y=s(J,"DIV",{class:!0});var bo=v(Y);m(at.$$.fragment,bo),cr=o(bo),Cn=s(bo,"P",{"data-svelte-h":!0}),u(Cn)!=="svelte-tbr5ck"&&(Cn.textContent=Vs),pr=o(bo),m(me.$$.fragment,bo),bo.forEach(a),gr=o(J),ce=s(J,"DIV",{class:!0});var _a=v(ce);m(rt.$$.fragment,_a),hr=o(_a),In=s(_a,"P",{"data-svelte-h":!0}),u(In)!=="svelte-nf9see"&&(In.innerHTML=zs),_a.forEach(a),J.forEach(a),Ho=o(e),z=s(e,"DIV",{class:!0});var vo=v(z);m(st.$$.fragment,vo),ur=o(vo),Mn=s(vo,"P",{"data-svelte-h":!0}),u(Mn)!=="svelte-1ip7q5f"&&(Mn.textContent=Ss),fr=o(vo),pe=s(vo,"DIV",{class:!0});var $a=v(pe);m(lt.$$.fragment,$a),br=o($a),An=s($a,"P",{"data-svelte-h":!0}),u(An)!=="svelte-1bbx2c8"&&(An.textContent=Os),$a.forEach(a),vo.forEach(a),Jo=o(e),S=s(e,"DIV",{class:!0});var _o=v(S);m(it.$$.fragment,_o),vr=o(_o),Ln=s(_o,"P",{"data-svelte-h":!0}),u(Ln)!=="svelte-1egm30q"&&(Ln.textContent=Zs),_r=o(_o),ge=s(_o,"DIV",{class:!0});var ya=v(ge);m(dt.$$.fragment,ya),$r=o(ya),qn=s(ya,"P",{"data-svelte-h":!0}),u(qn)!=="svelte-1bbx2c8"&&(qn.textContent=Gs),ya.forEach(a),_o.forEach(a),Do=o(e),m(mt.$$.fragment,e),Eo=o(e),m(ct.$$.fragment,e),No=o(e),O=s(e,"DIV",{class:!0});var $o=v(O);m(pt.$$.fragment,$o),yr=o($o),Pn=s($o,"P",{"data-svelte-h":!0}),u(Pn)!=="svelte-16uh3p8"&&(Pn.textContent=Ys),wr=o($o),m(he.$$.fragment,$o),$o.forEach(a),Uo=o(e),m(gt.$$.fragment,e),Ro=o(e),k=s(e,"DIV",{class:!0});var I=v(k);m(ht.$$.fragment,I),Tr=o(I),jn=s(I,"P",{"data-svelte-h":!0}),u(jn)!=="svelte-cca4c5"&&(jn.innerHTML=Fs),xr=o(I),Hn=s(I,"UL",{"data-svelte-h":!0}),u(Hn)!=="svelte-1cvtzkm"&&(Hn.innerHTML=Qs),kr=o(I),Jn=s(I,"P",{"data-svelte-h":!0}),u(Jn)!=="svelte-167ytje"&&(Jn.innerHTML=Xs),Cr=o(I),ue=s(I,"DIV",{class:!0});var wa=v(ue);m(ut.$$.fragment,wa),Ir=o(wa),Dn=s(wa,"P",{"data-svelte-h":!0}),u(Dn)!=="svelte-vw7x1q"&&(Dn.innerHTML=Ks),wa.forEach(a),Mr=o(I),F=s(I,"DIV",{class:!0});var yo=v(F);m(ft.$$.fragment,yo),Ar=o(yo),En=s(yo,"P",{"data-svelte-h":!0}),u(En)!=="svelte-yy7b2c"&&(En.textContent=el),Lr=o(yo),m(fe.$$.fragment,yo),yo.forEach(a),qr=o(I),be=s(I,"DIV",{class:!0});var Ta=v(be);m(bt.$$.fragment,Ta),Pr=o(Ta),Nn=s(Ta,"P",{"data-svelte-h":!0}),u(Nn)!=="svelte-184svqt"&&(Nn.innerHTML=tl),Ta.forEach(a),jr=o(I),B=s(I,"DIV",{class:!0});var Je=v(B);m(vt.$$.fragment,Je),Hr=o(Je),Un=s(Je,"P",{"data-svelte-h":!0}),u(Un)!=="svelte-1u3gku9"&&(Un.textContent=nl),Jr=o(Je),Rn=s(Je,"P",{"data-svelte-h":!0}),u(Rn)!=="svelte-1yeagwn"&&(Rn.innerHTML=ol),Dr=o(Je),m(ve.$$.fragment,Je),Je.forEach(a),Er=o(I),V=s(I,"DIV",{class:!0});var De=v(V);m(_t.$$.fragment,De),Nr=o(De),Wn=s(De,"P",{"data-svelte-h":!0}),u(Wn)!=="svelte-19evuwa"&&(Wn.innerHTML=al),Ur=o(De),Bn=s(De,"UL",{"data-svelte-h":!0}),u(Bn)!=="svelte-15of9ze"&&(Bn.innerHTML=rl),Rr=o(De),Vn=s(De,"P",{"data-svelte-h":!0}),u(Vn)!=="svelte-msa4ge"&&(Vn.innerHTML=sl),De.forEach(a),Wr=o(I),_e=s(I,"DIV",{class:!0});var xa=v(_e);m($t.$$.fragment,xa),Br=o(xa),zn=s(xa,"P",{"data-svelte-h":!0}),u(zn)!=="svelte-63kthh"&&(zn.textContent=ll),xa.forEach(a),I.forEach(a),Wo=o(e),m(yt.$$.fragment,e),Bo=o(e),A=s(e,"DIV",{class:!0});var D=v(A);m(wt.$$.fragment,D),Vr=o(D),Sn=s(D,"P",{"data-svelte-h":!0}),u(Sn)!=="svelte-1jgzyq0"&&(Sn.textContent=il),zr=o(D),$e=s(D,"DIV",{class:!0});var ka=v($e);m(Tt.$$.fragment,ka),Sr=o(ka),On=s(ka,"P",{"data-svelte-h":!0}),u(On)!=="svelte-g8q0nk"&&(On.textContent=dl),ka.forEach(a),Or=o(D),ye=s(D,"DIV",{class:!0});var Ca=v(ye);m(xt.$$.fragment,Ca),Zr=o(Ca),Zn=s(Ca,"P",{"data-svelte-h":!0}),u(Zn)!=="svelte-1l2znf2"&&(Zn.textContent=ml),Ca.forEach(a),Gr=o(D),we=s(D,"DIV",{class:!0});var Ia=v(we);m(kt.$$.fragment,Ia),Yr=o(Ia),Gn=s(Ia,"P",{"data-svelte-h":!0}),u(Gn)!=="svelte-165lhg0"&&(Gn.textContent=cl),Ia.forEach(a),Fr=o(D),Te=s(D,"DIV",{class:!0});var Ma=v(Te);m(Ct.$$.fragment,Ma),Qr=o(Ma),Yn=s(Ma,"P",{"data-svelte-h":!0}),u(Yn)!=="svelte-15vkk0u"&&(Yn.textContent=pl),Ma.forEach(a),Xr=o(D),xe=s(D,"DIV",{class:!0});var Aa=v(xe);m(It.$$.fragment,Aa),Kr=o(Aa),Fn=s(Aa,"P",{"data-svelte-h":!0}),u(Fn)!=="svelte-1p64qrs"&&(Fn.textContent=gl),Aa.forEach(a),D.forEach(a),Vo=o(e),m(Mt.$$.fragment,e),zo=o(e),L=s(e,"DIV",{class:!0});var E=v(L);m(At.$$.fragment,E),es=o(E),Qn=s(E,"P",{"data-svelte-h":!0}),u(Qn)!=="svelte-wau0cj"&&(Qn.innerHTML=hl),ts=o(E),Xn=s(E,"UL",{"data-svelte-h":!0}),u(Xn)!=="svelte-1ccblfi"&&(Xn.innerHTML=ul),ns=o(E),ke=s(E,"DIV",{class:!0});var La=v(ke);m(Lt.$$.fragment,La),os=o(La),Kn=s(La,"P",{"data-svelte-h":!0}),u(Kn)!=="svelte-zkjq4t"&&(Kn.innerHTML=fl),La.forEach(a),as=o(E),Ce=s(E,"DIV",{class:!0});var qa=v(Ce);m(qt.$$.fragment,qa),rs=o(qa),eo=s(qa,"P",{"data-svelte-h":!0}),u(eo)!=="svelte-1vxzk80"&&(eo.innerHTML=bl),qa.forEach(a),ss=o(E),Ie=s(E,"DIV",{class:!0});var Pa=v(Ie);m(Pt.$$.fragment,Pa),ls=o(Pa),to=s(Pa,"P",{"data-svelte-h":!0}),u(to)!=="svelte-1qgsi13"&&(to.innerHTML=vl),Pa.forEach(a),is=o(E),Me=s(E,"DIV",{class:!0});var ja=v(Me);m(jt.$$.fragment,ja),ds=o(ja),no=s(ja,"P",{"data-svelte-h":!0}),u(no)!=="svelte-1ojxz66"&&(no.innerHTML=_l),ja.forEach(a),E.forEach(a),So=o(e),m(Ht.$$.fragment,e),Oo=o(e),X=s(e,"DIV",{class:!0});var Ha=v(X);m(Jt.$$.fragment,Ha),ms=o(Ha),oo=s(Ha,"P",{"data-svelte-h":!0}),u(oo)!=="svelte-j4u4it"&&(oo.innerHTML=$l),Ha.forEach(a),Zo=o(e),m(Dt.$$.fragment,e),Go=o(e),U=s(e,"DIV",{class:!0});var Ee=v(U);m(Et.$$.fragment,Ee),cs=o(Ee),ao=s(Ee,"P",{"data-svelte-h":!0}),u(ao)!=="svelte-n5kqzu"&&(ao.textContent=yl),ps=o(Ee),ro=s(Ee,"BLOCKQUOTE",{"data-svelte-h":!0}),u(ro)!=="svelte-1ezz2hf"&&(ro.innerHTML=wl),gs=o(Ee),m(Ae.$$.fragment,Ee),Ee.forEach(a),Yo=o(e),m(Nt.$$.fragment,e),Fo=o(e),Ut=s(e,"P",{"data-svelte-h":!0}),u(Ut)!=="svelte-fy1akl"&&(Ut.textContent=Tl),Qo=o(e),Rt=s(e,"OL",{"data-svelte-h":!0}),u(Rt)!=="svelte-1i7og4h"&&(Rt.innerHTML=xl),Xo=o(e),m(Wt.$$.fragment,e),Ko=o(e),Bt=s(e,"P",{"data-svelte-h":!0}),u(Bt)!=="svelte-x9tzrb"&&(Bt.innerHTML=kl),ea=o(e),m(Vt.$$.fragment,e),ta=o(e),K=s(e,"DIV",{class:!0});var Ja=v(K);m(zt.$$.fragment,Ja),hs=o(Ja),so=s(Ja,"P",{"data-svelte-h":!0}),u(so)!=="svelte-1earq1f"&&(so.textContent=Cl),Ja.forEach(a),na=o(e),m(St.$$.fragment,e),oa=o(e),Ot=s(e,"P",{"data-svelte-h":!0}),u(Ot)!=="svelte-173ylgl"&&(Ot.textContent=Il),aa=o(e),Zt=s(e,"P",{"data-svelte-h":!0}),u(Zt)!=="svelte-1y5sx94"&&(Zt.innerHTML=Ml),ra=o(e),Gt=s(e,"P",{"data-svelte-h":!0}),u(Gt)!=="svelte-1ltzr0s"&&(Gt.textContent=Al),sa=o(e),Yt=s(e,"UL",{"data-svelte-h":!0}),u(Yt)!=="svelte-1iu830u"&&(Yt.innerHTML=Ll),la=o(e),m(Ft.$$.fragment,e),ia=o(e),ee=s(e,"DIV",{class:!0});var Da=v(ee);m(Qt.$$.fragment,Da),us=o(Da),lo=s(Da,"P",{"data-svelte-h":!0}),u(lo)!=="svelte-57fhj7"&&(lo.textContent=ql),Da.forEach(a),da=o(e),m(Xt.$$.fragment,e),ma=o(e),H=s(e,"DIV",{class:!0});var Q=v(H);m(Kt.$$.fragment,Q),fs=o(Q),io=s(Q,"P",{"data-svelte-h":!0}),u(io)!=="svelte-1hsb0qs"&&(io.textContent=Pl),bs=o(Q),Le=s(Q,"DIV",{class:!0});var Ea=v(Le);m(en.$$.fragment,Ea),vs=o(Ea),mo=s(Ea,"P",{"data-svelte-h":!0}),u(mo)!=="svelte-qix5eq"&&(mo.textContent=jl),Ea.forEach(a),_s=o(Q),qe=s(Q,"DIV",{class:!0});var Na=v(qe);m(tn.$$.fragment,Na),$s=o(Na),co=s(Na,"P",{"data-svelte-h":!0}),u(co)!=="svelte-ybie7i"&&(co.textContent=Hl),Na.forEach(a),ys=o(Q),Pe=s(Q,"DIV",{class:!0});var Ua=v(Pe);m(nn.$$.fragment,Ua),ws=o(Ua),po=s(Ua,"P",{"data-svelte-h":!0}),u(po)!=="svelte-chc6sp"&&(po.textContent=Jl),Ua.forEach(a),Q.forEach(a),ca=o(e),m(on.$$.fragment,e),pa=o(e),R=s(e,"DIV",{class:!0});var Ne=v(R);m(an.$$.fragment,Ne),Ts=o(Ne),go=s(Ne,"P",{"data-svelte-h":!0}),u(go)!=="svelte-ckiqb6"&&(go.textContent=Dl),xs=o(Ne),je=s(Ne,"DIV",{class:!0});var Ra=v(je);m(rn.$$.fragment,Ra),ks=o(Ra),ho=s(Ra,"P",{"data-svelte-h":!0}),u(ho)!=="svelte-10rnn1x"&&(ho.innerHTML=El),Ra.forEach(a),Cs=o(Ne),He=s(Ne,"DIV",{class:!0});var Wa=v(He);m(sn.$$.fragment,Wa),Is=o(Wa),uo=s(Wa,"P",{"data-svelte-h":!0}),u(uo)!=="svelte-1xu9o93"&&(uo.textContent=Nl),Wa.forEach(a),Ne.forEach(a),ga=o(e),m(ln.$$.fragment,e),ha=o(e),wo=s(e,"P",{}),v(wo).forEach(a),this.h()},h(){_(f,"name","hf:doc:metadata"),_(f,"content",Kl),_(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(qe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),_(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,l){t(document.head,f),i(e,x,l),i(e,y,l),i(e,w,l),c(T,e,l),i(e,b,l),c(C,e,l),i(e,xo,l),i(e,Ue,l),i(e,ko,l),c(Re,e,l),i(e,Co,l),i(e,We,l),i(e,Io,l),i(e,Be,l),i(e,Mo,l),c(Ve,e,l),i(e,Ao,l),i(e,j,l),c(ze,j,null),t(j,Va),t(j,te),c(Se,te,null),t(te,za),t(te,un),t(j,Sa),t(j,ne),c(Oe,ne,null),t(ne,Oa),t(ne,fn),t(j,Za),t(j,oe),c(Ze,oe,null),t(oe,Ga),t(oe,bn),t(j,Ya),t(j,ae),c(Ge,ae,null),t(ae,Fa),t(ae,vn),i(e,Lo,l),c(Ye,e,l),i(e,qo,l),i(e,N,l),c(Fe,N,null),t(N,Qa),t(N,_n),t(N,Xa),t(N,re),c(Qe,re,null),t(re,Ka),t(re,$n),t(N,er),t(N,G),c(Xe,G,null),t(G,tr),t(G,yn),t(G,nr),c(se,G,null),i(e,Po,l),c(Ke,e,l),i(e,jo,l),i(e,M,l),c(et,M,null),t(M,or),t(M,wn),t(M,ar),t(M,le),c(tt,le,null),t(le,rr),t(le,Tn),t(M,sr),t(M,ie),c(nt,ie,null),t(ie,lr),t(ie,xn),t(M,ir),t(M,de),c(ot,de,null),t(de,dr),t(de,kn),t(M,mr),t(M,Y),c(at,Y,null),t(Y,cr),t(Y,Cn),t(Y,pr),c(me,Y,null),t(M,gr),t(M,ce),c(rt,ce,null),t(ce,hr),t(ce,In),i(e,Ho,l),i(e,z,l),c(st,z,null),t(z,ur),t(z,Mn),t(z,fr),t(z,pe),c(lt,pe,null),t(pe,br),t(pe,An),i(e,Jo,l),i(e,S,l),c(it,S,null),t(S,vr),t(S,Ln),t(S,_r),t(S,ge),c(dt,ge,null),t(ge,$r),t(ge,qn),i(e,Do,l),c(mt,e,l),i(e,Eo,l),c(ct,e,l),i(e,No,l),i(e,O,l),c(pt,O,null),t(O,yr),t(O,Pn),t(O,wr),c(he,O,null),i(e,Uo,l),c(gt,e,l),i(e,Ro,l),i(e,k,l),c(ht,k,null),t(k,Tr),t(k,jn),t(k,xr),t(k,Hn),t(k,kr),t(k,Jn),t(k,Cr),t(k,ue),c(ut,ue,null),t(ue,Ir),t(ue,Dn),t(k,Mr),t(k,F),c(ft,F,null),t(F,Ar),t(F,En),t(F,Lr),c(fe,F,null),t(k,qr),t(k,be),c(bt,be,null),t(be,Pr),t(be,Nn),t(k,jr),t(k,B),c(vt,B,null),t(B,Hr),t(B,Un),t(B,Jr),t(B,Rn),t(B,Dr),c(ve,B,null),t(k,Er),t(k,V),c(_t,V,null),t(V,Nr),t(V,Wn),t(V,Ur),t(V,Bn),t(V,Rr),t(V,Vn),t(k,Wr),t(k,_e),c($t,_e,null),t(_e,Br),t(_e,zn),i(e,Wo,l),c(yt,e,l),i(e,Bo,l),i(e,A,l),c(wt,A,null),t(A,Vr),t(A,Sn),t(A,zr),t(A,$e),c(Tt,$e,null),t($e,Sr),t($e,On),t(A,Or),t(A,ye),c(xt,ye,null),t(ye,Zr),t(ye,Zn),t(A,Gr),t(A,we),c(kt,we,null),t(we,Yr),t(we,Gn),t(A,Fr),t(A,Te),c(Ct,Te,null),t(Te,Qr),t(Te,Yn),t(A,Xr),t(A,xe),c(It,xe,null),t(xe,Kr),t(xe,Fn),i(e,Vo,l),c(Mt,e,l),i(e,zo,l),i(e,L,l),c(At,L,null),t(L,es),t(L,Qn),t(L,ts),t(L,Xn),t(L,ns),t(L,ke),c(Lt,ke,null),t(ke,os),t(ke,Kn),t(L,as),t(L,Ce),c(qt,Ce,null),t(Ce,rs),t(Ce,eo),t(L,ss),t(L,Ie),c(Pt,Ie,null),t(Ie,ls),t(Ie,to),t(L,is),t(L,Me),c(jt,Me,null),t(Me,ds),t(Me,no),i(e,So,l),c(Ht,e,l),i(e,Oo,l),i(e,X,l),c(Jt,X,null),t(X,ms),t(X,oo),i(e,Zo,l),c(Dt,e,l),i(e,Go,l),i(e,U,l),c(Et,U,null),t(U,cs),t(U,ao),t(U,ps),t(U,ro),t(U,gs),c(Ae,U,null),i(e,Yo,l),c(Nt,e,l),i(e,Fo,l),i(e,Ut,l),i(e,Qo,l),i(e,Rt,l),i(e,Xo,l),c(Wt,e,l),i(e,Ko,l),i(e,Bt,l),i(e,ea,l),c(Vt,e,l),i(e,ta,l),i(e,K,l),c(zt,K,null),t(K,hs),t(K,so),i(e,na,l),c(St,e,l),i(e,oa,l),i(e,Ot,l),i(e,aa,l),i(e,Zt,l),i(e,ra,l),i(e,Gt,l),i(e,sa,l),i(e,Yt,l),i(e,la,l),c(Ft,e,l),i(e,ia,l),i(e,ee,l),c(Qt,ee,null),t(ee,us),t(ee,lo),i(e,da,l),c(Xt,e,l),i(e,ma,l),i(e,H,l),c(Kt,H,null),t(H,fs),t(H,io),t(H,bs),t(H,Le),c(en,Le,null),t(Le,vs),t(Le,mo),t(H,_s),t(H,qe),c(tn,qe,null),t(qe,$s),t(qe,co),t(H,ys),t(H,Pe),c(nn,Pe,null),t(Pe,ws),t(Pe,po),i(e,ca,l),c(on,e,l),i(e,pa,l),i(e,R,l),c(an,R,null),t(R,Ts),t(R,go),t(R,xs),t(R,je),c(rn,je,null),t(je,ks),t(je,ho),t(R,Cs),t(R,He),c(sn,He,null),t(He,Is),t(He,uo),i(e,ga,l),c(ln,e,l),i(e,ha,l),i(e,wo,l),ua=!0},p(e,[l]){const W={};l&2&&(W.$$scope={dirty:l,ctx:e}),C.$set(W);const dn={};l&2&&(dn.$$scope={dirty:l,ctx:e}),se.$set(dn);const mn={};l&2&&(mn.$$scope={dirty:l,ctx:e}),me.$set(mn);const cn={};l&2&&(cn.$$scope={dirty:l,ctx:e}),he.$set(cn);const pn={};l&2&&(pn.$$scope={dirty:l,ctx:e}),fe.$set(pn);const Z={};l&2&&(Z.$$scope={dirty:l,ctx:e}),ve.$set(Z);const gn={};l&2&&(gn.$$scope={dirty:l,ctx:e}),Ae.$set(gn)},i(e){ua||(p(T.$$.fragment,e),p(C.$$.fragment,e),p(Re.$$.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(Xe.$$.fragment,e),p(se.$$.fragment,e),p(Ke.$$.fragment,e),p(et.$$.fragment,e),p(tt.$$.fragment,e),p(nt.$$.fragment,e),p(ot.$$.fragment,e),p(at.$$.fragment,e),p(me.$$.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(pt.$$.fragment,e),p(he.$$.fragment,e),p(gt.$$.fragment,e),p(ht.$$.fragment,e),p(ut.$$.fragment,e),p(ft.$$.fragment,e),p(fe.$$.fragment,e),p(bt.$$.fragment,e),p(vt.$$.fragment,e),p(ve.$$.fragment,e),p(_t.$$.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(Ht.$$.fragment,e),p(Jt.$$.fragment,e),p(Dt.$$.fragment,e),p(Et.$$.fragment,e),p(Ae.$$.fragment,e),p(Nt.$$.fragment,e),p(Wt.$$.fragment,e),p(Vt.$$.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),ua=!0)},o(e){g(T.$$.fragment,e),g(C.$$.fragment,e),g(Re.$$.fragment,e),g(Ve.$$.fragment,e),g(ze.$$.fragment,e),g(Se.$$.fragment,e),g(Oe.$$.fragment,e),g(Ze.$$.fragment,e),g(Ge.$$.fragment,e),g(Ye.$$.fragment,e),g(Fe.$$.fragment,e),g(Qe.$$.fragment,e),g(Xe.$$.fragment,e),g(se.$$.fragment,e),g(Ke.$$.fragment,e),g(et.$$.fragment,e),g(tt.$$.fragment,e),g(nt.$$.fragment,e),g(ot.$$.fragment,e),g(at.$$.fragment,e),g(me.$$.fragment,e),g(rt.$$.fragment,e),g(st.$$.fragment,e),g(lt.$$.fragment,e),g(it.$$.fragment,e),g(dt.$$.fragment,e),g(mt.$$.fragment,e),g(ct.$$.fragment,e),g(pt.$$.fragment,e),g(he.$$.fragment,e),g(gt.$$.fragment,e),g(ht.$$.fragment,e),g(ut.$$.fragment,e),g(ft.$$.fragment,e),g(fe.$$.fragment,e),g(bt.$$.fragment,e),g(vt.$$.fragment,e),g(ve.$$.fragment,e),g(_t.$$.fragment,e),g($t.$$.fragment,e),g(yt.$$.fragment,e),g(wt.$$.fragment,e),g(Tt.$$.fragment,e),g(xt.$$.fragment,e),g(kt.$$.fragment,e),g(Ct.$$.fragment,e),g(It.$$.fragment,e),g(Mt.$$.fragment,e),g(At.$$.fragment,e),g(Lt.$$.fragment,e),g(qt.$$.fragment,e),g(Pt.$$.fragment,e),g(jt.$$.fragment,e),g(Ht.$$.fragment,e),g(Jt.$$.fragment,e),g(Dt.$$.fragment,e),g(Et.$$.fragment,e),g(Ae.$$.fragment,e),g(Nt.$$.fragment,e),g(Wt.$$.fragment,e),g(Vt.$$.fragment,e),g(zt.$$.fragment,e),g(St.$$.fragment,e),g(Ft.$$.fragment,e),g(Qt.$$.fragment,e),g(Xt.$$.fragment,e),g(Kt.$$.fragment,e),g(en.$$.fragment,e),g(tn.$$.fragment,e),g(nn.$$.fragment,e),g(on.$$.fragment,e),g(an.$$.fragment,e),g(rn.$$.fragment,e),g(sn.$$.fragment,e),g(ln.$$.fragment,e),ua=!1},d(e){e&&(a(x),a(y),a(w),a(b),a(xo),a(Ue),a(ko),a(Co),a(We),a(Io),a(Be),a(Mo),a(Ao),a(j),a(Lo),a(qo),a(N),a(Po),a(jo),a(M),a(Ho),a(z),a(Jo),a(S),a(Do),a(Eo),a(No),a(O),a(Uo),a(Ro),a(k),a(Wo),a(Bo),a(A),a(Vo),a(zo),a(L),a(So),a(Oo),a(X),a(Zo),a(Go),a(U),a(Yo),a(Fo),a(Ut),a(Qo),a(Rt),a(Xo),a(Ko),a(Bt),a(ea),a(ta),a(K),a(na),a(oa),a(Ot),a(aa),a(Zt),a(ra),a(Gt),a(sa),a(Yt),a(la),a(ia),a(ee),a(da),a(ma),a(H),a(ca),a(pa),a(R),a(ga),a(ha),a(wo)),a(f),h(T,e),h(C,e),h(Re,e),h(Ve,e),h(ze),h(Se),h(Oe),h(Ze),h(Ge),h(Ye,e),h(Fe),h(Qe),h(Xe),h(se),h(Ke,e),h(et),h(tt),h(nt),h(ot),h(at),h(me),h(rt),h(st),h(lt),h(it),h(dt),h(mt,e),h(ct,e),h(pt),h(he),h(gt,e),h(ht),h(ut),h(ft),h(fe),h(bt),h(vt),h(ve),h(_t),h($t),h(yt,e),h(wt),h(Tt),h(xt),h(kt),h(Ct),h(It),h(Mt,e),h(At),h(Lt),h(qt),h(Pt),h(jt),h(Ht,e),h(Jt),h(Dt,e),h(Et),h(Ae),h(Nt,e),h(Wt,e),h(Vt,e),h(zt),h(St,e),h(Ft,e),h(Qt),h(Xt,e),h(Kt),h(en),h(tn),h(nn),h(on,e),h(an),h(rn),h(sn),h(ln,e)}}}const Kl='{"title":"에이전트 & 도구","local":"agents-tools","sections":[{"title":"에이전트","local":"agents","sections":[{"title":"Agent","local":"agent ][ transformers.Agent","sections":[],"depth":3},{"title":"CodeAgent","local":"codeagent ][ transformers.CodeAgent","sections":[],"depth":3},{"title":"React agents","local":"react-agents ][ transformers.ReactAgent","sections":[],"depth":3}],"depth":2},{"title":"Tools","local":"tools","sections":[{"title":"load_tool","local":"loadtool ][ transformers.load_tool","sections":[],"depth":3},{"title":"Tool","local":"tool ][ transformers.Tool","sections":[],"depth":3},{"title":"Toolbox","local":"toolbox ][ transformers.Toolbox","sections":[],"depth":3},{"title":"PipelineTool","local":"pipelinetool ][ transformers.PipelineTool","sections":[],"depth":3},{"title":"launch_gradio_demo","local":"launchgradiodemo ][ transformers.launch_gradio_demo","sections":[],"depth":3},{"title":"ToolCollection","local":"toolcollection ][ transformers.ToolCollection","sections":[],"depth":3}],"depth":2},{"title":"엔진","local":"engines","sections":[{"title":"HfApiEngine","local":"HfApiEngine ][ transformers.HfApiEngine","sections":[],"depth":3}],"depth":2},{"title":"에이전트 유형","local":"agent-types","sections":[{"title":"AgentText","local":"agenttext ][ transformers.agents.agent_types.AgentText","sections":[],"depth":3},{"title":"AgentImage","local":"agentimage ][ transformers.agents.agent_types.AgentImage","sections":[],"depth":3},{"title":"AgentAudio","local":"agentaudio ][ transformers.agents.agent_types.AgentAudio","sections":[],"depth":3}],"depth":2}],"depth":1}';function ei(P){return Rl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class li extends Wl{constructor(f){super(),Bl(this,f,ei,Xl,Ul,{})}}export{li as component};

Xet Storage Details

Size:
104 kB
·
Xet hash:
71ed5d935a0df5a131bf486e53735cea13a9dfb7a4ae4acd41a11816b232e3fa

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.