From fb0678f4d66de2d0744fe099de6d3eddbdf10c73 Mon Sep 17 00:00:00 2001 From: DavdGao Date: Fri, 6 Sep 2024 16:08:40 +0800 Subject: [PATCH] Preparation for version v0.1.0 (#433) --- README.md | 2 ++ README_ZH.md | 2 ++ setup.py | 1 + src/agentscope/_version.py | 2 +- src/agentscope/manager/_manager.py | 3 +++ tests/manager_test.py | 6 +++++- 6 files changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 327999788..0b74778ae 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,8 @@ Start building LLM-empowered multi-agent applications in an easier way. ## News +- new**[2024-09-06]** AgentScope version 0.1.0 is released now. + - new**[2024-09-03]** AgentScope supports **Web Browser Control** now! Refer to our [example](https://github.com/modelscope/agentscope/tree/main/examples/conversation_with_web_browser_agent) for more details.
diff --git a/README_ZH.md b/README_ZH.md index 6ac6746ab..059f9b624 100644 --- a/README_ZH.md +++ b/README_ZH.md @@ -41,6 +41,8 @@ ## 新闻 +- new**[2024-09-06]** AgentScope v0.1.0 版本已上线 + - new**[2024-09-03]** AgentScope 已更新浏览器控制模块,利用 vision 模型实现智能体对浏览器的控制。请参考[**样例**](https://github.com/modelscope/agentscope/tree/main/examples/conversation_with_web_browser_agent)
diff --git a/setup.py b/setup.py index 9b40356fb..798d6713f 100644 --- a/setup.py +++ b/setup.py @@ -137,6 +137,7 @@ package_data={ "agentscope.studio": ["static/**/*", "templates/**/*"], "agentscope.prompt": ["_prompt_examples.json"], + "agentscope.service.browser": ["markpage.js"], }, install_requires=minimal_requires, extras_require={ diff --git a/src/agentscope/_version.py b/src/agentscope/_version.py index 10709a084..7121d7fc7 100644 --- a/src/agentscope/_version.py +++ b/src/agentscope/_version.py @@ -1,4 +1,4 @@ # -*- coding: utf-8 -*- """ Version of AgentScope.""" -__version__ = "0.0.6alpha3" +__version__ = "0.1.0" diff --git a/src/agentscope/manager/_manager.py b/src/agentscope/manager/_manager.py index d9a08f63a..899d10cc1 100644 --- a/src/agentscope/manager/_manager.py +++ b/src/agentscope/manager/_manager.py @@ -10,6 +10,7 @@ from ._file import FileManager from ._model import ModelManager from ..logging import LOG_LEVEL, setup_logger +from .._version import __version__ from ..utils.common import ( _generate_random_code, _get_process_creation_time, @@ -159,6 +160,8 @@ def state_dict(self) -> dict: k: getattr(self, k) for k in self.__serialized_attrs } + serialized_data["agentscope_version"] = __version__ + serialized_data["file"] = self.file.state_dict() serialized_data["model"] = self.model.state_dict() serialized_data["logger"] = { diff --git a/tests/manager_test.py b/tests/manager_test.py index 322d3ce61..6d777b58e 100644 --- a/tests/manager_test.py +++ b/tests/manager_test.py @@ -7,6 +7,7 @@ import agentscope from agentscope.manager import ASManager from agentscope.constants import _DEFAULT_CACHE_DIR +from agentscope._version import __version__ class ManagerTest(TestCase): @@ -33,6 +34,7 @@ def test_serialize(self) -> None: self.assertDictEqual( data, { + "agentscope_version": __version__, "project": "project", "name": "name", "disable_saving": True, @@ -67,9 +69,11 @@ def test_serialize(self) -> None: # Flush the manager manager.flush() + state_dict = manager.state_dict() self.assertDictEqual( - manager.state_dict(), + state_dict, { + "agentscope_version": __version__, "project": "", "name": "", "disable_saving": True,