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 c,t as g,o as p,p as u}from"../chunks/index.a7c1a7a1.js";import{T as _l,D as w,E as Xo}from"../chunks/ExampleCodeBlock.9575acf3.js";import{C as xl,H as S,E as wl}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.497ce585.js";import{C as V}from"../chunks/CodeBlock.3168271d.js";function Tl(U){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(U){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(U){let _,I="Example:",$,b,T;return b=new V({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),c(b,h,C),T=!0},p:qn,i(h){T||(g(b.$$.fragment,h),T=!0)},o(h){p(b.$$.fragment,h),T=!1},d(h){h&&(n(_),n($)),u(b,h)}}}function kl(U){let _,I="Example:",$,b,T;return b=new V({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),c(b,h,C),T=!0},p:qn,i(h){T||(g(b.$$.fragment,h),T=!0)},o(h){p(b.$$.fragment,h),T=!1},d(h){h&&(n(_),n($)),u(b,h)}}}function Jl(U){let _,I="Example:",$,b,T;return b=new V({props:{code:"ZW5naW5lJTIwJTNEJTIwVHJhbnNmb3JtZXJzTW9kZWwoJTBBJTIwJTIwJTIwJTIwbW9kZWxfaWQlM0QlMjJRd2VuJTJGUXdlbjIuNS1Db2Rlci0zMkItSW5zdHJ1Y3QlMjIlMkMlMEElMjAlMjAlMjAlMjBkZXZpY2UlM0QlMjJjdWRhJTIyJTJDJTBBJTIwJTIwJTIwJTIwbWF4X25ld190b2tlbnMlM0Q1MDAwJTJDJTBBKSUwQW1lc3NhZ2VzJTIwJTNEJTIwJTVCJTdCJTIycm9sZSUyMiUzQSUyMCUyMnVzZXIlMjIlMkMlMjAlMjJjb250ZW50JTIyJTNBJTIwJTIyRXhwbGFpbiUyMHF1YW50dW0lMjBtZWNoYW5pY3MlMjBpbiUyMHNpbXBsZSUyMHRlcm1zLiUyMiU3RCU1RCUwQXJlc3BvbnNlJTIwJTNEJTIwZW5naW5lKG1lc3NhZ2VzJTJDJTIwc3RvcF9zZXF1ZW5jZXMlM0QlNUIlMjJFTkQlMjIlNUQpJTBBcHJpbnQocmVzcG9uc2Up",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>engine = TransformersModel(
<span class="hljs-meta">... </span>    model_id=<span class="hljs-string">&quot;Qwen/Qwen2.5-Coder-32B-Instruct&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),c(b,h,C),T=!0},p:qn,i(h){T||(g(b.$$.fragment,h),T=!0)},o(h){p(b.$$.fragment,h),T=!1},d(h){h&&(n(_),n($)),u(b,h)}}}function jl(U){let _,I="Example:",$,b,T;return b=new V({props:{code:"ZW5naW5lJTIwJTNEJTIwSW5mZXJlbmNlQ2xpZW50TW9kZWwoJTBBJTIwJTIwJTIwJTIwbW9kZWxfaWQlM0QlMjJRd2VuJTJGUXdlbjIuNS1Db2Rlci0zMkItSW5zdHJ1Y3QlMjIlMkMlMEElMjAlMjAlMjAlMjBwcm92aWRlciUzRCUyMm5lYml1cyUyMiUyQyUwQSUyMCUyMCUyMCUyMHRva2VuJTNEJTIyeW91cl9oZl90b2tlbl9oZXJlJTIyJTJDJTBBJTIwJTIwJTIwJTIwbWF4X3Rva2VucyUzRDUwMDAlMkMlMEEpJTBBbWVzc2FnZXMlMjAlM0QlMjAlNUIlN0IlMjJyb2xlJTIyJTNBJTIwJTIydXNlciUyMiUyQyUyMCUyMmNvbnRlbnQlMjIlM0ElMjAlMjJFeHBsYWluJTIwcXVhbnR1bSUyMG1lY2hhbmljcyUyMGluJTIwc2ltcGxlJTIwdGVybXMuJTIyJTdEJTVEJTBBcmVzcG9uc2UlMjAlM0QlMjBlbmdpbmUobWVzc2FnZXMlMkMlMjBzdG9wX3NlcXVlbmNlcyUzRCU1QiUyMkVORCUyMiU1RCklMEFwcmludChyZXNwb25zZSk=",highlighted:`<span class="hljs-meta">&gt;&gt;&gt; </span>engine = InferenceClientModel(
<span class="hljs-meta">... </span>    model_id=<span class="hljs-string">&quot;Qwen/Qwen2.5-Coder-32B-Instruct&quot;</span>,
<span class="hljs-meta">... </span>    provider=<span class="hljs-string">&quot;nebius&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),c(b,h,C),T=!0},p:qn,i(h){T||(g(b.$$.fragment,h),T=!0)},o(h){p(b.$$.fragment,h),T=!1},d(h){h&&(n(_),n($)),u(b,h)}}}function Ul(U){let _,I,$,b,T,h,C,Sn,Y,Vn,xe,ua=`Agents और tools के बारे में अधिक जानने के लिए <a href="../index">introductory guide</a> पढ़ना सुनिश्चित करें।
यह पेज underlying क्लासेज के लिए API docs को शामिल करता है।`,Wn,we,Zn,Te,ha='हमारे एजेंट्स <a href="/docs/smolagents/v1.22.0/hi/reference/agents#smolagents.MultiStepAgent">MultiStepAgent</a> से इनहेरिट करते हैं, जिसका अर्थ है कि वे कई चरणों में कार्य कर सकते हैं, प्रत्येक चरण में एक विचार, फिर एक टूल कॉल और एक्जीक्यूशन शामिल होता है। <a href="../conceptual_guides/react">इस कॉन्सेप्चुअल गाइड</a> में अधिक पढ़ें।',En,Ce,fa="हम मुख्य <code>Agent</code> क्लास पर आधारित दो प्रकार के एजेंट्स प्रदान करते हैं।",Bn,Ie,_a='<li><a href="/docs/smolagents/v1.22.0/hi/reference/agents#smolagents.CodeAgent">CodeAgent</a> डिफ़ॉल्ट एजेंट है, यह अपने टूल कॉल्स को Python कोड में लिखता है।</li> <li><a href="/docs/smolagents/v1.22.0/hi/reference/agents#smolagents.ToolCallingAgent">ToolCallingAgent</a> अपने टूल कॉल्स को JSON में लिखता है।</li>',Dn,ke,ba="दोनों को इनिशियलाइजेशन पर <code>model</code> और टूल्स की सूची <code>tools</code> आर्गुमेंट्स की आवश्यकता होती है।",Gn,Je,Qn,v,je,Yo,Et,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,Ue,Ko,Bt,Ma="Parse action from the LLM output",es,K,Ae,ts,Dt,$a="Create agent from a dictionary representation.",ns,ee,Ne,os,Gt,ya="Loads an agent from a local folder.",ss,W,Le,as,Qt,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.",cs,se,Se,gs,Ft,Ca="Provide the final answer to the task, based on the logs of the agent’s interactions.",ps,ae,Ve,us,Rt,Ia="Upload the agent to the Hub.",hs,le,We,fs,Xt,ka="Prints a pretty replay of the agent’s steps.",_s,Z,Ze,bs,Yt,Ja="Run the agent for the given task.",vs,re,Ms,E,Ee,$s,Ot,ja="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,Ua=`<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,Be,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,De,Cs,tn,Na="Convert the agent to a dictionary representation.",Is,de,Ge,ks,nn,La="Creates a rich tree visualization of the agent’s structure.",Js,ce,Qe,js,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,Us,sn,Pa="In this agent, the tool calls will be formulated by the LLM in code format, then parsed and executed.",As,ge,ze,Ns,an,Sa="Clean up resources used by the agent, such as the remote Python executor.",Ls,pe,Fe,qs,ln,Va="Create CodeAgent from a dictionary representation.",zn,N,Re,Ps,rn,Wa="This agent uses JSON-like tool calls, using method <code>model.get_tool_call</code> to leverage the LLM engine’s tool calling capabilities.",Ss,B,Xe,Vs,mn,Za="Execute a tool or managed agent with the provided arguments.",Ws,dn,Ea="The arguments are replaced with the actual values from the state if they refer to state variables.",Zs,ue,Ye,Es,cn,Ba="Process tool calls from the model output and update agent memory.",Fn,Oe,Rn,Q,Ke,Bs,gn,Da="Runs an agent with the given task and streams the messages from the agent as gradio ChatMessages.",Xn,et,Yn,k,tt,Ds,pn,Ga='Gradio interface for interacting with a <a href="/docs/smolagents/v1.22.0/hi/reference/agents#smolagents.MultiStepAgent">MultiStepAgent</a>.',Gs,un,Qa=`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>.`,Qs,he,Hs,fe,nt,zs,hn,Ha="Launch the Gradio app with the agent interface.",Fs,D,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,ct,lo,gt,el="सुविधा के लिए, हमने एक <code>TransformersModel</code> जोड़ा है जो इनिशियलाइजेशन पर दिए गए model_id के लिए एक लोकल <code>transformers</code> पाइपलाइन बनाकर ऊपर के बिंदुओं को लागू करता है।",ro,pt,io,ut,mo,j,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,co,_t,go,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,cl="Create the LiteLLM client.",Mo,kt,$o,Jt,gl=`यह क्लास आपको किसी भी OpenAIServer कम्पैटिबल मॉडल को कॉल करने देती है।
यहाँ बताया गया है कि आप इसे कैसे सेट कर सकते हैं (आप दूसरे सर्वर को पॉइंट करने के लिए <code>api_base</code> url को कस्टमाइज़ कर सकते हैं):`,yo,jt,xo,Ut,wo,H,At,da,Cn,pl="Prompt templates for the agent.",To,z,Nt,ca,In,ul="Prompt templates for the planning step.",Co,F,Lt,ga,kn,hl="Prompt templates for the managed agent.",Io,R,qt,pa,Jn,fl="Prompt templates for the final answer.",ko,Pt,Jo,Pn,jo;return T=new xl({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),C=new S({props:{title:"Agents",local:"agents",headingTag:"h1"}}),Y=new _l({props:{warning:!0,$$slots:{default:[Tl]},$$scope:{ctx:U}}}),we=new S({props:{title:"Agents",local:"agents",headingTag:"h2"}}),Je=new S({props:{title:"Agents की क्लासेज",local:"smolagents.MultiStepAgent",headingTag:"h3"}}),je=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/v1.22.0/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/v1.22.0/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 and the agent&#x2019;s memory 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/v1.22.0/src/smolagents/agents.py#L266"}}),Ue=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/v1.22.0/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/v1.22.0/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/v1.22.0/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/v1.22.0/src/smolagents/agents.py#L1048"}}),te=new _l({props:{warning:!0,$$slots:{default:[Cl]},$$scope:{ctx:U}}}),qe=new w({props:{name:"initialize_system_prompt",anchor:"smolagents.MultiStepAgent.initialize_system_prompt",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/agents.py#L743"}}),Pe=new w({props:{name:"interrupt",anchor:"smolagents.MultiStepAgent.interrupt",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/agents.py#L748"}}),Se=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/v1.22.0/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>
`}}),Ve=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/v1.22.0/src/smolagents/agents.py#L1134"}}),We=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/v1.22.0/src/smolagents/agents.py#L853"}}),Ze=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/v1.22.0/src/smolagents/agents.py#L433"}}),re=new Xo({props:{anchor:"smolagents.MultiStepAgent.run.example",$$slots:{default:[Il]},$$scope:{ctx:U}}}),Ee=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/v1.22.0/src/smolagents/agents.py#L886"}}),Be=new w({props:{name:"step",anchor:"smolagents.MultiStepAgent.step",parameters:[{name:"memory_step",val:": ActionStep"}],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/agents.py#L776"}}),De=new w({props:{name:"to_dict",anchor:"smolagents.MultiStepAgent.to_dict",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/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>
`}}),Ge=new w({props:{name:"visualize",anchor:"smolagents.MultiStepAgent.visualize",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/agents.py#L849"}}),Qe=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/v1.22.0/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_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/v1.22.0/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/v1.22.0/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_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/v1.22.0/src/smolagents/agents.py#L1483"}}),ze=new w({props:{name:"cleanup",anchor:"smolagents.CodeAgent.cleanup",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/agents.py#L1571"}}),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/v1.22.0/src/smolagents/agents.py#L1754",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/v1.22.0/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/v1.22.0/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/v1.22.0/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/v1.22.0/src/smolagents/agents.py#L1431"}}),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/v1.22.0/src/smolagents/agents.py#L1340",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ToolCall | ToolOutput</code></p>
`,isYield:!0}}),Oe=new S({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/v1.22.0/src/smolagents/gradio_ui.py#L248"}}),et=new S({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/v1.22.0/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/v1.22.0/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:U}}}),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/v1.22.0/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/v1.22.0/src/smolagents/gradio_ui.py#L356"}}),st=new S({props:{title:"मॉडल्स",local:"मडलस",headingTag:"h2"}}),mt=new V({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}}),ct=new S({props:{title:"TransformersModel",local:"smolagents.TransformersModel",headingTag:"h3"}}),pt=new V({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 V({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/Qwen2.5-Coder-32B-Instruct&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/v1.22.0/src/smolagents/models.py#L782",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:U}}}),_t=new S({props:{title:"InferenceClientModel",local:"smolagents.InferenceClientModel",headingTag:"h3"}}),vt=new V({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 V({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/Qwen2.5-Coder-32B-Instruct'"},{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/Qwen2.5-Coder-32B-Instruct&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/Qwen2.5-Coder-32B-Instruct&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/v1.22.0/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/v1.22.0/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/v1.22.0/src/smolagents/models.py#L1341",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:[jl]},$$scope:{ctx:U}}}),yt=new w({props:{name:"create_client",anchor:"smolagents.InferenceClientModel.create_client",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/models.py#L1432"}}),xt=new S({props:{title:"LiteLLMModel",local:"smolagents.LiteLLMModel",headingTag:"h3"}}),Tt=new V({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/v1.22.0/src/smolagents/models.py#L1098"}}),It=new w({props:{name:"create_client",anchor:"smolagents.LiteLLMModel.create_client",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/models.py#L1148"}}),kt=new S({props:{title:"OpenAiServerModel",local:"openaiservermodel",headingTag:"h3"}}),jt=new V({props:{code:"aW1wb3J0JTIwb3MlMEFmcm9tJTIwc21vbGFnZW50cyUyMGltcG9ydCUyME9wZW5BSVNlcnZlck1vZGVsJTBBJTBBbW9kZWwlMjAlM0QlMjBPcGVuQUlTZXJ2ZXJNb2RlbCglMEElMjAlMjAlMjAlMjBtb2RlbF9pZCUzRCUyMmdwdC00byUyMiUyQyUwQSUyMCUyMCUyMCUyMGFwaV9iYXNlJTNEJTIyaHR0cHMlM0ElMkYlMkZhcGkub3BlbmFpLmNvbSUyRnYxJTIyJTJDJTBBJTIwJTIwJTIwJTIwYXBpX2tleSUzRG9zLmVudmlyb24lNUIlMjJPUEVOQUlfQVBJX0tFWSUyMiU1RCUyQyUwQSk=",highlighted:`<span class="hljs-keyword">import</span> os
<span class="hljs-keyword">from</span> smolagents <span class="hljs-keyword">import</span> OpenAIServerModel

model = OpenAIServerModel(
    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}}),Ut=new S({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/v1.22.0/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/v1.22.0/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/v1.22.0/hi/reference/agents#smolagents.FinalAnswerPromptTemplate">FinalAnswerPromptTemplate</a>) &#x2014; Final answer prompt templates.',name:"final_answer"}],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/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/v1.22.0/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/v1.22.0/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/v1.22.0/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),Sn=o(),m(Y.$$.fragment),Vn=o(),xe=l("p"),xe.innerHTML=ua,Wn=o(),m(we.$$.fragment),Zn=o(),Te=l("p"),Te.innerHTML=ha,En=o(),Ce=l("p"),Ce.innerHTML=fa,Bn=o(),Ie=l("ul"),Ie.innerHTML=_a,Dn=o(),ke=l("p"),ke.innerHTML=ba,Gn=o(),m(Je.$$.fragment),Qn=o(),v=l("div"),m(je.$$.fragment),Yo=o(),Et=l("p"),Et.textContent=va,Oo=o(),O=l("div"),m(Ue.$$.fragment),Ko=o(),Bt=l("p"),Bt.textContent=Ma,es=o(),K=l("div"),m(Ae.$$.fragment),ts=o(),Dt=l("p"),Dt.textContent=$a,ns=o(),ee=l("div"),m(Ne.$$.fragment),os=o(),Gt=l("p"),Gt.textContent=ya,ss=o(),W=l("div"),m(Le.$$.fragment),as=o(),Qt=l("p"),Qt.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,cs=o(),se=l("div"),m(Se.$$.fragment),gs=o(),Ft=l("p"),Ft.textContent=Ca,ps=o(),ae=l("div"),m(Ve.$$.fragment),us=o(),Rt=l("p"),Rt.textContent=Ia,hs=o(),le=l("div"),m(We.$$.fragment),fs=o(),Xt=l("p"),Xt.textContent=ka,_s=o(),Z=l("div"),m(Ze.$$.fragment),bs=o(),Yt=l("p"),Yt.textContent=Ja,vs=o(),m(re.$$.fragment),Ms=o(),E=l("div"),m(Ee.$$.fragment),$s=o(),Ot=l("p"),Ot.innerHTML=ja,ys=o(),Kt=l("ul"),Kt.innerHTML=Ua,xs=o(),ie=l("div"),m(Be.$$.fragment),ws=o(),en=l("p"),en.textContent=Aa,Ts=o(),me=l("div"),m(De.$$.fragment),Cs=o(),tn=l("p"),tn.textContent=Na,Is=o(),de=l("div"),m(Ge.$$.fragment),ks=o(),nn=l("p"),nn.textContent=La,Js=o(),ce=l("div"),m(Qe.$$.fragment),js=o(),on=l("p"),on.textContent=qa,Hn=o(),A=l("div"),m(He.$$.fragment),Us=o(),sn=l("p"),sn.textContent=Pa,As=o(),ge=l("div"),m(ze.$$.fragment),Ns=o(),an=l("p"),an.textContent=Sa,Ls=o(),pe=l("div"),m(Fe.$$.fragment),qs=o(),ln=l("p"),ln.textContent=Va,zn=o(),N=l("div"),m(Re.$$.fragment),Ps=o(),rn=l("p"),rn.innerHTML=Wa,Ss=o(),B=l("div"),m(Xe.$$.fragment),Vs=o(),mn=l("p"),mn.textContent=Za,Ws=o(),dn=l("p"),dn.textContent=Ea,Zs=o(),ue=l("div"),m(Ye.$$.fragment),Es=o(),cn=l("p"),cn.textContent=Ba,Fn=o(),m(Oe.$$.fragment),Rn=o(),Q=l("div"),m(Ke.$$.fragment),Bs=o(),gn=l("p"),gn.textContent=Da,Xn=o(),m(et.$$.fragment),Yn=o(),k=l("div"),m(tt.$$.fragment),Ds=o(),pn=l("p"),pn.innerHTML=Ga,Gs=o(),un=l("p"),un.innerHTML=Qa,Qs=o(),m(he.$$.fragment),Hs=o(),fe=l("div"),m(nt.$$.fragment),zs=o(),hn=l("p"),hn.textContent=Ha,Fs=o(),D=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(ct.$$.fragment),lo=o(),gt=l("p"),gt.innerHTML=el,ro=o(),m(pt.$$.fragment),io=o(),m(ut.$$.fragment),mo=o(),j=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),co=o(),m(_t.$$.fragment),go=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=cl,Mo=o(),m(kt.$$.fragment),$o=o(),Jt=l("p"),Jt.innerHTML=gl,yo=o(),m(jt.$$.fragment),xo=o(),m(Ut.$$.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),ca=o(),In=l("p"),In.textContent=ul,Co=o(),F=l("div"),m(Lt.$$.fragment),ga=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),Sn=s(e),d(Y.$$.fragment,e),Vn=s(e),xe=r(e,"P",{"data-svelte-h":!0}),f(xe)!=="svelte-530l0l"&&(xe.innerHTML=ua),Wn=s(e),d(we.$$.fragment,e),Zn=s(e),Te=r(e,"P",{"data-svelte-h":!0}),f(Te)!=="svelte-ww9dor"&&(Te.innerHTML=ha),En=s(e),Ce=r(e,"P",{"data-svelte-h":!0}),f(Ce)!=="svelte-pwzn35"&&(Ce.innerHTML=fa),Bn=s(e),Ie=r(e,"UL",{"data-svelte-h":!0}),f(Ie)!=="svelte-1xsa1uh"&&(Ie.innerHTML=_a),Dn=s(e),ke=r(e,"P",{"data-svelte-h":!0}),f(ke)!=="svelte-12okbux"&&(ke.innerHTML=ba),Gn=s(e),d(Je.$$.fragment,e),Qn=s(e),v=r(e,"DIV",{class:!0});var y=x(v);d(je.$$.fragment,y),Yo=s(y),Et=r(y,"P",{"data-svelte-h":!0}),f(Et)!=="svelte-d5y990"&&(Et.textContent=va),Oo=s(y),O=r(y,"DIV",{class:!0});var St=x(O);d(Ue.$$.fragment,St),Ko=s(St),Bt=r(St,"P",{"data-svelte-h":!0}),f(Bt)!=="svelte-104knry"&&(Bt.textContent=Ma),St.forEach(n),es=s(y),K=r(y,"DIV",{class:!0});var Vt=x(K);d(Ae.$$.fragment,Vt),ts=s(Vt),Dt=r(Vt,"P",{"data-svelte-h":!0}),f(Dt)!=="svelte-1kbba9r"&&(Dt.textContent=$a),Vt.forEach(n),ns=s(y),ee=r(y,"DIV",{class:!0});var Wt=x(ee);d(Ne.$$.fragment,Wt),os=s(Wt),Gt=r(Wt,"P",{"data-svelte-h":!0}),f(Gt)!=="svelte-1f5g0y1"&&(Gt.textContent=ya),Wt.forEach(n),ss=s(y),W=r(y,"DIV",{class:!0});var X=x(W);d(Le.$$.fragment,X),as=s(X),Qt=r(X,"P",{"data-svelte-h":!0}),f(Qt)!=="svelte-px853z"&&(Qt.textContent=xa),ls=s(X),d(te.$$.fragment,X),X.forEach(n),rs=s(y),ne=r(y,"DIV",{class:!0});var Zt=x(ne);d(qe.$$.fragment,Zt),is=s(Zt),Ht=r(Zt,"P",{"data-svelte-h":!0}),f(Ht)!=="svelte-aqxmk9"&&(Ht.textContent=wa),Zt.forEach(n),ms=s(y),oe=r(y,"DIV",{class:!0});var Uo=x(oe);d(Pe.$$.fragment,Uo),ds=s(Uo),zt=r(Uo,"P",{"data-svelte-h":!0}),f(zt)!=="svelte-vma7te"&&(zt.textContent=Ta),Uo.forEach(n),cs=s(y),se=r(y,"DIV",{class:!0});var Ao=x(se);d(Se.$$.fragment,Ao),gs=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(Ve.$$.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(We.$$.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),Z=r(y,"DIV",{class:!0});var jn=x(Z);d(Ze.$$.fragment,jn),bs=s(jn),Yt=r(jn,"P",{"data-svelte-h":!0}),f(Yt)!=="svelte-1rclfo7"&&(Yt.textContent=Ja),vs=s(jn),d(re.$$.fragment,jn),jn.forEach(n),Ms=s(y),E=r(y,"DIV",{class:!0});var Un=x(E);d(Ee.$$.fragment,Un),$s=s(Un),Ot=r(Un,"P",{"data-svelte-h":!0}),f(Ot)!=="svelte-1uw6gyw"&&(Ot.innerHTML=ja),ys=s(Un),Kt=r(Un,"UL",{"data-svelte-h":!0}),f(Kt)!=="svelte-11tnr4k"&&(Kt.innerHTML=Ua),Un.forEach(n),xs=s(y),ie=r(y,"DIV",{class:!0});var qo=x(ie);d(Be.$$.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(De.$$.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 So=x(de);d(Ge.$$.fragment,So),ks=s(So),nn=r(So,"P",{"data-svelte-h":!0}),f(nn)!=="svelte-em4ik4"&&(nn.textContent=La),So.forEach(n),Js=s(y),ce=r(y,"DIV",{class:!0});var Vo=x(ce);d(Qe.$$.fragment,Vo),js=s(Vo),on=r(Vo,"P",{"data-svelte-h":!0}),f(on)!=="svelte-jg60qx"&&(on.textContent=qa),Vo.forEach(n),y.forEach(n),Hn=s(e),A=r(e,"DIV",{class:!0});var $e=x(A);d(He.$$.fragment,$e),Us=s($e),sn=r($e,"P",{"data-svelte-h":!0}),f(sn)!=="svelte-1mxsa12"&&(sn.textContent=Pa),As=s($e),ge=r($e,"DIV",{class:!0});var Wo=x(ge);d(ze.$$.fragment,Wo),Ns=s(Wo),an=r(Wo,"P",{"data-svelte-h":!0}),f(an)!=="svelte-1dq3hsa"&&(an.textContent=Sa),Wo.forEach(n),Ls=s($e),pe=r($e,"DIV",{class:!0});var Zo=x(pe);d(Fe.$$.fragment,Zo),qs=s(Zo),ln=r(Zo,"P",{"data-svelte-h":!0}),f(ln)!=="svelte-1bap6qm"&&(ln.textContent=Va),Zo.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=Wa),Ss=s(ye),B=r(ye,"DIV",{class:!0});var An=x(B);d(Xe.$$.fragment,An),Vs=s(An),mn=r(An,"P",{"data-svelte-h":!0}),f(mn)!=="svelte-yjyhgb"&&(mn.textContent=Za),Ws=s(An),dn=r(An,"P",{"data-svelte-h":!0}),f(dn)!=="svelte-1l33w20"&&(dn.textContent=Ea),An.forEach(n),Zs=s(ye),ue=r(ye,"DIV",{class:!0});var Eo=x(ue);d(Ye.$$.fragment,Eo),Es=s(Eo),cn=r(Eo,"P",{"data-svelte-h":!0}),f(cn)!=="svelte-132xt9l"&&(cn.textContent=Ba),Eo.forEach(n),ye.forEach(n),Fn=s(e),d(Oe.$$.fragment,e),Rn=s(e),Q=r(e,"DIV",{class:!0});var Bo=x(Q);d(Ke.$$.fragment,Bo),Bs=s(Bo),gn=r(Bo,"P",{"data-svelte-h":!0}),f(gn)!=="svelte-3yyclm"&&(gn.textContent=Da),Bo.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),Ds=s(L),pn=r(L,"P",{"data-svelte-h":!0}),f(pn)!=="svelte-111fce9"&&(pn.innerHTML=Ga),Gs=s(L),un=r(L,"P",{"data-svelte-h":!0}),f(un)!=="svelte-i76913"&&(un.innerHTML=Qa),Qs=s(L),d(he.$$.fragment,L),Hs=s(L),fe=r(L,"DIV",{class:!0});var Do=x(fe);d(nt.$$.fragment,Do),zs=s(Do),hn=r(Do,"P",{"data-svelte-h":!0}),f(hn)!=="svelte-1jjhzc2"&&(hn.textContent=Ha),Do.forEach(n),Fs=s(L),D=r(L,"DIV",{class:!0});var Nn=x(D);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(ct.$$.fragment,e),lo=s(e),gt=r(e,"P",{"data-svelte-h":!0}),f(gt)!=="svelte-bqff4p"&&(gt.innerHTML=el),ro=s(e),d(pt.$$.fragment,e),io=s(e),d(ut.$$.fragment,e),mo=s(e),j=r(e,"DIV",{class:!0});var G=x(j);d(ht.$$.fragment,G),Ys=s(G),bn=r(G,"P",{"data-svelte-h":!0}),f(bn)!=="svelte-1ex1ahr"&&(bn.textContent=tl),Os=s(G),vn=r(G,"P",{"data-svelte-h":!0}),f(vn)!=="svelte-1140acn"&&(vn.textContent=nl),Ks=s(G),ft=r(G,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),f(ft)!=="svelte-103z9yw"&&(ft.innerHTML=ol),ea=s(G),d(_e.$$.fragment,G),G.forEach(n),co=s(e),d(_t.$$.fragment,e),go=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 Go=x(ve);d(yt.$$.fragment,Go),la=s(Go),xn=r(Go,"P",{"data-svelte-h":!0}),f(xn)!=="svelte-ym2f5u"&&(xn.textContent=il),Go.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 Qo=x(Me);d(It.$$.fragment,Qo),ma=s(Qo),Tn=r(Qo,"P",{"data-svelte-h":!0}),f(Tn)!=="svelte-12r14rd"&&(Tn.textContent=cl),Qo.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=gl),yo=s(e),d(jt.$$.fragment,e),xo=s(e),d(Ut.$$.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),ca=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),ga=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(W,"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(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(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(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(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(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(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(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(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(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(Q,"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(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(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(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(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),c(T,e,a),i(e,h,a),c(C,e,a),i(e,Sn,a),c(Y,e,a),i(e,Vn,a),i(e,xe,a),i(e,Wn,a),c(we,e,a),i(e,Zn,a),i(e,Te,a),i(e,En,a),i(e,Ce,a),i(e,Bn,a),i(e,Ie,a),i(e,Dn,a),i(e,ke,a),i(e,Gn,a),c(Je,e,a),i(e,Qn,a),i(e,v,a),c(je,v,null),t(v,Yo),t(v,Et),t(v,Oo),t(v,O),c(Ue,O,null),t(O,Ko),t(O,Bt),t(v,es),t(v,K),c(Ae,K,null),t(K,ts),t(K,Dt),t(v,ns),t(v,ee),c(Ne,ee,null),t(ee,os),t(ee,Gt),t(v,ss),t(v,W),c(Le,W,null),t(W,as),t(W,Qt),t(W,ls),c(te,W,null),t(v,rs),t(v,ne),c(qe,ne,null),t(ne,is),t(ne,Ht),t(v,ms),t(v,oe),c(Pe,oe,null),t(oe,ds),t(oe,zt),t(v,cs),t(v,se),c(Se,se,null),t(se,gs),t(se,Ft),t(v,ps),t(v,ae),c(Ve,ae,null),t(ae,us),t(ae,Rt),t(v,hs),t(v,le),c(We,le,null),t(le,fs),t(le,Xt),t(v,_s),t(v,Z),c(Ze,Z,null),t(Z,bs),t(Z,Yt),t(Z,vs),c(re,Z,null),t(v,Ms),t(v,E),c(Ee,E,null),t(E,$s),t(E,Ot),t(E,ys),t(E,Kt),t(v,xs),t(v,ie),c(Be,ie,null),t(ie,ws),t(ie,en),t(v,Ts),t(v,me),c(De,me,null),t(me,Cs),t(me,tn),t(v,Is),t(v,de),c(Ge,de,null),t(de,ks),t(de,nn),t(v,Js),t(v,ce),c(Qe,ce,null),t(ce,js),t(ce,on),i(e,Hn,a),i(e,A,a),c(He,A,null),t(A,Us),t(A,sn),t(A,As),t(A,ge),c(ze,ge,null),t(ge,Ns),t(ge,an),t(A,Ls),t(A,pe),c(Fe,pe,null),t(pe,qs),t(pe,ln),i(e,zn,a),i(e,N,a),c(Re,N,null),t(N,Ps),t(N,rn),t(N,Ss),t(N,B),c(Xe,B,null),t(B,Vs),t(B,mn),t(B,Ws),t(B,dn),t(N,Zs),t(N,ue),c(Ye,ue,null),t(ue,Es),t(ue,cn),i(e,Fn,a),c(Oe,e,a),i(e,Rn,a),i(e,Q,a),c(Ke,Q,null),t(Q,Bs),t(Q,gn),i(e,Xn,a),c(et,e,a),i(e,Yn,a),i(e,k,a),c(tt,k,null),t(k,Ds),t(k,pn),t(k,Gs),t(k,un),t(k,Qs),c(he,k,null),t(k,Hs),t(k,fe),c(nt,fe,null),t(fe,zs),t(fe,hn),t(k,Fs),t(k,D),c(ot,D,null),t(D,Rs),t(D,fn),t(D,Xs),t(D,_n),i(e,On,a),c(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),c(mt,e,a),i(e,so,a),i(e,dt,a),i(e,ao,a),c(ct,e,a),i(e,lo,a),i(e,gt,a),i(e,ro,a),c(pt,e,a),i(e,io,a),c(ut,e,a),i(e,mo,a),i(e,j,a),c(ht,j,null),t(j,Ys),t(j,bn),t(j,Os),t(j,vn),t(j,Ks),t(j,ft),t(j,ea),c(_e,j,null),i(e,co,a),c(_t,e,a),i(e,go,a),i(e,bt,a),i(e,po,a),c(vt,e,a),i(e,uo,a),c(Mt,e,a),i(e,ho,a),i(e,J,a),c($t,J,null),t(J,ta),t(J,Mn),t(J,na),t(J,$n),t(J,oa),t(J,yn),t(J,sa),c(be,J,null),t(J,aa),t(J,ve),c(yt,ve,null),t(ve,la),t(ve,xn),i(e,fo,a),c(xt,e,a),i(e,_o,a),i(e,wt,a),i(e,bo,a),c(Tt,e,a),i(e,vo,a),i(e,P,a),c(Ct,P,null),t(P,ra),t(P,wn),t(P,ia),t(P,Me),c(It,Me,null),t(Me,ma),t(Me,Tn),i(e,Mo,a),c(kt,e,a),i(e,$o,a),i(e,Jt,a),i(e,yo,a),c(jt,e,a),i(e,xo,a),c(Ut,e,a),i(e,wo,a),i(e,H,a),c(At,H,null),t(H,da),t(H,Cn),i(e,To,a),i(e,z,a),c(Nt,z,null),t(z,ca),t(z,In),i(e,Co,a),i(e,F,a),c(Lt,F,null),t(F,ga),t(F,kn),i(e,Io,a),i(e,R,a),c(qt,R,null),t(R,pa),t(R,Jn),i(e,ko,a),c(Pt,e,a),i(e,Jo,a),i(e,Pn,a),jo=!0},p(e,[a]){const y={};a&2&&(y.$$scope={dirty:a,ctx:e}),Y.$set(y);const St={};a&2&&(St.$$scope={dirty:a,ctx:e}),te.$set(St);const Vt={};a&2&&(Vt.$$scope={dirty:a,ctx:e}),re.$set(Vt);const Wt={};a&2&&(Wt.$$scope={dirty:a,ctx:e}),he.$set(Wt);const X={};a&2&&(X.$$scope={dirty:a,ctx:e}),_e.$set(X);const Zt={};a&2&&(Zt.$$scope={dirty:a,ctx:e}),be.$set(Zt)},i(e){jo||(g(T.$$.fragment,e),g(C.$$.fragment,e),g(Y.$$.fragment,e),g(we.$$.fragment,e),g(Je.$$.fragment,e),g(je.$$.fragment,e),g(Ue.$$.fragment,e),g(Ae.$$.fragment,e),g(Ne.$$.fragment,e),g(Le.$$.fragment,e),g(te.$$.fragment,e),g(qe.$$.fragment,e),g(Pe.$$.fragment,e),g(Se.$$.fragment,e),g(Ve.$$.fragment,e),g(We.$$.fragment,e),g(Ze.$$.fragment,e),g(re.$$.fragment,e),g(Ee.$$.fragment,e),g(Be.$$.fragment,e),g(De.$$.fragment,e),g(Ge.$$.fragment,e),g(Qe.$$.fragment,e),g(He.$$.fragment,e),g(ze.$$.fragment,e),g(Fe.$$.fragment,e),g(Re.$$.fragment,e),g(Xe.$$.fragment,e),g(Ye.$$.fragment,e),g(Oe.$$.fragment,e),g(Ke.$$.fragment,e),g(et.$$.fragment,e),g(tt.$$.fragment,e),g(he.$$.fragment,e),g(nt.$$.fragment,e),g(ot.$$.fragment,e),g(st.$$.fragment,e),g(mt.$$.fragment,e),g(ct.$$.fragment,e),g(pt.$$.fragment,e),g(ut.$$.fragment,e),g(ht.$$.fragment,e),g(_e.$$.fragment,e),g(_t.$$.fragment,e),g(vt.$$.fragment,e),g(Mt.$$.fragment,e),g($t.$$.fragment,e),g(be.$$.fragment,e),g(yt.$$.fragment,e),g(xt.$$.fragment,e),g(Tt.$$.fragment,e),g(Ct.$$.fragment,e),g(It.$$.fragment,e),g(kt.$$.fragment,e),g(jt.$$.fragment,e),g(Ut.$$.fragment,e),g(At.$$.fragment,e),g(Nt.$$.fragment,e),g(Lt.$$.fragment,e),g(qt.$$.fragment,e),g(Pt.$$.fragment,e),jo=!0)},o(e){p(T.$$.fragment,e),p(C.$$.fragment,e),p(Y.$$.fragment,e),p(we.$$.fragment,e),p(Je.$$.fragment,e),p(je.$$.fragment,e),p(Ue.$$.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(Se.$$.fragment,e),p(Ve.$$.fragment,e),p(We.$$.fragment,e),p(Ze.$$.fragment,e),p(re.$$.fragment,e),p(Ee.$$.fragment,e),p(Be.$$.fragment,e),p(De.$$.fragment,e),p(Ge.$$.fragment,e),p(Qe.$$.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(ct.$$.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(jt.$$.fragment,e),p(Ut.$$.fragment,e),p(At.$$.fragment,e),p(Nt.$$.fragment,e),p(Lt.$$.fragment,e),p(qt.$$.fragment,e),p(Pt.$$.fragment,e),jo=!1},d(e){e&&(n(I),n($),n(b),n(h),n(Sn),n(Vn),n(xe),n(Wn),n(Zn),n(Te),n(En),n(Ce),n(Bn),n(Ie),n(Dn),n(ke),n(Gn),n(Qn),n(v),n(Hn),n(A),n(zn),n(N),n(Fn),n(Rn),n(Q),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(gt),n(ro),n(io),n(mo),n(j),n(co),n(go),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(je),u(Ue),u(Ae),u(Ne),u(Le),u(te),u(qe),u(Pe),u(Se),u(Ve),u(We),u(Ze),u(re),u(Ee),u(Be),u(De),u(Ge),u(Qe),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(ct,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(jt,e),u(Ut,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":"OpenAiServerModel","local":"openaiservermodel","sections":[],"depth":3}],"depth":2},{"title":"Prompts","local":"smolagents.PromptTemplates","sections":[],"depth":2}],"depth":1}';function Nl(U){return vl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Wl extends Ml{constructor(_){super(),$l(this,_,Nl,Ul,bl,{})}}export{Wl as component};
