import{s as pt,f as W,n as gt,o as ct}from"../chunks/scheduler.889ebb13.js";import{S as ft,i as _t,g as a,s as i,r as it,A as vt,h as u,f as n,c as s,j as st,u as at,x as o,k as m,y as Mt,a as l,v as ut,d as rt,t as ot,w as mt}from"../chunks/index.ca18042b.js";import{H as Lt,E as dt}from"../chunks/index.d845d0a2.js";function xt(B){let r,A,H,b,p,w,g,D,j,c,J="欢迎来到第一单元，在这里<strong>你将在 AI 智能体 (AI Agents) 的基础知识中建立坚实的基础</strong>，包括：",E,f,K="<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>",I,_,Q="探索这些主题后，<strong>你将使用 <code>smolagents</code> 构建你的第一个智能体</strong>！",y,v,V="你的智能体名为 Alfred，将处理一个简单的任务，并展示如何在实践中应用这些概念。",k,M,X="你甚至会学习如何<strong>在 Hugging Face Spaces 上发布你的智能体</strong>，这样你就可以与朋友和同事分享它。",S,L,Y="最后，在本单元结束时，你将参加一个测验。通过它，你将<strong>获得你的第一个课程认证</strong>：🎓 智能体基础证书 (Certificate of Fundamentals of Agents)。",q,d,Z,G,x,tt="这个单元是你的<strong>重要起点</strong>，在进入更高级的主题之前，为理解智能体打下基础。",U,T,et,z,h,nt="这是一个大单元，所以<strong>请慢慢来</strong>，不要犹豫随时回来复习这些章节。",F,$,lt="准备好了吗？让我们开始吧！🚀",O,C,R,P,N;return p=new Lt({props:{title:"智能体简介 (Introduction to Agents)",local:"智能体简介-introduction-to-agents",headingTag:"h1"}}),C=new dt({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/zh-CN/unit1/introduction.mdx"}}),{c(){r=a("meta"),A=i(),H=a("p"),b=i(),it(p.$$.fragment),w=i(),g=a("img"),j=i(),c=a("p"),c.innerHTML=J,E=i(),f=a("ul"),f.innerHTML=K,I=i(),_=a("p"),_.innerHTML=Q,y=i(),v=a("p"),v.textContent=V,k=i(),M=a("p"),M.innerHTML=X,S=i(),L=a("p"),L.innerHTML=Y,q=i(),d=a("img"),G=i(),x=a("p"),x.innerHTML=tt,U=i(),T=a("img"),z=i(),h=a("p"),h.innerHTML=nt,F=i(),$=a("p"),$.textContent=lt,O=i(),it(C.$$.fragment),R=i(),P=a("p"),this.h()},l(t){const e=vt("svelte-u9bgzb",document.head);r=u(e,"META",{name:!0,content:!0}),e.forEach(n),A=s(t),H=u(t,"P",{}),st(H).forEach(n),b=s(t),at(p.$$.fragment,t),w=s(t),g=u(t,"IMG",{src:!0,alt:!0}),j=s(t),c=u(t,"P",{"data-svelte-h":!0}),o(c)!=="svelte-13ljpti"&&(c.innerHTML=J),E=s(t),f=u(t,"UL",{"data-svelte-h":!0}),o(f)!=="svelte-15v0c24"&&(f.innerHTML=K),I=s(t),_=u(t,"P",{"data-svelte-h":!0}),o(_)!=="svelte-eg4u7i"&&(_.innerHTML=Q),y=s(t),v=u(t,"P",{"data-svelte-h":!0}),o(v)!=="svelte-1job9f5"&&(v.textContent=V),k=s(t),M=u(t,"P",{"data-svelte-h":!0}),o(M)!=="svelte-1equz5i"&&(M.innerHTML=X),S=s(t),L=u(t,"P",{"data-svelte-h":!0}),o(L)!=="svelte-1sjq9pg"&&(L.innerHTML=Y),q=s(t),d=u(t,"IMG",{src:!0,alt:!0}),G=s(t),x=u(t,"P",{"data-svelte-h":!0}),o(x)!=="svelte-1ajo9oa"&&(x.innerHTML=tt),U=s(t),T=u(t,"IMG",{src:!0,alt:!0}),z=s(t),h=u(t,"P",{"data-svelte-h":!0}),o(h)!=="svelte-1a4kny2"&&(h.innerHTML=nt),F=s(t),$=u(t,"P",{"data-svelte-h":!0}),o($)!=="svelte-11pd8e4"&&($.textContent=lt),O=s(t),at(C.$$.fragment,t),R=s(t),P=u(t,"P",{}),st(P).forEach(n),this.h()},h(){m(r,"name","hf:doc:metadata"),m(r,"content",Tt),W(g.src,D="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/unit1/thumbnail.jpg")||m(g,"src",D),m(g,"alt","Thumbnail"),W(d.src,Z="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/unit1/certificate-example.jpg")||m(d,"src",Z),m(d,"alt","Certificate Example"),W(T.src,et="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/unit1/whiteboard-no-check.jpg")||m(T,"src",et),m(T,"alt","Unit 1 planning")},m(t,e){Mt(document.head,r),l(t,A,e),l(t,H,e),l(t,b,e),ut(p,t,e),l(t,w,e),l(t,g,e),l(t,j,e),l(t,c,e),l(t,E,e),l(t,f,e),l(t,I,e),l(t,_,e),l(t,y,e),l(t,v,e),l(t,k,e),l(t,M,e),l(t,S,e),l(t,L,e),l(t,q,e),l(t,d,e),l(t,G,e),l(t,x,e),l(t,U,e),l(t,T,e),l(t,z,e),l(t,h,e),l(t,F,e),l(t,$,e),l(t,O,e),ut(C,t,e),l(t,R,e),l(t,P,e),N=!0},p:gt,i(t){N||(rt(p.$$.fragment,t),rt(C.$$.fragment,t),N=!0)},o(t){ot(p.$$.fragment,t),ot(C.$$.fragment,t),N=!1},d(t){t&&(n(A),n(H),n(b),n(w),n(g),n(j),n(c),n(E),n(f),n(I),n(_),n(y),n(v),n(k),n(M),n(S),n(L),n(q),n(d),n(G),n(x),n(U),n(T),n(z),n(h),n(F),n($),n(O),n(R),n(P)),n(r),mt(p,t),mt(C,t)}}}const Tt='{"title":"智能体简介 (Introduction to Agents)","local":"智能体简介-introduction-to-agents","sections":[],"depth":1}';function ht(B){return ct(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Pt extends ft{constructor(r){super(),_t(this,r,ht,xt,pt,{})}}export{Pt as component};
