import{s as Ys,n as Fs,o as Ls}from"../chunks/scheduler.ea9963d4.js";import{S as Vs,i as zs,e as g,s as a,c as p,h as Ps,a as h,d as n,b as e,f as _s,g as i,j as r,k as Bs,l as Ds,m as l,n as o,t as c,o as u,p as M}from"../chunks/index.2ecb6441.js";import{C as Xs,H as V,E as Os}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.09f0a531.js";import{C as y}from"../chunks/CodeBlock.55e096a5.js";function Ks(Ws){let j,D,z,X,J,O,T,K,w,Es='<img src="https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/blog/tiny-agents/legos.png" alt="meme"/>',ss,d,Zs="A squad of lightweight composable AI applications built on Hugging Face’s Inference Client and MCP stack.",ts,U,ns,f,ls,$,as,I,es,C,ps,b,Qs='You can load agents directly from the Hugging Face Hub <a href="https://huggingface.co/datasets/tiny-agents/tiny-agents" rel="nofollow">tiny-agents</a> Dataset, or specify a path to your own local agent configuration.',is,k,os,B,As="The simplest way to create your own agent is to create a folder containing an <code>agent.json</code> file:",cs,W,us,E,Ms,Z,qs="Or using a local or remote endpoint URL:",gs,Q,hs,A,Ss="Where <code>servers</code> is a list of MCP servers (we support Stdio, SSE, and HTTP servers).",rs,q,vs='Optionally, you can add an <a href="https://agents.md/" rel="nofollow"><code>AGENTS.md</code></a> (or <code>PROMPT.md</code>) file to override the default Agent prompt.',js,S,xs="Then just point tiny-agents to your local folder:",ys,v,ms,x,Gs="Voilà! 🔥",Js,G,Ts,N,Ns='Browse our curated collection of Tiny Agents at <a href="https://huggingface.co/datasets/tiny-agents/tiny-agents" rel="nofollow">https://huggingface.co/datasets/tiny-agents/tiny-agents</a>. Each agent is stored in its own subdirectory, following the structure outlined above. Running an agent from the Hub is as simple as using its <code>agent_id</code>. For example, to run the <a href="https://huggingface.co/datasets/tiny-agents/tiny-agents/tree/main/julien-c/flux-schnell-generator" rel="nofollow"><code>julien-c/flux-schnell-generator</code></a> agent:',ws,R,ds,m,Rs='<p>Want to share your own agent with the community? Submit a PR to the <a href="https://huggingface.co/datasets/tiny-agents/tiny-agents/discussions" rel="nofollow">Tiny Agents</a> repository on the Hub. Your submission must include an <code>agent.json</code> file, and you can optionally add a <code>PROMPT.md</code> or <a href="https://agents.md/" rel="nofollow"><code>AGENTS.md</code></a> file. To help others understand your agent’s capabilities, consider including an <code>EXAMPLES.md</code> file with sample prompts and use cases.</p>',Us,H,fs,_,$s,Y,Is,F,Hs="MIT",Cs,L,bs,P,ks;return J=new Xs({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),T=new V({props:{title:"@huggingface/tiny-agents",local:"huggingfacetiny-agents",headingTag:"h1"}}),U=new V({props:{title:"Installation",local:"installation",headingTag:"h2"}}),f=new y({props:{code:"bnBtJTIwaW5zdGFsbCUyMCU0MGh1Z2dpbmdmYWNlJTJGdGlueS1hZ2VudHMlMEElMjMlMjBvciUwQXBucG0lMjBhZGQlMjAlNDBodWdnaW5nZmFjZSUyRnRpbnktYWdlbnRz",highlighted:`npm install @huggingface/tiny-agents
<span class="hljs-comment"># or</span>
pnpm add @huggingface/tiny-agents`,wrap:!1}}),$=new V({props:{title:"CLI Usage",local:"cli-usage",headingTag:"h2"}}),I=new y({props:{code:"bnB4JTIwJTQwaHVnZ2luZ2ZhY2UlMkZ0aW55LWFnZW50cyUyMCU1QmNvbW1hbmQlNUQlMjAlMjJhZ2VudCUyRmlkJTIy",highlighted:'npx @huggingface/tiny-agents [<span class="hljs-built_in">command</span>] <span class="hljs-string">&quot;agent/id&quot;</span>',wrap:!1}}),C=new y({props:{code:"VXNhZ2UlM0ElMEElMjAlMjB0aW55LWFnZW50cyUyMCU1QmZsYWdzJTVEJTBBJTIwJTIwdGlueS1hZ2VudHMlMjBydW4lMjAlMjAlMjAlMjJhZ2VudCUyRmlkJTIyJTBBJTIwJTIwdGlueS1hZ2VudHMlMjBzZXJ2ZSUyMCUyMmFnZW50JTJGaWQlMjIlMEElMEFBdmFpbGFibGUlMjBDb21tYW5kcyUzQSUwQSUyMCUyMHJ1biUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMFJ1biUyMHRoZSUyMEFnZW50JTIwaW4lMjBjb21tYW5kLWxpbmUlMEElMjAlMjBzZXJ2ZSUyMCUyMCUyMCUyMCUyMCUyMCUyMFJ1biUyMHRoZSUyMEFnZW50JTIwYXMlMjBhbiUyME9wZW5BSS1jb21wYXRpYmxlJTIwSFRUUCUyMHNlcnZlcg==",highlighted:`Usage:
  tiny-agents [flags]
  tiny-agents <span class="hljs-built_in">run</span>   <span class="hljs-string">&quot;agent/id&quot;</span>
  tiny-agents serve <span class="hljs-string">&quot;agent/id&quot;</span>

Available Commands:
  <span class="hljs-built_in">run</span>         <span class="hljs-built_in">Run</span> the Agent <span class="hljs-keyword">in</span> command-line
  serve       <span class="hljs-built_in">Run</span> the Agent as an OpenAI-compatible HTTP server`,wrap:!1}}),k=new V({props:{title:"Define your own agent",local:"define-your-own-agent",headingTag:"h2"}}),W=new y({props:{code:"bWtkaXIlMjBteS1hZ2VudCUwQXRvdWNoJTIwbXktYWdlbnQlMkZhZ2VudC5qc29u",highlighted:`<span class="hljs-built_in">mkdir</span> my-agent
<span class="hljs-built_in">touch</span> my-agent/agent.json`,wrap:!1}}),E=new y({props:{code:"JTdCJTBBJTA5JTIybW9kZWwlMjIlM0ElMjAlMjJRd2VuJTJGUXdlbjIuNS03MkItSW5zdHJ1Y3QlMjIlMkMlMEElMDklMjJwcm92aWRlciUyMiUzQSUyMCUyMm5lYml1cyUyMiUyQyUwQSUwOSUyMnNlcnZlcnMlMjIlM0ElMjAlNUIlMEElMDklMDklN0IlMEElMDklMDklMDklMjJ0eXBlJTIyJTNBJTIwJTIyc3RkaW8lMjIlMkMlMEElMDklMDklMDklMjJjb21tYW5kJTIyJTNBJTIwJTIybnB4JTIyJTJDJTBBJTA5JTA5JTA5JTIyYXJncyUyMiUzQSUyMCU1QiUyMiU0MHBsYXl3cmlnaHQlMkZtY3AlNDBsYXRlc3QlMjIlNUQlMEElMDklMDklN0QlMEElMDklNUQlMEElN0Q=",highlighted:`<span class="hljs-punctuation">{</span>
	<span class="hljs-attr">&quot;model&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;Qwen/Qwen2.5-72B-Instruct&quot;</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;provider&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;nebius&quot;</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;servers&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span>
		<span class="hljs-punctuation">{</span>
			<span class="hljs-attr">&quot;type&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;stdio&quot;</span><span class="hljs-punctuation">,</span>
			<span class="hljs-attr">&quot;command&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;npx&quot;</span><span class="hljs-punctuation">,</span>
			<span class="hljs-attr">&quot;args&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;@playwright/mcp@latest&quot;</span><span class="hljs-punctuation">]</span>
		<span class="hljs-punctuation">}</span>
	<span class="hljs-punctuation">]</span>
<span class="hljs-punctuation">}</span>`,wrap:!1}}),Q=new y({props:{code:"JTdCJTBBJTA5JTIybW9kZWwlMjIlM0ElMjAlMjJRd2VuJTJGUXdlbjMtMzJCJTIyJTJDJTBBJTA5JTIyZW5kcG9pbnRVcmwlMjIlM0ElMjAlMjJodHRwJTNBJTJGJTJGbG9jYWxob3N0JTNBMTIzNCUyRnYxJTIyJTJDJTBBJTA5JTIyc2VydmVycyUyMiUzQSUyMCU1QiUwQSUwOSUwOSU3QiUwQSUwOSUwOSUwOSUyMnR5cGUlMjIlM0ElMjAlMjJzdGRpbyUyMiUyQyUwQSUwOSUwOSUwOSUyMmNvbW1hbmQlMjIlM0ElMjAlMjJucHglMjIlMkMlMEElMDklMDklMDklMjJhcmdzJTIyJTNBJTIwJTVCJTIyJTQwcGxheXdyaWdodCUyRm1jcCU0MGxhdGVzdCUyMiU1RCUwQSUwOSUwOSU3RCUwQSUwOSU1RCUwQSU3RCUwQQ==",highlighted:`<span class="hljs-punctuation">{</span>
	<span class="hljs-attr">&quot;model&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;Qwen/Qwen3-32B&quot;</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;endpointUrl&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;http://localhost:1234/v1&quot;</span><span class="hljs-punctuation">,</span>
	<span class="hljs-attr">&quot;servers&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span>
		<span class="hljs-punctuation">{</span>
			<span class="hljs-attr">&quot;type&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;stdio&quot;</span><span class="hljs-punctuation">,</span>
			<span class="hljs-attr">&quot;command&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-string">&quot;npx&quot;</span><span class="hljs-punctuation">,</span>
			<span class="hljs-attr">&quot;args&quot;</span><span class="hljs-punctuation">:</span> <span class="hljs-punctuation">[</span><span class="hljs-string">&quot;@playwright/mcp@latest&quot;</span><span class="hljs-punctuation">]</span>
		<span class="hljs-punctuation">}</span>
	<span class="hljs-punctuation">]</span>
<span class="hljs-punctuation">}</span>
`,wrap:!1}}),v=new y({props:{code:"bnB4JTIwJTQwaHVnZ2luZ2ZhY2UlMkZ0aW55LWFnZW50cyUyMHJ1biUyMC4lMkZteS1hZ2VudA==",highlighted:"npx @huggingface/tiny-agents run ./my-agent",wrap:!1}}),G=new V({props:{title:"Tiny Agents collection",local:"tiny-agents-collection",headingTag:"h2"}}),R=new y({props:{code:"bnB4JTIwJTQwaHVnZ2luZ2ZhY2UlMkZ0aW55LWFnZW50cyUyMHJ1biUyMCUyMmp1bGllbi1jJTJGZmx1eC1zY2huZWxsLWdlbmVyYXRvciUyMg==",highlighted:'npx @huggingface/tiny-agents run <span class="hljs-string">&quot;julien-c/flux-schnell-generator&quot;</span>',wrap:!1}}),H=new V({props:{title:"Advanced: Programmatic Usage",local:"advanced-programmatic-usage",headingTag:"h2"}}),_=new y({props:{code:"aW1wb3J0JTIwJTdCJTIwQWdlbnQlMjAlN0QlMjBmcm9tJTIwJyU0MGh1Z2dpbmdmYWNlJTJGdGlueS1hZ2VudHMnJTNCJTBBJTBBY29uc3QlMjBIRl9UT0tFTiUyMCUzRCUyMCUyMmhmXy4uLiUyMiUzQiUwQSUwQSUyRiUyRiUyMENyZWF0ZSUyMGFuJTIwQWdlbnQlMEFjb25zdCUyMGFnZW50JTIwJTNEJTIwbmV3JTIwQWdlbnQoJTdCJTBBJTIwJTIwcHJvdmlkZXIlM0ElMjAlMjJhdXRvJTIyJTJDJTBBJTIwJTIwbW9kZWwlM0ElMjAlMjJRd2VuJTJGUXdlbjIuNS03MkItSW5zdHJ1Y3QlMjIlMkMlMEElMjAlMjBhcGlLZXklM0ElMjBIRl9UT0tFTiUyQyUwQSUyMCUyMHNlcnZlcnMlM0ElMjAlNUIlMEElMjAlMjAlMjAlMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMkYlMkYlMjBQbGF5d3JpZ2h0JTIwTUNQJTBBJTIwJTIwJTIwJTIwJTIwJTIwY29tbWFuZCUzQSUyMCUyMm5weCUyMiUyQyUwQSUyMCUyMCUyMCUyMCUyMCUyMGFyZ3MlM0ElMjAlNUIlMjIlNDBwbGF5d3JpZ2h0JTJGbWNwJTQwbGF0ZXN0JTIyJTVEJTJDJTBBJTIwJTIwJTIwJTIwJTdEJTJDJTBBJTIwJTIwJTVEJTJDJTBBJTdEKSUzQiUwQSUwQWF3YWl0JTIwYWdlbnQubG9hZFRvb2xzKCklM0IlMEElMEElMkYlMkYlMjBVc2UlMjB0aGUlMjBBZ2VudCUwQWZvciUyMGF3YWl0JTIwKGNvbnN0JTIwY2h1bmslMjBvZiUyMGFnZW50LnJ1biglMjJXaGF0JTIwYXJlJTIwdGhlJTIwdG9wJTIwNSUyMHRyZW5kaW5nJTIwbW9kZWxzJTIwb24lMjBIdWdnaW5nJTIwRmFjZSUzRiUyMikpJTIwJTdCJTBBJTIwJTIwJTIwJTIwaWYlMjAoJTIyY2hvaWNlcyUyMiUyMGluJTIwY2h1bmspJTIwJTdCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwY29uc3QlMjBkZWx0YSUyMCUzRCUyMGNodW5rLmNob2ljZXMlNUIwJTVEJTNGLmRlbHRhJTNCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwaWYlMjAoZGVsdGEuY29udGVudCklMjAlN0IlMEElMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjAlMjBjb25zb2xlLmxvZyhkZWx0YS5jb250ZW50KSUzQiUwQSUyMCUyMCUyMCUyMCUyMCUyMCUyMCUyMCU3RCUwQSUyMCUyMCUyMCUyMCU3RCUwQSU3RA==",highlighted:`<span class="hljs-keyword">import</span> { <span class="hljs-title class_">Agent</span> } <span class="hljs-keyword">from</span> <span class="hljs-string">&#x27;@huggingface/tiny-agents&#x27;</span>;

<span class="hljs-keyword">const</span> <span class="hljs-variable constant_">HF_TOKEN</span> = <span class="hljs-string">&quot;hf_...&quot;</span>;

<span class="hljs-comment">// Create an Agent</span>
<span class="hljs-keyword">const</span> agent = <span class="hljs-keyword">new</span> <span class="hljs-title class_">Agent</span>({
  <span class="hljs-attr">provider</span>: <span class="hljs-string">&quot;auto&quot;</span>,
  <span class="hljs-attr">model</span>: <span class="hljs-string">&quot;Qwen/Qwen2.5-72B-Instruct&quot;</span>,
  <span class="hljs-attr">apiKey</span>: <span class="hljs-variable constant_">HF_TOKEN</span>,
  <span class="hljs-attr">servers</span>: [
    {
      <span class="hljs-comment">// Playwright MCP</span>
      <span class="hljs-attr">command</span>: <span class="hljs-string">&quot;npx&quot;</span>,
      <span class="hljs-attr">args</span>: [<span class="hljs-string">&quot;@playwright/mcp@latest&quot;</span>],
    },
  ],
});

<span class="hljs-keyword">await</span> agent.<span class="hljs-title function_">loadTools</span>();

<span class="hljs-comment">// Use the Agent</span>
<span class="hljs-keyword">for</span> <span class="hljs-keyword">await</span> (<span class="hljs-keyword">const</span> chunk <span class="hljs-keyword">of</span> agent.<span class="hljs-title function_">run</span>(<span class="hljs-string">&quot;What are the top 5 trending models on Hugging Face?&quot;</span>)) {
    <span class="hljs-keyword">if</span> (<span class="hljs-string">&quot;choices&quot;</span> <span class="hljs-keyword">in</span> chunk) {
        <span class="hljs-keyword">const</span> delta = chunk.<span class="hljs-property">choices</span>[<span class="hljs-number">0</span>]?.<span class="hljs-property">delta</span>;
        <span class="hljs-keyword">if</span> (delta.<span class="hljs-property">content</span>) {
            <span class="hljs-variable language_">console</span>.<span class="hljs-title function_">log</span>(delta.<span class="hljs-property">content</span>);
        }
    }
}`,wrap:!1}}),Y=new V({props:{title:"License",local:"license",headingTag:"h2"}}),L=new Os({props:{source:"https://github.com/huggingface/huggingface.js/blob/main/docs/tiny-agents/README.md"}}),{c(){j=g("meta"),D=a(),z=g("p"),X=a(),p(J.$$.fragment),O=a(),p(T.$$.fragment),K=a(),w=g("p"),w.innerHTML=Es,ss=a(),d=g("p"),d.textContent=Zs,ts=a(),p(U.$$.fragment),ns=a(),p(f.$$.fragment),ls=a(),p($.$$.fragment),as=a(),p(I.$$.fragment),es=a(),p(C.$$.fragment),ps=a(),b=g("p"),b.innerHTML=Qs,is=a(),p(k.$$.fragment),os=a(),B=g("p"),B.innerHTML=As,cs=a(),p(W.$$.fragment),us=a(),p(E.$$.fragment),Ms=a(),Z=g("p"),Z.textContent=qs,gs=a(),p(Q.$$.fragment),hs=a(),A=g("p"),A.innerHTML=Ss,rs=a(),q=g("p"),q.innerHTML=vs,js=a(),S=g("p"),S.textContent=xs,ys=a(),p(v.$$.fragment),ms=a(),x=g("p"),x.textContent=Gs,Js=a(),p(G.$$.fragment),Ts=a(),N=g("p"),N.innerHTML=Ns,ws=a(),p(R.$$.fragment),ds=a(),m=g("blockquote"),m.innerHTML=Rs,Us=a(),p(H.$$.fragment),fs=a(),p(_.$$.fragment),$s=a(),p(Y.$$.fragment),Is=a(),F=g("p"),F.textContent=Hs,Cs=a(),p(L.$$.fragment),bs=a(),P=g("p"),this.h()},l(s){const t=Ps("svelte-u9bgzb",document.head);j=h(t,"META",{name:!0,content:!0}),t.forEach(n),D=e(s),z=h(s,"P",{}),_s(z).forEach(n),X=e(s),i(J.$$.fragment,s),O=e(s),i(T.$$.fragment,s),K=e(s),w=h(s,"P",{"data-svelte-h":!0}),r(w)!=="svelte-w9l1so"&&(w.innerHTML=Es),ss=e(s),d=h(s,"P",{"data-svelte-h":!0}),r(d)!=="svelte-2fcmue"&&(d.textContent=Zs),ts=e(s),i(U.$$.fragment,s),ns=e(s),i(f.$$.fragment,s),ls=e(s),i($.$$.fragment,s),as=e(s),i(I.$$.fragment,s),es=e(s),i(C.$$.fragment,s),ps=e(s),b=h(s,"P",{"data-svelte-h":!0}),r(b)!=="svelte-lc4j5i"&&(b.innerHTML=Qs),is=e(s),i(k.$$.fragment,s),os=e(s),B=h(s,"P",{"data-svelte-h":!0}),r(B)!=="svelte-1g4te4d"&&(B.innerHTML=As),cs=e(s),i(W.$$.fragment,s),us=e(s),i(E.$$.fragment,s),Ms=e(s),Z=h(s,"P",{"data-svelte-h":!0}),r(Z)!=="svelte-1oumehm"&&(Z.textContent=qs),gs=e(s),i(Q.$$.fragment,s),hs=e(s),A=h(s,"P",{"data-svelte-h":!0}),r(A)!=="svelte-1l9lizl"&&(A.innerHTML=Ss),rs=e(s),q=h(s,"P",{"data-svelte-h":!0}),r(q)!=="svelte-k9h3ya"&&(q.innerHTML=vs),js=e(s),S=h(s,"P",{"data-svelte-h":!0}),r(S)!=="svelte-1t6h5j"&&(S.textContent=xs),ys=e(s),i(v.$$.fragment,s),ms=e(s),x=h(s,"P",{"data-svelte-h":!0}),r(x)!=="svelte-137tswd"&&(x.textContent=Gs),Js=e(s),i(G.$$.fragment,s),Ts=e(s),N=h(s,"P",{"data-svelte-h":!0}),r(N)!=="svelte-1w0a0t3"&&(N.innerHTML=Ns),ws=e(s),i(R.$$.fragment,s),ds=e(s),m=h(s,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),r(m)!=="svelte-1e2cd6v"&&(m.innerHTML=Rs),Us=e(s),i(H.$$.fragment,s),fs=e(s),i(_.$$.fragment,s),$s=e(s),i(Y.$$.fragment,s),Is=e(s),F=h(s,"P",{"data-svelte-h":!0}),r(F)!=="svelte-1ikb5q6"&&(F.textContent=Hs),Cs=e(s),i(L.$$.fragment,s),bs=e(s),P=h(s,"P",{}),_s(P).forEach(n),this.h()},h(){Bs(j,"name","hf:doc:metadata"),Bs(j,"content",st),Bs(m,"class","note")},m(s,t){Ds(document.head,j),l(s,D,t),l(s,z,t),l(s,X,t),o(J,s,t),l(s,O,t),o(T,s,t),l(s,K,t),l(s,w,t),l(s,ss,t),l(s,d,t),l(s,ts,t),o(U,s,t),l(s,ns,t),o(f,s,t),l(s,ls,t),o($,s,t),l(s,as,t),o(I,s,t),l(s,es,t),o(C,s,t),l(s,ps,t),l(s,b,t),l(s,is,t),o(k,s,t),l(s,os,t),l(s,B,t),l(s,cs,t),o(W,s,t),l(s,us,t),o(E,s,t),l(s,Ms,t),l(s,Z,t),l(s,gs,t),o(Q,s,t),l(s,hs,t),l(s,A,t),l(s,rs,t),l(s,q,t),l(s,js,t),l(s,S,t),l(s,ys,t),o(v,s,t),l(s,ms,t),l(s,x,t),l(s,Js,t),o(G,s,t),l(s,Ts,t),l(s,N,t),l(s,ws,t),o(R,s,t),l(s,ds,t),l(s,m,t),l(s,Us,t),o(H,s,t),l(s,fs,t),o(_,s,t),l(s,$s,t),o(Y,s,t),l(s,Is,t),l(s,F,t),l(s,Cs,t),o(L,s,t),l(s,bs,t),l(s,P,t),ks=!0},p:Fs,i(s){ks||(c(J.$$.fragment,s),c(T.$$.fragment,s),c(U.$$.fragment,s),c(f.$$.fragment,s),c($.$$.fragment,s),c(I.$$.fragment,s),c(C.$$.fragment,s),c(k.$$.fragment,s),c(W.$$.fragment,s),c(E.$$.fragment,s),c(Q.$$.fragment,s),c(v.$$.fragment,s),c(G.$$.fragment,s),c(R.$$.fragment,s),c(H.$$.fragment,s),c(_.$$.fragment,s),c(Y.$$.fragment,s),c(L.$$.fragment,s),ks=!0)},o(s){u(J.$$.fragment,s),u(T.$$.fragment,s),u(U.$$.fragment,s),u(f.$$.fragment,s),u($.$$.fragment,s),u(I.$$.fragment,s),u(C.$$.fragment,s),u(k.$$.fragment,s),u(W.$$.fragment,s),u(E.$$.fragment,s),u(Q.$$.fragment,s),u(v.$$.fragment,s),u(G.$$.fragment,s),u(R.$$.fragment,s),u(H.$$.fragment,s),u(_.$$.fragment,s),u(Y.$$.fragment,s),u(L.$$.fragment,s),ks=!1},d(s){s&&(n(D),n(z),n(X),n(O),n(K),n(w),n(ss),n(d),n(ts),n(ns),n(ls),n(as),n(es),n(ps),n(b),n(is),n(os),n(B),n(cs),n(us),n(Ms),n(Z),n(gs),n(hs),n(A),n(rs),n(q),n(js),n(S),n(ys),n(ms),n(x),n(Js),n(Ts),n(N),n(ws),n(ds),n(m),n(Us),n(fs),n($s),n(Is),n(F),n(Cs),n(bs),n(P)),n(j),M(J,s),M(T,s),M(U,s),M(f,s),M($,s),M(I,s),M(C,s),M(k,s),M(W,s),M(E,s),M(Q,s),M(v,s),M(G,s),M(R,s),M(H,s),M(_,s),M(Y,s),M(L,s)}}}const st='{"title":"@huggingface/tiny-agents","local":"huggingfacetiny-agents","sections":[{"title":"Installation","local":"installation","sections":[],"depth":2},{"title":"CLI Usage","local":"cli-usage","sections":[],"depth":2},{"title":"Define your own agent","local":"define-your-own-agent","sections":[],"depth":2},{"title":"Tiny Agents collection","local":"tiny-agents-collection","sections":[],"depth":2},{"title":"Advanced: Programmatic Usage","local":"advanced-programmatic-usage","sections":[],"depth":2},{"title":"License","local":"license","sections":[],"depth":2}],"depth":1}';function tt(Ws){return Ls(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class pt extends Vs{constructor(j){super(),zs(this,j,tt,Ks,Ys,{})}}export{pt as component};
