import{s as Xl,o as Kl,n as zs}from"../chunks/scheduler.f6319a2a.js";import{S as ei,i as ti,g as a,s as n,r as i,A as ni,h as r,f as s,c as o,j as v,u as m,x as h,k as f,y as t,a as u,v as g,d,t as c,w as p}from"../chunks/index.85aa684c.js";import{T as Ql}from"../chunks/Tip.ca5bbb16.js";import{D as _,E as Ol}from"../chunks/ExampleCodeBlock.d40dae58.js";import{C as Yl}from"../chunks/CodeBlock.3400fc53.js";import{H as D,E as oi}from"../chunks/getInferenceSnippets.0233181f.js";function si(q){let b,E=`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(){b=a("p"),b.textContent=E},l(w){b=r(w,"P",{"data-svelte-h":!0}),h(b)!=="svelte-19v5hvw"&&(b.textContent=E)},m(w,M){u(w,b,M)},p:zs,d(w){w&&s(b)}}}function ai(q){let b,E=`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(){b=a("p"),b.textContent=E},l(w){b=r(w,"P",{"data-svelte-h":!0}),h(b)!=="svelte-fpk7e5"&&(b.textContent=E)},m(w,M){u(w,b,M)},p:zs,d(w){w&&s(b)}}}function ri(q){let b,E="Example:",w,M,k;return M=new Yl({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(){b=a("p"),b.textContent=E,w=n(),i(M.$$.fragment)},l(y){b=r(y,"P",{"data-svelte-h":!0}),h(b)!=="svelte-11lpom8"&&(b.textContent=E),w=o(y),m(M.$$.fragment,y)},m(y,L){u(y,b,L),u(y,w,L),g(M,y,L),k=!0},p:zs,i(y){k||(d(M.$$.fragment,y),k=!0)},o(y){c(M.$$.fragment,y),k=!1},d(y){y&&(s(b),s(w)),p(M,y)}}}function li(q){let b,E="Example:",w,M,k;return M=new Yl({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(){b=a("p"),b.textContent=E,w=n(),i(M.$$.fragment)},l(y){b=r(y,"P",{"data-svelte-h":!0}),h(b)!=="svelte-11lpom8"&&(b.textContent=E),w=o(y),m(M.$$.fragment,y)},m(y,L){u(y,b,L),u(y,w,L),g(M,y,L),k=!0},p:zs,i(y){k||(d(M.$$.fragment,y),k=!0)},o(y){c(M.$$.fragment,y),k=!1},d(y){y&&(s(b),s(w)),p(M,y)}}}function ii(q){let b,E,w,M,k,y,L,Co,Ue,Nr=`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.`,Mo,We,Po,Fe,Vr='Our agents inherit from <a href="/docs/smolagents/v1.22.0/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>.',Ao,je,Ur="We provide two types of agents, based on the main <code>Agent</code> class.",ko,Re,Wr='<li><a href="/docs/smolagents/v1.22.0/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.22.0/en/reference/agents#smolagents.ToolCallingAgent">ToolCallingAgent</a> writes its tool calls in JSON.</li>',To,qe,Fr="Both require arguments <code>model</code> and list of tools <code>tools</code> at initialization.",Eo,ze,Lo,x,He,Hs,rn,jr=`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).`,Gs,K,Ge,Bs,ln,Rr="Parse action from the LLM output",Zs,ee,Be,Js,mn,qr="Create agent from a dictionary representation.",Qs,te,Ze,Os,gn,zr="Loads an agent from a local folder.",Ys,z,Je,Xs,dn,Hr="Loads an agent defined on the Hub.",Ks,ne,ea,oe,Qe,ta,cn,Gr="To be implemented in child classes",na,se,Oe,oa,pn,Br="Interrupts the agent execution.",sa,ae,Ye,aa,un,Zr="Provide the final answer to the task, based on the logs of the agent’s interactions.",ra,re,Xe,la,hn,Jr="Upload the agent to the Hub.",ia,le,Ke,ma,fn,Qr="Prints a pretty replay of the agent’s steps.",ga,H,et,da,vn,Or="Run the agent for the given task.",ca,ie,pa,G,tt,ua,_n,Yr="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:",ha,bn,Xr=`<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>`,fa,me,nt,va,xn,Kr=`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.`,_a,ge,ot,ba,$n,el="Convert the agent to a dictionary representation.",xa,de,st,$a,yn,tl="Creates a rich tree visualization of the agent’s structure.",ya,ce,at,wa,wn,nl=`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.`,Io,S,rt,Ca,Cn,ol="In this agent, the tool calls will be formulated by the LLM in code format, then parsed and executed.",Ma,pe,lt,Pa,Mn,sl="Clean up resources used by the agent, such as the remote Python executor.",Aa,ue,it,ka,Pn,al="Create CodeAgent from a dictionary representation.",Do,N,mt,Ta,An,rl="This agent uses JSON-like tool calls, using method <code>model.get_tool_call</code> to leverage the LLM engine’s tool calling capabilities.",Ea,B,gt,La,kn,ll="Execute a tool or managed agent with the provided arguments.",Ia,Tn,il="The arguments are replaced with the actual values from the state if they refer to state variables.",Da,he,dt,Sa,En,ml="Process tool calls from the model output and update agent memory.",So,ct,No,J,pt,Na,Ln,gl="Runs an agent with the given task and streams the messages from the agent as gradio ChatMessages.",Vo,ut,Uo,fe,dl="<p>You must have <code>gradio</code> installed to use the UI. Please run <code>pip install &#39;smolagents[gradio]&#39;</code> if it’s not the case.</p>",Wo,T,ht,Va,In,cl='Gradio interface for interacting with a <a href="/docs/smolagents/v1.22.0/en/reference/agents#smolagents.MultiStepAgent">MultiStepAgent</a>.',Ua,Dn,pl=`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>.`,Wa,ve,Fa,_e,ft,ja,Sn,ul="Launch the Gradio app with the agent interface.",Ra,Z,vt,qa,Nn,hl="Upload a file and add it to the list of uploaded files in the session state.",za,Vn,fl=`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.`,Fo,_t,jo,Q,bt,Ha,Un,vl="Prompt templates for the agent.",Ro,O,xt,Ga,Wn,_l="Prompt templates for the planning step.",qo,Y,$t,Ba,Fn,bl="Prompt templates for the managed agent.",zo,X,yt,Za,jn,xl="Prompt templates for the final answer.",Ho,wt,Go,Ct,$l="Smolagents use memory to store information across multiple steps.",Bo,C,Mt,Ja,Rn,yl="Memory for the agent, containing the system prompt and all steps taken by the agent.",Qa,qn,wl=`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.`,Oa,zn,Cl="<strong>Attributes</strong>:",Ya,Hn,Ml="<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>",Xa,be,Pt,Ka,Gn,Pl="Return a full representation of the agent’s steps, including model input messages.",er,xe,At,tr,Bn,Al="Return a succinct representation of the agent’s steps, excluding model input messages.",nr,$e,kt,or,Zn,kl="Prints a pretty replay of the agent’s steps.",sr,ye,Tt,ar,Jn,Tl="Reset the agent’s memory, clearing all steps and keeping the system prompt.",rr,we,Et,lr,Qn,El="Returns all code actions from the agent’s steps, concatenated as a single script.",Zo,Lt,Jo,It,Dt,Qo,St,Oo,W,Nt,ir,On,Ll="Executor of Python code in a local environment.",mr,Yn,Il=`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.`,Yo,Vt,Xo,F,Ut,gr,Ce,Wt,dr,Xn,Dl=`Execute code, return the result and output, also determining if
the result is the final answer.`,cr,Me,Ft,pr,Kn,Sl="Send variables to the kernel namespace using pickle.",Ko,jt,es,j,Rt,ur,eo,Nl="Executes Python code using E2B.",hr,Pe,qt,fr,to,Vl="Clean up the E2B sandbox and resources.",ts,zt,ns,R,Ht,vr,no,Ul="Executes Python code using Modal.",_r,Ae,Gt,br,oo,Wl="Ensure cleanup on deletion.",os,Bt,ss,V,Zt,xr,so,Fl="Executes Python code using Jupyter Kernel Gateway in a Docker container.",$r,ke,Jt,yr,ao,jl="Clean up the Docker container and resources.",wr,Te,Qt,Cr,ro,Rl="Ensure cleanup on deletion.",as,Ot,rs,A,Yt,Mr,lo,ql="Remote Python code executor in a sandboxed WebAssembly environment powered by Pyodide and Deno.",Pr,io,zl=`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.`,Ar,Ee,Xt,kr,mo,Hl="Clean up resources used by the executor.",Tr,Le,Kt,Er,go,Gl="Ensure cleanup on deletion.",Lr,Ie,en,Ir,co,Bl="Install additional Python packages in the Pyodide environment.",Dr,De,tn,Sr,po,Zl="Execute Python code in the Pyodide environment and return the result.",ls,nn,is,wo,ms;return k=new D({props:{title:"Agents",local:"agents",headingTag:"h1"}}),L=new Ql({props:{warning:!0,$$slots:{default:[si]},$$scope:{ctx:q}}}),We=new D({props:{title:"Agents",local:"agents",headingTag:"h2"}}),ze=new D({props:{title:"Classes of agents",local:"smolagents.MultiStepAgent",headingTag:"h3"}}),He=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.22.0/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.22.0/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"},{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"}}),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.22.0/src/smolagents/agents.py#L783"}}),Be=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.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>
`}}),Ze=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.22.0/src/smolagents/agents.py#L1102"}}),Je=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.22.0/src/smolagents/agents.py#L1048"}}),ne=new Ql({props:{warning:!0,$$slots:{default:[ai]},$$scope:{ctx:q}}}),Qe=new _({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"}}),Oe=new _({props:{name:"interrupt",anchor:"smolagents.MultiStepAgent.interrupt",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/agents.py#L748"}}),Ye=new _({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>
`}}),Xe=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.22.0/src/smolagents/agents.py#L1134"}}),Ke=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.22.0/src/smolagents/agents.py#L853"}}),et=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"},{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"}}),ie=new Ol({props:{anchor:"smolagents.MultiStepAgent.run.example",$$slots:{default:[ri]},$$scope:{ctx:q}}}),tt=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.22.0/src/smolagents/agents.py#L886"}}),nt=new _({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"}}),ot=new _({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>
`}}),st=new _({props:{name:"visualize",anchor:"smolagents.MultiStepAgent.visualize",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/agents.py#L849"}}),at=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.22.0/src/smolagents/agents.py#L752"}}),rt=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', '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/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.22.0/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;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"}}),lt=new _({props:{name:"cleanup",anchor:"smolagents.CodeAgent.cleanup",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/agents.py#L1571"}}),it=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.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>
`}}),mt=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.22.0/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.22.0/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.22.0/src/smolagents/agents.py#L1189"}}),gt=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.22.0/src/smolagents/agents.py#L1431"}}),dt=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.22.0/src/smolagents/agents.py#L1340",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


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