From f34f38599ac4a9db9d91e50649b34c2c9fe90e99 Mon Sep 17 00:00:00 2001 From: DavdGao Date: Mon, 26 Feb 2024 11:11:46 +0800 Subject: [PATCH] Rename code_ into execute_code and update tutorial --- ...ope.service.code.rst => agentscope.service.execute_code.rst} | 2 +- docs/sphinx_doc/source/agentscope.service.rst | 2 +- src/agentscope/service/__init__.py | 2 +- src/agentscope/service/{code_ => execute_code}/__init__.py | 0 src/agentscope/service/{code_ => execute_code}/exec_python.py | 0 5 files changed, 3 insertions(+), 3 deletions(-) rename docs/sphinx_doc/source/{agentscope.service.code.rst => agentscope.service.execute_code.rst} (73%) rename src/agentscope/service/{code_ => execute_code}/__init__.py (100%) rename src/agentscope/service/{code_ => execute_code}/exec_python.py (100%) diff --git a/docs/sphinx_doc/source/agentscope.service.code.rst b/docs/sphinx_doc/source/agentscope.service.execute_code.rst similarity index 73% rename from docs/sphinx_doc/source/agentscope.service.code.rst rename to docs/sphinx_doc/source/agentscope.service.execute_code.rst index 280ff48a5..9019a59aa 100644 --- a/docs/sphinx_doc/source/agentscope.service.code.rst +++ b/docs/sphinx_doc/source/agentscope.service.execute_code.rst @@ -4,7 +4,7 @@ Code package exec\_python module -------------------------------------------- -.. automodule:: agentscope.service.code.exec_python +.. automodule:: agentscope.service.execute_code.exec_python :members: :undoc-members: :show-inheritance: diff --git a/docs/sphinx_doc/source/agentscope.service.rst b/docs/sphinx_doc/source/agentscope.service.rst index cb029eaf8..6f8e7df1c 100644 --- a/docs/sphinx_doc/source/agentscope.service.rst +++ b/docs/sphinx_doc/source/agentscope.service.rst @@ -5,7 +5,7 @@ Service package .. toctree:: :maxdepth: 4 - agentscope.service.code + agentscope.service.execute_code agentscope.service.file agentscope.service.retrieval agentscope.service.sql_query diff --git a/src/agentscope/service/__init__.py b/src/agentscope/service/__init__.py index e5a07b7e8..0ab2560ac 100644 --- a/src/agentscope/service/__init__.py +++ b/src/agentscope/service/__init__.py @@ -2,7 +2,7 @@ """ Import all service-related modules in the package.""" from loguru import logger -from .code_.exec_python import execute_python_code +from .execute_code.exec_python import execute_python_code from .file.common import ( create_file, delete_file, diff --git a/src/agentscope/service/code_/__init__.py b/src/agentscope/service/execute_code/__init__.py similarity index 100% rename from src/agentscope/service/code_/__init__.py rename to src/agentscope/service/execute_code/__init__.py diff --git a/src/agentscope/service/code_/exec_python.py b/src/agentscope/service/execute_code/exec_python.py similarity index 100% rename from src/agentscope/service/code_/exec_python.py rename to src/agentscope/service/execute_code/exec_python.py