Skip to content

Commit

Permalink
deploy: 2dfe7cf
Browse files Browse the repository at this point in the history
  • Loading branch information
rayrayraykk committed Oct 21, 2024
1 parent e6270ce commit 4dd28a8
Show file tree
Hide file tree
Showing 8 changed files with 26 additions and 4 deletions.
Binary file modified en/.doctrees/environment.pickle
Binary file not shown.
Binary file modified en/.doctrees/index.doctree
Binary file not shown.
12 changes: 11 additions & 1 deletion en/_modules/agentscope/constants.html
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,7 @@
<h1>Source code for agentscope.constants</h1><div class="highlight"><pre>
<span></span><span class="c1"># -*- coding: utf-8 -*-</span>
<span class="sd">&quot;&quot;&quot; Some constants used in the project&quot;&quot;&quot;</span>
<span class="kn">import</span> <span class="nn">os</span>
<span class="kn">from</span> <span class="nn">numbers</span> <span class="kn">import</span> <span class="n">Number</span>
<span class="kn">from</span> <span class="nn">enum</span> <span class="kn">import</span> <span class="n">IntEnum</span>

Expand All @@ -140,7 +141,16 @@ <h1>Source code for agentscope.constants</h1><div class="highlight"><pre>
<span class="n">_DEFAULT_SUBDIR_CODE</span> <span class="o">=</span> <span class="s2">&quot;code&quot;</span>
<span class="n">_DEFAULT_SUBDIR_FILE</span> <span class="o">=</span> <span class="s2">&quot;file&quot;</span>
<span class="n">_DEFAULT_SUBDIR_INVOKE</span> <span class="o">=</span> <span class="s2">&quot;invoke&quot;</span>
<span class="n">_DEFAULT_CACHE_DIR</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">Path</span><span class="o">.</span><span class="n">home</span><span class="p">()</span> <span class="o">/</span> <span class="s2">&quot;.cache&quot;</span> <span class="o">/</span> <span class="s2">&quot;agentscope&quot;</span><span class="p">)</span>
<span class="n">_DEFAULT_CACHE_DIR</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span>
<span class="n">Path</span><span class="p">(</span>
<span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="o">.</span><span class="n">get</span><span class="p">(</span>
<span class="s2">&quot;AS_HOME_PATH&quot;</span><span class="p">,</span>
<span class="nb">str</span><span class="p">(</span><span class="n">Path</span><span class="o">.</span><span class="n">home</span><span class="p">()),</span>
<span class="p">),</span>
<span class="p">)</span>
<span class="o">/</span> <span class="s2">&quot;.cache&quot;</span>
<span class="o">/</span> <span class="s2">&quot;agentscope&quot;</span><span class="p">,</span>
<span class="p">)</span>
<span class="n">_DEFAULT_CFG_NAME</span> <span class="o">=</span> <span class="s2">&quot;.config&quot;</span>
<span class="n">_DEFAULT_IMAGE_NAME</span> <span class="o">=</span> <span class="s2">&quot;image_</span><span class="si">{}</span><span class="s2">_</span><span class="si">{}</span><span class="s2">.png&quot;</span>
<span class="n">_DEFAULT_SQLITE_DB_NAME</span> <span class="o">=</span> <span class="s2">&quot;agentscope.db&quot;</span>
Expand Down
3 changes: 2 additions & 1 deletion en/_modules/agentscope/studio/_app.html
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ <h1>Source code for agentscope.studio._app</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">flask_socketio</span> <span class="kn">import</span> <span class="n">SocketIO</span><span class="p">,</span> <span class="n">join_room</span><span class="p">,</span> <span class="n">leave_room</span>

<span class="kn">from</span> <span class="nn">..constants</span> <span class="kn">import</span> <span class="p">(</span>
<span class="n">_DEFAULT_CACHE_DIR</span><span class="p">,</span>
<span class="n">_DEFAULT_SUBDIR_CODE</span><span class="p">,</span>
<span class="n">_DEFAULT_SUBDIR_INVOKE</span><span class="p">,</span>
<span class="n">FILE_SIZE_LIMIT</span><span class="p">,</span>
Expand All @@ -165,7 +166,7 @@ <h1>Source code for agentscope.studio._app</h1><div class="highlight"><pre>
<span class="n">_app</span> <span class="o">=</span> <span class="n">Flask</span><span class="p">(</span><span class="vm">__name__</span><span class="p">)</span>

<span class="c1"># Set the cache directory</span>
<span class="n">_cache_dir</span> <span class="o">=</span> <span class="n">Path</span><span class="o">.</span><span class="n">home</span><span class="p">()</span> <span class="o">/</span> <span class="s2">&quot;.cache&quot;</span> <span class="o">/</span> <span class="s2">&quot;agentscope-studio&quot;</span>
<span class="n">_cache_dir</span> <span class="o">=</span> <span class="n">Path</span><span class="p">(</span><span class="n">_DEFAULT_CACHE_DIR</span><span class="p">)</span> <span class="o">/</span> <span class="s2">&quot;studio&quot;</span>
<span class="n">_cache_db</span> <span class="o">=</span> <span class="n">_cache_dir</span> <span class="o">/</span> <span class="s2">&quot;agentscope.db&quot;</span>
<span class="n">os</span><span class="o">.</span><span class="n">makedirs</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">_cache_dir</span><span class="p">),</span> <span class="n">exist_ok</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>

Expand Down
Binary file modified zh_CN/.doctrees/environment.pickle
Binary file not shown.
Binary file modified zh_CN/.doctrees/index.doctree
Binary file not shown.
12 changes: 11 additions & 1 deletion zh_CN/_modules/agentscope/constants.html
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@
<h1>agentscope.constants 源代码</h1><div class="highlight"><pre>
<span></span><span class="c1"># -*- coding: utf-8 -*-</span>
<span class="sd">&quot;&quot;&quot; Some constants used in the project&quot;&quot;&quot;</span>
<span class="kn">import</span> <span class="nn">os</span>
<span class="kn">from</span> <span class="nn">numbers</span> <span class="kn">import</span> <span class="n">Number</span>
<span class="kn">from</span> <span class="nn">enum</span> <span class="kn">import</span> <span class="n">IntEnum</span>

Expand All @@ -143,7 +144,16 @@ <h1>agentscope.constants 源代码</h1><div class="highlight"><pre>
<span class="n">_DEFAULT_SUBDIR_CODE</span> <span class="o">=</span> <span class="s2">&quot;code&quot;</span>
<span class="n">_DEFAULT_SUBDIR_FILE</span> <span class="o">=</span> <span class="s2">&quot;file&quot;</span>
<span class="n">_DEFAULT_SUBDIR_INVOKE</span> <span class="o">=</span> <span class="s2">&quot;invoke&quot;</span>
<span class="n">_DEFAULT_CACHE_DIR</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span><span class="n">Path</span><span class="o">.</span><span class="n">home</span><span class="p">()</span> <span class="o">/</span> <span class="s2">&quot;.cache&quot;</span> <span class="o">/</span> <span class="s2">&quot;agentscope&quot;</span><span class="p">)</span>
<span class="n">_DEFAULT_CACHE_DIR</span> <span class="o">=</span> <span class="nb">str</span><span class="p">(</span>
<span class="n">Path</span><span class="p">(</span>
<span class="n">os</span><span class="o">.</span><span class="n">environ</span><span class="o">.</span><span class="n">get</span><span class="p">(</span>
<span class="s2">&quot;AS_HOME_PATH&quot;</span><span class="p">,</span>
<span class="nb">str</span><span class="p">(</span><span class="n">Path</span><span class="o">.</span><span class="n">home</span><span class="p">()),</span>
<span class="p">),</span>
<span class="p">)</span>
<span class="o">/</span> <span class="s2">&quot;.cache&quot;</span>
<span class="o">/</span> <span class="s2">&quot;agentscope&quot;</span><span class="p">,</span>
<span class="p">)</span>
<span class="n">_DEFAULT_CFG_NAME</span> <span class="o">=</span> <span class="s2">&quot;.config&quot;</span>
<span class="n">_DEFAULT_IMAGE_NAME</span> <span class="o">=</span> <span class="s2">&quot;image_</span><span class="si">{}</span><span class="s2">_</span><span class="si">{}</span><span class="s2">.png&quot;</span>
<span class="n">_DEFAULT_SQLITE_DB_NAME</span> <span class="o">=</span> <span class="s2">&quot;agentscope.db&quot;</span>
Expand Down
3 changes: 2 additions & 1 deletion zh_CN/_modules/agentscope/studio/_app.html
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ <h1>agentscope.studio._app 源代码</h1><div class="highlight"><pre>
<span class="kn">from</span> <span class="nn">flask_socketio</span> <span class="kn">import</span> <span class="n">SocketIO</span><span class="p">,</span> <span class="n">join_room</span><span class="p">,</span> <span class="n">leave_room</span>

<span class="kn">from</span> <span class="nn">..constants</span> <span class="kn">import</span> <span class="p">(</span>
<span class="n">_DEFAULT_CACHE_DIR</span><span class="p">,</span>
<span class="n">_DEFAULT_SUBDIR_CODE</span><span class="p">,</span>
<span class="n">_DEFAULT_SUBDIR_INVOKE</span><span class="p">,</span>
<span class="n">FILE_SIZE_LIMIT</span><span class="p">,</span>
Expand All @@ -168,7 +169,7 @@ <h1>agentscope.studio._app 源代码</h1><div class="highlight"><pre>
<span class="n">_app</span> <span class="o">=</span> <span class="n">Flask</span><span class="p">(</span><span class="vm">__name__</span><span class="p">)</span>

<span class="c1"># Set the cache directory</span>
<span class="n">_cache_dir</span> <span class="o">=</span> <span class="n">Path</span><span class="o">.</span><span class="n">home</span><span class="p">()</span> <span class="o">/</span> <span class="s2">&quot;.cache&quot;</span> <span class="o">/</span> <span class="s2">&quot;agentscope-studio&quot;</span>
<span class="n">_cache_dir</span> <span class="o">=</span> <span class="n">Path</span><span class="p">(</span><span class="n">_DEFAULT_CACHE_DIR</span><span class="p">)</span> <span class="o">/</span> <span class="s2">&quot;studio&quot;</span>
<span class="n">_cache_db</span> <span class="o">=</span> <span class="n">_cache_dir</span> <span class="o">/</span> <span class="s2">&quot;agentscope.db&quot;</span>
<span class="n">os</span><span class="o">.</span><span class="n">makedirs</span><span class="p">(</span><span class="nb">str</span><span class="p">(</span><span class="n">_cache_dir</span><span class="p">),</span> <span class="n">exist_ok</span><span class="o">=</span><span class="kc">True</span><span class="p">)</span>

Expand Down

0 comments on commit 4dd28a8

Please sign in to comment.