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


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


<p><code>MultiStepAgent</code></p>
`}}),ye=new w({props:{name:"from_folder",anchor:"smolagents.MultiStepAgent.from_folder",parameters:[{name:"folder",val:": str | pathlib.Path"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.from_folder.folder",description:"<strong>folder</strong> (<code>str</code> or <code>Path</code>) &#x2014; The folder where the agent is saved.",name:"folder"},{anchor:"smolagents.MultiStepAgent.from_folder.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments that will be passed to the agent&#x2019;s init.",name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L1066"}}),we=new w({props:{name:"from_hub",anchor:"smolagents.MultiStepAgent.from_hub",parameters:[{name:"repo_id",val:": str"},{name:"token",val:": str | None = None"},{name:"trust_remote_code",val:": bool = False"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.from_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repo on the Hub where your tool is defined.`,name:"repo_id"},{anchor:"smolagents.MultiStepAgent.from_hub.token",description:`<strong>token</strong> (<code>str</code>, <em>optional</em>) &#x2014;
The token to identify you on hf.co. If unset, will use the token generated when running
<code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"smolagents.MultiStepAgent.from_hub.trust_remote_code(bool,",description:`<strong>trust_remote_code(<code>bool</code>,</strong> <em>optional</em>, defaults to False) &#x2014;
This flags marks that you understand the risk of running remote code and that you trust this tool.
If not setting this to True, loading the tool from Hub will fail.`,name:"trust_remote_code(bool,"},{anchor:"smolagents.MultiStepAgent.from_hub.kwargs",description:`<strong>kwargs</strong> (additional keyword arguments, <em>optional</em>) &#x2014;
Additional keyword arguments that will be split in two: all arguments relevant to the Hub (such as
<code>cache_dir</code>, <code>revision</code>, <code>subfolder</code>) will be used when downloading the files for your agent, and the
others will be passed along to its init.`,name:"kwargs"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L1012"}}),R=new Uo({props:{warning:!0,$$slots:{default:[La]},$$scope:{ctx:L}}}),Ce=new w({props:{name:"initialize_system_prompt",anchor:"smolagents.MultiStepAgent.initialize_system_prompt",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L705"}}),Me=new w({props:{name:"interrupt",anchor:"smolagents.MultiStepAgent.interrupt",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L710"}}),Ae=new w({props:{name:"provide_final_answer",anchor:"smolagents.MultiStepAgent.provide_final_answer",parameters:[{name:"task",val:": str"},{name:"images",val:": list['PIL.Image.Image'] | None = None"}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.provide_final_answer.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; Task to perform.",name:"task"},{anchor:"smolagents.MultiStepAgent.provide_final_answer.images",description:"<strong>images</strong> (<code>list[PIL.Image.Image]</code>, <em>optional</em>) &#x2014; Image(s) objects.",name:"images"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L766",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Final answer to the task.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>str</code></p>
`}}),Te=new w({props:{name:"push_to_hub",anchor:"smolagents.MultiStepAgent.push_to_hub",parameters:[{name:"repo_id",val:": str"},{name:"commit_message",val:": str = 'Upload agent'"},{name:"private",val:": bool | None = None"},{name:"token",val:": bool | str | None = None"},{name:"create_pr",val:": bool = False"}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.push_to_hub.repo_id",description:`<strong>repo_id</strong> (<code>str</code>) &#x2014;
The name of the repository you want to push to. It should contain your organization name when
pushing to a given organization.`,name:"repo_id"},{anchor:"smolagents.MultiStepAgent.push_to_hub.commit_message",description:`<strong>commit_message</strong> (<code>str</code>, <em>optional</em>, defaults to <code>&quot;Upload agent&quot;</code>) &#x2014;
Message to commit while pushing.`,name:"commit_message"},{anchor:"smolagents.MultiStepAgent.push_to_hub.private",description:`<strong>private</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>None</code>) &#x2014;
Whether to make the repo private. If <code>None</code>, the repo will be public unless the organization&#x2019;s default is private. This value is ignored if the repo already exists.`,name:"private"},{anchor:"smolagents.MultiStepAgent.push_to_hub.token",description:`<strong>token</strong> (<code>bool</code> or <code>str</code>, <em>optional</em>) &#x2014;
The token to use as HTTP bearer authorization for remote files. If unset, will use the token generated
when running <code>huggingface-cli login</code> (stored in <code>~/.huggingface</code>).`,name:"token"},{anchor:"smolagents.MultiStepAgent.push_to_hub.create_pr",description:`<strong>create_pr</strong> (<code>bool</code>, <em>optional</em>, defaults to <code>False</code>) &#x2014;
Whether to create a PR with the uploaded files or directly commit.`,name:"create_pr"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L1098"}}),ke=new w({props:{name:"replay",anchor:"smolagents.MultiStepAgent.replay",parameters:[{name:"detailed",val:": bool = False"}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.replay.detailed",description:`<strong>detailed</strong> (bool, optional) &#x2014; If True, also displays the memory at each step. Defaults to False.
Careful: will increase log length exponentially. Use only for debugging.`,name:"detailed"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L817"}}),Pe=new w({props:{name:"run",anchor:"smolagents.MultiStepAgent.run",parameters:[{name:"task",val:": str"},{name:"stream",val:": bool = False"},{name:"reset",val:": bool = True"},{name:"images",val:": list['PIL.Image.Image'] | None = None"},{name:"additional_args",val:": dict | None = None"},{name:"max_steps",val:": int | None = None"}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.run.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; Task to perform.",name:"task"},{anchor:"smolagents.MultiStepAgent.run.stream",description:`<strong>stream</strong> (<code>bool</code>) &#x2014; Whether to run in streaming mode.
If <code>True</code>, returns a generator that yields each step as it is executed. You must iterate over this generator to process the individual steps (e.g., using a for loop or <code>next()</code>).
If <code>False</code>, executes all steps internally and returns only the final answer after completion.`,name:"stream"},{anchor:"smolagents.MultiStepAgent.run.reset",description:"<strong>reset</strong> (<code>bool</code>) &#x2014; Whether to reset the conversation or keep it going from previous run.",name:"reset"},{anchor:"smolagents.MultiStepAgent.run.images",description:"<strong>images</strong> (<code>list[PIL.Image.Image]</code>, <em>optional</em>) &#x2014; Image(s) objects.",name:"images"},{anchor:"smolagents.MultiStepAgent.run.additional_args",description:"<strong>additional_args</strong> (<code>dict</code>, <em>optional</em>) &#x2014; Any other variables that you want to pass to the agent run, for instance images or dataframes. Give them clear names!",name:"additional_args"},{anchor:"smolagents.MultiStepAgent.run.max_steps",description:"<strong>max_steps</strong> (<code>int</code>, <em>optional</em>) &#x2014; Maximum number of steps the agent can take to solve the task. if not provided, will use the agent&#x2019;s default value.",name:"max_steps"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L395"}}),K=new ya({props:{anchor:"smolagents.MultiStepAgent.run.example",$$slots:{default:[Sa]},$$scope:{ctx:L}}}),Ie=new w({props:{name:"save",anchor:"smolagents.MultiStepAgent.save",parameters:[{name:"output_dir",val:": str | pathlib.Path"},{name:"relative_path",val:": str | None = None"}],parametersDescription:[{anchor:"smolagents.MultiStepAgent.save.output_dir",description:"<strong>output_dir</strong> (<code>str</code> or <code>Path</code>) &#x2014; The folder in which you want to save your agent.",name:"output_dir"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L850"}}),Le=new w({props:{name:"step",anchor:"smolagents.MultiStepAgent.step",parameters:[{name:"memory_step",val:": ActionStep"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L738"}}),Se=new w({props:{name:"to_dict",anchor:"smolagents.MultiStepAgent.to_dict",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L928",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<p>Dictionary representation of the agent.</p>
`,returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>dict</code></p>
`}}),Ne=new w({props:{name:"visualize",anchor:"smolagents.MultiStepAgent.visualize",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L813"}}),De=new w({props:{name:"write_memory_to_messages",anchor:"smolagents.MultiStepAgent.write_memory_to_messages",parameters:[{name:"summary_mode",val:": bool = False"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L714"}}),Ee=new w({props:{name:"class smolagents.CodeAgent",anchor:"smolagents.CodeAgent",parameters:[{name:"tools",val:": list"},{name:"model",val:": Model"},{name:"prompt_templates",val:": smolagents.agents.PromptTemplates | None = None"},{name:"additional_authorized_imports",val:": list[str] | None = None"},{name:"planning_interval",val:": int | None = None"},{name:"executor_type",val:": typing.Literal['local', 'e2b', 'docker', 'wasm'] = 'local'"},{name:"executor_kwargs",val:": dict[str, typing.Any] | None = None"},{name:"max_print_outputs_length",val:": int | None = None"},{name:"stream_outputs",val:": bool = False"},{name:"use_structured_outputs_internally",val:": bool = False"},{name:"code_block_tags",val:": str | tuple[str, str] | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.CodeAgent.tools",description:'<strong>tools</strong> (<code>list[Tool]</code>) &#x2014; <a href="/docs/smolagents/v1.21.1/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.21.1/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;docker&quot;, &quot;wasm&quot;]</code>, default <code>&quot;local&quot;</code>) &#x2014; Type of code executor.",name:"executor_type"},{anchor:"smolagents.CodeAgent.executor_kwargs",description:"<strong>executor_kwargs</strong> (<code>dict</code>, <em>optional</em>) &#x2014; Additional arguments to pass to initialize the executor.",name:"executor_kwargs"},{anchor:"smolagents.CodeAgent.max_print_outputs_length",description:"<strong>max_print_outputs_length</strong> (<code>int</code>, <em>optional</em>) &#x2014; Maximum length of the print outputs.",name:"max_print_outputs_length"},{anchor:"smolagents.CodeAgent.stream_outputs",description:"<strong>stream_outputs</strong> (<code>bool</code>, <em>optional</em>, default <code>False</code>) &#x2014; Whether to stream outputs during execution.",name:"stream_outputs"},{anchor:"smolagents.CodeAgent.use_structured_outputs_internally",description:`<strong>use_structured_outputs_internally</strong> (<code>bool</code>, default <code>False</code>) &#x2014; Whether to use structured generation at each action step: improves performance for many models.</p>
<div class="course-tip  bg-gradient-to-br dark:bg-gradient-to-r before:border-green-500 dark:before:border-green-800 from-green-50 dark:from-gray-900 to-white dark:to-gray-950 border border-green-50 text-green-700 dark:text-gray-400">
						<p class="font-medium">Added in 1.17.0</p>
						
					</div>`,name:"use_structured_outputs_internally"},{anchor:"smolagents.CodeAgent.code_block_tags",description:"<strong>code_block_tags</strong> (<code>tuple[str, str]</code> | <code>Literal[&quot;markdown&quot;]</code>, <em>optional</em>) &#x2014; Opening and closing tags for code blocks (regex strings). Pass a custom tuple, or pass &#x2018;markdown&#x2019; to use (&#x201D;<code>(?:python|py)&quot;, &quot;\\n</code>&#x201D;), leave empty to use (&#x201D;<code>&#x201D;, &#x201D;</code>&#x201D;).",name:"code_block_tags"},{anchor:"smolagents.CodeAgent.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments.",name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L1447"}}),Ue=new w({props:{name:"cleanup",anchor:"smolagents.CodeAgent.cleanup",parameters:[],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L1535"}}),Ve=new w({props:{name:"from_dict",anchor:"smolagents.CodeAgent.from_dict",parameters:[{name:"agent_dict",val:": dict"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.CodeAgent.from_dict.agent_dict",description:"<strong>agent_dict</strong> (<code>dict[str, Any]</code>) &#x2014; Dictionary representation of the agent.",name:"agent_dict"},{anchor:"smolagents.CodeAgent.from_dict.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments that will override agent_dict values.",name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L1717",returnDescription:`<script context="module">export const metadata = 'undefined';<\/script>


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


<p><code>CodeAgent</code></p>
`}}),ze=new w({props:{name:"class smolagents.ToolCallingAgent",anchor:"smolagents.ToolCallingAgent",parameters:[{name:"tools",val:": list"},{name:"model",val:": Model"},{name:"prompt_templates",val:": smolagents.agents.PromptTemplates | None = None"},{name:"planning_interval",val:": int | None = None"},{name:"stream_outputs",val:": bool = False"},{name:"max_tool_threads",val:": int | None = None"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.ToolCallingAgent.tools",description:'<strong>tools</strong> (<code>list[Tool]</code>) &#x2014; <a href="/docs/smolagents/v1.21.1/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.21.1/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.21.1/src/smolagents/agents.py#L1153"}}),Fe=new w({props:{name:"execute_tool_call",anchor:"smolagents.ToolCallingAgent.execute_tool_call",parameters:[{name:"tool_name",val:": str"},{name:"arguments",val:": dict[str, str] | str"}],parametersDescription:[{anchor:"smolagents.ToolCallingAgent.execute_tool_call.tool_name",description:"<strong>tool_name</strong> (<code>str</code>) &#x2014; Name of the tool or managed agent to execute.",name:"tool_name"},{anchor:"smolagents.ToolCallingAgent.execute_tool_call.arguments",description:"<strong>arguments</strong> (dict[str, str] | str) &#x2014; Arguments passed to the tool call.",name:"arguments"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L1395"}}),Ge=new w({props:{name:"process_tool_calls",anchor:"smolagents.ToolCallingAgent.process_tool_calls",parameters:[{name:"chat_message",val:": ChatMessage"},{name:"memory_step",val:": ActionStep"}],parametersDescription:[{anchor:"smolagents.ToolCallingAgent.process_tool_calls.chat_message",description:"<strong>chat_message</strong> (<code>ChatMessage</code>) &#x2014; Chat message containing tool calls from the model.",name:"chat_message"},{anchor:"smolagents.ToolCallingAgent.process_tool_calls.memory_step",description:"<strong>memory_step</strong> (<code>ActionStep)</code> &#x2014; Memory ActionStep to update with results.",name:"memory_step"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L1304",returnType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ToolCall | ToolOutput</code></p>
`,isYield:!0}}),He=new Gt({props:{title:"stream_to_gradio",local:"smolagents.stream_to_gradio",headingTag:"h3"}}),je=new w({props:{name:"smolagents.stream_to_gradio",anchor:"smolagents.stream_to_gradio",parameters:[{name:"agent",val:""},{name:"task",val:": str"},{name:"task_images",val:": list | None = None"},{name:"reset_agent_memory",val:": bool = False"},{name:"additional_args",val:": dict | None = None"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/gradio_ui.py#L248"}}),qe=new Gt({props:{title:"GradioUI",local:"smolagents.GradioUI",headingTag:"h3"}}),le=new Uo({props:{warning:!1,$$slots:{default:[Na]},$$scope:{ctx:L}}}),We=new w({props:{name:"class smolagents.GradioUI",anchor:"smolagents.GradioUI",parameters:[{name:"agent",val:": MultiStepAgent"},{name:"file_upload_folder",val:": str | None = None"},{name:"reset_agent_memory",val:": bool = False"}],parametersDescription:[{anchor:"smolagents.GradioUI.agent",description:'<strong>agent</strong> (<a href="/docs/smolagents/v1.21.1/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.21.1/src/smolagents/gradio_ui.py#L279",raiseDescription:`<script context="module">export const metadata = 'undefined';<\/script>


<ul>
<li><code>ModuleNotFoundError</code> — If the <code>gradio</code> extra is not installed.</li>
</ul>
`,raiseType:`<script context="module">export const metadata = 'undefined';<\/script>


<p><code>ModuleNotFoundError</code></p>
`}}),ie=new ya({props:{anchor:"smolagents.GradioUI.example",$$slots:{default:[Da]},$$scope:{ctx:L}}}),Ze=new w({props:{name:"launch",anchor:"smolagents.GradioUI.launch",parameters:[{name:"share",val:": bool = True"},{name:"**kwargs",val:""}],parametersDescription:[{anchor:"smolagents.GradioUI.launch.share",description:"<strong>share</strong> (<code>bool</code>, defaults to <code>True</code>) &#x2014; Whether to share the app publicly.",name:"share"},{anchor:"smolagents.GradioUI.launch.*kwargs",description:"*<strong>*kwargs</strong> &#x2014; Additional keyword arguments to pass to the Gradio launch method.",name:"*kwargs"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/gradio_ui.py#L406"}}),Je=new w({props:{name:"upload_file",anchor:"smolagents.GradioUI.upload_file",parameters:[{name:"file",val:""},{name:"file_uploads_log",val:""},{name:"allowed_file_types",val:" = None"}],parametersDescription:[{anchor:"smolagents.GradioUI.upload_file.file",description:"<strong>file</strong> (<code>gradio.File</code>) &#x2014; The uploaded file.",name:"file"},{anchor:"smolagents.GradioUI.upload_file.file_uploads_log",description:"<strong>file_uploads_log</strong> (<code>list</code>) &#x2014; A list to log uploaded files.",name:"file_uploads_log"},{anchor:"smolagents.GradioUI.upload_file.allowed_file_types",description:"<strong>allowed_file_types</strong> (<code>list</code>, <em>optional</em>) &#x2014; List of allowed file extensions. Defaults to [&#x201C;.pdf&#x201D;, &#x201C;.docx&#x201D;, &#x201C;.txt&#x201D;].",name:"allowed_file_types"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/gradio_ui.py#L356"}}),Re=new Gt({props:{title:"提示（Prompts）",local:"smolagents.PromptTemplates",headingTag:"h2"}}),Be=new w({props:{name:"class smolagents.PromptTemplates",anchor:"smolagents.PromptTemplates",parameters:"",parametersDescription:[{anchor:"smolagents.PromptTemplates.system_prompt",description:"<strong>system_prompt</strong> (<code>str</code>) &#x2014; System prompt.",name:"system_prompt"},{anchor:"smolagents.PromptTemplates.planning",description:'<strong>planning</strong> (<a href="/docs/smolagents/v1.21.1/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.21.1/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.21.1/zh/reference/agents#smolagents.FinalAnswerPromptTemplate">FinalAnswerPromptTemplate</a>) &#x2014; Final answer prompt templates.',name:"final_answer"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L169"}}),Qe=new w({props:{name:"class smolagents.PlanningPromptTemplate",anchor:"smolagents.PlanningPromptTemplate",parameters:"",parametersDescription:[{anchor:"smolagents.PlanningPromptTemplate.plan",description:"<strong>plan</strong> (<code>str</code>) &#x2014; Initial plan prompt.",name:"plan"},{anchor:"smolagents.PlanningPromptTemplate.update_plan_pre_messages",description:"<strong>update_plan_pre_messages</strong> (<code>str</code>) &#x2014; Update plan pre-messages prompt.",name:"update_plan_pre_messages"},{anchor:"smolagents.PlanningPromptTemplate.update_plan_post_messages",description:"<strong>update_plan_post_messages</strong> (<code>str</code>) &#x2014; Update plan post-messages prompt.",name:"update_plan_post_messages"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L128"}}),Ye=new w({props:{name:"class smolagents.ManagedAgentPromptTemplate",anchor:"smolagents.ManagedAgentPromptTemplate",parameters:"",parametersDescription:[{anchor:"smolagents.ManagedAgentPromptTemplate.task",description:"<strong>task</strong> (<code>str</code>) &#x2014; Task prompt.",name:"task"},{anchor:"smolagents.ManagedAgentPromptTemplate.report",description:"<strong>report</strong> (<code>str</code>) &#x2014; Report prompt.",name:"report"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L143"}}),Oe=new w({props:{name:"class smolagents.FinalAnswerPromptTemplate",anchor:"smolagents.FinalAnswerPromptTemplate",parameters:"",parametersDescription:[{anchor:"smolagents.FinalAnswerPromptTemplate.pre_messages",description:"<strong>pre_messages</strong> (<code>str</code>) &#x2014; Pre-messages prompt.",name:"pre_messages"},{anchor:"smolagents.FinalAnswerPromptTemplate.post_messages",description:"<strong>post_messages</strong> (<code>str</code>) &#x2014; Post-messages prompt.",name:"post_messages"}],source:"https://github.com/huggingface/smolagents/blob/v1.21.1/src/smolagents/agents.py#L156"}}),Xe=new Pa({props:{source:"https://github.com/huggingface/smolagents/blob/main/docs/source/zh/reference/agents.md"}}),{c(){i=s("meta"),M=n(),$=s("p"),C=n(),g(A.$$.fragment),b=n(),g(k.$$.fragment),qt=n(),pe=s("p"),pe.innerHTML=Vo,Wt=n(),g(ce.$$.fragment),Zt=n(),ue=s("p"),ue.innerHTML=zo,Jt=n(),he=s("p"),he.innerHTML=Fo,Rt=n(),fe=s("ul"),fe.innerHTML=Go,Bt=n(),_e=s("p"),_e.innerHTML=Ho,Qt=n(),g(ve.$$.fragment),Yt=n(),_=s("div"),g(be.$$.fragment),Ln=n(),nt=s("p"),nt.textContent=jo,Sn=n(),W=s("div"),g($e.$$.fragment),Nn=n(),ot=s("p"),ot.textContent=qo,Dn=n(),Z=s("div"),g(xe.$$.fragment),En=n(),at=s("p"),at.textContent=Wo,Un=n(),J=s("div"),g(ye.$$.fragment),Vn=n(),st=s("p"),st.textContent=Zo,zn=n(),N=s("div"),g(we.$$.fragment),Fn=n(),rt=s("p"),rt.textContent=Jo,Gn=n(),g(R.$$.fragment),Hn=n(),B=s("div"),g(Ce.$$.fragment),jn=n(),lt=s("p"),lt.textContent=Ro,qn=n(),Q=s("div"),g(Me.$$.fragment),Wn=n(),it=s("p"),it.textContent=Bo,Zn=n(),Y=s("div"),g(Ae.$$.fragment),Jn=n(),mt=s("p"),mt.textContent=Qo,Rn=n(),O=s("div"),g(Te.$$.fragment),Bn=n(),gt=s("p"),gt.textContent=Yo,Qn=n(),X=s("div"),g(ke.$$.fragment),Yn=n(),dt=s("p"),dt.textContent=Oo,On=n(),D=s("div"),g(Pe.$$.fragment),Xn=n(),pt=s("p"),pt.textContent=Xo,Kn=n(),g(K.$$.fragment),eo=n(),E=s("div"),g(Ie.$$.fragment),to=n(),ct=s("p"),ct.innerHTML=Ko,no=n(),ut=s("ul"),ut.innerHTML=ea,oo=n(),ee=s("div"),g(Le.$$.fragment),ao=n(),ht=s("p"),ht.textContent=ta,so=n(),te=s("div"),g(Se.$$.fragment),ro=n(),ft=s("p"),ft.textContent=na,lo=n(),ne=s("div"),g(Ne.$$.fragment),io=n(),_t=s("p"),_t.textContent=oa,mo=n(),oe=s("div"),g(De.$$.fragment),go=n(),vt=s("p"),vt.textContent=aa,Ot=n(),P=s("div"),g(Ee.$$.fragment),po=n(),bt=s("p"),bt.textContent=sa,co=n(),ae=s("div"),g(Ue.$$.fragment),uo=n(),$t=s("p"),$t.textContent=ra,ho=n(),se=s("div"),g(Ve.$$.fragment),fo=n(),xt=s("p"),xt.textContent=la,Xt=n(),I=s("div"),g(ze.$$.fragment),_o=n(),yt=s("p"),yt.innerHTML=ia,vo=n(),U=s("div"),g(Fe.$$.fragment),bo=n(),wt=s("p"),wt.textContent=ma,$o=n(),Ct=s("p"),Ct.textContent=ga,xo=n(),re=s("div"),g(Ge.$$.fragment),yo=n(),Mt=s("p"),Mt.textContent=da,Kt=n(),g(He.$$.fragment),en=n(),z=s("div"),g(je.$$.fragment),wo=n(),At=s("p"),At.textContent=pa,tn=n(),g(qe.$$.fragment),nn=n(),g(le.$$.fragment),on=n(),T=s("div"),g(We.$$.fragment),Co=n(),Tt=s("p"),Tt.innerHTML=ca,Mo=n(),kt=s("p"),kt.innerHTML=ua,Ao=n(),g(ie.$$.fragment),To=n(),me=s("div"),g(Ze.$$.fragment),ko=n(),Pt=s("p"),Pt.textContent=ha,Po=n(),V=s("div"),g(Je.$$.fragment),Io=n(),It=s("p"),It.textContent=fa,Lo=n(),Lt=s("p"),Lt.innerHTML=_a,an=n(),g(Re.$$.fragment),sn=n(),F=s("div"),g(Be.$$.fragment),So=n(),St=s("p"),St.textContent=va,rn=n(),G=s("div"),g(Qe.$$.fragment),No=n(),Nt=s("p"),Nt.textContent=ba,ln=n(),H=s("div"),g(Ye.$$.fragment),Do=n(),Dt=s("p"),Dt.textContent=$a,mn=n(),j=s("div"),g(Oe.$$.fragment),Eo=n(),Et=s("p"),Et.textContent=xa,gn=n(),g(Xe.$$.fragment),dn=n(),Ht=s("p"),this.h()},l(e){const l=ka("svelte-u9bgzb",document.head);i=r(l,"META",{name:!0,content:!0}),l.forEach(a),M=o(e),$=r(e,"P",{}),x($).forEach(a),C=o(e),d(A.$$.fragment,e),b=o(e),d(k.$$.fragment,e),qt=o(e),pe=r(e,"P",{"data-svelte-h":!0}),f(pe)!=="svelte-1h0tpys"&&(pe.innerHTML=Vo),Wt=o(e),d(ce.$$.fragment,e),Zt=o(e),ue=r(e,"P",{"data-svelte-h":!0}),f(ue)!=="svelte-4fih2i"&&(ue.innerHTML=zo),Jt=o(e),he=r(e,"P",{"data-svelte-h":!0}),f(he)!=="svelte-1o5qbw2"&&(he.innerHTML=Fo),Rt=o(e),fe=r(e,"UL",{"data-svelte-h":!0}),f(fe)!=="svelte-18ja3w9"&&(fe.innerHTML=Go),Bt=o(e),_e=r(e,"P",{"data-svelte-h":!0}),f(_e)!=="svelte-11wcumf"&&(_e.innerHTML=Ho),Qt=o(e),d(ve.$$.fragment,e),Yt=o(e),_=r(e,"DIV",{class:!0});var v=x(_);d(be.$$.fragment,v),Ln=o(v),nt=r(v,"P",{"data-svelte-h":!0}),f(nt)!=="svelte-d5y990"&&(nt.textContent=jo),Sn=o(v),W=r(v,"DIV",{class:!0});var Ke=x(W);d($e.$$.fragment,Ke),Nn=o(Ke),ot=r(Ke,"P",{"data-svelte-h":!0}),f(ot)!=="svelte-104knry"&&(ot.textContent=qo),Ke.forEach(a),Dn=o(v),Z=r(v,"DIV",{class:!0});var et=x(Z);d(xe.$$.fragment,et),En=o(et),at=r(et,"P",{"data-svelte-h":!0}),f(at)!=="svelte-1kbba9r"&&(at.textContent=Wo),et.forEach(a),Un=o(v),J=r(v,"DIV",{class:!0});var tt=x(J);d(ye.$$.fragment,tt),Vn=o(tt),st=r(tt,"P",{"data-svelte-h":!0}),f(st)!=="svelte-1f5g0y1"&&(st.textContent=Zo),tt.forEach(a),zn=o(v),N=r(v,"DIV",{class:!0});var q=x(N);d(we.$$.fragment,q),Fn=o(q),rt=r(q,"P",{"data-svelte-h":!0}),f(rt)!=="svelte-px853z"&&(rt.textContent=Jo),Gn=o(q),d(R.$$.fragment,q),q.forEach(a),Hn=o(v),B=r(v,"DIV",{class:!0});var cn=x(B);d(Ce.$$.fragment,cn),jn=o(cn),lt=r(cn,"P",{"data-svelte-h":!0}),f(lt)!=="svelte-aqxmk9"&&(lt.textContent=Ro),cn.forEach(a),qn=o(v),Q=r(v,"DIV",{class:!0});var un=x(Q);d(Me.$$.fragment,un),Wn=o(un),it=r(un,"P",{"data-svelte-h":!0}),f(it)!=="svelte-vma7te"&&(it.textContent=Bo),un.forEach(a),Zn=o(v),Y=r(v,"DIV",{class:!0});var hn=x(Y);d(Ae.$$.fragment,hn),Jn=o(hn),mt=r(hn,"P",{"data-svelte-h":!0}),f(mt)!=="svelte-s6zvq5"&&(mt.textContent=Qo),hn.forEach(a),Rn=o(v),O=r(v,"DIV",{class:!0});var fn=x(O);d(Te.$$.fragment,fn),Bn=o(fn),gt=r(fn,"P",{"data-svelte-h":!0}),f(gt)!=="svelte-3y7cve"&&(gt.textContent=Yo),fn.forEach(a),Qn=o(v),X=r(v,"DIV",{class:!0});var _n=x(X);d(ke.$$.fragment,_n),Yn=o(_n),dt=r(_n,"P",{"data-svelte-h":!0}),f(dt)!=="svelte-28znqy"&&(dt.textContent=Oo),_n.forEach(a),On=o(v),D=r(v,"DIV",{class:!0});var Ut=x(D);d(Pe.$$.fragment,Ut),Xn=o(Ut),pt=r(Ut,"P",{"data-svelte-h":!0}),f(pt)!=="svelte-1rclfo7"&&(pt.textContent=Xo),Kn=o(Ut),d(K.$$.fragment,Ut),Ut.forEach(a),eo=o(v),E=r(v,"DIV",{class:!0});var Vt=x(E);d(Ie.$$.fragment,Vt),to=o(Vt),ct=r(Vt,"P",{"data-svelte-h":!0}),f(ct)!=="svelte-1uw6gyw"&&(ct.innerHTML=Ko),no=o(Vt),ut=r(Vt,"UL",{"data-svelte-h":!0}),f(ut)!=="svelte-11tnr4k"&&(ut.innerHTML=ea),Vt.forEach(a),oo=o(v),ee=r(v,"DIV",{class:!0});var vn=x(ee);d(Le.$$.fragment,vn),ao=o(vn),ht=r(vn,"P",{"data-svelte-h":!0}),f(ht)!=="svelte-1av9fpz"&&(ht.textContent=ta),vn.forEach(a),so=o(v),te=r(v,"DIV",{class:!0});var bn=x(te);d(Se.$$.fragment,bn),ro=o(bn),ft=r(bn,"P",{"data-svelte-h":!0}),f(ft)!=="svelte-1kyagwa"&&(ft.textContent=na),bn.forEach(a),lo=o(v),ne=r(v,"DIV",{class:!0});var $n=x(ne);d(Ne.$$.fragment,$n),io=o($n),_t=r($n,"P",{"data-svelte-h":!0}),f(_t)!=="svelte-em4ik4"&&(_t.textContent=oa),$n.forEach(a),mo=o(v),oe=r(v,"DIV",{class:!0});var xn=x(oe);d(De.$$.fragment,xn),go=o(xn),vt=r(xn,"P",{"data-svelte-h":!0}),f(vt)!=="svelte-jg60qx"&&(vt.textContent=aa),xn.forEach(a),v.forEach(a),Ot=o(e),P=r(e,"DIV",{class:!0});var ge=x(P);d(Ee.$$.fragment,ge),po=o(ge),bt=r(ge,"P",{"data-svelte-h":!0}),f(bt)!=="svelte-1mxsa12"&&(bt.textContent=sa),co=o(ge),ae=r(ge,"DIV",{class:!0});var yn=x(ae);d(Ue.$$.fragment,yn),uo=o(yn),$t=r(yn,"P",{"data-svelte-h":!0}),f($t)!=="svelte-1dq3hsa"&&($t.textContent=ra),yn.forEach(a),ho=o(ge),se=r(ge,"DIV",{class:!0});var wn=x(se);d(Ve.$$.fragment,wn),fo=o(wn),xt=r(wn,"P",{"data-svelte-h":!0}),f(xt)!=="svelte-1bap6qm"&&(xt.textContent=la),wn.forEach(a),ge.forEach(a),Xt=o(e),I=r(e,"DIV",{class:!0});var de=x(I);d(ze.$$.fragment,de),_o=o(de),yt=r(de,"P",{"data-svelte-h":!0}),f(yt)!=="svelte-71yyi1"&&(yt.innerHTML=ia),vo=o(de),U=r(de,"DIV",{class:!0});var zt=x(U);d(Fe.$$.fragment,zt),bo=o(zt),wt=r(zt,"P",{"data-svelte-h":!0}),f(wt)!=="svelte-yjyhgb"&&(wt.textContent=ma),$o=o(zt),Ct=r(zt,"P",{"data-svelte-h":!0}),f(Ct)!=="svelte-1l33w20"&&(Ct.textContent=ga),zt.forEach(a),xo=o(de),re=r(de,"DIV",{class:!0});var Cn=x(re);d(Ge.$$.fragment,Cn),yo=o(Cn),Mt=r(Cn,"P",{"data-svelte-h":!0}),f(Mt)!=="svelte-132xt9l"&&(Mt.textContent=da),Cn.forEach(a),de.forEach(a),Kt=o(e),d(He.$$.fragment,e),en=o(e),z=r(e,"DIV",{class:!0});var Mn=x(z);d(je.$$.fragment,Mn),wo=o(Mn),At=r(Mn,"P",{"data-svelte-h":!0}),f(At)!=="svelte-3yyclm"&&(At.textContent=pa),Mn.forEach(a),tn=o(e),d(qe.$$.fragment,e),nn=o(e),d(le.$$.fragment,e),on=o(e),T=r(e,"DIV",{class:!0});var S=x(T);d(We.$$.fragment,S),Co=o(S),Tt=r(S,"P",{"data-svelte-h":!0}),f(Tt)!=="svelte-pyr2ww"&&(Tt.innerHTML=ca),Mo=o(S),kt=r(S,"P",{"data-svelte-h":!0}),f(kt)!=="svelte-jlm60p"&&(kt.innerHTML=ua),Ao=o(S),d(ie.$$.fragment,S),To=o(S),me=r(S,"DIV",{class:!0});var An=x(me);d(Ze.$$.fragment,An),ko=o(An),Pt=r(An,"P",{"data-svelte-h":!0}),f(Pt)!=="svelte-1jjhzc2"&&(Pt.textContent=ha),An.forEach(a),Po=o(S),V=r(S,"DIV",{class:!0});var Ft=x(V);d(Je.$$.fragment,Ft),Io=o(Ft),It=r(Ft,"P",{"data-svelte-h":!0}),f(It)!=="svelte-7pw2wo"&&(It.textContent=fa),Lo=o(Ft),Lt=r(Ft,"P",{"data-svelte-h":!0}),f(Lt)!=="svelte-19g2bgi"&&(Lt.innerHTML=_a),Ft.forEach(a),S.forEach(a),an=o(e),d(Re.$$.fragment,e),sn=o(e),F=r(e,"DIV",{class:!0});var Tn=x(F);d(Be.$$.fragment,Tn),So=o(Tn),St=r(Tn,"P",{"data-svelte-h":!0}),f(St)!=="svelte-1qudq9i"&&(St.textContent=va),Tn.forEach(a),rn=o(e),G=r(e,"DIV",{class:!0});var kn=x(G);d(Qe.$$.fragment,kn),No=o(kn),Nt=r(kn,"P",{"data-svelte-h":!0}),f(Nt)!=="svelte-139nrra"&&(Nt.textContent=ba),kn.forEach(a),ln=o(e),H=r(e,"DIV",{class:!0});var Pn=x(H);d(Ye.$$.fragment,Pn),Do=o(Pn),Dt=r(Pn,"P",{"data-svelte-h":!0}),f(Dt)!=="svelte-uxob75"&&(Dt.textContent=$a),Pn.forEach(a),mn=o(e),j=r(e,"DIV",{class:!0});var In=x(j);d(Oe.$$.fragment,In),Eo=o(In),Et=r(In,"P",{"data-svelte-h":!0}),f(Et)!=="svelte-52nyxb"&&(Et.textContent=xa),In.forEach(a),gn=o(e),d(Xe.$$.fragment,e),dn=o(e),Ht=r(e,"P",{}),x(Ht).forEach(a),this.h()},h(){y(i,"name","hf:doc:metadata"),y(i,"content",Ua),y(W,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(J,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(N,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(B,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Q,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(Y,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(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(X,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(D,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(E,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ee,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(te,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(ne,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(oe,"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"),y(ae,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(se,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(P,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(U,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(re,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(I,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(z,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(me,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(V,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(T,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(F,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(G,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(H,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8"),y(j,"class","docstring border-l-2 border-t-2 pl-4 pt-3.5 border-gray-100 rounded-tl-xl mb-6 mt-8")},m(e,l){t(document.head,i),m(e,M,l),m(e,$,l),m(e,C,l),p(A,e,l),m(e,b,l),p(k,e,l),m(e,qt,l),m(e,pe,l),m(e,Wt,l),p(ce,e,l),m(e,Zt,l),m(e,ue,l),m(e,Jt,l),m(e,he,l),m(e,Rt,l),m(e,fe,l),m(e,Bt,l),m(e,_e,l),m(e,Qt,l),p(ve,e,l),m(e,Yt,l),m(e,_,l),p(be,_,null),t(_,Ln),t(_,nt),t(_,Sn),t(_,W),p($e,W,null),t(W,Nn),t(W,ot),t(_,Dn),t(_,Z),p(xe,Z,null),t(Z,En),t(Z,at),t(_,Un),t(_,J),p(ye,J,null),t(J,Vn),t(J,st),t(_,zn),t(_,N),p(we,N,null),t(N,Fn),t(N,rt),t(N,Gn),p(R,N,null),t(_,Hn),t(_,B),p(Ce,B,null),t(B,jn),t(B,lt),t(_,qn),t(_,Q),p(Me,Q,null),t(Q,Wn),t(Q,it),t(_,Zn),t(_,Y),p(Ae,Y,null),t(Y,Jn),t(Y,mt),t(_,Rn),t(_,O),p(Te,O,null),t(O,Bn),t(O,gt),t(_,Qn),t(_,X),p(ke,X,null),t(X,Yn),t(X,dt),t(_,On),t(_,D),p(Pe,D,null),t(D,Xn),t(D,pt),t(D,Kn),p(K,D,null),t(_,eo),t(_,E),p(Ie,E,null),t(E,to),t(E,ct),t(E,no),t(E,ut),t(_,oo),t(_,ee),p(Le,ee,null),t(ee,ao),t(ee,ht),t(_,so),t(_,te),p(Se,te,null),t(te,ro),t(te,ft),t(_,lo),t(_,ne),p(Ne,ne,null),t(ne,io),t(ne,_t),t(_,mo),t(_,oe),p(De,oe,null),t(oe,go),t(oe,vt),m(e,Ot,l),m(e,P,l),p(Ee,P,null),t(P,po),t(P,bt),t(P,co),t(P,ae),p(Ue,ae,null),t(ae,uo),t(ae,$t),t(P,ho),t(P,se),p(Ve,se,null),t(se,fo),t(se,xt),m(e,Xt,l),m(e,I,l),p(ze,I,null),t(I,_o),t(I,yt),t(I,vo),t(I,U),p(Fe,U,null),t(U,bo),t(U,wt),t(U,$o),t(U,Ct),t(I,xo),t(I,re),p(Ge,re,null),t(re,yo),t(re,Mt),m(e,Kt,l),p(He,e,l),m(e,en,l),m(e,z,l),p(je,z,null),t(z,wo),t(z,At),m(e,tn,l),p(qe,e,l),m(e,nn,l),p(le,e,l),m(e,on,l),m(e,T,l),p(We,T,null),t(T,Co),t(T,Tt),t(T,Mo),t(T,kt),t(T,Ao),p(ie,T,null),t(T,To),t(T,me),p(Ze,me,null),t(me,ko),t(me,Pt),t(T,Po),t(T,V),p(Je,V,null),t(V,Io),t(V,It),t(V,Lo),t(V,Lt),m(e,an,l),p(Re,e,l),m(e,sn,l),m(e,F,l),p(Be,F,null),t(F,So),t(F,St),m(e,rn,l),m(e,G,l),p(Qe,G,null),t(G,No),t(G,Nt),m(e,ln,l),m(e,H,l),p(Ye,H,null),t(H,Do),t(H,Dt),m(e,mn,l),m(e,j,l),p(Oe,j,null),t(j,Eo),t(j,Et),m(e,gn,l),p(Xe,e,l),m(e,dn,l),m(e,Ht,l),pn=!0},p(e,[l]){const v={};l&2&&(v.$$scope={dirty:l,ctx:e}),k.$set(v);const Ke={};l&2&&(Ke.$$scope={dirty:l,ctx:e}),R.$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}),le.$set(tt);const q={};l&2&&(q.$$scope={dirty:l,ctx:e}),ie.$set(q)},i(e){pn||(c(A.$$.fragment,e),c(k.$$.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(R.$$.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(je.$$.fragment,e),c(qe.$$.fragment,e),c(le.$$.fragment,e),c(We.$$.fragment,e),c(ie.$$.fragment,e),c(Ze.$$.fragment,e),c(Je.$$.fragment,e),c(Re.$$.fragment,e),c(Be.$$.fragment,e),c(Qe.$$.fragment,e),c(Ye.$$.fragment,e),c(Oe.$$.fragment,e),c(Xe.$$.fragment,e),pn=!0)},o(e){u(A.$$.fragment,e),u(k.$$.fragment,e),u(ce.$$.fragment,e),u(ve.$$.fragment,e),u(be.$$.fragment,e),u($e.$$.fragment,e),u(xe.$$.fragment,e),u(ye.$$.fragment,e),u(we.$$.fragment,e),u(R.$$.fragment,e),u(Ce.$$.fragment,e),u(Me.$$.fragment,e),u(Ae.$$.fragment,e),u(Te.$$.fragment,e),u(ke.$$.fragment,e),u(Pe.$$.fragment,e),u(K.$$.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(je.$$.fragment,e),u(qe.$$.fragment,e),u(le.$$.fragment,e),u(We.$$.fragment,e),u(ie.$$.fragment,e),u(Ze.$$.fragment,e),u(Je.$$.fragment,e),u(Re.$$.fragment,e),u(Be.$$.fragment,e),u(Qe.$$.fragment,e),u(Ye.$$.fragment,e),u(Oe.$$.fragment,e),u(Xe.$$.fragment,e),pn=!1},d(e){e&&(a(M),a($),a(C),a(b),a(qt),a(pe),a(Wt),a(Zt),a(ue),a(Jt),a(he),a(Rt),a(fe),a(Bt),a(_e),a(Qt),a(Yt),a(_),a(Ot),a(P),a(Xt),a(I),a(Kt),a(en),a(z),a(tn),a(nn),a(on),a(T),a(an),a(sn),a(F),a(rn),a(G),a(ln),a(H),a(mn),a(j),a(gn),a(dn),a(Ht)),a(i),h(A,e),h(k,e),h(ce,e),h(ve,e),h(be),h($e),h(xe),h(ye),h(we),h(R),h(Ce),h(Me),h(Ae),h(Te),h(ke),h(Pe),h(K),h(Ie),h(Le),h(Se),h(Ne),h(De),h(Ee),h(Ue),h(Ve),h(ze),h(Fe),h(Ge),h(He,e),h(je),h(qe,e),h(le,e),h(We),h(ie),h(Ze),h(Je),h(Re,e),h(Be),h(Qe),h(Ye),h(Oe),h(Xe,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(L){return Ma(()=>{new URLSearchParams(window.location.search).get("fw")}),[]}class Wa extends Aa{constructor(i){super(),Ta(this,i,Va,Ea,Ca,{})}}export{Wa as component};
