Skip to content

Commit

Permalink
deploy: 5fb1129
Browse files Browse the repository at this point in the history
  • Loading branch information
DavdGao committed Aug 2, 2024
1 parent a547c4a commit 3afb82a
Show file tree
Hide file tree
Showing 46 changed files with 1,694 additions and 97 deletions.
Binary file modified en/.doctrees/agentscope.service.doctree
Binary file not shown.
Binary file modified en/.doctrees/agentscope.service.execute_code.doctree
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.
Binary file modified en/.doctrees/tutorial/204-service.doctree
Binary file not shown.
2 changes: 2 additions & 0 deletions en/_modules/agentscope/service.html
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ <h1>Source code for agentscope.service</h1><div class="highlight"><pre>

<span class="kn">from</span> <span class="nn">.execute_code.exec_python</span> <span class="kn">import</span> <span class="n">execute_python_code</span>
<span class="kn">from</span> <span class="nn">.execute_code.exec_shell</span> <span class="kn">import</span> <span class="n">execute_shell_command</span>
<span class="kn">from</span> <span class="nn">.execute_code.exec_notebook</span> <span class="kn">import</span> <span class="n">NoteBookExecutor</span>
<span class="kn">from</span> <span class="nn">.file.common</span> <span class="kn">import</span> <span class="p">(</span>
<span class="n">create_file</span><span class="p">,</span>
<span class="n">delete_file</span><span class="p">,</span>
Expand Down Expand Up @@ -211,6 +212,7 @@ <h1>Source code for agentscope.service</h1><div class="highlight"><pre>
<span class="s2">&quot;dblp_search_publications&quot;</span><span class="p">,</span>
<span class="s2">&quot;dblp_search_authors&quot;</span><span class="p">,</span>
<span class="s2">&quot;dblp_search_venues&quot;</span><span class="p">,</span>
<span class="s2">&quot;NoteBookExecutor&quot;</span><span class="p">,</span>
<span class="s2">&quot;dashscope_image_to_text&quot;</span><span class="p">,</span>
<span class="s2">&quot;dashscope_text_to_image&quot;</span><span class="p">,</span>
<span class="s2">&quot;dashscope_text_to_audio&quot;</span><span class="p">,</span>
Expand Down
357 changes: 357 additions & 0 deletions en/_modules/agentscope/service/execute_code/exec_notebook.html

Large diffs are not rendered by default.

6 changes: 4 additions & 2 deletions en/_modules/agentscope/service/service_toolkit.html
Original file line number Diff line number Diff line change
Expand Up @@ -632,7 +632,8 @@ <h1>Source code for agentscope.service.service_toolkit</h1><div class="highlight
)

# The arguments that requires the agent to specify
args_agent = set(argsspec.args) - set(kwargs.keys())
# to support class method, the self args are deprecated
args_agent = set(argsspec.args) - set(kwargs.keys()) - {&quot;self&quot;, &quot;cls&quot;}

# Check if the arguments from agent have descriptions in docstring
args_description = {
Expand Down Expand Up @@ -795,7 +796,8 @@ <h1>Source code for agentscope.service.service_toolkit</h1><div class="highlight
)

# The arguments that requires the agent to specify
args_agent = set(argsspec.args) - set(kwargs.keys())
# we remove the self argument, for class methods
args_agent = set(argsspec.args) - set(kwargs.keys()) - {&quot;self&quot;, &quot;cls&quot;}

# Check if the arguments from agent have descriptions in docstring
args_description = {
Expand Down
3 changes: 2 additions & 1 deletion en/_modules/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,8 @@ <h1>All modules for which code is available</h1>
<li><a href="agentscope/server/launcher.html">agentscope.server.launcher</a></li>
<li><a href="agentscope/server/servicer.html">agentscope.server.servicer</a></li>
<li><a href="agentscope/service.html">agentscope.service</a></li>
<ul><li><a href="agentscope/service/execute_code/exec_python.html">agentscope.service.execute_code.exec_python</a></li>
<ul><li><a href="agentscope/service/execute_code/exec_notebook.html">agentscope.service.execute_code.exec_notebook</a></li>
<li><a href="agentscope/service/execute_code/exec_python.html">agentscope.service.execute_code.exec_python</a></li>
<li><a href="agentscope/service/execute_code/exec_shell.html">agentscope.service.execute_code.exec_shell</a></li>
<li><a href="agentscope/service/file/common.html">agentscope.service.file.common</a></li>
<li><a href="agentscope/service/file/json.html">agentscope.service.file.json</a></li>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
agentscope.service.execute\_code.exec\_notebook module
======================================================

.. automodule:: agentscope.service.execute_code.exec_notebook
:members:
:undoc-members:
:show-inheritance:
1 change: 1 addition & 0 deletions en/_sources/agentscope.service.execute_code.rst.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ Submodules
.. toctree::
:maxdepth: 4

agentscope.service.execute_code.exec_notebook
agentscope.service.execute_code.exec_python
agentscope.service.execute_code.exec_shell

Expand Down
1 change: 1 addition & 0 deletions en/_sources/tutorial/204-service.md.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ The following table outlines the various Service functions by type. These functi
| Service Scene | Service Function Name | Description |
|-----------------------------|----------------------------|----------------------------------------------------------------------------------------------------------------|
| Code | `execute_python_code` | Execute a piece of Python code, optionally inside a Docker container. |
| | `NoteBookExecutor.run_code_on_notebook` | Compute Execute a segment of Python code in the IPython environment of the NoteBookExecutor, adhering to the IPython interactive computing style. |
| Retrieval | `retrieve_from_list` | Retrieve a specific item from a list based on given criteria. |
| | `cos_sim` | Compute the cosine similarity between two different embeddings. |
| SQL Query | `query_mysql` | Execute SQL queries on a MySQL database and return results. |
Expand Down
8 changes: 8 additions & 0 deletions en/agentscope.html
Original file line number Diff line number Diff line change
Expand Up @@ -905,6 +905,14 @@ <h2>Subpackages<a class="headerlink" href="#subpackages" title="Link to this hea
<li class="toctree-l3"><a class="reference internal" href="agentscope.service.html#agentscope.service.dblp_search_publications"><code class="docutils literal notranslate"><span class="pre">dblp_search_publications()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="agentscope.service.html#agentscope.service.dblp_search_authors"><code class="docutils literal notranslate"><span class="pre">dblp_search_authors()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="agentscope.service.html#agentscope.service.dblp_search_venues"><code class="docutils literal notranslate"><span class="pre">dblp_search_venues()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="agentscope.service.html#agentscope.service.NoteBookExecutor"><code class="docutils literal notranslate"><span class="pre">NoteBookExecutor</span></code></a><ul>
<li class="toctree-l4"><a class="reference internal" href="agentscope.service.html#agentscope.service.NoteBookExecutor.__init__"><code class="docutils literal notranslate"><span class="pre">NoteBookExecutor.__init__()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="agentscope.service.html#agentscope.service.NoteBookExecutor.cells_length"><code class="docutils literal notranslate"><span class="pre">NoteBookExecutor.cells_length</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="agentscope.service.html#agentscope.service.NoteBookExecutor.async_run_code_on_notebook"><code class="docutils literal notranslate"><span class="pre">NoteBookExecutor.async_run_code_on_notebook()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="agentscope.service.html#agentscope.service.NoteBookExecutor.run_code_on_notebook"><code class="docutils literal notranslate"><span class="pre">NoteBookExecutor.run_code_on_notebook()</span></code></a></li>
<li class="toctree-l4"><a class="reference internal" href="agentscope.service.html#agentscope.service.NoteBookExecutor.reset_notebook"><code class="docutils literal notranslate"><span class="pre">NoteBookExecutor.reset_notebook()</span></code></a></li>
</ul>
</li>
<li class="toctree-l3"><a class="reference internal" href="agentscope.service.html#agentscope.service.dashscope_image_to_text"><code class="docutils literal notranslate"><span class="pre">dashscope_image_to_text()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="agentscope.service.html#agentscope.service.dashscope_text_to_image"><code class="docutils literal notranslate"><span class="pre">dashscope_text_to_image()</span></code></a></li>
<li class="toctree-l3"><a class="reference internal" href="agentscope.service.html#agentscope.service.dashscope_text_to_audio"><code class="docutils literal notranslate"><span class="pre">dashscope_text_to_audio()</span></code></a></li>
Expand Down
Loading

0 comments on commit 3afb82a

Please sign in to comment.