Buckets:

rtrm's picture
download
raw
86.1 kB
import{s as Kl,o as ei,n as ne}from"../chunks/scheduler.bdbef820.js";import{S as ti,i as oi,g as s,s as o,r as m,A as ni,h as a,f as r,c as n,j as _,u as d,x as $,k as y,y as t,a as i,v as p,d as g,t as c,w as f}from"../chunks/index.33f81d56.js";import{T as Ra}from"../chunks/Tip.34194030.js";import{D as x}from"../chunks/Docstring.64554317.js";import{C as yo}from"../chunks/CodeBlock.362b34a4.js";import{E as Ln}from"../chunks/ExampleCodeBlock.4f2252c6.js";import{H as J,E as ri}from"../chunks/EditOnGithub.a9246e21.js";function si(I){let u,T=`Transformers Agent는 실험 중인 API이므로 언제든지 변경될 수 있습니다.
API나 기반 모델이 자주 업데이트되므로, 에이전트가 제공하는 결과물은 달라질 수 있습니다.`;return{c(){u=s("p"),u.textContent=T},l(b){u=a(b,"P",{"data-svelte-h":!0}),$(u)!=="svelte-1kfd8kh"&&(u.textContent=T)},m(b,v){i(b,u,v)},p:ne,d(b){b&&r(u)}}}function ai(I){let u,T="Example:",b,v,w;return v=new yo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5hZ2VudHMlMjBpbXBvcnQlMjBDb2RlQWdlbnQlMEElMEFhZ2VudCUyMCUzRCUyMENvZGVBZ2VudCh0b29scyUzRCU1QiU1RCklMEFhZ2VudC5ydW4oJTIyV2hhdCUyMGlzJTIwdGhlJTIwcmVzdWx0JTIwb2YlMjAyJTIwcG93ZXIlMjAzLjczODQlM0YlMjIp",highlighted:`<span class="hljs-keyword">from</span> transformers.agents <span class="hljs-keyword">import</span> CodeAgent
agent = CodeAgent(tools=[])
agent.run(<span class="hljs-string">&quot;What is the result of 2 power 3.7384?&quot;</span>)`,wrap:!1}}),{c(){u=s("p"),u.textContent=T,b=o(),m(v.$$.fragment)},l(h){u=a(h,"P",{"data-svelte-h":!0}),$(u)!=="svelte-11lpom8"&&(u.textContent=T),b=n(h),d(v.$$.fragment,h)},m(h,C){i(h,u,C),i(h,b,C),p(v,h,C),w=!0},p:ne,i(h){w||(g(v.$$.fragment,h),w=!0)},o(h){c(v.$$.fragment,h),w=!1},d(h){h&&(r(u),r(b)),f(v,h)}}}function li(I){let u,T="Example:",b,v,w;return v=new yo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycy5hZ2VudHMlMjBpbXBvcnQlMjBSZWFjdENvZGVBZ2VudCUwQWFnZW50JTIwJTNEJTIwUmVhY3RDb2RlQWdlbnQodG9vbHMlM0QlNUIlNUQpJTBBYWdlbnQucnVuKCUyMldoYXQlMjBpcyUyMHRoZSUyMHJlc3VsdCUyMG9mJTIwMiUyMHBvd2VyJTIwMy43Mzg0JTNGJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers.agents <span class="hljs-keyword">import</span> ReactCodeAgent
agent = ReactCodeAgent(tools=[])
agent.run(<span class="hljs-string">&quot;What is the result of 2 power 3.7384?&quot;</span>)`,wrap:!1}}),{c(){u=s("p"),u.textContent=T,b=o(),m(v.$$.fragment)},l(h){u=a(h,"P",{"data-svelte-h":!0}),$(u)!=="svelte-11lpom8"&&(u.textContent=T),b=n(h),d(v.$$.fragment,h)},m(h,C){i(h,u,C),i(h,b,C),p(v,h,C),w=!0},p:ne,i(h){w||(g(v.$$.fragment,h),w=!0)},o(h){c(v.$$.fragment,h),w=!1},d(h){h&&(r(u),r(b)),f(v,h)}}}function ii(I){let u,T=`Loading a tool means that you’ll download the tool and execute it locally.
ALWAYS inspect the tool you’re downloading before loading it within your runtime, as you would do when
installing a package using pip/npm/apt.`;return{c(){u=s("p"),u.textContent=T},l(b){u=a(b,"P",{"data-svelte-h":!0}),$(u)!=="svelte-1kcherd"&&(u.textContent=T)},m(b,v){i(b,u,v)},p:ne,d(b){b&&r(u)}}}function mi(I){let u,T=`Loading a tool from the Hub means that you’ll download the tool and execute it locally.
ALWAYS inspect the tool you’re downloading before loading it within your runtime, as you would do when
installing a package using pip/npm/apt.`;return{c(){u=s("p"),u.textContent=T},l(b){u=a(b,"P",{"data-svelte-h":!0}),$(u)!=="svelte-fpk7e5"&&(u.textContent=T)},m(b,v){i(b,u,v)},p:ne,d(b){b&&r(u)}}}function di(I){let u,T="Examples:",b,v,w;return v=new yo({props:{code:"aW1hZ2VfZ2VuZXJhdG9yJTIwJTNEJTIwVG9vbC5mcm9tX3NwYWNlKCUwQSUyMCUyMCUyMCUyMHNwYWNlX2lkJTNEJTIyYmxhY2stZm9yZXN0LWxhYnMlMkZGTFVYLjEtc2NobmVsbCUyMiUyQyUwQSUyMCUyMCUyMCUyMG5hbWUlM0QlMjJpbWFnZS1nZW5lcmF0b3IlMjIlMkMlMEElMjAlMjAlMjAlMjBkZXNjcmlwdGlvbiUzRCUyMkdlbmVyYXRlJTIwYW4lMjBpbWFnZSUyMGZyb20lMjBhJTIwcHJvbXB0JTIyJTBBKSUwQWltYWdlJTIwJTNEJTIwaW1hZ2VfZ2VuZXJhdG9yKCUyMkdlbmVyYXRlJTIwYW4lMjBpbWFnZSUyMG9mJTIwYSUyMGNvb2wlMjBzdXJmZXIlMjBpbiUyMFRhaGl0aSUyMik=",highlighted:`image_generator = Tool.from_space(
<span class="hljs-attribute">space_id</span>=<span class="hljs-string">&quot;black-forest-labs/FLUX.1-schnell&quot;</span>,
<span class="hljs-attribute">name</span>=<span class="hljs-string">&quot;image-generator&quot;</span>,
<span class="hljs-attribute">description</span>=<span class="hljs-string">&quot;Generate an image from a prompt&quot;</span>
)
image = image_generator(<span class="hljs-string">&quot;Generate an image of a cool surfer in Tahiti&quot;</span>)`,wrap:!1}}),{c(){u=s("p"),u.textContent=T,b=o(),m(v.$$.fragment)},l(h){u=a(h,"P",{"data-svelte-h":!0}),$(u)!=="svelte-kvfsh7"&&(u.textContent=T),b=n(h),d(v.$$.fragment,h)},m(h,C){i(h,u,C),i(h,b,C),p(v,h,C),w=!0},p:ne,i(h){w||(g(v.$$.fragment,h),w=!0)},o(h){c(v.$$.fragment,h),w=!1},d(h){h&&(r(u),r(b)),f(v,h)}}}function pi(I){let u,T;return u=new yo({props:{code:"ZmFjZV9zd2FwcGVyJTIwJTNEJTIwVG9vbC5mcm9tX3NwYWNlKCUwQSUyMCUyMCUyMCUyMCUyMnR1YW4yMzA4JTJGZmFjZS1zd2FwJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyZmFjZV9zd2FwcGVyJTIyJTJDJTBBJTIwJTIwJTIwJTIwJTIyVG9vbCUyMHRoYXQlMjBwdXRzJTIwdGhlJTIwZmFjZSUyMHNob3duJTIwb24lMjB0aGUlMjBmaXJzdCUyMGltYWdlJTIwb24lMjB0aGUlMjBzZWNvbmQlMjBpbWFnZS4lMjBZb3UlMjBjYW4lMjBnaXZlJTIwaXQlMjBwYXRocyUyMHRvJTIwaW1hZ2VzLiUyMiUyQyUwQSklMEFpbWFnZSUyMCUzRCUyMGZhY2Vfc3dhcHBlcignLiUyRmF5bWVyaWMuanBlZyclMkMlMjAnLiUyRnJ1dGguanBnJyk=",highlighted:`face_swapper = <span class="hljs-type">Tool</span>.from_space(
<span class="hljs-comment">&quot;tuan2308/face-swap&quot;</span>,
<span class="hljs-comment">&quot;face_swapper&quot;</span>,
<span class="hljs-comment">&quot;Tool that puts the face shown on the first image on the second image. You can give it paths to images.&quot;</span>,
)
image = face_swapper(<span class="hljs-string">&#x27;./aymeric.jpeg&#x27;</span>, <span class="hljs-string">&#x27;./ruth.jpg&#x27;</span>)`,wrap:!1}}),{c(){m(u.$$.fragment)},l(b){d(u.$$.fragment,b)},m(b,v){p(u,b,v),T=!0},p:ne,i(b){T||(g(u.$$.fragment,b),T=!0)},o(b){c(u.$$.fragment,b),T=!1},d(b){f(u,b)}}}function gi(I){let u,T="For instance:",b,v,w;return v=new yo({props:{code:"ZnJvbSUyMG15X3Rvb2xfbW9kdWxlJTIwaW1wb3J0JTIwTXlUb29sJTBBbXlfdG9vbCUyMCUzRCUyME15VG9vbCgpJTBBbXlfdG9vbC5wdXNoX3RvX2h1YiglMjJteS11c2VybmFtZSUyRm15LXNwYWNlJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> my_tool_module <span class="hljs-keyword">import</span> MyTool
my_tool = MyTool()
my_tool.push_to_hub(<span class="hljs-string">&quot;my-username/my-space&quot;</span>)`,wrap:!1}}),{c(){u=s("p"),u.textContent=T,b=o(),m(v.$$.fragment)},l(h){u=a(h,"P",{"data-svelte-h":!0}),$(u)!=="svelte-4vay6o"&&(u.textContent=T),b=n(h),d(v.$$.fragment,h)},m(h,C){i(h,u,C),i(h,b,C),p(v,h,C),w=!0},p:ne,i(h){w||(g(v.$$.fragment,h),w=!0)},o(h){c(v.$$.fragment,h),w=!1},d(h){h&&(r(u),r(b)),f(v,h)}}}function ci(I){let u,T="Example:",b,v,w;return v=new yo({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMFRvb2xDb2xsZWN0aW9uJTJDJTIwUmVhY3RDb2RlQWdlbnQlMEElMEFpbWFnZV90b29sX2NvbGxlY3Rpb24lMjAlM0QlMjBUb29sQ29sbGVjdGlvbihjb2xsZWN0aW9uX3NsdWclM0QlMjJodWdnaW5nZmFjZS10b29scyUyRmRpZmZ1c2lvbi10b29scy02NjMwYmIxOWE5NDJjMjMwNmEyY2RiNmYlMjIpJTBBYWdlbnQlMjAlM0QlMjBSZWFjdENvZGVBZ2VudCh0b29scyUzRCU1QippbWFnZV90b29sX2NvbGxlY3Rpb24udG9vbHMlNUQlMkMlMjBhZGRfYmFzZV90b29scyUzRFRydWUpJTBBJTBBYWdlbnQucnVuKCUyMlBsZWFzZSUyMGRyYXclMjBtZSUyMGElMjBwaWN0dXJlJTIwb2YlMjByaXZlcnMlMjBhbmQlMjBsYWtlcy4lMjIp",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> ToolCollection, ReactCodeAgent
<span class="hljs-meta">&gt;&gt;&gt; </span>image_tool_collection = ToolCollection(collection_slug=<span class="hljs-string">&quot;huggingface-tools/diffusion-tools-6630bb19a942c2306a2cdb6f&quot;</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>agent = ReactCodeAgent(tools=[*image_tool_collection.tools], add_base_tools=<span class="hljs-literal">True</span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>agent.run(<span class="hljs-string">&quot;Please draw me a picture of rivers and lakes.&quot;</span>)`,wrap:!1}}),{c(){u=s("p"),u.textContent=T,b=o(),m(v.$$.fragment)},l(h){u=a(h,"P",{"data-svelte-h":!0}),$(u)!=="svelte-11lpom8"&&(u.textContent=T),b=n(h),d(v.$$.fragment,h)},m(h,C){i(h,u,C),i(h,b,C),p(v,h,C),w=!0},p:ne,i(h){w||(g(v.$$.fragment,h),w=!0)},o(h){c(v.$$.fragment,h),w=!1},d(h){h&&(r(u),r(b)),f(v,h)}}}function fi(I){let u,T,b,v,w,h,C,Un,ze,qa=`에이전트와 도구에 대해 더 알아보려면 <a href="../transformers_agents">소개 가이드</a>를 꼭 읽어보세요.
이 페이지에는 기본 클래스에 대한 API 문서가 포함되어 있습니다.`,Pn,Fe,Hn,Ge,Za='우리는 기본 <a href="/docs/transformers/pr_35339/ko/main_classes/agent#transformers.Agent">Agent</a> 클래스를 기반으로 두 가지 유형의 에이전트를 제공합니다:',En,Se,Wa='<li><a href="/docs/transformers/pr_35339/ko/main_classes/agent#transformers.CodeAgent">CodeAgent</a>는 한 번에 동작합니다. 작업을 해결하기 위해 코드를 생성한 다음, 바로 실행합니다.</li> <li><a href="/docs/transformers/pr_35339/ko/main_classes/agent#transformers.ReactAgent">ReactAgent</a>는 단계별로 동작하며, 각 단계는 하나의 생각, 하나의 도구 호출 및 실행으로 구성됩니다. 이 에이전트에는 두 가지 클래스가 있습니다:<ul><li><a href="/docs/transformers/pr_35339/ko/main_classes/agent#transformers.ReactJsonAgent">ReactJsonAgent</a>는 도구 호출을 JSON으로 작성합니다.</li> <li><a href="/docs/transformers/pr_35339/ko/main_classes/agent#transformers.ReactCodeAgent">ReactCodeAgent</a>는 도구 호출을 Python 코드로 작성합니다.</li></ul></li>',Nn,Qe,Vn,P,Oe,Or,re,Ye,Yr,xo,Ba=`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.`,Xr,se,Xe,Kr,To,za="Parse action from the LLM output",es,ae,Ke,ts,wo,Fa="To be implemented in the child class",os,le,et,ns,Co,Ga=`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.`,Dn,tt,Rn,V,ot,rs,Mo,Sa="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.",ss,ie,nt,as,ko,Qa=`Override this method if you want to change the way the code is
cleaned in the <code>run</code> method.`,ls,O,rt,is,Io,Oa="Runs the agent for the given task.",ms,me,qn,st,Zn,A,at,ds,Ao,Ya=`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.`,ps,de,lt,gs,jo,Xa="Runs the agent in direct mode, returning outputs only at the end: should be launched only in the <code>run</code> method.",cs,pe,it,fs,Lo,Ka="Used periodically by the agent to plan the next steps to reach the objective.",us,ge,mt,hs,Jo,el="This method provides a final answer to the task, based on the logs of the agent’s interactions.",$s,Y,dt,bs,Uo,tl="Runs the agent for the given task.",vs,ce,_s,fe,pt,ys,Po,ol="Runs the agent in streaming mode, yielding steps as they are executed: should be launched only in the <code>run</code> method.",Wn,z,gt,xs,Ho,nl=`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.`,Ts,ue,ct,ws,Eo,rl=`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.`,Bn,F,ft,Cs,No,sl=`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.`,Ms,he,ut,ks,Vo,al=`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.`,zn,ht,Fn,$t,Gn,G,bt,Is,Do,ll="Main function to quickly load a tool, be it on the Hub or in the Transformers library.",As,$e,Sn,vt,Qn,M,_t,js,Ro,il=`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:`,Ls,qo,ml=`<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>`,Js,Zo,dl=`You can also override the method <a href="/docs/transformers/pr_35339/ko/main_classes/agent#transformers.Tool.setup">setup()</a> if your tool as an expensive operation to perform before being
usable (such as loading a model). <a href="/docs/transformers/pr_35339/ko/main_classes/agent#transformers.Tool.setup">setup()</a> will be called the first time you use your tool, but not at
instantiation.`,Us,be,yt,Ps,Wo,pl='Creates a <a href="/docs/transformers/pr_35339/ko/main_classes/agent#transformers.Tool">Tool</a> from a gradio tool.',Hs,X,xt,Es,Bo,gl="Loads a tool defined on the Hub.",Ns,ve,Vs,_e,Tt,Ds,zo,cl='Creates a <a href="/docs/transformers/pr_35339/ko/main_classes/agent#transformers.Tool">Tool</a> from a langchain tool.',Rs,Z,wt,qs,Fo,fl='Creates a <a href="/docs/transformers/pr_35339/ko/main_classes/agent#transformers.Tool">Tool</a> from a Space given its id on the Hub.',Zs,ye,Ws,xe,Bs,W,Ct,zs,Go,ul="Upload the tool to the Hub.",Fs,So,hl="For this method to work properly, your tool must have been defined in a separate module (not <code>__main__</code>).",Gs,Te,Ss,B,Mt,Qs,Qo,$l=`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:`,Os,Oo,bl=`<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>`,Ys,Yo,vl="You should only use this method to save tools that are defined in a separate module (not <code>__main__</code>).",Xs,we,kt,Ks,Xo,_l=`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.`,On,It,Yn,j,At,ea,Ko,yl=`The toolbox contains all tools that the agent can perform operations with, as well as a few methods to
manage them.`,ta,Ce,jt,oa,en,xl="Adds a tool to the toolbox",na,Me,Lt,ra,tn,Tl="Clears the toolbox",sa,ke,Jt,aa,on,wl="Removes a tool from the toolbox",la,Ie,Ut,ia,nn,Cl="Returns the description of all tools in the toolbox",ma,Ae,Pt,da,rn,Ml="Updates a tool in the toolbox according to its name.",Xn,Ht,Kn,L,Et,pa,sn,kl=`A <a href="/docs/transformers/pr_35339/ko/main_classes/agent#transformers.Tool">Tool</a> tailored towards Transformer models. On top of the class attributes of the base class <a href="/docs/transformers/pr_35339/ko/main_classes/agent#transformers.Tool">Tool</a>, you will
need to specify:`,ga,an,Il=`<li><strong>model_class</strong> (<code>type</code>) — The class to use to load the model in this tool.</li> <li><strong>default_checkpoint</strong> (<code>str</code>) — The default checkpoint that should be used when the user doesn’t specify one.</li> <li><strong>pre_processor_class</strong> (<code>type</code>, <em>optional</em>, defaults to <a href="/docs/transformers/pr_35339/ko/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a>) — The class to use to load the
pre-processor</li> <li><strong>post_processor_class</strong> (<code>type</code>, <em>optional</em>, defaults to <a href="/docs/transformers/pr_35339/ko/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a>) — The class to use to load the
post-processor (when different from the pre-processor).</li>`,ca,je,Nt,fa,ln,Al="Uses the <code>post_processor</code> to decode the model output.",ua,Le,Vt,ha,mn,jl="Uses the <code>pre_processor</code> to prepare the inputs for the <code>model</code>.",$a,Je,Dt,ba,dn,Ll="Sends the inputs through the <code>model</code>.",va,Ue,Rt,_a,pn,Jl="Instantiates the <code>pre_processor</code>, <code>model</code> and <code>post_processor</code> if necessary.",er,qt,tr,ee,Zt,ya,gn,Ul=`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>.`,or,Wt,nr,D,Bt,xa,cn,Pl="Tool collections enable loading all Spaces from a collection in order to be added to the agent’s toolbox.",Ta,fn,Hl=`<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>`,wa,Pe,rr,zt,sr,Ft,El=`에이전트 프레임워크에서 사용할 수 있는 엔진을 자유롭게 만들고 사용할 수 있습니다.
이 엔진들은 다음과 같은 사양을 가지고 있습니다:`,ar,Gt,Nl='<li>입력(<code>List[Dict[str, str]]</code>)에 대한 <a href="../chat_templating.md">메시지 형식</a>을 따르고 문자열을 반환해야 합니다.</li> <li>인수 <code>stop_sequences</code>에 시퀀스가 전달되기 <em>전에</em> 출력을 생성하는 것을 중지해야 합니다.</li>',lr,St,ir,Qt,Vl="편의를 위해, 위의 사항을 구현하고 대규모 언어 모델 실행을 위해 추론 엔드포인트를 사용하는 <code>HfApiEngine</code>을 추가했습니다.",mr,Ot,dr,S,Yt,Ca,un,Dl="A class to interact with Hugging Face’s Inference API for language model interaction.",Ma,hn,Rl="This engine allows you to communicate with Hugging Face’s models using the Inference API. It can be used in both serverless mode or with a dedicated endpoint, supporting features like stop sequences and grammar customization.",pr,Xt,gr,Kt,ql=`에이전트는 도구 간의 모든 유형의 객체를 처리할 수 있습니다; 도구는 완전히 멀티모달이므로 텍스트, 이미지, 오디오, 비디오 등 다양한 유형을 수락하고 반환할 수 있습니다.
도구 간의 호환성을 높이고 ipython (jupyter, colab, ipython 노트북, …)에서 이러한
반환 값을 올바르게 렌더링하기 위해 이러한 유형을 중심으로 래퍼 클래스를
구현합니다.`,cr,eo,Zl=`래핑된 객체는 처음과 동일하게 작동해야 합니다; 텍스트 객체는 여전히 문자열로 작동해야 하며,
이미지 객체는 여전히 <code>PIL.Image</code>로 작동해야 합니다.`,fr,to,Wl="이러한 유형에는 세 가지 특정 목적이 있습니다:",ur,oo,Bl=`<li><code>to_raw</code>를 호출하면 기본 객체가 반환되어야 합니다.</li> <li><code>to_string</code>을 호출하면 객체가 문자열로 반환되어야 합니다:
<code>AgentText</code>의 경우 문자열이 될 수 있지만, 다른 경우에는 객체의 직렬화된 버전의 경로일 수 있습니다.</li> <li>ipython 커널에서 표시할 때 객체가 올바르게 표시되어야 합니다.</li>`,hr,no,$r,te,ro,ka,$n,zl="Text type returned by the agent. Behaves as a string.",br,so,vr,H,ao,Ia,bn,Fl="Image type returned by the agent. Behaves as a PIL.Image.",Aa,He,lo,ja,vn,Gl="Saves the image to a file.",La,Ee,io,Ja,_n,Sl="Returns the “raw” version of that object. In the case of an AgentImage, it is a PIL.Image.",Ua,Ne,mo,Pa,yn,Ql=`Returns the stringified version of that object. In the case of an AgentImage, it is a path to the serialized
version of the image.`,_r,po,yr,R,go,Ha,xn,Ol="Audio type returned by the agent.",Ea,Ve,co,Na,Tn,Yl="Returns the “raw” version of that object. It is a <code>torch.Tensor</code> object.",Va,De,fo,Da,wn,Xl=`Returns the stringified version of that object. In the case of an AgentAudio, it is a path to the serialized
version of the audio.`,xr,uo,Tr,Jn,wr;return w=new J({props:{title:"에이전트 & 도구",local:"agents-tools",headingTag:"h1"}}),C=new Ra({props:{warning:!0,$$slots:{default:[si]},$$scope:{ctx:I}}}),Fe=new J({props:{title:"에이전트",local:"agents",headingTag:"h2"}}),Qe=new J({props:{title:"Agent",local:"agent ][ transformers.Agent",headingTag:"h3"}}),Oe=new x({props:{name:"class transformers.Agent",anchor:"transformers.Agent",parameters:[{name:"tools",val:": typing.Union[typing.List[transformers.agents.tools.Tool], transformers.agents.agents.Toolbox]"},{name:"llm_engine",val:": typing.Callable = None"},{name:"system_prompt",val:": typing.Optional[str] = None"},{name:"tool_description_template",val:": typing.Optional[str] = None"},{name:"additional_args",val:": typing.Dict = {}"},{name:"max_iterations",val:": int = 6"},{name:"tool_parser",val:": typing.Optional[typing.Callable] = None"},{name:"add_base_tools",val:": bool = False"},{name:"verbose",val:": int = 0"},{name:"grammar",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"managed_agents",val:": typing.Optional[typing.List] = None"},{name:"step_callbacks",val:": typing.Optional[typing.List[typing.Callable]] = None"},{name:"monitor_metrics",val:": bool = True"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L354"}}),Ye=new x({props:{name:"execute_tool_call",anchor:"transformers.Agent.execute_tool_call",parameters:[{name:"tool_name",val:": str"},{name:"arguments",val:": typing.Dict[str, str]"}],parametersDescription:[{anchor:"transformers.Agent.execute_tool_call.tool_name",description:"<strong>tool_name</strong> (<code>str</code>) &#x2014; Name of the Tool to execute (should be one from self.toolbox).",name:"tool_name"},{anchor:"transformers.Agent.execute_tool_call.arguments",description:"<strong>arguments</strong> (Dict[str, str]) &#x2014; Arguments passed to the Tool.",name:"arguments"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L530"}}),Xe=new x({props:{name:"extract_action",anchor:"transformers.Agent.extract_action",parameters:[{name:"llm_output",val:": str"},{name:"split_token",val:": str"}],parametersDescription:[{anchor:"transformers.Agent.extract_action.llm_output",description:"<strong>llm_output</strong> (<code>str</code>) &#x2014; Output of the LLM",name:"llm_output"},{anchor:"transformers.Agent.extract_action.split_token",description:"<strong>split_token</strong> (<code>str</code>) &#x2014; Separator for the action. Should match the example in the system prompt.",name:"split_token"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L509"}}),Ke=new x({props:{name:"run",anchor:"transformers.Agent.run",parameters:[{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L585"}}),et=new x({props:{name:"write_inner_memory_from_logs",anchor:"transformers.Agent.write_inner_memory_from_logs",parameters:[{name:"summary_mode",val:": typing.Optional[bool] = False"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L449"}}),tt=new J({props:{title:"CodeAgent",local:"codeagent ][ transformers.CodeAgent",headingTag:"h3"}}),ot=new x({props:{name:"class transformers.CodeAgent",anchor:"transformers.CodeAgent",parameters:[{name:"tools",val:": typing.List[transformers.agents.tools.Tool]"},{name:"llm_engine",val:": typing.Optional[typing.Callable] = None"},{name:"system_prompt",val:": typing.Optional[str] = None"},{name:"tool_description_template",val:": typing.Optional[str] = None"},{name:"grammar",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"additional_authorized_imports",val:": typing.Optional[typing.List[str]] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L590"}}),nt=new x({props:{name:"parse_code_blob",anchor:"transformers.CodeAgent.parse_code_blob",parameters:[{name:"result",val:": str"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L632"}}),rt=new x({props:{name:"run",anchor:"transformers.CodeAgent.run",parameters:[{name:"task",val:": str"},{name:"return_generated_code",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.CodeAgent.run.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; The task to perform",name:"task"},{anchor:"transformers.CodeAgent.run.return_generated_code",description:"<strong>return_generated_code</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014; Whether to return the generated code instead of running it",name:"return_generated_code"},{anchor:"transformers.CodeAgent.run.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Any keyword argument to send to the agent when evaluating the code.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L639"}}),me=new Ln({props:{anchor:"transformers.CodeAgent.run.example",$$slots:{default:[ai]},$$scope:{ctx:I}}}),st=new J({props:{title:"React agents",local:"react-agents ][ transformers.ReactAgent",headingTag:"h3"}}),at=new x({props:{name:"class transformers.ReactAgent",anchor:"transformers.ReactAgent",parameters:[{name:"tools",val:": typing.List[transformers.agents.tools.Tool]"},{name:"llm_engine",val:": typing.Optional[typing.Callable] = None"},{name:"system_prompt",val:": typing.Optional[str] = None"},{name:"tool_description_template",val:": typing.Optional[str] = None"},{name:"grammar",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"plan_type",val:": typing.Optional[str] = None"},{name:"planning_interval",val:": typing.Optional[int] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L716"}}),lt=new x({props:{name:"direct_run",anchor:"transformers.ReactAgent.direct_run",parameters:[{name:"task",val:": str"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L844"}}),it=new x({props:{name:"planning_step",anchor:"transformers.ReactAgent.planning_step",parameters:[{name:"task",val:""},{name:"is_first_step",val:": bool = False"},{name:"iteration",val:": int = None"}],parametersDescription:[{anchor:"transformers.ReactAgent.planning_step.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; The task to perform",name:"task"},{anchor:"transformers.ReactAgent.planning_step.is_first_step",description:"<strong>is_first_step</strong> (<code>bool</code>) &#x2014; If this step is not the first one, the plan should be an update over a previous plan.",name:"is_first_step"},{anchor:"transformers.ReactAgent.planning_step.iteration",description:"<strong>iteration</strong> (<code>int</code>) &#x2014; The number of the current step, used as an indication for the LLM.",name:"iteration"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L884"}}),mt=new x({props:{name:"provide_final_answer",anchor:"transformers.ReactAgent.provide_final_answer",parameters:[{name:"task",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L755"}}),dt=new x({props:{name:"run",anchor:"transformers.ReactAgent.run",parameters:[{name:"task",val:": str"},{name:"stream",val:": bool = False"},{name:"reset",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.ReactAgent.run.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; The task to perform",name:"task"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L777"}}),ce=new Ln({props:{anchor:"transformers.ReactAgent.run.example",$$slots:{default:[li]},$$scope:{ctx:I}}}),pt=new x({props:{name:"stream_run",anchor:"transformers.ReactAgent.stream_run",parameters:[{name:"task",val:": str"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L804"}}),gt=new x({props:{name:"class transformers.ReactJsonAgent",anchor:"transformers.ReactJsonAgent",parameters:[{name:"tools",val:": typing.List[transformers.agents.tools.Tool]"},{name:"llm_engine",val:": typing.Optional[typing.Callable] = None"},{name:"system_prompt",val:": typing.Optional[str] = None"},{name:"tool_description_template",val:": typing.Optional[str] = None"},{name:"grammar",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"planning_interval",val:": typing.Optional[int] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L984"}}),ct=new x({props:{name:"step",anchor:"transformers.ReactJsonAgent.step",parameters:[{name:"log_entry",val:": typing.Dict[str, typing.Any]"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L1017"}}),ft=new x({props:{name:"class transformers.ReactCodeAgent",anchor:"transformers.ReactCodeAgent",parameters:[{name:"tools",val:": typing.List[transformers.agents.tools.Tool]"},{name:"llm_engine",val:": typing.Optional[typing.Callable] = None"},{name:"system_prompt",val:": typing.Optional[str] = None"},{name:"tool_description_template",val:": typing.Optional[str] = None"},{name:"grammar",val:": typing.Optional[typing.Dict[str, str]] = None"},{name:"additional_authorized_imports",val:": typing.Optional[typing.List[str]] = None"},{name:"planning_interval",val:": typing.Optional[int] = None"},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L1095"}}),ut=new x({props:{name:"step",anchor:"transformers.ReactCodeAgent.step",parameters:[{name:"log_entry",val:": typing.Dict[str, typing.Any]"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L1142"}}),ht=new J({props:{title:"Tools",local:"tools",headingTag:"h2"}}),$t=new J({props:{title:"load_tool",local:"loadtool ][ transformers.load_tool",headingTag:"h3"}}),bt=new x({props:{name:"transformers.load_tool",anchor:"transformers.load_tool",parameters:[{name:"task_or_repo_id",val:""},{name:"model_repo_id",val:" = None"},{name:"token",val:" = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.load_tool.task_or_repo_id",description:`<strong>task_or_repo_id</strong> (<code>str</code>) &#x2014;
The task for which to load the tool or a repo ID of a tool on the Hub. Tasks implemented in Transformers
are:</p>
<ul>
<li><code>&quot;document_question_answering&quot;</code></li>
<li><code>&quot;image_question_answering&quot;</code></li>
<li><code>&quot;speech_to_text&quot;</code></li>
<li><code>&quot;text_to_speech&quot;</code></li>
<li><code>&quot;translation&quot;</code></li>
</ul>`,name:"task_or_repo_id"},{anchor:"transformers.load_tool.model_repo_id",description:`<strong>model_repo_id</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Use this argument to use a different model than the default one for the tool you selected.`,name:"model_repo_id"},{anchor:"transformers.load_tool.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to identify you on hf.co. If unset, will use the token generated when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.load_tool.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Additional keyword arguments that will be split in two: all arguments relevant to the Hub (such as
<code>cache_dir</code>, <code>revision</code>, <code>subfolder</code>) will be used when downloading the files for your tool, and the others
will be passed along to its init.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L825"}}),$e=new Ra({props:{warning:!0,$$slots:{default:[ii]},$$scope:{ctx:I}}}),vt=new J({props:{title:"Tool",local:"tool ][ transformers.Tool",headingTag:"h3"}}),_t=new x({props:{name:"class transformers.Tool",anchor:"transformers.Tool",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L108"}}),yt=new x({props:{name:"from_gradio",anchor:"transformers.Tool.from_gradio",parameters:[{name:"gradio_tool",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L537"}}),xt=new x({props:{name:"from_hub",anchor:"transformers.Tool.from_hub",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": typing.Optional[str] = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Tool.from_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repo on the Hub where your tool is defined.`,name:"repo_id"},{anchor:"transformers.Tool.from_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to identify you on hf.co. If unset, will use the token generated when running
<code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.Tool.from_hub.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Additional keyword arguments that will be split in two: all arguments relevant to the Hub (such as
<code>cache_dir</code>, <code>revision</code>, <code>subfolder</code>) will be used when downloading the files for your tool, and the
others will be passed along to its init.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L253"}}),ve=new Ra({props:{warning:!0,$$slots:{default:[mi]},$$scope:{ctx:I}}}),Tt=new x({props:{name:"from_langchain",anchor:"transformers.Tool.from_langchain",parameters:[{name:"langchain_tool",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L558"}}),wt=new x({props:{name:"from_space",anchor:"transformers.Tool.from_space",parameters:[{name:"space_id",val:": str"},{name:"name",val:": str"},{name:"description",val:": str"},{name:"api_name",val:": typing.Optional[str] = None"},{name:"token",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"transformers.Tool.from_space.space_id",description:`<strong>space_id</strong> (<code>str</code>) &#x2014;
The id of the Space on the Hub.`,name:"space_id"},{anchor:"transformers.Tool.from_space.name",description:`<strong>name</strong> (<code>str</code>) &#x2014;
The name of the tool.`,name:"name"},{anchor:"transformers.Tool.from_space.description",description:`<strong>description</strong> (<code>str</code>) &#x2014;
The description of the tool.`,name:"description"},{anchor:"transformers.Tool.from_space.api_name",description:`<strong>api_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The specific api_name to use, if the space has several tabs. If not precised, will default to the first available api.`,name:"api_name"},{anchor:"transformers.Tool.from_space.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Add your token to access private spaces or increase your GPU quotas.`,name:"token"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L421",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<p>The Space, as a tool.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>
<p><a
href="/docs/transformers/pr_35339/ko/main_classes/agent#transformers.Tool"
>Tool</a></p>
`}}),ye=new Ln({props:{anchor:"transformers.Tool.from_space.example",$$slots:{default:[di]},$$scope:{ctx:I}}}),xe=new Ln({props:{anchor:"transformers.Tool.from_space.example-2",$$slots:{default:[pi]},$$scope:{ctx:I}}}),Ct=new x({props:{name:"push_to_hub",anchor:"transformers.Tool.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"commit_message",val:": str = 'Upload tool'"},{name:"private",val:": typing.Optional[bool] = None"},{name:"token",val:": typing.Union[str, bool, NoneType] = None"},{name:"create_pr",val:": bool = False"}],parametersDescription:[{anchor:"transformers.Tool.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push your tool to. It should contain your organization name when
pushing to a given organization.`,name:"repo_id"},{anchor:"transformers.Tool.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;Upload tool&quot;</code>) &#x2014;
Message to commit while pushing.`,name:"commit_message"},{anchor:"transformers.Tool.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether to make the repo private. If <code>None</code> (default), the repo will be public unless the organization&#x2019;s default is private. This value is ignored if the repo already exists.`,name:"private"},{anchor:"transformers.Tool.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If unset, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.Tool.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to create a PR with the uploaded files or directly commit.`,name:"create_pr"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L364"}}),Te=new Ln({props:{anchor:"transformers.Tool.push_to_hub.example",$$slots:{default:[gi]},$$scope:{ctx:I}}}),Mt=new x({props:{name:"save",anchor:"transformers.Tool.save",parameters:[{name:"output_dir",val:""}],parametersDescription:[{anchor:"transformers.Tool.save.output_dir",description:"<strong>output_dir</strong> (<code>str</code>) &#x2014; The folder in which you want to save your tool.",name:"output_dir"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L193"}}),kt=new x({props:{name:"setup",anchor:"transformers.Tool.setup",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L186"}}),It=new J({props:{title:"Toolbox",local:"toolbox ][ transformers.Toolbox",headingTag:"h3"}}),At=new x({props:{name:"class transformers.Toolbox",anchor:"transformers.Toolbox",parameters:[{name:"tools",val:": typing.List[transformers.agents.tools.Tool]"},{name:"add_base_tools",val:": bool = False"}],parametersDescription:[{anchor:"transformers.Toolbox.tools",description:`<strong>tools</strong> (<code>List[Tool]</code>) &#x2014;
The list of tools to instantiate the toolbox with`,name:"tools"},{anchor:"transformers.Toolbox.add_base_tools",description:`<strong>add_base_tools</strong> (<code>bool</code>, defaults to <code>False</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to add the tools available within <code>transformers</code> to the toolbox.`,name:"add_base_tools"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L184"}}),jt=new x({props:{name:"add_tool",anchor:"transformers.Toolbox.add_tool",parameters:[{name:"tool",val:": Tool"}],parametersDescription:[{anchor:"transformers.Toolbox.add_tool.tool",description:`<strong>tool</strong> (<code>Tool</code>) &#x2014;
The tool to add to the toolbox.`,name:"tool"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L230"}}),Lt=new x({props:{name:"clear_toolbox",anchor:"transformers.Toolbox.clear_toolbox",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L270"}}),Jt=new x({props:{name:"remove_tool",anchor:"transformers.Toolbox.remove_tool",parameters:[{name:"tool_name",val:": str"}],parametersDescription:[{anchor:"transformers.Toolbox.remove_tool.tool_name",description:`<strong>tool_name</strong> (<code>str</code>) &#x2014;
The tool to remove from the toolbox.`,name:"tool_name"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L242"}}),Ut=new x({props:{name:"show_tool_descriptions",anchor:"transformers.Toolbox.show_tool_descriptions",parameters:[{name:"tool_description_template",val:": str = None"}],parametersDescription:[{anchor:"transformers.Toolbox.show_tool_descriptions.tool_description_template",description:`<strong>tool_description_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The template to use to describe the tools. If not provided, the default template will be used.`,name:"tool_description_template"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L218"}}),Pt=new x({props:{name:"update_tool",anchor:"transformers.Toolbox.update_tool",parameters:[{name:"tool",val:": Tool"}],parametersDescription:[{anchor:"transformers.Toolbox.update_tool.tool",description:`<strong>tool</strong> (<code>Tool</code>) &#x2014;
The tool to update to the toolbox.`,name:"tool"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agents.py#L256"}}),Ht=new J({props:{title:"PipelineTool",local:"pipelinetool ][ transformers.PipelineTool",headingTag:"h3"}}),Et=new x({props:{name:"class transformers.PipelineTool",anchor:"transformers.PipelineTool",parameters:[{name:"model",val:" = None"},{name:"pre_processor",val:" = None"},{name:"post_processor",val:" = None"},{name:"device",val:" = None"},{name:"device_map",val:" = None"},{name:"model_kwargs",val:" = None"},{name:"token",val:" = None"},{name:"**hub_kwargs",val:""}],parametersDescription:[{anchor:"transformers.PipelineTool.model",description:`<strong>model</strong> (<code>str</code> or <a href="/docs/transformers/pr_35339/ko/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>, <em>optional</em>) &#x2014;
The name of the checkpoint to use for the model, or the instantiated model. If unset, will default to the
value of the class attribute <code>default_checkpoint</code>.`,name:"model"},{anchor:"transformers.PipelineTool.pre_processor",description:`<strong>pre_processor</strong> (<code>str</code> or <code>Any</code>, <em>optional</em>) &#x2014;
The name of the checkpoint to use for the pre-processor, or the instantiated pre-processor (can be a
tokenizer, an image processor, a feature extractor or a processor). Will default to the value of <code>model</code> if
unset.`,name:"pre_processor"},{anchor:"transformers.PipelineTool.post_processor",description:`<strong>post_processor</strong> (<code>str</code> or <code>Any</code>, <em>optional</em>) &#x2014;
The name of the checkpoint to use for the post-processor, or the instantiated pre-processor (can be a
tokenizer, an image processor, a feature extractor or a processor). Will default to the <code>pre_processor</code> if
unset.`,name:"post_processor"},{anchor:"transformers.PipelineTool.device",description:`<strong>device</strong> (<code>int</code>, <code>str</code> or <code>torch.device</code>, <em>optional</em>) &#x2014;
The device on which to execute the model. Will default to any accelerator available (GPU, MPS etc&#x2026;), the
CPU otherwise.`,name:"device"},{anchor:"transformers.PipelineTool.device_map",description:`<strong>device_map</strong> (<code>str</code> or <code>dict</code>, <em>optional</em>) &#x2014;
If passed along, will be used to instantiate the model.`,name:"device_map"},{anchor:"transformers.PipelineTool.model_kwargs",description:`<strong>model_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014;
Any keyword argument to send to the model instantiation.`,name:"model_kwargs"},{anchor:"transformers.PipelineTool.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If unset, will use the token generated when
running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"transformers.PipelineTool.hub_kwargs",description:`<strong>hub_kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Any additional keyword argument to send to the methods that will load the data from the Hub.`,name:"hub_kwargs"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L622"}}),Nt=new x({props:{name:"decode",anchor:"transformers.PipelineTool.decode",parameters:[{name:"outputs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L745"}}),Vt=new x({props:{name:"encode",anchor:"transformers.PipelineTool.encode",parameters:[{name:"raw_inputs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L732"}}),Dt=new x({props:{name:"forward",anchor:"transformers.PipelineTool.forward",parameters:[{name:"inputs",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L738"}}),Rt=new x({props:{name:"setup",anchor:"transformers.PipelineTool.setup",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L706"}}),qt=new J({props:{title:"launch_gradio_demo",local:"launchgradiodemo ][ transformers.launch_gradio_demo",headingTag:"h3"}}),Zt=new x({props:{name:"transformers.launch_gradio_demo",anchor:"transformers.launch_gradio_demo",parameters:[{name:"tool_class",val:": Tool"}],parametersDescription:[{anchor:"transformers.launch_gradio_demo.tool_class",description:"<strong>tool_class</strong> (<code>type</code>) &#x2014; The class of the tool for which to launch the demo.",name:"tool_class"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L770"}}),Wt=new J({props:{title:"ToolCollection",local:"toolcollection ][ transformers.ToolCollection",headingTag:"h3"}}),Bt=new x({props:{name:"class transformers.ToolCollection",anchor:"transformers.ToolCollection",parameters:[{name:"collection_slug",val:": str"},{name:"token",val:": typing.Optional[str] = None"}],parametersDescription:[{anchor:"transformers.ToolCollection.collection_slug",description:`<strong>collection_slug</strong> (str) &#x2014;
The collection slug referencing the collection.`,name:"collection_slug"},{anchor:"transformers.ToolCollection.token",description:`<strong>token</strong> (str, <em>optional</em>) &#x2014;
The authentication token if the collection is private.`,name:"token"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/tools.py#L940"}}),Pe=new Ln({props:{anchor:"transformers.ToolCollection.example",$$slots:{default:[ci]},$$scope:{ctx:I}}}),zt=new J({props:{title:"엔진",local:"engines",headingTag:"h2"}}),St=new J({props:{title:"HfApiEngine",local:"HfApiEngine ][ transformers.HfApiEngine",headingTag:"h3"}}),Ot=new yo({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}}),Yt=new x({props:{name:"class transformers.HfApiEngine",anchor:"transformers.HfApiEngine",parameters:[{name:"model",val:": str = 'meta-llama/Meta-Llama-3.1-8B-Instruct'"},{name:"token",val:": typing.Optional[str] = None"},{name:"max_tokens",val:": typing.Optional[int] = 1500"},{name:"timeout",val:": typing.Optional[int] = 120"}],parametersDescription:[{anchor:"transformers.HfApiEngine.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;meta-llama/Meta-Llama-3.1-8B-Instruct&quot;</code>) &#x2014;
The Hugging Face model ID to be used for inference. This can be a path or model identifier from the Hugging Face model hub.`,name:"model"},{anchor:"transformers.HfApiEngine.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Token used by the Hugging Face API for authentication.
If not provided, the class will use the token stored in the Hugging Face CLI configuration.`,name:"token"},{anchor:"transformers.HfApiEngine.max_tokens",description:`<strong>max_tokens</strong> (<code>int</code>, <em>optional</em>, defaults to 1500) &#x2014;
The maximum number of tokens allowed in the output.`,name:"max_tokens"},{anchor:"transformers.HfApiEngine.timeout",description:`<strong>timeout</strong> (<code>int</code>, <em>optional</em>, defaults to 120) &#x2014;
Timeout for the API request, in seconds.`,name:"timeout"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/llm_engine.py#L145",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>
<ul>
<li><code>ValueError</code> —
If the model name is not provided.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>
<p><code>ValueError</code></p>
`}}),Xt=new J({props:{title:"에이전트 유형",local:"agent-types",headingTag:"h2"}}),no=new J({props:{title:"AgentText",local:"agenttext ][ transformers.agents.agent_types.AgentText",headingTag:"h3"}}),ro=new x({props:{name:"class transformers.agents.agent_types.AgentText",anchor:"transformers.agents.agent_types.AgentText",parameters:[{name:"value",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agent_types.py#L73"}}),so=new J({props:{title:"AgentImage",local:"agentimage ][ transformers.agents.agent_types.AgentImage",headingTag:"h3"}}),ao=new x({props:{name:"class transformers.agents.agent_types.AgentImage",anchor:"transformers.agents.agent_types.AgentImage",parameters:[{name:"value",val:""}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agent_types.py#L85"}}),lo=new x({props:{name:"save",anchor:"transformers.agents.agent_types.AgentImage.save",parameters:[{name:"output_bytes",val:""},{name:"format",val:""},{name:"**params",val:""}],parametersDescription:[{anchor:"transformers.agents.agent_types.AgentImage.save.output_bytes",description:"<strong>output_bytes</strong> (bytes) &#x2014; The output bytes to save the image to.",name:"output_bytes"},{anchor:"transformers.agents.agent_types.AgentImage.save.format",description:"<strong>format</strong> (str) &#x2014; The format to use for the output image. The format is the same as in PIL.Image.save.",name:"format"},{anchor:"transformers.agents.agent_types.AgentImage.save.*params",description:"*<strong>*params</strong> &#x2014; Additional parameters to pass to PIL.Image.save.",name:"*params"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agent_types.py#L162"}}),io=new x({props:{name:"to_raw",anchor:"transformers.agents.agent_types.AgentImage.to_raw",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agent_types.py#L120"}}),mo=new x({props:{name:"to_string",anchor:"transformers.agents.agent_types.AgentImage.to_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agent_types.py#L135"}}),po=new J({props:{title:"AgentAudio",local:"agentaudio ][ transformers.agents.agent_types.AgentAudio",headingTag:"h3"}}),go=new x({props:{name:"class transformers.agents.agent_types.AgentAudio",anchor:"transformers.agents.agent_types.AgentAudio",parameters:[{name:"value",val:""},{name:"samplerate",val:" = 16000"}],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agent_types.py#L174"}}),co=new x({props:{name:"to_raw",anchor:"transformers.agents.agent_types.AgentAudio.to_raw",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agent_types.py#L210"}}),fo=new x({props:{name:"to_string",anchor:"transformers.agents.agent_types.AgentAudio.to_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/vr_35339/src/transformers/agents/agent_types.py#L222"}}),uo=new ri({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/ko/main_classes/agent.md"}}),{c(){u=s("meta"),T=o(),b=s("p"),v=o(),m(w.$$.fragment),h=o(),m(C.$$.fragment),Un=o(),ze=s("p"),ze.innerHTML=qa,Pn=o(),m(Fe.$$.fragment),Hn=o(),Ge=s("p"),Ge.innerHTML=Za,En=o(),Se=s("ul"),Se.innerHTML=Wa,Nn=o(),m(Qe.$$.fragment),Vn=o(),P=s("div"),m(Oe.$$.fragment),Or=o(),re=s("div"),m(Ye.$$.fragment),Yr=o(),xo=s("p"),xo.textContent=Ba,Xr=o(),se=s("div"),m(Xe.$$.fragment),Kr=o(),To=s("p"),To.textContent=za,es=o(),ae=s("div"),m(Ke.$$.fragment),ts=o(),wo=s("p"),wo.textContent=Fa,os=o(),le=s("div"),m(et.$$.fragment),ns=o(),Co=s("p"),Co.textContent=Ga,Dn=o(),m(tt.$$.fragment),Rn=o(),V=s("div"),m(ot.$$.fragment),rs=o(),Mo=s("p"),Mo.textContent=Sa,ss=o(),ie=s("div"),m(nt.$$.fragment),as=o(),ko=s("p"),ko.innerHTML=Qa,ls=o(),O=s("div"),m(rt.$$.fragment),is=o(),Io=s("p"),Io.textContent=Oa,ms=o(),m(me.$$.fragment),qn=o(),m(st.$$.fragment),Zn=o(),A=s("div"),m(at.$$.fragment),ds=o(),Ao=s("p"),Ao.textContent=Ya,ps=o(),de=s("div"),m(lt.$$.fragment),gs=o(),jo=s("p"),jo.innerHTML=Xa,cs=o(),pe=s("div"),m(it.$$.fragment),fs=o(),Lo=s("p"),Lo.textContent=Ka,us=o(),ge=s("div"),m(mt.$$.fragment),hs=o(),Jo=s("p"),Jo.textContent=el,$s=o(),Y=s("div"),m(dt.$$.fragment),bs=o(),Uo=s("p"),Uo.textContent=tl,vs=o(),m(ce.$$.fragment),_s=o(),fe=s("div"),m(pt.$$.fragment),ys=o(),Po=s("p"),Po.innerHTML=ol,Wn=o(),z=s("div"),m(gt.$$.fragment),xs=o(),Ho=s("p"),Ho.textContent=nl,Ts=o(),ue=s("div"),m(ct.$$.fragment),ws=o(),Eo=s("p"),Eo.textContent=rl,Bn=o(),F=s("div"),m(ft.$$.fragment),Cs=o(),No=s("p"),No.textContent=sl,Ms=o(),he=s("div"),m(ut.$$.fragment),ks=o(),Vo=s("p"),Vo.textContent=al,zn=o(),m(ht.$$.fragment),Fn=o(),m($t.$$.fragment),Gn=o(),G=s("div"),m(bt.$$.fragment),Is=o(),Do=s("p"),Do.textContent=ll,As=o(),m($e.$$.fragment),Sn=o(),m(vt.$$.fragment),Qn=o(),M=s("div"),m(_t.$$.fragment),js=o(),Ro=s("p"),Ro.innerHTML=il,Ls=o(),qo=s("ul"),qo.innerHTML=ml,Js=o(),Zo=s("p"),Zo.innerHTML=dl,Us=o(),be=s("div"),m(yt.$$.fragment),Ps=o(),Wo=s("p"),Wo.innerHTML=pl,Hs=o(),X=s("div"),m(xt.$$.fragment),Es=o(),Bo=s("p"),Bo.textContent=gl,Ns=o(),m(ve.$$.fragment),Vs=o(),_e=s("div"),m(Tt.$$.fragment),Ds=o(),zo=s("p"),zo.innerHTML=cl,Rs=o(),Z=s("div"),m(wt.$$.fragment),qs=o(),Fo=s("p"),Fo.innerHTML=fl,Zs=o(),m(ye.$$.fragment),Ws=o(),m(xe.$$.fragment),Bs=o(),W=s("div"),m(Ct.$$.fragment),zs=o(),Go=s("p"),Go.textContent=ul,Fs=o(),So=s("p"),So.innerHTML=hl,Gs=o(),m(Te.$$.fragment),Ss=o(),B=s("div"),m(Mt.$$.fragment),Qs=o(),Qo=s("p"),Qo.innerHTML=$l,Os=o(),Oo=s("ul"),Oo.innerHTML=bl,Ys=o(),Yo=s("p"),Yo.innerHTML=vl,Xs=o(),we=s("div"),m(kt.$$.fragment),Ks=o(),Xo=s("p"),Xo.textContent=_l,On=o(),m(It.$$.fragment),Yn=o(),j=s("div"),m(At.$$.fragment),ea=o(),Ko=s("p"),Ko.textContent=yl,ta=o(),Ce=s("div"),m(jt.$$.fragment),oa=o(),en=s("p"),en.textContent=xl,na=o(),Me=s("div"),m(Lt.$$.fragment),ra=o(),tn=s("p"),tn.textContent=Tl,sa=o(),ke=s("div"),m(Jt.$$.fragment),aa=o(),on=s("p"),on.textContent=wl,la=o(),Ie=s("div"),m(Ut.$$.fragment),ia=o(),nn=s("p"),nn.textContent=Cl,ma=o(),Ae=s("div"),m(Pt.$$.fragment),da=o(),rn=s("p"),rn.textContent=Ml,Xn=o(),m(Ht.$$.fragment),Kn=o(),L=s("div"),m(Et.$$.fragment),pa=o(),sn=s("p"),sn.innerHTML=kl,ga=o(),an=s("ul"),an.innerHTML=Il,ca=o(),je=s("div"),m(Nt.$$.fragment),fa=o(),ln=s("p"),ln.innerHTML=Al,ua=o(),Le=s("div"),m(Vt.$$.fragment),ha=o(),mn=s("p"),mn.innerHTML=jl,$a=o(),Je=s("div"),m(Dt.$$.fragment),ba=o(),dn=s("p"),dn.innerHTML=Ll,va=o(),Ue=s("div"),m(Rt.$$.fragment),_a=o(),pn=s("p"),pn.innerHTML=Jl,er=o(),m(qt.$$.fragment),tr=o(),ee=s("div"),m(Zt.$$.fragment),ya=o(),gn=s("p"),gn.innerHTML=Ul,or=o(),m(Wt.$$.fragment),nr=o(),D=s("div"),m(Bt.$$.fragment),xa=o(),cn=s("p"),cn.textContent=Pl,Ta=o(),fn=s("blockquote"),fn.innerHTML=Hl,wa=o(),m(Pe.$$.fragment),rr=o(),m(zt.$$.fragment),sr=o(),Ft=s("p"),Ft.textContent=El,ar=o(),Gt=s("ol"),Gt.innerHTML=Nl,lr=o(),m(St.$$.fragment),ir=o(),Qt=s("p"),Qt.innerHTML=Vl,mr=o(),m(Ot.$$.fragment),dr=o(),S=s("div"),m(Yt.$$.fragment),Ca=o(),un=s("p"),un.textContent=Dl,Ma=o(),hn=s("p"),hn.textContent=Rl,pr=o(),m(Xt.$$.fragment),gr=o(),Kt=s("p"),Kt.textContent=ql,cr=o(),eo=s("p"),eo.innerHTML=Zl,fr=o(),to=s("p"),to.textContent=Wl,ur=o(),oo=s("ul"),oo.innerHTML=Bl,hr=o(),m(no.$$.fragment),$r=o(),te=s("div"),m(ro.$$.fragment),ka=o(),$n=s("p"),$n.textContent=zl,br=o(),m(so.$$.fragment),vr=o(),H=s("div"),m(ao.$$.fragment),Ia=o(),bn=s("p"),bn.textContent=Fl,Aa=o(),He=s("div"),m(lo.$$.fragment),ja=o(),vn=s("p"),vn.textContent=Gl,La=o(),Ee=s("div"),m(io.$$.fragment),Ja=o(),_n=s("p"),_n.textContent=Sl,Ua=o(),Ne=s("div"),m(mo.$$.fragment),Pa=o(),yn=s("p"),yn.textContent=Ql,_r=o(),m(po.$$.fragment),yr=o(),R=s("div"),m(go.$$.fragment),Ha=o(),xn=s("p"),xn.textContent=Ol,Ea=o(),Ve=s("div"),m(co.$$.fragment),Na=o(),Tn=s("p"),Tn.innerHTML=Yl,Va=o(),De=s("div"),m(fo.$$.fragment),Da=o(),wn=s("p"),wn.textContent=Xl,xr=o(),m(uo.$$.fragment),Tr=o(),Jn=s("p"),this.h()},l(e){const l=ni("svelte-u9bgzb",document.head);u=a(l,"META",{name:!0,content:!0}),l.forEach(r),T=n(e),b=a(e,"P",{}),_(b).forEach(r),v=n(e),d(w.$$.fragment,e),h=n(e),d(C.$$.fragment,e),Un=n(e),ze=a(e,"P",{"data-svelte-h":!0}),$(ze)!=="svelte-18njsj2"&&(ze.innerHTML=qa),Pn=n(e),d(Fe.$$.fragment,e),Hn=n(e),Ge=a(e,"P",{"data-svelte-h":!0}),$(Ge)!=="svelte-1vng5o3"&&(Ge.innerHTML=Za),En=n(e),Se=a(e,"UL",{"data-svelte-h":!0}),$(Se)!=="svelte-1b13u1o"&&(Se.innerHTML=Wa),Nn=n(e),d(Qe.$$.fragment,e),Vn=n(e),P=a(e,"DIV",{class:!0});var q=_(P);d(Oe.$$.fragment,q),Or=n(q),re=a(q,"DIV",{class:!0});var ho=_(re);d(Ye.$$.fragment,ho),Yr=n(ho),xo=a(ho,"P",{"data-svelte-h":!0}),$(xo)!=="svelte-a91m64"&&(xo.textContent=Ba),ho.forEach(r),Xr=n(q),se=a(q,"DIV",{class:!0});var $o=_(se);d(Xe.$$.fragment,$o),Kr=n($o),To=a($o,"P",{"data-svelte-h":!0}),$(To)!=="svelte-104knry"&&(To.textContent=za),$o.forEach(r),es=n(q),ae=a(q,"DIV",{class:!0});var bo=_(ae);d(Ke.$$.fragment,bo),ts=n(bo),wo=a(bo,"P",{"data-svelte-h":!0}),$(wo)!=="svelte-wvvftk"&&(wo.textContent=Fa),bo.forEach(r),os=n(q),le=a(q,"DIV",{class:!0});var vo=_(le);d(et.$$.fragment,vo),ns=n(vo),Co=a(vo,"P",{"data-svelte-h":!0}),$(Co)!=="svelte-1cw6633"&&(Co.textContent=Ga),vo.forEach(r),q.forEach(r),Dn=n(e),d(tt.$$.fragment,e),Rn=n(e),V=a(e,"DIV",{class:!0});var Q=_(V);d(ot.$$.fragment,Q),rs=n(Q),Mo=a(Q,"P",{"data-svelte-h":!0}),$(Mo)!=="svelte-rq8zg0"&&(Mo.textContent=Sa),ss=n(Q),ie=a(Q,"DIV",{class:!0});var _o=_(ie);d(nt.$$.fragment,_o),as=n(_o),ko=a(_o,"P",{"data-svelte-h":!0}),$(ko)!=="svelte-tvi94l"&&(ko.innerHTML=Qa),_o.forEach(r),ls=n(Q),O=a(Q,"DIV",{class:!0});var oe=_(O);d(rt.$$.fragment,oe),is=n(oe),Io=a(oe,"P",{"data-svelte-h":!0}),$(Io)!=="svelte-tbr5ck"&&(Io.textContent=Oa),ms=n(oe),d(me.$$.fragment,oe),oe.forEach(r),Q.forEach(r),qn=n(e),d(st.$$.fragment,e),Zn=n(e),A=a(e,"DIV",{class:!0});var U=_(A);d(at.$$.fragment,U),ds=n(U),Ao=a(U,"P",{"data-svelte-h":!0}),$(Ao)!=="svelte-c95fji"&&(Ao.textContent=Ya),ps=n(U),de=a(U,"DIV",{class:!0});var Cr=_(de);d(lt.$$.fragment,Cr),gs=n(Cr),jo=a(Cr,"P",{"data-svelte-h":!0}),$(jo)!=="svelte-17ywxxr"&&(jo.innerHTML=Xa),Cr.forEach(r),cs=n(U),pe=a(U,"DIV",{class:!0});var Mr=_(pe);d(it.$$.fragment,Mr),fs=n(Mr),Lo=a(Mr,"P",{"data-svelte-h":!0}),$(Lo)!=="svelte-e54ku6"&&(Lo.textContent=Ka),Mr.forEach(r),us=n(U),ge=a(U,"DIV",{class:!0});var kr=_(ge);d(mt.$$.fragment,kr),hs=n(kr),Jo=a(kr,"P",{"data-svelte-h":!0}),$(Jo)!=="svelte-1ii4mb"&&(Jo.textContent=el),kr.forEach(r),$s=n(U),Y=a(U,"DIV",{class:!0});var Cn=_(Y);d(dt.$$.fragment,Cn),bs=n(Cn),Uo=a(Cn,"P",{"data-svelte-h":!0}),$(Uo)!=="svelte-tbr5ck"&&(Uo.textContent=tl),vs=n(Cn),d(ce.$$.fragment,Cn),Cn.forEach(r),_s=n(U),fe=a(U,"DIV",{class:!0});var Ir=_(fe);d(pt.$$.fragment,Ir),ys=n(Ir),Po=a(Ir,"P",{"data-svelte-h":!0}),$(Po)!=="svelte-nf9see"&&(Po.innerHTML=ol),Ir.forEach(r),U.forEach(r),Wn=n(e),z=a(e,"DIV",{class:!0});var Mn=_(z);d(gt.$$.fragment,Mn),xs=n(Mn),Ho=a(Mn,"P",{"data-svelte-h":!0}),$(Ho)!=="svelte-1ip7q5f"&&(Ho.textContent=nl),Ts=n(Mn),ue=a(Mn,"DIV",{class:!0});var Ar=_(ue);d(ct.$$.fragment,Ar),ws=n(Ar),Eo=a(Ar,"P",{"data-svelte-h":!0}),$(Eo)!=="svelte-1bbx2c8"&&(Eo.textContent=rl),Ar.forEach(r),Mn.forEach(r),Bn=n(e),F=a(e,"DIV",{class:!0});var kn=_(F);d(ft.$$.fragment,kn),Cs=n(kn),No=a(kn,"P",{"data-svelte-h":!0}),$(No)!=="svelte-1egm30q"&&(No.textContent=sl),Ms=n(kn),he=a(kn,"DIV",{class:!0});var jr=_(he);d(ut.$$.fragment,jr),ks=n(jr),Vo=a(jr,"P",{"data-svelte-h":!0}),$(Vo)!=="svelte-1bbx2c8"&&(Vo.textContent=al),jr.forEach(r),kn.forEach(r),zn=n(e),d(ht.$$.fragment,e),Fn=n(e),d($t.$$.fragment,e),Gn=n(e),G=a(e,"DIV",{class:!0});var In=_(G);d(bt.$$.fragment,In),Is=n(In),Do=a(In,"P",{"data-svelte-h":!0}),$(Do)!=="svelte-16uh3p8"&&(Do.textContent=ll),As=n(In),d($e.$$.fragment,In),In.forEach(r),Sn=n(e),d(vt.$$.fragment,e),Qn=n(e),M=a(e,"DIV",{class:!0});var k=_(M);d(_t.$$.fragment,k),js=n(k),Ro=a(k,"P",{"data-svelte-h":!0}),$(Ro)!=="svelte-cca4c5"&&(Ro.innerHTML=il),Ls=n(k),qo=a(k,"UL",{"data-svelte-h":!0}),$(qo)!=="svelte-1cvtzkm"&&(qo.innerHTML=ml),Js=n(k),Zo=a(k,"P",{"data-svelte-h":!0}),$(Zo)!=="svelte-1k74wue"&&(Zo.innerHTML=dl),Us=n(k),be=a(k,"DIV",{class:!0});var Lr=_(be);d(yt.$$.fragment,Lr),Ps=n(Lr),Wo=a(Lr,"P",{"data-svelte-h":!0}),$(Wo)!=="svelte-g9r8gd"&&(Wo.innerHTML=pl),Lr.forEach(r),Hs=n(k),X=a(k,"DIV",{class:!0});var An=_(X);d(xt.$$.fragment,An),Es=n(An),Bo=a(An,"P",{"data-svelte-h":!0}),$(Bo)!=="svelte-yy7b2c"&&(Bo.textContent=gl),Ns=n(An),d(ve.$$.fragment,An),An.forEach(r),Vs=n(k),_e=a(k,"DIV",{class:!0});var Jr=_(_e);d(Tt.$$.fragment,Jr),Ds=n(Jr),zo=a(Jr,"P",{"data-svelte-h":!0}),$(zo)!=="svelte-r2zb2m"&&(zo.innerHTML=cl),Jr.forEach(r),Rs=n(k),Z=a(k,"DIV",{class:!0});var Re=_(Z);d(wt.$$.fragment,Re),qs=n(Re),Fo=a(Re,"P",{"data-svelte-h":!0}),$(Fo)!=="svelte-2yq9ca"&&(Fo.innerHTML=fl),Zs=n(Re),d(ye.$$.fragment,Re),Ws=n(Re),d(xe.$$.fragment,Re),Re.forEach(r),Bs=n(k),W=a(k,"DIV",{class:!0});var qe=_(W);d(Ct.$$.fragment,qe),zs=n(qe),Go=a(qe,"P",{"data-svelte-h":!0}),$(Go)!=="svelte-1u3gku9"&&(Go.textContent=ul),Fs=n(qe),So=a(qe,"P",{"data-svelte-h":!0}),$(So)!=="svelte-1yeagwn"&&(So.innerHTML=hl),Gs=n(qe),d(Te.$$.fragment,qe),qe.forEach(r),Ss=n(k),B=a(k,"DIV",{class:!0});var Ze=_(B);d(Mt.$$.fragment,Ze),Qs=n(Ze),Qo=a(Ze,"P",{"data-svelte-h":!0}),$(Qo)!=="svelte-19evuwa"&&(Qo.innerHTML=$l),Os=n(Ze),Oo=a(Ze,"UL",{"data-svelte-h":!0}),$(Oo)!=="svelte-15of9ze"&&(Oo.innerHTML=bl),Ys=n(Ze),Yo=a(Ze,"P",{"data-svelte-h":!0}),$(Yo)!=="svelte-msa4ge"&&(Yo.innerHTML=vl),Ze.forEach(r),Xs=n(k),we=a(k,"DIV",{class:!0});var Ur=_(we);d(kt.$$.fragment,Ur),Ks=n(Ur),Xo=a(Ur,"P",{"data-svelte-h":!0}),$(Xo)!=="svelte-63kthh"&&(Xo.textContent=_l),Ur.forEach(r),k.forEach(r),On=n(e),d(It.$$.fragment,e),Yn=n(e),j=a(e,"DIV",{class:!0});var E=_(j);d(At.$$.fragment,E),ea=n(E),Ko=a(E,"P",{"data-svelte-h":!0}),$(Ko)!=="svelte-1jgzyq0"&&(Ko.textContent=yl),ta=n(E),Ce=a(E,"DIV",{class:!0});var Pr=_(Ce);d(jt.$$.fragment,Pr),oa=n(Pr),en=a(Pr,"P",{"data-svelte-h":!0}),$(en)!=="svelte-g8q0nk"&&(en.textContent=xl),Pr.forEach(r),na=n(E),Me=a(E,"DIV",{class:!0});var Hr=_(Me);d(Lt.$$.fragment,Hr),ra=n(Hr),tn=a(Hr,"P",{"data-svelte-h":!0}),$(tn)!=="svelte-1l2znf2"&&(tn.textContent=Tl),Hr.forEach(r),sa=n(E),ke=a(E,"DIV",{class:!0});var Er=_(ke);d(Jt.$$.fragment,Er),aa=n(Er),on=a(Er,"P",{"data-svelte-h":!0}),$(on)!=="svelte-165lhg0"&&(on.textContent=wl),Er.forEach(r),la=n(E),Ie=a(E,"DIV",{class:!0});var Nr=_(Ie);d(Ut.$$.fragment,Nr),ia=n(Nr),nn=a(Nr,"P",{"data-svelte-h":!0}),$(nn)!=="svelte-15vkk0u"&&(nn.textContent=Cl),Nr.forEach(r),ma=n(E),Ae=a(E,"DIV",{class:!0});var Vr=_(Ae);d(Pt.$$.fragment,Vr),da=n(Vr),rn=a(Vr,"P",{"data-svelte-h":!0}),$(rn)!=="svelte-1p64qrs"&&(rn.textContent=Ml),Vr.forEach(r),E.forEach(r),Xn=n(e),d(Ht.$$.fragment,e),Kn=n(e),L=a(e,"DIV",{class:!0});var N=_(L);d(Et.$$.fragment,N),pa=n(N),sn=a(N,"P",{"data-svelte-h":!0}),$(sn)!=="svelte-8v41z1"&&(sn.innerHTML=kl),ga=n(N),an=a(N,"UL",{"data-svelte-h":!0}),$(an)!=="svelte-13z5b5k"&&(an.innerHTML=Il),ca=n(N),je=a(N,"DIV",{class:!0});var Dr=_(je);d(Nt.$$.fragment,Dr),fa=n(Dr),ln=a(Dr,"P",{"data-svelte-h":!0}),$(ln)!=="svelte-zkjq4t"&&(ln.innerHTML=Al),Dr.forEach(r),ua=n(N),Le=a(N,"DIV",{class:!0});var Rr=_(Le);d(Vt.$$.fragment,Rr),ha=n(Rr),mn=a(Rr,"P",{"data-svelte-h":!0}),$(mn)!=="svelte-1vxzk80"&&(mn.innerHTML=jl),Rr.forEach(r),$a=n(N),Je=a(N,"DIV",{class:!0});var qr=_(Je);d(Dt.$$.fragment,qr),ba=n(qr),dn=a(qr,"P",{"data-svelte-h":!0}),$(dn)!=="svelte-1qgsi13"&&(dn.innerHTML=Ll),qr.forEach(r),va=n(N),Ue=a(N,"DIV",{class:!0});var Zr=_(Ue);d(Rt.$$.fragment,Zr),_a=n(Zr),pn=a(Zr,"P",{"data-svelte-h":!0}),$(pn)!=="svelte-1ojxz66"&&(pn.innerHTML=Jl),Zr.forEach(r),N.forEach(r),er=n(e),d(qt.$$.fragment,e),tr=n(e),ee=a(e,"DIV",{class:!0});var Wr=_(ee);d(Zt.$$.fragment,Wr),ya=n(Wr),gn=a(Wr,"P",{"data-svelte-h":!0}),$(gn)!=="svelte-j4u4it"&&(gn.innerHTML=Ul),Wr.forEach(r),or=n(e),d(Wt.$$.fragment,e),nr=n(e),D=a(e,"DIV",{class:!0});var We=_(D);d(Bt.$$.fragment,We),xa=n(We),cn=a(We,"P",{"data-svelte-h":!0}),$(cn)!=="svelte-n5kqzu"&&(cn.textContent=Pl),Ta=n(We),fn=a(We,"BLOCKQUOTE",{"data-svelte-h":!0}),$(fn)!=="svelte-1ezz2hf"&&(fn.innerHTML=Hl),wa=n(We),d(Pe.$$.fragment,We),We.forEach(r),rr=n(e),d(zt.$$.fragment,e),sr=n(e),Ft=a(e,"P",{"data-svelte-h":!0}),$(Ft)!=="svelte-fy1akl"&&(Ft.textContent=El),ar=n(e),Gt=a(e,"OL",{"data-svelte-h":!0}),$(Gt)!=="svelte-1i7og4h"&&(Gt.innerHTML=Nl),lr=n(e),d(St.$$.fragment,e),ir=n(e),Qt=a(e,"P",{"data-svelte-h":!0}),$(Qt)!=="svelte-x9tzrb"&&(Qt.innerHTML=Vl),mr=n(e),d(Ot.$$.fragment,e),dr=n(e),S=a(e,"DIV",{class:!0});var jn=_(S);d(Yt.$$.fragment,jn),Ca=n(jn),un=a(jn,"P",{"data-svelte-h":!0}),$(un)!=="svelte-wuqm71"&&(un.textContent=Dl),Ma=n(jn),hn=a(jn,"P",{"data-svelte-h":!0}),$(hn)!=="svelte-av1h5"&&(hn.textContent=Rl),jn.forEach(r),pr=n(e),d(Xt.$$.fragment,e),gr=n(e),Kt=a(e,"P",{"data-svelte-h":!0}),$(Kt)!=="svelte-173ylgl"&&(Kt.textContent=ql),cr=n(e),eo=a(e,"P",{"data-svelte-h":!0}),$(eo)!=="svelte-1y5sx94"&&(eo.innerHTML=Zl),fr=n(e),to=a(e,"P",{"data-svelte-h":!0}),$(to)!=="svelte-1ltzr0s"&&(to.textContent=Wl),ur=n(e),oo=a(e,"UL",{"data-svelte-h":!0}),$(oo)!=="svelte-1iu830u"&&(oo.innerHTML=Bl),hr=n(e),d(no.$$.fragment,e),$r=n(e),te=a(e,"DIV",{class:!0});var Br=_(te);d(ro.$$.fragment,Br),ka=n(Br),$n=a(Br,"P",{"data-svelte-h":!0}),$($n)!=="svelte-57fhj7"&&($n.textContent=zl),Br.forEach(r),br=n(e),d(so.$$.fragment,e),vr=n(e),H=a(e,"DIV",{class:!0});var K=_(H);d(ao.$$.fragment,K),Ia=n(K),bn=a(K,"P",{"data-svelte-h":!0}),$(bn)!=="svelte-1hsb0qs"&&(bn.textContent=Fl),Aa=n(K),He=a(K,"DIV",{class:!0});var zr=_(He);d(lo.$$.fragment,zr),ja=n(zr),vn=a(zr,"P",{"data-svelte-h":!0}),$(vn)!=="svelte-qix5eq"&&(vn.textContent=Gl),zr.forEach(r),La=n(K),Ee=a(K,"DIV",{class:!0});var Fr=_(Ee);d(io.$$.fragment,Fr),Ja=n(Fr),_n=a(Fr,"P",{"data-svelte-h":!0}),$(_n)!=="svelte-ybie7i"&&(_n.textContent=Sl),Fr.forEach(r),Ua=n(K),Ne=a(K,"DIV",{class:!0});var Gr=_(Ne);d(mo.$$.fragment,Gr),Pa=n(Gr),yn=a(Gr,"P",{"data-svelte-h":!0}),$(yn)!=="svelte-chc6sp"&&(yn.textContent=Ql),Gr.forEach(r),K.forEach(r),_r=n(e),d(po.$$.fragment,e),yr=n(e),R=a(e,"DIV",{class:!0});var Be=_(R);d(go.$$.fragment,Be),Ha=n(Be),xn=a(Be,"P",{"data-svelte-h":!0}),$(xn)!=="svelte-ckiqb6"&&(xn.textContent=Ol),Ea=n(Be),Ve=a(Be,"DIV",{class:!0});var Sr=_(Ve);d(co.$$.fragment,Sr),Na=n(Sr),Tn=a(Sr,"P",{"data-svelte-h":!0}),$(Tn)!=="svelte-10rnn1x"&&(Tn.innerHTML=Yl),Sr.forEach(r),Va=n(Be),De=a(Be,"DIV",{class:!0});var Qr=_(De);d(fo.$$.fragment,Qr),Da=n(Qr),wn=a(Qr,"P",{"data-svelte-h":!0}),$(wn)!=="svelte-1xu9o93"&&(wn.textContent=Xl),Qr.forEach(r),Be.forEach(r),xr=n(e),d(uo.$$.fragment,e),Tr=n(e),Jn=a(e,"P",{}),_(Jn).forEach(r),this.h()},h(){y(u,"name","hf:doc:metadata"),y(u,"content",ui),y(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(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(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(M,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Je,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(L,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(He,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(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(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,u),i(e,T,l),i(e,b,l),i(e,v,l),p(w,e,l),i(e,h,l),p(C,e,l),i(e,Un,l),i(e,ze,l),i(e,Pn,l),p(Fe,e,l),i(e,Hn,l),i(e,Ge,l),i(e,En,l),i(e,Se,l),i(e,Nn,l),p(Qe,e,l),i(e,Vn,l),i(e,P,l),p(Oe,P,null),t(P,Or),t(P,re),p(Ye,re,null),t(re,Yr),t(re,xo),t(P,Xr),t(P,se),p(Xe,se,null),t(se,Kr),t(se,To),t(P,es),t(P,ae),p(Ke,ae,null),t(ae,ts),t(ae,wo),t(P,os),t(P,le),p(et,le,null),t(le,ns),t(le,Co),i(e,Dn,l),p(tt,e,l),i(e,Rn,l),i(e,V,l),p(ot,V,null),t(V,rs),t(V,Mo),t(V,ss),t(V,ie),p(nt,ie,null),t(ie,as),t(ie,ko),t(V,ls),t(V,O),p(rt,O,null),t(O,is),t(O,Io),t(O,ms),p(me,O,null),i(e,qn,l),p(st,e,l),i(e,Zn,l),i(e,A,l),p(at,A,null),t(A,ds),t(A,Ao),t(A,ps),t(A,de),p(lt,de,null),t(de,gs),t(de,jo),t(A,cs),t(A,pe),p(it,pe,null),t(pe,fs),t(pe,Lo),t(A,us),t(A,ge),p(mt,ge,null),t(ge,hs),t(ge,Jo),t(A,$s),t(A,Y),p(dt,Y,null),t(Y,bs),t(Y,Uo),t(Y,vs),p(ce,Y,null),t(A,_s),t(A,fe),p(pt,fe,null),t(fe,ys),t(fe,Po),i(e,Wn,l),i(e,z,l),p(gt,z,null),t(z,xs),t(z,Ho),t(z,Ts),t(z,ue),p(ct,ue,null),t(ue,ws),t(ue,Eo),i(e,Bn,l),i(e,F,l),p(ft,F,null),t(F,Cs),t(F,No),t(F,Ms),t(F,he),p(ut,he,null),t(he,ks),t(he,Vo),i(e,zn,l),p(ht,e,l),i(e,Fn,l),p($t,e,l),i(e,Gn,l),i(e,G,l),p(bt,G,null),t(G,Is),t(G,Do),t(G,As),p($e,G,null),i(e,Sn,l),p(vt,e,l),i(e,Qn,l),i(e,M,l),p(_t,M,null),t(M,js),t(M,Ro),t(M,Ls),t(M,qo),t(M,Js),t(M,Zo),t(M,Us),t(M,be),p(yt,be,null),t(be,Ps),t(be,Wo),t(M,Hs),t(M,X),p(xt,X,null),t(X,Es),t(X,Bo),t(X,Ns),p(ve,X,null),t(M,Vs),t(M,_e),p(Tt,_e,null),t(_e,Ds),t(_e,zo),t(M,Rs),t(M,Z),p(wt,Z,null),t(Z,qs),t(Z,Fo),t(Z,Zs),p(ye,Z,null),t(Z,Ws),p(xe,Z,null),t(M,Bs),t(M,W),p(Ct,W,null),t(W,zs),t(W,Go),t(W,Fs),t(W,So),t(W,Gs),p(Te,W,null),t(M,Ss),t(M,B),p(Mt,B,null),t(B,Qs),t(B,Qo),t(B,Os),t(B,Oo),t(B,Ys),t(B,Yo),t(M,Xs),t(M,we),p(kt,we,null),t(we,Ks),t(we,Xo),i(e,On,l),p(It,e,l),i(e,Yn,l),i(e,j,l),p(At,j,null),t(j,ea),t(j,Ko),t(j,ta),t(j,Ce),p(jt,Ce,null),t(Ce,oa),t(Ce,en),t(j,na),t(j,Me),p(Lt,Me,null),t(Me,ra),t(Me,tn),t(j,sa),t(j,ke),p(Jt,ke,null),t(ke,aa),t(ke,on),t(j,la),t(j,Ie),p(Ut,Ie,null),t(Ie,ia),t(Ie,nn),t(j,ma),t(j,Ae),p(Pt,Ae,null),t(Ae,da),t(Ae,rn),i(e,Xn,l),p(Ht,e,l),i(e,Kn,l),i(e,L,l),p(Et,L,null),t(L,pa),t(L,sn),t(L,ga),t(L,an),t(L,ca),t(L,je),p(Nt,je,null),t(je,fa),t(je,ln),t(L,ua),t(L,Le),p(Vt,Le,null),t(Le,ha),t(Le,mn),t(L,$a),t(L,Je),p(Dt,Je,null),t(Je,ba),t(Je,dn),t(L,va),t(L,Ue),p(Rt,Ue,null),t(Ue,_a),t(Ue,pn),i(e,er,l),p(qt,e,l),i(e,tr,l),i(e,ee,l),p(Zt,ee,null),t(ee,ya),t(ee,gn),i(e,or,l),p(Wt,e,l),i(e,nr,l),i(e,D,l),p(Bt,D,null),t(D,xa),t(D,cn),t(D,Ta),t(D,fn),t(D,wa),p(Pe,D,null),i(e,rr,l),p(zt,e,l),i(e,sr,l),i(e,Ft,l),i(e,ar,l),i(e,Gt,l),i(e,lr,l),p(St,e,l),i(e,ir,l),i(e,Qt,l),i(e,mr,l),p(Ot,e,l),i(e,dr,l),i(e,S,l),p(Yt,S,null),t(S,Ca),t(S,un),t(S,Ma),t(S,hn),i(e,pr,l),p(Xt,e,l),i(e,gr,l),i(e,Kt,l),i(e,cr,l),i(e,eo,l),i(e,fr,l),i(e,to,l),i(e,ur,l),i(e,oo,l),i(e,hr,l),p(no,e,l),i(e,$r,l),i(e,te,l),p(ro,te,null),t(te,ka),t(te,$n),i(e,br,l),p(so,e,l),i(e,vr,l),i(e,H,l),p(ao,H,null),t(H,Ia),t(H,bn),t(H,Aa),t(H,He),p(lo,He,null),t(He,ja),t(He,vn),t(H,La),t(H,Ee),p(io,Ee,null),t(Ee,Ja),t(Ee,_n),t(H,Ua),t(H,Ne),p(mo,Ne,null),t(Ne,Pa),t(Ne,yn),i(e,_r,l),p(po,e,l),i(e,yr,l),i(e,R,l),p(go,R,null),t(R,Ha),t(R,xn),t(R,Ea),t(R,Ve),p(co,Ve,null),t(Ve,Na),t(Ve,Tn),t(R,Va),t(R,De),p(fo,De,null),t(De,Da),t(De,wn),i(e,xr,l),p(uo,e,l),i(e,Tr,l),i(e,Jn,l),wr=!0},p(e,[l]){const q={};l&2&&(q.$$scope={dirty:l,ctx:e}),C.$set(q);const ho={};l&2&&(ho.$$scope={dirty:l,ctx:e}),me.$set(ho);const $o={};l&2&&($o.$$scope={dirty:l,ctx:e}),ce.$set($o);const bo={};l&2&&(bo.$$scope={dirty:l,ctx:e}),$e.$set(bo);const vo={};l&2&&(vo.$$scope={dirty:l,ctx:e}),ve.$set(vo);const Q={};l&2&&(Q.$$scope={dirty:l,ctx:e}),ye.$set(Q);const _o={};l&2&&(_o.$$scope={dirty:l,ctx:e}),xe.$set(_o);const oe={};l&2&&(oe.$$scope={dirty:l,ctx:e}),Te.$set(oe);const U={};l&2&&(U.$$scope={dirty:l,ctx:e}),Pe.$set(U)},i(e){wr||(g(w.$$.fragment,e),g(C.$$.fragment,e),g(Fe.$$.fragment,e),g(Qe.$$.fragment,e),g(Oe.$$.fragment,e),g(Ye.$$.fragment,e),g(Xe.$$.fragment,e),g(Ke.$$.fragment,e),g(et.$$.fragment,e),g(tt.$$.fragment,e),g(ot.$$.fragment,e),g(nt.$$.fragment,e),g(rt.$$.fragment,e),g(me.$$.fragment,e),g(st.$$.fragment,e),g(at.$$.fragment,e),g(lt.$$.fragment,e),g(it.$$.fragment,e),g(mt.$$.fragment,e),g(dt.$$.fragment,e),g(ce.$$.fragment,e),g(pt.$$.fragment,e),g(gt.$$.fragment,e),g(ct.$$.fragment,e),g(ft.$$.fragment,e),g(ut.$$.fragment,e),g(ht.$$.fragment,e),g($t.$$.fragment,e),g(bt.$$.fragment,e),g($e.$$.fragment,e),g(vt.$$.fragment,e),g(_t.$$.fragment,e),g(yt.$$.fragment,e),g(xt.$$.fragment,e),g(ve.$$.fragment,e),g(Tt.$$.fragment,e),g(wt.$$.fragment,e),g(ye.$$.fragment,e),g(xe.$$.fragment,e),g(Ct.$$.fragment,e),g(Te.$$.fragment,e),g(Mt.$$.fragment,e),g(kt.$$.fragment,e),g(It.$$.fragment,e),g(At.$$.fragment,e),g(jt.$$.fragment,e),g(Lt.$$.fragment,e),g(Jt.$$.fragment,e),g(Ut.$$.fragment,e),g(Pt.$$.fragment,e),g(Ht.$$.fragment,e),g(Et.$$.fragment,e),g(Nt.$$.fragment,e),g(Vt.$$.fragment,e),g(Dt.$$.fragment,e),g(Rt.$$.fragment,e),g(qt.$$.fragment,e),g(Zt.$$.fragment,e),g(Wt.$$.fragment,e),g(Bt.$$.fragment,e),g(Pe.$$.fragment,e),g(zt.$$.fragment,e),g(St.$$.fragment,e),g(Ot.$$.fragment,e),g(Yt.$$.fragment,e),g(Xt.$$.fragment,e),g(no.$$.fragment,e),g(ro.$$.fragment,e),g(so.$$.fragment,e),g(ao.$$.fragment,e),g(lo.$$.fragment,e),g(io.$$.fragment,e),g(mo.$$.fragment,e),g(po.$$.fragment,e),g(go.$$.fragment,e),g(co.$$.fragment,e),g(fo.$$.fragment,e),g(uo.$$.fragment,e),wr=!0)},o(e){c(w.$$.fragment,e),c(C.$$.fragment,e),c(Fe.$$.fragment,e),c(Qe.$$.fragment,e),c(Oe.$$.fragment,e),c(Ye.$$.fragment,e),c(Xe.$$.fragment,e),c(Ke.$$.fragment,e),c(et.$$.fragment,e),c(tt.$$.fragment,e),c(ot.$$.fragment,e),c(nt.$$.fragment,e),c(rt.$$.fragment,e),c(me.$$.fragment,e),c(st.$$.fragment,e),c(at.$$.fragment,e),c(lt.$$.fragment,e),c(it.$$.fragment,e),c(mt.$$.fragment,e),c(dt.$$.fragment,e),c(ce.$$.fragment,e),c(pt.$$.fragment,e),c(gt.$$.fragment,e),c(ct.$$.fragment,e),c(ft.$$.fragment,e),c(ut.$$.fragment,e),c(ht.$$.fragment,e),c($t.$$.fragment,e),c(bt.$$.fragment,e),c($e.$$.fragment,e),c(vt.$$.fragment,e),c(_t.$$.fragment,e),c(yt.$$.fragment,e),c(xt.$$.fragment,e),c(ve.$$.fragment,e),c(Tt.$$.fragment,e),c(wt.$$.fragment,e),c(ye.$$.fragment,e),c(xe.$$.fragment,e),c(Ct.$$.fragment,e),c(Te.$$.fragment,e),c(Mt.$$.fragment,e),c(kt.$$.fragment,e),c(It.$$.fragment,e),c(At.$$.fragment,e),c(jt.$$.fragment,e),c(Lt.$$.fragment,e),c(Jt.$$.fragment,e),c(Ut.$$.fragment,e),c(Pt.$$.fragment,e),c(Ht.$$.fragment,e),c(Et.$$.fragment,e),c(Nt.$$.fragment,e),c(Vt.$$.fragment,e),c(Dt.$$.fragment,e),c(Rt.$$.fragment,e),c(qt.$$.fragment,e),c(Zt.$$.fragment,e),c(Wt.$$.fragment,e),c(Bt.$$.fragment,e),c(Pe.$$.fragment,e),c(zt.$$.fragment,e),c(St.$$.fragment,e),c(Ot.$$.fragment,e),c(Yt.$$.fragment,e),c(Xt.$$.fragment,e),c(no.$$.fragment,e),c(ro.$$.fragment,e),c(so.$$.fragment,e),c(ao.$$.fragment,e),c(lo.$$.fragment,e),c(io.$$.fragment,e),c(mo.$$.fragment,e),c(po.$$.fragment,e),c(go.$$.fragment,e),c(co.$$.fragment,e),c(fo.$$.fragment,e),c(uo.$$.fragment,e),wr=!1},d(e){e&&(r(T),r(b),r(v),r(h),r(Un),r(ze),r(Pn),r(Hn),r(Ge),r(En),r(Se),r(Nn),r(Vn),r(P),r(Dn),r(Rn),r(V),r(qn),r(Zn),r(A),r(Wn),r(z),r(Bn),r(F),r(zn),r(Fn),r(Gn),r(G),r(Sn),r(Qn),r(M),r(On),r(Yn),r(j),r(Xn),r(Kn),r(L),r(er),r(tr),r(ee),r(or),r(nr),r(D),r(rr),r(sr),r(Ft),r(ar),r(Gt),r(lr),r(ir),r(Qt),r(mr),r(dr),r(S),r(pr),r(gr),r(Kt),r(cr),r(eo),r(fr),r(to),r(ur),r(oo),r(hr),r($r),r(te),r(br),r(vr),r(H),r(_r),r(yr),r(R),r(xr),r(Tr),r(Jn)),r(u),f(w,e),f(C,e),f(Fe,e),f(Qe,e),f(Oe),f(Ye),f(Xe),f(Ke),f(et),f(tt,e),f(ot),f(nt),f(rt),f(me),f(st,e),f(at),f(lt),f(it),f(mt),f(dt),f(ce),f(pt),f(gt),f(ct),f(ft),f(ut),f(ht,e),f($t,e),f(bt),f($e),f(vt,e),f(_t),f(yt),f(xt),f(ve),f(Tt),f(wt),f(ye),f(xe),f(Ct),f(Te),f(Mt),f(kt),f(It,e),f(At),f(jt),f(Lt),f(Jt),f(Ut),f(Pt),f(Ht,e),f(Et),f(Nt),f(Vt),f(Dt),f(Rt),f(qt,e),f(Zt),f(Wt,e),f(Bt),f(Pe),f(zt,e),f(St,e),f(Ot,e),f(Yt),f(Xt,e),f(no,e),f(ro),f(so,e),f(ao),f(lo),f(io),f(mo),f(po,e),f(go),f(co),f(fo),f(uo,e)}}}const ui='{"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 hi(I){return ei(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class wi extends ti{constructor(u){super(),oi(this,u,hi,fi,Kl,{})}}export{wi as component};

Xet Storage Details

Size:
86.1 kB
·
Xet hash:
819dac67bc5cfc105284259b474623571ed09a13a486e6d4bf624d446c3e1b6b

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