import{s as Mn,a as Jn,n as gn,o as kn}from"../chunks/scheduler.4048030c.js";import{S as Tn,i as Un,e as p,s as t,c as i,h as mn,a as h,d as l,b as e,f as B,g as c,j as o,k as Jl,l as w,m as n,n as r,t as y,o as j,p as d}from"../chunks/index.491908f3.js";import{C as Bn}from"../chunks/CopyLLMTxtMenu.40dbc672.js";import{C as u}from"../chunks/CodeBlock.99f15ca8.js";import{H as bl}from"../chunks/Heading.16eaa7b8.js";import{E as bn}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.48edbe27.js";function Cn(Cl){let M,Ws,zs,Ls,b,Hs,C,Os,Q,Ql,Ps,f,fl="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>.",Ds,I,Il="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.",Ks,_,_l="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 bộ máy LLM.",sa,V,Vl="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>.",aa,q,ql="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>.",la,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> và <code>LlamaIndex</code>.",na,G,Gl="Để đơn giản hóa, ta sẽ dùng hàm Python cơ bản làm Tool và Agent.",ta,E,El="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.",ea,x,xl='Bạn có thể theo dõi quy trình <a href="https://huggingface.co/agents-course/notebooks/blob/main/unit1/dummy_agent_library.ipynb" rel="nofollow">trong notebook này</a> và <strong>tự chạy code</strong>.',pa,$,ha,S,$l="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 mô hình dễ dàng. Không cần cài đặt hay triển khai.",oa,R,Sl="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”.",ia,N,ca,F,ra,X,Rl="đầu ra:",ya,Z,ja,Y,Nl="Như đã thấy ở phần LLM, nếu chỉ decode thông thường, <strong>mô hình sẽ chỉ dừng khi dự đoán được EOS token</strong> - điều không xảy ra ở đây vì đây là mô hình hội thoại (chat) và <strong>chúng ta chưa áp dụng chat template mà nó mong đợi</strong>.",da,z,Fl='Nếu thêm các Token đặc biệt liên quan đến <a href="https://huggingface.co/meta-llama/Llama-3.2-3B-Instruct">mô hình Llama-3.2-3B-Instruct</a> đang dùng, hành vi sẽ thay đổi và mô hình sẽ tạo ra EOS như mong đợi.',ua,A,wa,W,Xl="đầu ra:",Ma,L,Ja,H,Zl="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:",ga,O,ka,P,Yl="đầu ra:",Ta,D,Ua,K,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 mô hình, 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.",ma,ss,Ba,as,Al="Ở 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.",ba,ls,Wl="System prompt này phức tạp hơn chút so với trước, nhưng đã chứa:",Ca,ns,Ll="<li><strong>Thông tin về các Tools (công cụ)</strong></li> <li><strong>Hướng dẫn chu kỳ</strong> (Tư duy → Hành động → Quan sát)</li>",Qa,J,Rs,Hl="Bấm để xem bản dịch tiếng Việt",gl,ts,fa,es,Ia,ps,Ol="Vì đang dùng phương thức “text_generation”, ta cần tự áp dụng prompt:",_a,g,Ns,Pl="Bấm để xem bản dịch tiếng Việt",kl,hs,Va,os,qa,is,Dl="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,cs,Ga,rs,Kl="Prompt lúc này là:",Ea,k,Fs,sn="Bấm để xem bản dịch tiếng Việt",Tl,ys,xa,js,$a,ds,an="Hãy decode!",Sa,us,Ra,ws,ln="đầu ra:",Na,T,Xs,nn="Bấm để xem bản dịch tiếng Việt",Ul,Ms,Fa,Js,Xa,gs,tn="Bạn thấy vấn đề chứ?",Za,ks,en=`<p>Mô hình đã ảo giác (hallucinate) ra câu trả lời. Ta cần dừng lại để thực thi function thực sự!
Giờ hãy dừng ở “Quan sát:” để không bịa ra kết quả function.</p>`,Ya,Ts,za,Us,pn="đầu ra:",Aa,ms,Wa,Bs,hn=`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.`,La,bs,Ha,Cs,on="đầu ra:",Oa,Qs,Pa,fs,cn="Hãy nối prompt gốc, phần completion đến khi gọi function và kết quả function dưới dạng Quan sát, sau đó tiếp tục sinh.",Da,Is,Ka,_s,rn="Prompt mới:",sl,U,Zs,yn="Bấm để xem bản dịch tiếng Việt",ml,Vs,al,qs,ll,vs,jn="Đầu ra:",nl,m,Ys,dn="Bấm để xem bản dịch tiếng Việt",Bl,Gs,tl,Es,el,pl,hl,xs,un="Chúng ta đã học cách tạo Agent từ đầu bằng code Python, 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.",ol,$s,wn="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>.",il,Ss,cl,As,rl;return b=new Bn({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),C=new bl({props:{title:"Thư viện Dummy Agent",local:"thư-viện-dummy-agent",headingTag:"h1"}}),$=new bl({props:{title:"Serverless API",local:"serverless-api",headingTag:"h2"}}),N=new u({props:{code:"aW1wb3J0JTIwb3MlMEFmcm9tJTIwaHVnZ2luZ2ZhY2VfaHViJTIwaW1wb3J0JTIwSW5mZXJlbmNlQ2xpZW50JTBBJTBBJTIzJTIzJTIwQiVFMSVCQSVBMW4lMjBjJUUxJUJBJUE3biUyMHRva2VuJTIwdCVFMSVCQiVBQiUyMGh0dHBzJTNBJTJGJTJGaGYuY28lMkZzZXR0aW5ncyUyRnRva2VucyUyQyUyMGNoJUUxJUJCJThEbiUyMGxvJUUxJUJBJUExaSUyMHRva2VuJTIwJ3JlYWQnLiUyME4lRTElQkElQkZ1JTIwY2glRTElQkElQTF5JTIwdHIlQzMlQUFuJTIwR29vZ2xlJTIwQ29sYWIlMkMlMjBoJUMzJUEzeSUyMHRoaSVFMSVCQSVCRnQlMjBsJUUxJUJBJUFEcCUyMHRyb25nJTIwdGFiJTIwJTIyc2V0dGluZ3MlMjIlMjBtJUUxJUJCJUE1YyUyMCUyMnNlY3JldHMlMjIuJTIwJUM0JTkwJUUxJUJBJUI3dCUyMHQlQzMlQUFuJTIwc2VjcmV0JTIwbCVDMyVBMCUyMCUyMkhGX1RPS0VOJTIyJTBBb3MuZW52aXJvbiU1QiUyMkhGX1RPS0VOJTIyJTVEJTNEJTIyaGZfeHh4eHh4eHh4eHh4eHglMjIlMEElMEFjbGllbnQlMjAlM0QlMjBJbmZlcmVuY2VDbGllbnQocHJvdmlkZXIlM0QlMjJoZi1pbmZlcmVuY2UlMjIlMkMlMjBtb2RlbCUzRCUyMm1ldGEtbGxhbWElMkZMbGFtYS0zLjMtNzBCLUluc3RydWN0JTIyKSUwQSUyMyUyMG4lRTElQkElQkZ1JTIwJUM0JTkxJUUxJUJBJUE3dSUyMHJhJTIwc2FpJTIwJUUxJUJCJTlGJTIwYyVDMyVBMWMlMjBjZWxsJTIwc2F1JTJDJTIwbSVDMyVCNCUyMGglQzMlQUNuaCUyMG1pJUUxJUJCJTg1biUyMHBoJUMzJUFEJTIwYyVDMyVCMyUyMHRoJUUxJUJCJTgzJTIwJUM0JTkxYW5nJTIwcXUlQzMlQTElMjB0JUUxJUJBJUEzaS4lMjBCJUUxJUJBJUExbiUyMGMlQzUlQTluZyUyMGMlQzMlQjMlMjB0aCVFMSVCQiU4MyUyMGQlQzMlQjluZyUyMHB1YmxpYyUyMGVuZHBvaW50JTIwbiVDMyVBMHklMjBjaCVFMSVCQiVBOWElMjBMbGFtYS0zLjItM0ItSW5zdHJ1Y3QlMEElMjMlMjBjbGllbnQlMjAlM0QlMjBJbmZlcmVuY2VDbGllbnQoJTIyaHR0cHMlM0ElMkYlMkZqYzI2bXdnMjI4bWtqOGR3LnVzLWVhc3QtMS5hd3MuZW5kcG9pbnRzLmh1Z2dpbmdmYWNlLmNsb3VkJTIyKQ==",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(provider=<span class="hljs-string">&quot;hf-inference&quot;</span>, model=<span class="hljs-string">&quot;meta-llama/Llama-3.3-70B-Instruct&quot;</span>)
<span class="hljs-comment"># nếu đầu ra sai ở các cell sau, mô hình 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}}),F=new u({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}}),Z=new u({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}}),A=new u({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}}),L=new u({props:{code:"VGhlJTIwY2FwaXRhbCUyMG9mJTIwRnJhbmNlJTIwaXMlMjBQYXJpcy4=",highlighted:'The capital of France <span class="hljs-keyword">is</span> Paris.',wrap:!1}}),O=new u({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}}),D=new u({props:{code:"UGFyaXMu",highlighted:"Paris.",wrap:!1}}),ss=new bl({props:{title:"Dummy Agent",local:"dummy-agent",headingTag:"h2"}}),ts=new u({props:{code:"JTBBJTBBJTBBJTBBJTBBJTBBJTBBJTBBKG0lQzMlQjQlMjBoJUMzJUFDbmglMjBUJUM2JUIwJTIwZHV5JTJGSCVDMyVBMG5oJTIwJUM0JTkxJUUxJUJCJTk5bmclMkZRdWFuJTIwcyVDMyVBMXQlMjBuJUMzJUEweSUyMGMlQzMlQjMlMjB0aCVFMSVCQiU4MyUyMGwlRTElQkElQjdwJTIwbCVFMSVCQSVBMWklMjBOJTIwbCVFMSVCQSVBN24lMkMlMjBiJUUxJUJBJUExbiUyMG4lQzMlQUFuJTIwdGglRTElQkIlQjFjJTIwaGklRTElQkIlODduJTIwbmhpJUUxJUJCJTgxdSUyMGIlQzYlQjAlRTElQkIlOUJjJTIwa2hpJTIwYyVFMSVCQSVBN24lMjB0aGklRTElQkElQkZ0LiUyMCUyNEpTT05fQkxPQiUyMHBoJUUxJUJBJUEzaSUyMCVDNCU5MSVDNiVCMCVFMSVCQiVBM2MlMjAlQzQlOTElRTElQkIlOEJuaCUyMGQlRTElQkElQTFuZyUyMGQlQzYlQjAlRTElQkIlOUJpJTIwZCVFMSVCQSVBMW5nJTIwbWFya2Rvd24lMjB2JUMzJUEwJTIwY2glRTElQkIlODklMjBzJUUxJUJCJUFEJTIwZCVFMSVCQiVBNW5nJTIwTSVFMSVCQiU5OFQlMjBoJUMzJUEwbmglMjAlQzQlOTElRTElQkIlOTluZyUyMHQlRTElQkElQTFpJTIwbSVFMSVCQiU5OXQlMjB0aCVFMSVCQiU5RGklMjAlQzQlOTFpJUUxJUJCJTgzbS4pJTBBJTBBJTBB",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:

Câu hỏ<span class="hljs-selector-tag">i</span>: 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>
Tư duy: 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:
Hành động:

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

Quan sát 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 Tư duy/Hành động/Quan sát 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:

Tư duy: 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
Câu trả lờ<span class="hljs-selector-tag">i</span> cuố<span class="hljs-selector-tag">i</span>: 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ự \`Câu trả lờ<span class="hljs-selector-tag">i</span> cuố<span class="hljs-selector-tag">i</span>:\` 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}}),es=new u({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}}),hs=new u({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}}),os=new u({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}}),cs=new u({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}}),ys=new u({props:{code:"JTBBJTBBJTBBJTBBJTBBJTBBJTBBJTBBKG0lQzMlQjQlMjBoJUMzJUFDbmglMjBUJUM2JUIwJTIwZHV5JTJGSCVDMyVBMG5oJTIwJUM0JTkxJUUxJUJCJTk5bmclMkZRdWFuJTIwcyVDMyVBMXQlMjBuJUMzJUEweSUyMGMlQzMlQjMlMjB0aCVFMSVCQiU4MyUyMGwlRTElQkElQjdwJTIwbCVFMSVCQSVBMWklMjBOJTIwbCVFMSVCQSVBN24lMkMlMjBiJUUxJUJBJUExbiUyMG4lQzMlQUFuJTIwdGglRTElQkIlQjFjJTIwaGklRTElQkIlODduJTIwbmhpJUUxJUJCJTgxdSUyMGIlQzYlQjAlRTElQkIlOUJjJTIwa2hpJTIwYyVFMSVCQSVBN24lMjB0aGklRTElQkElQkZ0LiUyMCUyNEpTT05fQkxPQiUyMHBoJUUxJUJBJUEzaSUyMCVDNCU5MSVDNiVCMCVFMSVCQiVBM2MlMjAlQzQlOTElRTElQkIlOEJuaCUyMGQlRTElQkElQTFuZyUyMGQlQzYlQjAlRTElQkIlOUJpJTIwZCVFMSVCQSVBMW5nJTIwbWFya2Rvd24lMjB2JUMzJUEwJTIwY2glRTElQkIlODklMjBzJUUxJUJCJUFEJTIwZCVFMSVCQiVBNW5nJTIwTSVFMSVCQiU5OFQlMjBoJUMzJUEwbmglMjAlQzQlOTElRTElQkIlOTluZyUyMHQlRTElQkElQTFpJTIwbSVFMSVCQiU5OXQlMjB0aCVFMSVCQiU5RGklMjAlQzQlOTFpJUUxJUJCJTgzbS4pJTBBJTBBJTBB",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:

Câ<span class="hljs-keyword">u</span> hỏi: <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
Tư duy: <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>:
Hành động:

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

Quan sát: <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 Tư duy/Hành động/Quan sát 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:

Tư duy: 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
Câ<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>â<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ự \`Câ<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:\` 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 u({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 u({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}}),Ms=new u({props:{code:"SCVDMyVBMG5oJTIwJUM0JTkxJUUxJUJCJTk5bmclM0ElMEElNjAlNjAlNjAlMEElN0IlMEElMjAlMjAlMjJhY3Rpb24lMjIlM0ElMjAlMjJnZXRfd2VhdGhlciUyMiUyQyUwQSUyMCUyMCUyMmFjdGlvbl9pbnB1dCUyMiUzQSUyMCU3QiUyMmxvY2F0aW9uJTIyJTNBJTIwJTIyTG9uZG9uJTIyJTdEJTBBJTdEJTBBJTYwJTYwJTYwJTBBVCVDNiVCMCUyMGR1eSUzQSUyMFQlQzMlQjRpJTIwcyVFMSVCQSVCRCUyMGtpJUUxJUJCJTgzbSUyMHRyYSUyMHRoJUUxJUJCJTlEaSUyMHRpJUUxJUJBJUJGdCUyMCVFMSVCQiU5RiUyMExvbmRvbi4lMEFRdWFuJTIwcyVDMyVBMXQlM0ElMjBUaCVFMSVCQiU5RGklMjB0aSVFMSVCQSVCRnQlMjBoaSVFMSVCQiU4N24lMjB0JUUxJUJBJUExaSUyMCVFMSVCQiU5RiUyMExvbmRvbiUyMGwlQzMlQTAlMjBtJUMzJUEyeSUyMG5oaSVFMSVCQiU4MXUlMjB2JUUxJUJCJTlCaSUyMG5oaSVFMSVCQiU4N3QlMjAlQzQlOTElRTElQkIlOTklMjBjYW8lMjAxMiVDMiVCMEMlMjB2JUMzJUEwJTIwdGglRTElQkElQTVwJTIwOCVDMiVCMEMu",highlighted:`Hành độ<span class="hljs-symbol">ng:</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>}
}
\`\`\`
<span class="hljs-built_in">T</span>ư d<span class="hljs-symbol">uy:</span> <span class="hljs-built_in">T</span>ôi sẽ kiểm tra thời tiế<span class="hljs-built_in">t</span> ở London.
Quan sá<span class="hljs-symbol">t:</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}}),Js=new u({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}}),Ts=new u({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}}),ms=new u({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 u({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 u({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}}),Is=new u({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}}),Vs=new u({props:{code:"JTBBJTBBJTBBJTBBJTBBJTBBJTBBJTBBKG0lQzMlQjQlMjBoJUMzJUFDbmglMjBUJUM2JUIwJTIwZHV5JTJGUXVhbiUyMHMlQzMlQTF0JTJGSCVDMyVBMG5oJTIwJUM0JTkxJUUxJUJCJTk5bmclMjBuJUMzJUEweSUyMGMlQzMlQjMlMjB0aCVFMSVCQiU4MyUyMGwlRTElQkElQjdwJTIwbCVFMSVCQSVBMWklMjBOJTIwbCVFMSVCQSVBN24lMkMlMjBiJUUxJUJBJUExbiUyMG4lQzMlQUFuJTIwdGglRTElQkIlQjFjJTIwaGklRTElQkIlODduJTIwbmhpJUUxJUJCJTgxdSUyMGIlQzYlQjAlRTElQkIlOUJjJTIwa2hpJTIwYyVFMSVCQSVBN24lMjB0aGklRTElQkElQkZ0LiUyMCUyNEpTT05fQkxPQiUyMHBoJUUxJUJBJUEzaSUyMCVDNCU5MSVDNiVCMCVFMSVCQiVBM2MlMjAlQzQlOTElRTElQkIlOEJuaCUyMGQlRTElQkElQTFuZyUyMGQlQzYlQjAlRTElQkIlOUJpJTIwZCVFMSVCQSVBMW5nJTIwbWFya2Rvd24lMjB2JUMzJUEwJTIwY2glRTElQkIlODklMjBzJUUxJUJCJUFEJTIwZCVFMSVCQiVBNW5nJTIwTSVFMSVCQiU5OFQlMjBoJUMzJUEwbmglMjAlQzQlOTElRTElQkIlOTluZyUyMHQlRTElQkElQTFpJTIwbSVFMSVCQiU5OXQlMjB0aCVFMSVCQiU5RGklMjAlQzQlOTFpJUUxJUJCJTgzbS4pJTIwJTIwJTBBJTBBJTBBJTBB",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:  

Câ<span class="hljs-keyword">u</span> hỏi: <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  
Tư duy: <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>:  
Hành độ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;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>}  
}  
\`\`\`  
Tư duy: Tôi sẽ kiể<span class="hljs-keyword">m</span> tra <span class="hljs-keyword">th</span>ời tiết ở London.  
Quan sát: <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 Tư duy/Quan sát/Hành động 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:  

Tư duy: 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  
Câ<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>â<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ự \`Câ<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:\` 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}}),qs=new u({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}}),Gs=new u({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}}),Es=new u({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}}),Ss=new bn({props:{source:"https://github.com/huggingface/agents-course/blob/main/units/vi/unit1/dummy-agent-library.mdx"}}),{c(){M=p("meta"),Ws=t(),zs=p("p"),Ls=t(),i(b.$$.fragment),Hs=t(),i(C.$$.fragment),Os=t(),Q=p("img"),Ps=t(),f=p("p"),f.innerHTML=fl,Ds=t(),I=p("p"),I.textContent=Il,Ks=t(),_=p("p"),_.innerHTML=_l,sa=t(),V=p("p"),V.innerHTML=Vl,aa=t(),q=p("p"),q.innerHTML=ql,la=t(),v=p("p"),v.innerHTML=vl,na=t(),G=p("p"),G.textContent=Gl,ta=t(),E=p("p"),E.innerHTML=El,ea=t(),x=p("p"),x.innerHTML=xl,pa=t(),i($.$$.fragment),ha=t(),S=p("p"),S.textContent=$l,oa=t(),R=p("p"),R.textContent=Sl,ia=t(),i(N.$$.fragment),ca=t(),i(F.$$.fragment),ra=t(),X=p("p"),X.textContent=Rl,ya=t(),i(Z.$$.fragment),ja=t(),Y=p("p"),Y.innerHTML=Nl,da=t(),z=p("p"),z.innerHTML=Fl,ua=t(),i(A.$$.fragment),wa=t(),W=p("p"),W.textContent=Xl,Ma=t(),i(L.$$.fragment),Ja=t(),H=p("p"),H.textContent=Zl,ga=t(),i(O.$$.fragment),ka=t(),P=p("p"),P.textContent=Yl,Ta=t(),i(D.$$.fragment),Ua=t(),K=p("p"),K.innerHTML=zl,ma=t(),i(ss.$$.fragment),Ba=t(),as=p("p"),as.textContent=Al,ba=t(),ls=p("p"),ls.textContent=Wl,Ca=t(),ns=p("ol"),ns.innerHTML=Ll,Qa=t(),J=p("details"),Rs=p("summary"),Rs.textContent=Hl,gl=t(),i(ts.$$.fragment),fa=t(),i(es.$$.fragment),Ia=t(),ps=p("p"),ps.textContent=Ol,_a=t(),g=p("details"),Ns=p("summary"),Ns.textContent=Pl,kl=t(),i(hs.$$.fragment),Va=t(),i(os.$$.fragment),qa=t(),is=p("p"),is.innerHTML=Dl,va=t(),i(cs.$$.fragment),Ga=t(),rs=p("p"),rs.textContent=Kl,Ea=t(),k=p("details"),Fs=p("summary"),Fs.textContent=sn,Tl=t(),i(ys.$$.fragment),xa=t(),i(js.$$.fragment),$a=t(),ds=p("p"),ds.textContent=an,Sa=t(),i(us.$$.fragment),Ra=t(),ws=p("p"),ws.textContent=ln,Na=t(),T=p("details"),Xs=p("summary"),Xs.textContent=nn,Ul=t(),i(Ms.$$.fragment),Fa=t(),i(Js.$$.fragment),Xa=t(),gs=p("p"),gs.textContent=tn,Za=t(),ks=p("blockquote"),ks.innerHTML=en,Ya=t(),i(Ts.$$.fragment),za=t(),Us=p("p"),Us.textContent=pn,Aa=t(),i(ms.$$.fragment),Wa=t(),Bs=p("p"),Bs.textContent=hn,La=t(),i(bs.$$.fragment),Ha=t(),Cs=p("p"),Cs.textContent=on,Oa=t(),i(Qs.$$.fragment),Pa=t(),fs=p("p"),fs.textContent=cn,Da=t(),i(Is.$$.fragment),Ka=t(),_s=p("p"),_s.textContent=rn,sl=t(),U=p("details"),Zs=p("summary"),Zs.textContent=yn,ml=t(),i(Vs.$$.fragment),al=t(),i(qs.$$.fragment),ll=t(),vs=p("p"),vs.textContent=jn,nl=t(),m=p("details"),Ys=p("summary"),Ys.textContent=dn,Bl=t(),i(Gs.$$.fragment),tl=t(),i(Es.$$.fragment),el=t(),pl=p("hr"),hl=t(),xs=p("p"),xs.innerHTML=un,ol=t(),$s=p("p"),$s.innerHTML=wn,il=t(),i(Ss.$$.fragment),cl=t(),As=p("p"),this.h()},l(s){const a=mn("svelte-u9bgzb",document.head);M=h(a,"META",{name:!0,content:!0}),a.forEach(l),Ws=e(s),zs=h(s,"P",{}),B(zs).forEach(l),Ls=e(s),c(b.$$.fragment,s),Hs=e(s),c(C.$$.fragment,s),Os=e(s),Q=h(s,"IMG",{src:!0,alt:!0}),Ps=e(s),f=h(s,"P",{"data-svelte-h":!0}),o(f)!=="svelte-1fs1iqm"&&(f.innerHTML=fl),Ds=e(s),I=h(s,"P",{"data-svelte-h":!0}),o(I)!=="svelte-110ir3u"&&(I.textContent=Il),Ks=e(s),_=h(s,"P",{"data-svelte-h":!0}),o(_)!=="svelte-a3o298"&&(_.innerHTML=_l),sa=e(s),V=h(s,"P",{"data-svelte-h":!0}),o(V)!=="svelte-1g0zkxs"&&(V.innerHTML=Vl),aa=e(s),q=h(s,"P",{"data-svelte-h":!0}),o(q)!=="svelte-1d203hh"&&(q.innerHTML=ql),la=e(s),v=h(s,"P",{"data-svelte-h":!0}),o(v)!=="svelte-1ize2p2"&&(v.innerHTML=vl),na=e(s),G=h(s,"P",{"data-svelte-h":!0}),o(G)!=="svelte-12zmyun"&&(G.textContent=Gl),ta=e(s),E=h(s,"P",{"data-svelte-h":!0}),o(E)!=="svelte-vx2gtj"&&(E.innerHTML=El),ea=e(s),x=h(s,"P",{"data-svelte-h":!0}),o(x)!=="svelte-177aat2"&&(x.innerHTML=xl),pa=e(s),c($.$$.fragment,s),ha=e(s),S=h(s,"P",{"data-svelte-h":!0}),o(S)!=="svelte-1tvtey3"&&(S.textContent=$l),oa=e(s),R=h(s,"P",{"data-svelte-h":!0}),o(R)!=="svelte-dizhpp"&&(R.textContent=Sl),ia=e(s),c(N.$$.fragment,s),ca=e(s),c(F.$$.fragment,s),ra=e(s),X=h(s,"P",{"data-svelte-h":!0}),o(X)!=="svelte-74ihdy"&&(X.textContent=Rl),ya=e(s),c(Z.$$.fragment,s),ja=e(s),Y=h(s,"P",{"data-svelte-h":!0}),o(Y)!=="svelte-1bnq9hy"&&(Y.innerHTML=Nl),da=e(s),z=h(s,"P",{"data-svelte-h":!0}),o(z)!=="svelte-1x8uyvi"&&(z.innerHTML=Fl),ua=e(s),c(A.$$.fragment,s),wa=e(s),W=h(s,"P",{"data-svelte-h":!0}),o(W)!=="svelte-74ihdy"&&(W.textContent=Xl),Ma=e(s),c(L.$$.fragment,s),Ja=e(s),H=h(s,"P",{"data-svelte-h":!0}),o(H)!=="svelte-wngcav"&&(H.textContent=Zl),ga=e(s),c(O.$$.fragment,s),ka=e(s),P=h(s,"P",{"data-svelte-h":!0}),o(P)!=="svelte-74ihdy"&&(P.textContent=Yl),Ta=e(s),c(D.$$.fragment,s),Ua=e(s),K=h(s,"P",{"data-svelte-h":!0}),o(K)!=="svelte-dgiyok"&&(K.innerHTML=zl),ma=e(s),c(ss.$$.fragment,s),Ba=e(s),as=h(s,"P",{"data-svelte-h":!0}),o(as)!=="svelte-wfqo6m"&&(as.textContent=Al),ba=e(s),ls=h(s,"P",{"data-svelte-h":!0}),o(ls)!=="svelte-yw4njd"&&(ls.textContent=Wl),Ca=e(s),ns=h(s,"OL",{"data-svelte-h":!0}),o(ns)!=="svelte-1oo5wt6"&&(ns.innerHTML=Ll),Qa=e(s),J=h(s,"DETAILS",{});var yl=B(J);Rs=h(yl,"SUMMARY",{"data-svelte-h":!0}),o(Rs)!=="svelte-csqcdg"&&(Rs.textContent=Hl),gl=e(yl),c(ts.$$.fragment,yl),yl.forEach(l),fa=e(s),c(es.$$.fragment,s),Ia=e(s),ps=h(s,"P",{"data-svelte-h":!0}),o(ps)!=="svelte-ihkbo1"&&(ps.textContent=Ol),_a=e(s),g=h(s,"DETAILS",{});var jl=B(g);Ns=h(jl,"SUMMARY",{"data-svelte-h":!0}),o(Ns)!=="svelte-csqcdg"&&(Ns.textContent=Pl),kl=e(jl),c(hs.$$.fragment,jl),jl.forEach(l),Va=e(s),c(os.$$.fragment,s),qa=e(s),is=h(s,"P",{"data-svelte-h":!0}),o(is)!=="svelte-dkkg1m"&&(is.innerHTML=Dl),va=e(s),c(cs.$$.fragment,s),Ga=e(s),rs=h(s,"P",{"data-svelte-h":!0}),o(rs)!=="svelte-15602gy"&&(rs.textContent=Kl),Ea=e(s),k=h(s,"DETAILS",{});var dl=B(k);Fs=h(dl,"SUMMARY",{"data-svelte-h":!0}),o(Fs)!=="svelte-csqcdg"&&(Fs.textContent=sn),Tl=e(dl),c(ys.$$.fragment,dl),dl.forEach(l),xa=e(s),c(js.$$.fragment,s),$a=e(s),ds=h(s,"P",{"data-svelte-h":!0}),o(ds)!=="svelte-1ppf3r5"&&(ds.textContent=an),Sa=e(s),c(us.$$.fragment,s),Ra=e(s),ws=h(s,"P",{"data-svelte-h":!0}),o(ws)!=="svelte-74ihdy"&&(ws.textContent=ln),Na=e(s),T=h(s,"DETAILS",{});var ul=B(T);Xs=h(ul,"SUMMARY",{"data-svelte-h":!0}),o(Xs)!=="svelte-csqcdg"&&(Xs.textContent=nn),Ul=e(ul),c(Ms.$$.fragment,ul),ul.forEach(l),Fa=e(s),c(Js.$$.fragment,s),Xa=e(s),gs=h(s,"P",{"data-svelte-h":!0}),o(gs)!=="svelte-izgu5f"&&(gs.textContent=tn),Za=e(s),ks=h(s,"BLOCKQUOTE",{"data-svelte-h":!0}),o(ks)!=="svelte-1q5gvu0"&&(ks.innerHTML=en),Ya=e(s),c(Ts.$$.fragment,s),za=e(s),Us=h(s,"P",{"data-svelte-h":!0}),o(Us)!=="svelte-74ihdy"&&(Us.textContent=pn),Aa=e(s),c(ms.$$.fragment,s),Wa=e(s),Bs=h(s,"P",{"data-svelte-h":!0}),o(Bs)!=="svelte-1l29h87"&&(Bs.textContent=hn),La=e(s),c(bs.$$.fragment,s),Ha=e(s),Cs=h(s,"P",{"data-svelte-h":!0}),o(Cs)!=="svelte-74ihdy"&&(Cs.textContent=on),Oa=e(s),c(Qs.$$.fragment,s),Pa=e(s),fs=h(s,"P",{"data-svelte-h":!0}),o(fs)!=="svelte-199vo9s"&&(fs.textContent=cn),Da=e(s),c(Is.$$.fragment,s),Ka=e(s),_s=h(s,"P",{"data-svelte-h":!0}),o(_s)!=="svelte-g1o1ph"&&(_s.textContent=rn),sl=e(s),U=h(s,"DETAILS",{});var wl=B(U);Zs=h(wl,"SUMMARY",{"data-svelte-h":!0}),o(Zs)!=="svelte-csqcdg"&&(Zs.textContent=yn),ml=e(wl),c(Vs.$$.fragment,wl),wl.forEach(l),al=e(s),c(qs.$$.fragment,s),ll=e(s),vs=h(s,"P",{"data-svelte-h":!0}),o(vs)!=="svelte-74kiu9"&&(vs.textContent=jn),nl=e(s),m=h(s,"DETAILS",{});var Ml=B(m);Ys=h(Ml,"SUMMARY",{"data-svelte-h":!0}),o(Ys)!=="svelte-csqcdg"&&(Ys.textContent=dn),Bl=e(Ml),c(Gs.$$.fragment,Ml),Ml.forEach(l),tl=e(s),c(Es.$$.fragment,s),el=e(s),pl=h(s,"HR",{}),hl=e(s),xs=h(s,"P",{"data-svelte-h":!0}),o(xs)!=="svelte-1fgf0mi"&&(xs.innerHTML=un),ol=e(s),$s=h(s,"P",{"data-svelte-h":!0}),o($s)!=="svelte-1nrvpel"&&($s.innerHTML=wn),il=e(s),c(Ss.$$.fragment,s),cl=e(s),As=h(s,"P",{}),B(As).forEach(l),this.h()},h(){Jl(M,"name","hf:doc:metadata"),Jl(M,"content",Qn),Jn(Q.src,Ql="https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/unit1/whiteboard-unit1sub3DONE.jpg")||Jl(Q,"src",Ql),Jl(Q,"alt","Unit 1 planning")},m(s,a){w(document.head,M),n(s,Ws,a),n(s,zs,a),n(s,Ls,a),r(b,s,a),n(s,Hs,a),r(C,s,a),n(s,Os,a),n(s,Q,a),n(s,Ps,a),n(s,f,a),n(s,Ds,a),n(s,I,a),n(s,Ks,a),n(s,_,a),n(s,sa,a),n(s,V,a),n(s,aa,a),n(s,q,a),n(s,la,a),n(s,v,a),n(s,na,a),n(s,G,a),n(s,ta,a),n(s,E,a),n(s,ea,a),n(s,x,a),n(s,pa,a),r($,s,a),n(s,ha,a),n(s,S,a),n(s,oa,a),n(s,R,a),n(s,ia,a),r(N,s,a),n(s,ca,a),r(F,s,a),n(s,ra,a),n(s,X,a),n(s,ya,a),r(Z,s,a),n(s,ja,a),n(s,Y,a),n(s,da,a),n(s,z,a),n(s,ua,a),r(A,s,a),n(s,wa,a),n(s,W,a),n(s,Ma,a),r(L,s,a),n(s,Ja,a),n(s,H,a),n(s,ga,a),r(O,s,a),n(s,ka,a),n(s,P,a),n(s,Ta,a),r(D,s,a),n(s,Ua,a),n(s,K,a),n(s,ma,a),r(ss,s,a),n(s,Ba,a),n(s,as,a),n(s,ba,a),n(s,ls,a),n(s,Ca,a),n(s,ns,a),n(s,Qa,a),n(s,J,a),w(J,Rs),w(J,gl),r(ts,J,null),n(s,fa,a),r(es,s,a),n(s,Ia,a),n(s,ps,a),n(s,_a,a),n(s,g,a),w(g,Ns),w(g,kl),r(hs,g,null),n(s,Va,a),r(os,s,a),n(s,qa,a),n(s,is,a),n(s,va,a),r(cs,s,a),n(s,Ga,a),n(s,rs,a),n(s,Ea,a),n(s,k,a),w(k,Fs),w(k,Tl),r(ys,k,null),n(s,xa,a),r(js,s,a),n(s,$a,a),n(s,ds,a),n(s,Sa,a),r(us,s,a),n(s,Ra,a),n(s,ws,a),n(s,Na,a),n(s,T,a),w(T,Xs),w(T,Ul),r(Ms,T,null),n(s,Fa,a),r(Js,s,a),n(s,Xa,a),n(s,gs,a),n(s,Za,a),n(s,ks,a),n(s,Ya,a),r(Ts,s,a),n(s,za,a),n(s,Us,a),n(s,Aa,a),r(ms,s,a),n(s,Wa,a),n(s,Bs,a),n(s,La,a),r(bs,s,a),n(s,Ha,a),n(s,Cs,a),n(s,Oa,a),r(Qs,s,a),n(s,Pa,a),n(s,fs,a),n(s,Da,a),r(Is,s,a),n(s,Ka,a),n(s,_s,a),n(s,sl,a),n(s,U,a),w(U,Zs),w(U,ml),r(Vs,U,null),n(s,al,a),r(qs,s,a),n(s,ll,a),n(s,vs,a),n(s,nl,a),n(s,m,a),w(m,Ys),w(m,Bl),r(Gs,m,null),n(s,tl,a),r(Es,s,a),n(s,el,a),n(s,pl,a),n(s,hl,a),n(s,xs,a),n(s,ol,a),n(s,$s,a),n(s,il,a),r(Ss,s,a),n(s,cl,a),n(s,As,a),rl=!0},p:gn,i(s){rl||(y(b.$$.fragment,s),y(C.$$.fragment,s),y($.$$.fragment,s),y(N.$$.fragment,s),y(F.$$.fragment,s),y(Z.$$.fragment,s),y(A.$$.fragment,s),y(L.$$.fragment,s),y(O.$$.fragment,s),y(D.$$.fragment,s),y(ss.$$.fragment,s),y(ts.$$.fragment,s),y(es.$$.fragment,s),y(hs.$$.fragment,s),y(os.$$.fragment,s),y(cs.$$.fragment,s),y(ys.$$.fragment,s),y(js.$$.fragment,s),y(us.$$.fragment,s),y(Ms.$$.fragment,s),y(Js.$$.fragment,s),y(Ts.$$.fragment,s),y(ms.$$.fragment,s),y(bs.$$.fragment,s),y(Qs.$$.fragment,s),y(Is.$$.fragment,s),y(Vs.$$.fragment,s),y(qs.$$.fragment,s),y(Gs.$$.fragment,s),y(Es.$$.fragment,s),y(Ss.$$.fragment,s),rl=!0)},o(s){j(b.$$.fragment,s),j(C.$$.fragment,s),j($.$$.fragment,s),j(N.$$.fragment,s),j(F.$$.fragment,s),j(Z.$$.fragment,s),j(A.$$.fragment,s),j(L.$$.fragment,s),j(O.$$.fragment,s),j(D.$$.fragment,s),j(ss.$$.fragment,s),j(ts.$$.fragment,s),j(es.$$.fragment,s),j(hs.$$.fragment,s),j(os.$$.fragment,s),j(cs.$$.fragment,s),j(ys.$$.fragment,s),j(js.$$.fragment,s),j(us.$$.fragment,s),j(Ms.$$.fragment,s),j(Js.$$.fragment,s),j(Ts.$$.fragment,s),j(ms.$$.fragment,s),j(bs.$$.fragment,s),j(Qs.$$.fragment,s),j(Is.$$.fragment,s),j(Vs.$$.fragment,s),j(qs.$$.fragment,s),j(Gs.$$.fragment,s),j(Es.$$.fragment,s),j(Ss.$$.fragment,s),rl=!1},d(s){s&&(l(Ws),l(zs),l(Ls),l(Hs),l(Os),l(Q),l(Ps),l(f),l(Ds),l(I),l(Ks),l(_),l(sa),l(V),l(aa),l(q),l(la),l(v),l(na),l(G),l(ta),l(E),l(ea),l(x),l(pa),l(ha),l(S),l(oa),l(R),l(ia),l(ca),l(ra),l(X),l(ya),l(ja),l(Y),l(da),l(z),l(ua),l(wa),l(W),l(Ma),l(Ja),l(H),l(ga),l(ka),l(P),l(Ta),l(Ua),l(K),l(ma),l(Ba),l(as),l(ba),l(ls),l(Ca),l(ns),l(Qa),l(J),l(fa),l(Ia),l(ps),l(_a),l(g),l(Va),l(qa),l(is),l(va),l(Ga),l(rs),l(Ea),l(k),l(xa),l($a),l(ds),l(Sa),l(Ra),l(ws),l(Na),l(T),l(Fa),l(Xa),l(gs),l(Za),l(ks),l(Ya),l(za),l(Us),l(Aa),l(Wa),l(Bs),l(La),l(Ha),l(Cs),l(Oa),l(Pa),l(fs),l(Da),l(Ka),l(_s),l(sl),l(U),l(al),l(ll),l(vs),l(nl),l(m),l(tl),l(el),l(pl),l(hl),l(xs),l(ol),l($s),l(il),l(cl),l(As)),l(M),d(b,s),d(C,s),d($,s),d(N,s),d(F,s),d(Z,s),d(A,s),d(L,s),d(O,s),d(D,s),d(ss,s),d(ts),d(es,s),d(hs),d(os,s),d(cs,s),d(ys),d(js,s),d(us,s),d(Ms),d(Js,s),d(Ts,s),d(ms,s),d(bs,s),d(Qs,s),d(Is,s),d(Vs),d(qs,s),d(Gs),d(Es,s),d(Ss,s)}}}const Qn='{"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 fn(Cl){return kn(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class En extends Tn{constructor(M){super(),Un(this,M,fn,Cn,Mn,{})}}export{En as component};
