import{s as fl,o as _l,n as Ln}from"../chunks/scheduler.f6319a2a.js";import{S as bl,i as vl,g as l,s as o,r as d,A as Ml,h as r,f as n,c as s,j as x,u as c,x as f,k as M,y as t,a as i,v as g,d as p,t as u,w as h}from"../chunks/index.85aa684c.js";import{T as hl,D as w,E as zo}from"../chunks/ExampleCodeBlock.7120e9d6.js";import{C as V}from"../chunks/CodeBlock.3400fc53.js";import{H as S,E as $l}from"../chunks/getInferenceSnippets.0233181f.js";function yl(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:Ln,d($){$&&n(_)}}}function xl(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:Ln,d($){$&&n(_)}}}function wl(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(),d(b.$$.fragment)},l(m){_=r(m,"P",{"data-svelte-h":!0}),f(_)!=="svelte-11lpom8"&&(_.textContent=I),$=s(m),c(b.$$.fragment,m)},m(m,C){i(m,_,C),i(m,$,C),g(b,m,C),T=!0},p:Ln,i(m){T||(p(b.$$.fragment,m),T=!0)},o(m){u(b.$$.fragment,m),T=!1},d(m){m&&(n(_),n($)),h(b,m)}}}function Tl(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(),d(b.$$.fragment)},l(m){_=r(m,"P",{"data-svelte-h":!0}),f(_)!=="svelte-11lpom8"&&(_.textContent=I),$=s(m),c(b.$$.fragment,m)},m(m,C){i(m,_,C),i(m,$,C),g(b,m,C),T=!0},p:Ln,i(m){T||(p(b.$$.fragment,m),T=!0)},o(m){u(b.$$.fragment,m),T=!1},d(m){m&&(n(_),n($)),h(b,m)}}}function Cl(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(),d(b.$$.fragment)},l(m){_=r(m,"P",{"data-svelte-h":!0}),f(_)!=="svelte-11lpom8"&&(_.textContent=I),$=s(m),c(b.$$.fragment,m)},m(m,C){i(m,_,C),i(m,$,C),g(b,m,C),T=!0},p:Ln,i(m){T||(p(b.$$.fragment,m),T=!0)},o(m){u(b.$$.fragment,m),T=!1},d(m){m&&(n(_),n($)),h(b,m)}}}function Il(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(),d(b.$$.fragment)},l(m){_=r(m,"P",{"data-svelte-h":!0}),f(_)!=="svelte-11lpom8"&&(_.textContent=I),$=s(m),c(b.$$.fragment,m)},m(m,C){i(m,_,C),i(m,$,C),g(b,m,C),T=!0},p:Ln,i(m){T||(p(b.$$.fragment,m),T=!0)},o(m){u(b.$$.fragment,m),T=!1},d(m){m&&(n(_),n($)),h(b,m)}}}function kl(U){let _,I,$,b,T,m,C,Pn,ye,ga=`Agents और tools के बारे में अधिक जानने के लिए <a href="../index">introductory guide</a> पढ़ना सुनिश्चित करें।
यह पेज underlying क्लासेज के लिए API docs को शामिल करता है।`,Sn,xe,Vn,we,pa='हमारे एजेंट्स <a href="/docs/smolagents/v1.22.0/hi/reference/agents#smolagents.MultiStepAgent">MultiStepAgent</a> से इनहेरिट करते हैं, जिसका अर्थ है कि वे कई चरणों में कार्य कर सकते हैं, प्रत्येक चरण में एक विचार, फिर एक टूल कॉल और एक्जीक्यूशन शामिल होता है। <a href="../conceptual_guides/react">इस कॉन्सेप्चुअल गाइड</a> में अधिक पढ़ें।',Wn,Te,ua="हम मुख्य <code>Agent</code> क्लास पर आधारित दो प्रकार के एजेंट्स प्रदान करते हैं।",Zn,Ce,ha='<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>',En,Ie,fa="दोनों को इनिशियलाइजेशन पर <code>model</code> और टूल्स की सूची <code>tools</code> आर्गुमेंट्स की आवश्यकता होती है।",Bn,ke,Dn,v,Je,Ro,Zt,_a=`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).`,Xo,Y,je,Yo,Et,ba="Parse action from the LLM output",Oo,O,Ue,Ko,Bt,va="Create agent from a dictionary representation.",es,K,Ae,ts,Dt,Ma="Loads an agent from a local folder.",ns,W,Ne,os,Gt,$a="Loads an agent defined on the Hub.",ss,ee,as,te,Le,ls,Qt,ya="To be implemented in child classes",rs,ne,qe,is,Ht,xa="Interrupts the agent execution.",ms,oe,Pe,ds,Ft,wa="Provide the final answer to the task, based on the logs of the agent’s interactions.",cs,se,Se,gs,zt,Ta="Upload the agent to the Hub.",ps,ae,Ve,us,Rt,Ca="Prints a pretty replay of the agent’s steps.",hs,Z,We,fs,Xt,Ia="Run the agent for the given task.",_s,le,bs,E,Ze,vs,Yt,ka="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:",Ms,Ot,Ja=`<li>a <code>tools</code> folder containing the logic for each of the tools under <code>tools/{tool_name}.py</code>.</li> <li>a <code>managed_agents</code> folder containing the logic for each of the managed agents.</li> <li>an <code>agent.json</code> file containing a dictionary representing your agent.</li> <li>a <code>prompt.yaml</code> file containing the prompt templates used by your agent.</li> <li>an <code>app.py</code> file providing a UI for your agent when it is exported to a Space with <code>agent.push_to_hub()</code></li> <li>a <code>requirements.txt</code> containing the names of the modules used by your tool (as detected when inspecting its
code)</li>`,$s,re,Ee,ys,Kt,ja=`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.`,xs,ie,Be,ws,en,Ua="Convert the agent to a dictionary representation.",Ts,me,De,Cs,tn,Aa="Creates a rich tree visualization of the agent’s structure.",Is,de,Ge,ks,nn,Na=`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.`,Gn,A,Qe,Js,on,La="In this agent, the tool calls will be formulated by the LLM in code format, then parsed and executed.",js,ce,He,Us,sn,qa="Clean up resources used by the agent, such as the remote Python executor.",As,ge,Fe,Ns,an,Pa="Create CodeAgent from a dictionary representation.",Qn,N,ze,Ls,ln,Sa="This agent uses JSON-like tool calls, using method <code>model.get_tool_call</code> to leverage the LLM engine’s tool calling capabilities.",qs,B,Re,Ps,rn,Va="Execute a tool or managed agent with the provided arguments.",Ss,mn,Wa="The arguments are replaced with the actual values from the state if they refer to state variables.",Vs,pe,Xe,Ws,dn,Za="Process tool calls from the model output and update agent memory.",Hn,Ye,Fn,Q,Oe,Zs,cn,Ea="Runs an agent with the given task and streams the messages from the agent as gradio ChatMessages.",zn,Ke,Rn,k,et,Es,gn,Ba='Gradio interface for interacting with a <a href="/docs/smolagents/v1.22.0/hi/reference/agents#smolagents.MultiStepAgent">MultiStepAgent</a>.',Bs,pn,Da=`This class provides a web interface to interact with the agent in real-time, allowing users to submit prompts, upload files, and receive responses in a chat-like format.
It  can reset the agent’s memory at the start of each interaction if desired.
It supports file uploads, which are saved to a specified folder.
It uses the <code>gradio.Chatbot</code> component to display the conversation history.
This class requires the <code>gradio</code> extra to be installed: <code>pip install &#39;smolagents[gradio]&#39;</code>.`,Ds,ue,Gs,he,tt,Qs,un,Ga="Launch the Gradio app with the agent interface.",Hs,D,nt,Fs,hn,Qa="Upload a file and add it to the list of uploaded files in the session state.",zs,fn,Ha=`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.`,Xn,ot,Yn,st,Fa="आप स्वतंत्र रूप से अपने स्वयं के मॉडल बना सकते हैं और उनका उपयोग कर सकते हैं।",On,at,za="आप अपने एजेंट के लिए कोई भी <code>model</code> कॉल करने योग्य उपयोग कर सकते हैं, जब तक कि:",Kn,lt,Ra='<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>',eo,rt,Xa='अपने LLM को परिभाषित करने के लिए, आप एक <code>custom_model</code> मेथड बना सकते हैं जो <a href="./chat_templating">messages</a> की एक सूची स्वीकार करता है और टेक्स्ट युक्त .content विशेषता वाला एक ऑब्जेक्ट लौटाता है। इस कॉलेबल को एक <code>stop_sequences</code> आर्गुमेंट भी स्वीकार करने की आवश्यकता होती है जो बताता है कि कब जनरेट करना और बंद करना है।',to,it,no,mt,Ya='इसके अतिरिक्त, <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> की अनुमति मिल सके जिससे उचित-फॉर्मेटेड एजेंट आउटपुट को फोर्स किया जा सके।',oo,dt,so,ct,Oa="सुविधा के लिए, हमने एक <code>TransformersModel</code> जोड़ा है जो इनिशियलाइजेशन पर दिए गए model_id के लिए एक लोकल <code>transformers</code> पाइपलाइन बनाकर ऊपर के बिंदुओं को लागू करता है।",ao,gt,lo,pt,ro,j,ut,Rs,_n,Ka="A class that uses Hugging Face’s Transformers library for language model interaction.",Xs,bn,el="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.",Ys,ht,tl="<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>",Os,fe,io,ft,mo,_t,nl='<code>InferenceClientModel</code> LLM के एक्जीक्यूशन के लिए <a href="https://huggingface.co/docs/api-inference/index" rel="nofollow">HF Inference API</a> क्लाइंट को रैप करता है।',co,bt,go,vt,po,J,Mt,Ks,vn,ol="A class to interact with Hugging Face’s Inference Providers for language model interaction.",ea,Mn,sl="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.",ta,$n,al="Providers include Cerebras, Cohere, Fal, Fireworks, HF-Inference, Hyperbolic, Nebius, Novita, Replicate, SambaNova, Together, and more.",na,_e,oa,be,$t,sa,yn,ll="Create the Hugging Face client.",uo,yt,ho,xt,rl=`<code>LiteLLMModel</code> विभिन्न प्रदाताओं से 100+ LLMs को सपोर्ट करने के लिए <a href="https://www.litellm.ai/" rel="nofollow">LiteLLM</a> का लाभ उठाता है।
आप मॉडल इनिशियलाइजेशन पर kwargs पास कर सकते हैं जो तब मॉडल का उपयोग करते समय प्रयोग किए जाएंगे, उदाहरण के लिए नीचे हम <code>temperature</code> पास करते हैं।`,fo,wt,_o,P,Tt,aa,xn,il='Model to use <a href="https://docs.litellm.ai/docs/#litellm-python-sdk" rel="nofollow">LiteLLM Python SDK</a> to access hundreds of LLMs.',la,ve,Ct,ra,wn,ml="Create the LiteLLM client.",bo,It,vo,kt,dl=`यह क्लास आपको किसी भी OpenAIServer कम्पैटिबल मॉडल को कॉल करने देती है।
यहाँ बताया गया है कि आप इसे कैसे सेट कर सकते हैं (आप दूसरे सर्वर को पॉइंट करने के लिए <code>api_base</code> url को कस्टमाइज़ कर सकते हैं):`,Mo,Jt,$o,jt,yo,H,Ut,ia,Tn,cl="Prompt templates for the agent.",xo,F,At,ma,Cn,gl="Prompt templates for the planning step.",wo,z,Nt,da,In,pl="Prompt templates for the managed agent.",To,R,Lt,ca,kn,ul="Prompt templates for the final answer.",Co,qt,Io,qn,ko;return T=new S({props:{title:"Agents",local:"agents",headingTag:"h1"}}),C=new hl({props:{warning:!0,$$slots:{default:[yl]},$$scope:{ctx:U}}}),xe=new S({props:{title:"Agents",local:"agents",headingTag:"h2"}}),ke=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"}}),je=new w({props:{name:"extract_action",anchor:"smolagents.MultiStepAgent.extract_action",parameters:[{name:"model_output",val:": str"},{name:"split_token",val:": str"}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.extract_action.model_output",description:"<strong>model_output</strong> (<code>str</code>) &#x2014; Output of the LLM",name:"model_output"},{anchor:"smolagents.MultiStepAgent.extract_action.split_token",description:"<strong>split_token</strong> (<code>str</code>) &#x2014; Separator for the action. Should match the example in the system prompt.",name:"split_token"}],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/agents.py#L783"}}),Ue=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>
`}}),Ae=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"}}),Ne=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"}}),ee=new hl({props:{warning:!0,$$slots:{default:[xl]},$$scope:{ctx:U}}}),Le=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"}}),qe=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"}}),Pe=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>
`}}),Se=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"}}),Ve=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"}}),We=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"}}),le=new zo({props:{anchor:"smolagents.MultiStepAgent.run.example",$$slots:{default:[wl]},$$scope:{ctx:U}}}),Ze=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"}}),Ee=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"}}),Be=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>
`}}),De=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"}}),Ge=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"}}),Qe=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"}}),He=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>
`}}),ze=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"}}),Re=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"}}),Xe=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}}),Ye=new S({props:{title:"stream_to_gradio",local:"smolagents.stream_to_gradio",headingTag:"h3"}}),Oe=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"}}),Ke=new S({props:{title:"GradioUI",local:"smolagents.GradioUI",headingTag:"h3"}}),et=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>
`}}),ue=new zo({props:{anchor:"smolagents.GradioUI.example",$$slots:{default:[Tl]},$$scope:{ctx:U}}}),tt=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"}}),nt=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"}}),ot=new S({props:{title:"मॉडल्स",local:"मडलस",headingTag:"h2"}}),it=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}}),dt=new S({props:{title:"TransformersModel",local:"smolagents.TransformersModel",headingTag:"h3"}}),gt=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}}),pt=new V({props:{code:"V2hhdCUyMGE=",highlighted:"&gt;&gt;&gt; What a",wrap:!1}}),ut=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>
`}}),fe=new zo({props:{anchor:"smolagents.TransformersModel.example",$$slots:{default:[Cl]},$$scope:{ctx:U}}}),ft=new S({props:{title:"InferenceClientModel",local:"smolagents.InferenceClientModel",headingTag:"h3"}}),bt=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}}),vt=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}}),Mt=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>
`}}),_e=new zo({props:{anchor:"smolagents.InferenceClientModel.example",$$slots:{default:[Il]},$$scope:{ctx:U}}}),$t=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"}}),yt=new S({props:{title:"LiteLLMModel",local:"smolagents.LiteLLMModel",headingTag:"h3"}}),wt=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}}),Tt=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"}}),Ct=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"}}),It=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}}),jt=new S({props:{title:"Prompts",local:"smolagents.PromptTemplates",headingTag:"h2"}}),Ut=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"}}),At=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"}}),Nt=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"}}),Lt=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"}}),qt=new $l({props:{source:"https://github.com/huggingface/smolagents/blob/main/docs/source/hi/reference/agents.md"}}),{c(){_=l("meta"),I=o(),$=l("p"),b=o(),d(T.$$.fragment),m=o(),d(C.$$.fragment),Pn=o(),ye=l("p"),ye.innerHTML=ga,Sn=o(),d(xe.$$.fragment),Vn=o(),we=l("p"),we.innerHTML=pa,Wn=o(),Te=l("p"),Te.innerHTML=ua,Zn=o(),Ce=l("ul"),Ce.innerHTML=ha,En=o(),Ie=l("p"),Ie.innerHTML=fa,Bn=o(),d(ke.$$.fragment),Dn=o(),v=l("div"),d(Je.$$.fragment),Ro=o(),Zt=l("p"),Zt.textContent=_a,Xo=o(),Y=l("div"),d(je.$$.fragment),Yo=o(),Et=l("p"),Et.textContent=ba,Oo=o(),O=l("div"),d(Ue.$$.fragment),Ko=o(),Bt=l("p"),Bt.textContent=va,es=o(),K=l("div"),d(Ae.$$.fragment),ts=o(),Dt=l("p"),Dt.textContent=Ma,ns=o(),W=l("div"),d(Ne.$$.fragment),os=o(),Gt=l("p"),Gt.textContent=$a,ss=o(),d(ee.$$.fragment),as=o(),te=l("div"),d(Le.$$.fragment),ls=o(),Qt=l("p"),Qt.textContent=ya,rs=o(),ne=l("div"),d(qe.$$.fragment),is=o(),Ht=l("p"),Ht.textContent=xa,ms=o(),oe=l("div"),d(Pe.$$.fragment),ds=o(),Ft=l("p"),Ft.textContent=wa,cs=o(),se=l("div"),d(Se.$$.fragment),gs=o(),zt=l("p"),zt.textContent=Ta,ps=o(),ae=l("div"),d(Ve.$$.fragment),us=o(),Rt=l("p"),Rt.textContent=Ca,hs=o(),Z=l("div"),d(We.$$.fragment),fs=o(),Xt=l("p"),Xt.textContent=Ia,_s=o(),d(le.$$.fragment),bs=o(),E=l("div"),d(Ze.$$.fragment),vs=o(),Yt=l("p"),Yt.innerHTML=ka,Ms=o(),Ot=l("ul"),Ot.innerHTML=Ja,$s=o(),re=l("div"),d(Ee.$$.fragment),ys=o(),Kt=l("p"),Kt.textContent=ja,xs=o(),ie=l("div"),d(Be.$$.fragment),ws=o(),en=l("p"),en.textContent=Ua,Ts=o(),me=l("div"),d(De.$$.fragment),Cs=o(),tn=l("p"),tn.textContent=Aa,Is=o(),de=l("div"),d(Ge.$$.fragment),ks=o(),nn=l("p"),nn.textContent=Na,Gn=o(),A=l("div"),d(Qe.$$.fragment),Js=o(),on=l("p"),on.textContent=La,js=o(),ce=l("div"),d(He.$$.fragment),Us=o(),sn=l("p"),sn.textContent=qa,As=o(),ge=l("div"),d(Fe.$$.fragment),Ns=o(),an=l("p"),an.textContent=Pa,Qn=o(),N=l("div"),d(ze.$$.fragment),Ls=o(),ln=l("p"),ln.innerHTML=Sa,qs=o(),B=l("div"),d(Re.$$.fragment),Ps=o(),rn=l("p"),rn.textContent=Va,Ss=o(),mn=l("p"),mn.textContent=Wa,Vs=o(),pe=l("div"),d(Xe.$$.fragment),Ws=o(),dn=l("p"),dn.textContent=Za,Hn=o(),d(Ye.$$.fragment),Fn=o(),Q=l("div"),d(Oe.$$.fragment),Zs=o(),cn=l("p"),cn.textContent=Ea,zn=o(),d(Ke.$$.fragment),Rn=o(),k=l("div"),d(et.$$.fragment),Es=o(),gn=l("p"),gn.innerHTML=Ba,Bs=o(),pn=l("p"),pn.innerHTML=Da,Ds=o(),d(ue.$$.fragment),Gs=o(),he=l("div"),d(tt.$$.fragment),Qs=o(),un=l("p"),un.textContent=Ga,Hs=o(),D=l("div"),d(nt.$$.fragment),Fs=o(),hn=l("p"),hn.textContent=Qa,zs=o(),fn=l("p"),fn.innerHTML=Ha,Xn=o(),d(ot.$$.fragment),Yn=o(),st=l("p"),st.textContent=Fa,On=o(),at=l("p"),at.innerHTML=za,Kn=o(),lt=l("ol"),lt.innerHTML=Ra,eo=o(),rt=l("p"),rt.innerHTML=Xa,to=o(),d(it.$$.fragment),no=o(),mt=l("p"),mt.innerHTML=Ya,oo=o(),d(dt.$$.fragment),so=o(),ct=l("p"),ct.innerHTML=Oa,ao=o(),d(gt.$$.fragment),lo=o(),d(pt.$$.fragment),ro=o(),j=l("div"),d(ut.$$.fragment),Rs=o(),_n=l("p"),_n.textContent=Ka,Xs=o(),bn=l("p"),bn.textContent=el,Ys=o(),ht=l("blockquote"),ht.innerHTML=tl,Os=o(),d(fe.$$.fragment),io=o(),d(ft.$$.fragment),mo=o(),_t=l("p"),_t.innerHTML=nl,co=o(),d(bt.$$.fragment),go=o(),d(vt.$$.fragment),po=o(),J=l("div"),d(Mt.$$.fragment),Ks=o(),vn=l("p"),vn.textContent=ol,ea=o(),Mn=l("p"),Mn.textContent=sl,ta=o(),$n=l("p"),$n.textContent=al,na=o(),d(_e.$$.fragment),oa=o(),be=l("div"),d($t.$$.fragment),sa=o(),yn=l("p"),yn.textContent=ll,uo=o(),d(yt.$$.fragment),ho=o(),xt=l("p"),xt.innerHTML=rl,fo=o(),d(wt.$$.fragment),_o=o(),P=l("div"),d(Tt.$$.fragment),aa=o(),xn=l("p"),xn.innerHTML=il,la=o(),ve=l("div"),d(Ct.$$.fragment),ra=o(),wn=l("p"),wn.textContent=ml,bo=o(),d(It.$$.fragment),vo=o(),kt=l("p"),kt.innerHTML=dl,Mo=o(),d(Jt.$$.fragment),$o=o(),d(jt.$$.fragment),yo=o(),H=l("div"),d(Ut.$$.fragment),ia=o(),Tn=l("p"),Tn.textContent=cl,xo=o(),F=l("div"),d(At.$$.fragment),ma=o(),Cn=l("p"),Cn.textContent=gl,wo=o(),z=l("div"),d(Nt.$$.fragment),da=o(),In=l("p"),In.textContent=pl,To=o(),R=l("div"),d(Lt.$$.fragment),ca=o(),kn=l("p"),kn.textContent=ul,Co=o(),d(qt.$$.fragment),Io=o(),qn=l("p"),this.h()},l(e){const a=Ml("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),c(T.$$.fragment,e),m=s(e),c(C.$$.fragment,e),Pn=s(e),ye=r(e,"P",{"data-svelte-h":!0}),f(ye)!=="svelte-530l0l"&&(ye.innerHTML=ga),Sn=s(e),c(xe.$$.fragment,e),Vn=s(e),we=r(e,"P",{"data-svelte-h":!0}),f(we)!=="svelte-ww9dor"&&(we.innerHTML=pa),Wn=s(e),Te=r(e,"P",{"data-svelte-h":!0}),f(Te)!=="svelte-pwzn35"&&(Te.innerHTML=ua),Zn=s(e),Ce=r(e,"UL",{"data-svelte-h":!0}),f(Ce)!=="svelte-1xsa1uh"&&(Ce.innerHTML=ha),En=s(e),Ie=r(e,"P",{"data-svelte-h":!0}),f(Ie)!=="svelte-12okbux"&&(Ie.innerHTML=fa),Bn=s(e),c(ke.$$.fragment,e),Dn=s(e),v=r(e,"DIV",{class:!0});var y=x(v);c(Je.$$.fragment,y),Ro=s(y),Zt=r(y,"P",{"data-svelte-h":!0}),f(Zt)!=="svelte-d5y990"&&(Zt.textContent=_a),Xo=s(y),Y=r(y,"DIV",{class:!0});var Pt=x(Y);c(je.$$.fragment,Pt),Yo=s(Pt),Et=r(Pt,"P",{"data-svelte-h":!0}),f(Et)!=="svelte-104knry"&&(Et.textContent=ba),Pt.forEach(n),Oo=s(y),O=r(y,"DIV",{class:!0});var St=x(O);c(Ue.$$.fragment,St),Ko=s(St),Bt=r(St,"P",{"data-svelte-h":!0}),f(Bt)!=="svelte-1kbba9r"&&(Bt.textContent=va),St.forEach(n),es=s(y),K=r(y,"DIV",{class:!0});var Vt=x(K);c(Ae.$$.fragment,Vt),ts=s(Vt),Dt=r(Vt,"P",{"data-svelte-h":!0}),f(Dt)!=="svelte-1f5g0y1"&&(Dt.textContent=Ma),Vt.forEach(n),ns=s(y),W=r(y,"DIV",{class:!0});var X=x(W);c(Ne.$$.fragment,X),os=s(X),Gt=r(X,"P",{"data-svelte-h":!0}),f(Gt)!=="svelte-px853z"&&(Gt.textContent=$a),ss=s(X),c(ee.$$.fragment,X),X.forEach(n),as=s(y),te=r(y,"DIV",{class:!0});var Wt=x(te);c(Le.$$.fragment,Wt),ls=s(Wt),Qt=r(Wt,"P",{"data-svelte-h":!0}),f(Qt)!=="svelte-aqxmk9"&&(Qt.textContent=ya),Wt.forEach(n),rs=s(y),ne=r(y,"DIV",{class:!0});var Jo=x(ne);c(qe.$$.fragment,Jo),is=s(Jo),Ht=r(Jo,"P",{"data-svelte-h":!0}),f(Ht)!=="svelte-vma7te"&&(Ht.textContent=xa),Jo.forEach(n),ms=s(y),oe=r(y,"DIV",{class:!0});var jo=x(oe);c(Pe.$$.fragment,jo),ds=s(jo),Ft=r(jo,"P",{"data-svelte-h":!0}),f(Ft)!=="svelte-s6zvq5"&&(Ft.textContent=wa),jo.forEach(n),cs=s(y),se=r(y,"DIV",{class:!0});var Uo=x(se);c(Se.$$.fragment,Uo),gs=s(Uo),zt=r(Uo,"P",{"data-svelte-h":!0}),f(zt)!=="svelte-3y7cve"&&(zt.textContent=Ta),Uo.forEach(n),ps=s(y),ae=r(y,"DIV",{class:!0});var Ao=x(ae);c(Ve.$$.fragment,Ao),us=s(Ao),Rt=r(Ao,"P",{"data-svelte-h":!0}),f(Rt)!=="svelte-28znqy"&&(Rt.textContent=Ca),Ao.forEach(n),hs=s(y),Z=r(y,"DIV",{class:!0});var Jn=x(Z);c(We.$$.fragment,Jn),fs=s(Jn),Xt=r(Jn,"P",{"data-svelte-h":!0}),f(Xt)!=="svelte-1rclfo7"&&(Xt.textContent=Ia),_s=s(Jn),c(le.$$.fragment,Jn),Jn.forEach(n),bs=s(y),E=r(y,"DIV",{class:!0});var jn=x(E);c(Ze.$$.fragment,jn),vs=s(jn),Yt=r(jn,"P",{"data-svelte-h":!0}),f(Yt)!=="svelte-1uw6gyw"&&(Yt.innerHTML=ka),Ms=s(jn),Ot=r(jn,"UL",{"data-svelte-h":!0}),f(Ot)!=="svelte-11tnr4k"&&(Ot.innerHTML=Ja),jn.forEach(n),$s=s(y),re=r(y,"DIV",{class:!0});var No=x(re);c(Ee.$$.fragment,No),ys=s(No),Kt=r(No,"P",{"data-svelte-h":!0}),f(Kt)!=="svelte-1av9fpz"&&(Kt.textContent=ja),No.forEach(n),xs=s(y),ie=r(y,"DIV",{class:!0});var Lo=x(ie);c(Be.$$.fragment,Lo),ws=s(Lo),en=r(Lo,"P",{"data-svelte-h":!0}),f(en)!=="svelte-1kyagwa"&&(en.textContent=Ua),Lo.forEach(n),Ts=s(y),me=r(y,"DIV",{class:!0});var qo=x(me);c(De.$$.fragment,qo),Cs=s(qo),tn=r(qo,"P",{"data-svelte-h":!0}),f(tn)!=="svelte-em4ik4"&&(tn.textContent=Aa),qo.forEach(n),Is=s(y),de=r(y,"DIV",{class:!0});var Po=x(de);c(Ge.$$.fragment,Po),ks=s(Po),nn=r(Po,"P",{"data-svelte-h":!0}),f(nn)!=="svelte-jg60qx"&&(nn.textContent=Na),Po.forEach(n),y.forEach(n),Gn=s(e),A=r(e,"DIV",{class:!0});var Me=x(A);c(Qe.$$.fragment,Me),Js=s(Me),on=r(Me,"P",{"data-svelte-h":!0}),f(on)!=="svelte-1mxsa12"&&(on.textContent=La),js=s(Me),ce=r(Me,"DIV",{class:!0});var So=x(ce);c(He.$$.fragment,So),Us=s(So),sn=r(So,"P",{"data-svelte-h":!0}),f(sn)!=="svelte-1dq3hsa"&&(sn.textContent=qa),So.forEach(n),As=s(Me),ge=r(Me,"DIV",{class:!0});var Vo=x(ge);c(Fe.$$.fragment,Vo),Ns=s(Vo),an=r(Vo,"P",{"data-svelte-h":!0}),f(an)!=="svelte-1bap6qm"&&(an.textContent=Pa),Vo.forEach(n),Me.forEach(n),Qn=s(e),N=r(e,"DIV",{class:!0});var $e=x(N);c(ze.$$.fragment,$e),Ls=s($e),ln=r($e,"P",{"data-svelte-h":!0}),f(ln)!=="svelte-71yyi1"&&(ln.innerHTML=Sa),qs=s($e),B=r($e,"DIV",{class:!0});var Un=x(B);c(Re.$$.fragment,Un),Ps=s(Un),rn=r(Un,"P",{"data-svelte-h":!0}),f(rn)!=="svelte-yjyhgb"&&(rn.textContent=Va),Ss=s(Un),mn=r(Un,"P",{"data-svelte-h":!0}),f(mn)!=="svelte-1l33w20"&&(mn.textContent=Wa),Un.forEach(n),Vs=s($e),pe=r($e,"DIV",{class:!0});var Wo=x(pe);c(Xe.$$.fragment,Wo),Ws=s(Wo),dn=r(Wo,"P",{"data-svelte-h":!0}),f(dn)!=="svelte-132xt9l"&&(dn.textContent=Za),Wo.forEach(n),$e.forEach(n),Hn=s(e),c(Ye.$$.fragment,e),Fn=s(e),Q=r(e,"DIV",{class:!0});var Zo=x(Q);c(Oe.$$.fragment,Zo),Zs=s(Zo),cn=r(Zo,"P",{"data-svelte-h":!0}),f(cn)!=="svelte-3yyclm"&&(cn.textContent=Ea),Zo.forEach(n),zn=s(e),c(Ke.$$.fragment,e),Rn=s(e),k=r(e,"DIV",{class:!0});var L=x(k);c(et.$$.fragment,L),Es=s(L),gn=r(L,"P",{"data-svelte-h":!0}),f(gn)!=="svelte-111fce9"&&(gn.innerHTML=Ba),Bs=s(L),pn=r(L,"P",{"data-svelte-h":!0}),f(pn)!=="svelte-i76913"&&(pn.innerHTML=Da),Ds=s(L),c(ue.$$.fragment,L),Gs=s(L),he=r(L,"DIV",{class:!0});var Eo=x(he);c(tt.$$.fragment,Eo),Qs=s(Eo),un=r(Eo,"P",{"data-svelte-h":!0}),f(un)!=="svelte-1jjhzc2"&&(un.textContent=Ga),Eo.forEach(n),Hs=s(L),D=r(L,"DIV",{class:!0});var An=x(D);c(nt.$$.fragment,An),Fs=s(An),hn=r(An,"P",{"data-svelte-h":!0}),f(hn)!=="svelte-7pw2wo"&&(hn.textContent=Qa),zs=s(An),fn=r(An,"P",{"data-svelte-h":!0}),f(fn)!=="svelte-19g2bgi"&&(fn.innerHTML=Ha),An.forEach(n),L.forEach(n),Xn=s(e),c(ot.$$.fragment,e),Yn=s(e),st=r(e,"P",{"data-svelte-h":!0}),f(st)!=="svelte-1hr4phi"&&(st.textContent=Fa),On=s(e),at=r(e,"P",{"data-svelte-h":!0}),f(at)!=="svelte-13vv5yy"&&(at.innerHTML=za),Kn=s(e),lt=r(e,"OL",{"data-svelte-h":!0}),f(lt)!=="svelte-btvrd5"&&(lt.innerHTML=Ra),eo=s(e),rt=r(e,"P",{"data-svelte-h":!0}),f(rt)!=="svelte-m6zjmh"&&(rt.innerHTML=Xa),to=s(e),c(it.$$.fragment,e),no=s(e),mt=r(e,"P",{"data-svelte-h":!0}),f(mt)!=="svelte-15khdi2"&&(mt.innerHTML=Ya),oo=s(e),c(dt.$$.fragment,e),so=s(e),ct=r(e,"P",{"data-svelte-h":!0}),f(ct)!=="svelte-bqff4p"&&(ct.innerHTML=Oa),ao=s(e),c(gt.$$.fragment,e),lo=s(e),c(pt.$$.fragment,e),ro=s(e),j=r(e,"DIV",{class:!0});var G=x(j);c(ut.$$.fragment,G),Rs=s(G),_n=r(G,"P",{"data-svelte-h":!0}),f(_n)!=="svelte-1ex1ahr"&&(_n.textContent=Ka),Xs=s(G),bn=r(G,"P",{"data-svelte-h":!0}),f(bn)!=="svelte-1140acn"&&(bn.textContent=el),Ys=s(G),ht=r(G,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),f(ht)!=="svelte-103z9yw"&&(ht.innerHTML=tl),Os=s(G),c(fe.$$.fragment,G),G.forEach(n),io=s(e),c(ft.$$.fragment,e),mo=s(e),_t=r(e,"P",{"data-svelte-h":!0}),f(_t)!=="svelte-21wzws"&&(_t.innerHTML=nl),co=s(e),c(bt.$$.fragment,e),go=s(e),c(vt.$$.fragment,e),po=s(e),J=r(e,"DIV",{class:!0});var q=x(J);c(Mt.$$.fragment,q),Ks=s(q),vn=r(q,"P",{"data-svelte-h":!0}),f(vn)!=="svelte-axkcn3"&&(vn.textContent=ol),ea=s(q),Mn=r(q,"P",{"data-svelte-h":!0}),f(Mn)!=="svelte-bducrc"&&(Mn.textContent=sl),ta=s(q),$n=r(q,"P",{"data-svelte-h":!0}),f($n)!=="svelte-12eu297"&&($n.textContent=al),na=s(q),c(_e.$$.fragment,q),oa=s(q),be=r(q,"DIV",{class:!0});var Bo=x(be);c($t.$$.fragment,Bo),sa=s(Bo),yn=r(Bo,"P",{"data-svelte-h":!0}),f(yn)!=="svelte-ym2f5u"&&(yn.textContent=ll),Bo.forEach(n),q.forEach(n),uo=s(e),c(yt.$$.fragment,e),ho=s(e),xt=r(e,"P",{"data-svelte-h":!0}),f(xt)!=="svelte-1ufdi39"&&(xt.innerHTML=rl),fo=s(e),c(wt.$$.fragment,e),_o=s(e),P=r(e,"DIV",{class:!0});var Nn=x(P);c(Tt.$$.fragment,Nn),aa=s(Nn),xn=r(Nn,"P",{"data-svelte-h":!0}),f(xn)!=="svelte-5g97zk"&&(xn.innerHTML=il),la=s(Nn),ve=r(Nn,"DIV",{class:!0});var Do=x(ve);c(Ct.$$.fragment,Do),ra=s(Do),wn=r(Do,"P",{"data-svelte-h":!0}),f(wn)!=="svelte-12r14rd"&&(wn.textContent=ml),Do.forEach(n),Nn.forEach(n),bo=s(e),c(It.$$.fragment,e),vo=s(e),kt=r(e,"P",{"data-svelte-h":!0}),f(kt)!=="svelte-15ywemq"&&(kt.innerHTML=dl),Mo=s(e),c(Jt.$$.fragment,e),$o=s(e),c(jt.$$.fragment,e),yo=s(e),H=r(e,"DIV",{class:!0});var Go=x(H);c(Ut.$$.fragment,Go),ia=s(Go),Tn=r(Go,"P",{"data-svelte-h":!0}),f(Tn)!=="svelte-1qudq9i"&&(Tn.textContent=cl),Go.forEach(n),xo=s(e),F=r(e,"DIV",{class:!0});var Qo=x(F);c(At.$$.fragment,Qo),ma=s(Qo),Cn=r(Qo,"P",{"data-svelte-h":!0}),f(Cn)!=="svelte-139nrra"&&(Cn.textContent=gl),Qo.forEach(n),wo=s(e),z=r(e,"DIV",{class:!0});var Ho=x(z);c(Nt.$$.fragment,Ho),da=s(Ho),In=r(Ho,"P",{"data-svelte-h":!0}),f(In)!=="svelte-uxob75"&&(In.textContent=pl),Ho.forEach(n),To=s(e),R=r(e,"DIV",{class:!0});var Fo=x(R);c(Lt.$$.fragment,Fo),ca=s(Fo),kn=r(Fo,"P",{"data-svelte-h":!0}),f(kn)!=="svelte-52nyxb"&&(kn.textContent=ul),Fo.forEach(n),Co=s(e),c(qt.$$.fragment,e),Io=s(e),qn=r(e,"P",{}),x(qn).forEach(n),this.h()},h(){M(_,"name","hf:doc:metadata"),M(_,"content",Jl),M(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),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(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(te,"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(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(re,"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(v,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),M(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(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(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(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(he,"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(ht,"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(be,"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(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(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(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(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(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,a){t(document.head,_),i(e,I,a),i(e,$,a),i(e,b,a),g(T,e,a),i(e,m,a),g(C,e,a),i(e,Pn,a),i(e,ye,a),i(e,Sn,a),g(xe,e,a),i(e,Vn,a),i(e,we,a),i(e,Wn,a),i(e,Te,a),i(e,Zn,a),i(e,Ce,a),i(e,En,a),i(e,Ie,a),i(e,Bn,a),g(ke,e,a),i(e,Dn,a),i(e,v,a),g(Je,v,null),t(v,Ro),t(v,Zt),t(v,Xo),t(v,Y),g(je,Y,null),t(Y,Yo),t(Y,Et),t(v,Oo),t(v,O),g(Ue,O,null),t(O,Ko),t(O,Bt),t(v,es),t(v,K),g(Ae,K,null),t(K,ts),t(K,Dt),t(v,ns),t(v,W),g(Ne,W,null),t(W,os),t(W,Gt),t(W,ss),g(ee,W,null),t(v,as),t(v,te),g(Le,te,null),t(te,ls),t(te,Qt),t(v,rs),t(v,ne),g(qe,ne,null),t(ne,is),t(ne,Ht),t(v,ms),t(v,oe),g(Pe,oe,null),t(oe,ds),t(oe,Ft),t(v,cs),t(v,se),g(Se,se,null),t(se,gs),t(se,zt),t(v,ps),t(v,ae),g(Ve,ae,null),t(ae,us),t(ae,Rt),t(v,hs),t(v,Z),g(We,Z,null),t(Z,fs),t(Z,Xt),t(Z,_s),g(le,Z,null),t(v,bs),t(v,E),g(Ze,E,null),t(E,vs),t(E,Yt),t(E,Ms),t(E,Ot),t(v,$s),t(v,re),g(Ee,re,null),t(re,ys),t(re,Kt),t(v,xs),t(v,ie),g(Be,ie,null),t(ie,ws),t(ie,en),t(v,Ts),t(v,me),g(De,me,null),t(me,Cs),t(me,tn),t(v,Is),t(v,de),g(Ge,de,null),t(de,ks),t(de,nn),i(e,Gn,a),i(e,A,a),g(Qe,A,null),t(A,Js),t(A,on),t(A,js),t(A,ce),g(He,ce,null),t(ce,Us),t(ce,sn),t(A,As),t(A,ge),g(Fe,ge,null),t(ge,Ns),t(ge,an),i(e,Qn,a),i(e,N,a),g(ze,N,null),t(N,Ls),t(N,ln),t(N,qs),t(N,B),g(Re,B,null),t(B,Ps),t(B,rn),t(B,Ss),t(B,mn),t(N,Vs),t(N,pe),g(Xe,pe,null),t(pe,Ws),t(pe,dn),i(e,Hn,a),g(Ye,e,a),i(e,Fn,a),i(e,Q,a),g(Oe,Q,null),t(Q,Zs),t(Q,cn),i(e,zn,a),g(Ke,e,a),i(e,Rn,a),i(e,k,a),g(et,k,null),t(k,Es),t(k,gn),t(k,Bs),t(k,pn),t(k,Ds),g(ue,k,null),t(k,Gs),t(k,he),g(tt,he,null),t(he,Qs),t(he,un),t(k,Hs),t(k,D),g(nt,D,null),t(D,Fs),t(D,hn),t(D,zs),t(D,fn),i(e,Xn,a),g(ot,e,a),i(e,Yn,a),i(e,st,a),i(e,On,a),i(e,at,a),i(e,Kn,a),i(e,lt,a),i(e,eo,a),i(e,rt,a),i(e,to,a),g(it,e,a),i(e,no,a),i(e,mt,a),i(e,oo,a),g(dt,e,a),i(e,so,a),i(e,ct,a),i(e,ao,a),g(gt,e,a),i(e,lo,a),g(pt,e,a),i(e,ro,a),i(e,j,a),g(ut,j,null),t(j,Rs),t(j,_n),t(j,Xs),t(j,bn),t(j,Ys),t(j,ht),t(j,Os),g(fe,j,null),i(e,io,a),g(ft,e,a),i(e,mo,a),i(e,_t,a),i(e,co,a),g(bt,e,a),i(e,go,a),g(vt,e,a),i(e,po,a),i(e,J,a),g(Mt,J,null),t(J,Ks),t(J,vn),t(J,ea),t(J,Mn),t(J,ta),t(J,$n),t(J,na),g(_e,J,null),t(J,oa),t(J,be),g($t,be,null),t(be,sa),t(be,yn),i(e,uo,a),g(yt,e,a),i(e,ho,a),i(e,xt,a),i(e,fo,a),g(wt,e,a),i(e,_o,a),i(e,P,a),g(Tt,P,null),t(P,aa),t(P,xn),t(P,la),t(P,ve),g(Ct,ve,null),t(ve,ra),t(ve,wn),i(e,bo,a),g(It,e,a),i(e,vo,a),i(e,kt,a),i(e,Mo,a),g(Jt,e,a),i(e,$o,a),g(jt,e,a),i(e,yo,a),i(e,H,a),g(Ut,H,null),t(H,ia),t(H,Tn),i(e,xo,a),i(e,F,a),g(At,F,null),t(F,ma),t(F,Cn),i(e,wo,a),i(e,z,a),g(Nt,z,null),t(z,da),t(z,In),i(e,To,a),i(e,R,a),g(Lt,R,null),t(R,ca),t(R,kn),i(e,Co,a),g(qt,e,a),i(e,Io,a),i(e,qn,a),ko=!0},p(e,[a]){const y={};a&2&&(y.$$scope={dirty:a,ctx:e}),C.$set(y);const Pt={};a&2&&(Pt.$$scope={dirty:a,ctx:e}),ee.$set(Pt);const St={};a&2&&(St.$$scope={dirty:a,ctx:e}),le.$set(St);const Vt={};a&2&&(Vt.$$scope={dirty:a,ctx:e}),ue.$set(Vt);const X={};a&2&&(X.$$scope={dirty:a,ctx:e}),fe.$set(X);const Wt={};a&2&&(Wt.$$scope={dirty:a,ctx:e}),_e.$set(Wt)},i(e){ko||(p(T.$$.fragment,e),p(C.$$.fragment,e),p(xe.$$.fragment,e),p(ke.$$.fragment,e),p(Je.$$.fragment,e),p(je.$$.fragment,e),p(Ue.$$.fragment,e),p(Ae.$$.fragment,e),p(Ne.$$.fragment,e),p(ee.$$.fragment,e),p(Le.$$.fragment,e),p(qe.$$.fragment,e),p(Pe.$$.fragment,e),p(Se.$$.fragment,e),p(Ve.$$.fragment,e),p(We.$$.fragment,e),p(le.$$.fragment,e),p(Ze.$$.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(Fe.$$.fragment,e),p(ze.$$.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(ue.$$.fragment,e),p(tt.$$.fragment,e),p(nt.$$.fragment,e),p(ot.$$.fragment,e),p(it.$$.fragment,e),p(dt.$$.fragment,e),p(gt.$$.fragment,e),p(pt.$$.fragment,e),p(ut.$$.fragment,e),p(fe.$$.fragment,e),p(ft.$$.fragment,e),p(bt.$$.fragment,e),p(vt.$$.fragment,e),p(Mt.$$.fragment,e),p(_e.$$.fragment,e),p($t.$$.fragment,e),p(yt.$$.fragment,e),p(wt.$$.fragment,e),p(Tt.$$.fragment,e),p(Ct.$$.fragment,e),p(It.$$.fragment,e),p(Jt.$$.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),ko=!0)},o(e){u(T.$$.fragment,e),u(C.$$.fragment,e),u(xe.$$.fragment,e),u(ke.$$.fragment,e),u(Je.$$.fragment,e),u(je.$$.fragment,e),u(Ue.$$.fragment,e),u(Ae.$$.fragment,e),u(Ne.$$.fragment,e),u(ee.$$.fragment,e),u(Le.$$.fragment,e),u(qe.$$.fragment,e),u(Pe.$$.fragment,e),u(Se.$$.fragment,e),u(Ve.$$.fragment,e),u(We.$$.fragment,e),u(le.$$.fragment,e),u(Ze.$$.fragment,e),u(Ee.$$.fragment,e),u(Be.$$.fragment,e),u(De.$$.fragment,e),u(Ge.$$.fragment,e),u(Qe.$$.fragment,e),u(He.$$.fragment,e),u(Fe.$$.fragment,e),u(ze.$$.fragment,e),u(Re.$$.fragment,e),u(Xe.$$.fragment,e),u(Ye.$$.fragment,e),u(Oe.$$.fragment,e),u(Ke.$$.fragment,e),u(et.$$.fragment,e),u(ue.$$.fragment,e),u(tt.$$.fragment,e),u(nt.$$.fragment,e),u(ot.$$.fragment,e),u(it.$$.fragment,e),u(dt.$$.fragment,e),u(gt.$$.fragment,e),u(pt.$$.fragment,e),u(ut.$$.fragment,e),u(fe.$$.fragment,e),u(ft.$$.fragment,e),u(bt.$$.fragment,e),u(vt.$$.fragment,e),u(Mt.$$.fragment,e),u(_e.$$.fragment,e),u($t.$$.fragment,e),u(yt.$$.fragment,e),u(wt.$$.fragment,e),u(Tt.$$.fragment,e),u(Ct.$$.fragment,e),u(It.$$.fragment,e),u(Jt.$$.fragment,e),u(jt.$$.fragment,e),u(Ut.$$.fragment,e),u(At.$$.fragment,e),u(Nt.$$.fragment,e),u(Lt.$$.fragment,e),u(qt.$$.fragment,e),ko=!1},d(e){e&&(n(I),n($),n(b),n(m),n(Pn),n(ye),n(Sn),n(Vn),n(we),n(Wn),n(Te),n(Zn),n(Ce),n(En),n(Ie),n(Bn),n(Dn),n(v),n(Gn),n(A),n(Qn),n(N),n(Hn),n(Fn),n(Q),n(zn),n(Rn),n(k),n(Xn),n(Yn),n(st),n(On),n(at),n(Kn),n(lt),n(eo),n(rt),n(to),n(no),n(mt),n(oo),n(so),n(ct),n(ao),n(lo),n(ro),n(j),n(io),n(mo),n(_t),n(co),n(go),n(po),n(J),n(uo),n(ho),n(xt),n(fo),n(_o),n(P),n(bo),n(vo),n(kt),n(Mo),n($o),n(yo),n(H),n(xo),n(F),n(wo),n(z),n(To),n(R),n(Co),n(Io),n(qn)),n(_),h(T,e),h(C,e),h(xe,e),h(ke,e),h(Je),h(je),h(Ue),h(Ae),h(Ne),h(ee),h(Le),h(qe),h(Pe),h(Se),h(Ve),h(We),h(le),h(Ze),h(Ee),h(Be),h(De),h(Ge),h(Qe),h(He),h(Fe),h(ze),h(Re),h(Xe),h(Ye,e),h(Oe),h(Ke,e),h(et),h(ue),h(tt),h(nt),h(ot,e),h(it,e),h(dt,e),h(gt,e),h(pt,e),h(ut),h(fe),h(ft,e),h(bt,e),h(vt,e),h(Mt),h(_e),h($t),h(yt,e),h(wt,e),h(Tt),h(Ct),h(It,e),h(Jt,e),h(jt,e),h(Ut),h(At),h(Nt),h(Lt),h(qt,e)}}}const Jl='{"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 jl(U){return _l(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Pl extends bl{constructor(_){super(),vl(this,_,jl,kl,fl,{})}}export{Pl as component};
