Skip to content

Commit

Permalink
Preparation for version v0.1.0 (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
DavdGao authored Sep 6, 2024
1 parent b91d8c3 commit fb0678f
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ Start building LLM-empowered multi-agent applications in an easier way.

## News

- <img src="https://img.alicdn.com/imgextra/i3/O1CN01SFL0Gu26nrQBFKXFR_!!6000000007707-2-tps-500-500.png" alt="new" width="30" height="30"/>**[2024-09-06]** AgentScope version 0.1.0 is released now.

- <img src="https://img.alicdn.com/imgextra/i3/O1CN01SFL0Gu26nrQBFKXFR_!!6000000007707-2-tps-500-500.png" alt="new" width="30" height="30"/>**[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.

<h5 align="left">
Expand Down
2 changes: 2 additions & 0 deletions README_ZH.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@

## 新闻

- <img src="https://img.alicdn.com/imgextra/i3/O1CN01SFL0Gu26nrQBFKXFR_!!6000000007707-2-tps-500-500.png" alt="new" width="30" height="30"/>**[2024-09-06]** AgentScope v0.1.0 版本已上线

- <img src="https://img.alicdn.com/imgextra/i3/O1CN01SFL0Gu26nrQBFKXFR_!!6000000007707-2-tps-500-500.png" alt="new" width="30" height="30"/>**[2024-09-03]** AgentScope 已更新浏览器控制模块,利用 vision 模型实现智能体对浏览器的控制。请参考[**样例**](https://github.com/modelscope/agentscope/tree/main/examples/conversation_with_web_browser_agent)

<h5 align="left">
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -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={
Expand Down
2 changes: 1 addition & 1 deletion src/agentscope/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# -*- coding: utf-8 -*-
""" Version of AgentScope."""

__version__ = "0.0.6alpha3"
__version__ = "0.1.0"
3 changes: 3 additions & 0 deletions src/agentscope/manager/_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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"] = {
Expand Down
6 changes: 5 additions & 1 deletion tests/manager_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand All @@ -33,6 +34,7 @@ def test_serialize(self) -> None:
self.assertDictEqual(
data,
{
"agentscope_version": __version__,
"project": "project",
"name": "name",
"disable_saving": True,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit fb0678f

Please sign in to comment.