Skip to content

Commit

Permalink
deploy: 177af67
Browse files Browse the repository at this point in the history
  • Loading branch information
DavdGao committed Apr 26, 2024
1 parent 499a2c0 commit ec151a6
Show file tree
Hide file tree
Showing 572 changed files with 44,784 additions and 1,460 deletions.
Binary file added en/.doctrees/agentscope.agents.agent.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified en/.doctrees/agentscope.agents.doctree
Binary file not shown.
Binary file added en/.doctrees/agentscope.agents.operator.doctree
Binary file not shown.
Binary file not shown.
Binary file added en/.doctrees/agentscope.agents.rpc_agent.doctree
Binary file not shown.
Binary file not shown.
Binary file added en/.doctrees/agentscope.agents.user_agent.doctree
Binary file not shown.
Binary file added en/.doctrees/agentscope.constants.doctree
Binary file not shown.
Binary file added en/.doctrees/agentscope.file_manager.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.memory.doctree
Binary file not shown.
Binary file added en/.doctrees/agentscope.memory.memory.doctree
Binary file not shown.
Binary file not shown.
Binary file added en/.doctrees/agentscope.message.doctree
Binary file not shown.
Binary file added en/.doctrees/agentscope.models.config.doctree
Binary file not shown.
Binary file not shown.
Binary file modified en/.doctrees/agentscope.models.doctree
Binary file not shown.
Binary file not shown.
Binary file added en/.doctrees/agentscope.models.model.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added en/.doctrees/agentscope.models.post_model.doctree
Binary file not shown.
Binary file added en/.doctrees/agentscope.models.response.doctree
Binary file not shown.
Binary file added en/.doctrees/agentscope.msghub.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.pipelines.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added en/.doctrees/agentscope.prompt.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.rpc.doctree
Binary file not shown.
Binary file not shown.
Binary file added en/.doctrees/agentscope.rpc.rpc_agent_pb2.doctree
Binary file not shown.
Binary file not shown.
Binary file modified en/.doctrees/agentscope.service.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added en/.doctrees/agentscope.service.file.json.doctree
Binary file not shown.
Binary file added en/.doctrees/agentscope.service.file.text.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added en/.doctrees/agentscope.service.web.arxiv.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added en/.doctrees/agentscope.utils.common.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.utils.doctree
Binary file not shown.
Binary file not shown.
Binary file added en/.doctrees/agentscope.utils.monitor.doctree
Binary file not shown.
Binary file added en/.doctrees/agentscope.utils.token_utils.doctree
Binary file not shown.
Binary file added en/.doctrees/agentscope.utils.tools.doctree
Binary file not shown.
Binary file not shown.
Binary file added en/.doctrees/agentscope.web.studio.studio.doctree
Binary file not shown.
Binary file added en/.doctrees/agentscope.web.studio.utils.doctree
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file modified en/.doctrees/environment.pickle
Binary file not shown.
Binary file modified en/.doctrees/index.doctree
Binary file not shown.
8 changes: 5 additions & 3 deletions en/_modules/agentscope/_init.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,17 @@
</ul>
<p class="caption" role="heading"><span class="caption-text">AgentScope API Reference</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../agentscope.html">agentscope</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../agentscope.message.html">agentscope.message</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../agentscope.models.html">agentscope.models</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../agentscope.agents.html">agentscope.agents</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../agentscope.memory.html">agentscope.memory</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../agentscope.models.html">agentscope.models</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../agentscope.pipelines.html">agentscope.pipelines</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../agentscope.service.html">agentscope.service</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../agentscope.rpc.html">agentscope.rpc</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../agentscope.utils.html">agentscope.utils</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../agentscope.web.html">agentscope.web</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../agentscope.html">agentscope</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../agentscope.prompt.html">agentscope.prompt</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../agentscope.utils.html">agentscope.utils</a></li>
</ul>

</div>
Expand Down
37 changes: 21 additions & 16 deletions en/_modules/agentscope/agents/agent.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,17 @@
</ul>
<p class="caption" role="heading"><span class="caption-text">AgentScope API Reference</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.html">agentscope</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.message.html">agentscope.message</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.models.html">agentscope.models</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.agents.html">agentscope.agents</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.memory.html">agentscope.memory</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.models.html">agentscope.models</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.pipelines.html">agentscope.pipelines</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.service.html">agentscope.service</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.rpc.html">agentscope.rpc</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.utils.html">agentscope.utils</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.web.html">agentscope.web</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.html">agentscope</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.prompt.html">agentscope.prompt</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.utils.html">agentscope.utils</a></li>
</ul>

</div>
Expand Down Expand Up @@ -120,7 +122,7 @@ <h1>Source code for agentscope.agents.agent</h1><div class="highlight"><pre>


<div class="viewcode-block" id="AgentBase">
<a class="viewcode-back" href="../../../agentscope.agents.html#agentscope.agents.AgentBase">[docs]</a>
<a class="viewcode-back" href="../../../agentscope.agents.agent.html#agentscope.agents.AgentBase">[docs]</a>
<span class="k">class</span> <span class="nc">AgentBase</span><span class="p">(</span><span class="n">Operator</span><span class="p">,</span> <span class="n">metaclass</span><span class="o">=</span><span class="n">_RecordInitSettingMeta</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Base class for all agents.</span>

Expand All @@ -130,6 +132,8 @@ <h1>Source code for agentscope.agents.agent</h1><div class="highlight"><pre>

<span class="n">_version</span><span class="p">:</span> <span class="nb">int</span> <span class="o">=</span> <span class="mi">1</span>

<div class="viewcode-block" id="AgentBase.__init__">
<a class="viewcode-back" href="../../../agentscope.agents.agent.html#agentscope.agents.AgentBase.__init__">[docs]</a>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span>
<span class="n">name</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span>
Expand Down Expand Up @@ -174,10 +178,11 @@ <h1>Source code for agentscope.agents.agent</h1><div class="highlight"><pre>

<span class="c1"># The audience of this agent, which means if this agent generates a</span>
<span class="c1"># response, it will be passed to all agents in the audience.</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_audience</span> <span class="o">=</span> <span class="kc">None</span>
<span class="bp">self</span><span class="o">.</span><span class="n">_audience</span> <span class="o">=</span> <span class="kc">None</span></div>


<div class="viewcode-block" id="AgentBase.generate_agent_id">
<a class="viewcode-back" href="../../../agentscope.agents.html#agentscope.agents.AgentBase.generate_agent_id">[docs]</a>
<a class="viewcode-back" href="../../../agentscope.agents.agent.html#agentscope.agents.AgentBase.generate_agent_id">[docs]</a>
<span class="nd">@classmethod</span>
<span class="k">def</span> <span class="nf">generate_agent_id</span><span class="p">(</span><span class="bp">cls</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">str</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Generate the agent_id of this agent instance&quot;&quot;&quot;</span>
Expand All @@ -186,7 +191,7 @@ <h1>Source code for agentscope.agents.agent</h1><div class="highlight"><pre>


<div class="viewcode-block" id="AgentBase.reply">
<a class="viewcode-back" href="../../../agentscope.agents.html#agentscope.agents.AgentBase.reply">[docs]</a>
<a class="viewcode-back" href="../../../agentscope.agents.agent.html#agentscope.agents.AgentBase.reply">[docs]</a>
<span class="k">def</span> <span class="nf">reply</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">x</span><span class="p">:</span> <span class="nb">dict</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Define the actions taken by this agent.</span>

Expand All @@ -208,7 +213,7 @@ <h1>Source code for agentscope.agents.agent</h1><div class="highlight"><pre>


<div class="viewcode-block" id="AgentBase.load_from_config">
<a class="viewcode-back" href="../../../agentscope.agents.html#agentscope.agents.AgentBase.load_from_config">[docs]</a>
<a class="viewcode-back" href="../../../agentscope.agents.agent.html#agentscope.agents.AgentBase.load_from_config">[docs]</a>
<span class="k">def</span> <span class="nf">load_from_config</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">config</span><span class="p">:</span> <span class="nb">dict</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Load configuration for this agent.</span>

Expand All @@ -218,7 +223,7 @@ <h1>Source code for agentscope.agents.agent</h1><div class="highlight"><pre>


<div class="viewcode-block" id="AgentBase.export_config">
<a class="viewcode-back" href="../../../agentscope.agents.html#agentscope.agents.AgentBase.export_config">[docs]</a>
<a class="viewcode-back" href="../../../agentscope.agents.agent.html#agentscope.agents.AgentBase.export_config">[docs]</a>
<span class="k">def</span> <span class="nf">export_config</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Return configuration of this agent.</span>

Expand All @@ -229,7 +234,7 @@ <h1>Source code for agentscope.agents.agent</h1><div class="highlight"><pre>


<div class="viewcode-block" id="AgentBase.load_memory">
<a class="viewcode-back" href="../../../agentscope.agents.html#agentscope.agents.AgentBase.load_memory">[docs]</a>
<a class="viewcode-back" href="../../../agentscope.agents.agent.html#agentscope.agents.AgentBase.load_memory">[docs]</a>
<span class="k">def</span> <span class="nf">load_memory</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">memory</span><span class="p">:</span> <span class="n">Sequence</span><span class="p">[</span><span class="nb">dict</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="w"> </span><span class="sa">r</span><span class="sd">&quot;&quot;&quot;Load input memory.&quot;&quot;&quot;</span></div>

Expand All @@ -246,7 +251,7 @@ <h1>Source code for agentscope.agents.agent</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="n">res</span>

<div class="viewcode-block" id="AgentBase.speak">
<a class="viewcode-back" href="../../../agentscope.agents.html#agentscope.agents.AgentBase.speak">[docs]</a>
<a class="viewcode-back" href="../../../agentscope.agents.agent.html#agentscope.agents.AgentBase.speak">[docs]</a>
<span class="k">def</span> <span class="nf">speak</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span>
<span class="n">content</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="nb">str</span><span class="p">,</span> <span class="nb">dict</span><span class="p">],</span>
Expand All @@ -256,7 +261,7 @@ <h1>Source code for agentscope.agents.agent</h1><div class="highlight"><pre>


<div class="viewcode-block" id="AgentBase.observe">
<a class="viewcode-back" href="../../../agentscope.agents.html#agentscope.agents.AgentBase.observe">[docs]</a>
<a class="viewcode-back" href="../../../agentscope.agents.agent.html#agentscope.agents.AgentBase.observe">[docs]</a>
<span class="k">def</span> <span class="nf">observe</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">x</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="nb">dict</span><span class="p">,</span> <span class="n">Sequence</span><span class="p">[</span><span class="nb">dict</span><span class="p">]])</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Observe the input, store it in memory without response to it.</span>

Expand All @@ -269,7 +274,7 @@ <h1>Source code for agentscope.agents.agent</h1><div class="highlight"><pre>


<div class="viewcode-block" id="AgentBase.reset_audience">
<a class="viewcode-back" href="../../../agentscope.agents.html#agentscope.agents.AgentBase.reset_audience">[docs]</a>
<a class="viewcode-back" href="../../../agentscope.agents.agent.html#agentscope.agents.AgentBase.reset_audience">[docs]</a>
<span class="k">def</span> <span class="nf">reset_audience</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">audience</span><span class="p">:</span> <span class="n">Sequence</span><span class="p">[</span><span class="n">AgentBase</span><span class="p">])</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Set the audience of this agent, which means if this agent</span>
<span class="sd"> generates a response, it will be passed to all audiences.</span>
Expand All @@ -285,7 +290,7 @@ <h1>Source code for agentscope.agents.agent</h1><div class="highlight"><pre>


<div class="viewcode-block" id="AgentBase.clear_audience">
<a class="viewcode-back" href="../../../agentscope.agents.html#agentscope.agents.AgentBase.clear_audience">[docs]</a>
<a class="viewcode-back" href="../../../agentscope.agents.agent.html#agentscope.agents.AgentBase.clear_audience">[docs]</a>
<span class="k">def</span> <span class="nf">clear_audience</span><span class="p">(</span><span class="bp">self</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="kc">None</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Remove the audience of this agent.&quot;&quot;&quot;</span>
<span class="c1"># TODO: we leave the consideration of nested msghub for future.</span>
Expand All @@ -294,7 +299,7 @@ <h1>Source code for agentscope.agents.agent</h1><div class="highlight"><pre>


<div class="viewcode-block" id="AgentBase.rm_audience">
<a class="viewcode-back" href="../../../agentscope.agents.html#agentscope.agents.AgentBase.rm_audience">[docs]</a>
<a class="viewcode-back" href="../../../agentscope.agents.agent.html#agentscope.agents.AgentBase.rm_audience">[docs]</a>
<span class="k">def</span> <span class="nf">rm_audience</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span>
<span class="n">audience</span><span class="p">:</span> <span class="n">Union</span><span class="p">[</span><span class="n">Sequence</span><span class="p">[</span><span class="n">AgentBase</span><span class="p">],</span> <span class="n">AgentBase</span><span class="p">],</span>
Expand Down Expand Up @@ -328,7 +333,7 @@ <h1>Source code for agentscope.agents.agent</h1><div class="highlight"><pre>
<span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">_agent_id</span>

<div class="viewcode-block" id="AgentBase.to_dist">
<a class="viewcode-back" href="../../../agentscope.agents.html#agentscope.agents.AgentBase.to_dist">[docs]</a>
<a class="viewcode-back" href="../../../agentscope.agents.agent.html#agentscope.agents.AgentBase.to_dist">[docs]</a>
<span class="k">def</span> <span class="nf">to_dist</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span>
<span class="n">host</span><span class="p">:</span> <span class="nb">str</span> <span class="o">=</span> <span class="s2">&quot;localhost&quot;</span><span class="p">,</span>
Expand Down
17 changes: 11 additions & 6 deletions en/_modules/agentscope/agents/dialog_agent.html
Original file line number Diff line number Diff line change
Expand Up @@ -57,15 +57,17 @@
</ul>
<p class="caption" role="heading"><span class="caption-text">AgentScope API Reference</span></p>
<ul>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.html">agentscope</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.message.html">agentscope.message</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.models.html">agentscope.models</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.agents.html">agentscope.agents</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.memory.html">agentscope.memory</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.models.html">agentscope.models</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.pipelines.html">agentscope.pipelines</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.service.html">agentscope.service</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.rpc.html">agentscope.rpc</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.utils.html">agentscope.utils</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.web.html">agentscope.web</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.html">agentscope</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.prompt.html">agentscope.prompt</a></li>
<li class="toctree-l1"><a class="reference internal" href="../../../agentscope.utils.html">agentscope.utils</a></li>
</ul>

</div>
Expand Down Expand Up @@ -105,11 +107,13 @@ <h1>Source code for agentscope.agents.dialog_agent</h1><div class="highlight"><p


<div class="viewcode-block" id="DialogAgent">
<a class="viewcode-back" href="../../../agentscope.agents.html#agentscope.agents.DialogAgent">[docs]</a>
<a class="viewcode-back" href="../../../agentscope.agents.dialog_agent.html#agentscope.agents.DialogAgent">[docs]</a>
<span class="k">class</span> <span class="nc">DialogAgent</span><span class="p">(</span><span class="n">AgentBase</span><span class="p">):</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;A simple agent used to perform a dialogue. Your can set its role by</span>
<span class="sd"> `sys_prompt`.&quot;&quot;&quot;</span>

<div class="viewcode-block" id="DialogAgent.__init__">
<a class="viewcode-back" href="../../../agentscope.agents.dialog_agent.html#agentscope.agents.DialogAgent.__init__">[docs]</a>
<span class="k">def</span> <span class="fm">__init__</span><span class="p">(</span>
<span class="bp">self</span><span class="p">,</span>
<span class="n">name</span><span class="p">:</span> <span class="nb">str</span><span class="p">,</span>
Expand Down Expand Up @@ -151,11 +155,12 @@ <h1>Source code for agentscope.agents.dialog_agent</h1><div class="highlight"><p
<span class="n">logger</span><span class="o">.</span><span class="n">warning</span><span class="p">(</span>
<span class="s2">&quot;The argument `prompt_type` is deprecated and &quot;</span>
<span class="s2">&quot;will be removed in the future.&quot;</span><span class="p">,</span>
<span class="p">)</span>
<span class="p">)</span></div>


<span class="c1"># TODO change typing from dict to MSG</span>
<div class="viewcode-block" id="DialogAgent.reply">
<a class="viewcode-back" href="../../../agentscope.agents.html#agentscope.agents.DialogAgent.reply">[docs]</a>
<a class="viewcode-back" href="../../../agentscope.agents.dialog_agent.html#agentscope.agents.DialogAgent.reply">[docs]</a>
<span class="k">def</span> <span class="nf">reply</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">x</span><span class="p">:</span> <span class="nb">dict</span> <span class="o">=</span> <span class="kc">None</span><span class="p">)</span> <span class="o">-&gt;</span> <span class="nb">dict</span><span class="p">:</span>
<span class="w"> </span><span class="sd">&quot;&quot;&quot;Reply function of the agent. Processes the input data,</span>
<span class="sd"> generates a prompt using the current dialogue memory and system</span>
Expand Down
Loading

0 comments on commit ec151a6

Please sign in to comment.