import{s as ft,a as D,n as ct,o as _t}from"../chunks/scheduler.505acc25.js";import{S as vt,i as $t,e as a,s as i,c as J,h as Mt,a as r,d as n,b as s,f as gt,g as K,j as m,k as o,l as xt,m as l,n as Q,t as V,o as X,p as Y}from"../chunks/index.b1175496.js";import{C as Lt,H as dt}from"../chunks/Heading.eda51538.js";import{E as Tt}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.ea377ea6.js";function Ct(Z){let u,A,P,w,p,y,g,j,f,tt,E,c,et="欢迎来到第一单元，在这里<strong>你将在 AI 智能体 (AI Agents) 的基础知识中建立坚实的基础</strong>，包括：",I,_,nt="<li><p><strong>理解智能体 (Understanding Agents)</strong></p> <ul><li>什么是智能体，它是如何工作的？</li> <li>智能体如何使用推理 (Reasoning) 和规划 (Planning) 做出决策？</li></ul></li> <li><p><strong>大型语言模型 (LLMs) 在智能体中的角色</strong></p> <ul><li>LLMs 如何作为智能体的”大脑”</li> <li>LLMs 如何通过消息系统 (Message System) 构建对话</li></ul></li> <li><p><strong>工具和行动 (Tools and Actions)</strong></p> <ul><li>智能体如何使用外部工具与环境交互</li> <li>如何为你的智能体构建和集成工具</li></ul></li> <li><p><strong>智能体工作流程 (Agent Workflow):</strong></p> <ul><li><em>思考 (Think)</em> → <em>行动 (Act)</em> → <em>观察 (Observe)</em></li></ul></li>",S,v,lt="探索这些主题后，<strong>你将使用 <code>smolagents</code> 构建你的第一个智能体</strong>！",k,$,it="你的智能体名为 Alfred，将处理一个简单的任务，并展示如何在实践中应用这些概念。",q,M,st="你甚至会学习如何<strong>在 Hugging Face Spaces 上发布你的智能体</strong>，这样你就可以与朋友和同事分享它。",z,x,at="最后，在本单元结束时，你将参加一个测验。通过它，你将<strong>获得你的第一个课程认证</strong>：🎓 智能体基础证书 (Certificate of Fundamentals of Agents)。",G,L,rt,U,d,ut="这个单元是你的<strong>重要起点</strong>，在进入更高级的主题之前，为理解智能体打下基础。",F,T,mt,O,C,ot="这是一个大单元，所以<strong>请慢慢来</strong>，不要犹豫随时回来复习这些章节。",R,H,pt="准备好了吗？让我们开始吧！🚀",N,h,W,b,B;return p=new Lt({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),g=new dt({props:{title:"智能体简介 (Introduction to Agents)",local:"智能体简介-introduction-to-agents",headingTag:"h1"}}),h=new Tt({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/zh-CN/unit1/introduction.mdx"}}),{c(){u=a("meta"),A=i(),P=a("p"),w=i(),J(p.$$.fragment),y=i(),J(g.$$.fragment),j=i(),f=a("img"),E=i(),c=a("p"),c.innerHTML=et,I=i(),_=a("ul"),_.innerHTML=nt,S=i(),v=a("p"),v.innerHTML=lt,k=i(),$=a("p"),$.textContent=it,q=i(),M=a("p"),M.innerHTML=st,z=i(),x=a("p"),x.innerHTML=at,G=i(),L=a("img"),U=i(),d=a("p"),d.innerHTML=ut,F=i(),T=a("img"),O=i(),C=a("p"),C.innerHTML=ot,R=i(),H=a("p"),H.textContent=pt,N=i(),J(h.$$.fragment),W=i(),b=a("p"),this.h()},l(t){const e=Mt("svelte-u9bgzb",document.head);u=r(e,"META",{name:!0,content:!0}),e.forEach(n),A=s(t),P=r(t,"P",{}),gt(P).forEach(n),w=s(t),K(p.$$.fragment,t),y=s(t),K(g.$$.fragment,t),j=s(t),f=r(t,"IMG",{src:!0,alt:!0}),E=s(t),c=r(t,"P",{"data-svelte-h":!0}),m(c)!=="svelte-13ljpti"&&(c.innerHTML=et),I=s(t),_=r(t,"UL",{"data-svelte-h":!0}),m(_)!=="svelte-15v0c24"&&(_.innerHTML=nt),S=s(t),v=r(t,"P",{"data-svelte-h":!0}),m(v)!=="svelte-eg4u7i"&&(v.innerHTML=lt),k=s(t),$=r(t,"P",{"data-svelte-h":!0}),m($)!=="svelte-1job9f5"&&($.textContent=it),q=s(t),M=r(t,"P",{"data-svelte-h":!0}),m(M)!=="svelte-1equz5i"&&(M.innerHTML=st),z=s(t),x=r(t,"P",{"data-svelte-h":!0}),m(x)!=="svelte-1sjq9pg"&&(x.innerHTML=at),G=s(t),L=r(t,"IMG",{src:!0,alt:!0}),U=s(t),d=r(t,"P",{"data-svelte-h":!0}),m(d)!=="svelte-1ajo9oa"&&(d.innerHTML=ut),F=s(t),T=r(t,"IMG",{src:!0,alt:!0}),O=s(t),C=r(t,"P",{"data-svelte-h":!0}),m(C)!=="svelte-1a4kny2"&&(C.innerHTML=ot),R=s(t),H=r(t,"P",{"data-svelte-h":!0}),m(H)!=="svelte-11pd8e4"&&(H.textContent=pt),N=s(t),K(h.$$.fragment,t),W=s(t),b=r(t,"P",{}),gt(b).forEach(n),this.h()},h(){o(u,"name","hf:doc:metadata"),o(u,"content",Ht),D(f.src,tt="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/unit1/thumbnail.jpg")||o(f,"src",tt),o(f,"alt","Thumbnail"),D(L.src,rt="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/unit1/certificate-example.jpg")||o(L,"src",rt),o(L,"alt","Certificate Example"),D(T.src,mt="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/unit1/whiteboard-no-check.jpg")||o(T,"src",mt),o(T,"alt","Unit 1 planning")},m(t,e){xt(document.head,u),l(t,A,e),l(t,P,e),l(t,w,e),Q(p,t,e),l(t,y,e),Q(g,t,e),l(t,j,e),l(t,f,e),l(t,E,e),l(t,c,e),l(t,I,e),l(t,_,e),l(t,S,e),l(t,v,e),l(t,k,e),l(t,$,e),l(t,q,e),l(t,M,e),l(t,z,e),l(t,x,e),l(t,G,e),l(t,L,e),l(t,U,e),l(t,d,e),l(t,F,e),l(t,T,e),l(t,O,e),l(t,C,e),l(t,R,e),l(t,H,e),l(t,N,e),Q(h,t,e),l(t,W,e),l(t,b,e),B=!0},p:ct,i(t){B||(V(p.$$.fragment,t),V(g.$$.fragment,t),V(h.$$.fragment,t),B=!0)},o(t){X(p.$$.fragment,t),X(g.$$.fragment,t),X(h.$$.fragment,t),B=!1},d(t){t&&(n(A),n(P),n(w),n(y),n(j),n(f),n(E),n(c),n(I),n(_),n(S),n(v),n(k),n($),n(q),n(M),n(z),n(x),n(G),n(L),n(U),n(d),n(F),n(T),n(O),n(C),n(R),n(H),n(N),n(W),n(b)),n(u),Y(p,t),Y(g,t),Y(h,t)}}}const Ht='{"title":"智能体简介 (Introduction to Agents)","local":"智能体简介-introduction-to-agents","sections":[],"depth":1}';function ht(Z){return _t(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class yt extends vt{constructor(u){super(),$t(this,u,ht,Ct,ft,{})}}export{yt as component};
