import{s as Nl,o as Vl,n as fo}from"../chunks/scheduler.f6319a2a.js";import{S as Ul,i as Wl,g as a,s as n,r as i,A as Fl,h as r,f as s,c as o,j as f,u as m,x as h,k as v,y as t,a as u,v as g,d,t as p,w as c}from"../chunks/index.85aa684c.js";import{T as xr}from"../chunks/Tip.3d397a88.js";import{D as _,E as Dl}from"../chunks/ExampleCodeBlock.ac5a24b2.js";import{C as Sl}from"../chunks/CodeBlock.3400fc53.js";import{H as V,E as zl}from"../chunks/getInferenceSnippets.743412b2.js";function Hl(U){let $,A=`Smolagents is an experimental API which is subject to change at any time. Results returned by the agents
can vary as the APIs or underlying models are prone to change.`;return{c(){$=a("p"),$.textContent=A},l(C){$=r(C,"P",{"data-svelte-h":!0}),h($)!=="svelte-19v5hvw"&&($.textContent=A)},m(C,w){u(C,$,w)},p:fo,d(C){C&&s($)}}}function jl(U){let $,A=`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(){$=a("p"),$.textContent=A},l(C){$=r(C,"P",{"data-svelte-h":!0}),h($)!=="svelte-fpk7e5"&&($.textContent=A)},m(C,w){u(C,$,w)},p:fo,d(C){C&&s($)}}}function Rl(U){let $,A="Example:",C,w,T;return w=new Sl({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(){$=a("p"),$.textContent=A,C=n(),i(w.$$.fragment)},l(y){$=r(y,"P",{"data-svelte-h":!0}),h($)!=="svelte-11lpom8"&&($.textContent=A),C=o(y),m(w.$$.fragment,y)},m(y,L){u(y,$,L),u(y,C,L),g(w,y,L),T=!0},p:fo,i(y){T||(d(w.$$.fragment,y),T=!0)},o(y){p(w.$$.fragment,y),T=!1},d(y){y&&(s($),s(C)),c(w,y)}}}function Gl(U){let $,A="You must have <code>gradio</code> installed to use the UI. Please run <code>pip install smolagents[gradio]</code> if it’s not the case.";return{c(){$=a("p"),$.innerHTML=A},l(C){$=r(C,"P",{"data-svelte-h":!0}),h($)!=="svelte-1fnubjx"&&($.innerHTML=A)},m(C,w){u(C,$,w)},p:fo,d(C){C&&s($)}}}function ql(U){let $,A="Example:",C,w,T;return w=new Sl({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(){$=a("p"),$.textContent=A,C=n(),i(w.$$.fragment)},l(y){$=r(y,"P",{"data-svelte-h":!0}),h($)!=="svelte-11lpom8"&&($.textContent=A),C=o(y),m(w.$$.fragment,y)},m(y,L){u(y,$,L),u(y,C,L),g(w,y,L),T=!0},p:fo,i(y){T||(d(w.$$.fragment,y),T=!0)},o(y){p(w.$$.fragment,y),T=!1},d(y){y&&(s($),s(C)),c(w,y)}}}function Bl(U){let $,A,C,w,T,y,L,vo,Ve,yr=`To learn more about agents and tools make sure to read the <a href="../index">introductory guide</a>. This page
contains the API docs for the underlying classes.`,_o,Ue,$o,We,Cr='Our agents inherit from <a href="/docs/smolagents/v1.21.1/en/reference/agents#smolagents.MultiStepAgent">MultiStepAgent</a>, which means they can act in multiple steps, each step consisting of one thought, then one tool call and execution. Read more in <a href="../conceptual_guides/react">this conceptual guide</a>.',bo,Fe,wr="We provide two types of agents, based on the main <code>Agent</code> class.",xo,ze,Pr='<li><a href="/docs/smolagents/v1.21.1/en/reference/agents#smolagents.CodeAgent">CodeAgent</a> writes its tool calls in Python code (this is the default).</li> <li><a href="/docs/smolagents/v1.21.1/en/reference/agents#smolagents.ToolCallingAgent">ToolCallingAgent</a> writes its tool calls in JSON.</li>',yo,He,Mr="Both require arguments <code>model</code> and list of tools <code>tools</code> at initialization.",Co,je,wo,b,Re,Ds,nn,Ar=`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).`,Ss,K,Ge,Ns,on,kr="Parse action from the LLM output",Vs,ee,qe,Us,sn,Tr="Create agent from a dictionary representation.",Ws,te,Be,Fs,an,Er="Loads an agent from a local folder.",zs,j,Ze,Hs,rn,Lr="Loads an agent defined on the Hub.",js,ne,Rs,oe,Je,Gs,ln,Ir="To be implemented in child classes",qs,se,Qe,Bs,mn,Dr="Interrupts the agent execution.",Zs,ae,Oe,Js,gn,Sr="Provide the final answer to the task, based on the logs of the agent’s interactions.",Qs,re,Ye,Os,dn,Nr="Upload the agent to the Hub.",Ys,le,Xe,Xs,pn,Vr="Prints a pretty replay of the agent’s steps.",Ks,R,Ke,ea,cn,Ur="Run the agent for the given task.",ta,ie,na,G,et,oa,un,Wr="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:",sa,hn,Fr=`<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>`,aa,me,tt,ra,fn,zr=`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.`,la,ge,nt,ia,vn,Hr="Convert the agent to a dictionary representation.",ma,de,ot,ga,_n,jr="Creates a rich tree visualization of the agent’s structure.",da,pe,st,pa,$n,Rr=`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.`,Po,D,at,ca,bn,Gr="In this agent, the tool calls will be formulated by the LLM in code format, then parsed and executed.",ua,ce,rt,ha,xn,qr="Clean up resources used by the agent, such as the remote Python executor.",fa,ue,lt,va,yn,Br="Create CodeAgent from a dictionary representation.",Mo,S,it,_a,Cn,Zr="This agent uses JSON-like tool calls, using method <code>model.get_tool_call</code> to leverage the LLM engine’s tool calling capabilities.",$a,q,mt,ba,wn,Jr="Execute a tool or managed agent with the provided arguments.",xa,Pn,Qr="The arguments are replaced with the actual values from the state if they refer to state variables.",ya,he,gt,Ca,Mn,Or="Process tool calls from the model output and update agent memory.",Ao,dt,ko,Z,pt,wa,An,Yr="Runs an agent with the given task and streams the messages from the agent as gradio ChatMessages.",To,ct,Eo,fe,Lo,E,ut,Pa,kn,Xr='Gradio interface for interacting with a <a href="/docs/smolagents/v1.21.1/en/reference/agents#smolagents.MultiStepAgent">MultiStepAgent</a>.',Ma,Tn,Kr=`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>smolagents[gradio]</code>.`,Aa,ve,ka,_e,ht,Ta,En,el="Launch the Gradio app with the agent interface.",Ea,B,ft,La,Ln,tl="Upload a file and add it to the list of uploaded files in the session state.",Ia,In,nl=`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.`,Io,vt,Do,J,_t,Da,Dn,ol="Prompt templates for the agent.",So,Q,$t,Sa,Sn,sl="Prompt templates for the planning step.",No,O,bt,Na,Nn,al="Prompt templates for the managed agent.",Vo,Y,xt,Va,Vn,rl="Prompt templates for the final answer.",Uo,yt,Wo,Ct,ll="Smolagents use memory to store information across multiple steps.",Fo,P,wt,Ua,Un,il="Memory for the agent, containing the system prompt and all steps taken by the agent.",Wa,Wn,ml=`This class is used to store the agent’s steps, including tasks, actions, and planning steps.
It allows for resetting the memory, retrieving succinct or full step information, and replaying the agent’s steps.`,Fa,Fn,gl="<strong>Attributes</strong>:",za,zn,dl="<li><strong>system_prompt</strong> (<code>SystemPromptStep</code>) — System prompt step for the agent.</li> <li><strong>steps</strong> (<code>list[TaskStep | ActionStep | PlanningStep]</code>) — List of steps taken by the agent, which can include tasks, actions, and planning steps.</li>",Ha,$e,Pt,ja,Hn,pl="Return a full representation of the agent’s steps, including model input messages.",Ra,be,Mt,Ga,jn,cl="Return a succinct representation of the agent’s steps, excluding model input messages.",qa,xe,At,Ba,Rn,ul="Prints a pretty replay of the agent’s steps.",Za,ye,kt,Ja,Gn,hl="Reset the agent’s memory, clearing all steps and keeping the system prompt.",Qa,Ce,Tt,Oa,qn,fl="Returns all code actions from the agent’s steps, concatenated as a single script.",zo,Et,Ho,Lt,It,jo,Dt,Ro,F,St,Ya,Bn,vl="Executor of Python code in a local environment.",Xa,Zn,_l=`This executor evaluates Python code with restricted access to imports and built-in functions,
making it suitable for running untrusted code. It maintains state between executions,
allows for custom tools and functions to be made available to the code, and captures
print outputs separately from return values.`,Go,Nt,qo,z,Vt,Ka,we,Ut,er,Jn,$l=`Execute code, return the result and output, also determining if
the result is the final answer.`,tr,Pe,Wt,nr,Qn,bl="Send variables to the kernel namespace using pickle.",Bo,Ft,Zo,H,zt,or,On,xl="Executes Python code using E2B.",sr,Me,Ht,ar,Yn,yl="Clean up the E2B sandbox and resources.",Jo,jt,Qo,N,Rt,rr,Xn,Cl="Executes Python code using Jupyter Kernel Gateway in a Docker container.",lr,Ae,Gt,ir,Kn,wl="Clean up the Docker container and resources.",mr,ke,qt,gr,eo,Pl="Ensure cleanup on deletion.",Oo,Bt,Yo,k,Zt,dr,to,Ml="Remote Python code executor in a sandboxed WebAssembly environment powered by Pyodide and Deno.",pr,no,Al=`This executor combines Deno’s secure runtime with Pyodide’s WebAssembly‑compiled Python interpreter to deliver s
trong isolation guarantees while enabling full Python execution.`,cr,Te,Jt,ur,oo,kl="Clean up resources used by the executor.",hr,Ee,Qt,fr,so,Tl="Ensure cleanup on deletion.",vr,Le,Ot,_r,ao,El="Install additional Python packages in the Pyodide environment.",$r,Ie,Yt,br,ro,Ll="Execute Python code in the Pyodide environment and return the result.",Xo,Xt,Ko,ho,es;return T=new V({props:{title:"Agents",local:"agents",headingTag:"h1"}}),L=new xr({props:{warning:!0,$$slots:{default:[Hl]},$$scope:{ctx:U}}}),Ue=new V({props:{title:"Agents",local:"agents",headingTag:"h2"}}),je=new V({props:{title:"Classes of agents",local:"smolagents.MultiStepAgent",headingTag:"h3"}}),Re=new _({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.21.1/en/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.21.1/en/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"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L229"}}),Ge=new _({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.21.1/src/smolagents/agents.py#L745"}}),qe=new _({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.21.1/src/smolagents/agents.py#L968",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>
`}}),Be=new _({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.21.1/src/smolagents/agents.py#L1066"}}),Ze=new _({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.21.1/src/smolagents/agents.py#L1012"}}),ne=new xr({props:{warning:!0,$$slots:{default:[jl]},$$scope:{ctx:U}}}),Je=new _({props:{name:"initialize_system_prompt",anchor:"smolagents.MultiStepAgent.initialize_system_prompt",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L705"}}),Qe=new _({props:{name:"interrupt",anchor:"smolagents.MultiStepAgent.interrupt",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L710"}}),Oe=new _({props:{name:"provide_final_answer",anchor:"smolagents.MultiStepAgent.provide_final_answer",parameters:[{name:"task",val:": str"},{name:"images",val:": list['PIL.Image.Image'] | None = None"}],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.21.1/src/smolagents/agents.py#L766",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>
`}}),Ye=new _({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.21.1/src/smolagents/agents.py#L1098"}}),Xe=new _({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.21.1/src/smolagents/agents.py#L817"}}),Ke=new _({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"}],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"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L395"}}),ie=new Dl({props:{anchor:"smolagents.MultiStepAgent.run.example",$$slots:{default:[Rl]},$$scope:{ctx:U}}}),et=new _({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.21.1/src/smolagents/agents.py#L850"}}),tt=new _({props:{name:"step",anchor:"smolagents.MultiStepAgent.step",parameters:[{name:"memory_step",val:": ActionStep"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L738"}}),nt=new _({props:{name:"to_dict",anchor:"smolagents.MultiStepAgent.to_dict",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L928",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>
`}}),ot=new _({props:{name:"visualize",anchor:"smolagents.MultiStepAgent.visualize",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L813"}}),st=new _({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.21.1/src/smolagents/agents.py#L714"}}),at=new _({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', '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.21.1/en/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.21.1/en/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;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.21.1/src/smolagents/agents.py#L1447"}}),rt=new _({props:{name:"cleanup",anchor:"smolagents.CodeAgent.cleanup",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L1535"}}),lt=new _({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.21.1/src/smolagents/agents.py#L1717",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>
`}}),it=new _({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.21.1/en/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.21.1/en/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.21.1/src/smolagents/agents.py#L1153"}}),mt=new _({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.21.1/src/smolagents/agents.py#L1395"}}),gt=new _({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.21.1/src/smolagents/agents.py#L1304",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ToolCall | ToolOutput</code></p>
`,isYield:!0}}),dt=new V({props:{title:"stream_to_gradio",local:"smolagents.stream_to_gradio",headingTag:"h3"}}),pt=new _({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.21.1/src/smolagents/gradio_ui.py#L248"}}),ct=new V({props:{title:"GradioUI",local:"smolagents.GradioUI",headingTag:"h3"}}),fe=new xr({props:{warning:!1,$$slots:{default:[Gl]},$$scope:{ctx:U}}}),ut=new _({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.21.1/en/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.21.1/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>
`}}),ve=new Dl({props:{anchor:"smolagents.GradioUI.example",$$slots:{default:[ql]},$$scope:{ctx:U}}}),ht=new _({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.21.1/src/smolagents/gradio_ui.py#L406"}}),ft=new _({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.21.1/src/smolagents/gradio_ui.py#L356"}}),vt=new V({props:{title:"Prompts",local:"smolagents.PromptTemplates",headingTag:"h2"}}),_t=new _({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.21.1/en/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.21.1/en/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.21.1/en/reference/agents#smolagents.FinalAnswerPromptTemplate">FinalAnswerPromptTemplate</a>) &#x2014; Final answer prompt templates.',name:"final_answer"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L169"}}),$t=new _({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.21.1/src/smolagents/agents.py#L128"}}),bt=new _({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.21.1/src/smolagents/agents.py#L143"}}),xt=new _({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.21.1/src/smolagents/agents.py#L156"}}),yt=new V({props:{title:"Memory",local:"smolagents.AgentMemory",headingTag:"h2"}}),wt=new _({props:{name:"class smolagents.AgentMemory",anchor:"smolagents.AgentMemory",parameters:[{name:"system_prompt",val:": str"}],parametersDescription:[{anchor:"smolagents.AgentMemory.system_prompt",description:"<strong>system_prompt</strong> (<code>str</code>) &#x2014; System prompt for the agent, which sets the context and instructions for the agent&#x2019;s behavior.",name:"system_prompt"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/memory.py#L195"}}),Pt=new _({props:{name:"get_full_steps",anchor:"smolagents.AgentMemory.get_full_steps",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/memory.py#L223"}}),Mt=new _({props:{name:"get_succinct_steps",anchor:"smolagents.AgentMemory.get_succinct_steps",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/memory.py#L217"}}),At=new _({props:{name:"replay",anchor:"smolagents.AgentMemory.replay",parameters:[{name:"logger",val:": AgentLogger"},{name:"detailed",val:": bool = False"}],parametersDescription:[{anchor:"smolagents.AgentMemory.replay.logger",description:"<strong>logger</strong> (<code>AgentLogger</code>) &#x2014; The logger to print replay logs to.",name:"logger"},{anchor:"smolagents.AgentMemory.replay.detailed",description:`<strong>detailed</strong> (<code>bool</code>, default <code>False</code>) &#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.21.1/src/smolagents/memory.py#L229"}}),kt=new _({props:{name:"reset",anchor:"smolagents.AgentMemory.reset",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/memory.py#L213"}}),Tt=new _({props:{name:"return_full_code",anchor:"smolagents.AgentMemory.return_full_code",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/memory.py#L254"}}),Et=new V({props:{title:"Python code executors",local:"smolagents.PythonExecutor",headingTag:"h2"}}),It=new _({props:{name:"class smolagents.PythonExecutor",anchor:"smolagents.PythonExecutor",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/local_python_executor.py#L1611"}}),Dt=new V({props:{title:"Local Python executor",local:"smolagents.LocalPythonExecutor",headingTag:"h3"}}),St=new _({props:{name:"class smolagents.LocalPythonExecutor",anchor:"smolagents.LocalPythonExecutor",parameters:[{name:"additional_authorized_imports",val:": list"},{name:"max_print_outputs_length",val:": int | None = None"},{name:"additional_functions",val:": dict[str, collections.abc.Callable] | None = None"}],parametersDescription:[{anchor:"smolagents.LocalPythonExecutor.additional_authorized_imports",description:`<strong>additional_authorized_imports</strong> (<code>list[str]</code>) &#x2014;
Additional authorized imports for the executor.`,name:"additional_authorized_imports"},{anchor:"smolagents.LocalPythonExecutor.max_print_outputs_length",description:`<strong>max_print_outputs_length</strong> (<code>int</code>, defaults to <code>DEFAULT_MAX_LEN_OUTPUT=50_000</code>) &#x2014;
Maximum length of the print outputs.`,name:"max_print_outputs_length"},{anchor:"smolagents.LocalPythonExecutor.additional_functions",description:`<strong>additional_functions</strong> (<code>dict[str, Callable]</code>, <em>optional</em>) &#x2014;
Additional Python functions to be added to the executor.`,name:"additional_functions"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/local_python_executor.py#L1615"}}),Nt=new V({props:{title:"Remote Python executors",local:"smolagents.remote_executors.RemotePythonExecutor",headingTag:"h3"}}),Vt=new _({props:{name:"class smolagents.remote_executors.RemotePythonExecutor",anchor:"smolagents.remote_executors.RemotePythonExecutor",parameters:[{name:"additional_imports",val:": list"},{name:"logger",val:""}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/remote_executors.py#L51"}}),Ut=new _({props:{name:"run_code_raise_errors",anchor:"smolagents.remote_executors.RemotePythonExecutor.run_code_raise_errors",parameters:[{name:"code",val:": str"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/remote_executors.py#L60"}}),Wt=new _({props:{name:"send_variables",anchor:"smolagents.remote_executors.RemotePythonExecutor.send_variables",parameters:[{name:"variables",val:": dict"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/remote_executors.py#L85"}}),Ft=new V({props:{title:"E2BExecutor",local:"smolagents.E2BExecutor",headingTag:"h4"}}),zt=new _({props:{name:"class smolagents.E2BExecutor",anchor:"smolagents.E2BExecutor",parameters:[{name:"additional_imports",val:": list"},{name:"logger",val:""},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.E2BExecutor.additional_imports",description:"<strong>additional_imports</strong> (<code>list[str]</code>) &#x2014; Additional imports to install.",name:"additional_imports"},{anchor:"smolagents.E2BExecutor.logger",description:"<strong>logger</strong> (<code>Logger</code>) &#x2014; Logger to use.",name:"logger"},{anchor:"smolagents.E2BExecutor.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional arguments to pass to the E2B Sandbox.",name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/remote_executors.py#L155"}}),Ht=new _({props:{name:"cleanup",anchor:"smolagents.E2BExecutor.cleanup",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/remote_executors.py#L232"}}),jt=new V({props:{title:"DockerExecutor",local:"smolagents.DockerExecutor",headingTag:"h4"}}),Rt=new _({props:{name:"class smolagents.DockerExecutor",anchor:"smolagents.DockerExecutor",parameters:[{name:"additional_imports",val:": list"},{name:"logger",val:""},{name:"host",val:": str = '127.0.0.1'"},{name:"port",val:": int = 8888"},{name:"image_name",val:": str = 'jupyter-kernel'"},{name:"build_new_image",val:": bool = True"},{name:"container_run_kwargs",val:": dict[str, typing.Any] | None = None"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/remote_executors.py#L244"}}),Gt=new _({props:{name:"cleanup",anchor:"smolagents.DockerExecutor.cleanup",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/remote_executors.py#L444"}}),qt=new _({props:{name:"delete",anchor:"smolagents.DockerExecutor.delete",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/remote_executors.py#L456"}}),Bt=new V({props:{title:"WasmExecutor",local:"smolagents.WasmExecutor",headingTag:"h4"}}),Zt=new _({props:{name:"class smolagents.WasmExecutor",anchor:"smolagents.WasmExecutor",parameters:[{name:"additional_imports",val:": list"},{name:"logger",val:""},{name:"deno_path",val:": str = 'deno'"},{name:"deno_permissions",val:": list[str] | None = None"},{name:"timeout",val:": int = 60"}],parametersDescription:[{anchor:"smolagents.WasmExecutor.additional_imports",description:"<strong>additional_imports</strong> (<code>list[str]</code>) &#x2014; Additional Python packages to install in the Pyodide environment.",name:"additional_imports"},{anchor:"smolagents.WasmExecutor.logger",description:"<strong>logger</strong> (<code>Logger</code>) &#x2014; Logger to use for output and errors.",name:"logger"},{anchor:"smolagents.WasmExecutor.deno_path",description:"<strong>deno_path</strong> (<code>str</code>, optional) &#x2014; Path to the Deno executable. If not provided, will use &#x201C;deno&#x201D; from PATH.",name:"deno_path"},{anchor:"smolagents.WasmExecutor.deno_permissions",description:`<strong>deno_permissions</strong> (<code>list[str]</code>, optional) &#x2014; List of permissions to grant to the Deno runtime.
Default is minimal permissions needed for execution.`,name:"deno_permissions"},{anchor:"smolagents.WasmExecutor.timeout",description:"<strong>timeout</strong> (<code>int</code>, optional) &#x2014; Timeout in seconds for code execution. Default is 60 seconds.",name:"timeout"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/remote_executors.py#L461"}}),Jt=new _({props:{name:"cleanup",anchor:"smolagents.WasmExecutor.cleanup",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/remote_executors.py#L642"}}),Qt=new _({props:{name:"delete",anchor:"smolagents.WasmExecutor.delete",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/remote_executors.py#L658"}}),Ot=new _({props:{name:"install_packages",anchor:"smolagents.WasmExecutor.install_packages",parameters:[{name:"additional_imports",val:": list"}],parametersDescription:[{anchor:"smolagents.WasmExecutor.install_packages.additional_imports",description:"<strong>additional_imports</strong> (<code>list[str]</code>) &#x2014; Package names to install.",name:"additional_imports"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/remote_executors.py#L626",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Installed packages.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p>list[str]</p>
`}}),Yt=new _({props:{name:"run_code_raise_errors",anchor:"smolagents.WasmExecutor.run_code_raise_errors",parameters:[{name:"code",val:": str"}],parametersDescription:[{anchor:"smolagents.WasmExecutor.run_code_raise_errors.code",description:"<strong>code</strong> (<code>str</code>) &#x2014; Python code to execute.",name:"code"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/remote_executors.py#L565",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Code output containing the result, logs, and whether it is the final answer.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>CodeOutput</code></p>
`}}),Xt=new zl({props:{source:"https://github.com/huggingface/smolagents/blob/main/docs/source/en/reference/agents.md"}}),{c(){$=a("meta"),A=n(),C=a("p"),w=n(),i(T.$$.fragment),y=n(),i(L.$$.fragment),vo=n(),Ve=a("p"),Ve.innerHTML=yr,_o=n(),i(Ue.$$.fragment),$o=n(),We=a("p"),We.innerHTML=Cr,bo=n(),Fe=a("p"),Fe.innerHTML=wr,xo=n(),ze=a("ul"),ze.innerHTML=Pr,yo=n(),He=a("p"),He.innerHTML=Mr,Co=n(),i(je.$$.fragment),wo=n(),b=a("div"),i(Re.$$.fragment),Ds=n(),nn=a("p"),nn.textContent=Ar,Ss=n(),K=a("div"),i(Ge.$$.fragment),Ns=n(),on=a("p"),on.textContent=kr,Vs=n(),ee=a("div"),i(qe.$$.fragment),Us=n(),sn=a("p"),sn.textContent=Tr,Ws=n(),te=a("div"),i(Be.$$.fragment),Fs=n(),an=a("p"),an.textContent=Er,zs=n(),j=a("div"),i(Ze.$$.fragment),Hs=n(),rn=a("p"),rn.textContent=Lr,js=n(),i(ne.$$.fragment),Rs=n(),oe=a("div"),i(Je.$$.fragment),Gs=n(),ln=a("p"),ln.textContent=Ir,qs=n(),se=a("div"),i(Qe.$$.fragment),Bs=n(),mn=a("p"),mn.textContent=Dr,Zs=n(),ae=a("div"),i(Oe.$$.fragment),Js=n(),gn=a("p"),gn.textContent=Sr,Qs=n(),re=a("div"),i(Ye.$$.fragment),Os=n(),dn=a("p"),dn.textContent=Nr,Ys=n(),le=a("div"),i(Xe.$$.fragment),Xs=n(),pn=a("p"),pn.textContent=Vr,Ks=n(),R=a("div"),i(Ke.$$.fragment),ea=n(),cn=a("p"),cn.textContent=Ur,ta=n(),i(ie.$$.fragment),na=n(),G=a("div"),i(et.$$.fragment),oa=n(),un=a("p"),un.innerHTML=Wr,sa=n(),hn=a("ul"),hn.innerHTML=Fr,aa=n(),me=a("div"),i(tt.$$.fragment),ra=n(),fn=a("p"),fn.textContent=zr,la=n(),ge=a("div"),i(nt.$$.fragment),ia=n(),vn=a("p"),vn.textContent=Hr,ma=n(),de=a("div"),i(ot.$$.fragment),ga=n(),_n=a("p"),_n.textContent=jr,da=n(),pe=a("div"),i(st.$$.fragment),pa=n(),$n=a("p"),$n.textContent=Rr,Po=n(),D=a("div"),i(at.$$.fragment),ca=n(),bn=a("p"),bn.textContent=Gr,ua=n(),ce=a("div"),i(rt.$$.fragment),ha=n(),xn=a("p"),xn.textContent=qr,fa=n(),ue=a("div"),i(lt.$$.fragment),va=n(),yn=a("p"),yn.textContent=Br,Mo=n(),S=a("div"),i(it.$$.fragment),_a=n(),Cn=a("p"),Cn.innerHTML=Zr,$a=n(),q=a("div"),i(mt.$$.fragment),ba=n(),wn=a("p"),wn.textContent=Jr,xa=n(),Pn=a("p"),Pn.textContent=Qr,ya=n(),he=a("div"),i(gt.$$.fragment),Ca=n(),Mn=a("p"),Mn.textContent=Or,Ao=n(),i(dt.$$.fragment),ko=n(),Z=a("div"),i(pt.$$.fragment),wa=n(),An=a("p"),An.textContent=Yr,To=n(),i(ct.$$.fragment),Eo=n(),i(fe.$$.fragment),Lo=n(),E=a("div"),i(ut.$$.fragment),Pa=n(),kn=a("p"),kn.innerHTML=Xr,Ma=n(),Tn=a("p"),Tn.innerHTML=Kr,Aa=n(),i(ve.$$.fragment),ka=n(),_e=a("div"),i(ht.$$.fragment),Ta=n(),En=a("p"),En.textContent=el,Ea=n(),B=a("div"),i(ft.$$.fragment),La=n(),Ln=a("p"),Ln.textContent=tl,Ia=n(),In=a("p"),In.innerHTML=nl,Io=n(),i(vt.$$.fragment),Do=n(),J=a("div"),i(_t.$$.fragment),Da=n(),Dn=a("p"),Dn.textContent=ol,So=n(),Q=a("div"),i($t.$$.fragment),Sa=n(),Sn=a("p"),Sn.textContent=sl,No=n(),O=a("div"),i(bt.$$.fragment),Na=n(),Nn=a("p"),Nn.textContent=al,Vo=n(),Y=a("div"),i(xt.$$.fragment),Va=n(),Vn=a("p"),Vn.textContent=rl,Uo=n(),i(yt.$$.fragment),Wo=n(),Ct=a("p"),Ct.textContent=ll,Fo=n(),P=a("div"),i(wt.$$.fragment),Ua=n(),Un=a("p"),Un.textContent=il,Wa=n(),Wn=a("p"),Wn.textContent=ml,Fa=n(),Fn=a("p"),Fn.innerHTML=gl,za=n(),zn=a("ul"),zn.innerHTML=dl,Ha=n(),$e=a("div"),i(Pt.$$.fragment),ja=n(),Hn=a("p"),Hn.textContent=pl,Ra=n(),be=a("div"),i(Mt.$$.fragment),Ga=n(),jn=a("p"),jn.textContent=cl,qa=n(),xe=a("div"),i(At.$$.fragment),Ba=n(),Rn=a("p"),Rn.textContent=ul,Za=n(),ye=a("div"),i(kt.$$.fragment),Ja=n(),Gn=a("p"),Gn.textContent=hl,Qa=n(),Ce=a("div"),i(Tt.$$.fragment),Oa=n(),qn=a("p"),qn.textContent=fl,zo=n(),i(Et.$$.fragment),Ho=n(),Lt=a("div"),i(It.$$.fragment),jo=n(),i(Dt.$$.fragment),Ro=n(),F=a("div"),i(St.$$.fragment),Ya=n(),Bn=a("p"),Bn.textContent=vl,Xa=n(),Zn=a("p"),Zn.textContent=_l,Go=n(),i(Nt.$$.fragment),qo=n(),z=a("div"),i(Vt.$$.fragment),Ka=n(),we=a("div"),i(Ut.$$.fragment),er=n(),Jn=a("p"),Jn.textContent=$l,tr=n(),Pe=a("div"),i(Wt.$$.fragment),nr=n(),Qn=a("p"),Qn.textContent=bl,Bo=n(),i(Ft.$$.fragment),Zo=n(),H=a("div"),i(zt.$$.fragment),or=n(),On=a("p"),On.textContent=xl,sr=n(),Me=a("div"),i(Ht.$$.fragment),ar=n(),Yn=a("p"),Yn.textContent=yl,Jo=n(),i(jt.$$.fragment),Qo=n(),N=a("div"),i(Rt.$$.fragment),rr=n(),Xn=a("p"),Xn.textContent=Cl,lr=n(),Ae=a("div"),i(Gt.$$.fragment),ir=n(),Kn=a("p"),Kn.textContent=wl,mr=n(),ke=a("div"),i(qt.$$.fragment),gr=n(),eo=a("p"),eo.textContent=Pl,Oo=n(),i(Bt.$$.fragment),Yo=n(),k=a("div"),i(Zt.$$.fragment),dr=n(),to=a("p"),to.textContent=Ml,pr=n(),no=a("p"),no.textContent=Al,cr=n(),Te=a("div"),i(Jt.$$.fragment),ur=n(),oo=a("p"),oo.textContent=kl,hr=n(),Ee=a("div"),i(Qt.$$.fragment),fr=n(),so=a("p"),so.textContent=Tl,vr=n(),Le=a("div"),i(Ot.$$.fragment),_r=n(),ao=a("p"),ao.textContent=El,$r=n(),Ie=a("div"),i(Yt.$$.fragment),br=n(),ro=a("p"),ro.textContent=Ll,Xo=n(),i(Xt.$$.fragment),Ko=n(),ho=a("p"),this.h()},l(e){const l=Fl("svelte-u9bgzb",document.head);$=r(l,"META",{name:!0,content:!0}),l.forEach(s),A=o(e),C=r(e,"P",{}),f(C).forEach(s),w=o(e),m(T.$$.fragment,e),y=o(e),m(L.$$.fragment,e),vo=o(e),Ve=r(e,"P",{"data-svelte-h":!0}),h(Ve)!=="svelte-17nnzxz"&&(Ve.innerHTML=yr),_o=o(e),m(Ue.$$.fragment,e),$o=o(e),We=r(e,"P",{"data-svelte-h":!0}),h(We)!=="svelte-1ulfm4i"&&(We.innerHTML=Cr),bo=o(e),Fe=r(e,"P",{"data-svelte-h":!0}),h(Fe)!=="svelte-18joafb"&&(Fe.innerHTML=wr),xo=o(e),ze=r(e,"UL",{"data-svelte-h":!0}),h(ze)!=="svelte-j0j3xw"&&(ze.innerHTML=Pr),yo=o(e),He=r(e,"P",{"data-svelte-h":!0}),h(He)!=="svelte-1pp7p5a"&&(He.innerHTML=Mr),Co=o(e),m(je.$$.fragment,e),wo=o(e),b=r(e,"DIV",{class:!0});var x=f(b);m(Re.$$.fragment,x),Ds=o(x),nn=r(x,"P",{"data-svelte-h":!0}),h(nn)!=="svelte-d5y990"&&(nn.textContent=Ar),Ss=o(x),K=r(x,"DIV",{class:!0});var Kt=f(K);m(Ge.$$.fragment,Kt),Ns=o(Kt),on=r(Kt,"P",{"data-svelte-h":!0}),h(on)!=="svelte-104knry"&&(on.textContent=kr),Kt.forEach(s),Vs=o(x),ee=r(x,"DIV",{class:!0});var en=f(ee);m(qe.$$.fragment,en),Us=o(en),sn=r(en,"P",{"data-svelte-h":!0}),h(sn)!=="svelte-1kbba9r"&&(sn.textContent=Tr),en.forEach(s),Ws=o(x),te=r(x,"DIV",{class:!0});var tn=f(te);m(Be.$$.fragment,tn),Fs=o(tn),an=r(tn,"P",{"data-svelte-h":!0}),h(an)!=="svelte-1f5g0y1"&&(an.textContent=Er),tn.forEach(s),zs=o(x),j=r(x,"DIV",{class:!0});var X=f(j);m(Ze.$$.fragment,X),Hs=o(X),rn=r(X,"P",{"data-svelte-h":!0}),h(rn)!=="svelte-px853z"&&(rn.textContent=Lr),js=o(X),m(ne.$$.fragment,X),X.forEach(s),Rs=o(x),oe=r(x,"DIV",{class:!0});var ts=f(oe);m(Je.$$.fragment,ts),Gs=o(ts),ln=r(ts,"P",{"data-svelte-h":!0}),h(ln)!=="svelte-aqxmk9"&&(ln.textContent=Ir),ts.forEach(s),qs=o(x),se=r(x,"DIV",{class:!0});var ns=f(se);m(Qe.$$.fragment,ns),Bs=o(ns),mn=r(ns,"P",{"data-svelte-h":!0}),h(mn)!=="svelte-vma7te"&&(mn.textContent=Dr),ns.forEach(s),Zs=o(x),ae=r(x,"DIV",{class:!0});var os=f(ae);m(Oe.$$.fragment,os),Js=o(os),gn=r(os,"P",{"data-svelte-h":!0}),h(gn)!=="svelte-s6zvq5"&&(gn.textContent=Sr),os.forEach(s),Qs=o(x),re=r(x,"DIV",{class:!0});var ss=f(re);m(Ye.$$.fragment,ss),Os=o(ss),dn=r(ss,"P",{"data-svelte-h":!0}),h(dn)!=="svelte-3y7cve"&&(dn.textContent=Nr),ss.forEach(s),Ys=o(x),le=r(x,"DIV",{class:!0});var as=f(le);m(Xe.$$.fragment,as),Xs=o(as),pn=r(as,"P",{"data-svelte-h":!0}),h(pn)!=="svelte-28znqy"&&(pn.textContent=Vr),as.forEach(s),Ks=o(x),R=r(x,"DIV",{class:!0});var lo=f(R);m(Ke.$$.fragment,lo),ea=o(lo),cn=r(lo,"P",{"data-svelte-h":!0}),h(cn)!=="svelte-1rclfo7"&&(cn.textContent=Ur),ta=o(lo),m(ie.$$.fragment,lo),lo.forEach(s),na=o(x),G=r(x,"DIV",{class:!0});var io=f(G);m(et.$$.fragment,io),oa=o(io),un=r(io,"P",{"data-svelte-h":!0}),h(un)!=="svelte-1uw6gyw"&&(un.innerHTML=Wr),sa=o(io),hn=r(io,"UL",{"data-svelte-h":!0}),h(hn)!=="svelte-11tnr4k"&&(hn.innerHTML=Fr),io.forEach(s),aa=o(x),me=r(x,"DIV",{class:!0});var rs=f(me);m(tt.$$.fragment,rs),ra=o(rs),fn=r(rs,"P",{"data-svelte-h":!0}),h(fn)!=="svelte-1av9fpz"&&(fn.textContent=zr),rs.forEach(s),la=o(x),ge=r(x,"DIV",{class:!0});var ls=f(ge);m(nt.$$.fragment,ls),ia=o(ls),vn=r(ls,"P",{"data-svelte-h":!0}),h(vn)!=="svelte-1kyagwa"&&(vn.textContent=Hr),ls.forEach(s),ma=o(x),de=r(x,"DIV",{class:!0});var is=f(de);m(ot.$$.fragment,is),ga=o(is),_n=r(is,"P",{"data-svelte-h":!0}),h(_n)!=="svelte-em4ik4"&&(_n.textContent=jr),is.forEach(s),da=o(x),pe=r(x,"DIV",{class:!0});var ms=f(pe);m(st.$$.fragment,ms),pa=o(ms),$n=r(ms,"P",{"data-svelte-h":!0}),h($n)!=="svelte-jg60qx"&&($n.textContent=Rr),ms.forEach(s),x.forEach(s),Po=o(e),D=r(e,"DIV",{class:!0});var De=f(D);m(at.$$.fragment,De),ca=o(De),bn=r(De,"P",{"data-svelte-h":!0}),h(bn)!=="svelte-1mxsa12"&&(bn.textContent=Gr),ua=o(De),ce=r(De,"DIV",{class:!0});var gs=f(ce);m(rt.$$.fragment,gs),ha=o(gs),xn=r(gs,"P",{"data-svelte-h":!0}),h(xn)!=="svelte-1dq3hsa"&&(xn.textContent=qr),gs.forEach(s),fa=o(De),ue=r(De,"DIV",{class:!0});var ds=f(ue);m(lt.$$.fragment,ds),va=o(ds),yn=r(ds,"P",{"data-svelte-h":!0}),h(yn)!=="svelte-1bap6qm"&&(yn.textContent=Br),ds.forEach(s),De.forEach(s),Mo=o(e),S=r(e,"DIV",{class:!0});var Se=f(S);m(it.$$.fragment,Se),_a=o(Se),Cn=r(Se,"P",{"data-svelte-h":!0}),h(Cn)!=="svelte-71yyi1"&&(Cn.innerHTML=Zr),$a=o(Se),q=r(Se,"DIV",{class:!0});var mo=f(q);m(mt.$$.fragment,mo),ba=o(mo),wn=r(mo,"P",{"data-svelte-h":!0}),h(wn)!=="svelte-yjyhgb"&&(wn.textContent=Jr),xa=o(mo),Pn=r(mo,"P",{"data-svelte-h":!0}),h(Pn)!=="svelte-1l33w20"&&(Pn.textContent=Qr),mo.forEach(s),ya=o(Se),he=r(Se,"DIV",{class:!0});var ps=f(he);m(gt.$$.fragment,ps),Ca=o(ps),Mn=r(ps,"P",{"data-svelte-h":!0}),h(Mn)!=="svelte-132xt9l"&&(Mn.textContent=Or),ps.forEach(s),Se.forEach(s),Ao=o(e),m(dt.$$.fragment,e),ko=o(e),Z=r(e,"DIV",{class:!0});var cs=f(Z);m(pt.$$.fragment,cs),wa=o(cs),An=r(cs,"P",{"data-svelte-h":!0}),h(An)!=="svelte-3yyclm"&&(An.textContent=Yr),cs.forEach(s),To=o(e),m(ct.$$.fragment,e),Eo=o(e),m(fe.$$.fragment,e),Lo=o(e),E=r(e,"DIV",{class:!0});var W=f(E);m(ut.$$.fragment,W),Pa=o(W),kn=r(W,"P",{"data-svelte-h":!0}),h(kn)!=="svelte-mtje4z"&&(kn.innerHTML=Xr),Ma=o(W),Tn=r(W,"P",{"data-svelte-h":!0}),h(Tn)!=="svelte-jlm60p"&&(Tn.innerHTML=Kr),Aa=o(W),m(ve.$$.fragment,W),ka=o(W),_e=r(W,"DIV",{class:!0});var us=f(_e);m(ht.$$.fragment,us),Ta=o(us),En=r(us,"P",{"data-svelte-h":!0}),h(En)!=="svelte-1jjhzc2"&&(En.textContent=el),us.forEach(s),Ea=o(W),B=r(W,"DIV",{class:!0});var go=f(B);m(ft.$$.fragment,go),La=o(go),Ln=r(go,"P",{"data-svelte-h":!0}),h(Ln)!=="svelte-7pw2wo"&&(Ln.textContent=tl),Ia=o(go),In=r(go,"P",{"data-svelte-h":!0}),h(In)!=="svelte-19g2bgi"&&(In.innerHTML=nl),go.forEach(s),W.forEach(s),Io=o(e),m(vt.$$.fragment,e),Do=o(e),J=r(e,"DIV",{class:!0});var hs=f(J);m(_t.$$.fragment,hs),Da=o(hs),Dn=r(hs,"P",{"data-svelte-h":!0}),h(Dn)!=="svelte-1qudq9i"&&(Dn.textContent=ol),hs.forEach(s),So=o(e),Q=r(e,"DIV",{class:!0});var fs=f(Q);m($t.$$.fragment,fs),Sa=o(fs),Sn=r(fs,"P",{"data-svelte-h":!0}),h(Sn)!=="svelte-139nrra"&&(Sn.textContent=sl),fs.forEach(s),No=o(e),O=r(e,"DIV",{class:!0});var vs=f(O);m(bt.$$.fragment,vs),Na=o(vs),Nn=r(vs,"P",{"data-svelte-h":!0}),h(Nn)!=="svelte-uxob75"&&(Nn.textContent=al),vs.forEach(s),Vo=o(e),Y=r(e,"DIV",{class:!0});var _s=f(Y);m(xt.$$.fragment,_s),Va=o(_s),Vn=r(_s,"P",{"data-svelte-h":!0}),h(Vn)!=="svelte-52nyxb"&&(Vn.textContent=rl),_s.forEach(s),Uo=o(e),m(yt.$$.fragment,e),Wo=o(e),Ct=r(e,"P",{"data-svelte-h":!0}),h(Ct)!=="svelte-1vlwv8h"&&(Ct.textContent=ll),Fo=o(e),P=r(e,"DIV",{class:!0});var M=f(P);m(wt.$$.fragment,M),Ua=o(M),Un=r(M,"P",{"data-svelte-h":!0}),h(Un)!=="svelte-lifspb"&&(Un.textContent=il),Wa=o(M),Wn=r(M,"P",{"data-svelte-h":!0}),h(Wn)!=="svelte-13n17g0"&&(Wn.textContent=ml),Fa=o(M),Fn=r(M,"P",{"data-svelte-h":!0}),h(Fn)!=="svelte-1xx6nm4"&&(Fn.innerHTML=gl),za=o(M),zn=r(M,"UL",{"data-svelte-h":!0}),h(zn)!=="svelte-1m5hzix"&&(zn.innerHTML=dl),Ha=o(M),$e=r(M,"DIV",{class:!0});var $s=f($e);m(Pt.$$.fragment,$s),ja=o($s),Hn=r($s,"P",{"data-svelte-h":!0}),h(Hn)!=="svelte-h1xxch"&&(Hn.textContent=pl),$s.forEach(s),Ra=o(M),be=r(M,"DIV",{class:!0});var bs=f(be);m(Mt.$$.fragment,bs),Ga=o(bs),jn=r(bs,"P",{"data-svelte-h":!0}),h(jn)!=="svelte-1s7bcuo"&&(jn.textContent=cl),bs.forEach(s),qa=o(M),xe=r(M,"DIV",{class:!0});var xs=f(xe);m(At.$$.fragment,xs),Ba=o(xs),Rn=r(xs,"P",{"data-svelte-h":!0}),h(Rn)!=="svelte-28znqy"&&(Rn.textContent=ul),xs.forEach(s),Za=o(M),ye=r(M,"DIV",{class:!0});var ys=f(ye);m(kt.$$.fragment,ys),Ja=o(ys),Gn=r(ys,"P",{"data-svelte-h":!0}),h(Gn)!=="svelte-16b4z6f"&&(Gn.textContent=hl),ys.forEach(s),Qa=o(M),Ce=r(M,"DIV",{class:!0});var Cs=f(Ce);m(Tt.$$.fragment,Cs),Oa=o(Cs),qn=r(Cs,"P",{"data-svelte-h":!0}),h(qn)!=="svelte-1qzr6e6"&&(qn.textContent=fl),Cs.forEach(s),M.forEach(s),zo=o(e),m(Et.$$.fragment,e),Ho=o(e),Lt=r(e,"DIV",{class:!0});var Il=f(Lt);m(It.$$.fragment,Il),Il.forEach(s),jo=o(e),m(Dt.$$.fragment,e),Ro=o(e),F=r(e,"DIV",{class:!0});var po=f(F);m(St.$$.fragment,po),Ya=o(po),Bn=r(po,"P",{"data-svelte-h":!0}),h(Bn)!=="svelte-6trsc5"&&(Bn.textContent=vl),Xa=o(po),Zn=r(po,"P",{"data-svelte-h":!0}),h(Zn)!=="svelte-897ghs"&&(Zn.textContent=_l),po.forEach(s),Go=o(e),m(Nt.$$.fragment,e),qo=o(e),z=r(e,"DIV",{class:!0});var co=f(z);m(Vt.$$.fragment,co),Ka=o(co),we=r(co,"DIV",{class:!0});var ws=f(we);m(Ut.$$.fragment,ws),er=o(ws),Jn=r(ws,"P",{"data-svelte-h":!0}),h(Jn)!=="svelte-1viu4bp"&&(Jn.textContent=$l),ws.forEach(s),tr=o(co),Pe=r(co,"DIV",{class:!0});var Ps=f(Pe);m(Wt.$$.fragment,Ps),nr=o(Ps),Qn=r(Ps,"P",{"data-svelte-h":!0}),h(Qn)!=="svelte-7ib6bx"&&(Qn.textContent=bl),Ps.forEach(s),co.forEach(s),Bo=o(e),m(Ft.$$.fragment,e),Zo=o(e),H=r(e,"DIV",{class:!0});var uo=f(H);m(zt.$$.fragment,uo),or=o(uo),On=r(uo,"P",{"data-svelte-h":!0}),h(On)!=="svelte-1t2tqqy"&&(On.textContent=xl),sr=o(uo),Me=r(uo,"DIV",{class:!0});var Ms=f(Me);m(Ht.$$.fragment,Ms),ar=o(Ms),Yn=r(Ms,"P",{"data-svelte-h":!0}),h(Yn)!=="svelte-18dz3wh"&&(Yn.textContent=yl),Ms.forEach(s),uo.forEach(s),Jo=o(e),m(jt.$$.fragment,e),Qo=o(e),N=r(e,"DIV",{class:!0});var Ne=f(N);m(Rt.$$.fragment,Ne),rr=o(Ne),Xn=r(Ne,"P",{"data-svelte-h":!0}),h(Xn)!=="svelte-uqd6b4"&&(Xn.textContent=Cl),lr=o(Ne),Ae=r(Ne,"DIV",{class:!0});var As=f(Ae);m(Gt.$$.fragment,As),ir=o(As),Kn=r(As,"P",{"data-svelte-h":!0}),h(Kn)!=="svelte-kff7j6"&&(Kn.textContent=wl),As.forEach(s),mr=o(Ne),ke=r(Ne,"DIV",{class:!0});var ks=f(ke);m(qt.$$.fragment,ks),gr=o(ks),eo=r(ks,"P",{"data-svelte-h":!0}),h(eo)!=="svelte-1rajaev"&&(eo.textContent=Pl),ks.forEach(s),Ne.forEach(s),Oo=o(e),m(Bt.$$.fragment,e),Yo=o(e),k=r(e,"DIV",{class:!0});var I=f(k);m(Zt.$$.fragment,I),dr=o(I),to=r(I,"P",{"data-svelte-h":!0}),h(to)!=="svelte-3rfr4f"&&(to.textContent=Ml),pr=o(I),no=r(I,"P",{"data-svelte-h":!0}),h(no)!=="svelte-dhwyu2"&&(no.textContent=Al),cr=o(I),Te=r(I,"DIV",{class:!0});var Ts=f(Te);m(Jt.$$.fragment,Ts),ur=o(Ts),oo=r(Ts,"P",{"data-svelte-h":!0}),h(oo)!=="svelte-1euxqu1"&&(oo.textContent=kl),Ts.forEach(s),hr=o(I),Ee=r(I,"DIV",{class:!0});var Es=f(Ee);m(Qt.$$.fragment,Es),fr=o(Es),so=r(Es,"P",{"data-svelte-h":!0}),h(so)!=="svelte-1rajaev"&&(so.textContent=Tl),Es.forEach(s),vr=o(I),Le=r(I,"DIV",{class:!0});var Ls=f(Le);m(Ot.$$.fragment,Ls),_r=o(Ls),ao=r(Ls,"P",{"data-svelte-h":!0}),h(ao)!=="svelte-taby0m"&&(ao.textContent=El),Ls.forEach(s),$r=o(I),Ie=r(I,"DIV",{class:!0});var Is=f(Ie);m(Yt.$$.fragment,Is),br=o(Is),ro=r(Is,"P",{"data-svelte-h":!0}),h(ro)!=="svelte-j15i8w"&&(ro.textContent=Ll),Is.forEach(s),I.forEach(s),Xo=o(e),m(Xt.$$.fragment,e),Ko=o(e),ho=r(e,"P",{}),f(ho).forEach(s),this.h()},h(){v($,"name","hf:doc:metadata"),v($,"content",Zl),v(K,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ge,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(de,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(b,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ue,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(he,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(S,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(_e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v($e,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(be,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(xe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ye,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ce,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Lt,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(we,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Pe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(ke,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Le,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(Ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),v(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(e,l){t(document.head,$),u(e,A,l),u(e,C,l),u(e,w,l),g(T,e,l),u(e,y,l),g(L,e,l),u(e,vo,l),u(e,Ve,l),u(e,_o,l),g(Ue,e,l),u(e,$o,l),u(e,We,l),u(e,bo,l),u(e,Fe,l),u(e,xo,l),u(e,ze,l),u(e,yo,l),u(e,He,l),u(e,Co,l),g(je,e,l),u(e,wo,l),u(e,b,l),g(Re,b,null),t(b,Ds),t(b,nn),t(b,Ss),t(b,K),g(Ge,K,null),t(K,Ns),t(K,on),t(b,Vs),t(b,ee),g(qe,ee,null),t(ee,Us),t(ee,sn),t(b,Ws),t(b,te),g(Be,te,null),t(te,Fs),t(te,an),t(b,zs),t(b,j),g(Ze,j,null),t(j,Hs),t(j,rn),t(j,js),g(ne,j,null),t(b,Rs),t(b,oe),g(Je,oe,null),t(oe,Gs),t(oe,ln),t(b,qs),t(b,se),g(Qe,se,null),t(se,Bs),t(se,mn),t(b,Zs),t(b,ae),g(Oe,ae,null),t(ae,Js),t(ae,gn),t(b,Qs),t(b,re),g(Ye,re,null),t(re,Os),t(re,dn),t(b,Ys),t(b,le),g(Xe,le,null),t(le,Xs),t(le,pn),t(b,Ks),t(b,R),g(Ke,R,null),t(R,ea),t(R,cn),t(R,ta),g(ie,R,null),t(b,na),t(b,G),g(et,G,null),t(G,oa),t(G,un),t(G,sa),t(G,hn),t(b,aa),t(b,me),g(tt,me,null),t(me,ra),t(me,fn),t(b,la),t(b,ge),g(nt,ge,null),t(ge,ia),t(ge,vn),t(b,ma),t(b,de),g(ot,de,null),t(de,ga),t(de,_n),t(b,da),t(b,pe),g(st,pe,null),t(pe,pa),t(pe,$n),u(e,Po,l),u(e,D,l),g(at,D,null),t(D,ca),t(D,bn),t(D,ua),t(D,ce),g(rt,ce,null),t(ce,ha),t(ce,xn),t(D,fa),t(D,ue),g(lt,ue,null),t(ue,va),t(ue,yn),u(e,Mo,l),u(e,S,l),g(it,S,null),t(S,_a),t(S,Cn),t(S,$a),t(S,q),g(mt,q,null),t(q,ba),t(q,wn),t(q,xa),t(q,Pn),t(S,ya),t(S,he),g(gt,he,null),t(he,Ca),t(he,Mn),u(e,Ao,l),g(dt,e,l),u(e,ko,l),u(e,Z,l),g(pt,Z,null),t(Z,wa),t(Z,An),u(e,To,l),g(ct,e,l),u(e,Eo,l),g(fe,e,l),u(e,Lo,l),u(e,E,l),g(ut,E,null),t(E,Pa),t(E,kn),t(E,Ma),t(E,Tn),t(E,Aa),g(ve,E,null),t(E,ka),t(E,_e),g(ht,_e,null),t(_e,Ta),t(_e,En),t(E,Ea),t(E,B),g(ft,B,null),t(B,La),t(B,Ln),t(B,Ia),t(B,In),u(e,Io,l),g(vt,e,l),u(e,Do,l),u(e,J,l),g(_t,J,null),t(J,Da),t(J,Dn),u(e,So,l),u(e,Q,l),g($t,Q,null),t(Q,Sa),t(Q,Sn),u(e,No,l),u(e,O,l),g(bt,O,null),t(O,Na),t(O,Nn),u(e,Vo,l),u(e,Y,l),g(xt,Y,null),t(Y,Va),t(Y,Vn),u(e,Uo,l),g(yt,e,l),u(e,Wo,l),u(e,Ct,l),u(e,Fo,l),u(e,P,l),g(wt,P,null),t(P,Ua),t(P,Un),t(P,Wa),t(P,Wn),t(P,Fa),t(P,Fn),t(P,za),t(P,zn),t(P,Ha),t(P,$e),g(Pt,$e,null),t($e,ja),t($e,Hn),t(P,Ra),t(P,be),g(Mt,be,null),t(be,Ga),t(be,jn),t(P,qa),t(P,xe),g(At,xe,null),t(xe,Ba),t(xe,Rn),t(P,Za),t(P,ye),g(kt,ye,null),t(ye,Ja),t(ye,Gn),t(P,Qa),t(P,Ce),g(Tt,Ce,null),t(Ce,Oa),t(Ce,qn),u(e,zo,l),g(Et,e,l),u(e,Ho,l),u(e,Lt,l),g(It,Lt,null),u(e,jo,l),g(Dt,e,l),u(e,Ro,l),u(e,F,l),g(St,F,null),t(F,Ya),t(F,Bn),t(F,Xa),t(F,Zn),u(e,Go,l),g(Nt,e,l),u(e,qo,l),u(e,z,l),g(Vt,z,null),t(z,Ka),t(z,we),g(Ut,we,null),t(we,er),t(we,Jn),t(z,tr),t(z,Pe),g(Wt,Pe,null),t(Pe,nr),t(Pe,Qn),u(e,Bo,l),g(Ft,e,l),u(e,Zo,l),u(e,H,l),g(zt,H,null),t(H,or),t(H,On),t(H,sr),t(H,Me),g(Ht,Me,null),t(Me,ar),t(Me,Yn),u(e,Jo,l),g(jt,e,l),u(e,Qo,l),u(e,N,l),g(Rt,N,null),t(N,rr),t(N,Xn),t(N,lr),t(N,Ae),g(Gt,Ae,null),t(Ae,ir),t(Ae,Kn),t(N,mr),t(N,ke),g(qt,ke,null),t(ke,gr),t(ke,eo),u(e,Oo,l),g(Bt,e,l),u(e,Yo,l),u(e,k,l),g(Zt,k,null),t(k,dr),t(k,to),t(k,pr),t(k,no),t(k,cr),t(k,Te),g(Jt,Te,null),t(Te,ur),t(Te,oo),t(k,hr),t(k,Ee),g(Qt,Ee,null),t(Ee,fr),t(Ee,so),t(k,vr),t(k,Le),g(Ot,Le,null),t(Le,_r),t(Le,ao),t(k,$r),t(k,Ie),g(Yt,Ie,null),t(Ie,br),t(Ie,ro),u(e,Xo,l),g(Xt,e,l),u(e,Ko,l),u(e,ho,l),es=!0},p(e,[l]){const x={};l&2&&(x.$$scope={dirty:l,ctx:e}),L.$set(x);const Kt={};l&2&&(Kt.$$scope={dirty:l,ctx:e}),ne.$set(Kt);const en={};l&2&&(en.$$scope={dirty:l,ctx:e}),ie.$set(en);const tn={};l&2&&(tn.$$scope={dirty:l,ctx:e}),fe.$set(tn);const X={};l&2&&(X.$$scope={dirty:l,ctx:e}),ve.$set(X)},i(e){es||(d(T.$$.fragment,e),d(L.$$.fragment,e),d(Ue.$$.fragment,e),d(je.$$.fragment,e),d(Re.$$.fragment,e),d(Ge.$$.fragment,e),d(qe.$$.fragment,e),d(Be.$$.fragment,e),d(Ze.$$.fragment,e),d(ne.$$.fragment,e),d(Je.$$.fragment,e),d(Qe.$$.fragment,e),d(Oe.$$.fragment,e),d(Ye.$$.fragment,e),d(Xe.$$.fragment,e),d(Ke.$$.fragment,e),d(ie.$$.fragment,e),d(et.$$.fragment,e),d(tt.$$.fragment,e),d(nt.$$.fragment,e),d(ot.$$.fragment,e),d(st.$$.fragment,e),d(at.$$.fragment,e),d(rt.$$.fragment,e),d(lt.$$.fragment,e),d(it.$$.fragment,e),d(mt.$$.fragment,e),d(gt.$$.fragment,e),d(dt.$$.fragment,e),d(pt.$$.fragment,e),d(ct.$$.fragment,e),d(fe.$$.fragment,e),d(ut.$$.fragment,e),d(ve.$$.fragment,e),d(ht.$$.fragment,e),d(ft.$$.fragment,e),d(vt.$$.fragment,e),d(_t.$$.fragment,e),d($t.$$.fragment,e),d(bt.$$.fragment,e),d(xt.$$.fragment,e),d(yt.$$.fragment,e),d(wt.$$.fragment,e),d(Pt.$$.fragment,e),d(Mt.$$.fragment,e),d(At.$$.fragment,e),d(kt.$$.fragment,e),d(Tt.$$.fragment,e),d(Et.$$.fragment,e),d(It.$$.fragment,e),d(Dt.$$.fragment,e),d(St.$$.fragment,e),d(Nt.$$.fragment,e),d(Vt.$$.fragment,e),d(Ut.$$.fragment,e),d(Wt.$$.fragment,e),d(Ft.$$.fragment,e),d(zt.$$.fragment,e),d(Ht.$$.fragment,e),d(jt.$$.fragment,e),d(Rt.$$.fragment,e),d(Gt.$$.fragment,e),d(qt.$$.fragment,e),d(Bt.$$.fragment,e),d(Zt.$$.fragment,e),d(Jt.$$.fragment,e),d(Qt.$$.fragment,e),d(Ot.$$.fragment,e),d(Yt.$$.fragment,e),d(Xt.$$.fragment,e),es=!0)},o(e){p(T.$$.fragment,e),p(L.$$.fragment,e),p(Ue.$$.fragment,e),p(je.$$.fragment,e),p(Re.$$.fragment,e),p(Ge.$$.fragment,e),p(qe.$$.fragment,e),p(Be.$$.fragment,e),p(Ze.$$.fragment,e),p(ne.$$.fragment,e),p(Je.$$.fragment,e),p(Qe.$$.fragment,e),p(Oe.$$.fragment,e),p(Ye.$$.fragment,e),p(Xe.$$.fragment,e),p(Ke.$$.fragment,e),p(ie.$$.fragment,e),p(et.$$.fragment,e),p(tt.$$.fragment,e),p(nt.$$.fragment,e),p(ot.$$.fragment,e),p(st.$$.fragment,e),p(at.$$.fragment,e),p(rt.$$.fragment,e),p(lt.$$.fragment,e),p(it.$$.fragment,e),p(mt.$$.fragment,e),p(gt.$$.fragment,e),p(dt.$$.fragment,e),p(pt.$$.fragment,e),p(ct.$$.fragment,e),p(fe.$$.fragment,e),p(ut.$$.fragment,e),p(ve.$$.fragment,e),p(ht.$$.fragment,e),p(ft.$$.fragment,e),p(vt.$$.fragment,e),p(_t.$$.fragment,e),p($t.$$.fragment,e),p(bt.$$.fragment,e),p(xt.$$.fragment,e),p(yt.$$.fragment,e),p(wt.$$.fragment,e),p(Pt.$$.fragment,e),p(Mt.$$.fragment,e),p(At.$$.fragment,e),p(kt.$$.fragment,e),p(Tt.$$.fragment,e),p(Et.$$.fragment,e),p(It.$$.fragment,e),p(Dt.$$.fragment,e),p(St.$$.fragment,e),p(Nt.$$.fragment,e),p(Vt.$$.fragment,e),p(Ut.$$.fragment,e),p(Wt.$$.fragment,e),p(Ft.$$.fragment,e),p(zt.$$.fragment,e),p(Ht.$$.fragment,e),p(jt.$$.fragment,e),p(Rt.$$.fragment,e),p(Gt.$$.fragment,e),p(qt.$$.fragment,e),p(Bt.$$.fragment,e),p(Zt.$$.fragment,e),p(Jt.$$.fragment,e),p(Qt.$$.fragment,e),p(Ot.$$.fragment,e),p(Yt.$$.fragment,e),p(Xt.$$.fragment,e),es=!1},d(e){e&&(s(A),s(C),s(w),s(y),s(vo),s(Ve),s(_o),s($o),s(We),s(bo),s(Fe),s(xo),s(ze),s(yo),s(He),s(Co),s(wo),s(b),s(Po),s(D),s(Mo),s(S),s(Ao),s(ko),s(Z),s(To),s(Eo),s(Lo),s(E),s(Io),s(Do),s(J),s(So),s(Q),s(No),s(O),s(Vo),s(Y),s(Uo),s(Wo),s(Ct),s(Fo),s(P),s(zo),s(Ho),s(Lt),s(jo),s(Ro),s(F),s(Go),s(qo),s(z),s(Bo),s(Zo),s(H),s(Jo),s(Qo),s(N),s(Oo),s(Yo),s(k),s(Xo),s(Ko),s(ho)),s($),c(T,e),c(L,e),c(Ue,e),c(je,e),c(Re),c(Ge),c(qe),c(Be),c(Ze),c(ne),c(Je),c(Qe),c(Oe),c(Ye),c(Xe),c(Ke),c(ie),c(et),c(tt),c(nt),c(ot),c(st),c(at),c(rt),c(lt),c(it),c(mt),c(gt),c(dt,e),c(pt),c(ct,e),c(fe,e),c(ut),c(ve),c(ht),c(ft),c(vt,e),c(_t),c($t),c(bt),c(xt),c(yt,e),c(wt),c(Pt),c(Mt),c(At),c(kt),c(Tt),c(Et,e),c(It),c(Dt,e),c(St),c(Nt,e),c(Vt),c(Ut),c(Wt),c(Ft,e),c(zt),c(Ht),c(jt,e),c(Rt),c(Gt),c(qt),c(Bt,e),c(Zt),c(Jt),c(Qt),c(Ot),c(Yt),c(Xt,e)}}}const Zl='{"title":"Agents","local":"agents","sections":[{"title":"Agents","local":"agents","sections":[{"title":"Classes of 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":"Prompts","local":"smolagents.PromptTemplates","sections":[],"depth":2},{"title":"Memory","local":"smolagents.AgentMemory","sections":[],"depth":2},{"title":"Python code executors","local":"smolagents.PythonExecutor","sections":[{"title":"Local Python executor","local":"smolagents.LocalPythonExecutor","sections":[],"depth":3},{"title":"Remote Python executors","local":"smolagents.remote_executors.RemotePythonExecutor","sections":[{"title":"E2BExecutor","local":"smolagents.E2BExecutor","sections":[],"depth":4},{"title":"DockerExecutor","local":"smolagents.DockerExecutor","sections":[],"depth":4},{"title":"WasmExecutor","local":"smolagents.WasmExecutor","sections":[],"depth":4}],"depth":3}],"depth":2}],"depth":1}';function Jl(U){return Vl(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ti extends Ul{constructor($){super(),Wl(this,$,Jl,Bl,Nl,{})}}export{ti as component};
