Skip to content

Commit

Permalink
deploy: 7c7220a
Browse files Browse the repository at this point in the history
  • Loading branch information
pan-x-c committed Sep 20, 2024
1 parent cbcd123 commit 08ca26c
Show file tree
Hide file tree
Showing 41 changed files with 35 additions and 33 deletions.
Binary file modified en/.doctrees/agentscope.agents.agent.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.agents.dialog_agent.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.agents.dict_dialog_agent.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.agents.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.agents.rag_agent.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.agents.react_agent.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.agents.rpc_agent.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.agents.user_agent.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.message.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.message.placeholder.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.msghub.doctree
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.
Binary file modified en/.doctrees/tutorial/104-usecase.doctree
Binary file not shown.
3 changes: 2 additions & 1 deletion en/_modules/agentscope/models/post_model.html
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,6 @@ <h1>Source code for agentscope.models.post_model</h1><div class="highlight"><pre
<span class="kn">import</span> <span class="nn">requests</span>
<span class="kn">from</span> <span class="nn">loguru</span> <span class="kn">import</span> <span class="n">logger</span>

<span class="kn">from</span> <span class="nn">.gemini_model</span> <span class="kn">import</span> <span class="n">GeminiChatWrapper</span>
<span class="kn">from</span> <span class="nn">.openai_model</span> <span class="kn">import</span> <span class="n">OpenAIChatWrapper</span>
<span class="kn">from</span> <span class="nn">.model</span> <span class="kn">import</span> <span class="n">ModelWrapperBase</span><span class="p">,</span> <span class="n">ModelResponse</span>
<span class="kn">from</span> <span class="nn">..constants</span> <span class="kn">import</span> <span class="n">_DEFAULT_MAX_RETRIES</span>
Expand Down Expand Up @@ -348,6 +347,8 @@ <h1>Source code for agentscope.models.post_model</h1><div class="highlight"><pre

<span class="c1"># Gemini</span>
<span class="k">elif</span> <span class="n">model_name</span> <span class="ow">and</span> <span class="n">model_name</span><span class="o">.</span><span class="n">startswith</span><span class="p">(</span><span class="s2">&quot;gemini&quot;</span><span class="p">):</span>
<span class="kn">from</span> <span class="nn">.gemini_model</span> <span class="kn">import</span> <span class="n">GeminiChatWrapper</span>

<span class="k">return</span> <span class="n">GeminiChatWrapper</span><span class="o">.</span><span class="n">format</span><span class="p">(</span><span class="o">*</span><span class="n">args</span><span class="p">)</span>

<span class="c1"># Include DashScope, ZhipuAI, Ollama, the other models supported by</span>
Expand Down
2 changes: 1 addition & 1 deletion en/_sources/tutorial/104-usecase.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ With the game logic and agents set up, you're ready to run the Werewolf game. By

```bash
cd examples/game_werewolf
python main.py # Assuming the pipeline is implemented in main.py
python werewolf.py # Assuming the pipeline is implemented in werewolf.py
```

It is recommended that you start the game in [AgentScope Studio](https://modelscope.github.io/agentscope/en/tutorial/209-gui.html), where you
Expand Down
2 changes: 1 addition & 1 deletion en/agentscope.agents.agent.html
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@

<dl class="py method">
<dt class="sig sig-object py" id="agentscope.agents.agent.AgentBase.reply">
<span class="sig-name descname"><span class="pre">reply</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">x</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Sequence</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a><span class="p"><span class="pre">]</span></span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a></span></span><a class="reference internal" href="_modules/agentscope/agents/agent.html#AgentBase.reply"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#agentscope.agents.agent.AgentBase.reply" title="Link to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">reply</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">x</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">Sequence</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a><span class="p"><span class="pre">]</span></span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a></span></span><a class="reference internal" href="_modules/agentscope/agents/agent.html#AgentBase.reply"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#agentscope.agents.agent.AgentBase.reply" title="Link to this definition"></a></dt>
<dd><p>Define the actions taken by this agent.</p>
<dl class="field-list simple">
<dt class="field-odd">Parameters<span class="colon">:</span></dt>
Expand Down
2 changes: 1 addition & 1 deletion en/agentscope.agents.dialog_agent.html
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@

<dl class="py method">
<dt class="sig sig-object py" id="agentscope.agents.dialog_agent.DialogAgent.reply">
<span class="sig-name descname"><span class="pre">reply</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">x</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Sequence</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a><span class="p"><span class="pre">]</span></span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a></span></span><a class="reference internal" href="_modules/agentscope/agents/dialog_agent.html#DialogAgent.reply"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#agentscope.agents.dialog_agent.DialogAgent.reply" title="Link to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">reply</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">x</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">Sequence</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a><span class="p"><span class="pre">]</span></span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a></span></span><a class="reference internal" href="_modules/agentscope/agents/dialog_agent.html#DialogAgent.reply"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#agentscope.agents.dialog_agent.DialogAgent.reply" title="Link to this definition"></a></dt>
<dd><p>Reply function of the agent. Processes the input data,
generates a prompt using the current dialogue memory and system
prompt, and invokes the language model to produce a response. The
Expand Down
2 changes: 1 addition & 1 deletion en/agentscope.agents.dict_dialog_agent.html
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@

<dl class="py method">
<dt class="sig sig-object py" id="agentscope.agents.dict_dialog_agent.DictDialogAgent.reply">
<span class="sig-name descname"><span class="pre">reply</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">x</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><span class="pre">Sequence</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a><span class="p"><span class="pre">]</span></span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a></span></span><a class="reference internal" href="_modules/agentscope/agents/dict_dialog_agent.html#DictDialogAgent.reply"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#agentscope.agents.dict_dialog_agent.DictDialogAgent.reply" title="Link to this definition"></a></dt>
<span class="sig-name descname"><span class="pre">reply</span></span><span class="sig-paren">(</span><em class="sig-param"><span class="n"><span class="pre">x</span></span><span class="p"><span class="pre">:</span></span><span class="w"> </span><span class="n"><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">Sequence</span><span class="p"><span class="pre">[</span></span><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a><span class="p"><span class="pre">]</span></span><span class="w"> </span><span class="p"><span class="pre">|</span></span><span class="w"> </span><span class="pre">None</span></span><span class="w"> </span><span class="o"><span class="pre">=</span></span><span class="w"> </span><span class="default_value"><span class="pre">None</span></span></em><span class="sig-paren">)</span> <span class="sig-return"><span class="sig-return-icon">&#x2192;</span> <span class="sig-return-typehint"><a class="reference internal" href="agentscope.message.msg.html#agentscope.message.msg.Msg" title="agentscope.message.msg.Msg"><span class="pre">Msg</span></a></span></span><a class="reference internal" href="_modules/agentscope/agents/dict_dialog_agent.html#DictDialogAgent.reply"><span class="viewcode-link"><span class="pre">[source]</span></span></a><a class="headerlink" href="#agentscope.agents.dict_dialog_agent.DictDialogAgent.reply" title="Link to this definition"></a></dt>
<dd><p>Reply function of the agent.
Processes the input data, generates a prompt using the current
dialogue memory and system prompt, and invokes the language
Expand Down
Loading

0 comments on commit 08ca26c

Please sign in to comment.