import{s as Ta,o as ka,n as Sn}from"../chunks/scheduler.00b97157.js";import{S as Pa,i as Ia,e as s,s as n,c as m,h as La,a as r,d as a,b as o,f as x,g,j as h,k as $,l as t,m as i,n as d,t as p,o as c,p as u}from"../chunks/index.a7c1a7a1.js";import{T as Ca,D as y,E as Ma}from"../chunks/ExampleCodeBlock.3e50e595.js";import{C as Sa,H as Ht,E as Na}from"../chunks/MermaidChart.svelte_svelte_type_style_lang.4292aef9.js";import{C as Aa}from"../chunks/CodeBlock.afb4ac0c.js";function Da(S){let f,T="Smolagents 是一个实验性的 API，可能会随时发生变化。由于 API 或底层模型可能发生变化，代理返回的结果也可能有所不同。";return{c(){f=s("p"),f.textContent=T},l(w){f=r(w,"P",{"data-svelte-h":!0}),h(f)!=="svelte-p58lhb"&&(f.textContent=T)},m(w,C){i(w,f,C)},p:Sn,d(w){w&&a(f)}}}function Ea(S){let f,T=`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(){f=s("p"),f.textContent=T},l(w){f=r(w,"P",{"data-svelte-h":!0}),h(f)!=="svelte-fpk7e5"&&(f.textContent=T)},m(w,C){i(w,f,C)},p:Sn,d(w){w&&a(f)}}}function Ua(S){let f,T="Example:",w,C,M;return C=new Aa({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(){f=s("p"),f.textContent=T,w=n(),m(C.$$.fragment)},l(b){f=r(b,"P",{"data-svelte-h":!0}),h(f)!=="svelte-11lpom8"&&(f.textContent=T),w=o(b),g(C.$$.fragment,b)},m(b,k){i(b,f,k),i(b,w,k),d(C,b,k),M=!0},p:Sn,i(b){M||(p(C.$$.fragment,b),M=!0)},o(b){c(C.$$.fragment,b),M=!1},d(b){b&&(a(f),a(w)),u(C,b)}}}function Va(S){let f,T="Example:",w,C,M;return C=new Aa({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(){f=s("p"),f.textContent=T,w=n(),m(C.$$.fragment)},l(b){f=r(b,"P",{"data-svelte-h":!0}),h(f)!=="svelte-11lpom8"&&(f.textContent=T),w=o(b),g(C.$$.fragment,b)},m(b,k){i(b,f,k),i(b,w,k),d(C,b,k),M=!0},p:Sn,i(b){M||(p(C.$$.fragment,b),M=!0)},o(b){c(C.$$.fragment,b),M=!1},d(b){b&&(a(f),a(w)),u(C,b)}}}function za(S){let f,T,w,C,M,b,k,jt,j,Wt,pe,zo='要了解有关智能体和工具的更多信息，请务必阅读<a href="../index">入门指南</a>。本页面包含基础类的 API 文档。',Rt,ce,Zt,ue,Fo='我们的智能体继承自 <a href="/docs/smolagents/v1.22.0/zh/reference/agents#smolagents.MultiStepAgent">MultiStepAgent</a>，这意味着它们可以执行多步操作，每一步包含一个思考（thought），然后是一个工具调用和执行。请阅读<a href="../conceptual_guides/react">概念指南</a>以了解更多信息。',Jt,he,Go="我们提供两种类型的代理，它们基于主要的 <code>Agent</code> 类：",Bt,fe,Ho='<li><a href="/docs/smolagents/v1.22.0/zh/reference/agents#smolagents.CodeAgent">CodeAgent</a> 是默认代理，它以 Python 代码编写工具调用。</li> <li><a href="/docs/smolagents/v1.22.0/zh/reference/agents#smolagents.ToolCallingAgent">ToolCallingAgent</a> 以 JSON 编写工具调用。</li>',Qt,_e,qo="两者在初始化时都需要提供参数 <code>model</code> 和工具列表 <code>tools</code>。",Ot,ve,Yt,_,be,Nn,nt,jo=`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).`,Dn,W,$e,En,ot,Wo="Parse action from the LLM output",Un,R,xe,Vn,at,Ro="Create agent from a dictionary representation.",zn,Z,ye,Fn,st,Zo="Loads an agent from a local folder.",Gn,N,we,Hn,rt,Jo="Loads an agent defined on the Hub.",qn,J,jn,B,Ce,Wn,lt,Bo="To be implemented in child classes",Rn,Q,Me,Zn,it,Qo="Interrupts the agent execution.",Jn,O,Ae,Bn,mt,Oo="Provide the final answer to the task, based on the logs of the agent’s interactions.",Qn,Y,Te,On,gt,Yo="Upload the agent to the Hub.",Yn,X,ke,Xn,dt,Xo="Prints a pretty replay of the agent’s steps.",Kn,D,Pe,eo,pt,Ko="Run the agent for the given task.",to,K,no,E,Ie,oo,ct,ea="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:",ao,ut,ta=`<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>`,so,ee,Le,ro,ht,na=`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.`,lo,te,Se,io,ft,oa="Convert the agent to a dictionary representation.",mo,ne,Ne,go,_t,aa="Creates a rich tree visualization of the agent’s structure.",po,oe,De,co,vt,sa=`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.`,Xt,P,Ee,uo,bt,ra="In this agent, the tool calls will be formulated by the LLM in code format, then parsed and executed.",ho,ae,Ue,fo,$t,la="Clean up resources used by the agent, such as the remote Python executor.",_o,se,Ve,vo,xt,ia="Create CodeAgent from a dictionary representation.",Kt,I,ze,bo,yt,ma="This agent uses JSON-like tool calls, using method <code>model.get_tool_call</code> to leverage the LLM engine’s tool calling capabilities.",$o,U,Fe,xo,wt,ga="Execute a tool or managed agent with the provided arguments.",yo,Ct,da="The arguments are replaced with the actual values from the state if they refer to state variables.",wo,re,Ge,Co,Mt,pa="Process tool calls from the model output and update agent memory.",en,He,tn,z,qe,Mo,At,ca="Runs an agent with the given task and streams the messages from the agent as gradio ChatMessages.",nn,je,on,le,ua="<p>您必须安装 <code>gradio</code> 才能使用 UI。如果尚未安装，请运行 <code>pip install &#39;smolagents[gradio]&#39;</code>。</p>",an,A,We,Ao,Tt,ha='Gradio interface for interacting with a <a href="/docs/smolagents/v1.22.0/zh/reference/agents#smolagents.MultiStepAgent">MultiStepAgent</a>.',To,kt,fa=`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>.`,ko,ie,Po,me,Re,Io,Pt,_a="Launch the Gradio app with the agent interface.",Lo,V,Ze,So,It,va="Upload a file and add it to the list of uploaded files in the session state.",No,Lt,ba=`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.`,sn,Je,rn,F,Be,Do,St,$a="Prompt templates for the agent.",ln,G,Qe,Eo,Nt,xa="Prompt templates for the planning step.",mn,H,Oe,Uo,Dt,ya="Prompt templates for the managed agent.",gn,q,Ye,Vo,Et,wa="Prompt templates for the final answer.",dn,Xe,pn,qt,cn;return M=new Sa({props:{containerStyle:"float: right; margin-left: 10px; display: inline-flex; position: relative; z-index: 10;"}}),k=new Ht({props:{title:"Agents（智能体）",local:"agents智能体",headingTag:"h1"}}),j=new Ca({props:{warning:!0,$$slots:{default:[Da]},$$scope:{ctx:S}}}),ce=new Ht({props:{title:"智能体（Agents）",local:"智能体agents",headingTag:"h2"}}),ve=new Ht({props:{title:"智能体类",local:"smolagents.MultiStepAgent",headingTag:"h3"}}),be=new y({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/zh/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/zh/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"}}),$e=new y({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"}}),xe=new y({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>
`}}),ye=new y({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"}}),we=new y({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"}}),J=new Ca({props:{warning:!0,$$slots:{default:[Ea]},$$scope:{ctx:S}}}),Ce=new y({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"}}),Me=new y({props:{name:"interrupt",anchor:"smolagents.MultiStepAgent.interrupt",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/agents.py#L748"}}),Ae=new y({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>
`}}),Te=new y({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 y({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"}}),Pe=new y({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"}}),K=new Ma({props:{anchor:"smolagents.MultiStepAgent.run.example",$$slots:{default:[Ua]},$$scope:{ctx:S}}}),Ie=new y({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"}}),Le=new y({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"}}),Se=new y({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>
`}}),Ne=new y({props:{name:"visualize",anchor:"smolagents.MultiStepAgent.visualize",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/agents.py#L849"}}),De=new y({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"}}),Ee=new y({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/zh/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/zh/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"}}),Ue=new y({props:{name:"cleanup",anchor:"smolagents.CodeAgent.cleanup",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/agents.py#L1571"}}),Ve=new y({props:{name:"from_dict",anchor:"smolagents.CodeAgent.from_dict",parameters:[{name:"agent_dict",val:": dict"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.CodeAgent.from_dict.agent_dict",description:"<strong>agent_dict</strong> (<code>dict[str, Any]</code>) &#x2014; Dictionary representation of the agent.",name:"agent_dict"},{anchor:"smolagents.CodeAgent.from_dict.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments that will override agent_dict values.",name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/v1.22.0/src/smolagents/agents.py#L1754",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>CodeAgent</code></p>
`}}),ze=new y({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/zh/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/zh/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"}}),Fe=new y({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"}}),Ge=new y({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}}),He=new Ht({props:{title:"stream_to_gradio",local:"smolagents.stream_to_gradio",headingTag:"h3"}}),qe=new y({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"}}),je=new Ht({props:{title:"GradioUI",local:"smolagents.GradioUI",headingTag:"h3"}}),We=new y({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/zh/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>
`}}),ie=new Ma({props:{anchor:"smolagents.GradioUI.example",$$slots:{default:[Va]},$$scope:{ctx:S}}}),Re=new y({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"}}),Ze=new y({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"}}),Je=new Ht({props:{title:"提示（Prompts）",local:"smolagents.PromptTemplates",headingTag:"h2"}}),Be=new y({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/zh/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/zh/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/zh/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"}}),Qe=new y({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"}}),Oe=new y({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"}}),Ye=new y({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"}}),Xe=new Na({props:{source:"https://github.com/huggingface/smolagents/blob/main/docs/source/zh/reference/agents.md"}}),{c(){f=s("meta"),T=n(),w=s("p"),C=n(),m(M.$$.fragment),b=n(),m(k.$$.fragment),jt=n(),m(j.$$.fragment),Wt=n(),pe=s("p"),pe.innerHTML=zo,Rt=n(),m(ce.$$.fragment),Zt=n(),ue=s("p"),ue.innerHTML=Fo,Jt=n(),he=s("p"),he.innerHTML=Go,Bt=n(),fe=s("ul"),fe.innerHTML=Ho,Qt=n(),_e=s("p"),_e.innerHTML=qo,Ot=n(),m(ve.$$.fragment),Yt=n(),_=s("div"),m(be.$$.fragment),Nn=n(),nt=s("p"),nt.textContent=jo,Dn=n(),W=s("div"),m($e.$$.fragment),En=n(),ot=s("p"),ot.textContent=Wo,Un=n(),R=s("div"),m(xe.$$.fragment),Vn=n(),at=s("p"),at.textContent=Ro,zn=n(),Z=s("div"),m(ye.$$.fragment),Fn=n(),st=s("p"),st.textContent=Zo,Gn=n(),N=s("div"),m(we.$$.fragment),Hn=n(),rt=s("p"),rt.textContent=Jo,qn=n(),m(J.$$.fragment),jn=n(),B=s("div"),m(Ce.$$.fragment),Wn=n(),lt=s("p"),lt.textContent=Bo,Rn=n(),Q=s("div"),m(Me.$$.fragment),Zn=n(),it=s("p"),it.textContent=Qo,Jn=n(),O=s("div"),m(Ae.$$.fragment),Bn=n(),mt=s("p"),mt.textContent=Oo,Qn=n(),Y=s("div"),m(Te.$$.fragment),On=n(),gt=s("p"),gt.textContent=Yo,Yn=n(),X=s("div"),m(ke.$$.fragment),Xn=n(),dt=s("p"),dt.textContent=Xo,Kn=n(),D=s("div"),m(Pe.$$.fragment),eo=n(),pt=s("p"),pt.textContent=Ko,to=n(),m(K.$$.fragment),no=n(),E=s("div"),m(Ie.$$.fragment),oo=n(),ct=s("p"),ct.innerHTML=ea,ao=n(),ut=s("ul"),ut.innerHTML=ta,so=n(),ee=s("div"),m(Le.$$.fragment),ro=n(),ht=s("p"),ht.textContent=na,lo=n(),te=s("div"),m(Se.$$.fragment),io=n(),ft=s("p"),ft.textContent=oa,mo=n(),ne=s("div"),m(Ne.$$.fragment),go=n(),_t=s("p"),_t.textContent=aa,po=n(),oe=s("div"),m(De.$$.fragment),co=n(),vt=s("p"),vt.textContent=sa,Xt=n(),P=s("div"),m(Ee.$$.fragment),uo=n(),bt=s("p"),bt.textContent=ra,ho=n(),ae=s("div"),m(Ue.$$.fragment),fo=n(),$t=s("p"),$t.textContent=la,_o=n(),se=s("div"),m(Ve.$$.fragment),vo=n(),xt=s("p"),xt.textContent=ia,Kt=n(),I=s("div"),m(ze.$$.fragment),bo=n(),yt=s("p"),yt.innerHTML=ma,$o=n(),U=s("div"),m(Fe.$$.fragment),xo=n(),wt=s("p"),wt.textContent=ga,yo=n(),Ct=s("p"),Ct.textContent=da,wo=n(),re=s("div"),m(Ge.$$.fragment),Co=n(),Mt=s("p"),Mt.textContent=pa,en=n(),m(He.$$.fragment),tn=n(),z=s("div"),m(qe.$$.fragment),Mo=n(),At=s("p"),At.textContent=ca,nn=n(),m(je.$$.fragment),on=n(),le=s("blockquote"),le.innerHTML=ua,an=n(),A=s("div"),m(We.$$.fragment),Ao=n(),Tt=s("p"),Tt.innerHTML=ha,To=n(),kt=s("p"),kt.innerHTML=fa,ko=n(),m(ie.$$.fragment),Po=n(),me=s("div"),m(Re.$$.fragment),Io=n(),Pt=s("p"),Pt.textContent=_a,Lo=n(),V=s("div"),m(Ze.$$.fragment),So=n(),It=s("p"),It.textContent=va,No=n(),Lt=s("p"),Lt.innerHTML=ba,sn=n(),m(Je.$$.fragment),rn=n(),F=s("div"),m(Be.$$.fragment),Do=n(),St=s("p"),St.textContent=$a,ln=n(),G=s("div"),m(Qe.$$.fragment),Eo=n(),Nt=s("p"),Nt.textContent=xa,mn=n(),H=s("div"),m(Oe.$$.fragment),Uo=n(),Dt=s("p"),Dt.textContent=ya,gn=n(),q=s("div"),m(Ye.$$.fragment),Vo=n(),Et=s("p"),Et.textContent=wa,dn=n(),m(Xe.$$.fragment),pn=n(),qt=s("p"),this.h()},l(e){const l=La("svelte-u9bgzb",document.head);f=r(l,"META",{name:!0,content:!0}),l.forEach(a),T=o(e),w=r(e,"P",{}),x(w).forEach(a),C=o(e),g(M.$$.fragment,e),b=o(e),g(k.$$.fragment,e),jt=o(e),g(j.$$.fragment,e),Wt=o(e),pe=r(e,"P",{"data-svelte-h":!0}),h(pe)!=="svelte-1h0tpys"&&(pe.innerHTML=zo),Rt=o(e),g(ce.$$.fragment,e),Zt=o(e),ue=r(e,"P",{"data-svelte-h":!0}),h(ue)!=="svelte-10ow6lk"&&(ue.innerHTML=Fo),Jt=o(e),he=r(e,"P",{"data-svelte-h":!0}),h(he)!=="svelte-1o5qbw2"&&(he.innerHTML=Go),Bt=o(e),fe=r(e,"UL",{"data-svelte-h":!0}),h(fe)!=="svelte-pgoql9"&&(fe.innerHTML=Ho),Qt=o(e),_e=r(e,"P",{"data-svelte-h":!0}),h(_e)!=="svelte-11wcumf"&&(_e.innerHTML=qo),Ot=o(e),g(ve.$$.fragment,e),Yt=o(e),_=r(e,"DIV",{class:!0});var v=x(_);g(be.$$.fragment,v),Nn=o(v),nt=r(v,"P",{"data-svelte-h":!0}),h(nt)!=="svelte-d5y990"&&(nt.textContent=jo),Dn=o(v),W=r(v,"DIV",{class:!0});var Ke=x(W);g($e.$$.fragment,Ke),En=o(Ke),ot=r(Ke,"P",{"data-svelte-h":!0}),h(ot)!=="svelte-104knry"&&(ot.textContent=Wo),Ke.forEach(a),Un=o(v),R=r(v,"DIV",{class:!0});var et=x(R);g(xe.$$.fragment,et),Vn=o(et),at=r(et,"P",{"data-svelte-h":!0}),h(at)!=="svelte-1kbba9r"&&(at.textContent=Ro),et.forEach(a),zn=o(v),Z=r(v,"DIV",{class:!0});var tt=x(Z);g(ye.$$.fragment,tt),Fn=o(tt),st=r(tt,"P",{"data-svelte-h":!0}),h(st)!=="svelte-1f5g0y1"&&(st.textContent=Zo),tt.forEach(a),Gn=o(v),N=r(v,"DIV",{class:!0});var Ut=x(N);g(we.$$.fragment,Ut),Hn=o(Ut),rt=r(Ut,"P",{"data-svelte-h":!0}),h(rt)!=="svelte-px853z"&&(rt.textContent=Jo),qn=o(Ut),g(J.$$.fragment,Ut),Ut.forEach(a),jn=o(v),B=r(v,"DIV",{class:!0});var un=x(B);g(Ce.$$.fragment,un),Wn=o(un),lt=r(un,"P",{"data-svelte-h":!0}),h(lt)!=="svelte-aqxmk9"&&(lt.textContent=Bo),un.forEach(a),Rn=o(v),Q=r(v,"DIV",{class:!0});var hn=x(Q);g(Me.$$.fragment,hn),Zn=o(hn),it=r(hn,"P",{"data-svelte-h":!0}),h(it)!=="svelte-vma7te"&&(it.textContent=Qo),hn.forEach(a),Jn=o(v),O=r(v,"DIV",{class:!0});var fn=x(O);g(Ae.$$.fragment,fn),Bn=o(fn),mt=r(fn,"P",{"data-svelte-h":!0}),h(mt)!=="svelte-s6zvq5"&&(mt.textContent=Oo),fn.forEach(a),Qn=o(v),Y=r(v,"DIV",{class:!0});var _n=x(Y);g(Te.$$.fragment,_n),On=o(_n),gt=r(_n,"P",{"data-svelte-h":!0}),h(gt)!=="svelte-3y7cve"&&(gt.textContent=Yo),_n.forEach(a),Yn=o(v),X=r(v,"DIV",{class:!0});var vn=x(X);g(ke.$$.fragment,vn),Xn=o(vn),dt=r(vn,"P",{"data-svelte-h":!0}),h(dt)!=="svelte-28znqy"&&(dt.textContent=Xo),vn.forEach(a),Kn=o(v),D=r(v,"DIV",{class:!0});var Vt=x(D);g(Pe.$$.fragment,Vt),eo=o(Vt),pt=r(Vt,"P",{"data-svelte-h":!0}),h(pt)!=="svelte-1rclfo7"&&(pt.textContent=Ko),to=o(Vt),g(K.$$.fragment,Vt),Vt.forEach(a),no=o(v),E=r(v,"DIV",{class:!0});var zt=x(E);g(Ie.$$.fragment,zt),oo=o(zt),ct=r(zt,"P",{"data-svelte-h":!0}),h(ct)!=="svelte-1uw6gyw"&&(ct.innerHTML=ea),ao=o(zt),ut=r(zt,"UL",{"data-svelte-h":!0}),h(ut)!=="svelte-11tnr4k"&&(ut.innerHTML=ta),zt.forEach(a),so=o(v),ee=r(v,"DIV",{class:!0});var bn=x(ee);g(Le.$$.fragment,bn),ro=o(bn),ht=r(bn,"P",{"data-svelte-h":!0}),h(ht)!=="svelte-1av9fpz"&&(ht.textContent=na),bn.forEach(a),lo=o(v),te=r(v,"DIV",{class:!0});var $n=x(te);g(Se.$$.fragment,$n),io=o($n),ft=r($n,"P",{"data-svelte-h":!0}),h(ft)!=="svelte-1kyagwa"&&(ft.textContent=oa),$n.forEach(a),mo=o(v),ne=r(v,"DIV",{class:!0});var xn=x(ne);g(Ne.$$.fragment,xn),go=o(xn),_t=r(xn,"P",{"data-svelte-h":!0}),h(_t)!=="svelte-em4ik4"&&(_t.textContent=aa),xn.forEach(a),po=o(v),oe=r(v,"DIV",{class:!0});var yn=x(oe);g(De.$$.fragment,yn),co=o(yn),vt=r(yn,"P",{"data-svelte-h":!0}),h(vt)!=="svelte-jg60qx"&&(vt.textContent=sa),yn.forEach(a),v.forEach(a),Xt=o(e),P=r(e,"DIV",{class:!0});var ge=x(P);g(Ee.$$.fragment,ge),uo=o(ge),bt=r(ge,"P",{"data-svelte-h":!0}),h(bt)!=="svelte-1mxsa12"&&(bt.textContent=ra),ho=o(ge),ae=r(ge,"DIV",{class:!0});var wn=x(ae);g(Ue.$$.fragment,wn),fo=o(wn),$t=r(wn,"P",{"data-svelte-h":!0}),h($t)!=="svelte-1dq3hsa"&&($t.textContent=la),wn.forEach(a),_o=o(ge),se=r(ge,"DIV",{class:!0});var Cn=x(se);g(Ve.$$.fragment,Cn),vo=o(Cn),xt=r(Cn,"P",{"data-svelte-h":!0}),h(xt)!=="svelte-1bap6qm"&&(xt.textContent=ia),Cn.forEach(a),ge.forEach(a),Kt=o(e),I=r(e,"DIV",{class:!0});var de=x(I);g(ze.$$.fragment,de),bo=o(de),yt=r(de,"P",{"data-svelte-h":!0}),h(yt)!=="svelte-71yyi1"&&(yt.innerHTML=ma),$o=o(de),U=r(de,"DIV",{class:!0});var Ft=x(U);g(Fe.$$.fragment,Ft),xo=o(Ft),wt=r(Ft,"P",{"data-svelte-h":!0}),h(wt)!=="svelte-yjyhgb"&&(wt.textContent=ga),yo=o(Ft),Ct=r(Ft,"P",{"data-svelte-h":!0}),h(Ct)!=="svelte-1l33w20"&&(Ct.textContent=da),Ft.forEach(a),wo=o(de),re=r(de,"DIV",{class:!0});var Mn=x(re);g(Ge.$$.fragment,Mn),Co=o(Mn),Mt=r(Mn,"P",{"data-svelte-h":!0}),h(Mt)!=="svelte-132xt9l"&&(Mt.textContent=pa),Mn.forEach(a),de.forEach(a),en=o(e),g(He.$$.fragment,e),tn=o(e),z=r(e,"DIV",{class:!0});var An=x(z);g(qe.$$.fragment,An),Mo=o(An),At=r(An,"P",{"data-svelte-h":!0}),h(At)!=="svelte-3yyclm"&&(At.textContent=ca),An.forEach(a),nn=o(e),g(je.$$.fragment,e),on=o(e),le=r(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),h(le)!=="svelte-1tp6bf6"&&(le.innerHTML=ua),an=o(e),A=r(e,"DIV",{class:!0});var L=x(A);g(We.$$.fragment,L),Ao=o(L),Tt=r(L,"P",{"data-svelte-h":!0}),h(Tt)!=="svelte-1sp9xv2"&&(Tt.innerHTML=ha),To=o(L),kt=r(L,"P",{"data-svelte-h":!0}),h(kt)!=="svelte-i76913"&&(kt.innerHTML=fa),ko=o(L),g(ie.$$.fragment,L),Po=o(L),me=r(L,"DIV",{class:!0});var Tn=x(me);g(Re.$$.fragment,Tn),Io=o(Tn),Pt=r(Tn,"P",{"data-svelte-h":!0}),h(Pt)!=="svelte-1jjhzc2"&&(Pt.textContent=_a),Tn.forEach(a),Lo=o(L),V=r(L,"DIV",{class:!0});var Gt=x(V);g(Ze.$$.fragment,Gt),So=o(Gt),It=r(Gt,"P",{"data-svelte-h":!0}),h(It)!=="svelte-7pw2wo"&&(It.textContent=va),No=o(Gt),Lt=r(Gt,"P",{"data-svelte-h":!0}),h(Lt)!=="svelte-19g2bgi"&&(Lt.innerHTML=ba),Gt.forEach(a),L.forEach(a),sn=o(e),g(Je.$$.fragment,e),rn=o(e),F=r(e,"DIV",{class:!0});var kn=x(F);g(Be.$$.fragment,kn),Do=o(kn),St=r(kn,"P",{"data-svelte-h":!0}),h(St)!=="svelte-1qudq9i"&&(St.textContent=$a),kn.forEach(a),ln=o(e),G=r(e,"DIV",{class:!0});var Pn=x(G);g(Qe.$$.fragment,Pn),Eo=o(Pn),Nt=r(Pn,"P",{"data-svelte-h":!0}),h(Nt)!=="svelte-139nrra"&&(Nt.textContent=xa),Pn.forEach(a),mn=o(e),H=r(e,"DIV",{class:!0});var In=x(H);g(Oe.$$.fragment,In),Uo=o(In),Dt=r(In,"P",{"data-svelte-h":!0}),h(Dt)!=="svelte-uxob75"&&(Dt.textContent=ya),In.forEach(a),gn=o(e),q=r(e,"DIV",{class:!0});var Ln=x(q);g(Ye.$$.fragment,Ln),Vo=o(Ln),Et=r(Ln,"P",{"data-svelte-h":!0}),h(Et)!=="svelte-52nyxb"&&(Et.textContent=wa),Ln.forEach(a),dn=o(e),g(Xe.$$.fragment,e),pn=o(e),qt=r(e,"P",{}),x(qt).forEach(a),this.h()},h(){$(f,"name","hf:doc:metadata"),$(f,"content",Fa),$(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(R,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(O,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(oe,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(_,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(le,"class","tip"),$(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,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(A,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,l){t(document.head,f),i(e,T,l),i(e,w,l),i(e,C,l),d(M,e,l),i(e,b,l),d(k,e,l),i(e,jt,l),d(j,e,l),i(e,Wt,l),i(e,pe,l),i(e,Rt,l),d(ce,e,l),i(e,Zt,l),i(e,ue,l),i(e,Jt,l),i(e,he,l),i(e,Bt,l),i(e,fe,l),i(e,Qt,l),i(e,_e,l),i(e,Ot,l),d(ve,e,l),i(e,Yt,l),i(e,_,l),d(be,_,null),t(_,Nn),t(_,nt),t(_,Dn),t(_,W),d($e,W,null),t(W,En),t(W,ot),t(_,Un),t(_,R),d(xe,R,null),t(R,Vn),t(R,at),t(_,zn),t(_,Z),d(ye,Z,null),t(Z,Fn),t(Z,st),t(_,Gn),t(_,N),d(we,N,null),t(N,Hn),t(N,rt),t(N,qn),d(J,N,null),t(_,jn),t(_,B),d(Ce,B,null),t(B,Wn),t(B,lt),t(_,Rn),t(_,Q),d(Me,Q,null),t(Q,Zn),t(Q,it),t(_,Jn),t(_,O),d(Ae,O,null),t(O,Bn),t(O,mt),t(_,Qn),t(_,Y),d(Te,Y,null),t(Y,On),t(Y,gt),t(_,Yn),t(_,X),d(ke,X,null),t(X,Xn),t(X,dt),t(_,Kn),t(_,D),d(Pe,D,null),t(D,eo),t(D,pt),t(D,to),d(K,D,null),t(_,no),t(_,E),d(Ie,E,null),t(E,oo),t(E,ct),t(E,ao),t(E,ut),t(_,so),t(_,ee),d(Le,ee,null),t(ee,ro),t(ee,ht),t(_,lo),t(_,te),d(Se,te,null),t(te,io),t(te,ft),t(_,mo),t(_,ne),d(Ne,ne,null),t(ne,go),t(ne,_t),t(_,po),t(_,oe),d(De,oe,null),t(oe,co),t(oe,vt),i(e,Xt,l),i(e,P,l),d(Ee,P,null),t(P,uo),t(P,bt),t(P,ho),t(P,ae),d(Ue,ae,null),t(ae,fo),t(ae,$t),t(P,_o),t(P,se),d(Ve,se,null),t(se,vo),t(se,xt),i(e,Kt,l),i(e,I,l),d(ze,I,null),t(I,bo),t(I,yt),t(I,$o),t(I,U),d(Fe,U,null),t(U,xo),t(U,wt),t(U,yo),t(U,Ct),t(I,wo),t(I,re),d(Ge,re,null),t(re,Co),t(re,Mt),i(e,en,l),d(He,e,l),i(e,tn,l),i(e,z,l),d(qe,z,null),t(z,Mo),t(z,At),i(e,nn,l),d(je,e,l),i(e,on,l),i(e,le,l),i(e,an,l),i(e,A,l),d(We,A,null),t(A,Ao),t(A,Tt),t(A,To),t(A,kt),t(A,ko),d(ie,A,null),t(A,Po),t(A,me),d(Re,me,null),t(me,Io),t(me,Pt),t(A,Lo),t(A,V),d(Ze,V,null),t(V,So),t(V,It),t(V,No),t(V,Lt),i(e,sn,l),d(Je,e,l),i(e,rn,l),i(e,F,l),d(Be,F,null),t(F,Do),t(F,St),i(e,ln,l),i(e,G,l),d(Qe,G,null),t(G,Eo),t(G,Nt),i(e,mn,l),i(e,H,l),d(Oe,H,null),t(H,Uo),t(H,Dt),i(e,gn,l),i(e,q,l),d(Ye,q,null),t(q,Vo),t(q,Et),i(e,dn,l),d(Xe,e,l),i(e,pn,l),i(e,qt,l),cn=!0},p(e,[l]){const v={};l&2&&(v.$$scope={dirty:l,ctx:e}),j.$set(v);const Ke={};l&2&&(Ke.$$scope={dirty:l,ctx:e}),J.$set(Ke);const et={};l&2&&(et.$$scope={dirty:l,ctx:e}),K.$set(et);const tt={};l&2&&(tt.$$scope={dirty:l,ctx:e}),ie.$set(tt)},i(e){cn||(p(M.$$.fragment,e),p(k.$$.fragment,e),p(j.$$.fragment,e),p(ce.$$.fragment,e),p(ve.$$.fragment,e),p(be.$$.fragment,e),p($e.$$.fragment,e),p(xe.$$.fragment,e),p(ye.$$.fragment,e),p(we.$$.fragment,e),p(J.$$.fragment,e),p(Ce.$$.fragment,e),p(Me.$$.fragment,e),p(Ae.$$.fragment,e),p(Te.$$.fragment,e),p(ke.$$.fragment,e),p(Pe.$$.fragment,e),p(K.$$.fragment,e),p(Ie.$$.fragment,e),p(Le.$$.fragment,e),p(Se.$$.fragment,e),p(Ne.$$.fragment,e),p(De.$$.fragment,e),p(Ee.$$.fragment,e),p(Ue.$$.fragment,e),p(Ve.$$.fragment,e),p(ze.$$.fragment,e),p(Fe.$$.fragment,e),p(Ge.$$.fragment,e),p(He.$$.fragment,e),p(qe.$$.fragment,e),p(je.$$.fragment,e),p(We.$$.fragment,e),p(ie.$$.fragment,e),p(Re.$$.fragment,e),p(Ze.$$.fragment,e),p(Je.$$.fragment,e),p(Be.$$.fragment,e),p(Qe.$$.fragment,e),p(Oe.$$.fragment,e),p(Ye.$$.fragment,e),p(Xe.$$.fragment,e),cn=!0)},o(e){c(M.$$.fragment,e),c(k.$$.fragment,e),c(j.$$.fragment,e),c(ce.$$.fragment,e),c(ve.$$.fragment,e),c(be.$$.fragment,e),c($e.$$.fragment,e),c(xe.$$.fragment,e),c(ye.$$.fragment,e),c(we.$$.fragment,e),c(J.$$.fragment,e),c(Ce.$$.fragment,e),c(Me.$$.fragment,e),c(Ae.$$.fragment,e),c(Te.$$.fragment,e),c(ke.$$.fragment,e),c(Pe.$$.fragment,e),c(K.$$.fragment,e),c(Ie.$$.fragment,e),c(Le.$$.fragment,e),c(Se.$$.fragment,e),c(Ne.$$.fragment,e),c(De.$$.fragment,e),c(Ee.$$.fragment,e),c(Ue.$$.fragment,e),c(Ve.$$.fragment,e),c(ze.$$.fragment,e),c(Fe.$$.fragment,e),c(Ge.$$.fragment,e),c(He.$$.fragment,e),c(qe.$$.fragment,e),c(je.$$.fragment,e),c(We.$$.fragment,e),c(ie.$$.fragment,e),c(Re.$$.fragment,e),c(Ze.$$.fragment,e),c(Je.$$.fragment,e),c(Be.$$.fragment,e),c(Qe.$$.fragment,e),c(Oe.$$.fragment,e),c(Ye.$$.fragment,e),c(Xe.$$.fragment,e),cn=!1},d(e){e&&(a(T),a(w),a(C),a(b),a(jt),a(Wt),a(pe),a(Rt),a(Zt),a(ue),a(Jt),a(he),a(Bt),a(fe),a(Qt),a(_e),a(Ot),a(Yt),a(_),a(Xt),a(P),a(Kt),a(I),a(en),a(tn),a(z),a(nn),a(on),a(le),a(an),a(A),a(sn),a(rn),a(F),a(ln),a(G),a(mn),a(H),a(gn),a(q),a(dn),a(pn),a(qt)),a(f),u(M,e),u(k,e),u(j,e),u(ce,e),u(ve,e),u(be),u($e),u(xe),u(ye),u(we),u(J),u(Ce),u(Me),u(Ae),u(Te),u(ke),u(Pe),u(K),u(Ie),u(Le),u(Se),u(Ne),u(De),u(Ee),u(Ue),u(Ve),u(ze),u(Fe),u(Ge),u(He,e),u(qe),u(je,e),u(We),u(ie),u(Re),u(Ze),u(Je,e),u(Be),u(Qe),u(Oe),u(Ye),u(Xe,e)}}}const Fa='{"title":"Agents（智能体）","local":"agents智能体","sections":[{"title":"智能体（Agents）","local":"智能体agents","sections":[{"title":"智能体类","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}],"depth":1}';function Ga(S){return ka(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Za extends Pa{constructor(f){super(),Ia(this,f,Ga,za,Ta,{})}}export{Za as component};
