Skip to content

Commit 866c329

Browse files
authored
Agentscope Workstation 2.0 (#642)
1 parent 0628e83 commit 866c329

File tree

239 files changed

+32134
-757
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

239 files changed

+32134
-757
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Easy for beginners, powerful for experts.
5858
- **Developer-friendly**: Low-code development, visual tracing & monitoring. From developing to deployment, all in one place.
5959

6060
## 📢 News
61+
- **[2025-07-01]** A new version AgentScope is under development. In this new version, AgentScope will be more powerful and flexible, with a new architecture and more features. Refer to our [Roadmap](https://github.com/modelscope/agentscope/blob/main/docs/ROADMAP.md) for more details!
6162
- **[2025-04-27]** A new 💻 AgentScope Studio is online now. Refer [here](https://doc.agentscope.io/build_tutorial/visual.html) for more details.
6263
- **[2025-03-21]** AgentScope supports hooks functions now. Refer to our [tutorial](https://doc.agentscope.io/build_tutorial/hook.html) for more details.
6364
- **[2025-03-19]** AgentScope supports 🔧 tools API now. Refer to our [tutorial](https://doc.agentscope.io/build_tutorial/tool.html).

README_JA.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
- **開発者フレンドリー**:ローコード開発、視覚的なトレース&モニタリング。開発からデプロイまで、すべてが一箇所で完結。
5959

6060
## 📢 ニュース
61+
- **[2025-07-01]** 新しいバージョンのAgentScopeが開発中です。この新しいバージョンでは、AgentScopeはより強力で柔軟になり、新しいアーキテクチャとより多くの機能を備えています。詳細については、[ロードマップ](https://github.com/modelscope/agentscope/blob/main/docs/ROADMAP.md)を参照してください!
6162
- **[2025-04-27]** 新しい 💻 AgentScope Studioが公開されました。詳細は[こちら](https://doc.agentscope.io/build_tutorial/visual.html)をご覧ください。
6263
- **[2025-03-21]** AgentScopeはフック関数をサポートしました。詳細は[チュートリアル](https://doc.agentscope.io/build_tutorial/hook.html)をご覧ください。
6364
- **[2025-03-19]** AgentScopeは 🔧 ツールAPIをサポートしました。詳細は[チュートリアル](https://doc.agentscope.io/build_tutorial/tool.html)をご覧ください。

README_ZH.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@
5858
- **开发者友好**:低代码开发,可视化追踪和监控。从开发到部署,一站式解决。
5959

6060
## 📢 新闻
61+
- **[2025-07-01]** 新版本的 AgentScope 正在开发中,在这个新的版本中,AgentScope 将变的更加强大和灵活,具有更多新的功能和架构,目前[开发路线图](https://github.com/modelscope/agentscope/blob/main/docs/ROADMAP.md)已更新。
6162
- **[2025-04-27]** 新的 💻 AgentScope Studio 现已上线。详情请参考[链接](https://doc.agentscope.io/build_tutorial/visual.html)
6263
- **[2025-03-21]** AgentScope 现已支持钩子函数。详情请参考[链接](https://doc.agentscope.io/build_tutorial/hook.html)
6364
- **[2025-03-19]** AgentScope 现在支持 🔧 Tools API。详情请参考[链接](https://doc.agentscope.io/build_tutorial/tool.html)

docs/ROADMAP.md

Lines changed: 20 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -6,64 +6,30 @@ Offering **agent-oriented programming (AOP)** as a new programming model to orga
66

77
## Short-term Goals
88

9-
1. Refine and improve the documentation for easier understanding.
10-
2. Support tools API.
11-
3. Refactor the current AgentScope studio, including Dashboard and Workstation.
12-
4. Improve the current RAG module.
13-
5. Re-factor the `AgentBase` class to support more flexible serialization.
9+
### AgentScope V0.2.0 Roadmap
1410

15-
## Task
11+
We are deeply grateful for the continuous support from the open-source community that has witnessed AgentScope's
12+
growth. Throughout our journey, we have maintained **developer-centric transparency** as our core principle,
13+
which will continue to guide our future development.
1614

17-
1. Documentation
15+
As the AI agent ecosystem rapidly evolves, we recognize the need to adapt AgentScope to meet emerging trends and
16+
requirements. We are excited to announce the upcoming release of AgentScope v0.2.0, which marks a significant shift
17+
towards deployment-oriented development. This new version will provide comprehensive support for agent developers
18+
with enhanced deployment capabilities and practical features. Specifically, the update will include:
1819

19-
- ✅ Re-write the tutorial.
20-
- 📝 Correct the typographical errors in API documents.
21-
- 🚧 Refine the README.md.
20+
- Deployment-oriented
21+
- Comprehensive and native asynchronous execution
22+
- Automatic session/state management
2223

23-
2. Tools Calling
24+
- Developer-oriented
25+
- Production-level monitoring and tracing
2426

25-
- ✅ Add Support for Anthropic API.
27+
- Advanced tools management
28+
- Stateful tools and toolkits management
2629

27-
- 🚧 Support tools calling in user-assistant conversations.
28-
- ✅ OpenAI API
29-
- ✅ DashScope API
30-
- ✅ Anthropic API
31-
- 📝 Gemini APi
30+
- Agent-oriented evaluation
31+
- Extensive and effective evaluation framework for agents
3232

33-
- 📝 Support tools calling in multi-agent conversations.
34-
- OpenAI API
35-
- DashScope API
36-
- Anthropic API
37-
- Gemini API
38-
39-
> 💡**Note:** The most difficult part of supporting tools calling in multi-agent conversations is most LLM APIs only support
40-
> `"user"` and `"assistant"` in their role fields, and has special requirements (e.g. user and assistant messages must be alternated).
41-
> We are working on a solution to be compatible with tools calling in
42-
> multi-agent conversations. If you have any ideas, please let us know. Discord | Dingtalk | GitHub issue are all welcome 🤗! Thanks in advance!
43-
44-
- 📝 Support tools calling in streaming mode.
45-
- OpenAI API
46-
- DashScope API
47-
- Anthropic API
48-
- Gemini API
49-
50-
3. AgentScope Studio
51-
52-
- 🚧 Refactor the AgentScope Workstation with React.
53-
- 📝 Refactor the AgentScope Dashboard with React.
54-
- Support websocket re-connection.
55-
- Support displaying token usage.
56-
- Support displaying real-time memory of agents.
57-
58-
4. RAG
59-
60-
- 🚧 Provide a set of query rewrite strategies for retrieval.
61-
- ✅ Support online search engine (Google/Bing search) based RAG.
62-
- 🚧 Support multi-RAG agent routing efficiently.
63-
64-
5. AgentBase
65-
66-
- 🚧 Decouple the data and service layer of the `MemoryBase` class to support more customized implementations.
67-
- 📝 Provide a new base class `Serializable` to
68-
- support automatic serialization/deserialization of agents.
69-
- support state registration
33+
Stay tuned for our detailed release notes and beta version, which will be available soon. Follow our GitHub
34+
repository and official channels for the latest updates. We look forward to your valuable feedback and continued
35+
support in shaping the future of AgentScope.

docs/news_en.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343

4444
- **[2024-04-06]** We release **AgentScope** v0.0.3 now!
4545

46-
- **[2024-04-06]** New examples [Gomoku](https://github.com/modelscope/agentscope/blob/main/examples/game_gomoku), [Conversation with ReAct Agent](https://github.com/modelscope/agentscope/blob/main/examples/conversation_with_react_agent), [Conversation with RAG Agent](https://github.com/modelscope/agentscope/blob/main/examples/conversation_with_RAG_agents) and [Distributed Parallel Optimization](https://github.com/modelscope/agentscope/blob/main/examples/distributed_parallel_optimization) are available now!
46+
- **[2024-04-06]** New examples [Gomoku](https://github.com/modelscope/agentscope/blob/main/examples/game_gomoku), [Conversation with ReAct Agent](https://github.com/modelscope/agentscope/blob/main/examples/agent_ReAct), [Conversation with RAG Agent](https://github.com/modelscope/agentscope/blob/main/examples/conversation_with_RAG_agents) and [Distributed Parallel Optimization](https://github.com/modelscope/agentscope/blob/main/examples/distributed_parallel_optimization) are available now!
4747

4848
- **[2024-03-19]** We release **AgentScope** v0.0.2 now! In this new version,
4949
AgentScope supports ollama(A local CPU inference engine), DashScope and Google Gemini APIs.

docs/news_ja.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
- **[2024-04-06]** **AgentScope** v0.0.3がリリースされました。
3636

37-
- **[2024-04-06]** 新しい例[五目並べ](https://github.com/modelscope/agentscope/blob/main/examples/game_gomoku)[ReActエージェントとの会話](https://github.com/modelscope/agentscope/blob/main/examples/conversation_with_react_agent)[RAGエージェントとの会話](https://github.com/modelscope/agentscope/blob/main/examples/conversation_with_RAG_agents)、および[分散並列最適化](https://github.com/modelscope/agentscope/blob/main/examples/distributed_parallel_optimization)が利用可能になりました。
37+
- **[2024-04-06]** 新しい例[五目並べ](https://github.com/modelscope/agentscope/blob/main/examples/game_gomoku)[ReActエージェントとの会話](https://github.com/modelscope/agentscope/blob/main/examples/agent_ReAct)[RAGエージェントとの会話](https://github.com/modelscope/agentscope/blob/main/examples/conversation_with_RAG_agents)、および[分散並列最適化](https://github.com/modelscope/agentscope/blob/main/examples/distributed_parallel_optimization)が利用可能になりました。
3838

3939
- **[2024-03-19]** **AgentScope** v0.0.2がリリースされました。この新しいバージョンでは、AgentScopeはollama(ローカルCPU推論エンジン)、DashScopeおよびGoogle Gemini APIをサポートしています。
4040

docs/news_zh.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434

3535
- **[2024-04-06]** 我们现在发布了**AgentScope** v0.0.3版本!
3636

37-
- **[2024-04-06]** 新的样例“[五子棋](./examples/game_gomoku)”,“[与ReAct智能体对话](./examples/conversation_with_react_agent)”,“[与RAG智能体对话](./examples/conversation_with_RAG_agents)”,“[分布式并行优化](./examples/distributed_parallel_optimization)”上线了!
37+
- **[2024-04-06]** 新的样例“[五子棋](./examples/game_gomoku)”,“[与ReAct智能体对话](./examples/agent_ReAct)”,“[与RAG智能体对话](./examples/conversation_with_RAG_agents)”,“[分布式并行优化](./examples/distributed_parallel_optimization)”上线了!
3838

3939
- **[2024-03-19]** 我们现在发布了**AgentScope** v0.0.2版本!在这个新版本中,AgentScope支持了ollama(本地CPU推理引擎),DashScope和Gemini APIs。
4040

examples/agent_ReAct/README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# ReAct Agent in AgentScope
2+
3+
This example demonstrates how to use the ReAct agent in AgentScope to build a
4+
simple conversation.
5+
6+
**Tip:** AgentScope provides two implementations of ReAct agent:
7+
- `agentscope.agents.ReActAgent`: Extract tool calls from the text response of LLMs locally.
8+
- `agentscope.agents.ReActAgentV2`: Use the tools API, where the tool calls extraction is done by the LLM API provider, currently supports OpenAI, DashScope, Anthropic.
9+
10+
They share the same interface, so you can easily switch between them. The
11+
example in `main.py` use `ReActAgent` by default, you can change it to
12+
`ReActAgentV2` by modifying the import statement.
13+
14+
15+
To run this example, install agentscope and then execute the following command:
16+
17+
```bash
18+
python main.py
19+
```

examples/conversation_with_react_agent/code/conversation_with_react_agent.py renamed to examples/agent_ReAct/main.py

Lines changed: 1 addition & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
# -*- coding: utf-8 -*-
22
"""An example of a conversation with a ReAct agent."""
3-
import sys
4-
import io
53

64
from agentscope.agents import UserAgent
75
from agentscope.agents import ReActAgent
@@ -10,8 +8,7 @@
108
read_text_file,
119
write_text_file,
1210
ServiceToolkit,
13-
ServiceResponse,
14-
ServiceExecStatus,
11+
execute_python_code,
1512
)
1613
import agentscope
1714

@@ -25,41 +22,6 @@
2522
# ...
2623
}
2724

28-
29-
# Prepare a new tool function
30-
def execute_python_code(code: str) -> ServiceResponse: # pylint: disable=C0301
31-
"""
32-
Execute Python code and capture the output. Note you must `print` the output to get the result.
33-
Args:
34-
code (`str`):
35-
The Python code to be executed.
36-
""" # noqa
37-
38-
# Create a StringIO object to capture the output
39-
old_stdout = sys.stdout
40-
new_stdout = io.StringIO()
41-
sys.stdout = new_stdout
42-
43-
try:
44-
# Using `exec` to execute code
45-
namespace = {}
46-
exec(code, namespace)
47-
except Exception as e:
48-
# If an exception occurs, capture the exception information
49-
output = str(e)
50-
status = ServiceExecStatus.ERROR
51-
else:
52-
# If the execution is successful, capture the output
53-
output = new_stdout.getvalue()
54-
status = ServiceExecStatus.SUCCESS
55-
finally:
56-
# Recover the standard output
57-
sys.stdout = old_stdout
58-
59-
# Wrap the output and status into a ServiceResponse object
60-
return ServiceResponse(status, output)
61-
62-
6325
# Prepare the tools for the agent
6426
service_toolkit = ServiceToolkit()
6527

@@ -71,7 +33,6 @@ def execute_python_code(code: str) -> ServiceResponse: # pylint: disable=C0301
7133
agentscope.init(
7234
model_configs=YOUR_MODEL_CONFIGURATION,
7335
project="Conversation with ReActAgent",
74-
save_api_invoke=True,
7536
)
7637

7738
# Create agents

examples/conversation_nl2sql/react_nl2sql.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"- Follow [READMD.md](https://github.com/modelscope/agentscope) to install AgentScope.\n",
2222
"- Install the third-party libraries used in [DAIL-SQL](https://github.com/BeachWang/DAIL-SQL/blob/main/requirements.txt).\n",
2323
"- Prepare a model configuration. AgentScope supports both local deployed model services (CPU or GPU) and third-party services. More details and example model configurations please refer to our [tutorial](https://doc.agentscope.io/build_tutorial/model.html).\n",
24-
"- Get familiar with service functions, ServiceToolkit module and built-in ReAct agent. The corresponding example can be found in [ReAct agent example](../conversation_with_react_agent/main.ipynb).\n",
24+
"- Get familiar with service functions, ServiceToolkit module and built-in ReAct agent. The corresponding example can be found in [ReAct agent example](../agent_ReAct/main.ipynb).\n",
2525
"\n",
2626
"## Note\n",
2727
"\n",

0 commit comments

Comments
 (0)