import{s as k,o as z,n as H}from"../chunks/scheduler.25b97de1.js";import{S as I,i as M,g as d,s as p,r as b,A as q,h,f as s,c as u,j as y,u as x,k as S,y as G,a as l,v as P,d as A,t as C,w as E,x as j}from"../chunks/index.d9030fc9.js";import{T as L}from"../chunks/Tip.baa67368.js";import{H as O,E as R}from"../chunks/EditOnGithub.91d95064.js";function U(g){let e,c=`The Agents framework has significantly changed in version v4.41.0.
This document has been removed as it was referencing an older API.`,i,o,m="We eagerly welcome new contributions for the updated API.";return{c(){e=d("p"),e.textContent=c,i=p(),o=d("p"),o.textContent=m},l(a){e=h(a,"P",{"data-svelte-h":!0}),j(e)!=="svelte-1b7j94t"&&(e.textContent=c),i=u(a),o=h(a,"P",{"data-svelte-h":!0}),j(o)!=="svelte-12npdc1"&&(o.textContent=m)},m(a,r){l(a,e,r),l(a,i,r),l(a,o,r)},p:H,d(a){a&&(s(e),s(i),s(o))}}}function W(g){let e,c,i,o,m,a,r,_,f,w,$,v;return m=new O({props:{title:"Agents和工具",local:"agents和工具",headingTag:"h1"}}),r=new L({props:{warning:!0,$$slots:{default:[U]},$$scope:{ctx:g}}}),f=new R({props:{source:"https://github.com/huggingface/transformers/blob/main/docs/source/zh/main_classes/agent.md"}}),{c(){e=d("meta"),c=p(),i=d("p"),o=p(),b(m.$$.fragment),a=p(),b(r.$$.fragment),_=p(),b(f.$$.fragment),w=p(),$=d("p"),this.h()},l(t){const n=q("svelte-u9bgzb",document.head);e=h(n,"META",{name:!0,content:!0}),n.forEach(s),c=u(t),i=h(t,"P",{}),y(i).forEach(s),o=u(t),x(m.$$.fragment,t),a=u(t),x(r.$$.fragment,t),_=u(t),x(f.$$.fragment,t),w=u(t),$=h(t,"P",{}),y($).forEach(s),this.h()},h(){S(e,"name","hf:doc:metadata"),S(e,"content",B)},m(t,n){G(document.head,e),l(t,c,n),l(t,i,n),l(t,o,n),P(m,t,n),l(t,a,n),P(r,t,n),l(t,_,n),P(f,t,n),l(t,w,n),l(t,$,n),v=!0},p(t,[n]){const T={};n&2&&(T.$$scope={dirty:n,ctx:t}),r.$set(T)},i(t){v||(A(m.$$.fragment,t),A(r.$$.fragment,t),A(f.$$.fragment,t),v=!0)},o(t){C(m.$$.fragment,t),C(r.$$.fragment,t),C(f.$$.fragment,t),v=!1},d(t){t&&(s(c),s(i),s(o),s(a),s(_),s(w),s($)),s(e),E(m,t),E(r,t),E(f,t)}}}const B='{"title":"Agents和工具","local":"agents和工具","sections":[],"depth":1}';function D(g){return z(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Q extends I{constructor(e){super(),M(this,e,D,W,k,{})}}export{Q as component};
