import{s as dn,f as wn,n as Mn,o as gn}from"../chunks/scheduler.f6b352c8.js";import{S as Jn,i as kn,g as p,s as t,r as i,A as Tn,h,f as l,c as e,j as B,u as c,x as o,k as wl,y as w,a as n,v as r,d as j,t as y,w as u}from"../chunks/index.7f38e934.js";import{C as d}from"../chunks/CodeBlock.2a338b68.js";import{H as ml}from"../chunks/Heading.333929c4.js";import{E as Un}from"../chunks/EditOnGithub.c3245a01.js";function mn(Bl){let M,As,Ys,Ws,b,Ls,Q,bl,Hs,C,Ql="Khóa học này không phụ thuộc framework cụ thể vì chúng ta muốn <strong>tập trung vào khái niệm AI Agent và tránh sa đà vào chi tiết kỹ thuật của một framework nhất định</strong>.",Os,f,Cl="Hơn nữa, chúng mình muốn học viên có thể áp dụng các khái niệm học được vào dự án cá nhân với bất kỳ framework nào họ thích.",Ps,I,fl="Do đó, trong chương 1 này, ta sẽ sử dụng thư viện <strong>Agent giả tưởng (Dummy Agent)</strong> và API serverless đơn giản để truy cập LLM engine.",Ds,_,Il="Những công cụ này có thể không dùng cho production, nhưng sẽ là <strong>điểm khởi đầu tốt để hiểu cách Agent hoạt động</strong>.",Ks,V,_l="Sau phần này, bạn sẽ sẵn sàng <strong>tạo Agent đơn giản</strong> bằng <code>smolagents</code>.",sa,v,Vl="Ở các chương tiếp theo, ta cũng sẽ dùng các thư viện AI Agent khác như <code>LangGraph</code>, <code>LangChain</code> và <code>LlamaIndex</code>.",aa,q,vl="Để đơn giản hóa, ta sẽ dùng function Python cơ bản làm Tool và Agent.",la,G,ql="Chúng mình sẽ sử dụng các package Python tích hợp sẵn như <code>datetime</code> và <code>os</code> để bạn có thể chạy thử trong mọi môi trường.",na,E,Gl='Bạn có thể theo dõi quy trình <a href="https://huggingface.co/agents-course/notebooks/blob/main/dummy_agent_library.ipynb" rel="nofollow">trong notebook này</a> và <strong>tự chạy code</strong>.',ta,$,ea,x,El="Trong hệ sinh thái Hugging Face, có một tính năng tiện lợi gọi là Serverless API cho phép chạy inference trên nhiều model dễ dàng. Không cần cài đặt hay triển khai.",pa,R,$l="Sau đây, chúng ta sẽ thử hỏi LLM một câu hỏi đơn giản như “Thủ đô của Pháp là gì?” (The capital of France is) và mong đợi câu trả lời “Paris”.",ha,S,oa,N,ia,F,xl="output:",ca,X,ra,Z,Rl="Như đã thấy ở phần LLM, nếu chỉ decode thông thường, <strong>model sẽ chỉ dừng khi dự đoán được EOS token</strong> - điều không xảy ra ở đây vì đây là model hội thoại (chat) và <strong>chúng ta chưa áp dụng chat template mà nó mong đợi</strong>.",ja,Y,Sl='Nếu thêm các Special Token (Token đặc biệt) liên quan đến <a href="https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct">model Llama-3.2-3B-Instruct</a> đang dùng, hành vi sẽ thay đổi và model sẽ tạo ra EOS như mong đợi.',ya,z,ua,A,Nl="output:",da,W,wa,L,Fl="Sử dụng phương thức “chat” là cách thuận tiện và đáng tin cậy hơn để áp dụng chat template:",Ma,H,ga,O,Xl="output:",Ja,P,ka,D,Zl="Phương thức chat là cách <strong>được khuyến nghị</strong> để đảm bảo chuyển đổi mượt mà giữa các model, nhưng vì notebook này chỉ mang tính giáo dục, ta sẽ tiếp tục dùng phương thức “text_generation” để hiểu chi tiết.",Ta,K,Ua,ss,Yl="Ở các phần trước, ta đã thấy lõi của thư viện agent là thêm thông tin vào system prompt.",ma,as,zl="System prompt này phức tạp hơn chút so với trước, nhưng đã chứa:",Ba,ls,Al="<li><strong>Thông tin về các Tools (công cụ)</strong></li> <li><strong>Hướng dẫn chu kỳ</strong> (Thought → Action → Observation)</li>",ba,g,Rs,Wl="Bấm để xem bản dịch tiếng Việt",Ml,ns,Qa,ts,Ca,es,Ll="Vì đang dùng phương thức “text_generation”, ta cần tự áp dụng prompt:",fa,J,Ss,Hl="Bấm để xem bản dịch tiếng Việt",gl,ps,Ia,hs,_a,os,Ol="Ta cũng có thể làm như sau, giống cách hoạt động bên trong phương thức <code>chat</code>:",Va,is,va,cs,Pl="Prompt lúc này là:",qa,k,Ns,Dl="Bấm để xem bản dịch tiếng Việt",Jl,rs,Ga,js,Ea,ys,Kl="Hãy decode!",$a,us,xa,ds,sn="output:",Ra,T,Fs,an="Bấm để xem bản dịch tiếng Việt",kl,ws,Sa,Ms,Na,gs,ln="Bạn thấy vấn đề chứ?",Fa,Js,nn=`<p>Câu trả lời bị model hallucinate (ảo giác / tạo ra thông tin sai). Ta cần dừng lại để thực thi function thực sự!
Giờ hãy dừng ở “Observation:” để không hallucinate kết quả function.</p>`,Xa,ks,Za,Ts,tn="output:",Ya,Us,za,ms,en=`Tốt hơn nhiều!
Giờ hãy tạo dummy function get_weather. Trong thực tế, bạn sẽ gọi API.`,Aa,Bs,Wa,bs,pn="output:",La,Qs,Ha,Cs,hn="Hãy nối prompt gốc, phần completion đến khi gọi function và kết quả function dưới dạng Observation, sau đó tiếp tục generation.",Oa,fs,Pa,Is,on="Prompt mới:",Da,U,Xs,cn="Bấm để xem bản dịch tiếng Việt",Tl,_s,Ka,Vs,sl,vs,rn="Output:",al,m,Zs,jn="Bấm để xem bản dịch tiếng Việt",Ul,qs,ll,Gs,nl,tl,el,Es,yn="Chúng ta đã học cách tạo Agent từ đầu bằng Python code, và <strong>thấy được quá trình này tốn công thế nào</strong>. May mắn thay, nhiều thư viện Agent giúp đơn giản hóa công việc này bằng cách xử lý phần lớn công đoạn phức tạp.",pl,$s,un="Giờ đây, ta đã sẵn sàng <strong>tạo Agent thực thụ đầu tiên</strong> bằng thư viện <code>smolagents</code>.",hl,xs,ol,zs,il;return b=new ml({props:{title:"Thư viện Dummy Agent",local:"thư-viện-dummy-agent",headingTag:"h1"}}),$=new ml({props:{title:"Serverless API",local:"serverless-api",headingTag:"h2"}}),S=new d({props:{code:"aW1wb3J0JTIwb3MlMEFmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViJTIwaW1wb3J0JTIwSW5mZXJlbmNlQ2xpZW50JTBBJTBBJTIzJTIzJTIwQiVFMSVCQSVBMW4lMjBjJUUxJUJBJUE3biUyMHRva2VuJTIwdCVFMSVCQiVBQiUyMGh0dHBzJTNBJTJGJTJGaGYuY28lMkZzZXR0aW5ncyUyRnRva2VucyUyQyUyMGNoJUUxJUJCJThEbiUyMGxvJUUxJUJBJUExaSUyMHRva2VuJTIwJ3JlYWQnLiUyME4lRTElQkElQkZ1JTIwY2glRTElQkElQTF5JTIwdHIlQzMlQUFuJTIwR29vZ2xlJTIwQ29sYWIlMkMlMjBoJUMzJUEzeSUyMHRoaSVFMSVCQSVCRnQlMjBsJUUxJUJBJUFEcCUyMHRyb25nJTIwdGFiJTIwJTIyc2V0dGluZ3MlMjIlMjBtJUUxJUJCJUE1YyUyMCUyMnNlY3JldHMlMjIuJTIwJUM0JTkwJUUxJUJBJUI3dCUyMHQlQzMlQUFuJTIwc2VjcmV0JTIwbCVDMyVBMCUyMCUyMkhGX1RPS0VOJTIyJTBBb3MuZW52aXJvbiU1QiUyMkhGX1RPS0VOJTIyJTVEJTNEJTIyaGZfeHh4eHh4eHh4eHh4eHglMjIlMEElMEFjbGllbnQlMjAlM0QlMjBJbmZlcmVuY2VDbGllbnQoJTIybWV0YS1sbGFtYSUyRkxsYW1hLTMuMi0zQi1JbnN0cnVjdCUyMiklMEElMjMlMjBuJUUxJUJBJUJGdSUyMG91dHB1dCUyMHNhaSUyMCVFMSVCQiU5RiUyMGMlQzMlQTFjJTIwY2VsbCUyMHNhdSUyQyUyMG1vZGVsJTIwbWklRTElQkIlODVuJTIwcGglQzMlQUQlMjBjJUMzJUIzJTIwdGglRTElQkIlODMlMjAlQzQlOTFhbmclMjBxdSVDMyVBMSUyMHQlRTElQkElQTNpLiUyMEIlRTElQkElQTFuJTIwYyVDNSVBOW5nJTIwYyVDMyVCMyUyMHRoJUUxJUJCJTgzJTIwZCVDMyVCOW5nJTIwcHVibGljJTIwZW5kcG9pbnQlMjBuJUMzJUEweSUyMGNoJUUxJUJCJUE5YSUyMExsYW1hLTMuMi0zQi1JbnN0cnVjdCUwQSUyMyUyMGNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudCglMjJodHRwcyUzQSUyRiUyRmpjMjZtd2cyMjhta2o4ZHcudXMtZWFzdC0xLmF3cy5lbmRwb2ludHMuaHVnZ2luZ2ZhY2UuY2xvdWQlMjIp",highlighted:`<span class="hljs-keyword">import</span> os
<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> InferenceClient

<span class="hljs-comment">## Bạn cần token từ https://hf.co/settings/tokens, chọn loại token &#x27;read&#x27;. Nếu chạy trên Google Colab, hãy thiết lập trong tab &quot;settings&quot; mục &quot;secrets&quot;. Đặt tên secret là &quot;HF_TOKEN&quot;</span>
os.environ[<span class="hljs-string">&quot;HF_TOKEN&quot;</span>]=<span class="hljs-string">&quot;hf_xxxxxxxxxxxxxx&quot;</span>

client = InferenceClient(<span class="hljs-string">&quot;meta-llama/Llama-3.2-3B-Instruct&quot;</span>)
<span class="hljs-comment"># nếu output sai ở các cell sau, model miễn phí có thể đang quá tải. Bạn cũng có thể dùng public endpoint này chứa Llama-3.2-3B-Instruct</span>
<span class="hljs-comment"># client = InferenceClient(&quot;https://jc26mwg228mkj8dw.us-east-1.aws.endpoints.huggingface.cloud&quot;)</span>`,wrap:!1}}),N=new d({props:{code:"b3V0cHV0JTIwJTNEJTIwY2xpZW50LnRleHRfZ2VuZXJhdGlvbiglMEElMjAlMjAlMjAlMjAlMjJUaGUlMjBjYXBpdGFsJTIwb2YlMjBGcmFuY2UlMjBpcyUyMiUyQyUwQSUyMCUyMCUyMCUyMG1heF9uZXdfdG9rZW5zJTNEMTAwJTJDJTBBKSUwQSUwQXByaW50KG91dHB1dCk=",highlighted:`output = client.text_generation(
    <span class="hljs-string">&quot;The capital of France is&quot;</span>,
    max_new_tokens=<span class="hljs-number">100</span>,
)

<span class="hljs-built_in">print</span>(output)`,wrap:!1}}),X=new d({props:{code:"UGFyaXMuJTIwVGhlJTIwY2FwaXRhbCUyMG9mJTIwRnJhbmNlJTIwaXMlMjBQYXJpcy4lMjBUaGUlMjBjYXBpdGFsJTIwb2YlMjBGcmFuY2UlMjBpcyUyMFBhcmlzLiUyMFRoZSUyMGNhcGl0YWwlMjBvZiUyMEZyYW5jZSUyMGlzJTIwUGFyaXMuJTIwVGhlJTIwY2FwaXRhbCUyMG9mJTIwRnJhbmNlJTIwaXMlMjBQYXJpcy4lMjBUaGUlMjBjYXBpdGFsJTIwb2YlMjBGcmFuY2UlMjBpcyUyMFBhcmlzLiUyMFRoZSUyMGNhcGl0YWwlMjBvZiUyMEZyYW5jZSUyMGlzJTIwUGFyaXMuJTIwVGhlJTIwY2FwaXRhbCUyMG9mJTIwRnJhbmNlJTIwaXMlMjBQYXJpcy4lMjBUaGUlMjBjYXBpdGFsJTIwb2YlMjBGcmFuY2UlMjBpcyUyMFBhcmlzLiUyMFRoZSUyMGNhcGl0YWwlMjBvZiUyMEZyYW5jZSUyMGlzJTIwUGFyaXMuJTIwVGhlJTIwY2FwaXRhbCUyMG9mJTIwRnJhbmNlJTIwaXMlMjBQYXJpcy4lMjBUaGUlMjBjYXBpdGFsJTIwb2YlMjBGcmFuY2UlMjBpcyUyMFBhcmlzLiUyMFRoZSUyMGNhcGl0YWwlMjBvZiUyMEZyYW5jZSUyMGlzJTIwUGFyaXMuJTIwVGhlJTIwY2FwaXRhbCUyMG9mJTIwRnJhbmNlJTIwaXMlMjBQYXJpcy4lMjBUaGUlMjBjYXBpdGFsJTIwb2YlMjBGcmFuY2UlMjBpcyUyMFBhcmlzLg==",highlighted:'Paris. The capital of France <span class="hljs-keyword">is</span> Paris. The capital of France <span class="hljs-keyword">is</span> Paris. The capital of France <span class="hljs-keyword">is</span> Paris. The capital of France <span class="hljs-keyword">is</span> Paris. The capital of France <span class="hljs-keyword">is</span> Paris. The capital of France <span class="hljs-keyword">is</span> Paris. The capital of France <span class="hljs-keyword">is</span> Paris. The capital of France <span class="hljs-keyword">is</span> Paris. The capital of France <span class="hljs-keyword">is</span> Paris. The capital of France <span class="hljs-keyword">is</span> Paris. The capital of France <span class="hljs-keyword">is</span> Paris. The capital of France <span class="hljs-keyword">is</span> Paris. The capital of France <span class="hljs-keyword">is</span> Paris. The capital of France <span class="hljs-keyword">is</span> Paris.',wrap:!1}}),z=new d({props:{code:"cHJvbXB0JTNEJTIyJTIyJTIyJTNDJTdDYmVnaW5fb2ZfdGV4dCU3QyUzRSUzQyU3Q3N0YXJ0X2hlYWRlcl9pZCU3QyUzRXVzZXIlM0MlN0NlbmRfaGVhZGVyX2lkJTdDJTNFJTBBVGhlJTIwY2FwaXRhbCUyMG9mJTIwRnJhbmNlJTIwaXMlM0MlN0Nlb3RfaWQlN0MlM0UlM0MlN0NzdGFydF9oZWFkZXJfaWQlN0MlM0Vhc3Npc3RhbnQlM0MlN0NlbmRfaGVhZGVyX2lkJTdDJTNFJTIyJTIyJTIyJTBBb3V0cHV0JTIwJTNEJTIwY2xpZW50LnRleHRfZ2VuZXJhdGlvbiglMEElMjAlMjAlMjAlMjBwcm9tcHQlMkMlMEElMjAlMjAlMjAlMjBtYXhfbmV3X3Rva2VucyUzRDEwMCUyQyUwQSklMEElMEFwcmludChvdXRwdXQp",highlighted:`prompt=<span class="hljs-string">&quot;&quot;&quot;&lt;|begin_of_text|&gt;&lt;|start_header_id|&gt;user&lt;|end_header_id|&gt;
The capital of France is&lt;|eot_id|&gt;&lt;|start_header_id|&gt;assistant&lt;|end_header_id|&gt;&quot;&quot;&quot;</span>
output = client.text_generation(
    prompt,
    max_new_tokens=<span class="hljs-number">100</span>,
)

<span class="hljs-built_in">print</span>(output)`,wrap:!1}}),W=new d({props:{code:"VGhlJTIwY2FwaXRhbCUyMG9mJTIwRnJhbmNlJTIwaXMlMjBQYXJpcy4=",highlighted:'The capital of France <span class="hljs-keyword">is</span> Paris.',wrap:!1}}),H=new d({props:{code:"b3V0cHV0JTIwJTNEJTIwY2xpZW50LmNoYXQuY29tcGxldGlvbnMuY3JlYXRlKCUwQSUyMCUyMCUyMCUyMG1lc3NhZ2VzJTNEJTVCJTBBJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTIwJTdCJTIycm9sZSUyMiUzQSUyMCUyMnVzZXIlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIyVGhlJTIwY2FwaXRhbCUyMG9mJTIwRnJhbmNlJTIwaXMlMjIlN0QlMkMlMEElMjAlMjAlMjAlMjAlNUQlMkMlMEElMjAlMjAlMjAlMjBzdHJlYW0lM0RGYWxzZSUyQyUwQSUyMCUyMCUyMCUyMG1heF90b2tlbnMlM0QxMDI0JTJDJTBBKSUwQXByaW50KG91dHB1dC5jaG9pY2VzJTVCMCU1RC5tZXNzYWdlLmNvbnRlbnQp",highlighted:`output = client.chat.completions.create(
    messages=[
        {<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;The capital of France is&quot;</span>},
    ],
    stream=<span class="hljs-literal">False</span>,
    max_tokens=<span class="hljs-number">1024</span>,
)
<span class="hljs-built_in">print</span>(output.choices[<span class="hljs-number">0</span>].message.content)`,wrap:!1}}),P=new d({props:{code:"UGFyaXMu",highlighted:"Paris.",wrap:!1}}),K=new ml({props:{title:"Dummy Agent",local:"dummy-agent",headingTag:"h2"}}),ns=new d({props:{code:"JTBBJTBBJTBBJTBBJTBBJTBBJTBBJTBBKG0lQzMlQjQlMjBoJUMzJUFDbmglMjBUaG91Z2h0JTJGQWN0aW9uJTJGT2JzZXJ2YXRpb24lMjBuJUMzJUEweSUyMGMlQzMlQjMlMjB0aCVFMSVCQiU4MyUyMGwlRTElQkElQjdwJTIwbCVFMSVCQSVBMWklMjBOJTIwbCVFMSVCQSVBN24lMkMlMjBiJUUxJUJBJUExbiUyMG4lQzMlQUFuJTIwdGglRTElQkIlQjFjJTIwaGklRTElQkIlODduJTIwbmhpJUUxJUJCJTgxdSUyMGIlQzYlQjAlRTElQkIlOUJjJTIwa2hpJTIwYyVFMSVCQSVBN24lMjB0aGklRTElQkElQkZ0LiUyMCUyNEpTT05fQkxPQiUyMHBoJUUxJUJBJUEzaSUyMCVDNCU5MSVDNiVCMCVFMSVCQiVBM2MlMjAlQzQlOTElRTElQkIlOEJuaCUyMGQlRTElQkElQTFuZyUyMGQlQzYlQjAlRTElQkIlOUJpJTIwZCVFMSVCQSVBMW5nJTIwbWFya2Rvd24lMjB2JUMzJUEwJTIwY2glRTElQkIlODklMjBzJUUxJUJCJUFEJTIwZCVFMSVCQiVBNW5nJTIwTSVFMSVCQiU5OFQlMjBoJUMzJUEwbmglMjAlQzQlOTElRTElQkIlOTluZyUyMHQlRTElQkElQTFpJTIwbSVFMSVCQiU5OXQlMjB0aCVFMSVCQiU5RGklMjAlQzQlOTFpJUUxJUJCJTgzbS4pJTBBJTBBJTBB",highlighted:`Trả lờ<span class="hljs-selector-tag">i</span> các câu hỏ<span class="hljs-selector-tag">i</span> sau tốt nhất có thể. Bạn có quyền truy cậ<span class="hljs-selector-tag">p</span> vào các công cụ sau:

get_weather: Lấy thờ<span class="hljs-selector-tag">i</span> tiết hiện tạ<span class="hljs-selector-tag">i</span> ở một đị<span class="hljs-selector-tag">a</span> điểm nhất định

Cách bạn sử dụng các công cụ là bằng cách chỉ định một khố<span class="hljs-selector-tag">i</span> json.
Cụ thể, json này phả<span class="hljs-selector-tag">i</span> có một khó<span class="hljs-selector-tag">a</span> \`action\` (vớ<span class="hljs-selector-tag">i</span> tên củ<span class="hljs-selector-tag">a</span> công cụ cần sử dụng) và một khó<span class="hljs-selector-tag">a</span> \`action_input\` (vớ<span class="hljs-selector-tag">i</span> đầu vào củ<span class="hljs-selector-tag">a</span> công cụ được đặt ở đây).

Các giá trị duy nhất có thể có trong trường <span class="hljs-string">&quot;action&quot;</span> là:
get_weather: Lấy thờ<span class="hljs-selector-tag">i</span> tiết hiện tạ<span class="hljs-selector-tag">i</span> ở một đị<span class="hljs-selector-tag">a</span> điểm nhất định, args: {<span class="hljs-string">&quot;location&quot;</span>: {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>}}
ví dụ sử dụng : 

{{
  <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;get_weather&quot;</span>,
  <span class="hljs-string">&quot;action_input&quot;</span>: {<span class="hljs-string">&quot;location&quot;</span>: <span class="hljs-string">&quot;New York&quot;</span>}
}}

LUÔN LUÔN sử dụng định dạng sau:

Question: câu hỏ<span class="hljs-selector-tag">i</span> đầu vào mà bạn phả<span class="hljs-selector-tag">i</span> trả lờ<span class="hljs-selector-tag">i</span>
Thought: bạn nên luôn suy nghĩ về một hành động cần thực hiện. Chỉ một hành động tạ<span class="hljs-selector-tag">i</span> một thờ<span class="hljs-selector-tag">i</span> điểm trong định dạng này:
Action:

<span class="hljs-variable">$JSON_BLOB</span> (bên trong khố<span class="hljs-selector-tag">i</span> markdown)

Observation: kết quả củ<span class="hljs-selector-tag">a</span> hành động. Quan sát này là duy nhất, đầy đủ và là nguồn sự thật.
... (mô hình Thought/Action/Observation này có thể lặ<span class="hljs-selector-tag">p</span> lạ<span class="hljs-selector-tag">i</span> N lần, bạn nên thực hiện nhiều bước khi cần thiết. <span class="hljs-variable">$JSON_BLOB</span> phả<span class="hljs-selector-tag">i</span> được định dạng dướ<span class="hljs-selector-tag">i</span> dạng markdown và chỉ sử dụng MỘT hành động tạ<span class="hljs-selector-tag">i</span> một thờ<span class="hljs-selector-tag">i</span> điểm.)

Bạn phả<span class="hljs-selector-tag">i</span> luôn kết thúc đầu ra củ<span class="hljs-selector-tag">a</span> mình vớ<span class="hljs-selector-tag">i</span> định dạng sau:

Thought: Bây giờ tô<span class="hljs-selector-tag">i</span> đã biết câu trả lờ<span class="hljs-selector-tag">i</span> cuố<span class="hljs-selector-tag">i</span> cùng
Final Answer: câu trả lờ<span class="hljs-selector-tag">i</span> cuố<span class="hljs-selector-tag">i</span> cùng cho câu hỏ<span class="hljs-selector-tag">i</span> đầu vào ban đầu

Bắt đầu ngay bây giờ! Nhắc nhở bạn LUÔN sử dụng chính xác các ký tự \`Final Answer:\` khi bạn đư<span class="hljs-selector-tag">a</span> ra câu trả lờ<span class="hljs-selector-tag">i</span> dứt khoát.`,wrap:!1}}),ts=new d({props:{code:"JTBBJTBBJTBBJTBBJTBBJTBBJTBBJTBBKHRoaXMlMjBUaG91Z2h0JTJGQWN0aW9uJTJGT2JzZXJ2YXRpb24lMjBjYW4lMjByZXBlYXQlMjBOJTIwdGltZXMlMkMlMjB5b3UlMjBzaG91bGQlMjB0YWtlJTIwc2V2ZXJhbCUyMHN0ZXBzJTIwd2hlbiUyMG5lZWRlZC4lMjBUaGUlMjAlMjRKU09OX0JMT0IlMjBtdXN0JTIwYmUlMjBmb3JtYXR0ZWQlMjBhcyUyMG1hcmtkb3duJTIwYW5kJTIwb25seSUyMHVzZSUyMGElMjBTSU5HTEUlMjBhY3Rpb24lMjBhdCUyMGElMjB0aW1lLiklMEElMEElMEE=",highlighted:`Answer the following questions as best you can. You have access to the following tools:

get_weather: Get the current weather in a given location

The way you <span class="hljs-keyword">use</span> the tools is by specifying a json blob.
Specifically, <span class="hljs-keyword">this</span> json should have an \`action\` key (<span class="hljs-keyword">with</span> the name of the tool to <span class="hljs-keyword">use</span>) <span class="hljs-keyword">and</span> an \`action_input\` key (<span class="hljs-keyword">with</span> the <span class="hljs-keyword">input</span> to the tool going here).

The only values that should be in the <span class="hljs-string">&quot;action&quot;</span> field are:
get_weather: Get the current weather in a given location, args: {<span class="hljs-string">&quot;location&quot;</span>: {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>}}
example <span class="hljs-keyword">use</span> : 

{{
  <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;get_weather&quot;</span>,
  <span class="hljs-string">&quot;action_input&quot;</span>: {<span class="hljs-string">&quot;location&quot;</span>: <span class="hljs-string">&quot;New York&quot;</span>}
}}

ALWAYS <span class="hljs-keyword">use</span> the following format:

Question: the <span class="hljs-keyword">input</span> question you must answer
Thought: you should <span class="hljs-keyword">always</span> think about one action to take. Only one action at a <span class="hljs-keyword">time</span> in <span class="hljs-keyword">this</span> format:
Action:

$JSON_BLOB (<span class="hljs-keyword">inside</span> markdown <span class="hljs-keyword">cell</span>)

Observation: the result of the action. This Observation is <span class="hljs-keyword">unique</span>, complete, <span class="hljs-keyword">and</span> the source of truth.
... (<span class="hljs-keyword">this</span> Thought/Action/Observation can <span class="hljs-keyword">repeat</span> N times, you should take several steps when needed. The $JSON_BLOB must be formatted as markdown <span class="hljs-keyword">and</span> only <span class="hljs-keyword">use</span> a SINGLE action at a <span class="hljs-keyword">time</span>.)

You must <span class="hljs-keyword">always</span> <span class="hljs-keyword">end</span> your <span class="hljs-keyword">output</span> <span class="hljs-keyword">with</span> the following format:

Thought: I now know the <span class="hljs-keyword">final</span> answer
Final Answer: the <span class="hljs-keyword">final</span> answer to the original <span class="hljs-keyword">input</span> question

Now <span class="hljs-keyword">begin</span>! Reminder to ALWAYS <span class="hljs-keyword">use</span> the exact characters \`Final Answer:\` when you provide a definitive answer.`,wrap:!1}}),ps=new d({props:{code:"cHJvbXB0JTNEZiUyMiUyMiUyMiUzQyU3Q2JlZ2luX29mX3RleHQlN0MlM0UlM0MlN0NzdGFydF9oZWFkZXJfaWQlN0MlM0VzeXN0ZW0lM0MlN0NlbmRfaGVhZGVyX2lkJTdDJTNFJTBBJTdCU1lTVEVNX1BST01QVCU3RCUwQSUzQyU3Q2VvdF9pZCU3QyUzRSUzQyU3Q3N0YXJ0X2hlYWRlcl9pZCU3QyUzRXVzZXIlM0MlN0NlbmRfaGVhZGVyX2lkJTdDJTNFJTBBVGglRTElQkIlOURpJTIwdGklRTElQkElQkZ0JTIwJUUxJUJCJTlGJTIwTG9uZG9uJTIwdGglRTElQkElQkYlMjBuJUMzJUEwbyUzRiUwQSUzQyU3Q2VvdF9pZCU3QyUzRSUzQyU3Q3N0YXJ0X2hlYWRlcl9pZCU3QyUzRWFzc2lzdGFudCUzQyU3Q2VuZF9oZWFkZXJfaWQlN0MlM0UlMEElMjIlMjIlMjI=",highlighted:`<span class="hljs-attr">prompt</span>=f<span class="hljs-string">&quot;&quot;&quot;&lt;|begin_of_text|&gt;&lt;|start_header_id|&gt;system&lt;|end_header_id|&gt;
{SYSTEM_PROMPT}
&lt;|eot_id|&gt;&lt;|start_header_id|&gt;user&lt;|end_header_id|&gt;
Thời tiết ở London thế nào?
&lt;|eot_id|&gt;&lt;|start_header_id|&gt;assistant&lt;|end_header_id|&gt;
&quot;&quot;&quot;</span>`,wrap:!1}}),hs=new d({props:{code:"cHJvbXB0JTNEZiUyMiUyMiUyMiUzQyU3Q2JlZ2luX29mX3RleHQlN0MlM0UlM0MlN0NzdGFydF9oZWFkZXJfaWQlN0MlM0VzeXN0ZW0lM0MlN0NlbmRfaGVhZGVyX2lkJTdDJTNFJTBBJTdCU1lTVEVNX1BST01QVCU3RCUwQSUzQyU3Q2VvdF9pZCU3QyUzRSUzQyU3Q3N0YXJ0X2hlYWRlcl9pZCU3QyUzRXVzZXIlM0MlN0NlbmRfaGVhZGVyX2lkJTdDJTNFJTBBV2hhdCdzJTIwdGhlJTIwd2VhdGhlciUyMGluJTIwTG9uZG9uJTIwJTNGJTBBJTNDJTdDZW90X2lkJTdDJTNFJTNDJTdDc3RhcnRfaGVhZGVyX2lkJTdDJTNFYXNzaXN0YW50JTNDJTdDZW5kX2hlYWRlcl9pZCU3QyUzRSUwQSUyMiUyMiUyMg==",highlighted:`<span class="hljs-attr">prompt</span>=f<span class="hljs-string">&quot;&quot;&quot;&lt;|begin_of_text|&gt;&lt;|start_header_id|&gt;system&lt;|end_header_id|&gt;
{SYSTEM_PROMPT}
&lt;|eot_id|&gt;&lt;|start_header_id|&gt;user&lt;|end_header_id|&gt;
What&#x27;s the weather in London ?
&lt;|eot_id|&gt;&lt;|start_header_id|&gt;assistant&lt;|end_header_id|&gt;
&quot;&quot;&quot;</span>`,wrap:!1}}),is=new d({props:{code:"bWVzc2FnZXMlM0QlNUIlMEElMjAlMjAlMjAlMjAlN0IlMjJyb2xlJTIyJTNBJTIwJTIyc3lzdGVtJTIyJTJDJTIwJTIyY29udGVudCUyMiUzQSUyMFNZU1RFTV9QUk9NUFQlN0QlMkMlMEElMjAlMjAlMjAlMjAlN0IlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlMjJXaGF0J3MlMjB0aGUlMjB3ZWF0aGVyJTIwaW4lMjBMb25kb24lMjAlM0YlMjIlN0QlMkMlMEElMjAlMjAlMjAlMjAlNUQlMEFmcm9tJTIwdHJhbnNmb3JtZXJzJTIwaW1wb3J0JTIwQXV0b1Rva2VuaXplciUwQXRva2VuaXplciUyMCUzRCUyMEF1dG9Ub2tlbml6ZXIuZnJvbV9wcmV0cmFpbmVkKCUyMm1ldGEtbGxhbWElMkZMbGFtYS0zLjItM0ItSW5zdHJ1Y3QlMjIpJTBBJTBBdG9rZW5pemVyLmFwcGx5X2NoYXRfdGVtcGxhdGUobWVzc2FnZXMlMkMlMjB0b2tlbml6ZSUzREZhbHNlJTJDYWRkX2dlbmVyYXRpb25fcHJvbXB0JTNEVHJ1ZSk=",highlighted:`messages=[
    {<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;system&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: SYSTEM_PROMPT},
    {<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;user&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;What&#x27;s the weather in London ?&quot;</span>},
    ]
<span class="hljs-keyword">from</span> transformers <span class="hljs-keyword">import</span> AutoTokenizer
tokenizer = AutoTokenizer.from_pretrained(<span class="hljs-string">&quot;meta-llama/Llama-3.2-3B-Instruct&quot;</span>)

tokenizer.apply_chat_template(messages, <span class="hljs-keyword">tokenize</span>=<span class="hljs-keyword">False</span>,add_generation_prompt=<span class="hljs-keyword">True</span>)`,wrap:!1}}),rs=new d({props:{code:"JTBBJTBBJTBBJTBBJTBBJTBBJTBBJTBBKG0lQzMlQjQlMjBoJUMzJUFDbmglMjBUaG91Z2h0JTJGQWN0aW9uJTJGT2JzZXJ2YXRpb24lMjBuJUMzJUEweSUyMGMlQzMlQjMlMjB0aCVFMSVCQiU4MyUyMGwlRTElQkElQjdwJTIwbCVFMSVCQSVBMWklMjBOJTIwbCVFMSVCQSVBN24lMkMlMjBiJUUxJUJBJUExbiUyMG4lQzMlQUFuJTIwdGglRTElQkIlQjFjJTIwaGklRTElQkIlODduJTIwbmhpJUUxJUJCJTgxdSUyMGIlQzYlQjAlRTElQkIlOUJjJTIwa2hpJTIwYyVFMSVCQSVBN24lMjB0aGklRTElQkElQkZ0LiUyMCUyNEpTT05fQkxPQiUyMHBoJUUxJUJBJUEzaSUyMCVDNCU5MSVDNiVCMCVFMSVCQiVBM2MlMjAlQzQlOTElRTElQkIlOEJuaCUyMGQlRTElQkElQTFuZyUyMGQlQzYlQjAlRTElQkIlOUJpJTIwZCVFMSVCQSVBMW5nJTIwbWFya2Rvd24lMjB2JUMzJUEwJTIwY2glRTElQkIlODklMjBzJUUxJUJCJUFEJTIwZCVFMSVCQiVBNW5nJTIwTSVFMSVCQiU5OFQlMjBoJUMzJUEwbmglMjAlQzQlOTElRTElQkIlOTluZyUyMHQlRTElQkElQTFpJTIwbSVFMSVCQiU5OXQlMjB0aCVFMSVCQiU5RGklMjAlQzQlOTFpJUUxJUJCJTgzbS4pJTBBJTBBJTBB",highlighted:`&lt;|begin_of_text|&gt;&lt;|start_header_id|&gt;<span class="hljs-built_in">system</span>&lt;|end_header_id|&gt;
Trả <span class="hljs-keyword">l</span>ời <span class="hljs-keyword">c</span>á<span class="hljs-keyword">c</span> <span class="hljs-keyword">c</span>â<span class="hljs-keyword">u</span> hỏi sau tốt nhất <span class="hljs-keyword">c</span>ó <span class="hljs-keyword">th</span>ể. Bạn <span class="hljs-keyword">c</span>ó quyền truy <span class="hljs-keyword">c</span>ậ<span class="hljs-keyword">p</span> và<span class="hljs-keyword">o</span> <span class="hljs-keyword">c</span>á<span class="hljs-keyword">c</span> <span class="hljs-keyword">c</span>ông <span class="hljs-keyword">c</span>ụ sau:

get_weather: Lấ<span class="hljs-keyword">y</span> <span class="hljs-keyword">th</span>ời tiết <span class="hljs-keyword">hi</span>ện tại ở <span class="hljs-keyword">m</span>ột đị<span class="hljs-keyword">a</span> điể<span class="hljs-keyword">m</span> nhất định

Cách <span class="hljs-keyword">b</span>ạn sử dụng <span class="hljs-keyword">c</span>á<span class="hljs-keyword">c</span> <span class="hljs-keyword">c</span>ông <span class="hljs-keyword">c</span>ụ <span class="hljs-keyword">l</span>à <span class="hljs-keyword">b</span>ằng <span class="hljs-keyword">c</span>ách chỉ định <span class="hljs-keyword">m</span>ột khối json.
Cụ <span class="hljs-keyword">th</span>ể, json nà<span class="hljs-keyword">y</span> phải <span class="hljs-keyword">c</span>ó <span class="hljs-keyword">m</span>ột khó<span class="hljs-keyword">a</span> \`action\` (với tên <span class="hljs-keyword">c</span>ủ<span class="hljs-keyword">a</span> <span class="hljs-keyword">c</span>ông <span class="hljs-keyword">c</span>ụ <span class="hljs-keyword">c</span>ần sử dụng) và <span class="hljs-keyword">m</span>ột khó<span class="hljs-keyword">a</span> \`action_input\` (với đầ<span class="hljs-keyword">u</span> và<span class="hljs-keyword">o</span> <span class="hljs-keyword">c</span>ủ<span class="hljs-keyword">a</span> <span class="hljs-keyword">c</span>ông <span class="hljs-keyword">c</span>ụ đượ<span class="hljs-keyword">c</span> đặt ở đâ<span class="hljs-keyword">y</span>).

Cá<span class="hljs-keyword">c</span> giá <span class="hljs-keyword">tr</span>ị duy nhất <span class="hljs-keyword">c</span>ó <span class="hljs-keyword">th</span>ể <span class="hljs-keyword">c</span>ó trong <span class="hljs-keyword">tr</span>ường <span class="hljs-string">&quot;action&quot;</span> <span class="hljs-keyword">l</span>à:
get_weather: Lấ<span class="hljs-keyword">y</span> <span class="hljs-keyword">th</span>ời tiết <span class="hljs-keyword">hi</span>ện tại ở <span class="hljs-keyword">m</span>ột đị<span class="hljs-keyword">a</span> điể<span class="hljs-keyword">m</span> nhất định, <span class="hljs-keyword">args</span>: {<span class="hljs-string">&quot;location&quot;</span>: {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>}}
ví dụ sử dụng : 

{{
  <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;get_weather&quot;</span>,
  <span class="hljs-string">&quot;action_input&quot;</span>: {<span class="hljs-string">&quot;location&quot;</span>: <span class="hljs-string">&quot;New York&quot;</span>}
}}

LUÔ<span class="hljs-keyword">N</span> LUÔ<span class="hljs-keyword">N</span> sử dụng định dạng sau:

Question: <span class="hljs-keyword">c</span>â<span class="hljs-keyword">u</span> hỏi đầ<span class="hljs-keyword">u</span> và<span class="hljs-keyword">o</span> <span class="hljs-keyword">m</span>à <span class="hljs-keyword">b</span>ạn phải <span class="hljs-keyword">tr</span>ả <span class="hljs-keyword">l</span>ời
Thought: <span class="hljs-keyword">b</span>ạn nên <span class="hljs-keyword">lu</span>ôn suy nghĩ về <span class="hljs-keyword">m</span>ột hành động <span class="hljs-keyword">c</span>ần <span class="hljs-keyword">th</span>ự<span class="hljs-keyword">c</span> <span class="hljs-keyword">hi</span>ện. Chỉ <span class="hljs-keyword">m</span>ột hành động tại <span class="hljs-keyword">m</span>ột <span class="hljs-keyword">th</span>ời điể<span class="hljs-keyword">m</span> trong định dạng nà<span class="hljs-keyword">y</span>:
Action:

$JSON_BLOB (<span class="hljs-keyword">b</span>ên trong khối markdown)

Observation: <span class="hljs-keyword">k</span>ết quả <span class="hljs-keyword">c</span>ủ<span class="hljs-keyword">a</span> hành động. Quan sát nà<span class="hljs-keyword">y</span> <span class="hljs-keyword">l</span>à duy nhất, đầ<span class="hljs-keyword">y</span> đủ và <span class="hljs-keyword">l</span>à nguồn sự <span class="hljs-keyword">th</span>ật.
... (<span class="hljs-keyword">m</span>ô hình Thought/Action/Observation nà<span class="hljs-keyword">y</span> <span class="hljs-keyword">c</span>ó <span class="hljs-keyword">th</span>ể <span class="hljs-keyword">l</span>ặ<span class="hljs-keyword">p</span> <span class="hljs-keyword">l</span>ại <span class="hljs-keyword">N</span> <span class="hljs-keyword">l</span>ần, <span class="hljs-keyword">b</span>ạn nên <span class="hljs-keyword">th</span>ự<span class="hljs-keyword">c</span> <span class="hljs-keyword">hi</span>ện nhiề<span class="hljs-keyword">u</span> <span class="hljs-keyword">b</span>ướ<span class="hljs-keyword">c</span> khi <span class="hljs-keyword">c</span>ần thiết. $JSON_BLOB phải đượ<span class="hljs-keyword">c</span> định dạng dưới dạng markdown và chỉ sử dụng MỘT hành động tại <span class="hljs-keyword">m</span>ột <span class="hljs-keyword">th</span>ời điể<span class="hljs-keyword">m</span>.)

Bạn phải <span class="hljs-keyword">lu</span>ôn <span class="hljs-keyword">k</span>ết <span class="hljs-keyword">th</span>ú<span class="hljs-keyword">c</span> đầ<span class="hljs-keyword">u</span> ra <span class="hljs-keyword">c</span>ủ<span class="hljs-keyword">a</span> <span class="hljs-keyword">m</span>ình với định dạng sau:

Thought: Bâ<span class="hljs-keyword">y</span> giờ tôi đã biết <span class="hljs-keyword">c</span>â<span class="hljs-keyword">u</span> <span class="hljs-keyword">tr</span>ả <span class="hljs-keyword">l</span>ời <span class="hljs-keyword">cu</span>ối <span class="hljs-keyword">c</span>ùng
Final Answer: <span class="hljs-keyword">c</span>â<span class="hljs-keyword">u</span> <span class="hljs-keyword">tr</span>ả <span class="hljs-keyword">l</span>ời <span class="hljs-keyword">cu</span>ối <span class="hljs-keyword">c</span>ùng cho <span class="hljs-keyword">c</span>â<span class="hljs-keyword">u</span> hỏi đầ<span class="hljs-keyword">u</span> và<span class="hljs-keyword">o</span> ban đầ<span class="hljs-keyword">u</span>

Bắt đầ<span class="hljs-keyword">u</span> ngay <span class="hljs-keyword">b</span>â<span class="hljs-keyword">y</span> giờ! Nhắ<span class="hljs-keyword">c</span> nhở <span class="hljs-keyword">b</span>ạn LUÔ<span class="hljs-keyword">N</span> sử dụng chính <span class="hljs-keyword">x</span>á<span class="hljs-keyword">c</span> <span class="hljs-keyword">c</span>á<span class="hljs-keyword">c</span> <span class="hljs-keyword">k</span>ý tự \`Final Answer:\` khi <span class="hljs-keyword">b</span>ạn đư<span class="hljs-keyword">a</span> ra <span class="hljs-keyword">c</span>â<span class="hljs-keyword">u</span> <span class="hljs-keyword">tr</span>ả <span class="hljs-keyword">l</span>ời dứt khoát. 
&lt;|eot_id|&gt;&lt;|start_header_id|&gt;user&lt;|end_header_id|&gt;
Thời tiết ở London <span class="hljs-keyword">th</span>ế nà<span class="hljs-keyword">o</span>?
&lt;|eot_id|&gt;&lt;|start_header_id|&gt;assistant&lt;|end_header_id|&gt;`,wrap:!1}}),js=new d({props:{code:"JTBBJTBBJTBBJTBBJTBBJTBBJTBBJTBBKHRoaXMlMjBUaG91Z2h0JTJGQWN0aW9uJTJGT2JzZXJ2YXRpb24lMjBjYW4lMjByZXBlYXQlMjBOJTIwdGltZXMlMkMlMjB5b3UlMjBzaG91bGQlMjB0YWtlJTIwc2V2ZXJhbCUyMHN0ZXBzJTIwd2hlbiUyMG5lZWRlZC4lMjBUaGUlMjAlMjRKU09OX0JMT0IlMjBtdXN0JTIwYmUlMjBmb3JtYXR0ZWQlMjBhcyUyMG1hcmtkb3duJTIwYW5kJTIwb25seSUyMHVzZSUyMGElMjBTSU5HTEUlMjBhY3Rpb24lMjBhdCUyMGElMjB0aW1lLiklMEElMEElMEE=",highlighted:`&lt;|<span class="hljs-type">begin_of_text</span>|<span class="hljs-type">&gt;&lt;|start_header_id</span>|<span class="hljs-type">&gt;system</span>&lt;|<span class="hljs-type">end_header_id</span>|<span class="hljs-type">&gt;
Answer</span> the following questions <span class="hljs-built_in">as</span> best you can. You have access to the following tools:

get_weather: Get the current weather <span class="hljs-built_in">in</span> a given location

The way you use the tools is <span class="hljs-built_in">by</span> specifying a json blob.
Specifically, this json should have an \`action\` key (<span class="hljs-built_in">with</span> the name of the tool to use) and a \`action_input\` key (<span class="hljs-built_in">with</span> the input to the tool going here).

The only values that should be <span class="hljs-built_in">in</span> the <span class="hljs-string">&quot;action&quot;</span> <span class="hljs-built_in">field</span> are:
get_weather: Get the current weather <span class="hljs-built_in">in</span> a given location, args: {<span class="hljs-string">&quot;location&quot;</span>: {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>}}
example use : 

{{
  <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;get_weather&quot;</span>,
  <span class="hljs-string">&quot;action_input&quot;</span>: {<span class="hljs-string">&quot;location&quot;</span>: <span class="hljs-string">&quot;New York&quot;</span>}
}}

ALWAYS use the following format:

Question: the input question you must answer
Thought: you should always think about one action to take. Only one action <span class="hljs-built_in">at</span> a <span class="hljs-built_in">time</span> <span class="hljs-built_in">in</span> this format:
Action:

$JSON_BLOB (inside markdown cell)

Observation: the result of the action. This Observation is unique, complete, and the source of truth.
... (this Thought/Action/Observation can <span class="hljs-built_in">repeat</span> N times, you should take several steps when needed. The $JSON_BLOB must be formatted <span class="hljs-built_in">as</span> markdown and only use a SINGLE action <span class="hljs-built_in">at</span> a <span class="hljs-built_in">time</span>.)

You must always <span class="hljs-keyword">end</span> your output <span class="hljs-built_in">with</span> the following format:

Thought: I now know the final answer
Final Answer: the final answer to the original input question

Now begin! Reminder to ALWAYS use the <span class="hljs-built_in">exact</span> characters \`Final Answer:\` when you provide a definitive answer. 
&lt;|<span class="hljs-type">eot_id</span>|<span class="hljs-type">&gt;&lt;|start_header_id</span>|<span class="hljs-type">&gt;user</span>&lt;|<span class="hljs-type">end_header_id</span>|<span class="hljs-type">&gt;
What</span>&#x27;s the weather <span class="hljs-built_in">in</span> London ?
&lt;|<span class="hljs-type">eot_id</span>|<span class="hljs-type">&gt;&lt;|start_header_id</span>|<span class="hljs-type">&gt;assistant</span>&lt;|<span class="hljs-type">end_header_id</span>|<span class="hljs-type">&gt;</span>`,wrap:!1}}),us=new d({props:{code:"b3V0cHV0JTIwJTNEJTIwY2xpZW50LnRleHRfZ2VuZXJhdGlvbiglMEElMjAlMjAlMjAlMjBwcm9tcHQlMkMlMEElMjAlMjAlMjAlMjBtYXhfbmV3X3Rva2VucyUzRDIwMCUyQyUwQSklMEElMEFwcmludChvdXRwdXQp",highlighted:`output = client.text_generation(
    prompt,
    max_new_tokens=<span class="hljs-number">200</span>,
)

<span class="hljs-built_in">print</span>(output)`,wrap:!1}}),ws=new d({props:{code:"QWN0aW9uJTNBJTBBJTYwJTYwJTYwJTBBJTdCJTBBJTIwJTIwJTIyYWN0aW9uJTIyJTNBJTIwJTIyZ2V0X3dlYXRoZXIlMjIlMkMlMEElMjAlMjAlMjJhY3Rpb25faW5wdXQlMjIlM0ElMjAlN0IlMjJsb2NhdGlvbiUyMiUzQSUyMCUyMkxvbmRvbiUyMiU3RCUwQSU3RCUwQSU2MCU2MCU2MCUwQVRob3VnaHQlM0ElMjBUJUMzJUI0aSUyMHMlRTElQkElQkQlMjBraSVFMSVCQiU4M20lMjB0cmElMjB0aCVFMSVCQiU5RGklMjB0aSVFMSVCQSVCRnQlMjAlRTElQkIlOUYlMjBMb25kb24uJTBBT2JzZXJ2YXRpb24lM0ElMjBUaCVFMSVCQiU5RGklMjB0aSVFMSVCQSVCRnQlMjBoaSVFMSVCQiU4N24lMjB0JUUxJUJBJUExaSUyMCVFMSVCQiU5RiUyMExvbmRvbiUyMGwlQzMlQTAlMjBtJUMzJUEyeSUyMG5oaSVFMSVCQiU4MXUlMjB2JUUxJUJCJTlCaSUyMG5oaSVFMSVCQiU4N3QlMjAlQzQlOTElRTElQkIlOTklMjBjYW8lMjAxMiVDMiVCMEMlMjB2JUMzJUEwJTIwdGglRTElQkElQTVwJTIwOCVDMiVCMEMu",highlighted:`Acti<span class="hljs-symbol">on:</span>
\`\`\`
{
  <span class="hljs-string">&quot;action&quot;</span><span class="hljs-symbol">:</span> <span class="hljs-string">&quot;get_weather&quot;</span>,
  <span class="hljs-string">&quot;action_input&quot;</span><span class="hljs-symbol">:</span> {<span class="hljs-string">&quot;location&quot;</span><span class="hljs-symbol">:</span> <span class="hljs-string">&quot;London&quot;</span>}
}
\`\`\`
Thoug<span class="hljs-symbol">ht:</span> <span class="hljs-built_in">T</span>ôi sẽ kiểm tra thời tiế<span class="hljs-built_in">t</span> ở London.
Observati<span class="hljs-symbol">on:</span> Thời tiế<span class="hljs-built_in">t</span> hiệ<span class="hljs-built_in">n</span> <span class="hljs-built_in">t</span>ại ở London là mây nhiều với nhiệ<span class="hljs-built_in">t</span> độ cao <span class="hljs-number">12</span>°C và thấp <span class="hljs-number">8</span>°C.`,wrap:!1}}),Ms=new d({props:{code:"QWN0aW9uJTNBJTBBJTYwJTYwJTYwJTBBJTdCJTBBJTIwJTIwJTIyYWN0aW9uJTIyJTNBJTIwJTIyZ2V0X3dlYXRoZXIlMjIlMkMlMEElMjAlMjAlMjJhY3Rpb25faW5wdXQlMjIlM0ElMjAlN0IlMjJsb2NhdGlvbiUyMiUzQSUyMCUyMkxvbmRvbiUyMiU3RCUwQSU3RCUwQSU2MCU2MCU2MCUwQVRob3VnaHQlM0ElMjBJJTIwd2lsbCUyMGNoZWNrJTIwdGhlJTIwd2VhdGhlciUyMGluJTIwTG9uZG9uLiUwQU9ic2VydmF0aW9uJTNBJTIwVGhlJTIwY3VycmVudCUyMHdlYXRoZXIlMjBpbiUyMExvbmRvbiUyMGlzJTIwbW9zdGx5JTIwY2xvdWR5JTIwd2l0aCUyMGElMjBoaWdoJTIwb2YlMjAxMiVDMiVCMEMlMjBhbmQlMjBhJTIwbG93JTIwb2YlMjA4JUMyJUIwQy4=",highlighted:`Action:
\`\`\`
{
  <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;get_weather&quot;</span>,
  <span class="hljs-string">&quot;action_input&quot;</span>: {<span class="hljs-string">&quot;location&quot;</span>: <span class="hljs-string">&quot;London&quot;</span>}
}
\`\`\`
Thought: I will<span class="hljs-built_in"> check </span>the weather in London.
Observation: The current weather in London is mostly cloudy with a high of 12°C<span class="hljs-built_in"> and </span>a low of 8°C.`,wrap:!1}}),ks=new d({props:{code:"b3V0cHV0JTIwJTNEJTIwY2xpZW50LnRleHRfZ2VuZXJhdGlvbiglMEElMjAlMjAlMjAlMjBwcm9tcHQlMkMlMEElMjAlMjAlMjAlMjBtYXhfbmV3X3Rva2VucyUzRDIwMCUyQyUwQSUyMCUyMCUyMCUyMHN0b3AlM0QlNUIlMjJPYnNlcnZhdGlvbiUzQSUyMiU1RCUyMCUyMyUyMEQlRTElQkIlQUJuZyUyMHRyJUM2JUIwJUUxJUJCJTlCYyUyMGtoaSUyMGclRTElQkIlOERpJTIwZnVuY3Rpb24lMjB0aCVFMSVCQiVCMWMlMjB0JUUxJUJBJUJGJTBBKSUwQSUwQXByaW50KG91dHB1dCk=",highlighted:`output = client.text_generation(
    prompt,
    max_new_tokens=<span class="hljs-number">200</span>,
    stop=[<span class="hljs-string">&quot;Observation:&quot;</span>] <span class="hljs-comment"># Dừng trước khi gọi function thực tế</span>
)

<span class="hljs-built_in">print</span>(output)`,wrap:!1}}),Us=new d({props:{code:"QWN0aW9uJTNBJTBBJTYwJTYwJTYwJTBBJTdCJTBBJTIwJTIwJTIyYWN0aW9uJTIyJTNBJTIwJTIyZ2V0X3dlYXRoZXIlMjIlMkMlMEElMjAlMjAlMjJhY3Rpb25faW5wdXQlMjIlM0ElMjAlN0IlMjJsb2NhdGlvbiUyMiUzQSUyMCUyMkxvbmRvbiUyMiU3RCUwQSU3RCUwQSU2MCU2MCU2MCUwQVRob3VnaHQlM0ElMjBJJTIwd2lsbCUyMGNoZWNrJTIwdGhlJTIwd2VhdGhlciUyMGluJTIwTG9uZG9uLiUwQU9ic2VydmF0aW9uJTNB",highlighted:`Action:
\`\`\`
{
  <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;get_weather&quot;</span>,
  <span class="hljs-string">&quot;action_input&quot;</span>: {<span class="hljs-string">&quot;location&quot;</span>: <span class="hljs-string">&quot;London&quot;</span>}
}
\`\`\`
Thought: I will<span class="hljs-built_in"> check </span>the weather in London.
Observation:`,wrap:!1}}),Bs=new d({props:{code:"JTIzJTIwSCVDMyVBMG0lMjAlRTElQkElQTNvJTBBZGVmJTIwZ2V0X3dlYXRoZXIobG9jYXRpb24pJTNBJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwZiUyMnRoZSUyMHdlYXRoZXIlMjBpbiUyMCU3QmxvY2F0aW9uJTdEJTIwaXMlMjBzdW5ueSUyMHdpdGglMjBsb3clMjB0ZW1wZXJhdHVyZXMuJTIwJTVDbiUyMiUwQSUwQWdldF93ZWF0aGVyKCdMb25kb24nKQ==",highlighted:`<span class="hljs-comment"># Hàm ảo</span>
<span class="hljs-keyword">def</span> <span class="hljs-title function_">get_weather</span>(<span class="hljs-params">location</span>):
    <span class="hljs-keyword">return</span> <span class="hljs-string">f&quot;the weather in <span class="hljs-subst">{location}</span> is sunny with low temperatures. \\n&quot;</span>

get_weather(<span class="hljs-string">&#x27;London&#x27;</span>)`,wrap:!1}}),Qs=new d({props:{code:"J3RoZSUyMHdlYXRoZXIlMjBpbiUyMExvbmRvbiUyMGlzJTIwc3VubnklMjB3aXRoJTIwbG93JTIwdGVtcGVyYXR1cmVzLiUyMCU1Q24n",highlighted:'<span class="hljs-symbol">&#x27;the</span> weather <span class="hljs-keyword">in</span> London <span class="hljs-keyword">is</span> sunny <span class="hljs-keyword">with</span> low temperatures. \\n&#x27;',wrap:!1}}),fs=new d({props:{code:"bmV3X3Byb21wdCUyMCUzRCUyMHByb21wdCUyMCUyQiUyMG91dHB1dCUyMCUyQiUyMGdldF93ZWF0aGVyKCdMb25kb24nKSUwQWZpbmFsX291dHB1dCUyMCUzRCUyMGNsaWVudC50ZXh0X2dlbmVyYXRpb24oJTBBJTIwJTIwJTIwJTIwbmV3X3Byb21wdCUyQyUwQSUyMCUyMCUyMCUyMG1heF9uZXdfdG9rZW5zJTNEMjAwJTJDJTBBKSUwQSUwQXByaW50KGZpbmFsX291dHB1dCk=",highlighted:`new_prompt = prompt + output + get_weather(<span class="hljs-string">&#x27;London&#x27;</span>)
final_output = client.text_generation(
    new_prompt,
    max_new_tokens=<span class="hljs-number">200</span>,
)

<span class="hljs-built_in">print</span>(final_output)`,wrap:!1}}),_s=new d({props:{code:"JTBBJTBBJTBBJTBBJTBBJTBBJTBBJTBBKG0lQzMlQjQlMjBoJUMzJUFDbmglMjBUaG91Z2h0JTJGQWN0aW9uJTJGT2JzZXJ2YXRpb24lMjBuJUMzJUEweSUyMGMlQzMlQjMlMjB0aCVFMSVCQiU4MyUyMGwlRTElQkElQjdwJTIwbCVFMSVCQSVBMWklMjBOJTIwbCVFMSVCQSVBN24lMkMlMjBiJUUxJUJBJUExbiUyMG4lQzMlQUFuJTIwdGglRTElQkIlQjFjJTIwaGklRTElQkIlODduJTIwbmhpJUUxJUJCJTgxdSUyMGIlQzYlQjAlRTElQkIlOUJjJTIwa2hpJTIwYyVFMSVCQSVBN24lMjB0aGklRTElQkElQkZ0LiUyMCUyNEpTT05fQkxPQiUyMHBoJUUxJUJBJUEzaSUyMCVDNCU5MSVDNiVCMCVFMSVCQiVBM2MlMjAlQzQlOTElRTElQkIlOEJuaCUyMGQlRTElQkElQTFuZyUyMGQlQzYlQjAlRTElQkIlOUJpJTIwZCVFMSVCQSVBMW5nJTIwbWFya2Rvd24lMjB2JUMzJUEwJTIwY2glRTElQkIlODklMjBzJUUxJUJCJUFEJTIwZCVFMSVCQiVBNW5nJTIwTSVFMSVCQiU5OFQlMjBoJUMzJUEwbmglMjAlQzQlOTElRTElQkIlOTluZyUyMHQlRTElQkElQTFpJTIwbSVFMSVCQiU5OXQlMjB0aCVFMSVCQiU5RGklMjAlQzQlOTFpJUUxJUJCJTgzbS4pJTIwJTIwJTBBJTBBJTBBJTBB",highlighted:`&lt;|begin_of_text|&gt;&lt;|start_header_id|&gt;<span class="hljs-built_in">system</span>&lt;|end_header_id|&gt;  
    Trả <span class="hljs-keyword">l</span>ời <span class="hljs-keyword">c</span>á<span class="hljs-keyword">c</span> <span class="hljs-keyword">c</span>â<span class="hljs-keyword">u</span> hỏi sau tốt nhất <span class="hljs-keyword">c</span>ó <span class="hljs-keyword">th</span>ể. Bạn <span class="hljs-keyword">c</span>ó quyền truy <span class="hljs-keyword">c</span>ậ<span class="hljs-keyword">p</span> và<span class="hljs-keyword">o</span> <span class="hljs-keyword">c</span>á<span class="hljs-keyword">c</span> <span class="hljs-keyword">c</span>ông <span class="hljs-keyword">c</span>ụ sau:  

get_weather: Lấ<span class="hljs-keyword">y</span> <span class="hljs-keyword">th</span>ời tiết <span class="hljs-keyword">hi</span>ện tại ở <span class="hljs-keyword">m</span>ột đị<span class="hljs-keyword">a</span> điể<span class="hljs-keyword">m</span> nhất định  

Cách <span class="hljs-keyword">b</span>ạn sử dụng <span class="hljs-keyword">c</span>á<span class="hljs-keyword">c</span> <span class="hljs-keyword">c</span>ông <span class="hljs-keyword">c</span>ụ <span class="hljs-keyword">l</span>à <span class="hljs-keyword">b</span>ằng <span class="hljs-keyword">c</span>ách chỉ định <span class="hljs-keyword">m</span>ột khối json.  
Cụ <span class="hljs-keyword">th</span>ể, json nà<span class="hljs-keyword">y</span> phải <span class="hljs-keyword">c</span>ó <span class="hljs-keyword">m</span>ột khó<span class="hljs-keyword">a</span> \`action\` (với tên <span class="hljs-keyword">c</span>ủ<span class="hljs-keyword">a</span> <span class="hljs-keyword">c</span>ông <span class="hljs-keyword">c</span>ụ <span class="hljs-keyword">c</span>ần sử dụng) và <span class="hljs-keyword">m</span>ột khó<span class="hljs-keyword">a</span> \`action_input\` (với đầ<span class="hljs-keyword">u</span> và<span class="hljs-keyword">o</span> <span class="hljs-keyword">c</span>ủ<span class="hljs-keyword">a</span> <span class="hljs-keyword">c</span>ông <span class="hljs-keyword">c</span>ụ đượ<span class="hljs-keyword">c</span> đặt ở đâ<span class="hljs-keyword">y</span>).  

Cá<span class="hljs-keyword">c</span> giá <span class="hljs-keyword">tr</span>ị duy nhất <span class="hljs-keyword">c</span>ó <span class="hljs-keyword">th</span>ể <span class="hljs-keyword">c</span>ó trong <span class="hljs-keyword">tr</span>ường <span class="hljs-string">&quot;action&quot;</span> <span class="hljs-keyword">l</span>à:  
get_weather: Lấ<span class="hljs-keyword">y</span> <span class="hljs-keyword">th</span>ời tiết <span class="hljs-keyword">hi</span>ện tại ở <span class="hljs-keyword">m</span>ột đị<span class="hljs-keyword">a</span> điể<span class="hljs-keyword">m</span> nhất định, <span class="hljs-keyword">args</span>: {<span class="hljs-string">&quot;location&quot;</span>: {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>}}  
ví dụ sử dụng :  

{{  
  <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;get_weather&quot;</span>,  
  <span class="hljs-string">&quot;action_input&quot;</span>: {<span class="hljs-string">&quot;location&quot;</span>: <span class="hljs-string">&quot;New York&quot;</span>}  
}}  

LUÔ<span class="hljs-keyword">N</span> LUÔ<span class="hljs-keyword">N</span> sử dụng định dạng sau:  

Question: <span class="hljs-keyword">c</span>â<span class="hljs-keyword">u</span> hỏi đầ<span class="hljs-keyword">u</span> và<span class="hljs-keyword">o</span> <span class="hljs-keyword">m</span>à <span class="hljs-keyword">b</span>ạn phải <span class="hljs-keyword">tr</span>ả <span class="hljs-keyword">l</span>ời  
Thought: <span class="hljs-keyword">b</span>ạn nên <span class="hljs-keyword">lu</span>ôn suy nghĩ về <span class="hljs-keyword">m</span>ột hành động <span class="hljs-keyword">c</span>ần <span class="hljs-keyword">th</span>ự<span class="hljs-keyword">c</span> <span class="hljs-keyword">hi</span>ện. Chỉ <span class="hljs-keyword">m</span>ột hành động tại <span class="hljs-keyword">m</span>ột <span class="hljs-keyword">th</span>ời điể<span class="hljs-keyword">m</span> trong định dạng nà<span class="hljs-keyword">y</span>:  
Action:  

\`\`\`  
{  
  <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;get_weather&quot;</span>,  
  <span class="hljs-string">&quot;action_input&quot;</span>: {<span class="hljs-string">&quot;location&quot;</span>: {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>, <span class="hljs-string">&quot;value&quot;</span>: <span class="hljs-string">&quot;London&quot;</span>}  
}  
\`\`\`  
Thought: Tôi sẽ kiể<span class="hljs-keyword">m</span> tra <span class="hljs-keyword">th</span>ời tiết ở London.  
Observation: <span class="hljs-keyword">th</span>ời tiết ở London nắng với nhiệt độ <span class="hljs-keyword">th</span>ấ<span class="hljs-keyword">p</span>.  

... (<span class="hljs-keyword">m</span>ô hình Thought/Action/Observation nà<span class="hljs-keyword">y</span> <span class="hljs-keyword">c</span>ó <span class="hljs-keyword">th</span>ể <span class="hljs-keyword">l</span>ặ<span class="hljs-keyword">p</span> <span class="hljs-keyword">l</span>ại <span class="hljs-keyword">N</span> <span class="hljs-keyword">l</span>ần, <span class="hljs-keyword">b</span>ạn nên <span class="hljs-keyword">th</span>ự<span class="hljs-keyword">c</span> <span class="hljs-keyword">hi</span>ện nhiề<span class="hljs-keyword">u</span> <span class="hljs-keyword">b</span>ướ<span class="hljs-keyword">c</span> khi <span class="hljs-keyword">c</span>ần thiết. $JSON_BLOB phải đượ<span class="hljs-keyword">c</span> định dạng dưới dạng markdown và chỉ sử dụng MỘT hành động tại <span class="hljs-keyword">m</span>ột <span class="hljs-keyword">th</span>ời điể<span class="hljs-keyword">m</span>.)  

Bạn phải <span class="hljs-keyword">lu</span>ôn <span class="hljs-keyword">k</span>ết <span class="hljs-keyword">th</span>ú<span class="hljs-keyword">c</span> đầ<span class="hljs-keyword">u</span> ra <span class="hljs-keyword">c</span>ủ<span class="hljs-keyword">a</span> <span class="hljs-keyword">m</span>ình với định dạng sau:  

Thought: Bâ<span class="hljs-keyword">y</span> giờ tôi đã biết <span class="hljs-keyword">c</span>â<span class="hljs-keyword">u</span> <span class="hljs-keyword">tr</span>ả <span class="hljs-keyword">l</span>ời <span class="hljs-keyword">cu</span>ối <span class="hljs-keyword">c</span>ùng  
Final Answer: <span class="hljs-keyword">c</span>â<span class="hljs-keyword">u</span> <span class="hljs-keyword">tr</span>ả <span class="hljs-keyword">l</span>ời <span class="hljs-keyword">cu</span>ối <span class="hljs-keyword">c</span>ùng cho <span class="hljs-keyword">c</span>â<span class="hljs-keyword">u</span> hỏi đầ<span class="hljs-keyword">u</span> và<span class="hljs-keyword">o</span> ban đầ<span class="hljs-keyword">u</span>  

Bắt đầ<span class="hljs-keyword">u</span> ngay <span class="hljs-keyword">b</span>â<span class="hljs-keyword">y</span> giờ! Nhắ<span class="hljs-keyword">c</span> nhở <span class="hljs-keyword">b</span>ạn LUÔ<span class="hljs-keyword">N</span> sử dụng chính <span class="hljs-keyword">x</span>á<span class="hljs-keyword">c</span> <span class="hljs-keyword">c</span>á<span class="hljs-keyword">c</span> <span class="hljs-keyword">k</span>ý tự \`Final Answer:\` khi <span class="hljs-keyword">b</span>ạn đư<span class="hljs-keyword">a</span> ra <span class="hljs-keyword">c</span>â<span class="hljs-keyword">u</span> <span class="hljs-keyword">tr</span>ả <span class="hljs-keyword">l</span>ời dứt khoát.   
&lt;|eot_id|&gt;&lt;|start_header_id|&gt;user&lt;|end_header_id|&gt;  
Thời tiết ở London <span class="hljs-keyword">th</span>ế nà<span class="hljs-keyword">o</span>?  
&lt;|eot_id|&gt;&lt;|start_header_id|&gt;assistant&lt;|end_header_id|&gt;  

Action:  
\`\`\`  
{  
  <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;get_weather&quot;</span>,  
  <span class="hljs-string">&quot;action_input&quot;</span>: {<span class="hljs-string">&quot;location&quot;</span>: {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>, <span class="hljs-string">&quot;value&quot;</span>: <span class="hljs-string">&quot;London&quot;</span>}  
}  
\`\`\`  
Thought: Tôi sẽ kiể<span class="hljs-keyword">m</span> tra <span class="hljs-keyword">th</span>ời tiết ở London.  
Observation: <span class="hljs-keyword">th</span>ời tiết ở London nắng với nhiệt độ <span class="hljs-keyword">th</span>ấ<span class="hljs-keyword">p</span>.  `,wrap:!1}}),Vs=new d({props:{code:"JTBBJTBBJTBBJTBBJTBBJTBBJTBBJTBBKHRoaXMlMjBUaG91Z2h0JTJGQWN0aW9uJTJGT2JzZXJ2YXRpb24lMjBjYW4lMjByZXBlYXQlMjBOJTIwdGltZXMlMkMlMjB5b3UlMjBzaG91bGQlMjB0YWtlJTIwc2V2ZXJhbCUyMHN0ZXBzJTIwd2hlbiUyMG5lZWRlZC4lMjBUaGUlMjAlMjRKU09OX0JMT0IlMjBtdXN0JTIwYmUlMjBmb3JtYXR0ZWQlMjBhcyUyMG1hcmtkb3duJTIwYW5kJTIwb25seSUyMHVzZSUyMGElMjBTSU5HTEUlMjBhY3Rpb24lMjBhdCUyMGElMjB0aW1lLiklMEElMEElMEElMEE=",highlighted:`&lt;|<span class="hljs-type">begin_of_text</span>|<span class="hljs-type">&gt;&lt;|start_header_id</span>|<span class="hljs-type">&gt;system</span>&lt;|<span class="hljs-type">end_header_id</span>|<span class="hljs-type">&gt;
    Answer</span> the following questions <span class="hljs-built_in">as</span> best you can. You have access to the following tools:

get_weather: Get the current weather <span class="hljs-built_in">in</span> a given location

The way you use the tools is <span class="hljs-built_in">by</span> specifying a json blob.
Specifically, this json should have a \`action\` key (<span class="hljs-built_in">with</span> the name of the tool to use) and a \`action_input\` key (<span class="hljs-built_in">with</span> the input to the tool going here).

The only values that should be <span class="hljs-built_in">in</span> the <span class="hljs-string">&quot;action&quot;</span> <span class="hljs-built_in">field</span> are:
get_weather: Get the current weather <span class="hljs-built_in">in</span> a given location, args: {<span class="hljs-string">&quot;location&quot;</span>: {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>}}
example use : 

{{
  <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;get_weather&quot;</span>,
  <span class="hljs-string">&quot;action_input&quot;</span>: {<span class="hljs-string">&quot;location&quot;</span>: <span class="hljs-string">&quot;New York&quot;</span>}
}}

ALWAYS use the following format:

Question: the input question you must answer
Thought: you should always think about one action to take. Only one action <span class="hljs-built_in">at</span> a <span class="hljs-built_in">time</span> <span class="hljs-built_in">in</span> this format:
Action:

$JSON_BLOB (inside markdown cell)

Observation: the result of the action. This Observation is unique, complete, and the source of truth.
... (this Thought/Action/Observation can <span class="hljs-built_in">repeat</span> N times, you should take several steps when needed. The $JSON_BLOB must be formatted <span class="hljs-built_in">as</span> markdown and only use a SINGLE action <span class="hljs-built_in">at</span> a <span class="hljs-built_in">time</span>.)

You must always <span class="hljs-keyword">end</span> your output <span class="hljs-built_in">with</span> the following format:

Thought: I now know the final answer
Final Answer: the final answer to the original input question

Now begin! Reminder to ALWAYS use the <span class="hljs-built_in">exact</span> characters \`Final Answer:\` when you provide a definitive answer. 
&lt;|<span class="hljs-type">eot_id</span>|<span class="hljs-type">&gt;&lt;|start_header_id</span>|<span class="hljs-type">&gt;user</span>&lt;|<span class="hljs-type">end_header_id</span>|<span class="hljs-type">&gt;
What</span>&#x27;s the weather <span class="hljs-built_in">in</span> London ?
&lt;|<span class="hljs-type">eot_id</span>|<span class="hljs-type">&gt;&lt;|start_header_id</span>|<span class="hljs-type">&gt;assistant</span>&lt;|<span class="hljs-type">end_header_id</span>|<span class="hljs-type">&gt;

Action</span>:
\`\`\`
{
  <span class="hljs-string">&quot;action&quot;</span>: <span class="hljs-string">&quot;get_weather&quot;</span>,
  <span class="hljs-string">&quot;action_input&quot;</span>: {<span class="hljs-string">&quot;location&quot;</span>: {<span class="hljs-string">&quot;type&quot;</span>: <span class="hljs-string">&quot;string&quot;</span>, <span class="hljs-string">&quot;value&quot;</span>: <span class="hljs-string">&quot;London&quot;</span>}
}
\`\`\`
Thought: I will check the weather <span class="hljs-built_in">in</span> London.
Observation:the weather <span class="hljs-built_in">in</span> London is sunny <span class="hljs-built_in">with</span> low temperatures. `,wrap:!1}}),qs=new d({props:{code:"RmluYWwlMjBBbnN3ZXIlM0ElMjAlRTElQkIlOUUlMjBMb25kb24lMkMlMjB0ciVFMSVCQiU5RGklMjBuJUUxJUJBJUFGbmclMjB2JUUxJUJCJTlCaSUyMG5oaSVFMSVCQiU4N3QlMjAlQzQlOTElRTElQkIlOTklMjB0aCVFMSVCQSVBNXAu",highlighted:'<span class="hljs-selector-tag">Final</span> <span class="hljs-selector-tag">Answer</span>: Ở <span class="hljs-selector-tag">London</span>, <span class="hljs-selector-tag">tr</span>ờ<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">n</span>ắ<span class="hljs-selector-tag">ng</span> <span class="hljs-selector-tag">v</span>ớ<span class="hljs-selector-tag">i</span> <span class="hljs-selector-tag">nhi</span>ệ<span class="hljs-selector-tag">t</span> độ <span class="hljs-selector-tag">th</span>ấ<span class="hljs-selector-tag">p</span>.',wrap:!1}}),Gs=new d({props:{code:"RmluYWwlMjBBbnN3ZXIlM0ElMjBUaGUlMjB3ZWF0aGVyJTIwaW4lMjBMb25kb24lMjBpcyUyMHN1bm55JTIwd2l0aCUyMGxvdyUyMHRlbXBlcmF0dXJlcy4=",highlighted:'<span class="hljs-keyword">Final</span> Answer: The weather <span class="hljs-keyword">in</span> London <span class="hljs-keyword">is</span> sunny <span class="hljs-keyword">with</span> low temperatures.',wrap:!1}}),xs=new Un({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/vi/unit1/dummy-agent-library.mdx"}}),{c(){M=p("meta"),As=t(),Ys=p("p"),Ws=t(),i(b.$$.fragment),Ls=t(),Q=p("img"),Hs=t(),C=p("p"),C.innerHTML=Ql,Os=t(),f=p("p"),f.textContent=Cl,Ps=t(),I=p("p"),I.innerHTML=fl,Ds=t(),_=p("p"),_.innerHTML=Il,Ks=t(),V=p("p"),V.innerHTML=_l,sa=t(),v=p("p"),v.innerHTML=Vl,aa=t(),q=p("p"),q.textContent=vl,la=t(),G=p("p"),G.innerHTML=ql,na=t(),E=p("p"),E.innerHTML=Gl,ta=t(),i($.$$.fragment),ea=t(),x=p("p"),x.textContent=El,pa=t(),R=p("p"),R.textContent=$l,ha=t(),i(S.$$.fragment),oa=t(),i(N.$$.fragment),ia=t(),F=p("p"),F.textContent=xl,ca=t(),i(X.$$.fragment),ra=t(),Z=p("p"),Z.innerHTML=Rl,ja=t(),Y=p("p"),Y.innerHTML=Sl,ya=t(),i(z.$$.fragment),ua=t(),A=p("p"),A.textContent=Nl,da=t(),i(W.$$.fragment),wa=t(),L=p("p"),L.textContent=Fl,Ma=t(),i(H.$$.fragment),ga=t(),O=p("p"),O.textContent=Xl,Ja=t(),i(P.$$.fragment),ka=t(),D=p("p"),D.innerHTML=Zl,Ta=t(),i(K.$$.fragment),Ua=t(),ss=p("p"),ss.textContent=Yl,ma=t(),as=p("p"),as.textContent=zl,Ba=t(),ls=p("ol"),ls.innerHTML=Al,ba=t(),g=p("details"),Rs=p("summary"),Rs.textContent=Wl,Ml=t(),i(ns.$$.fragment),Qa=t(),i(ts.$$.fragment),Ca=t(),es=p("p"),es.textContent=Ll,fa=t(),J=p("details"),Ss=p("summary"),Ss.textContent=Hl,gl=t(),i(ps.$$.fragment),Ia=t(),i(hs.$$.fragment),_a=t(),os=p("p"),os.innerHTML=Ol,Va=t(),i(is.$$.fragment),va=t(),cs=p("p"),cs.textContent=Pl,qa=t(),k=p("details"),Ns=p("summary"),Ns.textContent=Dl,Jl=t(),i(rs.$$.fragment),Ga=t(),i(js.$$.fragment),Ea=t(),ys=p("p"),ys.textContent=Kl,$a=t(),i(us.$$.fragment),xa=t(),ds=p("p"),ds.textContent=sn,Ra=t(),T=p("details"),Fs=p("summary"),Fs.textContent=an,kl=t(),i(ws.$$.fragment),Sa=t(),i(Ms.$$.fragment),Na=t(),gs=p("p"),gs.textContent=ln,Fa=t(),Js=p("blockquote"),Js.innerHTML=nn,Xa=t(),i(ks.$$.fragment),Za=t(),Ts=p("p"),Ts.textContent=tn,Ya=t(),i(Us.$$.fragment),za=t(),ms=p("p"),ms.textContent=en,Aa=t(),i(Bs.$$.fragment),Wa=t(),bs=p("p"),bs.textContent=pn,La=t(),i(Qs.$$.fragment),Ha=t(),Cs=p("p"),Cs.textContent=hn,Oa=t(),i(fs.$$.fragment),Pa=t(),Is=p("p"),Is.textContent=on,Da=t(),U=p("details"),Xs=p("summary"),Xs.textContent=cn,Tl=t(),i(_s.$$.fragment),Ka=t(),i(Vs.$$.fragment),sl=t(),vs=p("p"),vs.textContent=rn,al=t(),m=p("details"),Zs=p("summary"),Zs.textContent=jn,Ul=t(),i(qs.$$.fragment),ll=t(),i(Gs.$$.fragment),nl=t(),tl=p("hr"),el=t(),Es=p("p"),Es.innerHTML=yn,pl=t(),$s=p("p"),$s.innerHTML=un,hl=t(),i(xs.$$.fragment),ol=t(),zs=p("p"),this.h()},l(s){const a=Tn("svelte-u9bgzb",document.head);M=h(a,"META",{name:!0,content:!0}),a.forEach(l),As=e(s),Ys=h(s,"P",{}),B(Ys).forEach(l),Ws=e(s),c(b.$$.fragment,s),Ls=e(s),Q=h(s,"IMG",{src:!0,alt:!0}),Hs=e(s),C=h(s,"P",{"data-svelte-h":!0}),o(C)!=="svelte-1tren3y"&&(C.innerHTML=Ql),Os=e(s),f=h(s,"P",{"data-svelte-h":!0}),o(f)!=="svelte-110ir3u"&&(f.textContent=Cl),Ps=e(s),I=h(s,"P",{"data-svelte-h":!0}),o(I)!=="svelte-h2ztfc"&&(I.innerHTML=fl),Ds=e(s),_=h(s,"P",{"data-svelte-h":!0}),o(_)!=="svelte-1g0zkxs"&&(_.innerHTML=Il),Ks=e(s),V=h(s,"P",{"data-svelte-h":!0}),o(V)!=="svelte-1d203hh"&&(V.innerHTML=_l),sa=e(s),v=h(s,"P",{"data-svelte-h":!0}),o(v)!=="svelte-1v8saha"&&(v.innerHTML=Vl),aa=e(s),q=h(s,"P",{"data-svelte-h":!0}),o(q)!=="svelte-1re0gz2"&&(q.textContent=vl),la=e(s),G=h(s,"P",{"data-svelte-h":!0}),o(G)!=="svelte-vx2gtj"&&(G.innerHTML=ql),na=e(s),E=h(s,"P",{"data-svelte-h":!0}),o(E)!=="svelte-8pdbsg"&&(E.innerHTML=Gl),ta=e(s),c($.$$.fragment,s),ea=e(s),x=h(s,"P",{"data-svelte-h":!0}),o(x)!=="svelte-1miyegn"&&(x.textContent=El),pa=e(s),R=h(s,"P",{"data-svelte-h":!0}),o(R)!=="svelte-dizhpp"&&(R.textContent=$l),ha=e(s),c(S.$$.fragment,s),oa=e(s),c(N.$$.fragment,s),ia=e(s),F=h(s,"P",{"data-svelte-h":!0}),o(F)!=="svelte-1wueeet"&&(F.textContent=xl),ca=e(s),c(X.$$.fragment,s),ra=e(s),Z=h(s,"P",{"data-svelte-h":!0}),o(Z)!=="svelte-2g36w6"&&(Z.innerHTML=Rl),ja=e(s),Y=h(s,"P",{"data-svelte-h":!0}),o(Y)!=="svelte-8i8nxf"&&(Y.innerHTML=Sl),ya=e(s),c(z.$$.fragment,s),ua=e(s),A=h(s,"P",{"data-svelte-h":!0}),o(A)!=="svelte-1wueeet"&&(A.textContent=Nl),da=e(s),c(W.$$.fragment,s),wa=e(s),L=h(s,"P",{"data-svelte-h":!0}),o(L)!=="svelte-wngcav"&&(L.textContent=Fl),Ma=e(s),c(H.$$.fragment,s),ga=e(s),O=h(s,"P",{"data-svelte-h":!0}),o(O)!=="svelte-1wueeet"&&(O.textContent=Xl),Ja=e(s),c(P.$$.fragment,s),ka=e(s),D=h(s,"P",{"data-svelte-h":!0}),o(D)!=="svelte-1dsre6w"&&(D.innerHTML=Zl),Ta=e(s),c(K.$$.fragment,s),Ua=e(s),ss=h(s,"P",{"data-svelte-h":!0}),o(ss)!=="svelte-wfqo6m"&&(ss.textContent=Yl),ma=e(s),as=h(s,"P",{"data-svelte-h":!0}),o(as)!=="svelte-yw4njd"&&(as.textContent=zl),Ba=e(s),ls=h(s,"OL",{"data-svelte-h":!0}),o(ls)!=="svelte-osjlyp"&&(ls.innerHTML=Al),ba=e(s),g=h(s,"DETAILS",{});var cl=B(g);Rs=h(cl,"SUMMARY",{"data-svelte-h":!0}),o(Rs)!=="svelte-csqcdg"&&(Rs.textContent=Wl),Ml=e(cl),c(ns.$$.fragment,cl),cl.forEach(l),Qa=e(s),c(ts.$$.fragment,s),Ca=e(s),es=h(s,"P",{"data-svelte-h":!0}),o(es)!=="svelte-ihkbo1"&&(es.textContent=Ll),fa=e(s),J=h(s,"DETAILS",{});var rl=B(J);Ss=h(rl,"SUMMARY",{"data-svelte-h":!0}),o(Ss)!=="svelte-csqcdg"&&(Ss.textContent=Hl),gl=e(rl),c(ps.$$.fragment,rl),rl.forEach(l),Ia=e(s),c(hs.$$.fragment,s),_a=e(s),os=h(s,"P",{"data-svelte-h":!0}),o(os)!=="svelte-dkkg1m"&&(os.innerHTML=Ol),Va=e(s),c(is.$$.fragment,s),va=e(s),cs=h(s,"P",{"data-svelte-h":!0}),o(cs)!=="svelte-15602gy"&&(cs.textContent=Pl),qa=e(s),k=h(s,"DETAILS",{});var jl=B(k);Ns=h(jl,"SUMMARY",{"data-svelte-h":!0}),o(Ns)!=="svelte-csqcdg"&&(Ns.textContent=Dl),Jl=e(jl),c(rs.$$.fragment,jl),jl.forEach(l),Ga=e(s),c(js.$$.fragment,s),Ea=e(s),ys=h(s,"P",{"data-svelte-h":!0}),o(ys)!=="svelte-1ppf3r5"&&(ys.textContent=Kl),$a=e(s),c(us.$$.fragment,s),xa=e(s),ds=h(s,"P",{"data-svelte-h":!0}),o(ds)!=="svelte-1wueeet"&&(ds.textContent=sn),Ra=e(s),T=h(s,"DETAILS",{});var yl=B(T);Fs=h(yl,"SUMMARY",{"data-svelte-h":!0}),o(Fs)!=="svelte-csqcdg"&&(Fs.textContent=an),kl=e(yl),c(ws.$$.fragment,yl),yl.forEach(l),Sa=e(s),c(Ms.$$.fragment,s),Na=e(s),gs=h(s,"P",{"data-svelte-h":!0}),o(gs)!=="svelte-izgu5f"&&(gs.textContent=ln),Fa=e(s),Js=h(s,"BLOCKQUOTE",{"data-svelte-h":!0}),o(Js)!=="svelte-1t8ez6b"&&(Js.innerHTML=nn),Xa=e(s),c(ks.$$.fragment,s),Za=e(s),Ts=h(s,"P",{"data-svelte-h":!0}),o(Ts)!=="svelte-1wueeet"&&(Ts.textContent=tn),Ya=e(s),c(Us.$$.fragment,s),za=e(s),ms=h(s,"P",{"data-svelte-h":!0}),o(ms)!=="svelte-1l29h87"&&(ms.textContent=en),Aa=e(s),c(Bs.$$.fragment,s),Wa=e(s),bs=h(s,"P",{"data-svelte-h":!0}),o(bs)!=="svelte-1wueeet"&&(bs.textContent=pn),La=e(s),c(Qs.$$.fragment,s),Ha=e(s),Cs=h(s,"P",{"data-svelte-h":!0}),o(Cs)!=="svelte-1nfmsc5"&&(Cs.textContent=hn),Oa=e(s),c(fs.$$.fragment,s),Pa=e(s),Is=h(s,"P",{"data-svelte-h":!0}),o(Is)!=="svelte-g1o1ph"&&(Is.textContent=on),Da=e(s),U=h(s,"DETAILS",{});var ul=B(U);Xs=h(ul,"SUMMARY",{"data-svelte-h":!0}),o(Xs)!=="svelte-csqcdg"&&(Xs.textContent=cn),Tl=e(ul),c(_s.$$.fragment,ul),ul.forEach(l),Ka=e(s),c(Vs.$$.fragment,s),sl=e(s),vs=h(s,"P",{"data-svelte-h":!0}),o(vs)!=="svelte-1wuxk0l"&&(vs.textContent=rn),al=e(s),m=h(s,"DETAILS",{});var dl=B(m);Zs=h(dl,"SUMMARY",{"data-svelte-h":!0}),o(Zs)!=="svelte-csqcdg"&&(Zs.textContent=jn),Ul=e(dl),c(qs.$$.fragment,dl),dl.forEach(l),ll=e(s),c(Gs.$$.fragment,s),nl=e(s),tl=h(s,"HR",{}),el=e(s),Es=h(s,"P",{"data-svelte-h":!0}),o(Es)!=="svelte-39e9eo"&&(Es.innerHTML=yn),pl=e(s),$s=h(s,"P",{"data-svelte-h":!0}),o($s)!=="svelte-1nrvpel"&&($s.innerHTML=un),hl=e(s),c(xs.$$.fragment,s),ol=e(s),zs=h(s,"P",{}),B(zs).forEach(l),this.h()},h(){wl(M,"name","hf:doc:metadata"),wl(M,"content",Bn),wn(Q.src,bl="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/unit1/whiteboard-unit1sub3DONE.jpg")||wl(Q,"src",bl),wl(Q,"alt","Unit 1 planning")},m(s,a){w(document.head,M),n(s,As,a),n(s,Ys,a),n(s,Ws,a),r(b,s,a),n(s,Ls,a),n(s,Q,a),n(s,Hs,a),n(s,C,a),n(s,Os,a),n(s,f,a),n(s,Ps,a),n(s,I,a),n(s,Ds,a),n(s,_,a),n(s,Ks,a),n(s,V,a),n(s,sa,a),n(s,v,a),n(s,aa,a),n(s,q,a),n(s,la,a),n(s,G,a),n(s,na,a),n(s,E,a),n(s,ta,a),r($,s,a),n(s,ea,a),n(s,x,a),n(s,pa,a),n(s,R,a),n(s,ha,a),r(S,s,a),n(s,oa,a),r(N,s,a),n(s,ia,a),n(s,F,a),n(s,ca,a),r(X,s,a),n(s,ra,a),n(s,Z,a),n(s,ja,a),n(s,Y,a),n(s,ya,a),r(z,s,a),n(s,ua,a),n(s,A,a),n(s,da,a),r(W,s,a),n(s,wa,a),n(s,L,a),n(s,Ma,a),r(H,s,a),n(s,ga,a),n(s,O,a),n(s,Ja,a),r(P,s,a),n(s,ka,a),n(s,D,a),n(s,Ta,a),r(K,s,a),n(s,Ua,a),n(s,ss,a),n(s,ma,a),n(s,as,a),n(s,Ba,a),n(s,ls,a),n(s,ba,a),n(s,g,a),w(g,Rs),w(g,Ml),r(ns,g,null),n(s,Qa,a),r(ts,s,a),n(s,Ca,a),n(s,es,a),n(s,fa,a),n(s,J,a),w(J,Ss),w(J,gl),r(ps,J,null),n(s,Ia,a),r(hs,s,a),n(s,_a,a),n(s,os,a),n(s,Va,a),r(is,s,a),n(s,va,a),n(s,cs,a),n(s,qa,a),n(s,k,a),w(k,Ns),w(k,Jl),r(rs,k,null),n(s,Ga,a),r(js,s,a),n(s,Ea,a),n(s,ys,a),n(s,$a,a),r(us,s,a),n(s,xa,a),n(s,ds,a),n(s,Ra,a),n(s,T,a),w(T,Fs),w(T,kl),r(ws,T,null),n(s,Sa,a),r(Ms,s,a),n(s,Na,a),n(s,gs,a),n(s,Fa,a),n(s,Js,a),n(s,Xa,a),r(ks,s,a),n(s,Za,a),n(s,Ts,a),n(s,Ya,a),r(Us,s,a),n(s,za,a),n(s,ms,a),n(s,Aa,a),r(Bs,s,a),n(s,Wa,a),n(s,bs,a),n(s,La,a),r(Qs,s,a),n(s,Ha,a),n(s,Cs,a),n(s,Oa,a),r(fs,s,a),n(s,Pa,a),n(s,Is,a),n(s,Da,a),n(s,U,a),w(U,Xs),w(U,Tl),r(_s,U,null),n(s,Ka,a),r(Vs,s,a),n(s,sl,a),n(s,vs,a),n(s,al,a),n(s,m,a),w(m,Zs),w(m,Ul),r(qs,m,null),n(s,ll,a),r(Gs,s,a),n(s,nl,a),n(s,tl,a),n(s,el,a),n(s,Es,a),n(s,pl,a),n(s,$s,a),n(s,hl,a),r(xs,s,a),n(s,ol,a),n(s,zs,a),il=!0},p:Mn,i(s){il||(j(b.$$.fragment,s),j($.$$.fragment,s),j(S.$$.fragment,s),j(N.$$.fragment,s),j(X.$$.fragment,s),j(z.$$.fragment,s),j(W.$$.fragment,s),j(H.$$.fragment,s),j(P.$$.fragment,s),j(K.$$.fragment,s),j(ns.$$.fragment,s),j(ts.$$.fragment,s),j(ps.$$.fragment,s),j(hs.$$.fragment,s),j(is.$$.fragment,s),j(rs.$$.fragment,s),j(js.$$.fragment,s),j(us.$$.fragment,s),j(ws.$$.fragment,s),j(Ms.$$.fragment,s),j(ks.$$.fragment,s),j(Us.$$.fragment,s),j(Bs.$$.fragment,s),j(Qs.$$.fragment,s),j(fs.$$.fragment,s),j(_s.$$.fragment,s),j(Vs.$$.fragment,s),j(qs.$$.fragment,s),j(Gs.$$.fragment,s),j(xs.$$.fragment,s),il=!0)},o(s){y(b.$$.fragment,s),y($.$$.fragment,s),y(S.$$.fragment,s),y(N.$$.fragment,s),y(X.$$.fragment,s),y(z.$$.fragment,s),y(W.$$.fragment,s),y(H.$$.fragment,s),y(P.$$.fragment,s),y(K.$$.fragment,s),y(ns.$$.fragment,s),y(ts.$$.fragment,s),y(ps.$$.fragment,s),y(hs.$$.fragment,s),y(is.$$.fragment,s),y(rs.$$.fragment,s),y(js.$$.fragment,s),y(us.$$.fragment,s),y(ws.$$.fragment,s),y(Ms.$$.fragment,s),y(ks.$$.fragment,s),y(Us.$$.fragment,s),y(Bs.$$.fragment,s),y(Qs.$$.fragment,s),y(fs.$$.fragment,s),y(_s.$$.fragment,s),y(Vs.$$.fragment,s),y(qs.$$.fragment,s),y(Gs.$$.fragment,s),y(xs.$$.fragment,s),il=!1},d(s){s&&(l(As),l(Ys),l(Ws),l(Ls),l(Q),l(Hs),l(C),l(Os),l(f),l(Ps),l(I),l(Ds),l(_),l(Ks),l(V),l(sa),l(v),l(aa),l(q),l(la),l(G),l(na),l(E),l(ta),l(ea),l(x),l(pa),l(R),l(ha),l(oa),l(ia),l(F),l(ca),l(ra),l(Z),l(ja),l(Y),l(ya),l(ua),l(A),l(da),l(wa),l(L),l(Ma),l(ga),l(O),l(Ja),l(ka),l(D),l(Ta),l(Ua),l(ss),l(ma),l(as),l(Ba),l(ls),l(ba),l(g),l(Qa),l(Ca),l(es),l(fa),l(J),l(Ia),l(_a),l(os),l(Va),l(va),l(cs),l(qa),l(k),l(Ga),l(Ea),l(ys),l($a),l(xa),l(ds),l(Ra),l(T),l(Sa),l(Na),l(gs),l(Fa),l(Js),l(Xa),l(Za),l(Ts),l(Ya),l(za),l(ms),l(Aa),l(Wa),l(bs),l(La),l(Ha),l(Cs),l(Oa),l(Pa),l(Is),l(Da),l(U),l(Ka),l(sl),l(vs),l(al),l(m),l(ll),l(nl),l(tl),l(el),l(Es),l(pl),l($s),l(hl),l(ol),l(zs)),l(M),u(b,s),u($,s),u(S,s),u(N,s),u(X,s),u(z,s),u(W,s),u(H,s),u(P,s),u(K,s),u(ns),u(ts,s),u(ps),u(hs,s),u(is,s),u(rs),u(js,s),u(us,s),u(ws),u(Ms,s),u(ks,s),u(Us,s),u(Bs,s),u(Qs,s),u(fs,s),u(_s),u(Vs,s),u(qs),u(Gs,s),u(xs,s)}}}const Bn='{"title":"Thư viện Dummy Agent","local":"thư-viện-dummy-agent","sections":[{"title":"Serverless API","local":"serverless-api","sections":[],"depth":2},{"title":"Dummy Agent","local":"dummy-agent","sections":[],"depth":2}],"depth":1}';function bn(Bl){return gn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Vn extends Jn{constructor(M){super(),kn(this,M,bn,mn,dn,{})}}export{Vn as component};
