import{s as ka,o as Ca,n as z}from"../chunks/scheduler.9bc65507.js";import{S as Ia,i as Ha,g as i,s as r,r as g,A as ja,h as m,f as o,c as n,j as T,u as f,x as v,k as x,y as t,a as d,v as u,d as h,t as $,w as _}from"../chunks/index.707bf1b6.js";import{T as Ao}from"../chunks/Tip.c2ecdbf4.js";import{D as A}from"../chunks/Docstring.17db21ae.js";import{C as qt}from"../chunks/CodeBlock.54a9f38d.js";import{E as Ut}from"../chunks/ExampleCodeBlock.4f515aa9.js";import{H}from"../chunks/Heading.342b1fa6.js";function La(M){let l,y=`Transformers Agents は実験的な API であり、いつでも変更される可能性があります。エージェントから返される結果
API または基礎となるモデルは変更される傾向があるため、変更される可能性があります。`;return{c(){l=i("p"),l.textContent=y},l(p){l=m(p,"P",{"data-svelte-h":!0}),v(l)!=="svelte-1j35sfa"&&(l.textContent=y)},m(p,c){d(p,l,c)},p:z,d(p){p&&o(l)}}}function Pa(M){let l,y="Example:",p,c,b;return c=new qt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEhmQWdlbnQlMEElMEFhZ2VudCUyMCUzRCUyMEhmQWdlbnQoJTIyaHR0cHMlM0ElMkYlMkZhcGktaW5mZXJlbmNlLmh1Z2dpbmdmYWNlLmNvJTJGbW9kZWxzJTJGYmlnY29kZSUyRnN0YXJjb2RlciUyMiklMEFhZ2VudC5ydW4oJTIySXMlMjB0aGUlMjBmb2xsb3dpbmclMjAlNjB0ZXh0JTYwJTIwKGluJTIwU3BhbmlzaCklMjBwb3NpdGl2ZSUyMG9yJTIwbmVnYXRpdmUlM0YlMjIlMkMlMjB0ZXh0JTNEJTIyJUMyJUExRXN0ZSUyMGVzJTIwdW4lMjBBUEklMjBtdXklMjBhZ3JhZGFibGUhJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> HfAgent

agent = HfAgent(<span class="hljs-string">&quot;https://api-inference.huggingface.co/models/bigcode/starcoder&quot;</span>)
agent.run(<span class="hljs-string">&quot;Is the following \`text\` (in Spanish) positive or negative?&quot;</span>, text=<span class="hljs-string">&quot;¡Este es un API muy agradable!&quot;</span>)`,wrap:!1}}),{c(){l=i("p"),l.textContent=y,p=r(),g(c.$$.fragment)},l(a){l=m(a,"P",{"data-svelte-h":!0}),v(l)!=="svelte-11lpom8"&&(l.textContent=y),p=n(a),f(c.$$.fragment,a)},m(a,w){d(a,l,w),d(a,p,w),u(c,a,w),b=!0},p:z,i(a){b||(h(c.$$.fragment,a),b=!0)},o(a){$(c.$$.fragment,a),b=!1},d(a){a&&(o(l),o(p)),_(c,a)}}}function Ja(M){let l,y="Example:",p,c,b;return c=new qt({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b01vZGVsRm9yQ2F1c2FsTE0lMkMlMjBBdXRvVG9rZW5pemVyJTJDJTIwTG9jYWxBZ2VudCUwQSUwQWNoZWNrcG9pbnQlMjAlM0QlMjAlMjJiaWdjb2RlJTJGc3RhcmNvZGVyJTIyJTBBbW9kZWwlMjAlM0QlMjBBdXRvTW9kZWxGb3JDYXVzYWxMTS5mcm9tX3ByZXRyYWluZWQoY2hlY2twb2ludCUyQyUyMGRldmljZV9tYXAlM0QlMjJhdXRvJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5iZmxvYXQxNiklMEF0b2tlbml6ZXIlMjAlM0QlMjBBdXRvVG9rZW5pemVyLmZyb21fcHJldHJhaW5lZChjaGVja3BvaW50KSUwQSUwQWFnZW50JTIwJTNEJTIwTG9jYWxBZ2VudChtb2RlbCUyQyUyMHRva2VuaXplciklMEFhZ2VudC5ydW4oJTIyRHJhdyUyMG1lJTIwYSUyMHBpY3R1cmUlMjBvZiUyMHJpdmVycyUyMGFuZCUyMGxha2VzLiUyMik=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoModelForCausalLM, AutoTokenizer, LocalAgent

checkpoint = <span class="hljs-string">&quot;bigcode/starcoder&quot;</span>
model = AutoModelForCausalLM.from_pretrained(checkpoint, device_map=<span class="hljs-string">&quot;auto&quot;</span>, torch_dtype=torch.bfloat16)
tokenizer = AutoTokenizer.from_pretrained(checkpoint)

agent = LocalAgent(model, tokenizer)
agent.run(<span class="hljs-string">&quot;Draw me a picture of rivers and lakes.&quot;</span>)`,wrap:!1}}),{c(){l=i("p"),l.textContent=y,p=r(),g(c.$$.fragment)},l(a){l=m(a,"P",{"data-svelte-h":!0}),v(l)!=="svelte-11lpom8"&&(l.textContent=y),p=n(a),f(c.$$.fragment,a)},m(a,w){d(a,l,w),d(a,p,w),u(c,a,w),b=!0},p:z,i(a){b||(h(c.$$.fragment,a),b=!0)},o(a){$(c.$$.fragment,a),b=!1},d(a){a&&(o(l),o(p)),_(c,a)}}}function Ua(M){let l,y="Example:",p,c,b;return c=new qt({props:{code:"aW1wb3J0JTIwdG9yY2glMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwTG9jYWxBZ2VudCUwQSUwQWFnZW50JTIwJTNEJTIwTG9jYWxBZ2VudC5mcm9tX3ByZXRyYWluZWQoJTIyYmlnY29kZSUyRnN0YXJjb2RlciUyMiUyQyUyMGRldmljZV9tYXAlM0QlMjJhdXRvJTIyJTJDJTIwdG9yY2hfZHR5cGUlM0R0b3JjaC5iZmxvYXQxNiklMEFhZ2VudC5ydW4oJTIyRHJhdyUyMG1lJTIwYSUyMHBpY3R1cmUlMjBvZiUyMHJpdmVycyUyMGFuZCUyMGxha2VzLiUyMik=",highlighted:`<span class="hljs-keyword">import</span> torch
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> LocalAgent

agent = LocalAgent.from_pretrained(<span class="hljs-string">&quot;bigcode/starcoder&quot;</span>, device_map=<span class="hljs-string">&quot;auto&quot;</span>, torch_dtype=torch.bfloat16)
agent.run(<span class="hljs-string">&quot;Draw me a picture of rivers and lakes.&quot;</span>)`,wrap:!1}}),{c(){l=i("p"),l.textContent=y,p=r(),g(c.$$.fragment)},l(a){l=m(a,"P",{"data-svelte-h":!0}),v(l)!=="svelte-11lpom8"&&(l.textContent=y),p=n(a),f(c.$$.fragment,a)},m(a,w){d(a,l,w),d(a,p,w),u(c,a,w),b=!0},p:z,i(a){b||(h(c.$$.fragment,a),b=!0)},o(a){$(c.$$.fragment,a),b=!1},d(a){a&&(o(l),o(p)),_(c,a)}}}function qa(M){let l,y=`The openAI models are used in generation mode, so even for the <code>chat()</code> API, it’s better to use models like
<code>&quot;text-davinci-003&quot;</code> over the chat-GPT variant. Proper support for chat-GPT models will come in a next version.`;return{c(){l=i("p"),l.innerHTML=y},l(p){l=m(p,"P",{"data-svelte-h":!0}),v(l)!=="svelte-3idp4e"&&(l.innerHTML=y)},m(p,c){d(p,l,c)},p:z,d(p){p&&o(l)}}}function Ea(M){let l,y="Example:",p,c,b;return c=new qt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyME9wZW5BaUFnZW50JTBBJTBBYWdlbnQlMjAlM0QlMjBPcGVuQWlBZ2VudChtb2RlbCUzRCUyMnRleHQtZGF2aW5jaS0wMDMlMjIlMkMlMjBhcGlfa2V5JTNEeHh4KSUwQWFnZW50LnJ1biglMjJJcyUyMHRoZSUyMGZvbGxvd2luZyUyMCU2MHRleHQlNjAlMjAoaW4lMjBTcGFuaXNoKSUyMHBvc2l0aXZlJTIwb3IlMjBuZWdhdGl2ZSUzRiUyMiUyQyUyMHRleHQlM0QlMjIlQzIlQTFFc3RlJTIwZXMlMjB1biUyMEFQSSUyMG11eSUyMGFncmFkYWJsZSElMjIp",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> OpenAiAgent

agent = OpenAiAgent(model=<span class="hljs-string">&quot;text-davinci-003&quot;</span>, api_key=xxx)
agent.run(<span class="hljs-string">&quot;Is the following \`text\` (in Spanish) positive or negative?&quot;</span>, text=<span class="hljs-string">&quot;¡Este es un API muy agradable!&quot;</span>)`,wrap:!1}}),{c(){l=i("p"),l.textContent=y,p=r(),g(c.$$.fragment)},l(a){l=m(a,"P",{"data-svelte-h":!0}),v(l)!=="svelte-11lpom8"&&(l.textContent=y),p=n(a),f(c.$$.fragment,a)},m(a,w){d(a,l,w),d(a,p,w),u(c,a,w),b=!0},p:z,i(a){b||(h(c.$$.fragment,a),b=!0)},o(a){$(c.$$.fragment,a),b=!1},d(a){a&&(o(l),o(p)),_(c,a)}}}function Za(M){let l,y=`The openAI models are used in generation mode, so even for the <code>chat()</code> API, it’s better to use models like
<code>&quot;text-davinci-003&quot;</code> over the chat-GPT variant. Proper support for chat-GPT models will come in a next version.`;return{c(){l=i("p"),l.innerHTML=y},l(p){l=m(p,"P",{"data-svelte-h":!0}),v(l)!=="svelte-3idp4e"&&(l.innerHTML=y)},m(p,c){d(p,l,c)},p:z,d(p){p&&o(l)}}}function Wa(M){let l,y="Example:",p,c,b;return c=new qt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEF6dXJlT3BlbkFpQWdlbnQlMEElMEFhZ2VudCUyMCUzRCUyMEF6dXJlQWlBZ2VudChkZXBsb3ltZW50X2lkJTNEJTIyRGF2aW5jaS0wMDMlMjIlMkMlMjBhcGlfa2V5JTNEeHh4JTJDJTIwcmVzb3VyY2VfbmFtZSUzRHl5eSklMEFhZ2VudC5ydW4oJTIySXMlMjB0aGUlMjBmb2xsb3dpbmclMjAlNjB0ZXh0JTYwJTIwKGluJTIwU3BhbmlzaCklMjBwb3NpdGl2ZSUyMG9yJTIwbmVnYXRpdmUlM0YlMjIlMkMlMjB0ZXh0JTNEJTIyJUMyJUExRXN0ZSUyMGVzJTIwdW4lMjBBUEklMjBtdXklMjBhZ3JhZGFibGUhJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AzureOpenAiAgent

agent = AzureAiAgent(deployment_id=<span class="hljs-string">&quot;Davinci-003&quot;</span>, api_key=xxx, resource_name=yyy)
agent.run(<span class="hljs-string">&quot;Is the following \`text\` (in Spanish) positive or negative?&quot;</span>, text=<span class="hljs-string">&quot;¡Este es un API muy agradable!&quot;</span>)`,wrap:!1}}),{c(){l=i("p"),l.textContent=y,p=r(),g(c.$$.fragment)},l(a){l=m(a,"P",{"data-svelte-h":!0}),v(l)!=="svelte-11lpom8"&&(l.textContent=y),p=n(a),f(c.$$.fragment,a)},m(a,w){d(a,l,w),d(a,p,w),u(c,a,w),b=!0},p:z,i(a){b||(h(c.$$.fragment,a),b=!0)},o(a){$(c.$$.fragment,a),b=!1},d(a){a&&(o(l),o(p)),_(c,a)}}}function Ra(M){let l,y="Example:",p,c,b;return c=new qt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEhmQWdlbnQlMEElMEFhZ2VudCUyMCUzRCUyMEhmQWdlbnQoJTIyaHR0cHMlM0ElMkYlMkZhcGktaW5mZXJlbmNlLmh1Z2dpbmdmYWNlLmNvJTJGbW9kZWxzJTJGYmlnY29kZSUyRnN0YXJjb2RlciUyMiklMEFhZ2VudC5jaGF0KCUyMkRyYXclMjBtZSUyMGElMjBwaWN0dXJlJTIwb2YlMjByaXZlcnMlMjBhbmQlMjBsYWtlcyUyMiklMEElMEFhZ2VudC5jaGF0KCUyMlRyYW5zZm9ybSUyMHRoZSUyMHBpY3R1cmUlMjBzbyUyMHRoYXQlMjB0aGVyZSUyMGlzJTIwYSUyMHJvY2slMjBpbiUyMHRoZXJlJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> HfAgent

agent = HfAgent(<span class="hljs-string">&quot;https://api-inference.huggingface.co/models/bigcode/starcoder&quot;</span>)
agent.chat(<span class="hljs-string">&quot;Draw me a picture of rivers and lakes&quot;</span>)

agent.chat(<span class="hljs-string">&quot;Transform the picture so that there is a rock in there&quot;</span>)`,wrap:!1}}),{c(){l=i("p"),l.textContent=y,p=r(),g(c.$$.fragment)},l(a){l=m(a,"P",{"data-svelte-h":!0}),v(l)!=="svelte-11lpom8"&&(l.textContent=y),p=n(a),f(c.$$.fragment,a)},m(a,w){d(a,l,w),d(a,p,w),u(c,a,w),b=!0},p:z,i(a){b||(h(c.$$.fragment,a),b=!0)},o(a){$(c.$$.fragment,a),b=!1},d(a){a&&(o(l),o(p)),_(c,a)}}}function za(M){let l,y="Example:",p,c,b;return c=new qt({props:{code:"ZnJvbSUyMHRyYW5zZm9ybWVycyUyMGltcG9ydCUyMEhmQWdlbnQlMEElMEFhZ2VudCUyMCUzRCUyMEhmQWdlbnQoJTIyaHR0cHMlM0ElMkYlMkZhcGktaW5mZXJlbmNlLmh1Z2dpbmdmYWNlLmNvJTJGbW9kZWxzJTJGYmlnY29kZSUyRnN0YXJjb2RlciUyMiklMEFhZ2VudC5ydW4oJTIyRHJhdyUyMG1lJTIwYSUyMHBpY3R1cmUlMjBvZiUyMHJpdmVycyUyMGFuZCUyMGxha2VzJTIyKQ==",highlighted:`<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> HfAgent

agent = HfAgent(<span class="hljs-string">&quot;https://api-inference.huggingface.co/models/bigcode/starcoder&quot;</span>)
agent.run(<span class="hljs-string">&quot;Draw me a picture of rivers and lakes&quot;</span>)`,wrap:!1}}),{c(){l=i("p"),l.textContent=y,p=r(),g(c.$$.fragment)},l(a){l=m(a,"P",{"data-svelte-h":!0}),v(l)!=="svelte-11lpom8"&&(l.textContent=y),p=n(a),f(c.$$.fragment,a)},m(a,w){d(a,l,w),d(a,p,w),u(c,a,w),b=!0},p:z,i(a){b||(h(c.$$.fragment,a),b=!0)},o(a){$(c.$$.fragment,a),b=!1},d(a){a&&(o(l),o(p)),_(c,a)}}}function Ga(M){let l,y=`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(){l=i("p"),l.textContent=y},l(p){l=m(p,"P",{"data-svelte-h":!0}),v(l)!=="svelte-1kcherd"&&(l.textContent=y)},m(p,c){d(p,l,c)},p:z,d(p){p&&o(l)}}}function Va(M){let l,y=`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(){l=i("p"),l.textContent=y},l(p){l=m(p,"P",{"data-svelte-h":!0}),v(l)!=="svelte-fpk7e5"&&(l.textContent=y)},m(p,c){d(p,l,c)},p:z,d(p){p&&o(l)}}}function Na(M){let l,y,p,c,b,a,w,Mo,Pe,En=`エージェントとツールの詳細については、<a href="../transformers_agents">入門ガイド</a> を必ずお読みください。このページ
基礎となるクラスの API ドキュメントが含まれています。`,ko,Je,Co,Ue,Zn='私たちは 3 種類のエージェントを提供します。<a href="/docs/transformers/v4.39.2/ja/main_classes/agent#transformers.HfAgent">HfAgent</a> はオープンソース モデルの推論エンドポイントを使用し、<a href="/docs/transformers/v4.39.2/ja/main_classes/agent#transformers.LocalAgent">LocalAgent</a> は選択したモデルをローカルで使用し、<a href="/docs/transformers/v4.39.2/ja/main_classes/agent#transformers.OpenAiAgent">OpenAiAgent</a> は OpenAI クローズド モデルを使用します。',Io,qe,Ho,G,Ee,wr,Et,Wn="Agent that uses an inference endpoint to generate code.",Tr,ae,jo,Ze,Lo,P,We,xr,Zt,Rn="Agent that uses a local model and tokenizer to generate code.",Ar,se,Mr,B,Re,kr,Wt,zn="Convenience method to build a <code>LocalAgent</code> from a pretrained checkpoint.",Cr,le,Po,ze,Jo,J,Ge,Ir,Rt,Gn="Agent that uses the openai API to generate code.",Hr,ie,jr,me,Uo,Ve,qo,U,Ne,Lr,zt,Vn=`Agent that uses Azure OpenAI to generate code. See the <a href="https://learn.microsoft.com/en-us/azure/cognitive-services/openai/" rel="nofollow">official
documentation</a> to learn how to deploy an openAI
model on Azure`,Pr,de,Jr,pe,Eo,De,Zo,j,Ye,Ur,Gt,Nn="Base class for all agents which contains the main API methods.",qr,F,Be,Er,Vt,Dn="Sends a new request to the agent in a chat. Will use the previous ones in its history.",Zr,ce,Wr,S,Fe,Rr,Nt,Yn="Sends a request to the agent.",zr,ge,Gr,fe,Se,Vr,Dt,Bn='Clears the history of prior calls to <a href="/docs/transformers/v4.39.2/ja/main_classes/agent#transformers.Agent.chat">chat()</a>.',Wo,Qe,Ro,Xe,zo,V,Oe,Nr,Yt,Fn="Main function to quickly load a tool, be it on the Hub or in the Transformers library.",Dr,ue,Go,Ke,Vo,k,et,Yr,Bt,Sn=`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:`,Br,Ft,Qn=`<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>List[str]</code>) — The list of modalities expected for the inputs (in the same order as in the call).
Modalitiies should be <code>&quot;text&quot;</code>, <code>&quot;image&quot;</code> or <code>&quot;audio&quot;</code>. This is only used by <code>launch_gradio_demo</code> or to make a
nice space from your tool.</li> <li><strong>outputs</strong> (<code>List[str]</code>) — The list of modalities returned but the tool (in the same order as the return of the
call method). Modalitiies should be <code>&quot;text&quot;</code>, <code>&quot;image&quot;</code> or <code>&quot;audio&quot;</code>. This is only used by <code>launch_gradio_demo</code>
or to make a nice space from your tool.</li>`,Fr,St,Xn=`You can also override the method <a href="/docs/transformers/v4.39.2/ja/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/v4.39.2/ja/main_classes/agent#transformers.Tool.setup">setup()</a> will be called the first time you use your tool, but not at
instantiation.`,Sr,he,tt,Qr,Qt,On='Creates a <a href="/docs/transformers/v4.39.2/ja/main_classes/agent#transformers.Tool">Tool</a> from a gradio tool.',Xr,Q,ot,Or,Xt,Kn="Loads a tool defined on the Hub.",Kr,$e,en,_e,rt,tn,Ot,ea="Upload the tool to the Hub.",on,R,nt,rn,Kt,ta=`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:`,nn,eo,oa=`<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>`,an,to,ra="You should only use this method to save tools that are defined in a separate module (not <code>__main__</code>).",sn,ve,at,ln,oo,na=`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.`,No,st,Do,I,lt,mn,ro,aa=`A <a href="/docs/transformers/v4.39.2/ja/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/v4.39.2/ja/main_classes/agent#transformers.Tool">Tool</a>, you will
need to specify:`,dn,no,sa=`<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/v4.39.2/ja/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/v4.39.2/ja/model_doc/auto#transformers.AutoProcessor">AutoProcessor</a>) — The class to use to load the
post-processor (when different from the pre-processor).</li>`,pn,be,it,cn,ao,la="Uses the <code>post_processor</code> to decode the model output.",gn,ye,mt,fn,so,ia="Uses the <code>pre_processor</code> to prepare the inputs for the <code>model</code>.",un,we,dt,hn,lo,ma="Sends the inputs through the <code>model</code>.",$n,Te,pt,_n,io,da="Instantiates the <code>pre_processor</code>, <code>model</code> and <code>post_processor</code> if necessary.",Yo,ct,Bo,q,gt,vn,mo,pa='A <a href="/docs/transformers/v4.39.2/ja/main_classes/agent#transformers.Tool">Tool</a> that will make requests to an inference endpoint.',bn,xe,ft,yn,po,ca=`You can override this method in your custom class of <a href="/docs/transformers/v4.39.2/ja/main_classes/agent#transformers.RemoteTool">RemoteTool</a> to apply some custom post-processing of the
outputs of the endpoint.`,wn,X,ut,Tn,co,ga=`Prepare the inputs received for the HTTP client sending data to the endpoint. Positional arguments will be
matched with the signature of the <code>tool_class</code> if it was provided at instantation. Images will be encoded into
bytes.`,xn,go,fa='You can override this method in your custom class of <a href="/docs/transformers/v4.39.2/ja/main_classes/agent#transformers.RemoteTool">RemoteTool</a>.',Fo,ht,So,O,$t,An,fo,ua=`Launches a gradio demo for a tool. The corresponding tool class needs to properly implement the class attributes
<code>inputs</code> and <code>outputs</code>.`,Qo,_t,Xo,vt,ha=`エージェントはツール間であらゆる種類のオブジェクトを処理できます。ツールは完全にマルチモーダルであるため、受け取りと返品が可能です
テキスト、画像、オーディオ、ビデオなどのタイプ。ツール間の互換性を高めるためだけでなく、
これらの戻り値を ipython (jupyter、colab、ipython ノートブックなど) で正しくレンダリングするには、ラッパー クラスを実装します。
このタイプの周り。`,Oo,bt,$a=`ラップされたオブジェクトは最初と同じように動作し続けるはずです。テキストオブジェクトは依然として文字列または画像として動作する必要があります
オブジェクトは依然として <code>PIL.Image</code> として動作するはずです。`,Ko,yt,_a="これらのタイプには、次の 3 つの特定の目的があります。",er,wt,va=`<li>型に対して <code>to_raw</code> を呼び出すと、基になるオブジェクトが返されるはずです</li> <li>型に対して <code>to_string</code> を呼び出すと、オブジェクトを文字列として返す必要があります。<code>AgentText</code> の場合は文字列になる可能性があります。
ただし、他のインスタンスのオブジェクトのシリアル化されたバージョンのパスになります。</li> <li>ipython カーネルで表示すると、オブジェクトが正しく表示されるはずです</li>`,tr,Tt,or,K,xt,Mn,uo,ba="Text type returned by the agent. Behaves as a string.",rr,At,nr,E,Mt,kn,ho,ya="Image type returned by the agent. Behaves as a PIL.Image.",Cn,Ae,kt,In,$o,wa="Returns the “raw” version of that object. In the case of an AgentImage, it is a PIL.Image.",Hn,Me,Ct,jn,_o,Ta=`Returns the stringified version of that object. In the case of an AgentImage, it is a path to the serialized
version of the image.`,ar,It,sr,Z,Ht,Ln,vo,xa="Audio type returned by the agent.",Pn,ke,jt,Jn,bo,Aa="Returns the “raw” version of that object. It is a <code>torch.Tensor</code> object.",Un,Ce,Lt,qn,yo,Ma=`Returns the stringified version of that object. In the case of an AgentAudio, it is a path to the serialized
version of the audio.`,lr,xo,ir;return b=new H({props:{title:"エージェントとツール",local:"エージェントとツール",headingTag:"h1"}}),w=new Ao({props:{warning:!0,$$slots:{default:[La]},$$scope:{ctx:M}}}),Je=new H({props:{title:"エージェント",local:"エージェント",headingTag:"h2"}}),qe=new H({props:{title:"HfAgent",local:"transformers.HfAgent",headingTag:"h3"}}),Ee=new A({props:{name:"class transformers.HfAgent",anchor:"transformers.HfAgent",parameters:[{name:"url_endpoint",val:""},{name:"token",val:" = None"},{name:"chat_prompt_template",val:" = None"},{name:"run_prompt_template",val:" = None"},{name:"additional_tools",val:" = None"}],parametersDescription:[{anchor:"transformers.HfAgent.url_endpoint",description:`<strong>url_endpoint</strong> (<code>str</code>) &#x2014;
The name of the url endpoint to use.`,name:"url_endpoint"},{anchor:"transformers.HfAgent.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.HfAgent.chat_prompt_template",description:`<strong>chat_prompt_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pass along your own prompt if you want to override the default template for the <code>chat</code> method. Can be the
actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
<code>chat_prompt_template.txt</code> in this repo in this case.`,name:"chat_prompt_template"},{anchor:"transformers.HfAgent.run_prompt_template",description:`<strong>run_prompt_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pass along your own prompt if you want to override the default template for the <code>run</code> method. Can be the
actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
<code>run_prompt_template.txt</code> in this repo in this case.`,name:"run_prompt_template"},{anchor:"transformers.HfAgent.additional_tools",description:`<strong>additional_tools</strong> (<a href="/docs/transformers/v4.39.2/ja/main_classes/agent#transformers.Tool">Tool</a>, list of tools or dictionary with tool values, <em>optional</em>) &#x2014;
Any additional tools to include on top of the default ones. If you pass along a tool with the same name as
one of the default tools, that default tool will be overridden.`,name:"additional_tools"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/agents.py#L595"}}),ae=new Ut({props:{anchor:"transformers.HfAgent.example",$$slots:{default:[Pa]},$$scope:{ctx:M}}}),Ze=new H({props:{title:"LocalAgent",local:"transformers.LocalAgent",headingTag:"h3"}}),We=new A({props:{name:"class transformers.LocalAgent",anchor:"transformers.LocalAgent",parameters:[{name:"model",val:""},{name:"tokenizer",val:""},{name:"chat_prompt_template",val:" = None"},{name:"run_prompt_template",val:" = None"},{name:"additional_tools",val:" = None"}],parametersDescription:[{anchor:"transformers.LocalAgent.model",description:`<strong>model</strong> (<a href="/docs/transformers/v4.39.2/ja/main_classes/model#transformers.PreTrainedModel">PreTrainedModel</a>) &#x2014;
The model to use for the agent.`,name:"model"},{anchor:"transformers.LocalAgent.tokenizer",description:`<strong>tokenizer</strong> (<a href="/docs/transformers/v4.39.2/ja/main_classes/tokenizer#transformers.PreTrainedTokenizer">PreTrainedTokenizer</a>) &#x2014;
The tokenizer to use for the agent.`,name:"tokenizer"},{anchor:"transformers.LocalAgent.chat_prompt_template",description:`<strong>chat_prompt_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pass along your own prompt if you want to override the default template for the <code>chat</code> method. Can be the
actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
<code>chat_prompt_template.txt</code> in this repo in this case.`,name:"chat_prompt_template"},{anchor:"transformers.LocalAgent.run_prompt_template",description:`<strong>run_prompt_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pass along your own prompt if you want to override the default template for the <code>run</code> method. Can be the
actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
<code>run_prompt_template.txt</code> in this repo in this case.`,name:"run_prompt_template"},{anchor:"transformers.LocalAgent.additional_tools",description:`<strong>additional_tools</strong> (<a href="/docs/transformers/v4.39.2/ja/main_classes/agent#transformers.Tool">Tool</a>, list of tools or dictionary with tool values, <em>optional</em>) &#x2014;
Any additional tools to include on top of the default ones. If you pass along a tool with the same name as
one of the default tools, that default tool will be overridden.`,name:"additional_tools"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/agents.py#L666"}}),se=new Ut({props:{anchor:"transformers.LocalAgent.example",$$slots:{default:[Ja]},$$scope:{ctx:M}}}),Re=new A({props:{name:"from_pretrained",anchor:"transformers.LocalAgent.from_pretrained",parameters:[{name:"pretrained_model_name_or_path",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.LocalAgent.from_pretrained.pretrained_model_name_or_path",description:`<strong>pretrained_model_name_or_path</strong> (<code>str</code> or <code>os.PathLike</code>) &#x2014;
The name of a repo on the Hub or a local path to a folder containing both model and tokenizer.`,name:"pretrained_model_name_or_path"},{anchor:"transformers.LocalAgent.from_pretrained.kwargs",description:`<strong>kwargs</strong> (<code>Dict[str, Any]</code>, <em>optional</em>) &#x2014;
Keyword arguments passed along to <a href="/docs/transformers/v4.39.2/ja/main_classes/model#transformers.PreTrainedModel.from_pretrained">from_pretrained()</a>.`,name:"kwargs"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/agents.py#L711"}}),le=new Ut({props:{anchor:"transformers.LocalAgent.from_pretrained.example",$$slots:{default:[Ua]},$$scope:{ctx:M}}}),ze=new H({props:{title:"OpenAiAgent",local:"transformers.OpenAiAgent",headingTag:"h3"}}),Ge=new A({props:{name:"class transformers.OpenAiAgent",anchor:"transformers.OpenAiAgent",parameters:[{name:"model",val:" = 'text-davinci-003'"},{name:"api_key",val:" = None"},{name:"chat_prompt_template",val:" = None"},{name:"run_prompt_template",val:" = None"},{name:"additional_tools",val:" = None"}],parametersDescription:[{anchor:"transformers.OpenAiAgent.model",description:`<strong>model</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;text-davinci-003&quot;</code>) &#x2014;
The name of the OpenAI model to use.`,name:"model"},{anchor:"transformers.OpenAiAgent.api_key",description:`<strong>api_key</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The API key to use. If unset, will look for the environment variable <code>&quot;OPENAI_API_KEY&quot;</code>.`,name:"api_key"},{anchor:"transformers.OpenAiAgent.chat_prompt_template",description:`<strong>chat_prompt_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pass along your own prompt if you want to override the default template for the <code>chat</code> method. Can be the
actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
<code>chat_prompt_template.txt</code> in this repo in this case.`,name:"chat_prompt_template"},{anchor:"transformers.OpenAiAgent.run_prompt_template",description:`<strong>run_prompt_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pass along your own prompt if you want to override the default template for the <code>run</code> method. Can be the
actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
<code>run_prompt_template.txt</code> in this repo in this case.`,name:"run_prompt_template"},{anchor:"transformers.OpenAiAgent.additional_tools",description:`<strong>additional_tools</strong> (<a href="/docs/transformers/v4.39.2/ja/main_classes/agent#transformers.Tool">Tool</a>, list of tools or dictionary with tool values, <em>optional</em>) &#x2014;
Any additional tools to include on top of the default ones. If you pass along a tool with the same name as
one of the default tools, that default tool will be overridden.`,name:"additional_tools"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/agents.py#L371"}}),ie=new Ao({props:{warning:!0,$$slots:{default:[qa]},$$scope:{ctx:M}}}),me=new Ut({props:{anchor:"transformers.OpenAiAgent.example",$$slots:{default:[Ea]},$$scope:{ctx:M}}}),Ve=new H({props:{title:"AzureOpenAiAgent",local:"transformers.AzureOpenAiAgent",headingTag:"h3"}}),Ne=new A({props:{name:"class transformers.AzureOpenAiAgent",anchor:"transformers.AzureOpenAiAgent",parameters:[{name:"deployment_id",val:""},{name:"api_key",val:" = None"},{name:"resource_name",val:" = None"},{name:"api_version",val:" = '2022-12-01'"},{name:"is_chat_model",val:" = None"},{name:"chat_prompt_template",val:" = None"},{name:"run_prompt_template",val:" = None"},{name:"additional_tools",val:" = None"}],parametersDescription:[{anchor:"transformers.AzureOpenAiAgent.deployment_id",description:`<strong>deployment_id</strong> (<code>str</code>) &#x2014;
The name of the deployed Azure openAI model to use.`,name:"deployment_id"},{anchor:"transformers.AzureOpenAiAgent.api_key",description:`<strong>api_key</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The API key to use. If unset, will look for the environment variable <code>&quot;AZURE_OPENAI_API_KEY&quot;</code>.`,name:"api_key"},{anchor:"transformers.AzureOpenAiAgent.resource_name",description:`<strong>resource_name</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The name of your Azure OpenAI Resource. If unset, will look for the environment variable
<code>&quot;AZURE_OPENAI_RESOURCE_NAME&quot;</code>.`,name:"resource_name"},{anchor:"transformers.AzureOpenAiAgent.api_version",description:`<strong>api_version</strong> (<code>str</code>, <em>optional</em>, default to <code>&quot;2022-12-01&quot;</code>) &#x2014;
The API version to use for this agent.`,name:"api_version"},{anchor:"transformers.AzureOpenAiAgent.is_chat_mode",description:`<strong>is_chat_mode</strong> (<code>bool</code>, <em>optional</em>) &#x2014;
Whether you are using a completion model or a chat model (see note above, chat models won&#x2019;t be as
efficient). Will default to <code>gpt</code> being in the <code>deployment_id</code> or not.`,name:"is_chat_mode"},{anchor:"transformers.AzureOpenAiAgent.chat_prompt_template",description:`<strong>chat_prompt_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pass along your own prompt if you want to override the default template for the <code>chat</code> method. Can be the
actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
<code>chat_prompt_template.txt</code> in this repo in this case.`,name:"chat_prompt_template"},{anchor:"transformers.AzureOpenAiAgent.run_prompt_template",description:`<strong>run_prompt_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pass along your own prompt if you want to override the default template for the <code>run</code> method. Can be the
actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
<code>run_prompt_template.txt</code> in this repo in this case.`,name:"run_prompt_template"},{anchor:"transformers.AzureOpenAiAgent.additional_tools",description:`<strong>additional_tools</strong> (<a href="/docs/transformers/v4.39.2/ja/main_classes/agent#transformers.Tool">Tool</a>, list of tools or dictionary with tool values, <em>optional</em>) &#x2014;
Any additional tools to include on top of the default ones. If you pass along a tool with the same name as
one of the default tools, that default tool will be overridden.`,name:"additional_tools"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/agents.py#L469"}}),de=new Ao({props:{warning:!0,$$slots:{default:[Za]},$$scope:{ctx:M}}}),pe=new Ut({props:{anchor:"transformers.AzureOpenAiAgent.example",$$slots:{default:[Wa]},$$scope:{ctx:M}}}),De=new H({props:{title:"Agent",local:"transformers.Agent",headingTag:"h3"}}),Ye=new A({props:{name:"class transformers.Agent",anchor:"transformers.Agent",parameters:[{name:"chat_prompt_template",val:" = None"},{name:"run_prompt_template",val:" = None"},{name:"additional_tools",val:" = None"}],parametersDescription:[{anchor:"transformers.Agent.chat_prompt_template",description:`<strong>chat_prompt_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pass along your own prompt if you want to override the default template for the <code>chat</code> method. Can be the
actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
<code>chat_prompt_template.txt</code> in this repo in this case.`,name:"chat_prompt_template"},{anchor:"transformers.Agent.run_prompt_template",description:`<strong>run_prompt_template</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Pass along your own prompt if you want to override the default template for the <code>run</code> method. Can be the
actual prompt template or a repo ID (on the Hugging Face Hub). The prompt should be in a file named
<code>run_prompt_template.txt</code> in this repo in this case.`,name:"run_prompt_template"},{anchor:"transformers.Agent.additional_tools",description:`<strong>additional_tools</strong> (<a href="/docs/transformers/v4.39.2/ja/main_classes/agent#transformers.Tool">Tool</a>, list of tools or dictionary with tool values, <em>optional</em>) &#x2014;
Any additional tools to include on top of the default ones. If you pass along a tool with the same name as
one of the default tools, that default tool will be overridden.`,name:"additional_tools"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/agents.py#L196"}}),Be=new A({props:{name:"chat",anchor:"transformers.Agent.chat",parameters:[{name:"task",val:""},{name:"return_code",val:" = False"},{name:"remote",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Agent.chat.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; The task to perform",name:"task"},{anchor:"transformers.Agent.chat.return_code",description:`<strong>return_code</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to just return code and not evaluate it.`,name:"return_code"},{anchor:"transformers.Agent.chat.remote",description:`<strong>remote</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use remote tools (inference endpoints) instead of local ones.`,name:"remote"},{anchor:"transformers.Agent.chat.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/v4.39.2/src/transformers/tools/agents.py#L268"}}),ce=new Ut({props:{anchor:"transformers.Agent.chat.example",$$slots:{default:[Ra]},$$scope:{ctx:M}}}),Fe=new A({props:{name:"run",anchor:"transformers.Agent.run",parameters:[{name:"task",val:""},{name:"return_code",val:" = False"},{name:"remote",val:" = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"transformers.Agent.run.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; The task to perform",name:"task"},{anchor:"transformers.Agent.run.return_code",description:`<strong>return_code</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to just return code and not evaluate it.`,name:"return_code"},{anchor:"transformers.Agent.run.remote",description:`<strong>remote</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether or not to use remote tools (inference endpoints) instead of local ones.`,name:"remote"},{anchor:"transformers.Agent.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/v4.39.2/src/transformers/tools/agents.py#L325"}}),ge=new Ut({props:{anchor:"transformers.Agent.run.example",$$slots:{default:[za]},$$scope:{ctx:M}}}),Se=new A({props:{name:"prepare_for_new_chat",anchor:"transformers.Agent.prepare_for_new_chat",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/agents.py#L310"}}),Qe=new H({props:{title:"Tools",local:"tools",headingTag:"h2"}}),Xe=new H({props:{title:"load_tool",local:"transformers.load_tool",headingTag:"h3"}}),Oe=new A({props:{name:"transformers.load_tool",anchor:"transformers.load_tool",parameters:[{name:"task_or_repo_id",val:""},{name:"model_repo_id",val:" = None"},{name:"remote",val:" = False"},{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-captioning&quot;</code></li>
<li><code>&quot;image-question-answering&quot;</code></li>
<li><code>&quot;image-segmentation&quot;</code></li>
<li><code>&quot;speech-to-text&quot;</code></li>
<li><code>&quot;summarization&quot;</code></li>
<li><code>&quot;text-classification&quot;</code></li>
<li><code>&quot;text-question-answering&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.remote",description:`<strong>remote</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use your tool by downloading the model or (if it is available) with an inference endpoint.`,name:"remote"},{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/v4.39.2/src/transformers/tools/base.py#L637"}}),ue=new Ao({props:{warning:!0,$$slots:{default:[Ga]},$$scope:{ctx:M}}}),Ke=new H({props:{title:"Tool",local:"transformers.Tool",headingTag:"h3"}}),et=new A({props:{name:"class transformers.Tool",anchor:"transformers.Tool",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/base.py#L82"}}),tt=new A({props:{name:"from_gradio",anchor:"transformers.Tool.from_gradio",parameters:[{name:"gradio_tool",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/base.py#L341"}}),ot=new A({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:"remote",val:": bool = False"},{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.remote",description:`<strong>remote</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to use your tool by downloading the model or (if it is available) with an inference endpoint.`,name:"remote"},{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/v4.39.2/src/transformers/tools/base.py#L177"}}),$e=new Ao({props:{warning:!0,$$slots:{default:[Va]},$$scope:{ctx:M}}}),rt=new A({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/v4.39.2/src/transformers/tools/base.py#L297"}}),nt=new A({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/v4.39.2/src/transformers/tools/base.py#L123"}}),at=new A({props:{name:"setup",anchor:"transformers.Tool.setup",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/base.py#L116"}}),st=new H({props:{title:"PipelineTool",local:"transformers.PipelineTool",headingTag:"h3"}}),lt=new A({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/v4.39.2/ja/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/v4.39.2/src/transformers/tools/base.py#L444"}}),it=new A({props:{name:"decode",anchor:"transformers.PipelineTool.decode",parameters:[{name:"outputs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/base.py#L563"}}),mt=new A({props:{name:"encode",anchor:"transformers.PipelineTool.encode",parameters:[{name:"raw_inputs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/base.py#L550"}}),dt=new A({props:{name:"forward",anchor:"transformers.PipelineTool.forward",parameters:[{name:"inputs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/base.py#L556"}}),pt=new A({props:{name:"setup",anchor:"transformers.PipelineTool.setup",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/base.py#L524"}}),ct=new H({props:{title:"RemoteTool",local:"transformers.RemoteTool",headingTag:"h3"}}),gt=new A({props:{name:"class transformers.RemoteTool",anchor:"transformers.RemoteTool",parameters:[{name:"endpoint_url",val:" = None"},{name:"token",val:" = None"},{name:"tool_class",val:" = None"}],parametersDescription:[{anchor:"transformers.RemoteTool.endpoint_url",description:`<strong>endpoint_url</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The url of the endpoint to use.`,name:"endpoint_url"},{anchor:"transformers.RemoteTool.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.RemoteTool.tool_class",description:`<strong>tool_class</strong> (<code>type</code>, <em>optional</em>) &#x2014;
The corresponding <code>tool_class</code> if this is a remote version of an existing tool. Will help determine when
the output should be converted to another type (like images).`,name:"tool_class"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/base.py#L357"}}),ft=new A({props:{name:"extract_outputs",anchor:"transformers.RemoteTool.extract_outputs",parameters:[{name:"outputs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/base.py#L420"}}),ut=new A({props:{name:"prepare_inputs",anchor:"transformers.RemoteTool.prepare_inputs",parameters:[{name:"*args",val:""},{name:"**kwargs",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/base.py#L377"}}),ht=new H({props:{title:"launch_gradio_demo",local:"transformers.launch_gradio_demo",headingTag:"h3"}}),$t=new A({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/v4.39.2/src/transformers/tools/base.py#L584"}}),_t=new H({props:{title:"エージェントの種類",local:"エージェントの種類",headingTag:"h2"}}),Tt=new H({props:{title:"AgentText",local:"transformers.tools.agent_types.AgentText",headingTag:"h3"}}),xt=new A({props:{name:"class transformers.tools.agent_types.AgentText",anchor:"transformers.tools.agent_types.AgentText",parameters:[{name:"value",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/agent_types.py#L71"}}),At=new H({props:{title:"AgentImage",local:"transformers.tools.agent_types.AgentImage",headingTag:"h3"}}),Mt=new A({props:{name:"class transformers.tools.agent_types.AgentImage",anchor:"transformers.tools.agent_types.AgentImage",parameters:[{name:"value",val:""}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/agent_types.py#L83"}}),kt=new A({props:{name:"to_raw",anchor:"transformers.tools.agent_types.AgentImage.to_raw",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/agent_types.py#L115"}}),Ct=new A({props:{name:"to_string",anchor:"transformers.tools.agent_types.AgentImage.to_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/agent_types.py#L126"}}),It=new H({props:{title:"AgentAudio",local:"transformers.tools.agent_types.AgentAudio",headingTag:"h3"}}),Ht=new A({props:{name:"class transformers.tools.agent_types.AgentAudio",anchor:"transformers.tools.agent_types.AgentAudio",parameters:[{name:"value",val:""},{name:"samplerate",val:" = 16000"}],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/agent_types.py#L155"}}),jt=new A({props:{name:"to_raw",anchor:"transformers.tools.agent_types.AgentAudio.to_raw",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/agent_types.py#L186"}}),Lt=new A({props:{name:"to_string",anchor:"transformers.tools.agent_types.AgentAudio.to_string",parameters:[],source:"https://github.com/huggingface/transformers/blob/v4.39.2/src/transformers/tools/agent_types.py#L198"}}),{c(){l=i("meta"),y=r(),p=i("p"),c=r(),g(b.$$.fragment),a=r(),g(w.$$.fragment),Mo=r(),Pe=i("p"),Pe.innerHTML=En,ko=r(),g(Je.$$.fragment),Co=r(),Ue=i("p"),Ue.innerHTML=Zn,Io=r(),g(qe.$$.fragment),Ho=r(),G=i("div"),g(Ee.$$.fragment),wr=r(),Et=i("p"),Et.textContent=Wn,Tr=r(),g(ae.$$.fragment),jo=r(),g(Ze.$$.fragment),Lo=r(),P=i("div"),g(We.$$.fragment),xr=r(),Zt=i("p"),Zt.textContent=Rn,Ar=r(),g(se.$$.fragment),Mr=r(),B=i("div"),g(Re.$$.fragment),kr=r(),Wt=i("p"),Wt.innerHTML=zn,Cr=r(),g(le.$$.fragment),Po=r(),g(ze.$$.fragment),Jo=r(),J=i("div"),g(Ge.$$.fragment),Ir=r(),Rt=i("p"),Rt.textContent=Gn,Hr=r(),g(ie.$$.fragment),jr=r(),g(me.$$.fragment),Uo=r(),g(Ve.$$.fragment),qo=r(),U=i("div"),g(Ne.$$.fragment),Lr=r(),zt=i("p"),zt.innerHTML=Vn,Pr=r(),g(de.$$.fragment),Jr=r(),g(pe.$$.fragment),Eo=r(),g(De.$$.fragment),Zo=r(),j=i("div"),g(Ye.$$.fragment),Ur=r(),Gt=i("p"),Gt.textContent=Nn,qr=r(),F=i("div"),g(Be.$$.fragment),Er=r(),Vt=i("p"),Vt.textContent=Dn,Zr=r(),g(ce.$$.fragment),Wr=r(),S=i("div"),g(Fe.$$.fragment),Rr=r(),Nt=i("p"),Nt.textContent=Yn,zr=r(),g(ge.$$.fragment),Gr=r(),fe=i("div"),g(Se.$$.fragment),Vr=r(),Dt=i("p"),Dt.innerHTML=Bn,Wo=r(),g(Qe.$$.fragment),Ro=r(),g(Xe.$$.fragment),zo=r(),V=i("div"),g(Oe.$$.fragment),Nr=r(),Yt=i("p"),Yt.textContent=Fn,Dr=r(),g(ue.$$.fragment),Go=r(),g(Ke.$$.fragment),Vo=r(),k=i("div"),g(et.$$.fragment),Yr=r(),Bt=i("p"),Bt.innerHTML=Sn,Br=r(),Ft=i("ul"),Ft.innerHTML=Qn,Fr=r(),St=i("p"),St.innerHTML=Xn,Sr=r(),he=i("div"),g(tt.$$.fragment),Qr=r(),Qt=i("p"),Qt.innerHTML=On,Xr=r(),Q=i("div"),g(ot.$$.fragment),Or=r(),Xt=i("p"),Xt.textContent=Kn,Kr=r(),g($e.$$.fragment),en=r(),_e=i("div"),g(rt.$$.fragment),tn=r(),Ot=i("p"),Ot.textContent=ea,on=r(),R=i("div"),g(nt.$$.fragment),rn=r(),Kt=i("p"),Kt.innerHTML=ta,nn=r(),eo=i("ul"),eo.innerHTML=oa,an=r(),to=i("p"),to.innerHTML=ra,sn=r(),ve=i("div"),g(at.$$.fragment),ln=r(),oo=i("p"),oo.textContent=na,No=r(),g(st.$$.fragment),Do=r(),I=i("div"),g(lt.$$.fragment),mn=r(),ro=i("p"),ro.innerHTML=aa,dn=r(),no=i("ul"),no.innerHTML=sa,pn=r(),be=i("div"),g(it.$$.fragment),cn=r(),ao=i("p"),ao.innerHTML=la,gn=r(),ye=i("div"),g(mt.$$.fragment),fn=r(),so=i("p"),so.innerHTML=ia,un=r(),we=i("div"),g(dt.$$.fragment),hn=r(),lo=i("p"),lo.innerHTML=ma,$n=r(),Te=i("div"),g(pt.$$.fragment),_n=r(),io=i("p"),io.innerHTML=da,Yo=r(),g(ct.$$.fragment),Bo=r(),q=i("div"),g(gt.$$.fragment),vn=r(),mo=i("p"),mo.innerHTML=pa,bn=r(),xe=i("div"),g(ft.$$.fragment),yn=r(),po=i("p"),po.innerHTML=ca,wn=r(),X=i("div"),g(ut.$$.fragment),Tn=r(),co=i("p"),co.innerHTML=ga,xn=r(),go=i("p"),go.innerHTML=fa,Fo=r(),g(ht.$$.fragment),So=r(),O=i("div"),g($t.$$.fragment),An=r(),fo=i("p"),fo.innerHTML=ua,Qo=r(),g(_t.$$.fragment),Xo=r(),vt=i("p"),vt.textContent=ha,Oo=r(),bt=i("p"),bt.innerHTML=$a,Ko=r(),yt=i("p"),yt.textContent=_a,er=r(),wt=i("ul"),wt.innerHTML=va,tr=r(),g(Tt.$$.fragment),or=r(),K=i("div"),g(xt.$$.fragment),Mn=r(),uo=i("p"),uo.textContent=ba,rr=r(),g(At.$$.fragment),nr=r(),E=i("div"),g(Mt.$$.fragment),kn=r(),ho=i("p"),ho.textContent=ya,Cn=r(),Ae=i("div"),g(kt.$$.fragment),In=r(),$o=i("p"),$o.textContent=wa,Hn=r(),Me=i("div"),g(Ct.$$.fragment),jn=r(),_o=i("p"),_o.textContent=Ta,ar=r(),g(It.$$.fragment),sr=r(),Z=i("div"),g(Ht.$$.fragment),Ln=r(),vo=i("p"),vo.textContent=xa,Pn=r(),ke=i("div"),g(jt.$$.fragment),Jn=r(),bo=i("p"),bo.innerHTML=Aa,Un=r(),Ce=i("div"),g(Lt.$$.fragment),qn=r(),yo=i("p"),yo.textContent=Ma,lr=r(),xo=i("p"),this.h()},l(e){const s=ja("svelte-u9bgzb",document.head);l=m(s,"META",{name:!0,content:!0}),s.forEach(o),y=n(e),p=m(e,"P",{}),T(p).forEach(o),c=n(e),f(b.$$.fragment,e),a=n(e),f(w.$$.fragment,e),Mo=n(e),Pe=m(e,"P",{"data-svelte-h":!0}),v(Pe)!=="svelte-s8k95"&&(Pe.innerHTML=En),ko=n(e),f(Je.$$.fragment,e),Co=n(e),Ue=m(e,"P",{"data-svelte-h":!0}),v(Ue)!=="svelte-1tzxl56"&&(Ue.innerHTML=Zn),Io=n(e),f(qe.$$.fragment,e),Ho=n(e),G=m(e,"DIV",{class:!0});var ee=T(G);f(Ee.$$.fragment,ee),wr=n(ee),Et=m(ee,"P",{"data-svelte-h":!0}),v(Et)!=="svelte-1uej11q"&&(Et.textContent=Wn),Tr=n(ee),f(ae.$$.fragment,ee),ee.forEach(o),jo=n(e),f(Ze.$$.fragment,e),Lo=n(e),P=m(e,"DIV",{class:!0});var N=T(P);f(We.$$.fragment,N),xr=n(N),Zt=m(N,"P",{"data-svelte-h":!0}),v(Zt)!=="svelte-1q3iegi"&&(Zt.textContent=Rn),Ar=n(N),f(se.$$.fragment,N),Mr=n(N),B=m(N,"DIV",{class:!0});var te=T(B);f(Re.$$.fragment,te),kr=n(te),Wt=m(te,"P",{"data-svelte-h":!0}),v(Wt)!=="svelte-1qh3hl2"&&(Wt.innerHTML=zn),Cr=n(te),f(le.$$.fragment,te),te.forEach(o),N.forEach(o),Po=n(e),f(ze.$$.fragment,e),Jo=n(e),J=m(e,"DIV",{class:!0});var D=T(J);f(Ge.$$.fragment,D),Ir=n(D),Rt=m(D,"P",{"data-svelte-h":!0}),v(Rt)!=="svelte-182hy5g"&&(Rt.textContent=Gn),Hr=n(D),f(ie.$$.fragment,D),jr=n(D),f(me.$$.fragment,D),D.forEach(o),Uo=n(e),f(Ve.$$.fragment,e),qo=n(e),U=m(e,"DIV",{class:!0});var Y=T(U);f(Ne.$$.fragment,Y),Lr=n(Y),zt=m(Y,"P",{"data-svelte-h":!0}),v(zt)!=="svelte-1eoncpw"&&(zt.innerHTML=Vn),Pr=n(Y),f(de.$$.fragment,Y),Jr=n(Y),f(pe.$$.fragment,Y),Y.forEach(o),Eo=n(e),f(De.$$.fragment,e),Zo=n(e),j=m(e,"DIV",{class:!0});var W=T(j);f(Ye.$$.fragment,W),Ur=n(W),Gt=m(W,"P",{"data-svelte-h":!0}),v(Gt)!=="svelte-1phtukb"&&(Gt.textContent=Nn),qr=n(W),F=m(W,"DIV",{class:!0});var oe=T(F);f(Be.$$.fragment,oe),Er=n(oe),Vt=m(oe,"P",{"data-svelte-h":!0}),v(Vt)!=="svelte-1s1qxmr"&&(Vt.textContent=Dn),Zr=n(oe),f(ce.$$.fragment,oe),oe.forEach(o),Wr=n(W),S=m(W,"DIV",{class:!0});var re=T(S);f(Fe.$$.fragment,re),Rr=n(re),Nt=m(re,"P",{"data-svelte-h":!0}),v(Nt)!=="svelte-1685qxi"&&(Nt.textContent=Yn),zr=n(re),f(ge.$$.fragment,re),re.forEach(o),Gr=n(W),fe=m(W,"DIV",{class:!0});var Pt=T(fe);f(Se.$$.fragment,Pt),Vr=n(Pt),Dt=m(Pt,"P",{"data-svelte-h":!0}),v(Dt)!=="svelte-10dxnmh"&&(Dt.innerHTML=Bn),Pt.forEach(o),W.forEach(o),Wo=n(e),f(Qe.$$.fragment,e),Ro=n(e),f(Xe.$$.fragment,e),zo=n(e),V=m(e,"DIV",{class:!0});var ne=T(V);f(Oe.$$.fragment,ne),Nr=n(ne),Yt=m(ne,"P",{"data-svelte-h":!0}),v(Yt)!=="svelte-16uh3p8"&&(Yt.textContent=Fn),Dr=n(ne),f(ue.$$.fragment,ne),ne.forEach(o),Go=n(e),f(Ke.$$.fragment,e),Vo=n(e),k=m(e,"DIV",{class:!0});var C=T(k);f(et.$$.fragment,C),Yr=n(C),Bt=m(C,"P",{"data-svelte-h":!0}),v(Bt)!=="svelte-cca4c5"&&(Bt.innerHTML=Sn),Br=n(C),Ft=m(C,"UL",{"data-svelte-h":!0}),v(Ft)!=="svelte-1lb1si5"&&(Ft.innerHTML=Qn),Fr=n(C),St=m(C,"P",{"data-svelte-h":!0}),v(St)!=="svelte-15sjwe8"&&(St.innerHTML=Xn),Sr=n(C),he=m(C,"DIV",{class:!0});var Jt=T(he);f(tt.$$.fragment,Jt),Qr=n(Jt),Qt=m(Jt,"P",{"data-svelte-h":!0}),v(Qt)!=="svelte-1hhjuq8"&&(Qt.innerHTML=On),Jt.forEach(o),Xr=n(C),Q=m(C,"DIV",{class:!0});var wo=T(Q);f(ot.$$.fragment,wo),Or=n(wo),Xt=m(wo,"P",{"data-svelte-h":!0}),v(Xt)!=="svelte-yy7b2c"&&(Xt.textContent=Kn),Kr=n(wo),f($e.$$.fragment,wo),wo.forEach(o),en=n(C),_e=m(C,"DIV",{class:!0});var mr=T(_e);f(rt.$$.fragment,mr),tn=n(mr),Ot=m(mr,"P",{"data-svelte-h":!0}),v(Ot)!=="svelte-1u3gku9"&&(Ot.textContent=ea),mr.forEach(o),on=n(C),R=m(C,"DIV",{class:!0});var Ie=T(R);f(nt.$$.fragment,Ie),rn=n(Ie),Kt=m(Ie,"P",{"data-svelte-h":!0}),v(Kt)!=="svelte-19evuwa"&&(Kt.innerHTML=ta),nn=n(Ie),eo=m(Ie,"UL",{"data-svelte-h":!0}),v(eo)!=="svelte-15of9ze"&&(eo.innerHTML=oa),an=n(Ie),to=m(Ie,"P",{"data-svelte-h":!0}),v(to)!=="svelte-msa4ge"&&(to.innerHTML=ra),Ie.forEach(o),sn=n(C),ve=m(C,"DIV",{class:!0});var dr=T(ve);f(at.$$.fragment,dr),ln=n(dr),oo=m(dr,"P",{"data-svelte-h":!0}),v(oo)!=="svelte-63kthh"&&(oo.textContent=na),dr.forEach(o),C.forEach(o),No=n(e),f(st.$$.fragment,e),Do=n(e),I=m(e,"DIV",{class:!0});var L=T(I);f(lt.$$.fragment,L),mn=n(L),ro=m(L,"P",{"data-svelte-h":!0}),v(ro)!=="svelte-15sxrpl"&&(ro.innerHTML=aa),dn=n(L),no=m(L,"UL",{"data-svelte-h":!0}),v(no)!=="svelte-1titkz8"&&(no.innerHTML=sa),pn=n(L),be=m(L,"DIV",{class:!0});var pr=T(be);f(it.$$.fragment,pr),cn=n(pr),ao=m(pr,"P",{"data-svelte-h":!0}),v(ao)!=="svelte-zkjq4t"&&(ao.innerHTML=la),pr.forEach(o),gn=n(L),ye=m(L,"DIV",{class:!0});var cr=T(ye);f(mt.$$.fragment,cr),fn=n(cr),so=m(cr,"P",{"data-svelte-h":!0}),v(so)!=="svelte-1vxzk80"&&(so.innerHTML=ia),cr.forEach(o),un=n(L),we=m(L,"DIV",{class:!0});var gr=T(we);f(dt.$$.fragment,gr),hn=n(gr),lo=m(gr,"P",{"data-svelte-h":!0}),v(lo)!=="svelte-1qgsi13"&&(lo.innerHTML=ma),gr.forEach(o),$n=n(L),Te=m(L,"DIV",{class:!0});var fr=T(Te);f(pt.$$.fragment,fr),_n=n(fr),io=m(fr,"P",{"data-svelte-h":!0}),v(io)!=="svelte-1ojxz66"&&(io.innerHTML=da),fr.forEach(o),L.forEach(o),Yo=n(e),f(ct.$$.fragment,e),Bo=n(e),q=m(e,"DIV",{class:!0});var He=T(q);f(gt.$$.fragment,He),vn=n(He),mo=m(He,"P",{"data-svelte-h":!0}),v(mo)!=="svelte-lim121"&&(mo.innerHTML=pa),bn=n(He),xe=m(He,"DIV",{class:!0});var ur=T(xe);f(ft.$$.fragment,ur),yn=n(ur),po=m(ur,"P",{"data-svelte-h":!0}),v(po)!=="svelte-nbx998"&&(po.innerHTML=ca),ur.forEach(o),wn=n(He),X=m(He,"DIV",{class:!0});var To=T(X);f(ut.$$.fragment,To),Tn=n(To),co=m(To,"P",{"data-svelte-h":!0}),v(co)!=="svelte-14yhe1"&&(co.innerHTML=ga),xn=n(To),go=m(To,"P",{"data-svelte-h":!0}),v(go)!=="svelte-1fs1ig5"&&(go.innerHTML=fa),To.forEach(o),He.forEach(o),Fo=n(e),f(ht.$$.fragment,e),So=n(e),O=m(e,"DIV",{class:!0});var hr=T(O);f($t.$$.fragment,hr),An=n(hr),fo=m(hr,"P",{"data-svelte-h":!0}),v(fo)!=="svelte-78dinl"&&(fo.innerHTML=ua),hr.forEach(o),Qo=n(e),f(_t.$$.fragment,e),Xo=n(e),vt=m(e,"P",{"data-svelte-h":!0}),v(vt)!=="svelte-14vr92g"&&(vt.textContent=ha),Oo=n(e),bt=m(e,"P",{"data-svelte-h":!0}),v(bt)!=="svelte-1ozzq59"&&(bt.innerHTML=$a),Ko=n(e),yt=m(e,"P",{"data-svelte-h":!0}),v(yt)!=="svelte-1ffo2vr"&&(yt.textContent=_a),er=n(e),wt=m(e,"UL",{"data-svelte-h":!0}),v(wt)!=="svelte-wzs2d2"&&(wt.innerHTML=va),tr=n(e),f(Tt.$$.fragment,e),or=n(e),K=m(e,"DIV",{class:!0});var $r=T(K);f(xt.$$.fragment,$r),Mn=n($r),uo=m($r,"P",{"data-svelte-h":!0}),v(uo)!=="svelte-57fhj7"&&(uo.textContent=ba),$r.forEach(o),rr=n(e),f(At.$$.fragment,e),nr=n(e),E=m(e,"DIV",{class:!0});var je=T(E);f(Mt.$$.fragment,je),kn=n(je),ho=m(je,"P",{"data-svelte-h":!0}),v(ho)!=="svelte-1hsb0qs"&&(ho.textContent=ya),Cn=n(je),Ae=m(je,"DIV",{class:!0});var _r=T(Ae);f(kt.$$.fragment,_r),In=n(_r),$o=m(_r,"P",{"data-svelte-h":!0}),v($o)!=="svelte-ybie7i"&&($o.textContent=wa),_r.forEach(o),Hn=n(je),Me=m(je,"DIV",{class:!0});var vr=T(Me);f(Ct.$$.fragment,vr),jn=n(vr),_o=m(vr,"P",{"data-svelte-h":!0}),v(_o)!=="svelte-chc6sp"&&(_o.textContent=Ta),vr.forEach(o),je.forEach(o),ar=n(e),f(It.$$.fragment,e),sr=n(e),Z=m(e,"DIV",{class:!0});var Le=T(Z);f(Ht.$$.fragment,Le),Ln=n(Le),vo=m(Le,"P",{"data-svelte-h":!0}),v(vo)!=="svelte-ckiqb6"&&(vo.textContent=xa),Pn=n(Le),ke=m(Le,"DIV",{class:!0});var br=T(ke);f(jt.$$.fragment,br),Jn=n(br),bo=m(br,"P",{"data-svelte-h":!0}),v(bo)!=="svelte-10rnn1x"&&(bo.innerHTML=Aa),br.forEach(o),Un=n(Le),Ce=m(Le,"DIV",{class:!0});var yr=T(Ce);f(Lt.$$.fragment,yr),qn=n(yr),yo=m(yr,"P",{"data-svelte-h":!0}),v(yo)!=="svelte-1xu9o93"&&(yo.textContent=Ma),yr.forEach(o),Le.forEach(o),lr=n(e),xo=m(e,"P",{}),T(xo).forEach(o),this.h()},h(){x(l,"name","hf:doc:metadata"),x(l,"content",Da),x(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),x(Z,"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,s){t(document.head,l),d(e,y,s),d(e,p,s),d(e,c,s),u(b,e,s),d(e,a,s),u(w,e,s),d(e,Mo,s),d(e,Pe,s),d(e,ko,s),u(Je,e,s),d(e,Co,s),d(e,Ue,s),d(e,Io,s),u(qe,e,s),d(e,Ho,s),d(e,G,s),u(Ee,G,null),t(G,wr),t(G,Et),t(G,Tr),u(ae,G,null),d(e,jo,s),u(Ze,e,s),d(e,Lo,s),d(e,P,s),u(We,P,null),t(P,xr),t(P,Zt),t(P,Ar),u(se,P,null),t(P,Mr),t(P,B),u(Re,B,null),t(B,kr),t(B,Wt),t(B,Cr),u(le,B,null),d(e,Po,s),u(ze,e,s),d(e,Jo,s),d(e,J,s),u(Ge,J,null),t(J,Ir),t(J,Rt),t(J,Hr),u(ie,J,null),t(J,jr),u(me,J,null),d(e,Uo,s),u(Ve,e,s),d(e,qo,s),d(e,U,s),u(Ne,U,null),t(U,Lr),t(U,zt),t(U,Pr),u(de,U,null),t(U,Jr),u(pe,U,null),d(e,Eo,s),u(De,e,s),d(e,Zo,s),d(e,j,s),u(Ye,j,null),t(j,Ur),t(j,Gt),t(j,qr),t(j,F),u(Be,F,null),t(F,Er),t(F,Vt),t(F,Zr),u(ce,F,null),t(j,Wr),t(j,S),u(Fe,S,null),t(S,Rr),t(S,Nt),t(S,zr),u(ge,S,null),t(j,Gr),t(j,fe),u(Se,fe,null),t(fe,Vr),t(fe,Dt),d(e,Wo,s),u(Qe,e,s),d(e,Ro,s),u(Xe,e,s),d(e,zo,s),d(e,V,s),u(Oe,V,null),t(V,Nr),t(V,Yt),t(V,Dr),u(ue,V,null),d(e,Go,s),u(Ke,e,s),d(e,Vo,s),d(e,k,s),u(et,k,null),t(k,Yr),t(k,Bt),t(k,Br),t(k,Ft),t(k,Fr),t(k,St),t(k,Sr),t(k,he),u(tt,he,null),t(he,Qr),t(he,Qt),t(k,Xr),t(k,Q),u(ot,Q,null),t(Q,Or),t(Q,Xt),t(Q,Kr),u($e,Q,null),t(k,en),t(k,_e),u(rt,_e,null),t(_e,tn),t(_e,Ot),t(k,on),t(k,R),u(nt,R,null),t(R,rn),t(R,Kt),t(R,nn),t(R,eo),t(R,an),t(R,to),t(k,sn),t(k,ve),u(at,ve,null),t(ve,ln),t(ve,oo),d(e,No,s),u(st,e,s),d(e,Do,s),d(e,I,s),u(lt,I,null),t(I,mn),t(I,ro),t(I,dn),t(I,no),t(I,pn),t(I,be),u(it,be,null),t(be,cn),t(be,ao),t(I,gn),t(I,ye),u(mt,ye,null),t(ye,fn),t(ye,so),t(I,un),t(I,we),u(dt,we,null),t(we,hn),t(we,lo),t(I,$n),t(I,Te),u(pt,Te,null),t(Te,_n),t(Te,io),d(e,Yo,s),u(ct,e,s),d(e,Bo,s),d(e,q,s),u(gt,q,null),t(q,vn),t(q,mo),t(q,bn),t(q,xe),u(ft,xe,null),t(xe,yn),t(xe,po),t(q,wn),t(q,X),u(ut,X,null),t(X,Tn),t(X,co),t(X,xn),t(X,go),d(e,Fo,s),u(ht,e,s),d(e,So,s),d(e,O,s),u($t,O,null),t(O,An),t(O,fo),d(e,Qo,s),u(_t,e,s),d(e,Xo,s),d(e,vt,s),d(e,Oo,s),d(e,bt,s),d(e,Ko,s),d(e,yt,s),d(e,er,s),d(e,wt,s),d(e,tr,s),u(Tt,e,s),d(e,or,s),d(e,K,s),u(xt,K,null),t(K,Mn),t(K,uo),d(e,rr,s),u(At,e,s),d(e,nr,s),d(e,E,s),u(Mt,E,null),t(E,kn),t(E,ho),t(E,Cn),t(E,Ae),u(kt,Ae,null),t(Ae,In),t(Ae,$o),t(E,Hn),t(E,Me),u(Ct,Me,null),t(Me,jn),t(Me,_o),d(e,ar,s),u(It,e,s),d(e,sr,s),d(e,Z,s),u(Ht,Z,null),t(Z,Ln),t(Z,vo),t(Z,Pn),t(Z,ke),u(jt,ke,null),t(ke,Jn),t(ke,bo),t(Z,Un),t(Z,Ce),u(Lt,Ce,null),t(Ce,qn),t(Ce,yo),d(e,lr,s),d(e,xo,s),ir=!0},p(e,[s]){const ee={};s&2&&(ee.$$scope={dirty:s,ctx:e}),w.$set(ee);const N={};s&2&&(N.$$scope={dirty:s,ctx:e}),ae.$set(N);const te={};s&2&&(te.$$scope={dirty:s,ctx:e}),se.$set(te);const D={};s&2&&(D.$$scope={dirty:s,ctx:e}),le.$set(D);const Y={};s&2&&(Y.$$scope={dirty:s,ctx:e}),ie.$set(Y);const W={};s&2&&(W.$$scope={dirty:s,ctx:e}),me.$set(W);const oe={};s&2&&(oe.$$scope={dirty:s,ctx:e}),de.$set(oe);const re={};s&2&&(re.$$scope={dirty:s,ctx:e}),pe.$set(re);const Pt={};s&2&&(Pt.$$scope={dirty:s,ctx:e}),ce.$set(Pt);const ne={};s&2&&(ne.$$scope={dirty:s,ctx:e}),ge.$set(ne);const C={};s&2&&(C.$$scope={dirty:s,ctx:e}),ue.$set(C);const Jt={};s&2&&(Jt.$$scope={dirty:s,ctx:e}),$e.$set(Jt)},i(e){ir||(h(b.$$.fragment,e),h(w.$$.fragment,e),h(Je.$$.fragment,e),h(qe.$$.fragment,e),h(Ee.$$.fragment,e),h(ae.$$.fragment,e),h(Ze.$$.fragment,e),h(We.$$.fragment,e),h(se.$$.fragment,e),h(Re.$$.fragment,e),h(le.$$.fragment,e),h(ze.$$.fragment,e),h(Ge.$$.fragment,e),h(ie.$$.fragment,e),h(me.$$.fragment,e),h(Ve.$$.fragment,e),h(Ne.$$.fragment,e),h(de.$$.fragment,e),h(pe.$$.fragment,e),h(De.$$.fragment,e),h(Ye.$$.fragment,e),h(Be.$$.fragment,e),h(ce.$$.fragment,e),h(Fe.$$.fragment,e),h(ge.$$.fragment,e),h(Se.$$.fragment,e),h(Qe.$$.fragment,e),h(Xe.$$.fragment,e),h(Oe.$$.fragment,e),h(ue.$$.fragment,e),h(Ke.$$.fragment,e),h(et.$$.fragment,e),h(tt.$$.fragment,e),h(ot.$$.fragment,e),h($e.$$.fragment,e),h(rt.$$.fragment,e),h(nt.$$.fragment,e),h(at.$$.fragment,e),h(st.$$.fragment,e),h(lt.$$.fragment,e),h(it.$$.fragment,e),h(mt.$$.fragment,e),h(dt.$$.fragment,e),h(pt.$$.fragment,e),h(ct.$$.fragment,e),h(gt.$$.fragment,e),h(ft.$$.fragment,e),h(ut.$$.fragment,e),h(ht.$$.fragment,e),h($t.$$.fragment,e),h(_t.$$.fragment,e),h(Tt.$$.fragment,e),h(xt.$$.fragment,e),h(At.$$.fragment,e),h(Mt.$$.fragment,e),h(kt.$$.fragment,e),h(Ct.$$.fragment,e),h(It.$$.fragment,e),h(Ht.$$.fragment,e),h(jt.$$.fragment,e),h(Lt.$$.fragment,e),ir=!0)},o(e){$(b.$$.fragment,e),$(w.$$.fragment,e),$(Je.$$.fragment,e),$(qe.$$.fragment,e),$(Ee.$$.fragment,e),$(ae.$$.fragment,e),$(Ze.$$.fragment,e),$(We.$$.fragment,e),$(se.$$.fragment,e),$(Re.$$.fragment,e),$(le.$$.fragment,e),$(ze.$$.fragment,e),$(Ge.$$.fragment,e),$(ie.$$.fragment,e),$(me.$$.fragment,e),$(Ve.$$.fragment,e),$(Ne.$$.fragment,e),$(de.$$.fragment,e),$(pe.$$.fragment,e),$(De.$$.fragment,e),$(Ye.$$.fragment,e),$(Be.$$.fragment,e),$(ce.$$.fragment,e),$(Fe.$$.fragment,e),$(ge.$$.fragment,e),$(Se.$$.fragment,e),$(Qe.$$.fragment,e),$(Xe.$$.fragment,e),$(Oe.$$.fragment,e),$(ue.$$.fragment,e),$(Ke.$$.fragment,e),$(et.$$.fragment,e),$(tt.$$.fragment,e),$(ot.$$.fragment,e),$($e.$$.fragment,e),$(rt.$$.fragment,e),$(nt.$$.fragment,e),$(at.$$.fragment,e),$(st.$$.fragment,e),$(lt.$$.fragment,e),$(it.$$.fragment,e),$(mt.$$.fragment,e),$(dt.$$.fragment,e),$(pt.$$.fragment,e),$(ct.$$.fragment,e),$(gt.$$.fragment,e),$(ft.$$.fragment,e),$(ut.$$.fragment,e),$(ht.$$.fragment,e),$($t.$$.fragment,e),$(_t.$$.fragment,e),$(Tt.$$.fragment,e),$(xt.$$.fragment,e),$(At.$$.fragment,e),$(Mt.$$.fragment,e),$(kt.$$.fragment,e),$(Ct.$$.fragment,e),$(It.$$.fragment,e),$(Ht.$$.fragment,e),$(jt.$$.fragment,e),$(Lt.$$.fragment,e),ir=!1},d(e){e&&(o(y),o(p),o(c),o(a),o(Mo),o(Pe),o(ko),o(Co),o(Ue),o(Io),o(Ho),o(G),o(jo),o(Lo),o(P),o(Po),o(Jo),o(J),o(Uo),o(qo),o(U),o(Eo),o(Zo),o(j),o(Wo),o(Ro),o(zo),o(V),o(Go),o(Vo),o(k),o(No),o(Do),o(I),o(Yo),o(Bo),o(q),o(Fo),o(So),o(O),o(Qo),o(Xo),o(vt),o(Oo),o(bt),o(Ko),o(yt),o(er),o(wt),o(tr),o(or),o(K),o(rr),o(nr),o(E),o(ar),o(sr),o(Z),o(lr),o(xo)),o(l),_(b,e),_(w,e),_(Je,e),_(qe,e),_(Ee),_(ae),_(Ze,e),_(We),_(se),_(Re),_(le),_(ze,e),_(Ge),_(ie),_(me),_(Ve,e),_(Ne),_(de),_(pe),_(De,e),_(Ye),_(Be),_(ce),_(Fe),_(ge),_(Se),_(Qe,e),_(Xe,e),_(Oe),_(ue),_(Ke,e),_(et),_(tt),_(ot),_($e),_(rt),_(nt),_(at),_(st,e),_(lt),_(it),_(mt),_(dt),_(pt),_(ct,e),_(gt),_(ft),_(ut),_(ht,e),_($t),_(_t,e),_(Tt,e),_(xt),_(At,e),_(Mt),_(kt),_(Ct),_(It,e),_(Ht),_(jt),_(Lt)}}}const Da='{"title":"エージェントとツール","local":"エージェントとツール","sections":[{"title":"エージェント","local":"エージェント","sections":[{"title":"HfAgent","local":"transformers.HfAgent","sections":[],"depth":3},{"title":"LocalAgent","local":"transformers.LocalAgent","sections":[],"depth":3},{"title":"OpenAiAgent","local":"transformers.OpenAiAgent","sections":[],"depth":3},{"title":"AzureOpenAiAgent","local":"transformers.AzureOpenAiAgent","sections":[],"depth":3},{"title":"Agent","local":"transformers.Agent","sections":[],"depth":3}],"depth":2},{"title":"Tools","local":"tools","sections":[{"title":"load_tool","local":"transformers.load_tool","sections":[],"depth":3},{"title":"Tool","local":"transformers.Tool","sections":[],"depth":3},{"title":"PipelineTool","local":"transformers.PipelineTool","sections":[],"depth":3},{"title":"RemoteTool","local":"transformers.RemoteTool","sections":[],"depth":3},{"title":"launch_gradio_demo","local":"transformers.launch_gradio_demo","sections":[],"depth":3}],"depth":2},{"title":"エージェントの種類","local":"エージェントの種類","sections":[{"title":"AgentText","local":"transformers.tools.agent_types.AgentText","sections":[],"depth":3},{"title":"AgentImage","local":"transformers.tools.agent_types.AgentImage","sections":[],"depth":3},{"title":"AgentAudio","local":"transformers.tools.agent_types.AgentAudio","sections":[],"depth":3}],"depth":2}],"depth":1}';function Ya(M){return Ca(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class es extends Ia{constructor(l){super(),Ha(this,l,Ya,Na,ka,{})}}export{es as component};
