Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

**AgentVerse** offers a versatile framework that streamlines the process of creating custom multi-agent environments for large language models (LLMs). Designed to facilitate swift development and customization with minimal effort, our framework empowers researchers to concentrate on their research, rather than being bogged down by implementation details.

⚠️⚠️⚠️ We're presently in the process of refactoring our code to offer you the flexibility to construct both simulation environments (without a predefined goal) and task-solving environments (with a specific goal). Please note that our README is currently outdated, we will update it very soon. If you require a stable version of our code that exclusively supports simulation environments, you can find it in our [`release-1.0`](https://github.com/OpenBMB/AgentVerse/tree/release-1.0) branch.
⚠️⚠️⚠️ We're refactoring the code in process, and goal is provid a flexibility to construct simulation(without a predefined goal) and task-solving(with a specific goal) environments. Please note that README is outdated, we will update it soon. If you require a stable version code that exclusively supports simulation environments, you can using [`release-1.0`](https://github.com/OpenBMB/AgentVerse/tree/release-1.0) branch.

---

Expand Down Expand Up @@ -79,7 +79,7 @@ In the NLP class, the professor and students engage in interactive communication

Use the following command to launch the NLP Classroom example:
```bash
python main_demo.py --task nlp_classroom_9players
python main_simulation_gui.py --task nlp_classroom_9players
```

https://github.com/OpenBMB/AgentVerse/assets/11704492/6ea07850-595e-4a28-a82e-f863011353c2
Expand All @@ -90,7 +90,7 @@ A prisoner's Dilemma is a thought experiment that challenges two completely rati

Use the following command to launch the Prisoner Dilemma example:
```bash
python main_demo.py --task prisoner_dilemma
python main_simulation_cli.py --task prisoner_dilemma
```

https://github.com/OpenBMB/AgentVerse/assets/11704492/017c46e5-c738-4fca-9352-b008e2d518bd
Expand All @@ -112,7 +112,7 @@ https://github.com/OpenBMB/AgentVerse/assets/11704492/5058066a-abee-490d-8659-b4
In the database diagnosis scenario, the Chief DBA monitors the system anomalies (e.g., slow queries, locks, crash down). If detected, the domain experts are alerted to analyze root causes, share insights, and suggest optimization solutions together. The Chief DBA then provides a summarized report to the user.

```bash
python main_demo.py --task db_diag
python main_simulation_gui.py --task db_diag
```

https://github.com/OpenBMB/AgentVerse/assets/11704492/c633419d-afbb-47d4-bb12-6bb512e7af3a
Expand Down Expand Up @@ -231,7 +231,7 @@ python3 main.py --task nlp_classroom_9players
We also provide a local website demo for this environment. You can launch it with

```shell
python3 main_demo.py --task nlp_classroom_9players
python3 main_simulation_gui.py --task nlp_classroom_9players
```
After successfully launching the local server, you can visit [http://127.0.0.1:7860/](http://127.0.0.1:7860/) to view the classroom environment.

Expand Down
8 changes: 5 additions & 3 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@

**AgentVerse** 提供了一个多功能的框架,简化了为大型语言模型(LLMs)创建自定义多智能体环境的过程。旨在快速、低成本的开发和定制,我们的框架赋能研究人员专注于他们的研究,而不被实现细节所困扰。

⚠️⚠️⚠️ 我们正在重构代码,目标是提供可以灵活构建 simulation (无预定目标)和 task-solving(有特定目标)的环境。请注意,目前 README 已经过时,我们将尽快对其进行更新。如果你需要使用专门支持 simulation 环境稳定运行的代码,请使用 [`release-1.0`](https://github.com/OpenBMB/AgentVerse/tree/release-1.0)分支。

---

## ✨ 特点
Expand Down Expand Up @@ -77,7 +79,7 @@ AgentVerse致力于为大型语言模型革命化多智能体环境,我们急

使用以下命令启动NLP教室示例:
```bash
python main_demo.py --task nlp_classroom_9players
python main_simulation_gui.py --task nlp_classroom_9players
```

https://github.com/OpenBMB/AgentVerse/assets/11704492/6ea07850-595e-4a28-a82e-f863011353c2
Expand All @@ -88,7 +90,7 @@ https://github.com/OpenBMB/AgentVerse/assets/11704492/6ea07850-595e-4a28-a82e-f8

使用以下命令启动NLP教室示例:
```bash
python main_demo.py --task prisoner_dilemma
python main_simulation_cli.py --task prisoner_dilemma
```

https://github.com/OpenBMB/AgentVerse/assets/11704492/017c46e5-c738-4fca-9352-b008e2d518bd
Expand All @@ -110,7 +112,7 @@ https://github.com/OpenBMB/AgentVerse/assets/11704492/5058066a-abee-490d-8659-b4

首先,您应该在BMTools中配置[数据库工具](https://github.com/OpenBMB/BMTools/blob/main/bmtools/tools/db_diag/readme.md), 并根据[指南](https://github.com/OpenBMB/BMTools/tree/main#211-local-tools)启动BMTools服务器。然后使用以下命令启动数据库管理员示例:
```bash
python main_demo.py --task db_diag
python main_simulation_gui.py --task db_diag
```

https://github.com/OpenBMB/AgentVerse/assets/11704492/c633419d-afbb-47d4-bb12-6bb512e7af3a
Expand Down
4 changes: 2 additions & 2 deletions agentverse/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ def __init__(self, task: str):
self.messages = []
self.task = task
if task == "pipeline_brainstorming":
self.backend = TaskSolving.from_task(task)
self.backend = TaskSolving.from_task(f"tasksolving/{task}")
else:
self.backend = Simulation.from_task(task)
self.backend = Simulation.from_task(f"simulation/{task}")
self.turns_remain = 0
self.agent_id = {
self.backend.agents[idx].name: idx
Expand Down
2 changes: 1 addition & 1 deletion main_simulation_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@

logger.set_level(logging.DEBUG if args.debug else logging.INFO)

agentverse = Simulation.from_task(args.task)
agentverse = Simulation.from_task(f"simulation/{args.task}")
agentverse.run()