import{s as Ma,o as Aa,n as In}from"../chunks/scheduler.f6319a2a.js";import{S as Ta,i as ka,g as s,s as n,r as g,A as Pa,h as r,f as a,c as o,j as x,u as d,x as m,k as $,y as t,a as i,v as p,d as c,t as u,w as h}from"../chunks/index.85aa684c.js";import{T as ya,D as y,E as wa}from"../chunks/ExampleCodeBlock.7120e9d6.js";import{C as Ca}from"../chunks/CodeBlock.3400fc53.js";import{H as Gt,E as Ia}from"../chunks/getInferenceSnippets.0233181f.js";function La(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}),m(f)!=="svelte-p58lhb"&&(f.textContent=T)},m(w,C){i(w,f,C)},p:In,d(w){w&&a(f)}}}function Sa(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}),m(f)!=="svelte-fpk7e5"&&(f.textContent=T)},m(w,C){i(w,f,C)},p:In,d(w){w&&a(f)}}}function Na(S){let f,T="Example:",w,C,M;return C=new Ca({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(),g(C.$$.fragment)},l(b){f=r(b,"P",{"data-svelte-h":!0}),m(f)!=="svelte-11lpom8"&&(f.textContent=T),w=o(b),d(C.$$.fragment,b)},m(b,k){i(b,f,k),i(b,w,k),p(C,b,k),M=!0},p:In,i(b){M||(c(C.$$.fragment,b),M=!0)},o(b){u(C.$$.fragment,b),M=!1},d(b){b&&(a(f),a(w)),h(C,b)}}}function Da(S){let f,T="Example:",w,C,M;return C=new Ca({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(),g(C.$$.fragment)},l(b){f=r(b,"P",{"data-svelte-h":!0}),m(f)!=="svelte-11lpom8"&&(f.textContent=T),w=o(b),d(C.$$.fragment,b)},m(b,k){i(b,f,k),i(b,w,k),p(C,b,k),M=!0},p:In,i(b){M||(c(C.$$.fragment,b),M=!0)},o(b){u(C.$$.fragment,b),M=!1},d(b){b&&(a(f),a(w)),h(C,b)}}}function Ea(S){let f,T,w,C,M,b,k,qt,de,Uo='要了解有关智能体和工具的更多信息，请务必阅读<a href="../index">入门指南</a>。本页面包含基础类的 API 文档。',jt,pe,Wt,ce,Vo='我们的智能体继承自 <a href="/docs/smolagents/v1.22.0/zh/reference/agents#smolagents.MultiStepAgent">MultiStepAgent</a>，这意味着它们可以执行多步操作，每一步包含一个思考（thought），然后是一个工具调用和执行。请阅读<a href="../conceptual_guides/react">概念指南</a>以了解更多信息。',Rt,ue,zo="我们提供两种类型的代理，它们基于主要的 <code>Agent</code> 类：",Zt,he,Fo='<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>',Jt,fe,Go="两者在初始化时都需要提供参数 <code>model</code> 和工具列表 <code>tools</code>。",Bt,_e,Qt,_,ve,Ln,tt,Ho=`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).`,Sn,j,be,Nn,nt,qo="Parse action from the LLM output",Dn,W,$e,En,ot,jo="Create agent from a dictionary representation.",Un,R,xe,Vn,at,Wo="Loads an agent from a local folder.",zn,N,ye,Fn,st,Ro="Loads an agent defined on the Hub.",Gn,Z,Hn,J,we,qn,rt,Zo="To be implemented in child classes",jn,B,Ce,Wn,lt,Jo="Interrupts the agent execution.",Rn,Q,Me,Zn,it,Bo="Provide the final answer to the task, based on the logs of the agent’s interactions.",Jn,O,Ae,Bn,mt,Qo="Upload the agent to the Hub.",Qn,Y,Te,On,gt,Oo="Prints a pretty replay of the agent’s steps.",Yn,D,ke,Xn,dt,Yo="Run the agent for the given task.",Kn,X,eo,E,Pe,to,pt,Xo="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:",no,ct,Ko=`<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>`,oo,K,Ie,ao,ut,ea=`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.`,so,ee,Le,ro,ht,ta="Convert the agent to a dictionary representation.",lo,te,Se,io,ft,na="Creates a rich tree visualization of the agent’s structure.",mo,ne,Ne,go,_t,oa=`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.`,Ot,P,De,po,vt,aa="In this agent, the tool calls will be formulated by the LLM in code format, then parsed and executed.",co,oe,Ee,uo,bt,sa="Clean up resources used by the agent, such as the remote Python executor.",ho,ae,Ue,fo,$t,ra="Create CodeAgent from a dictionary representation.",Yt,I,Ve,_o,xt,la="This agent uses JSON-like tool calls, using method <code>model.get_tool_call</code> to leverage the LLM engine’s tool calling capabilities.",vo,U,ze,bo,yt,ia="Execute a tool or managed agent with the provided arguments.",$o,wt,ma="The arguments are replaced with the actual values from the state if they refer to state variables.",xo,se,Fe,yo,Ct,ga="Process tool calls from the model output and update agent memory.",Xt,Ge,Kt,z,He,wo,Mt,da="Runs an agent with the given task and streams the messages from the agent as gradio ChatMessages.",en,qe,tn,re,pa="<p>您必须安装 <code>gradio</code> 才能使用 UI。如果尚未安装，请运行 <code>pip install &#39;smolagents[gradio]&#39;</code>。</p>",nn,A,je,Co,At,ca='Gradio interface for interacting with a <a href="/docs/smolagents/v1.22.0/zh/reference/agents#smolagents.MultiStepAgent">MultiStepAgent</a>.',Mo,Tt,ua=`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>.`,Ao,le,To,ie,We,ko,kt,ha="Launch the Gradio app with the agent interface.",Po,V,Re,Io,Pt,fa="Upload a file and add it to the list of uploaded files in the session state.",Lo,It,_a=`The file is saved to the <code>self.file_upload_folder</code> folder.
If the file type is not allowed, it returns a message indicating the disallowed file type.`,on,Ze,an,F,Je,So,Lt,va="Prompt templates for the agent.",sn,G,Be,No,St,ba="Prompt templates for the planning step.",rn,H,Qe,Do,Nt,$a="Prompt templates for the managed agent.",ln,q,Oe,Eo,Dt,xa="Prompt templates for the final answer.",mn,Ye,gn,Ht,dn;return M=new Gt({props:{title:"Agents（智能体）",local:"agents智能体",headingTag:"h1"}}),k=new ya({props:{warning:!0,$$slots:{default:[La]},$$scope:{ctx:S}}}),pe=new Gt({props:{title:"智能体（Agents）",local:"智能体agents",headingTag:"h2"}}),_e=new Gt({props:{title:"智能体类",local:"smolagents.MultiStepAgent",headingTag:"h3"}}),ve=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"}}),be=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"}}),$e=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>
`}}),xe=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"}}),ye=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"}}),Z=new ya({props:{warning:!0,$$slots:{default:[Sa]},$$scope:{ctx:S}}}),we=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"}}),Ce=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"}}),Me=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>
`}}),Ae=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"}}),Te=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"}}),ke=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"}}),X=new wa({props:{anchor:"smolagents.MultiStepAgent.run.example",$$slots:{default:[Na]},$$scope:{ctx:S}}}),Pe=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"}}),Ie=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"}}),Le=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>
`}}),Se=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"}}),Ne=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"}}),De=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"}}),Ee=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"}}),Ue=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>
`}}),Ve=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"}}),ze=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"}}),Fe=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}}),Ge=new Gt({props:{title:"stream_to_gradio",local:"smolagents.stream_to_gradio",headingTag:"h3"}}),He=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"}}),qe=new Gt({props:{title:"GradioUI",local:"smolagents.GradioUI",headingTag:"h3"}}),je=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>
`}}),le=new wa({props:{anchor:"smolagents.GradioUI.example",$$slots:{default:[Da]},$$scope:{ctx:S}}}),We=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"}}),Re=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"}}),Ze=new Gt({props:{title:"提示（Prompts）",local:"smolagents.PromptTemplates",headingTag:"h2"}}),Je=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"}}),Be=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"}}),Qe=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"}}),Oe=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"}}),Ye=new Ia({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(),g(M.$$.fragment),b=n(),g(k.$$.fragment),qt=n(),de=s("p"),de.innerHTML=Uo,jt=n(),g(pe.$$.fragment),Wt=n(),ce=s("p"),ce.innerHTML=Vo,Rt=n(),ue=s("p"),ue.innerHTML=zo,Zt=n(),he=s("ul"),he.innerHTML=Fo,Jt=n(),fe=s("p"),fe.innerHTML=Go,Bt=n(),g(_e.$$.fragment),Qt=n(),_=s("div"),g(ve.$$.fragment),Ln=n(),tt=s("p"),tt.textContent=Ho,Sn=n(),j=s("div"),g(be.$$.fragment),Nn=n(),nt=s("p"),nt.textContent=qo,Dn=n(),W=s("div"),g($e.$$.fragment),En=n(),ot=s("p"),ot.textContent=jo,Un=n(),R=s("div"),g(xe.$$.fragment),Vn=n(),at=s("p"),at.textContent=Wo,zn=n(),N=s("div"),g(ye.$$.fragment),Fn=n(),st=s("p"),st.textContent=Ro,Gn=n(),g(Z.$$.fragment),Hn=n(),J=s("div"),g(we.$$.fragment),qn=n(),rt=s("p"),rt.textContent=Zo,jn=n(),B=s("div"),g(Ce.$$.fragment),Wn=n(),lt=s("p"),lt.textContent=Jo,Rn=n(),Q=s("div"),g(Me.$$.fragment),Zn=n(),it=s("p"),it.textContent=Bo,Jn=n(),O=s("div"),g(Ae.$$.fragment),Bn=n(),mt=s("p"),mt.textContent=Qo,Qn=n(),Y=s("div"),g(Te.$$.fragment),On=n(),gt=s("p"),gt.textContent=Oo,Yn=n(),D=s("div"),g(ke.$$.fragment),Xn=n(),dt=s("p"),dt.textContent=Yo,Kn=n(),g(X.$$.fragment),eo=n(),E=s("div"),g(Pe.$$.fragment),to=n(),pt=s("p"),pt.innerHTML=Xo,no=n(),ct=s("ul"),ct.innerHTML=Ko,oo=n(),K=s("div"),g(Ie.$$.fragment),ao=n(),ut=s("p"),ut.textContent=ea,so=n(),ee=s("div"),g(Le.$$.fragment),ro=n(),ht=s("p"),ht.textContent=ta,lo=n(),te=s("div"),g(Se.$$.fragment),io=n(),ft=s("p"),ft.textContent=na,mo=n(),ne=s("div"),g(Ne.$$.fragment),go=n(),_t=s("p"),_t.textContent=oa,Ot=n(),P=s("div"),g(De.$$.fragment),po=n(),vt=s("p"),vt.textContent=aa,co=n(),oe=s("div"),g(Ee.$$.fragment),uo=n(),bt=s("p"),bt.textContent=sa,ho=n(),ae=s("div"),g(Ue.$$.fragment),fo=n(),$t=s("p"),$t.textContent=ra,Yt=n(),I=s("div"),g(Ve.$$.fragment),_o=n(),xt=s("p"),xt.innerHTML=la,vo=n(),U=s("div"),g(ze.$$.fragment),bo=n(),yt=s("p"),yt.textContent=ia,$o=n(),wt=s("p"),wt.textContent=ma,xo=n(),se=s("div"),g(Fe.$$.fragment),yo=n(),Ct=s("p"),Ct.textContent=ga,Xt=n(),g(Ge.$$.fragment),Kt=n(),z=s("div"),g(He.$$.fragment),wo=n(),Mt=s("p"),Mt.textContent=da,en=n(),g(qe.$$.fragment),tn=n(),re=s("blockquote"),re.innerHTML=pa,nn=n(),A=s("div"),g(je.$$.fragment),Co=n(),At=s("p"),At.innerHTML=ca,Mo=n(),Tt=s("p"),Tt.innerHTML=ua,Ao=n(),g(le.$$.fragment),To=n(),ie=s("div"),g(We.$$.fragment),ko=n(),kt=s("p"),kt.textContent=ha,Po=n(),V=s("div"),g(Re.$$.fragment),Io=n(),Pt=s("p"),Pt.textContent=fa,Lo=n(),It=s("p"),It.innerHTML=_a,on=n(),g(Ze.$$.fragment),an=n(),F=s("div"),g(Je.$$.fragment),So=n(),Lt=s("p"),Lt.textContent=va,sn=n(),G=s("div"),g(Be.$$.fragment),No=n(),St=s("p"),St.textContent=ba,rn=n(),H=s("div"),g(Qe.$$.fragment),Do=n(),Nt=s("p"),Nt.textContent=$a,ln=n(),q=s("div"),g(Oe.$$.fragment),Eo=n(),Dt=s("p"),Dt.textContent=xa,mn=n(),g(Ye.$$.fragment),gn=n(),Ht=s("p"),this.h()},l(e){const l=Pa("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),d(M.$$.fragment,e),b=o(e),d(k.$$.fragment,e),qt=o(e),de=r(e,"P",{"data-svelte-h":!0}),m(de)!=="svelte-1h0tpys"&&(de.innerHTML=Uo),jt=o(e),d(pe.$$.fragment,e),Wt=o(e),ce=r(e,"P",{"data-svelte-h":!0}),m(ce)!=="svelte-10ow6lk"&&(ce.innerHTML=Vo),Rt=o(e),ue=r(e,"P",{"data-svelte-h":!0}),m(ue)!=="svelte-1o5qbw2"&&(ue.innerHTML=zo),Zt=o(e),he=r(e,"UL",{"data-svelte-h":!0}),m(he)!=="svelte-pgoql9"&&(he.innerHTML=Fo),Jt=o(e),fe=r(e,"P",{"data-svelte-h":!0}),m(fe)!=="svelte-11wcumf"&&(fe.innerHTML=Go),Bt=o(e),d(_e.$$.fragment,e),Qt=o(e),_=r(e,"DIV",{class:!0});var v=x(_);d(ve.$$.fragment,v),Ln=o(v),tt=r(v,"P",{"data-svelte-h":!0}),m(tt)!=="svelte-d5y990"&&(tt.textContent=Ho),Sn=o(v),j=r(v,"DIV",{class:!0});var Xe=x(j);d(be.$$.fragment,Xe),Nn=o(Xe),nt=r(Xe,"P",{"data-svelte-h":!0}),m(nt)!=="svelte-104knry"&&(nt.textContent=qo),Xe.forEach(a),Dn=o(v),W=r(v,"DIV",{class:!0});var Ke=x(W);d($e.$$.fragment,Ke),En=o(Ke),ot=r(Ke,"P",{"data-svelte-h":!0}),m(ot)!=="svelte-1kbba9r"&&(ot.textContent=jo),Ke.forEach(a),Un=o(v),R=r(v,"DIV",{class:!0});var et=x(R);d(xe.$$.fragment,et),Vn=o(et),at=r(et,"P",{"data-svelte-h":!0}),m(at)!=="svelte-1f5g0y1"&&(at.textContent=Wo),et.forEach(a),zn=o(v),N=r(v,"DIV",{class:!0});var Et=x(N);d(ye.$$.fragment,Et),Fn=o(Et),st=r(Et,"P",{"data-svelte-h":!0}),m(st)!=="svelte-px853z"&&(st.textContent=Ro),Gn=o(Et),d(Z.$$.fragment,Et),Et.forEach(a),Hn=o(v),J=r(v,"DIV",{class:!0});var pn=x(J);d(we.$$.fragment,pn),qn=o(pn),rt=r(pn,"P",{"data-svelte-h":!0}),m(rt)!=="svelte-aqxmk9"&&(rt.textContent=Zo),pn.forEach(a),jn=o(v),B=r(v,"DIV",{class:!0});var cn=x(B);d(Ce.$$.fragment,cn),Wn=o(cn),lt=r(cn,"P",{"data-svelte-h":!0}),m(lt)!=="svelte-vma7te"&&(lt.textContent=Jo),cn.forEach(a),Rn=o(v),Q=r(v,"DIV",{class:!0});var un=x(Q);d(Me.$$.fragment,un),Zn=o(un),it=r(un,"P",{"data-svelte-h":!0}),m(it)!=="svelte-s6zvq5"&&(it.textContent=Bo),un.forEach(a),Jn=o(v),O=r(v,"DIV",{class:!0});var hn=x(O);d(Ae.$$.fragment,hn),Bn=o(hn),mt=r(hn,"P",{"data-svelte-h":!0}),m(mt)!=="svelte-3y7cve"&&(mt.textContent=Qo),hn.forEach(a),Qn=o(v),Y=r(v,"DIV",{class:!0});var fn=x(Y);d(Te.$$.fragment,fn),On=o(fn),gt=r(fn,"P",{"data-svelte-h":!0}),m(gt)!=="svelte-28znqy"&&(gt.textContent=Oo),fn.forEach(a),Yn=o(v),D=r(v,"DIV",{class:!0});var Ut=x(D);d(ke.$$.fragment,Ut),Xn=o(Ut),dt=r(Ut,"P",{"data-svelte-h":!0}),m(dt)!=="svelte-1rclfo7"&&(dt.textContent=Yo),Kn=o(Ut),d(X.$$.fragment,Ut),Ut.forEach(a),eo=o(v),E=r(v,"DIV",{class:!0});var Vt=x(E);d(Pe.$$.fragment,Vt),to=o(Vt),pt=r(Vt,"P",{"data-svelte-h":!0}),m(pt)!=="svelte-1uw6gyw"&&(pt.innerHTML=Xo),no=o(Vt),ct=r(Vt,"UL",{"data-svelte-h":!0}),m(ct)!=="svelte-11tnr4k"&&(ct.innerHTML=Ko),Vt.forEach(a),oo=o(v),K=r(v,"DIV",{class:!0});var _n=x(K);d(Ie.$$.fragment,_n),ao=o(_n),ut=r(_n,"P",{"data-svelte-h":!0}),m(ut)!=="svelte-1av9fpz"&&(ut.textContent=ea),_n.forEach(a),so=o(v),ee=r(v,"DIV",{class:!0});var vn=x(ee);d(Le.$$.fragment,vn),ro=o(vn),ht=r(vn,"P",{"data-svelte-h":!0}),m(ht)!=="svelte-1kyagwa"&&(ht.textContent=ta),vn.forEach(a),lo=o(v),te=r(v,"DIV",{class:!0});var bn=x(te);d(Se.$$.fragment,bn),io=o(bn),ft=r(bn,"P",{"data-svelte-h":!0}),m(ft)!=="svelte-em4ik4"&&(ft.textContent=na),bn.forEach(a),mo=o(v),ne=r(v,"DIV",{class:!0});var $n=x(ne);d(Ne.$$.fragment,$n),go=o($n),_t=r($n,"P",{"data-svelte-h":!0}),m(_t)!=="svelte-jg60qx"&&(_t.textContent=oa),$n.forEach(a),v.forEach(a),Ot=o(e),P=r(e,"DIV",{class:!0});var me=x(P);d(De.$$.fragment,me),po=o(me),vt=r(me,"P",{"data-svelte-h":!0}),m(vt)!=="svelte-1mxsa12"&&(vt.textContent=aa),co=o(me),oe=r(me,"DIV",{class:!0});var xn=x(oe);d(Ee.$$.fragment,xn),uo=o(xn),bt=r(xn,"P",{"data-svelte-h":!0}),m(bt)!=="svelte-1dq3hsa"&&(bt.textContent=sa),xn.forEach(a),ho=o(me),ae=r(me,"DIV",{class:!0});var yn=x(ae);d(Ue.$$.fragment,yn),fo=o(yn),$t=r(yn,"P",{"data-svelte-h":!0}),m($t)!=="svelte-1bap6qm"&&($t.textContent=ra),yn.forEach(a),me.forEach(a),Yt=o(e),I=r(e,"DIV",{class:!0});var ge=x(I);d(Ve.$$.fragment,ge),_o=o(ge),xt=r(ge,"P",{"data-svelte-h":!0}),m(xt)!=="svelte-71yyi1"&&(xt.innerHTML=la),vo=o(ge),U=r(ge,"DIV",{class:!0});var zt=x(U);d(ze.$$.fragment,zt),bo=o(zt),yt=r(zt,"P",{"data-svelte-h":!0}),m(yt)!=="svelte-yjyhgb"&&(yt.textContent=ia),$o=o(zt),wt=r(zt,"P",{"data-svelte-h":!0}),m(wt)!=="svelte-1l33w20"&&(wt.textContent=ma),zt.forEach(a),xo=o(ge),se=r(ge,"DIV",{class:!0});var wn=x(se);d(Fe.$$.fragment,wn),yo=o(wn),Ct=r(wn,"P",{"data-svelte-h":!0}),m(Ct)!=="svelte-132xt9l"&&(Ct.textContent=ga),wn.forEach(a),ge.forEach(a),Xt=o(e),d(Ge.$$.fragment,e),Kt=o(e),z=r(e,"DIV",{class:!0});var Cn=x(z);d(He.$$.fragment,Cn),wo=o(Cn),Mt=r(Cn,"P",{"data-svelte-h":!0}),m(Mt)!=="svelte-3yyclm"&&(Mt.textContent=da),Cn.forEach(a),en=o(e),d(qe.$$.fragment,e),tn=o(e),re=r(e,"BLOCKQUOTE",{class:!0,"data-svelte-h":!0}),m(re)!=="svelte-1tp6bf6"&&(re.innerHTML=pa),nn=o(e),A=r(e,"DIV",{class:!0});var L=x(A);d(je.$$.fragment,L),Co=o(L),At=r(L,"P",{"data-svelte-h":!0}),m(At)!=="svelte-1sp9xv2"&&(At.innerHTML=ca),Mo=o(L),Tt=r(L,"P",{"data-svelte-h":!0}),m(Tt)!=="svelte-i76913"&&(Tt.innerHTML=ua),Ao=o(L),d(le.$$.fragment,L),To=o(L),ie=r(L,"DIV",{class:!0});var Mn=x(ie);d(We.$$.fragment,Mn),ko=o(Mn),kt=r(Mn,"P",{"data-svelte-h":!0}),m(kt)!=="svelte-1jjhzc2"&&(kt.textContent=ha),Mn.forEach(a),Po=o(L),V=r(L,"DIV",{class:!0});var Ft=x(V);d(Re.$$.fragment,Ft),Io=o(Ft),Pt=r(Ft,"P",{"data-svelte-h":!0}),m(Pt)!=="svelte-7pw2wo"&&(Pt.textContent=fa),Lo=o(Ft),It=r(Ft,"P",{"data-svelte-h":!0}),m(It)!=="svelte-19g2bgi"&&(It.innerHTML=_a),Ft.forEach(a),L.forEach(a),on=o(e),d(Ze.$$.fragment,e),an=o(e),F=r(e,"DIV",{class:!0});var An=x(F);d(Je.$$.fragment,An),So=o(An),Lt=r(An,"P",{"data-svelte-h":!0}),m(Lt)!=="svelte-1qudq9i"&&(Lt.textContent=va),An.forEach(a),sn=o(e),G=r(e,"DIV",{class:!0});var Tn=x(G);d(Be.$$.fragment,Tn),No=o(Tn),St=r(Tn,"P",{"data-svelte-h":!0}),m(St)!=="svelte-139nrra"&&(St.textContent=ba),Tn.forEach(a),rn=o(e),H=r(e,"DIV",{class:!0});var kn=x(H);d(Qe.$$.fragment,kn),Do=o(kn),Nt=r(kn,"P",{"data-svelte-h":!0}),m(Nt)!=="svelte-uxob75"&&(Nt.textContent=$a),kn.forEach(a),ln=o(e),q=r(e,"DIV",{class:!0});var Pn=x(q);d(Oe.$$.fragment,Pn),Eo=o(Pn),Dt=r(Pn,"P",{"data-svelte-h":!0}),m(Dt)!=="svelte-52nyxb"&&(Dt.textContent=xa),Pn.forEach(a),mn=o(e),d(Ye.$$.fragment,e),gn=o(e),Ht=r(e,"P",{}),x(Ht).forEach(a),this.h()},h(){$(f,"name","hf:doc:metadata"),$(f,"content",Ua),$(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(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"),$(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(J,"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"),$(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"),$(K,"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"),$(_,"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"),$(ae,"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"),$(se,"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"),$(re,"class","tip"),$(ie,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),$(V,"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),p(M,e,l),i(e,b,l),p(k,e,l),i(e,qt,l),i(e,de,l),i(e,jt,l),p(pe,e,l),i(e,Wt,l),i(e,ce,l),i(e,Rt,l),i(e,ue,l),i(e,Zt,l),i(e,he,l),i(e,Jt,l),i(e,fe,l),i(e,Bt,l),p(_e,e,l),i(e,Qt,l),i(e,_,l),p(ve,_,null),t(_,Ln),t(_,tt),t(_,Sn),t(_,j),p(be,j,null),t(j,Nn),t(j,nt),t(_,Dn),t(_,W),p($e,W,null),t(W,En),t(W,ot),t(_,Un),t(_,R),p(xe,R,null),t(R,Vn),t(R,at),t(_,zn),t(_,N),p(ye,N,null),t(N,Fn),t(N,st),t(N,Gn),p(Z,N,null),t(_,Hn),t(_,J),p(we,J,null),t(J,qn),t(J,rt),t(_,jn),t(_,B),p(Ce,B,null),t(B,Wn),t(B,lt),t(_,Rn),t(_,Q),p(Me,Q,null),t(Q,Zn),t(Q,it),t(_,Jn),t(_,O),p(Ae,O,null),t(O,Bn),t(O,mt),t(_,Qn),t(_,Y),p(Te,Y,null),t(Y,On),t(Y,gt),t(_,Yn),t(_,D),p(ke,D,null),t(D,Xn),t(D,dt),t(D,Kn),p(X,D,null),t(_,eo),t(_,E),p(Pe,E,null),t(E,to),t(E,pt),t(E,no),t(E,ct),t(_,oo),t(_,K),p(Ie,K,null),t(K,ao),t(K,ut),t(_,so),t(_,ee),p(Le,ee,null),t(ee,ro),t(ee,ht),t(_,lo),t(_,te),p(Se,te,null),t(te,io),t(te,ft),t(_,mo),t(_,ne),p(Ne,ne,null),t(ne,go),t(ne,_t),i(e,Ot,l),i(e,P,l),p(De,P,null),t(P,po),t(P,vt),t(P,co),t(P,oe),p(Ee,oe,null),t(oe,uo),t(oe,bt),t(P,ho),t(P,ae),p(Ue,ae,null),t(ae,fo),t(ae,$t),i(e,Yt,l),i(e,I,l),p(Ve,I,null),t(I,_o),t(I,xt),t(I,vo),t(I,U),p(ze,U,null),t(U,bo),t(U,yt),t(U,$o),t(U,wt),t(I,xo),t(I,se),p(Fe,se,null),t(se,yo),t(se,Ct),i(e,Xt,l),p(Ge,e,l),i(e,Kt,l),i(e,z,l),p(He,z,null),t(z,wo),t(z,Mt),i(e,en,l),p(qe,e,l),i(e,tn,l),i(e,re,l),i(e,nn,l),i(e,A,l),p(je,A,null),t(A,Co),t(A,At),t(A,Mo),t(A,Tt),t(A,Ao),p(le,A,null),t(A,To),t(A,ie),p(We,ie,null),t(ie,ko),t(ie,kt),t(A,Po),t(A,V),p(Re,V,null),t(V,Io),t(V,Pt),t(V,Lo),t(V,It),i(e,on,l),p(Ze,e,l),i(e,an,l),i(e,F,l),p(Je,F,null),t(F,So),t(F,Lt),i(e,sn,l),i(e,G,l),p(Be,G,null),t(G,No),t(G,St),i(e,rn,l),i(e,H,l),p(Qe,H,null),t(H,Do),t(H,Nt),i(e,ln,l),i(e,q,l),p(Oe,q,null),t(q,Eo),t(q,Dt),i(e,mn,l),p(Ye,e,l),i(e,gn,l),i(e,Ht,l),dn=!0},p(e,[l]){const v={};l&2&&(v.$$scope={dirty:l,ctx:e}),k.$set(v);const Xe={};l&2&&(Xe.$$scope={dirty:l,ctx:e}),Z.$set(Xe);const Ke={};l&2&&(Ke.$$scope={dirty:l,ctx:e}),X.$set(Ke);const et={};l&2&&(et.$$scope={dirty:l,ctx:e}),le.$set(et)},i(e){dn||(c(M.$$.fragment,e),c(k.$$.fragment,e),c(pe.$$.fragment,e),c(_e.$$.fragment,e),c(ve.$$.fragment,e),c(be.$$.fragment,e),c($e.$$.fragment,e),c(xe.$$.fragment,e),c(ye.$$.fragment,e),c(Z.$$.fragment,e),c(we.$$.fragment,e),c(Ce.$$.fragment,e),c(Me.$$.fragment,e),c(Ae.$$.fragment,e),c(Te.$$.fragment,e),c(ke.$$.fragment,e),c(X.$$.fragment,e),c(Pe.$$.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(le.$$.fragment,e),c(We.$$.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),dn=!0)},o(e){u(M.$$.fragment,e),u(k.$$.fragment,e),u(pe.$$.fragment,e),u(_e.$$.fragment,e),u(ve.$$.fragment,e),u(be.$$.fragment,e),u($e.$$.fragment,e),u(xe.$$.fragment,e),u(ye.$$.fragment,e),u(Z.$$.fragment,e),u(we.$$.fragment,e),u(Ce.$$.fragment,e),u(Me.$$.fragment,e),u(Ae.$$.fragment,e),u(Te.$$.fragment,e),u(ke.$$.fragment,e),u(X.$$.fragment,e),u(Pe.$$.fragment,e),u(Ie.$$.fragment,e),u(Le.$$.fragment,e),u(Se.$$.fragment,e),u(Ne.$$.fragment,e),u(De.$$.fragment,e),u(Ee.$$.fragment,e),u(Ue.$$.fragment,e),u(Ve.$$.fragment,e),u(ze.$$.fragment,e),u(Fe.$$.fragment,e),u(Ge.$$.fragment,e),u(He.$$.fragment,e),u(qe.$$.fragment,e),u(je.$$.fragment,e),u(le.$$.fragment,e),u(We.$$.fragment,e),u(Re.$$.fragment,e),u(Ze.$$.fragment,e),u(Je.$$.fragment,e),u(Be.$$.fragment,e),u(Qe.$$.fragment,e),u(Oe.$$.fragment,e),u(Ye.$$.fragment,e),dn=!1},d(e){e&&(a(T),a(w),a(C),a(b),a(qt),a(de),a(jt),a(Wt),a(ce),a(Rt),a(ue),a(Zt),a(he),a(Jt),a(fe),a(Bt),a(Qt),a(_),a(Ot),a(P),a(Yt),a(I),a(Xt),a(Kt),a(z),a(en),a(tn),a(re),a(nn),a(A),a(on),a(an),a(F),a(sn),a(G),a(rn),a(H),a(ln),a(q),a(mn),a(gn),a(Ht)),a(f),h(M,e),h(k,e),h(pe,e),h(_e,e),h(ve),h(be),h($e),h(xe),h(ye),h(Z),h(we),h(Ce),h(Me),h(Ae),h(Te),h(ke),h(X),h(Pe),h(Ie),h(Le),h(Se),h(Ne),h(De),h(Ee),h(Ue),h(Ve),h(ze),h(Fe),h(Ge,e),h(He),h(qe,e),h(je),h(le),h(We),h(Re),h(Ze,e),h(Je),h(Be),h(Qe),h(Oe),h(Ye,e)}}}const Ua='{"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 Va(S){return Aa(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class ja extends Ta{constructor(f){super(),ka(this,f,Va,Ea,Ma,{})}}export{ja as component};
