import{s as bl,o as vl,n as qn}from"../chunks/scheduler.00b97157.js";import{S as Ml,i as $l,e as l,s as o,c as m,h as yl,a as r,d as n,b as s,f as x,g as d,j as f,k as M,l as t,m as i,n as g,t as c,o as p,p as u}from"../chunks/index.a7c1a7a1.js";import{T as _l,D as w,E as Xo}from"../chunks/ExampleCodeBlock.b92c6e43.js";import{C as xl,H as V,E as wl}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.419e1c80.js";import{C as W}from"../chunks/CodeBlock.c7c66ad0.js";function Tl(j){let _,I="Smolagents एक experimental API है जो किसी भी समय बदल सकता है। एजेंट्स द्वारा लौटाए गए परिणाम भिन्न हो सकते हैं क्योंकि APIs या underlying मॉडल बदलने की संभावना रखते हैं।";return{c(){_=l("p"),_.textContent=I},l($){_=r($,"P",{"data-svelte-h":!0}),f(_)!=="svelte-1f42n0i"&&(_.textContent=I)},m($,b){i($,_,b)},p:qn,d($){$&&n(_)}}}function Cl(j){let _,I=`Loading a tool from the Hub means that you’ll download the tool and execute it locally.
ALWAYS inspect the tool you’re downloading before loading it within your runtime, as you would do when
installing a package using pip/npm/apt.`;return{c(){_=l("p"),_.textContent=I},l($){_=r($,"P",{"data-svelte-h":!0}),f(_)!=="svelte-fpk7e5"&&(_.textContent=I)},m($,b){i($,_,b)},p:qn,d($){$&&n(_)}}}function Il(j){let _,I="Example:",$,b,T;return b=new W({props:{code:"ZnJvbSUyMHNtb2xhZ2VudHMlMjBpbXBvcnQlMjBDb2RlQWdlbnQlMEFhZ2VudCUyMCUzRCUyMENvZGVBZ2VudCh0b29scyUzRCU1QiU1RCklMEFhZ2VudC5ydW4oJTIyV2hhdCUyMGlzJTIwdGhlJTIwcmVzdWx0JTIwb2YlMjAyJTIwcG93ZXIlMjAzLjczODQlM0YlMjIp",highlighted:`<span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> CodeAgent
agent = CodeAgent(tools=[])
agent.run(<span class="hljs-string">&quot;What is the result of 2 power 3.7384?&quot;</span>)`,wrap:!1}}),{c(){_=l("p"),_.textContent=I,$=o(),m(b.$$.fragment)},l(h){_=r(h,"P",{"data-svelte-h":!0}),f(_)!=="svelte-11lpom8"&&(_.textContent=I),$=s(h),d(b.$$.fragment,h)},m(h,C){i(h,_,C),i(h,$,C),g(b,h,C),T=!0},p:qn,i(h){T||(c(b.$$.fragment,h),T=!0)},o(h){p(b.$$.fragment,h),T=!1},d(h){h&&(n(_),n($)),u(b,h)}}}function kl(j){let _,I="Example:",$,b,T;return b=new W({props:{code:"ZnJvbSUyMHNtb2xhZ2VudHMlMjBpbXBvcnQlMjBDb2RlQWdlbnQlMkMlMjBHcmFkaW9VSSUyQyUyMEluZmVyZW5jZUNsaWVudE1vZGVsJTBBJTBBbW9kZWwlMjAlM0QlMjBJbmZlcmVuY2VDbGllbnRNb2RlbChtb2RlbF9pZCUzRCUyMm1ldGEtbGxhbWElMkZNZXRhLUxsYW1hLTMuMS04Qi1JbnN0cnVjdCUyMiklMEFhZ2VudCUyMCUzRCUyMENvZGVBZ2VudCh0b29scyUzRCU1QiU1RCUyQyUyMG1vZGVsJTNEbW9kZWwpJTBBZ3JhZGlvX3VpJTIwJTNEJTIwR3JhZGlvVUkoYWdlbnQlMkMlMjBmaWxlX3VwbG9hZF9mb2xkZXIlM0QlMjJ1cGxvYWRzJTIyJTJDJTIwcmVzZXRfYWdlbnRfbWVtb3J5JTNEVHJ1ZSklMEFncmFkaW9fdWkubGF1bmNoKCk=",highlighted:`<span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> CodeAgent, GradioUI, InferenceClientModel

model = InferenceClientModel(model_id=<span class="hljs-string">&quot;meta-llama/Meta-Llama-3.1-8B-Instruct&quot;</span>)
agent = CodeAgent(tools=[], model=model)
gradio_ui = GradioUI(agent, file_upload_folder=<span class="hljs-string">&quot;uploads&quot;</span>, reset_agent_memory=<span class="hljs-literal">True</span>)
gradio_ui.launch()`,wrap:!1}}),{c(){_=l("p"),_.textContent=I,$=o(),m(b.$$.fragment)},l(h){_=r(h,"P",{"data-svelte-h":!0}),f(_)!=="svelte-11lpom8"&&(_.textContent=I),$=s(h),d(b.$$.fragment,h)},m(h,C){i(h,_,C),i(h,$,C),g(b,h,C),T=!0},p:qn,i(h){T||(c(b.$$.fragment,h),T=!0)},o(h){p(b.$$.fragment,h),T=!1},d(h){h&&(n(_),n($)),u(b,h)}}}function Jl(j){let _,I="Example:",$,b,T;return b=new W({props:{code:"ZW5naW5lJTIwJTNEJTIwVHJhbnNmb3JtZXJzTW9kZWwoJTBBJTIwJTIwJTIwJTIwbW9kZWxfaWQlM0QlMjJRd2VuJTJGUXdlbjMtTmV4dC04MEItQTNCLVRoaW5raW5nJTIyJTJDJTBBJTIwJTIwJTIwJTIwZGV2aWNlJTNEJTIyY3VkYSUyMiUyQyUwQSUyMCUyMCUyMCUyMG1heF9uZXdfdG9rZW5zJTNENTAwMCUyQyUwQSklMEFtZXNzYWdlcyUyMCUzRCUyMCU1QiU3QiUyMnJvbGUlMjIlM0ElMjAlMjJ1c2VyJTIyJTJDJTIwJTIyY29udGVudCUyMiUzQSUyMCUyMkV4cGxhaW4lMjBxdWFudHVtJTIwbWVjaGFuaWNzJTIwaW4lMjBzaW1wbGUlMjB0ZXJtcy4lMjIlN0QlNUQlMEFyZXNwb25zZSUyMCUzRCUyMGVuZ2luZShtZXNzYWdlcyUyQyUyMHN0b3Bfc2VxdWVuY2VzJTNEJTVCJTIyRU5EJTIyJTVEKSUwQXByaW50KHJlc3BvbnNlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>engine = TransformersModel(
<span class="hljs-meta">... </span>    model_id=<span class="hljs-string">&quot;Qwen/Qwen3-Next-80B-A3B-Thinking&quot;</span>,
<span class="hljs-meta">... </span>    device=<span class="hljs-string">&quot;cuda&quot;</span>,
<span class="hljs-meta">... </span>    max_new_tokens=<span class="hljs-number">5000</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>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;Explain quantum mechanics in simple terms.&quot;</span>}]
<span class="hljs-meta">&gt;&gt;&gt; </span>response = engine(messages, stop_sequences=[<span class="hljs-string">&quot;END&quot;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(response)
<span class="hljs-string">&quot;Quantum mechanics is the branch of physics that studies...&quot;</span>`,wrap:!1}}),{c(){_=l("p"),_.textContent=I,$=o(),m(b.$$.fragment)},l(h){_=r(h,"P",{"data-svelte-h":!0}),f(_)!=="svelte-11lpom8"&&(_.textContent=I),$=s(h),d(b.$$.fragment,h)},m(h,C){i(h,_,C),i(h,$,C),g(b,h,C),T=!0},p:qn,i(h){T||(c(b.$$.fragment,h),T=!0)},o(h){p(b.$$.fragment,h),T=!1},d(h){h&&(n(_),n($)),u(b,h)}}}function Ul(j){let _,I="Example:",$,b,T;return b=new W({props:{code:"ZW5naW5lJTIwJTNEJTIwSW5mZXJlbmNlQ2xpZW50TW9kZWwoJTBBJTIwJTIwJTIwJTIwbW9kZWxfaWQlM0QlMjJRd2VuJTJGUXdlbjMtTmV4dC04MEItQTNCLVRoaW5raW5nJTIyJTJDJTBBJTIwJTIwJTIwJTIwcHJvdmlkZXIlM0QlMjJoeXBlcmJvbGljJTIyJTJDJTBBJTIwJTIwJTIwJTIwdG9rZW4lM0QlMjJ5b3VyX2hmX3Rva2VuX2hlcmUlMjIlMkMlMEElMjAlMjAlMjAlMjBtYXhfdG9rZW5zJTNENTAwMCUyQyUwQSklMEFtZXNzYWdlcyUyMCUzRCUyMCU1QiU3QiUyMnJvbGUlMjIlM0ElMjAlMjJ1c2VyJTIyJTJDJTIwJTIyY29udGVudCUyMiUzQSUyMCUyMkV4cGxhaW4lMjBxdWFudHVtJTIwbWVjaGFuaWNzJTIwaW4lMjBzaW1wbGUlMjB0ZXJtcy4lMjIlN0QlNUQlMEFyZXNwb25zZSUyMCUzRCUyMGVuZ2luZShtZXNzYWdlcyUyQyUyMHN0b3Bfc2VxdWVuY2VzJTNEJTVCJTIyRU5EJTIyJTVEKSUwQXByaW50KHJlc3BvbnNlKQ==",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>engine = InferenceClientModel(
<span class="hljs-meta">... </span>    model_id=<span class="hljs-string">&quot;Qwen/Qwen3-Next-80B-A3B-Thinking&quot;</span>,
<span class="hljs-meta">... </span>    provider=<span class="hljs-string">&quot;hyperbolic&quot;</span>,
<span class="hljs-meta">... </span>    token=<span class="hljs-string">&quot;your_hf_token_here&quot;</span>,
<span class="hljs-meta">... </span>    max_tokens=<span class="hljs-number">5000</span>,
<span class="hljs-meta">... </span>)
<span class="hljs-meta">&gt;&gt;&gt; </span>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;Explain quantum mechanics in simple terms.&quot;</span>}]
<span class="hljs-meta">&gt;&gt;&gt; </span>response = engine(messages, stop_sequences=[<span class="hljs-string">&quot;END&quot;</span>])
<span class="hljs-meta">&gt;&gt;&gt; </span><span class="hljs-built_in">print</span>(response)
<span class="hljs-string">&quot;Quantum mechanics is the branch of physics that studies...&quot;</span>`,wrap:!1}}),{c(){_=l("p"),_.textContent=I,$=o(),m(b.$$.fragment)},l(h){_=r(h,"P",{"data-svelte-h":!0}),f(_)!=="svelte-11lpom8"&&(_.textContent=I),$=s(h),d(b.$$.fragment,h)},m(h,C){i(h,_,C),i(h,$,C),g(b,h,C),T=!0},p:qn,i(h){T||(c(b.$$.fragment,h),T=!0)},o(h){p(b.$$.fragment,h),T=!1},d(h){h&&(n(_),n($)),u(b,h)}}}function jl(j){let _,I,$,b,T,h,C,Vn,Y,Wn,xe,ua=`Agents और tools के बारे में अधिक जानने के लिए <a href="../index">introductory guide</a> पढ़ना सुनिश्चित करें।
यह पेज underlying क्लासेज के लिए API docs को शामिल करता है।`,Sn,we,En,Te,ha='हमारे एजेंट्स <a href="/docs/smolagents/main/hi/reference/agents#smolagents.MultiStepAgent">MultiStepAgent</a> से इनहेरिट करते हैं, जिसका अर्थ है कि वे कई चरणों में कार्य कर सकते हैं, प्रत्येक चरण में एक विचार, फिर एक टूल कॉल और एक्जीक्यूशन शामिल होता है। <a href="../conceptual_guides/react">इस कॉन्सेप्चुअल गाइड</a> में अधिक पढ़ें।',Bn,Ce,fa="हम मुख्य <code>Agent</code> क्लास पर आधारित दो प्रकार के एजेंट्स प्रदान करते हैं।",Zn,Ie,_a='<li><a href="/docs/smolagents/main/hi/reference/agents#smolagents.CodeAgent">CodeAgent</a> डिफ़ॉल्ट एजेंट है, यह अपने टूल कॉल्स को Python कोड में लिखता है।</li> <li><a href="/docs/smolagents/main/hi/reference/agents#smolagents.ToolCallingAgent">ToolCallingAgent</a> अपने टूल कॉल्स को JSON में लिखता है।</li>',Gn,ke,ba="दोनों को इनिशियलाइजेशन पर <code>model</code> और टूल्स की सूची <code>tools</code> आर्गुमेंट्स की आवश्यकता होती है।",Qn,Je,Dn,v,Ue,Yo,Bt,va=`Agent class that solves the given task step by step, using the ReAct framework:
While the objective is not reached, the agent will perform a cycle of action (given by the LLM) and observation (obtained from the environment).`,Oo,O,je,Ko,Zt,Ma="Parse action from the LLM output",es,K,Ae,ts,Gt,$a="Create agent from a dictionary representation.",ns,ee,Ne,os,Qt,ya="Loads an agent from a local folder.",ss,S,Le,as,Dt,xa="Loads an agent defined on the Hub.",ls,te,rs,ne,qe,is,Ht,wa="To be implemented in child classes",ms,oe,Pe,ds,zt,Ta="Interrupts the agent execution.",gs,se,Ve,cs,Ft,Ca="Provide the final answer to the task, based on the logs of the agent’s interactions.",ps,ae,We,us,Rt,Ia="Upload the agent to the Hub.",hs,le,Se,fs,Xt,ka="Prints a pretty replay of the agent’s steps.",_s,E,Ee,bs,Yt,Ja="Run the agent for the given task.",vs,re,Ms,B,Be,$s,Ot,Ua="Saves the relevant code files for your agent. This will copy the code of your agent in <code>output_dir</code> as well as autogenerate:",ys,Kt,ja=`<li>a <code>tools</code> folder containing the logic for each of the tools under <code>tools/{tool_name}.py</code>.</li> <li>a <code>managed_agents</code> folder containing the logic for each of the managed agents.</li> <li>an <code>agent.json</code> file containing a dictionary representing your agent.</li> <li>a <code>prompt.yaml</code> file containing the prompt templates used by your agent.</li> <li>an <code>app.py</code> file providing a UI for your agent when it is exported to a Space with <code>agent.push_to_hub()</code></li> <li>a <code>requirements.txt</code> containing the names of the modules used by your tool (as detected when inspecting its
code)</li>`,xs,ie,Ze,ws,en,Aa=`Perform one step in the ReAct framework: the agent thinks, acts, and observes the result.
Returns either None if the step is not final, or the final answer.`,Ts,me,Ge,Cs,tn,Na="Convert the agent to a dictionary representation.",Is,de,Qe,ks,nn,La="Creates a rich tree visualization of the agent’s structure.",Js,ge,De,Us,on,qa=`Reads past llm_outputs, actions, and observations or errors from the memory into a series of messages
that can be used as input to the LLM. Adds a number of keywords (such as PLAN, error, etc) to help
the LLM.`,Hn,A,He,js,sn,Pa="In this agent, the tool calls will be formulated by the LLM in code format, then parsed and executed.",As,ce,ze,Ns,an,Va="Clean up resources used by the agent, such as the remote Python executor.",Ls,pe,Fe,qs,ln,Wa="Create CodeAgent from a dictionary representation.",zn,N,Re,Ps,rn,Sa="This agent uses JSON-like tool calls, using method <code>model.get_tool_call</code> to leverage the LLM engine’s tool calling capabilities.",Vs,Z,Xe,Ws,mn,Ea="Execute a tool or managed agent with the provided arguments.",Ss,dn,Ba="The arguments are replaced with the actual values from the state if they refer to state variables.",Es,ue,Ye,Bs,gn,Za="Process tool calls from the model output and update agent memory.",Fn,Oe,Rn,D,Ke,Zs,cn,Ga="Runs an agent with the given task and streams the messages from the agent as gradio ChatMessages.",Xn,et,Yn,k,tt,Gs,pn,Qa='Gradio interface for interacting with a <a href="/docs/smolagents/main/hi/reference/agents#smolagents.MultiStepAgent">MultiStepAgent</a>.',Qs,un,Da=`This class provides a web interface to interact with the agent in real-time, allowing users to submit prompts, upload files, and receive responses in a chat-like format.
It  can reset the agent’s memory at the start of each interaction if desired.
It supports file uploads, which are saved to a specified folder.
It uses the <code>gradio.Chatbot</code> component to display the conversation history.
This class requires the <code>gradio</code> extra to be installed: <code>pip install &#39;smolagents[gradio]&#39;</code>.`,Ds,he,Hs,fe,nt,zs,hn,Ha="Launch the Gradio app with the agent interface.",Fs,G,ot,Rs,fn,za="Upload a file and add it to the list of uploaded files in the session state.",Xs,_n,Fa=`The file is saved to the <code>self.file_upload_folder</code> folder.
If the file type is not allowed, it returns a message indicating the disallowed file type.`,On,st,Kn,at,Ra="आप स्वतंत्र रूप से अपने स्वयं के मॉडल बना सकते हैं और उनका उपयोग कर सकते हैं।",eo,lt,Xa="आप अपने एजेंट के लिए कोई भी <code>model</code> कॉल करने योग्य उपयोग कर सकते हैं, जब तक कि:",to,rt,Ya='<li>यह अपने इनपुट <code>messages</code> के लिए <a href="./chat_templating">messages format</a> (<code>List[Dict[str, str]]</code>) का पालन करता है, और यह एक <code>str</code> लौटाता है।</li> <li>यह आर्गुमेंट <code>stop_sequences</code> में पास किए गए सीक्वेंस से <em>पहले</em> आउटपुट जनरेट करना बंद कर देता है।</li>',no,it,Oa='अपने LLM को परिभाषित करने के लिए, आप एक <code>custom_model</code> मेथड बना सकते हैं जो <a href="./chat_templating">messages</a> की एक सूची स्वीकार करता है और टेक्स्ट युक्त .content विशेषता वाला एक ऑब्जेक्ट लौटाता है। इस कॉलेबल को एक <code>stop_sequences</code> आर्गुमेंट भी स्वीकार करने की आवश्यकता होती है जो बताता है कि कब जनरेट करना और बंद करना है।',oo,mt,so,dt,Ka='इसके अतिरिक्त, <code>custom_model</code> एक <code>grammar</code> आर्गुमेंट भी ले सकता है। जिस स्थिति में आप एजेंट इनिशियलाइजेशन पर एक <code>grammar</code> निर्दिष्ट करते हैं, यह आर्गुमेंट मॉडल के कॉल्स को आपके द्वारा इनिशियलाइजेशन पर परिभाषित <code>grammar</code> के साथ पास किया जाएगा, ताकि <a href="https://huggingface.co/docs/text-generation-inference/conceptual/guidance" rel="nofollow">constrained generation</a> की अनुमति मिल सके जिससे उचित-फॉर्मेटेड एजेंट आउटपुट को फोर्स किया जा सके।',ao,gt,lo,ct,el="सुविधा के लिए, हमने एक <code>TransformersModel</code> जोड़ा है जो इनिशियलाइजेशन पर दिए गए model_id के लिए एक लोकल <code>transformers</code> पाइपलाइन बनाकर ऊपर के बिंदुओं को लागू करता है।",ro,pt,io,ut,mo,U,ht,Ys,bn,tl="A class that uses Hugging Face’s Transformers library for language model interaction.",Os,vn,nl="This model allows you to load and use Hugging Face’s models locally using the Transformers library. It supports features like stop sequences and grammar customization.",Ks,ft,ol="<p>You must have <code>transformers</code> and <code>torch</code> installed on your machine. Please run <code>pip install &#39;smolagents[transformers]&#39;</code> if it’s not the case.</p>",ea,_e,go,_t,co,bt,sl='<code>InferenceClientModel</code> LLM के एक्जीक्यूशन के लिए <a href="https://huggingface.co/docs/api-inference/index" rel="nofollow">HF Inference API</a> क्लाइंट को रैप करता है।',po,vt,uo,Mt,ho,J,$t,ta,Mn,al="A class to interact with Hugging Face’s Inference Providers for language model interaction.",na,$n,ll="This model allows you to communicate with Hugging Face’s models using Inference Providers. It can be used in both serverless mode, with a dedicated endpoint, or even with a local URL, supporting features like stop sequences and grammar customization.",oa,yn,rl="Providers include Cerebras, Cohere, Fal, Fireworks, HF-Inference, Hyperbolic, Nebius, Novita, Replicate, SambaNova, Together, and more.",sa,be,aa,ve,yt,la,xn,il="Create the Hugging Face client.",fo,xt,_o,wt,ml=`<code>LiteLLMModel</code> विभिन्न प्रदाताओं से 100+ LLMs को सपोर्ट करने के लिए <a href="https://www.litellm.ai/" rel="nofollow">LiteLLM</a> का लाभ उठाता है।
आप मॉडल इनिशियलाइजेशन पर kwargs पास कर सकते हैं जो तब मॉडल का उपयोग करते समय प्रयोग किए जाएंगे, उदाहरण के लिए नीचे हम <code>temperature</code> पास करते हैं।`,bo,Tt,vo,P,Ct,ra,wn,dl='Model to use <a href="https://docs.litellm.ai/docs/#litellm-python-sdk" rel="nofollow">LiteLLM Python SDK</a> to access hundreds of LLMs.',ia,Me,It,ma,Tn,gl="Create the LiteLLM client.",Mo,kt,$o,Jt,cl=`यह क्लास आपको किसी भी OpenAIServer कम्पैटिबल मॉडल को कॉल करने देती है।
यहाँ बताया गया है कि आप इसे कैसे सेट कर सकते हैं (आप दूसरे सर्वर को पॉइंट करने के लिए <code>api_base</code> url को कस्टमाइज़ कर सकते हैं):`,yo,Ut,xo,jt,wo,H,At,da,Cn,pl="Prompt templates for the agent.",To,z,Nt,ga,In,ul="Prompt templates for the planning step.",Co,F,Lt,ca,kn,hl="Prompt templates for the managed agent.",Io,R,qt,pa,Jn,fl="Prompt templates for the final answer.",ko,Pt,Jo,Pn,Uo;return T=new xl({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),C=new V({props:{title:"Agents",local:"agents",headingTag:"h1"}}),Y=new _l({props:{warning:!0,$$slots:{default:[Tl]},$$scope:{ctx:j}}}),we=new V({props:{title:"Agents",local:"agents",headingTag:"h2"}}),Je=new V({props:{title:"Agents की क्लासेज",local:"smolagents.MultiStepAgent",headingTag:"h3"}}),Ue=new w({props:{name:"class smolagents.MultiStepAgent",anchor:"smolagents.MultiStepAgent",parameters:[{name:"tools",val:": list"},{name:"model",val:": Model"},{name:"prompt_templates",val:": smolagents.agents.PromptTemplates | None = None"},{name:"instructions",val:": str | None = None"},{name:"max_steps",val:": int = 20"},{name:"add_base_tools",val:": bool = False"},{name:"verbosity_level",val:": LogLevel = <LogLevel.INFO: 1>"},{name:"managed_agents",val:": list | None = None"},{name:"step_callbacks",val:": list[collections.abc.Callable] | dict[typing.Type[smolagents.memory.MemoryStep], collections.abc.Callable | list[collections.abc.Callable]] | None = None"},{name:"planning_interval",val:": int | None = None"},{name:"name",val:": str | None = None"},{name:"description",val:": str | None = None"},{name:"provide_run_summary",val:": bool = False"},{name:"final_answer_checks",val:": list[collections.abc.Callable] | None = None"},{name:"return_full_result",val:": bool = False"},{name:"logger",val:": smolagents.monitoring.AgentLogger | None = None"}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.tools",description:'<strong>tools</strong> (<code>list[Tool]</code>) &#x2014; <a href="/docs/smolagents/main/hi/reference/tools#smolagents.Tool">Tool</a>s that the agent can use.',name:"tools"},{anchor:"smolagents.MultiStepAgent.model",description:"<strong>model</strong> (<code>Callable[[list[dict[str, str]]], ChatMessage]</code>) &#x2014; Model that will generate the agent&#x2019;s actions.",name:"model"},{anchor:"smolagents.MultiStepAgent.prompt_templates",description:'<strong>prompt_templates</strong> (<a href="/docs/smolagents/main/hi/reference/agents#smolagents.PromptTemplates">PromptTemplates</a>, <em>optional</em>) &#x2014; Prompt templates.',name:"prompt_templates"},{anchor:"smolagents.MultiStepAgent.instructions",description:"<strong>instructions</strong> (<code>str</code>, <em>optional</em>) &#x2014; Custom instructions for the agent, will be inserted in the system prompt.",name:"instructions"},{anchor:"smolagents.MultiStepAgent.max_steps",description:"<strong>max_steps</strong> (<code>int</code>, default <code>20</code>) &#x2014; Maximum number of steps the agent can take to solve the task.",name:"max_steps"},{anchor:"smolagents.MultiStepAgent.add_base_tools",description:"<strong>add_base_tools</strong> (<code>bool</code>, default <code>False</code>) &#x2014; Whether to add the base tools to the agent&#x2019;s tools.",name:"add_base_tools"},{anchor:"smolagents.MultiStepAgent.verbosity_level",description:"<strong>verbosity_level</strong> (<code>LogLevel</code>, default <code>LogLevel.INFO</code>) &#x2014; Level of verbosity of the agent&#x2019;s logs.",name:"verbosity_level"},{anchor:"smolagents.MultiStepAgent.managed_agents",description:"<strong>managed_agents</strong> (<code>list</code>, <em>optional</em>) &#x2014; Managed agents that the agent can call.",name:"managed_agents"},{anchor:"smolagents.MultiStepAgent.step_callbacks",description:"<strong>step_callbacks</strong> (<code>list[Callable]</code> | <code>dict[Type[MemoryStep], Callable | list[Callable]]</code>, <em>optional</em>) &#x2014; Callbacks that will be called at each step.",name:"step_callbacks"},{anchor:"smolagents.MultiStepAgent.planning_interval",description:"<strong>planning_interval</strong> (<code>int</code>, <em>optional</em>) &#x2014; Interval at which the agent will run a planning step.",name:"planning_interval"},{anchor:"smolagents.MultiStepAgent.name",description:"<strong>name</strong> (<code>str</code>, <em>optional</em>) &#x2014; Necessary for a managed agent only - the name by which this agent can be called.",name:"name"},{anchor:"smolagents.MultiStepAgent.description",description:"<strong>description</strong> (<code>str</code>, <em>optional</em>) &#x2014; Necessary for a managed agent only - the description of this agent.",name:"description"},{anchor:"smolagents.MultiStepAgent.provide_run_summary",description:"<strong>provide_run_summary</strong> (<code>bool</code>, <em>optional</em>) &#x2014; Whether to provide a run summary when called as a managed agent.",name:"provide_run_summary"},{anchor:"smolagents.MultiStepAgent.final_answer_checks",description:`<strong>final_answer_checks</strong> (<code>list[Callable]</code>, <em>optional</em>) &#x2014; List of validation functions to run before accepting a final answer.
Each function should:
<ul>
<li>Take the final answer, the agent&#x2019;s memory, and the agent itself as arguments.</li>
<li>Return a boolean indicating whether the final answer is valid.</li>
</ul>`,name:"final_answer_checks"},{anchor:"smolagents.MultiStepAgent.return_full_result",description:"<strong>return_full_result</strong> (<code>bool</code>, default <code>False</code>) &#x2014; Whether to return the full <code>RunResult</code> object or just the final answer output from the agent run.",name:"return_full_result"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L266"}}),je=new w({props:{name:"extract_action",anchor:"smolagents.MultiStepAgent.extract_action",parameters:[{name:"model_output",val:": str"},{name:"split_token",val:": str"}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.extract_action.model_output",description:"<strong>model_output</strong> (<code>str</code>) &#x2014; Output of the LLM",name:"model_output"},{anchor:"smolagents.MultiStepAgent.extract_action.split_token",description:"<strong>split_token</strong> (<code>str</code>) &#x2014; Separator for the action. Should match the example in the system prompt.",name:"split_token"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L783"}}),Ae=new w({props:{name:"from_dict",anchor:"smolagents.MultiStepAgent.from_dict",parameters:[{name:"agent_dict",val:": dict"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.from_dict.agent_dict",description:"<strong>agent_dict</strong> (<code>dict[str, Any]</code>) &#x2014; Dictionary representation of the agent.",name:"agent_dict"},{anchor:"smolagents.MultiStepAgent.from_dict.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments that will override agent_dict values.",name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L1004",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Instance of the agent class.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>MultiStepAgent</code></p>
`}}),Ne=new w({props:{name:"from_folder",anchor:"smolagents.MultiStepAgent.from_folder",parameters:[{name:"folder",val:": str | pathlib.Path"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.from_folder.folder",description:"<strong>folder</strong> (<code>str</code> or <code>Path</code>) &#x2014; The folder where the agent is saved.",name:"folder"},{anchor:"smolagents.MultiStepAgent.from_folder.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments that will be passed to the agent&#x2019;s init.",name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L1102"}}),Le=new w({props:{name:"from_hub",anchor:"smolagents.MultiStepAgent.from_hub",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": str | None = None"},{name:"trust_remote_code",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.from_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repo on the Hub where your tool is defined.`,name:"repo_id"},{anchor:"smolagents.MultiStepAgent.from_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to identify you on hf.co. If unset, will use the token generated when running
<code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"smolagents.MultiStepAgent.from_hub.trust_remote_code(bool,",description:`<strong>trust_remote_code(<code>bool</code>,</strong> <em>optional</em>, defaults to False) &#x2014;
This flags marks that you understand the risk of running remote code and that you trust this tool.
If not setting this to True, loading the tool from Hub will fail.`,name:"trust_remote_code(bool,"},{anchor:"smolagents.MultiStepAgent.from_hub.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Additional keyword arguments that will be split in two: all arguments relevant to the Hub (such as
<code>cache_dir</code>, <code>revision</code>, <code>subfolder</code>) will be used when downloading the files for your agent, and the
others will be passed along to its init.`,name:"kwargs"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L1048"}}),te=new _l({props:{warning:!0,$$slots:{default:[Cl]},$$scope:{ctx:j}}}),qe=new w({props:{name:"initialize_system_prompt",anchor:"smolagents.MultiStepAgent.initialize_system_prompt",parameters:[],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L743"}}),Pe=new w({props:{name:"interrupt",anchor:"smolagents.MultiStepAgent.interrupt",parameters:[],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L748"}}),Ve=new w({props:{name:"provide_final_answer",anchor:"smolagents.MultiStepAgent.provide_final_answer",parameters:[{name:"task",val:": str"}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.provide_final_answer.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; Task to perform.",name:"task"},{anchor:"smolagents.MultiStepAgent.provide_final_answer.images",description:"<strong>images</strong> (<code>list[PIL.Image.Image]</code>, <em>optional</em>) &#x2014; Image(s) objects.",name:"images"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L804",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Final answer to the task.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code></p>
`}}),We=new w({props:{name:"push_to_hub",anchor:"smolagents.MultiStepAgent.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"commit_message",val:": str = 'Upload agent'"},{name:"private",val:": bool | None = None"},{name:"token",val:": bool | str | None = None"},{name:"create_pr",val:": bool = False"}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push to. It should contain your organization name when
pushing to a given organization.`,name:"repo_id"},{anchor:"smolagents.MultiStepAgent.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;Upload agent&quot;</code>) &#x2014;
Message to commit while pushing.`,name:"commit_message"},{anchor:"smolagents.MultiStepAgent.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Whether to make the repo private. If <code>None</code>, the repo will be public unless the organization&#x2019;s default is private. This value is ignored if the repo already exists.`,name:"private"},{anchor:"smolagents.MultiStepAgent.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If unset, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"smolagents.MultiStepAgent.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to create a PR with the uploaded files or directly commit.`,name:"create_pr"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L1134"}}),Se=new w({props:{name:"replay",anchor:"smolagents.MultiStepAgent.replay",parameters:[{name:"detailed",val:": bool = False"}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.replay.detailed",description:`<strong>detailed</strong> (bool, optional) &#x2014; If True, also displays the memory at each step. Defaults to False.
Careful: will increase log length exponentially. Use only for debugging.`,name:"detailed"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L853"}}),Ee=new w({props:{name:"run",anchor:"smolagents.MultiStepAgent.run",parameters:[{name:"task",val:": str"},{name:"stream",val:": bool = False"},{name:"reset",val:": bool = True"},{name:"images",val:": list['PIL.Image.Image'] | None = None"},{name:"additional_args",val:": dict | None = None"},{name:"max_steps",val:": int | None = None"},{name:"return_full_result",val:": bool | None = None"}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.run.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; Task to perform.",name:"task"},{anchor:"smolagents.MultiStepAgent.run.stream",description:`<strong>stream</strong> (<code>bool</code>) &#x2014; Whether to run in streaming mode.
If <code>True</code>, returns a generator that yields each step as it is executed. You must iterate over this generator to process the individual steps (e.g., using a for loop or <code>next()</code>).
If <code>False</code>, executes all steps internally and returns only the final answer after completion.`,name:"stream"},{anchor:"smolagents.MultiStepAgent.run.reset",description:"<strong>reset</strong> (<code>bool</code>) &#x2014; Whether to reset the conversation or keep it going from previous run.",name:"reset"},{anchor:"smolagents.MultiStepAgent.run.images",description:"<strong>images</strong> (<code>list[PIL.Image.Image]</code>, <em>optional</em>) &#x2014; Image(s) objects.",name:"images"},{anchor:"smolagents.MultiStepAgent.run.additional_args",description:"<strong>additional_args</strong> (<code>dict</code>, <em>optional</em>) &#x2014; Any other variables that you want to pass to the agent run, for instance images or dataframes. Give them clear names!",name:"additional_args"},{anchor:"smolagents.MultiStepAgent.run.max_steps",description:"<strong>max_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014; Maximum number of steps the agent can take to solve the task. if not provided, will use the agent&#x2019;s default value.",name:"max_steps"},{anchor:"smolagents.MultiStepAgent.run.return_full_result",description:`<strong>return_full_result</strong> (<code>bool</code>, <em>optional</em>) &#x2014; Whether to return the full <code>RunResult</code> object or just the final answer output.
If <code>None</code> (default), the agent&#x2019;s <code>self.return_full_result</code> setting is used.`,name:"return_full_result"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L433"}}),re=new Xo({props:{anchor:"smolagents.MultiStepAgent.run.example",$$slots:{default:[Il]},$$scope:{ctx:j}}}),Be=new w({props:{name:"save",anchor:"smolagents.MultiStepAgent.save",parameters:[{name:"output_dir",val:": str | pathlib.Path"},{name:"relative_path",val:": str | None = None"}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.save.output_dir",description:"<strong>output_dir</strong> (<code>str</code> or <code>Path</code>) &#x2014; The folder in which you want to save your agent.",name:"output_dir"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L886"}}),Ze=new w({props:{name:"step",anchor:"smolagents.MultiStepAgent.step",parameters:[{name:"memory_step",val:": ActionStep"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L776"}}),Ge=new w({props:{name:"to_dict",anchor:"smolagents.MultiStepAgent.to_dict",parameters:[],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L964",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Dictionary representation of the agent.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),Qe=new w({props:{name:"visualize",anchor:"smolagents.MultiStepAgent.visualize",parameters:[],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L849"}}),De=new w({props:{name:"write_memory_to_messages",anchor:"smolagents.MultiStepAgent.write_memory_to_messages",parameters:[{name:"summary_mode",val:": bool = False"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L752"}}),He=new w({props:{name:"class smolagents.CodeAgent",anchor:"smolagents.CodeAgent",parameters:[{name:"tools",val:": list"},{name:"model",val:": Model"},{name:"prompt_templates",val:": smolagents.agents.PromptTemplates | None = None"},{name:"additional_authorized_imports",val:": list[str] | None = None"},{name:"planning_interval",val:": int | None = None"},{name:"executor",val:": PythonExecutor = None"},{name:"executor_type",val:": typing.Literal['local', 'e2b', 'modal', 'docker', 'wasm'] = 'local'"},{name:"executor_kwargs",val:": dict[str, typing.Any] | None = None"},{name:"max_print_outputs_length",val:": int | None = None"},{name:"stream_outputs",val:": bool = False"},{name:"use_structured_outputs_internally",val:": bool = False"},{name:"code_block_tags",val:": str | tuple[str, str] | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.CodeAgent.tools",description:'<strong>tools</strong> (<code>list[Tool]</code>) &#x2014; <a href="/docs/smolagents/main/hi/reference/tools#smolagents.Tool">Tool</a>s that the agent can use.',name:"tools"},{anchor:"smolagents.CodeAgent.model",description:"<strong>model</strong> (<code>Model</code>) &#x2014; Model that will generate the agent&#x2019;s actions.",name:"model"},{anchor:"smolagents.CodeAgent.prompt_templates",description:'<strong>prompt_templates</strong> (<a href="/docs/smolagents/main/hi/reference/agents#smolagents.PromptTemplates">PromptTemplates</a>, <em>optional</em>) &#x2014; Prompt templates.',name:"prompt_templates"},{anchor:"smolagents.CodeAgent.additional_authorized_imports",description:"<strong>additional_authorized_imports</strong> (<code>list[str]</code>, <em>optional</em>) &#x2014; Additional authorized imports for the agent.",name:"additional_authorized_imports"},{anchor:"smolagents.CodeAgent.planning_interval",description:"<strong>planning_interval</strong> (<code>int</code>, <em>optional</em>) &#x2014; Interval at which the agent will run a planning step.",name:"planning_interval"},{anchor:"smolagents.CodeAgent.executor",description:"<strong>executor</strong> (<code>PythonExecutor</code>, <em>optional</em>) &#x2014; Custom Python code executor. If not provided, a default executor will be created based on <code>executor_type</code>.",name:"executor"},{anchor:"smolagents.CodeAgent.executor_type",description:"<strong>executor_type</strong> (<code>Literal[&quot;local&quot;, &quot;e2b&quot;, &quot;modal&quot;, &quot;docker&quot;, &quot;wasm&quot;]</code>, default <code>&quot;local&quot;</code>) &#x2014; Type of code executor.",name:"executor_type"},{anchor:"smolagents.CodeAgent.executor_kwargs",description:"<strong>executor_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014; Additional arguments to pass to initialize the executor.",name:"executor_kwargs"},{anchor:"smolagents.CodeAgent.max_print_outputs_length",description:"<strong>max_print_outputs_length</strong> (<code>int</code>, <em>optional</em>) &#x2014; Maximum length of the print outputs.",name:"max_print_outputs_length"},{anchor:"smolagents.CodeAgent.stream_outputs",description:"<strong>stream_outputs</strong> (<code>bool</code>, <em>optional</em>, default <code>False</code>) &#x2014; Whether to stream outputs during execution.",name:"stream_outputs"},{anchor:"smolagents.CodeAgent.use_structured_outputs_internally",description:`<strong>use_structured_outputs_internally</strong> (<code>bool</code>, default <code>False</code>) &#x2014; Whether to use structured generation at each action step: improves performance for many models.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 1.17.0</p>
						
					</div>`,name:"use_structured_outputs_internally"},{anchor:"smolagents.CodeAgent.code_block_tags",description:"<strong>code_block_tags</strong> (<code>tuple[str, str]</code> | <code>Literal[&quot;markdown&quot;]</code>, <em>optional</em>) &#x2014; Opening and closing tags for code blocks (regex strings). Pass a custom tuple, or pass &#x2018;markdown&#x2019; to use (&#x201D;<code>(?:python|py)&quot;, &quot;\\n</code>&#x201D;), leave empty to use (&#x201D;<code>&#x201D;, &#x201D;</code>&#x201D;).",name:"code_block_tags"},{anchor:"smolagents.CodeAgent.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L1478"}}),ze=new w({props:{name:"cleanup",anchor:"smolagents.CodeAgent.cleanup",parameters:[],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L1566"}}),Fe=new w({props:{name:"from_dict",anchor:"smolagents.CodeAgent.from_dict",parameters:[{name:"agent_dict",val:": dict"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.CodeAgent.from_dict.agent_dict",description:"<strong>agent_dict</strong> (<code>dict[str, Any]</code>) &#x2014; Dictionary representation of the agent.",name:"agent_dict"},{anchor:"smolagents.CodeAgent.from_dict.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments that will override agent_dict values.",name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L1752",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Instance of the CodeAgent class.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>CodeAgent</code></p>
`}}),Re=new w({props:{name:"class smolagents.ToolCallingAgent",anchor:"smolagents.ToolCallingAgent",parameters:[{name:"tools",val:": list"},{name:"model",val:": Model"},{name:"prompt_templates",val:": smolagents.agents.PromptTemplates | None = None"},{name:"planning_interval",val:": int | None = None"},{name:"stream_outputs",val:": bool = False"},{name:"max_tool_threads",val:": int | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.ToolCallingAgent.tools",description:'<strong>tools</strong> (<code>list[Tool]</code>) &#x2014; <a href="/docs/smolagents/main/hi/reference/tools#smolagents.Tool">Tool</a>s that the agent can use.',name:"tools"},{anchor:"smolagents.ToolCallingAgent.model",description:"<strong>model</strong> (<code>Model</code>) &#x2014; Model that will generate the agent&#x2019;s actions.",name:"model"},{anchor:"smolagents.ToolCallingAgent.prompt_templates",description:'<strong>prompt_templates</strong> (<a href="/docs/smolagents/main/hi/reference/agents#smolagents.PromptTemplates">PromptTemplates</a>, <em>optional</em>) &#x2014; Prompt templates.',name:"prompt_templates"},{anchor:"smolagents.ToolCallingAgent.planning_interval",description:"<strong>planning_interval</strong> (<code>int</code>, <em>optional</em>) &#x2014; Interval at which the agent will run a planning step.",name:"planning_interval"},{anchor:"smolagents.ToolCallingAgent.stream_outputs",description:"<strong>stream_outputs</strong> (<code>bool</code>, <em>optional</em>, default <code>False</code>) &#x2014; Whether to stream outputs during execution.",name:"stream_outputs"},{anchor:"smolagents.ToolCallingAgent.max_tool_threads",description:`<strong>max_tool_threads</strong> (<code>int</code>, <em>optional</em>) &#x2014; Maximum number of threads for parallel tool calls.
Higher values increase concurrency but resource usage as well.
Defaults to <code>ThreadPoolExecutor</code>&#x2019;s default.`,name:"max_tool_threads"},{anchor:"smolagents.ToolCallingAgent.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L1189"}}),Xe=new w({props:{name:"execute_tool_call",anchor:"smolagents.ToolCallingAgent.execute_tool_call",parameters:[{name:"tool_name",val:": str"},{name:"arguments",val:": dict[str, str] | str"}],parametersDescription:[{anchor:"smolagents.ToolCallingAgent.execute_tool_call.tool_name",description:"<strong>tool_name</strong> (<code>str</code>) &#x2014; Name of the tool or managed agent to execute.",name:"tool_name"},{anchor:"smolagents.ToolCallingAgent.execute_tool_call.arguments",description:"<strong>arguments</strong> (dict[str, str] | str) &#x2014; Arguments passed to the tool call.",name:"arguments"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L1426"}}),Ye=new w({props:{name:"process_tool_calls",anchor:"smolagents.ToolCallingAgent.process_tool_calls",parameters:[{name:"chat_message",val:": ChatMessage"},{name:"memory_step",val:": ActionStep"}],parametersDescription:[{anchor:"smolagents.ToolCallingAgent.process_tool_calls.chat_message",description:"<strong>chat_message</strong> (<code>ChatMessage</code>) &#x2014; Chat message containing tool calls from the model.",name:"chat_message"},{anchor:"smolagents.ToolCallingAgent.process_tool_calls.memory_step",description:"<strong>memory_step</strong> (<code>ActionStep)</code> &#x2014; Memory ActionStep to update with results.",name:"memory_step"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L1335",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ToolCall | ToolOutput</code></p>
`,isYield:!0}}),Oe=new V({props:{title:"stream_to_gradio",local:"smolagents.stream_to_gradio",headingTag:"h3"}}),Ke=new w({props:{name:"smolagents.stream_to_gradio",anchor:"smolagents.stream_to_gradio",parameters:[{name:"agent",val:""},{name:"task",val:": str"},{name:"task_images",val:": list | None = None"},{name:"reset_agent_memory",val:": bool = False"},{name:"additional_args",val:": dict | None = None"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/gradio_ui.py#L248"}}),et=new V({props:{title:"GradioUI",local:"smolagents.GradioUI",headingTag:"h3"}}),tt=new w({props:{name:"class smolagents.GradioUI",anchor:"smolagents.GradioUI",parameters:[{name:"agent",val:": MultiStepAgent"},{name:"file_upload_folder",val:": str | None = None"},{name:"reset_agent_memory",val:": bool = False"}],parametersDescription:[{anchor:"smolagents.GradioUI.agent",description:'<strong>agent</strong> (<a href="/docs/smolagents/main/hi/reference/agents#smolagents.MultiStepAgent">MultiStepAgent</a>) &#x2014; The agent to interact with.',name:"agent"},{anchor:"smolagents.GradioUI.file_upload_folder",description:`<strong>file_upload_folder</strong> (<code>str</code>, <em>optional</em>) &#x2014; The folder where uploaded files will be saved.
If not provided, file uploads are disabled.`,name:"file_upload_folder"},{anchor:"smolagents.GradioUI.reset_agent_memory",description:`<strong>reset_agent_memory</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014; Whether to reset the agent&#x2019;s memory at the start of each interaction.
If <code>True</code>, the agent will not remember previous interactions.`,name:"reset_agent_memory"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/gradio_ui.py#L279",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>ModuleNotFoundError</code> — If the <code>gradio</code> extra is not installed.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ModuleNotFoundError</code></p>
`}}),he=new Xo({props:{anchor:"smolagents.GradioUI.example",$$slots:{default:[kl]},$$scope:{ctx:j}}}),nt=new w({props:{name:"launch",anchor:"smolagents.GradioUI.launch",parameters:[{name:"share",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.GradioUI.launch.share",description:"<strong>share</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to share the app publicly.",name:"share"},{anchor:"smolagents.GradioUI.launch.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments to pass to the Gradio launch method.",name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/gradio_ui.py#L406"}}),ot=new w({props:{name:"upload_file",anchor:"smolagents.GradioUI.upload_file",parameters:[{name:"file",val:""},{name:"file_uploads_log",val:""},{name:"allowed_file_types",val:" = None"}],parametersDescription:[{anchor:"smolagents.GradioUI.upload_file.file",description:"<strong>file</strong> (<code>gradio.File</code>) &#x2014; The uploaded file.",name:"file"},{anchor:"smolagents.GradioUI.upload_file.file_uploads_log",description:"<strong>file_uploads_log</strong> (<code>list</code>) &#x2014; A list to log uploaded files.",name:"file_uploads_log"},{anchor:"smolagents.GradioUI.upload_file.allowed_file_types",description:"<strong>allowed_file_types</strong> (<code>list</code>, <em>optional</em>) &#x2014; List of allowed file extensions. Defaults to [&#x201C;.pdf&#x201D;, &#x201C;.docx&#x201D;, &#x201C;.txt&#x201D;].",name:"allowed_file_types"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/gradio_ui.py#L356"}}),st=new V({props:{title:"मॉडल्स",local:"मडलस",headingTag:"h2"}}),mt=new W({props:{code:"ZnJvbSUyMGh1Z2dpbmdmYWNlX2h1YiUyMGltcG9ydCUyMGxvZ2luJTJDJTIwSW5mZXJlbmNlQ2xpZW50JTBBJTBBbG9naW4oJTIyJTNDWU9VUl9IVUdHSU5HRkFDRUhVQl9BUElfVE9LRU4lM0UlMjIpJTBBJTBBbW9kZWxfaWQlMjAlM0QlMjAlMjJtZXRhLWxsYW1hJTJGTGxhbWEtMy4zLTcwQi1JbnN0cnVjdCUyMiUwQSUwQWNsaWVudCUyMCUzRCUyMEluZmVyZW5jZUNsaWVudChtb2RlbCUzRG1vZGVsX2lkKSUwQSUwQWRlZiUyMGN1c3RvbV9tb2RlbChtZXNzYWdlcyUyQyUyMHN0b3Bfc2VxdWVuY2VzJTNEJTVCJTIyVGFzayUyMiU1RCklM0ElMEElMjAlMjAlMjAlMjByZXNwb25zZSUyMCUzRCUyMGNsaWVudC5jaGF0X2NvbXBsZXRpb24obWVzc2FnZXMlMkMlMjBzdG9wJTNEc3RvcF9zZXF1ZW5jZXMlMkMlMjBtYXhfdG9rZW5zJTNEMTAwMCklMEElMjAlMjAlMjAlMjBhbnN3ZXIlMjAlM0QlMjByZXNwb25zZS5jaG9pY2VzJTVCMCU1RC5tZXNzYWdlJTBBJTIwJTIwJTIwJTIwcmV0dXJuJTIwYW5zd2Vy",highlighted:`<span class="hljs-keyword">from</span> huggingface_hub <span class="hljs-keyword">import</span> login, InferenceClient

login(<span class="hljs-string">&quot;&lt;YOUR_HUGGINGFACEHUB_API_TOKEN&gt;&quot;</span>)

model_id = <span class="hljs-string">&quot;meta-llama/Llama-3.3-70B-Instruct&quot;</span>

client = InferenceClient(model=model_id)

<span class="hljs-keyword">def</span> <span class="hljs-title function_">custom_model</span>(<span class="hljs-params">messages, stop_sequences=[<span class="hljs-string">&quot;Task&quot;</span>]</span>):
    response = client.chat_completion(messages, stop=stop_sequences, max_tokens=<span class="hljs-number">1000</span>)
    answer = response.choices[<span class="hljs-number">0</span>].message
    <span class="hljs-keyword">return</span> answer`,wrap:!1}}),gt=new V({props:{title:"TransformersModel",local:"smolagents.TransformersModel",headingTag:"h3"}}),pt=new W({props:{code:"ZnJvbSUyMHNtb2xhZ2VudHMlMjBpbXBvcnQlMjBUcmFuc2Zvcm1lcnNNb2RlbCUwQSUwQW1vZGVsJTIwJTNEJTIwVHJhbnNmb3JtZXJzTW9kZWwobW9kZWxfaWQlM0QlMjJIdWdnaW5nRmFjZVRCJTJGU21vbExNLTEzNU0tSW5zdHJ1Y3QlMjIpJTBBJTBBcHJpbnQobW9kZWwoJTVCJTdCJTIycm9sZSUyMiUzQSUyMCUyMnVzZXIlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIyT2shJTIyJTdEJTVEJTJDJTIwc3RvcF9zZXF1ZW5jZXMlM0QlNUIlMjJncmVhdCUyMiU1RCkp",highlighted:`<span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> TransformersModel

model = TransformersModel(model_id=<span class="hljs-string">&quot;HuggingFaceTB/SmolLM-135M-Instruct&quot;</span>)

<span class="hljs-built_in">print</span>(model([{<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;Ok!&quot;</span>}], stop_sequences=[<span class="hljs-string">&quot;great&quot;</span>]))`,wrap:!1}}),ut=new W({props:{code:"V2hhdCUyMGE=",highlighted:"&gt;&gt;&gt; What a",wrap:!1}}),ht=new w({props:{name:"class smolagents.TransformersModel",anchor:"smolagents.TransformersModel",parameters:[{name:"model_id",val:": str | None = None"},{name:"device_map",val:": str | None = None"},{name:"torch_dtype",val:": str | None = None"},{name:"trust_remote_code",val:": bool = False"},{name:"model_kwargs",val:": dict[str, typing.Any] | None = None"},{name:"max_new_tokens",val:": int = 4096"},{name:"max_tokens",val:": int | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.TransformersModel.model_id",description:`<strong>model_id</strong> (<code>str</code>) &#x2014;
The Hugging Face model ID to be used for inference. This can be a path or model identifier from the Hugging Face model hub.
For example, <code>&quot;Qwen/Qwen3-Next-80B-A3B-Thinking&quot;</code>.`,name:"model_id"},{anchor:"smolagents.TransformersModel.device_map",description:`<strong>device_map</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The device_map to initialize your model with.`,name:"device_map"},{anchor:"smolagents.TransformersModel.torch_dtype",description:`<strong>torch_dtype</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The torch_dtype to initialize your model with.`,name:"torch_dtype"},{anchor:"smolagents.TransformersModel.trust_remote_code",description:`<strong>trust_remote_code</strong> (bool, default <code>False</code>) &#x2014;
Some models on the Hub require running remote code: for this model, you would have to set this flag to True.`,name:"trust_remote_code"},{anchor:"smolagents.TransformersModel.model_kwargs",description:`<strong>model_kwargs</strong> (<code>dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments to pass to <code>AutoModel.from_pretrained</code> (like revision, model_args, config, etc.).`,name:"model_kwargs"},{anchor:"smolagents.TransformersModel.max_new_tokens",description:`<strong>max_new_tokens</strong> (<code>int</code>, default <code>4096</code>) &#x2014;
Maximum number of new tokens to generate, ignoring the number of tokens in the prompt.`,name:"max_new_tokens"},{anchor:"smolagents.TransformersModel.max_tokens",description:`<strong>max_tokens</strong> (<code>int</code>, <em>optional</em>) &#x2014;
Alias for <code>max_new_tokens</code>. If provided, this value takes precedence.`,name:"max_tokens"},{anchor:"smolagents.TransformersModel.*kwargs",description:`*<strong>*kwargs</strong> &#x2014;
Additional keyword arguments to forward to the underlying Transformers model generate call, such as <code>device</code>.`,name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/models.py#L793",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>ValueError</code> —
If the model name is not provided.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValueError</code></p>
`}}),_e=new Xo({props:{anchor:"smolagents.TransformersModel.example",$$slots:{default:[Jl]},$$scope:{ctx:j}}}),_t=new V({props:{title:"InferenceClientModel",local:"smolagents.InferenceClientModel",headingTag:"h3"}}),vt=new W({props:{code:"ZnJvbSUyMHNtb2xhZ2VudHMlMjBpbXBvcnQlMjBJbmZlcmVuY2VDbGllbnRNb2RlbCUwQSUwQW1lc3NhZ2VzJTIwJTNEJTIwJTVCJTBBJTIwJTIwJTdCJTIycm9sZSUyMiUzQSUyMCUyMnVzZXIlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIySGVsbG8lMkMlMjBob3clMjBhcmUlMjB5b3UlM0YlMjIlN0QlMkMlMEElMjAlMjAlN0IlMjJyb2xlJTIyJTNBJTIwJTIyYXNzaXN0YW50JTIyJTJDJTIwJTIyY29udGVudCUyMiUzQSUyMCUyMkknbSUyMGRvaW5nJTIwZ3JlYXQuJTIwSG93JTIwY2FuJTIwSSUyMGhlbHAlMjB5b3UlMjB0b2RheSUzRiUyMiU3RCUyQyUwQSUyMCUyMCU3QiUyMnJvbGUlMjIlM0ElMjAlMjJ1c2VyJTIyJTJDJTIwJTIyY29udGVudCUyMiUzQSUyMCUyMk5vJTIwbmVlZCUyMHRvJTIwaGVscCUyQyUyMHRha2UlMjBpdCUyMGVhc3kuJTIyJTdEJTJDJTBBJTVEJTBBJTBBbW9kZWwlMjAlM0QlMjBJbmZlcmVuY2VDbGllbnRNb2RlbCgpJTBBcHJpbnQobW9kZWwobWVzc2FnZXMpKQ==",highlighted:`<span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> InferenceClientModel

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;Hello, how are you?&quot;</span>},
  {<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;assistant&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;I&#x27;m doing great. How can I help you today?&quot;</span>},
  {<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;No need to help, take it easy.&quot;</span>},
]

model = InferenceClientModel()
<span class="hljs-built_in">print</span>(model(messages))`,wrap:!1}}),Mt=new W({props:{code:"T2YlMjBjb3Vyc2UhJTIwSWYlMjB5b3UlMjBjaGFuZ2UlMjB5b3VyJTIwbWluZCUyQyUyMGZlZWwlMjBmcmVlJTIwdG8lMjByZWFjaCUyMG91dC4lMjBUYWtlJTIwY2FyZSE=",highlighted:"&gt;&gt;&gt; Of course! If you change your mind, feel free to reach out. Take care!",wrap:!1}}),$t=new w({props:{name:"class smolagents.InferenceClientModel",anchor:"smolagents.InferenceClientModel",parameters:[{name:"model_id",val:": str = 'Qwen/Qwen3-Next-80B-A3B-Thinking'"},{name:"provider",val:": str | None = None"},{name:"token",val:": str | None = None"},{name:"timeout",val:": int = 120"},{name:"client_kwargs",val:": dict[str, typing.Any] | None = None"},{name:"custom_role_conversions",val:": dict[str, str] | None = None"},{name:"api_key",val:": str | None = None"},{name:"bill_to",val:": str | None = None"},{name:"base_url",val:": str | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.InferenceClientModel.model_id",description:`<strong>model_id</strong> (<code>str</code>, <em>optional</em>, default <code>&quot;Qwen/Qwen3-Next-80B-A3B-Thinking&quot;</code>) &#x2014;
The Hugging Face model ID to be used for inference.
This can be a model identifier from the Hugging Face model hub or a URL to a deployed Inference Endpoint.
Currently, it defaults to <code>&quot;Qwen/Qwen3-Next-80B-A3B-Thinking&quot;</code>, but this may change in the future.`,name:"model_id"},{anchor:"smolagents.InferenceClientModel.provider",description:`<strong>provider</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Name of the provider to use for inference. A list of supported providers can be found in the <a href="https://huggingface.co/docs/inference-providers/index#partners" rel="nofollow">Inference Providers documentation</a>.
Defaults to &#x201C;auto&#x201D; i.e. the first of the providers available for the model, sorted by the user&#x2019;s order <a href="https://hf.co/settings/inference-providers" rel="nofollow">here</a>.
If <code>base_url</code> is passed, then <code>provider</code> is not used.`,name:"provider"},{anchor:"smolagents.InferenceClientModel.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Token used by the Hugging Face API for authentication. This token need to be authorized &#x2018;Make calls to the serverless Inference Providers&#x2019;.
If the model is gated (like Llama-3 models), the token also needs &#x2018;Read access to contents of all public gated repos you can access&#x2019;.
If not provided, the class will try to use environment variable &#x2018;HF_TOKEN&#x2019;, else use the token stored in the Hugging Face CLI configuration.`,name:"token"},{anchor:"smolagents.InferenceClientModel.timeout",description:`<strong>timeout</strong> (<code>int</code>, <em>optional</em>, defaults to 120) &#x2014;
Timeout for the API request, in seconds.`,name:"timeout"},{anchor:"smolagents.InferenceClientModel.client_kwargs",description:`<strong>client_kwargs</strong> (<code>dict[str, Any]</code>, <em>optional</em>) &#x2014;
Additional keyword arguments to pass to the Hugging Face InferenceClient.`,name:"client_kwargs"},{anchor:"smolagents.InferenceClientModel.custom_role_conversions",description:`<strong>custom_role_conversions</strong> (<code>dict[str, str]</code>, <em>optional</em>) &#x2014;
Custom role conversion mapping to convert message roles in others.
Useful for specific models that do not support specific message roles like &#x201C;system&#x201D;.`,name:"custom_role_conversions"},{anchor:"smolagents.InferenceClientModel.api_key",description:`<strong>api_key</strong> (<code>str</code>, <em>optional</em>) &#x2014;
Token to use for authentication. This is a duplicated argument from <code>token</code> to make <a href="/docs/smolagents/main/hi/reference/agents#smolagents.InferenceClientModel">InferenceClientModel</a>
follow the same pattern as <code>openai.OpenAI</code> client. Cannot be used if <code>token</code> is set. Defaults to None.`,name:"api_key"},{anchor:"smolagents.InferenceClientModel.bill_to",description:`<strong>bill_to</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The billing account to use for the requests. By default the requests are billed on the user&#x2019;s account. Requests can only be billed to
an organization the user is a member of, and which has subscribed to Enterprise Hub.`,name:"bill_to"},{anchor:"smolagents.InferenceClientModel.base_url",description:`<strong>base_url</strong> (<code>str</code>, <code>optional</code>) &#x2014;
Base URL to run inference. This is a duplicated argument from <code>model</code> to make <a href="/docs/smolagents/main/hi/reference/agents#smolagents.InferenceClientModel">InferenceClientModel</a>
follow the same pattern as <code>openai.OpenAI</code> client. Cannot be used if <code>model</code> is set. Defaults to None.`,name:"base_url"},{anchor:"smolagents.InferenceClientModel.*kwargs",description:`*<strong>*kwargs</strong> &#x2014;
Additional keyword arguments to forward to the underlying Hugging Face InferenceClient completion call.`,name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/models.py#L1382",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>ValueError</code> —
If the model name is not provided.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ValueError</code></p>
`}}),be=new Xo({props:{anchor:"smolagents.InferenceClientModel.example",$$slots:{default:[Ul]},$$scope:{ctx:j}}}),yt=new w({props:{name:"create_client",anchor:"smolagents.InferenceClientModel.create_client",parameters:[],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/models.py#L1473"}}),xt=new V({props:{title:"LiteLLMModel",local:"smolagents.LiteLLMModel",headingTag:"h3"}}),Tt=new W({props:{code:"ZnJvbSUyMHNtb2xhZ2VudHMlMjBpbXBvcnQlMjBMaXRlTExNTW9kZWwlMEElMEFtZXNzYWdlcyUyMCUzRCUyMCU1QiUwQSUyMCUyMCU3QiUyMnJvbGUlMjIlM0ElMjAlMjJ1c2VyJTIyJTJDJTIwJTIyY29udGVudCUyMiUzQSUyMCUyMkhlbGxvJTJDJTIwaG93JTIwYXJlJTIweW91JTNGJTIyJTdEJTJDJTBBJTIwJTIwJTdCJTIycm9sZSUyMiUzQSUyMCUyMmFzc2lzdGFudCUyMiUyQyUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlMjJJJ20lMjBkb2luZyUyMGdyZWF0LiUyMEhvdyUyMGNhbiUyMEklMjBoZWxwJTIweW91JTIwdG9kYXklM0YlMjIlN0QlMkMlMEElMjAlMjAlN0IlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlMjJObyUyMG5lZWQlMjB0byUyMGhlbHAlMkMlMjB0YWtlJTIwaXQlMjBlYXN5LiUyMiU3RCUyQyUwQSU1RCUwQSUwQW1vZGVsJTIwJTNEJTIwTGl0ZUxMTU1vZGVsKG1vZGVsX2lkJTNEJTIyYW50aHJvcGljJTJGY2xhdWRlLTMtNS1zb25uZXQtbGF0ZXN0JTIyJTJDJTIwdGVtcGVyYXR1cmUlM0QwLjIlMkMlMjBtYXhfdG9rZW5zJTNEMTApJTBBcHJpbnQobW9kZWwobWVzc2FnZXMpKQ==",highlighted:`<span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> LiteLLMModel

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;Hello, how are you?&quot;</span>},
  {<span class="hljs-string">&quot;role&quot;</span>: <span class="hljs-string">&quot;assistant&quot;</span>, <span class="hljs-string">&quot;content&quot;</span>: <span class="hljs-string">&quot;I&#x27;m doing great. How can I help you today?&quot;</span>},
  {<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;No need to help, take it easy.&quot;</span>},
]

model = LiteLLMModel(model_id=<span class="hljs-string">&quot;anthropic/claude-3-5-sonnet-latest&quot;</span>, temperature=<span class="hljs-number">0.2</span>, max_tokens=<span class="hljs-number">10</span>)
<span class="hljs-built_in">print</span>(model(messages))`,wrap:!1}}),Ct=new w({props:{name:"class smolagents.LiteLLMModel",anchor:"smolagents.LiteLLMModel",parameters:[{name:"model_id",val:": str | None = None"},{name:"api_base",val:": str | None = None"},{name:"api_key",val:": str | None = None"},{name:"custom_role_conversions",val:": dict[str, str] | None = None"},{name:"flatten_messages_as_text",val:": bool | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.LiteLLMModel.model_id",description:`<strong>model_id</strong> (<code>str</code>) &#x2014;
The model identifier to use on the server (e.g. &#x201C;gpt-3.5-turbo&#x201D;).`,name:"model_id"},{anchor:"smolagents.LiteLLMModel.api_base",description:`<strong>api_base</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The base URL of the provider API to call the model.`,name:"api_base"},{anchor:"smolagents.LiteLLMModel.api_key",description:`<strong>api_key</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The API key to use for authentication.`,name:"api_key"},{anchor:"smolagents.LiteLLMModel.custom_role_conversions",description:`<strong>custom_role_conversions</strong> (<code>dict[str, str]</code>, <em>optional</em>) &#x2014;
Custom role conversion mapping to convert message roles in others.
Useful for specific models that do not support specific message roles like &#x201C;system&#x201D;.`,name:"custom_role_conversions"},{anchor:"smolagents.LiteLLMModel.flatten_messages_as_text",description:`<strong>flatten_messages_as_text</strong> (<code>bool</code>, <em>optional</em>) &#x2014; Whether to flatten messages as text.
Defaults to <code>True</code> for models that start with &#x201C;ollama&#x201D;, &#x201C;groq&#x201D;, &#x201C;cerebras&#x201D;.`,name:"flatten_messages_as_text"},{anchor:"smolagents.LiteLLMModel.*kwargs",description:`*<strong>*kwargs</strong> &#x2014;
Additional keyword arguments to forward to the underlying LiteLLM completion call.`,name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/models.py#L1131"}}),It=new w({props:{name:"create_client",anchor:"smolagents.LiteLLMModel.create_client",parameters:[],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/models.py#L1181"}}),kt=new V({props:{title:"OpenAiModel",local:"openaimodel",headingTag:"h3"}}),Ut=new W({props:{code:"aW1wb3J0JTIwb3MlMEFmcm9tJTIwc21vbGFnZW50cyUyMGltcG9ydCUyME9wZW5BSU1vZGVsJTBBJTBBbW9kZWwlMjAlM0QlMjBPcGVuQUlNb2RlbCglMEElMjAlMjAlMjAlMjBtb2RlbF9pZCUzRCUyMmdwdC00byUyMiUyQyUwQSUyMCUyMCUyMCUyMGFwaV9iYXNlJTNEJTIyaHR0cHMlM0ElMkYlMkZhcGkub3BlbmFpLmNvbSUyRnYxJTIyJTJDJTBBJTIwJTIwJTIwJTIwYXBpX2tleSUzRG9zLmVudmlyb24lNUIlMjJPUEVOQUlfQVBJX0tFWSUyMiU1RCUyQyUwQSk=",highlighted:`<span class="hljs-keyword">import</span> os
<span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> OpenAIModel

model = OpenAIModel(
    model_id=<span class="hljs-string">&quot;gpt-4o&quot;</span>,
    api_base=<span class="hljs-string">&quot;https://api.openai.com/v1&quot;</span>,
    api_key=os.environ[<span class="hljs-string">&quot;OPENAI_API_KEY&quot;</span>],
)`,wrap:!1}}),jt=new V({props:{title:"Prompts",local:"smolagents.PromptTemplates",headingTag:"h2"}}),At=new w({props:{name:"class smolagents.PromptTemplates",anchor:"smolagents.PromptTemplates",parameters:"",parametersDescription:[{anchor:"smolagents.PromptTemplates.system_prompt",description:"<strong>system_prompt</strong> (<code>str</code>) &#x2014; System prompt.",name:"system_prompt"},{anchor:"smolagents.PromptTemplates.planning",description:'<strong>planning</strong> (<a href="/docs/smolagents/main/hi/reference/agents#smolagents.PlanningPromptTemplate">PlanningPromptTemplate</a>) &#x2014; Planning prompt templates.',name:"planning"},{anchor:"smolagents.PromptTemplates.managed_agent",description:'<strong>managed_agent</strong> (<a href="/docs/smolagents/main/hi/reference/agents#smolagents.ManagedAgentPromptTemplate">ManagedAgentPromptTemplate</a>) &#x2014; Managed agent prompt templates.',name:"managed_agent"},{anchor:"smolagents.PromptTemplates.final_answer",description:'<strong>final_answer</strong> (<a href="/docs/smolagents/main/hi/reference/agents#smolagents.FinalAnswerPromptTemplate">FinalAnswerPromptTemplate</a>) &#x2014; Final answer prompt templates.',name:"final_answer"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L164"}}),Nt=new w({props:{name:"class smolagents.PlanningPromptTemplate",anchor:"smolagents.PlanningPromptTemplate",parameters:"",parametersDescription:[{anchor:"smolagents.PlanningPromptTemplate.plan",description:"<strong>plan</strong> (<code>str</code>) &#x2014; Initial plan prompt.",name:"plan"},{anchor:"smolagents.PlanningPromptTemplate.update_plan_pre_messages",description:"<strong>update_plan_pre_messages</strong> (<code>str</code>) &#x2014; Update plan pre-messages prompt.",name:"update_plan_pre_messages"},{anchor:"smolagents.PlanningPromptTemplate.update_plan_post_messages",description:"<strong>update_plan_post_messages</strong> (<code>str</code>) &#x2014; Update plan post-messages prompt.",name:"update_plan_post_messages"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L123"}}),Lt=new w({props:{name:"class smolagents.ManagedAgentPromptTemplate",anchor:"smolagents.ManagedAgentPromptTemplate",parameters:"",parametersDescription:[{anchor:"smolagents.ManagedAgentPromptTemplate.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; Task prompt.",name:"task"},{anchor:"smolagents.ManagedAgentPromptTemplate.report",description:"<strong>report</strong> (<code>str</code>) &#x2014; Report prompt.",name:"report"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L138"}}),qt=new w({props:{name:"class smolagents.FinalAnswerPromptTemplate",anchor:"smolagents.FinalAnswerPromptTemplate",parameters:"",parametersDescription:[{anchor:"smolagents.FinalAnswerPromptTemplate.pre_messages",description:"<strong>pre_messages</strong> (<code>str</code>) &#x2014; Pre-messages prompt.",name:"pre_messages"},{anchor:"smolagents.FinalAnswerPromptTemplate.post_messages",description:"<strong>post_messages</strong> (<code>str</code>) &#x2014; Post-messages prompt.",name:"post_messages"}],source:"https://github.com/huggingface/smolagents/blob/main/src/smolagents/agents.py#L151"}}),Pt=new wl({props:{source:"https://github.com/huggingface/smolagents/blob/main/docs/source/hi/reference/agents.md"}}),{c(){_=l("meta"),I=o(),$=l("p"),b=o(),m(T.$$.fragment),h=o(),m(C.$$.fragment),Vn=o(),m(Y.$$.fragment),Wn=o(),xe=l("p"),xe.innerHTML=ua,Sn=o(),m(we.$$.fragment),En=o(),Te=l("p"),Te.innerHTML=ha,Bn=o(),Ce=l("p"),Ce.innerHTML=fa,Zn=o(),Ie=l("ul"),Ie.innerHTML=_a,Gn=o(),ke=l("p"),ke.innerHTML=ba,Qn=o(),m(Je.$$.fragment),Dn=o(),v=l("div"),m(Ue.$$.fragment),Yo=o(),Bt=l("p"),Bt.textContent=va,Oo=o(),O=l("div"),m(je.$$.fragment),Ko=o(),Zt=l("p"),Zt.textContent=Ma,es=o(),K=l("div"),m(Ae.$$.fragment),ts=o(),Gt=l("p"),Gt.textContent=$a,ns=o(),ee=l("div"),m(Ne.$$.fragment),os=o(),Qt=l("p"),Qt.textContent=ya,ss=o(),S=l("div"),m(Le.$$.fragment),as=o(),Dt=l("p"),Dt.textContent=xa,ls=o(),m(te.$$.fragment),rs=o(),ne=l("div"),m(qe.$$.fragment),is=o(),Ht=l("p"),Ht.textContent=wa,ms=o(),oe=l("div"),m(Pe.$$.fragment),ds=o(),zt=l("p"),zt.textContent=Ta,gs=o(),se=l("div"),m(Ve.$$.fragment),cs=o(),Ft=l("p"),Ft.textContent=Ca,ps=o(),ae=l("div"),m(We.$$.fragment),us=o(),Rt=l("p"),Rt.textContent=Ia,hs=o(),le=l("div"),m(Se.$$.fragment),fs=o(),Xt=l("p"),Xt.textContent=ka,_s=o(),E=l("div"),m(Ee.$$.fragment),bs=o(),Yt=l("p"),Yt.textContent=Ja,vs=o(),m(re.$$.fragment),Ms=o(),B=l("div"),m(Be.$$.fragment),$s=o(),Ot=l("p"),Ot.innerHTML=Ua,ys=o(),Kt=l("ul"),Kt.innerHTML=ja,xs=o(),ie=l("div"),m(Ze.$$.fragment),ws=o(),en=l("p"),en.textContent=Aa,Ts=o(),me=l("div"),m(Ge.$$.fragment),Cs=o(),tn=l("p"),tn.textContent=Na,Is=o(),de=l("div"),m(Qe.$$.fragment),ks=o(),nn=l("p"),nn.textContent=La,Js=o(),ge=l("div"),m(De.$$.fragment),Us=o(),on=l("p"),on.textContent=qa,Hn=o(),A=l("div"),m(He.$$.fragment),js=o(),sn=l("p"),sn.textContent=Pa,As=o(),ce=l("div"),m(ze.$$.fragment),Ns=o(),an=l("p"),an.textContent=Va,Ls=o(),pe=l("div"),m(Fe.$$.fragment),qs=o(),ln=l("p"),ln.textContent=Wa,zn=o(),N=l("div"),m(Re.$$.fragment),Ps=o(),rn=l("p"),rn.innerHTML=Sa,Vs=o(),Z=l("div"),m(Xe.$$.fragment),Ws=o(),mn=l("p"),mn.textContent=Ea,Ss=o(),dn=l("p"),dn.textContent=Ba,Es=o(),ue=l("div"),m(Ye.$$.fragment),Bs=o(),gn=l("p"),gn.textContent=Za,Fn=o(),m(Oe.$$.fragment),Rn=o(),D=l("div"),m(Ke.$$.fragment),Zs=o(),cn=l("p"),cn.textContent=Ga,Xn=o(),m(et.$$.fragment),Yn=o(),k=l("div"),m(tt.$$.fragment),Gs=o(),pn=l("p"),pn.innerHTML=Qa,Qs=o(),un=l("p"),un.innerHTML=Da,Ds=o(),m(he.$$.fragment),Hs=o(),fe=l("div"),m(nt.$$.fragment),zs=o(),hn=l("p"),hn.textContent=Ha,Fs=o(),G=l("div"),m(ot.$$.fragment),Rs=o(),fn=l("p"),fn.textContent=za,Xs=o(),_n=l("p"),_n.innerHTML=Fa,On=o(),m(st.$$.fragment),Kn=o(),at=l("p"),at.textContent=Ra,eo=o(),lt=l("p"),lt.innerHTML=Xa,to=o(),rt=l("ol"),rt.innerHTML=Ya,no=o(),it=l("p"),it.innerHTML=Oa,oo=o(),m(mt.$$.fragment),so=o(),dt=l("p"),dt.innerHTML=Ka,ao=o(),m(gt.$$.fragment),lo=o(),ct=l("p"),ct.innerHTML=el,ro=o(),m(pt.$$.fragment),io=o(),m(ut.$$.fragment),mo=o(),U=l("div"),m(ht.$$.fragment),Ys=o(),bn=l("p"),bn.textContent=tl,Os=o(),vn=l("p"),vn.textContent=nl,Ks=o(),ft=l("blockquote"),ft.innerHTML=ol,ea=o(),m(_e.$$.fragment),go=o(),m(_t.$$.fragment),co=o(),bt=l("p"),bt.innerHTML=sl,po=o(),m(vt.$$.fragment),uo=o(),m(Mt.$$.fragment),ho=o(),J=l("div"),m($t.$$.fragment),ta=o(),Mn=l("p"),Mn.textContent=al,na=o(),$n=l("p"),$n.textContent=ll,oa=o(),yn=l("p"),yn.textContent=rl,sa=o(),m(be.$$.fragment),aa=o(),ve=l("div"),m(yt.$$.fragment),la=o(),xn=l("p"),xn.textContent=il,fo=o(),m(xt.$$.fragment),_o=o(),wt=l("p"),wt.innerHTML=ml,bo=o(),m(Tt.$$.fragment),vo=o(),P=l("div"),m(Ct.$$.fragment),ra=o(),wn=l("p"),wn.innerHTML=dl,ia=o(),Me=l("div"),m(It.$$.fragment),ma=o(),Tn=l("p"),Tn.textContent=gl,Mo=o(),m(kt.$$.fragment),$o=o(),Jt=l("p"),Jt.innerHTML=cl,yo=o(),m(Ut.$$.fragment),xo=o(),m(jt.$$.fragment),wo=o(),H=l("div"),m(At.$$.fragment),da=o(),Cn=l("p"),Cn.textContent=pl,To=o(),z=l("div"),m(Nt.$$.fragment),ga=o(),In=l("p"),In.textContent=ul,Co=o(),F=l("div"),m(Lt.$$.fragment),ca=o(),kn=l("p"),kn.textContent=hl,Io=o(),R=l("div"),m(qt.$$.fragment),pa=o(),Jn=l("p"),Jn.textContent=fl,ko=o(),m(Pt.$$.fragment),Jo=o(),Pn=l("p"),this.h()},l(e){const a=yl("svelte-u9bgzb",document.head);_=r(a,"META",{name:!0,content:!0}),a.forEach(n),I=s(e),$=r(e,"P",{}),x($).forEach(n),b=s(e),d(T.$$.fragment,e),h=s(e),d(C.$$.fragment,e),Vn=s(e),d(Y.$$.fragment,e),Wn=s(e),xe=r(e,"P",{"data-svelte-h":!0}),f(xe)!=="svelte-530l0l"&&(xe.innerHTML=ua),Sn=s(e),d(we.$$.fragment,e),En=s(e),Te=r(e,"P",{"data-svelte-h":!0}),f(Te)!=="svelte-n5s19j"&&(Te.innerHTML=ha),Bn=s(e),Ce=r(e,"P",{"data-svelte-h":!0}),f(Ce)!=="svelte-pwzn35"&&(Ce.innerHTML=fa),Zn=s(e),Ie=r(e,"UL",{"data-svelte-h":!0}),f(Ie)!=="svelte-12o9kc3"&&(Ie.innerHTML=_a),Gn=s(e),ke=r(e,"P",{"data-svelte-h":!0}),f(ke)!=="svelte-12okbux"&&(ke.innerHTML=ba),Qn=s(e),d(Je.$$.fragment,e),Dn=s(e),v=r(e,"DIV",{class:!0});var y=x(v);d(Ue.$$.fragment,y),Yo=s(y),Bt=r(y,"P",{"data-svelte-h":!0}),f(Bt)!=="svelte-d5y990"&&(Bt.textContent=va),Oo=s(y),O=r(y,"DIV",{class:!0});var Vt=x(O);d(je.$$.fragment,Vt),Ko=s(Vt),Zt=r(Vt,"P",{"data-svelte-h":!0}),f(Zt)!=="svelte-104knry"&&(Zt.textContent=Ma),Vt.forEach(n),es=s(y),K=r(y,"DIV",{class:!0});var Wt=x(K);d(Ae.$$.fragment,Wt),ts=s(Wt),Gt=r(Wt,"P",{"data-svelte-h":!0}),f(Gt)!=="svelte-1kbba9r"&&(Gt.textContent=$a),Wt.forEach(n),ns=s(y),ee=r(y,"DIV",{class:!0});var St=x(ee);d(Ne.$$.fragment,St),os=s(St),Qt=r(St,"P",{"data-svelte-h":!0}),f(Qt)!=="svelte-1f5g0y1"&&(Qt.textContent=ya),St.forEach(n),ss=s(y),S=r(y,"DIV",{class:!0});var X=x(S);d(Le.$$.fragment,X),as=s(X),Dt=r(X,"P",{"data-svelte-h":!0}),f(Dt)!=="svelte-px853z"&&(Dt.textContent=xa),ls=s(X),d(te.$$.fragment,X),X.forEach(n),rs=s(y),ne=r(y,"DIV",{class:!0});var Et=x(ne);d(qe.$$.fragment,Et),is=s(Et),Ht=r(Et,"P",{"data-svelte-h":!0}),f(Ht)!=="svelte-aqxmk9"&&(Ht.textContent=wa),Et.forEach(n),ms=s(y),oe=r(y,"DIV",{class:!0});var jo=x(oe);d(Pe.$$.fragment,jo),ds=s(jo),zt=r(jo,"P",{"data-svelte-h":!0}),f(zt)!=="svelte-vma7te"&&(zt.textContent=Ta),jo.forEach(n),gs=s(y),se=r(y,"DIV",{class:!0});var Ao=x(se);d(Ve.$$.fragment,Ao),cs=s(Ao),Ft=r(Ao,"P",{"data-svelte-h":!0}),f(Ft)!=="svelte-s6zvq5"&&(Ft.textContent=Ca),Ao.forEach(n),ps=s(y),ae=r(y,"DIV",{class:!0});var No=x(ae);d(We.$$.fragment,No),us=s(No),Rt=r(No,"P",{"data-svelte-h":!0}),f(Rt)!=="svelte-3y7cve"&&(Rt.textContent=Ia),No.forEach(n),hs=s(y),le=r(y,"DIV",{class:!0});var Lo=x(le);d(Se.$$.fragment,Lo),fs=s(Lo),Xt=r(Lo,"P",{"data-svelte-h":!0}),f(Xt)!=="svelte-28znqy"&&(Xt.textContent=ka),Lo.forEach(n),_s=s(y),E=r(y,"DIV",{class:!0});var Un=x(E);d(Ee.$$.fragment,Un),bs=s(Un),Yt=r(Un,"P",{"data-svelte-h":!0}),f(Yt)!=="svelte-1rclfo7"&&(Yt.textContent=Ja),vs=s(Un),d(re.$$.fragment,Un),Un.forEach(n),Ms=s(y),B=r(y,"DIV",{class:!0});var jn=x(B);d(Be.$$.fragment,jn),$s=s(jn),Ot=r(jn,"P",{"data-svelte-h":!0}),f(Ot)!=="svelte-1uw6gyw"&&(Ot.innerHTML=Ua),ys=s(jn),Kt=r(jn,"UL",{"data-svelte-h":!0}),f(Kt)!=="svelte-11tnr4k"&&(Kt.innerHTML=ja),jn.forEach(n),xs=s(y),ie=r(y,"DIV",{class:!0});var qo=x(ie);d(Ze.$$.fragment,qo),ws=s(qo),en=r(qo,"P",{"data-svelte-h":!0}),f(en)!=="svelte-1av9fpz"&&(en.textContent=Aa),qo.forEach(n),Ts=s(y),me=r(y,"DIV",{class:!0});var Po=x(me);d(Ge.$$.fragment,Po),Cs=s(Po),tn=r(Po,"P",{"data-svelte-h":!0}),f(tn)!=="svelte-1kyagwa"&&(tn.textContent=Na),Po.forEach(n),Is=s(y),de=r(y,"DIV",{class:!0});var Vo=x(de);d(Qe.$$.fragment,Vo),ks=s(Vo),nn=r(Vo,"P",{"data-svelte-h":!0}),f(nn)!=="svelte-em4ik4"&&(nn.textContent=La),Vo.forEach(n),Js=s(y),ge=r(y,"DIV",{class:!0});var Wo=x(ge);d(De.$$.fragment,Wo),Us=s(Wo),on=r(Wo,"P",{"data-svelte-h":!0}),f(on)!=="svelte-jg60qx"&&(on.textContent=qa),Wo.forEach(n),y.forEach(n),Hn=s(e),A=r(e,"DIV",{class:!0});var $e=x(A);d(He.$$.fragment,$e),js=s($e),sn=r($e,"P",{"data-svelte-h":!0}),f(sn)!=="svelte-1mxsa12"&&(sn.textContent=Pa),As=s($e),ce=r($e,"DIV",{class:!0});var So=x(ce);d(ze.$$.fragment,So),Ns=s(So),an=r(So,"P",{"data-svelte-h":!0}),f(an)!=="svelte-1dq3hsa"&&(an.textContent=Va),So.forEach(n),Ls=s($e),pe=r($e,"DIV",{class:!0});var Eo=x(pe);d(Fe.$$.fragment,Eo),qs=s(Eo),ln=r(Eo,"P",{"data-svelte-h":!0}),f(ln)!=="svelte-1bap6qm"&&(ln.textContent=Wa),Eo.forEach(n),$e.forEach(n),zn=s(e),N=r(e,"DIV",{class:!0});var ye=x(N);d(Re.$$.fragment,ye),Ps=s(ye),rn=r(ye,"P",{"data-svelte-h":!0}),f(rn)!=="svelte-71yyi1"&&(rn.innerHTML=Sa),Vs=s(ye),Z=r(ye,"DIV",{class:!0});var An=x(Z);d(Xe.$$.fragment,An),Ws=s(An),mn=r(An,"P",{"data-svelte-h":!0}),f(mn)!=="svelte-yjyhgb"&&(mn.textContent=Ea),Ss=s(An),dn=r(An,"P",{"data-svelte-h":!0}),f(dn)!=="svelte-1l33w20"&&(dn.textContent=Ba),An.forEach(n),Es=s(ye),ue=r(ye,"DIV",{class:!0});var Bo=x(ue);d(Ye.$$.fragment,Bo),Bs=s(Bo),gn=r(Bo,"P",{"data-svelte-h":!0}),f(gn)!=="svelte-132xt9l"&&(gn.textContent=Za),Bo.forEach(n),ye.forEach(n),Fn=s(e),d(Oe.$$.fragment,e),Rn=s(e),D=r(e,"DIV",{class:!0});var Zo=x(D);d(Ke.$$.fragment,Zo),Zs=s(Zo),cn=r(Zo,"P",{"data-svelte-h":!0}),f(cn)!=="svelte-3yyclm"&&(cn.textContent=Ga),Zo.forEach(n),Xn=s(e),d(et.$$.fragment,e),Yn=s(e),k=r(e,"DIV",{class:!0});var L=x(k);d(tt.$$.fragment,L),Gs=s(L),pn=r(L,"P",{"data-svelte-h":!0}),f(pn)!=="svelte-1l1remn"&&(pn.innerHTML=Qa),Qs=s(L),un=r(L,"P",{"data-svelte-h":!0}),f(un)!=="svelte-i76913"&&(un.innerHTML=Da),Ds=s(L),d(he.$$.fragment,L),Hs=s(L),fe=r(L,"DIV",{class:!0});var Go=x(fe);d(nt.$$.fragment,Go),zs=s(Go),hn=r(Go,"P",{"data-svelte-h":!0}),f(hn)!=="svelte-1jjhzc2"&&(hn.textContent=Ha),Go.forEach(n),Fs=s(L),G=r(L,"DIV",{class:!0});var Nn=x(G);d(ot.$$.fragment,Nn),Rs=s(Nn),fn=r(Nn,"P",{"data-svelte-h":!0}),f(fn)!=="svelte-7pw2wo"&&(fn.textContent=za),Xs=s(Nn),_n=r(Nn,"P",{"data-svelte-h":!0}),f(_n)!=="svelte-19g2bgi"&&(_n.innerHTML=Fa),Nn.forEach(n),L.forEach(n),On=s(e),d(st.$$.fragment,e),Kn=s(e),at=r(e,"P",{"data-svelte-h":!0}),f(at)!=="svelte-1hr4phi"&&(at.textContent=Ra),eo=s(e),lt=r(e,"P",{"data-svelte-h":!0}),f(lt)!=="svelte-13vv5yy"&&(lt.innerHTML=Xa),to=s(e),rt=r(e,"OL",{"data-svelte-h":!0}),f(rt)!=="svelte-btvrd5"&&(rt.innerHTML=Ya),no=s(e),it=r(e,"P",{"data-svelte-h":!0}),f(it)!=="svelte-m6zjmh"&&(it.innerHTML=Oa),oo=s(e),d(mt.$$.fragment,e),so=s(e),dt=r(e,"P",{"data-svelte-h":!0}),f(dt)!=="svelte-15khdi2"&&(dt.innerHTML=Ka),ao=s(e),d(gt.$$.fragment,e),lo=s(e),ct=r(e,"P",{"data-svelte-h":!0}),f(ct)!=="svelte-bqff4p"&&(ct.innerHTML=el),ro=s(e),d(pt.$$.fragment,e),io=s(e),d(ut.$$.fragment,e),mo=s(e),U=r(e,"DIV",{class:!0});var Q=x(U);d(ht.$$.fragment,Q),Ys=s(Q),bn=r(Q,"P",{"data-svelte-h":!0}),f(bn)!=="svelte-1ex1ahr"&&(bn.textContent=tl),Os=s(Q),vn=r(Q,"P",{"data-svelte-h":!0}),f(vn)!=="svelte-1140acn"&&(vn.textContent=nl),Ks=s(Q),ft=r(Q,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),f(ft)!=="svelte-103z9yw"&&(ft.innerHTML=ol),ea=s(Q),d(_e.$$.fragment,Q),Q.forEach(n),go=s(e),d(_t.$$.fragment,e),co=s(e),bt=r(e,"P",{"data-svelte-h":!0}),f(bt)!=="svelte-21wzws"&&(bt.innerHTML=sl),po=s(e),d(vt.$$.fragment,e),uo=s(e),d(Mt.$$.fragment,e),ho=s(e),J=r(e,"DIV",{class:!0});var q=x(J);d($t.$$.fragment,q),ta=s(q),Mn=r(q,"P",{"data-svelte-h":!0}),f(Mn)!=="svelte-axkcn3"&&(Mn.textContent=al),na=s(q),$n=r(q,"P",{"data-svelte-h":!0}),f($n)!=="svelte-bducrc"&&($n.textContent=ll),oa=s(q),yn=r(q,"P",{"data-svelte-h":!0}),f(yn)!=="svelte-12eu297"&&(yn.textContent=rl),sa=s(q),d(be.$$.fragment,q),aa=s(q),ve=r(q,"DIV",{class:!0});var Qo=x(ve);d(yt.$$.fragment,Qo),la=s(Qo),xn=r(Qo,"P",{"data-svelte-h":!0}),f(xn)!=="svelte-ym2f5u"&&(xn.textContent=il),Qo.forEach(n),q.forEach(n),fo=s(e),d(xt.$$.fragment,e),_o=s(e),wt=r(e,"P",{"data-svelte-h":!0}),f(wt)!=="svelte-1ufdi39"&&(wt.innerHTML=ml),bo=s(e),d(Tt.$$.fragment,e),vo=s(e),P=r(e,"DIV",{class:!0});var Ln=x(P);d(Ct.$$.fragment,Ln),ra=s(Ln),wn=r(Ln,"P",{"data-svelte-h":!0}),f(wn)!=="svelte-5g97zk"&&(wn.innerHTML=dl),ia=s(Ln),Me=r(Ln,"DIV",{class:!0});var Do=x(Me);d(It.$$.fragment,Do),ma=s(Do),Tn=r(Do,"P",{"data-svelte-h":!0}),f(Tn)!=="svelte-12r14rd"&&(Tn.textContent=gl),Do.forEach(n),Ln.forEach(n),Mo=s(e),d(kt.$$.fragment,e),$o=s(e),Jt=r(e,"P",{"data-svelte-h":!0}),f(Jt)!=="svelte-15ywemq"&&(Jt.innerHTML=cl),yo=s(e),d(Ut.$$.fragment,e),xo=s(e),d(jt.$$.fragment,e),wo=s(e),H=r(e,"DIV",{class:!0});var Ho=x(H);d(At.$$.fragment,Ho),da=s(Ho),Cn=r(Ho,"P",{"data-svelte-h":!0}),f(Cn)!=="svelte-1qudq9i"&&(Cn.textContent=pl),Ho.forEach(n),To=s(e),z=r(e,"DIV",{class:!0});var zo=x(z);d(Nt.$$.fragment,zo),ga=s(zo),In=r(zo,"P",{"data-svelte-h":!0}),f(In)!=="svelte-139nrra"&&(In.textContent=ul),zo.forEach(n),Co=s(e),F=r(e,"DIV",{class:!0});var Fo=x(F);d(Lt.$$.fragment,Fo),ca=s(Fo),kn=r(Fo,"P",{"data-svelte-h":!0}),f(kn)!=="svelte-uxob75"&&(kn.textContent=hl),Fo.forEach(n),Io=s(e),R=r(e,"DIV",{class:!0});var Ro=x(R);d(qt.$$.fragment,Ro),pa=s(Ro),Jn=r(Ro,"P",{"data-svelte-h":!0}),f(Jn)!=="svelte-52nyxb"&&(Jn.textContent=fl),Ro.forEach(n),ko=s(e),d(Pt.$$.fragment,e),Jo=s(e),Pn=r(e,"P",{}),x(Pn).forEach(n),this.h()},h(){M(_,"name","hf:doc:metadata"),M(_,"content",Al),M(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(fe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(k,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ft,"class","tip"),M(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ve,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,a){t(document.head,_),i(e,I,a),i(e,$,a),i(e,b,a),g(T,e,a),i(e,h,a),g(C,e,a),i(e,Vn,a),g(Y,e,a),i(e,Wn,a),i(e,xe,a),i(e,Sn,a),g(we,e,a),i(e,En,a),i(e,Te,a),i(e,Bn,a),i(e,Ce,a),i(e,Zn,a),i(e,Ie,a),i(e,Gn,a),i(e,ke,a),i(e,Qn,a),g(Je,e,a),i(e,Dn,a),i(e,v,a),g(Ue,v,null),t(v,Yo),t(v,Bt),t(v,Oo),t(v,O),g(je,O,null),t(O,Ko),t(O,Zt),t(v,es),t(v,K),g(Ae,K,null),t(K,ts),t(K,Gt),t(v,ns),t(v,ee),g(Ne,ee,null),t(ee,os),t(ee,Qt),t(v,ss),t(v,S),g(Le,S,null),t(S,as),t(S,Dt),t(S,ls),g(te,S,null),t(v,rs),t(v,ne),g(qe,ne,null),t(ne,is),t(ne,Ht),t(v,ms),t(v,oe),g(Pe,oe,null),t(oe,ds),t(oe,zt),t(v,gs),t(v,se),g(Ve,se,null),t(se,cs),t(se,Ft),t(v,ps),t(v,ae),g(We,ae,null),t(ae,us),t(ae,Rt),t(v,hs),t(v,le),g(Se,le,null),t(le,fs),t(le,Xt),t(v,_s),t(v,E),g(Ee,E,null),t(E,bs),t(E,Yt),t(E,vs),g(re,E,null),t(v,Ms),t(v,B),g(Be,B,null),t(B,$s),t(B,Ot),t(B,ys),t(B,Kt),t(v,xs),t(v,ie),g(Ze,ie,null),t(ie,ws),t(ie,en),t(v,Ts),t(v,me),g(Ge,me,null),t(me,Cs),t(me,tn),t(v,Is),t(v,de),g(Qe,de,null),t(de,ks),t(de,nn),t(v,Js),t(v,ge),g(De,ge,null),t(ge,Us),t(ge,on),i(e,Hn,a),i(e,A,a),g(He,A,null),t(A,js),t(A,sn),t(A,As),t(A,ce),g(ze,ce,null),t(ce,Ns),t(ce,an),t(A,Ls),t(A,pe),g(Fe,pe,null),t(pe,qs),t(pe,ln),i(e,zn,a),i(e,N,a),g(Re,N,null),t(N,Ps),t(N,rn),t(N,Vs),t(N,Z),g(Xe,Z,null),t(Z,Ws),t(Z,mn),t(Z,Ss),t(Z,dn),t(N,Es),t(N,ue),g(Ye,ue,null),t(ue,Bs),t(ue,gn),i(e,Fn,a),g(Oe,e,a),i(e,Rn,a),i(e,D,a),g(Ke,D,null),t(D,Zs),t(D,cn),i(e,Xn,a),g(et,e,a),i(e,Yn,a),i(e,k,a),g(tt,k,null),t(k,Gs),t(k,pn),t(k,Qs),t(k,un),t(k,Ds),g(he,k,null),t(k,Hs),t(k,fe),g(nt,fe,null),t(fe,zs),t(fe,hn),t(k,Fs),t(k,G),g(ot,G,null),t(G,Rs),t(G,fn),t(G,Xs),t(G,_n),i(e,On,a),g(st,e,a),i(e,Kn,a),i(e,at,a),i(e,eo,a),i(e,lt,a),i(e,to,a),i(e,rt,a),i(e,no,a),i(e,it,a),i(e,oo,a),g(mt,e,a),i(e,so,a),i(e,dt,a),i(e,ao,a),g(gt,e,a),i(e,lo,a),i(e,ct,a),i(e,ro,a),g(pt,e,a),i(e,io,a),g(ut,e,a),i(e,mo,a),i(e,U,a),g(ht,U,null),t(U,Ys),t(U,bn),t(U,Os),t(U,vn),t(U,Ks),t(U,ft),t(U,ea),g(_e,U,null),i(e,go,a),g(_t,e,a),i(e,co,a),i(e,bt,a),i(e,po,a),g(vt,e,a),i(e,uo,a),g(Mt,e,a),i(e,ho,a),i(e,J,a),g($t,J,null),t(J,ta),t(J,Mn),t(J,na),t(J,$n),t(J,oa),t(J,yn),t(J,sa),g(be,J,null),t(J,aa),t(J,ve),g(yt,ve,null),t(ve,la),t(ve,xn),i(e,fo,a),g(xt,e,a),i(e,_o,a),i(e,wt,a),i(e,bo,a),g(Tt,e,a),i(e,vo,a),i(e,P,a),g(Ct,P,null),t(P,ra),t(P,wn),t(P,ia),t(P,Me),g(It,Me,null),t(Me,ma),t(Me,Tn),i(e,Mo,a),g(kt,e,a),i(e,$o,a),i(e,Jt,a),i(e,yo,a),g(Ut,e,a),i(e,xo,a),g(jt,e,a),i(e,wo,a),i(e,H,a),g(At,H,null),t(H,da),t(H,Cn),i(e,To,a),i(e,z,a),g(Nt,z,null),t(z,ga),t(z,In),i(e,Co,a),i(e,F,a),g(Lt,F,null),t(F,ca),t(F,kn),i(e,Io,a),i(e,R,a),g(qt,R,null),t(R,pa),t(R,Jn),i(e,ko,a),g(Pt,e,a),i(e,Jo,a),i(e,Pn,a),Uo=!0},p(e,[a]){const y={};a&2&&(y.$$scope={dirty:a,ctx:e}),Y.$set(y);const Vt={};a&2&&(Vt.$$scope={dirty:a,ctx:e}),te.$set(Vt);const Wt={};a&2&&(Wt.$$scope={dirty:a,ctx:e}),re.$set(Wt);const St={};a&2&&(St.$$scope={dirty:a,ctx:e}),he.$set(St);const X={};a&2&&(X.$$scope={dirty:a,ctx:e}),_e.$set(X);const Et={};a&2&&(Et.$$scope={dirty:a,ctx:e}),be.$set(Et)},i(e){Uo||(c(T.$$.fragment,e),c(C.$$.fragment,e),c(Y.$$.fragment,e),c(we.$$.fragment,e),c(Je.$$.fragment,e),c(Ue.$$.fragment,e),c(je.$$.fragment,e),c(Ae.$$.fragment,e),c(Ne.$$.fragment,e),c(Le.$$.fragment,e),c(te.$$.fragment,e),c(qe.$$.fragment,e),c(Pe.$$.fragment,e),c(Ve.$$.fragment,e),c(We.$$.fragment,e),c(Se.$$.fragment,e),c(Ee.$$.fragment,e),c(re.$$.fragment,e),c(Be.$$.fragment,e),c(Ze.$$.fragment,e),c(Ge.$$.fragment,e),c(Qe.$$.fragment,e),c(De.$$.fragment,e),c(He.$$.fragment,e),c(ze.$$.fragment,e),c(Fe.$$.fragment,e),c(Re.$$.fragment,e),c(Xe.$$.fragment,e),c(Ye.$$.fragment,e),c(Oe.$$.fragment,e),c(Ke.$$.fragment,e),c(et.$$.fragment,e),c(tt.$$.fragment,e),c(he.$$.fragment,e),c(nt.$$.fragment,e),c(ot.$$.fragment,e),c(st.$$.fragment,e),c(mt.$$.fragment,e),c(gt.$$.fragment,e),c(pt.$$.fragment,e),c(ut.$$.fragment,e),c(ht.$$.fragment,e),c(_e.$$.fragment,e),c(_t.$$.fragment,e),c(vt.$$.fragment,e),c(Mt.$$.fragment,e),c($t.$$.fragment,e),c(be.$$.fragment,e),c(yt.$$.fragment,e),c(xt.$$.fragment,e),c(Tt.$$.fragment,e),c(Ct.$$.fragment,e),c(It.$$.fragment,e),c(kt.$$.fragment,e),c(Ut.$$.fragment,e),c(jt.$$.fragment,e),c(At.$$.fragment,e),c(Nt.$$.fragment,e),c(Lt.$$.fragment,e),c(qt.$$.fragment,e),c(Pt.$$.fragment,e),Uo=!0)},o(e){p(T.$$.fragment,e),p(C.$$.fragment,e),p(Y.$$.fragment,e),p(we.$$.fragment,e),p(Je.$$.fragment,e),p(Ue.$$.fragment,e),p(je.$$.fragment,e),p(Ae.$$.fragment,e),p(Ne.$$.fragment,e),p(Le.$$.fragment,e),p(te.$$.fragment,e),p(qe.$$.fragment,e),p(Pe.$$.fragment,e),p(Ve.$$.fragment,e),p(We.$$.fragment,e),p(Se.$$.fragment,e),p(Ee.$$.fragment,e),p(re.$$.fragment,e),p(Be.$$.fragment,e),p(Ze.$$.fragment,e),p(Ge.$$.fragment,e),p(Qe.$$.fragment,e),p(De.$$.fragment,e),p(He.$$.fragment,e),p(ze.$$.fragment,e),p(Fe.$$.fragment,e),p(Re.$$.fragment,e),p(Xe.$$.fragment,e),p(Ye.$$.fragment,e),p(Oe.$$.fragment,e),p(Ke.$$.fragment,e),p(et.$$.fragment,e),p(tt.$$.fragment,e),p(he.$$.fragment,e),p(nt.$$.fragment,e),p(ot.$$.fragment,e),p(st.$$.fragment,e),p(mt.$$.fragment,e),p(gt.$$.fragment,e),p(pt.$$.fragment,e),p(ut.$$.fragment,e),p(ht.$$.fragment,e),p(_e.$$.fragment,e),p(_t.$$.fragment,e),p(vt.$$.fragment,e),p(Mt.$$.fragment,e),p($t.$$.fragment,e),p(be.$$.fragment,e),p(yt.$$.fragment,e),p(xt.$$.fragment,e),p(Tt.$$.fragment,e),p(Ct.$$.fragment,e),p(It.$$.fragment,e),p(kt.$$.fragment,e),p(Ut.$$.fragment,e),p(jt.$$.fragment,e),p(At.$$.fragment,e),p(Nt.$$.fragment,e),p(Lt.$$.fragment,e),p(qt.$$.fragment,e),p(Pt.$$.fragment,e),Uo=!1},d(e){e&&(n(I),n($),n(b),n(h),n(Vn),n(Wn),n(xe),n(Sn),n(En),n(Te),n(Bn),n(Ce),n(Zn),n(Ie),n(Gn),n(ke),n(Qn),n(Dn),n(v),n(Hn),n(A),n(zn),n(N),n(Fn),n(Rn),n(D),n(Xn),n(Yn),n(k),n(On),n(Kn),n(at),n(eo),n(lt),n(to),n(rt),n(no),n(it),n(oo),n(so),n(dt),n(ao),n(lo),n(ct),n(ro),n(io),n(mo),n(U),n(go),n(co),n(bt),n(po),n(uo),n(ho),n(J),n(fo),n(_o),n(wt),n(bo),n(vo),n(P),n(Mo),n($o),n(Jt),n(yo),n(xo),n(wo),n(H),n(To),n(z),n(Co),n(F),n(Io),n(R),n(ko),n(Jo),n(Pn)),n(_),u(T,e),u(C,e),u(Y,e),u(we,e),u(Je,e),u(Ue),u(je),u(Ae),u(Ne),u(Le),u(te),u(qe),u(Pe),u(Ve),u(We),u(Se),u(Ee),u(re),u(Be),u(Ze),u(Ge),u(Qe),u(De),u(He),u(ze),u(Fe),u(Re),u(Xe),u(Ye),u(Oe,e),u(Ke),u(et,e),u(tt),u(he),u(nt),u(ot),u(st,e),u(mt,e),u(gt,e),u(pt,e),u(ut,e),u(ht),u(_e),u(_t,e),u(vt,e),u(Mt,e),u($t),u(be),u(yt),u(xt,e),u(Tt,e),u(Ct),u(It),u(kt,e),u(Ut,e),u(jt,e),u(At),u(Nt),u(Lt),u(qt),u(Pt,e)}}}const Al='{"title":"Agents","local":"agents","sections":[{"title":"Agents","local":"agents","sections":[{"title":"Agents की क्लासेज","local":"smolagents.MultiStepAgent","sections":[],"depth":3},{"title":"stream_to_gradio","local":"smolagents.stream_to_gradio","sections":[],"depth":3},{"title":"GradioUI","local":"smolagents.GradioUI","sections":[],"depth":3}],"depth":2},{"title":"मॉडल्स","local":"मडलस","sections":[{"title":"TransformersModel","local":"smolagents.TransformersModel","sections":[],"depth":3},{"title":"InferenceClientModel","local":"smolagents.InferenceClientModel","sections":[],"depth":3},{"title":"LiteLLMModel","local":"smolagents.LiteLLMModel","sections":[],"depth":3},{"title":"OpenAiModel","local":"openaimodel","sections":[],"depth":3}],"depth":2},{"title":"Prompts","local":"smolagents.PromptTemplates","sections":[],"depth":2}],"depth":1}';function Nl(j){return vl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Sl extends Ml{constructor(_){super(),$l(this,_,Nl,jl,bl,{})}}export{Sl as component};
