Skip to content

Commit f30fd79

Browse files
author
liufeihong
committed
Merge branch 'refs/heads/main' into lfh_pro_commit_0.1
2 parents 4d656b1 + 2164371 commit f30fd79

File tree

114 files changed

+13208
-1063
lines changed

Some content is hidden

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

114 files changed

+13208
-1063
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@ uv.lock
6161
# Logs
6262
logs/
6363
*.log
64+
65+
# Agent-generated files
66+
**sessions_mount_dir/

README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ It includes **agent deployment** and **secure sandboxed tool execution**, and ca
5959
## 🌳 Repository Structure
6060

6161
```bash
62+
├── alias/ # Agent to solve real-world problems
6263
├── browser_use/
6364
│ ├── agent_browser/ # Pure Python browser agent
6465
│ └── browser_use_fullstack_runtime/ # Full-stack runtime version with frontend/backend
@@ -79,6 +80,7 @@ It includes **agent deployment** and **secure sandboxed tool execution**, and ca
7980
├── evaluation/
8081
│ └── ace_bench/ # Benchmarks and evaluation tools
8182
83+
├── data_juicer_agent/ # Data processing multi-agent system
8284
├── sample_template/ # Template for new sample contributions
8385
└── README.md
8486
```
@@ -89,6 +91,7 @@ It includes **agent deployment** and **secure sandboxed tool execution**, and ca
8991

9092
| Category | Example Folder | Uses AgentScope | Use AgentScope Runtime | Description |
9193
| ----------------------- |-------------------------------------------------------| --------------- | ------------ |--------------------------------------------------|
94+
| **Data Processing** | data_juicer_agent/ ||| Multi-agent data processing with Data-Juicer |
9295
| **Browser Use** | browser_use/agent_browser ||| Command-line browser automation using AgentScope |
9396
| | browser_use/browser_use_fullstack_runtime ||| Full-stack browser automation with UI & sandbox |
9497
| **Deep Research** | deep_research/agent_deep_research ||| Multi-agent research pipeline |
@@ -99,6 +102,35 @@ It includes **agent deployment** and **secure sandboxed tool execution**, and ca
99102
| | conversational_agents/multiagent_conversation ||| Multi-agent dialogue scenario |
100103
| | conversational_agents/multiagent_debate ||| Agents engaging in debates |
101104
| **Evaluation** | evaluation/ace_bench ||| Benchmarks with ACE Bench |
105+
| **General AI Agent** | alias/ ||| Agent application running in sandbox to solve diverse real-world problems |
106+
107+
------
108+
109+
## 🌟 Featured Examples
110+
111+
### DataJuicer Agent
112+
113+
A powerful multi-agent data processing system that leverages Data-Juicer's 200+ operators for intelligent data processing:
114+
115+
- **Intelligent Query**: Find suitable operators from 200+ data processing operators
116+
- **Automated Pipeline**: Generate Data-Juicer YAML configurations from natural language
117+
- **Custom Development**: Create domain-specific operators with AI assistance
118+
- **Multiple Retrieval Modes**: LLM-based and vector-based operator matching
119+
- **MCP Integration**: Native Model Context Protocol support
120+
121+
📖 **Documentation**: [English](data_juicer_agent/README.md) | [中文](data_juicer_agent/README_ZH.md)
122+
123+
124+
### Alias-Agent
125+
126+
*Alias-Agent* (short for *Alias*) is designed to serve as an intelligent assistant for tackle diverse and complicated real-world tasks, providing three operational modes for flexible task execution:
127+
- **Simple React**: Employs vanilla reasoning-acting loops to iteratively solve problems and execute tool calls.
128+
- **Planner-Worker**: Uses intelligent planning to decompose complex tasks into manageable subtasks, with dedicated worker agents handling each subtask independently.
129+
- **Built-in Agents**: Leverages specialized agents tailored for specific domains, including *Deep Research Agent* for comprehensive analysis and *Browser-use Agent* for web-based interactions.
130+
131+
Beyond being a ready-to-use agent, we envision Alias as a foundational template that can be adapted to different scenarios.
132+
133+
📖 **Documentation**: [English](alias/README.md) | [中文](alias/README_ZH.md)
102134

103135
------
104136

README_zh.md

Lines changed: 43 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ AgentScope Runtime 是一个**全面的运行时框架**,主要解决部署和
5959
## 🌳 仓库结构
6060

6161
```bash
62+
├── alias/ # 解决现实问题的智能体程序
6263
├── browser_use/
6364
│ ├── agent_browser/ # 纯 Python 浏览器 Agent
6465
│ └── browser_use_fullstack_runtime/ # 全栈运行时版本(前端+后端)
@@ -79,6 +80,7 @@ AgentScope Runtime 是一个**全面的运行时框架**,主要解决部署和
7980
├── evaluation/
8081
│ └── ace_bench/ # 基准测试与评估工具
8182
83+
├── data_juicer_agent/ # 数据处理多智能体系统
8284
├── sample_template/ # 新样例贡献模板
8385
└── README.md
8486
```
@@ -87,18 +89,47 @@ AgentScope Runtime 是一个**全面的运行时框架**,主要解决部署和
8789

8890
## 📌 示例列表
8991

90-
| 分类 | 示例文件夹 | 使用 AgentScope | 使用 AgentScope Runtime | 描述 |
91-
| ----------------------- |-----------------------------------------------------| --------------- | ----------------------- |------|
92-
| **浏览器相关** | browser_use/agent_browser ||| 基于 AgentScope 的命令行浏览器自动化 |
93-
| | browser_use/browser_use_fullstack_runtime ||| 带 UI 和沙盒环境的全栈浏览器自动化 |
94-
| **深度研究** | deep_research/agent_deep_research ||| 多 Agent 研究流程 |
95-
| | deep_research/qwen_langgraph_search_fullstack_runtime ||| 全栈运行时深度研究应用 |
96-
| **游戏** | games/game_werewolves ||| 多 Agent 角色扮演推理游戏 |
97-
| **对话应用** | conversational_agents/chatbot_fullstack_runtime ||| 带前端/后端的聊天机器人 |
98-
| | conversational_agents/chatbot ||| 聊天机器人 |
99-
| | conversational_agents/multiagent_conversation ||| 多 Agent 对话场景 |
100-
| | conversational_agents/multiagent_debate ||| Agent 辩论 |
101-
| **评估** | evaluation/ace_bench ||| ACE Bench 基准测试 |
92+
| 分类 | 示例文件夹 | 使用 AgentScope | 使用 AgentScope Runtime | 描述 |
93+
|-----------|-------------------------------------------------------|---------------|-----------------------|-------------------------|
94+
| **数据处理** | data_juicer_agent/ ||| 基于 Data-Juicer 的多智能体数据处理 |
95+
| **浏览器相关** | browser_use/agent_browser ||| 基于 AgentScope 的命令行浏览器自动化 |
96+
| | browser_use/browser_use_fullstack_runtime ||| 带 UI 和沙盒环境的全栈浏览器自动化 |
97+
| **深度研究** | deep_research/agent_deep_research ||| 多 Agent 研究流程 |
98+
| | deep_research/qwen_langgraph_search_fullstack_runtime ||| 全栈运行时深度研究应用 |
99+
| **游戏** | games/game_werewolves ||| 多 Agent 角色扮演推理游戏 |
100+
| **对话应用** | conversational_agents/chatbot_fullstack_runtime ||| 带前端/后端的聊天机器人 |
101+
| | conversational_agents/chatbot ||| 聊天机器人 |
102+
| | conversational_agents/multiagent_conversation ||| 多 Agent 对话场景 |
103+
| | conversational_agents/multiagent_debate ||| Agent 辩论 |
104+
| **评估** | evaluation/ace_bench ||| ACE Bench 基准测试 |
105+
| **通用智能体** | alias/ ||| 在沙盒中运行的可以解决真实问题的智能体程序 |
106+
107+
---
108+
109+
## 🌟 特色示例
110+
111+
### DataJuicer 智能体
112+
113+
一个强大的数据处理多智能体系统,利用 Data-Juicer 的 200+ 算子进行智能数据处理:
114+
115+
- **智能查询**:从 200+ 数据处理算子中找到合适的算子
116+
- **自动化流程**:从自然语言描述生成 Data-Juicer YAML 配置
117+
- **自定义开发**:通过 AI 辅助创建领域特定的算子
118+
- **多种检索模式**:基于 LLM 和向量的算子匹配
119+
- **MCP 集成**:原生模型上下文协议支持
120+
121+
📖 **文档**[English](data_juicer_agent/README.md) | [中文](data_juicer_agent/README_ZH.md)
122+
123+
### Alias 智能体
124+
125+
*Alias-Agent*(简称 *Alias*)旨在作为一个智能助手来处理多样且复杂的真实世界任务,提供三种操作模式以实现灵活的任务执行:
126+
- **Simple React**:采用经典的推理-行动循环来迭代解决问题并执行工具调用。
127+
- **Planner-Worker**:使用智能规划将复杂任务分解为可管理的子任务,并由专门的执行智能体独立处理每个子任务。
128+
- **Built-in Agents**:利用针对特定领域定制的专用智能体,包括用于全面分析的Deep Research Agent和用于基于 Web 交互的Browser-use Agent。
129+
130+
除了作为一个即用型智能体,我们也希望 Alias 能够成为一个基础模板,可以迁移到不同的场景。
131+
132+
📖 **文档**[English](alias/README.md) | [中文](alias/README_ZH.md)
102133

103134
---
104135

alias/.gitignore

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
4+
# macOS
5+
.DS_Store
6+
7+
# Logs
8+
logs/
9+
src/alias/agent/agents/log/
10+
# Python
11+
*.py[cod]
12+
*$py.class
13+
14+
# Package
15+
alias.egg-info/

alias/README.md

Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
1+
<div align="center">
2+
3+
<img src="assets/alias.png" alt="Alias-Agent Logo" width="500" height="250" style="vertical-align: middle; margin-right: 20px;">
4+
<h1 style="text-decoration: none; border-bottom: none; display: inline; vertical-align: middle; margin: 0;">Alias-Agent: Start It Now, Extend It Your Way, Deploy All with Ease</h1>
5+
6+
</div>
7+
8+
## Project introduction
9+
*Alias-Agent* (short for *Alias*) is an LLM-empowered agent built on [AgentScope](https://github.com/agentscope-ai/agentscope) and [AgentScope-runtime](https://github.com/agentscope-ai/agentscope-runtime/), designed to serve as an intelligent assistant for responding to user queries. Alias excels at decomposing complicated problems, constructing roadmaps, and applying appropriate strategies to tackle diverse real-world tasks.
10+
11+
Specifically, Alias provides three operational modes for flexible task execution:
12+
- **Simple React**: Employs vanilla reasoning-acting loops to iteratively solve problems and execute tool calls.
13+
- **Planner-Worker**: Uses intelligent planning to decompose complex tasks into manageable subtasks, with dedicated worker agents handling each subtask independently.
14+
- **Built-in Agents**: Leverages specialized agents tailored for specific domains, including *Deep Research Agent* for comprehensive analysis and *Browser-use Agent* for web-based interactions. More details can refer to the following "Basic Usage" section.
15+
16+
We aim for Alias to serve as an out-of-the-box solution that users can readily deploy for various tasks.
17+
18+
## Coming soon
19+
20+
Beyond being a ready-to-use agent, we envision Alias as a foundational template that can be adapted to different scenarios. Developers can extend and customize Alias at the tool, prompt, and agent levels to meet their specific requirements.
21+
22+
We are actively developing specialized enhancements and adaptations for:
23+
- **Business Intelligence (BI)** scenarios
24+
- **Financial** analysis applications
25+
- **Question-Answering (QA)** systems
26+
27+
Stay tuned for upcoming releases!
28+
29+
30+
## Installation
31+
32+
Install the Alias package in development mode:
33+
34+
```bash
35+
pip install -e .
36+
37+
# SETUP SANDBOX
38+
# If you are using colima, then you need to run the following
39+
# export DOCKER_HOST=unix://$HOME/.colima/default/docker.sock
40+
# More details can refer to https://runtime.agentscope.io/en/sandbox.html
41+
42+
# Option 1: Pull from registry
43+
export RUNTIME_SANDBOX_REGISTRY=agentscope-registry.ap-southeast-1.cr.aliyuncs.com
44+
docker pull agentscope-registry.ap-southeast-1.cr.aliyuncs.com/agentscope/runtime-sandbox-alias:latest
45+
46+
# Option 2: pull from docker hub
47+
docker pull agentscope/runtime-sandbox-alias:latest
48+
```
49+
50+
This will install the `alias` command-line tool.
51+
52+
## Basic Usage
53+
54+
The `alias` CLI provides a terminal interface to run AI agents for various tasks.
55+
56+
### Run Command
57+
58+
First of all, set up API keys
59+
```bash
60+
# Model API keys
61+
export DASHSCOPE_API_KEY=your_dashscope_api_key_here
62+
63+
# Using other models: go to src/alias/agent/run.py and add your model to MODEL_FORMATTER_MAPPING, then run the bash to set your model and api key. For example:
64+
#export MODEL=gpt-5
65+
#export OPENAI_API_KEY=your_openai_api_key_here
66+
67+
# Search api key (required for deep research)
68+
export TAVILY_API_KEY=your_tavily_api_key_here
69+
```
70+
71+
Execute an agent task:
72+
73+
```bash
74+
alias_agent run --task "Your task description here"
75+
```
76+
77+
### Examples
78+
79+
#### Run with all agents (Meta Planner with workers):
80+
```bash
81+
alias_agent run --task "Analyze Meta stock performance in Q1 2025"
82+
```
83+
84+
#### Run with only browser agent:
85+
86+
```bash
87+
alias_agent run --mode browser --task "Search five latest research papers about browser-use agent"
88+
```
89+
90+
#### Upload files to sandbox workspace:
91+
```bash
92+
# Upload a single file
93+
alias_agent run --task "Analyze this data" --files data.csv
94+
95+
# Upload multiple files
96+
alias_agent run --task "Process these files and create a summary report" --files report.txt data.csv notes.md
97+
98+
# Using short form (-f)
99+
alias_agent run --task "Review the documents" -f document1.pdf document2.txt
100+
101+
# Combine with other options
102+
alias_agent run --mode all --task "Analyze the data and generate insights" --files dataset.csv --verbose
103+
```
104+
105+
**Note**: Files uploaded with `--files` are automatically copied to the `/workspace` directory in the sandbox with their original filenames, making them immediately accessible to the agent.
106+
107+
### Obtain agent-generated files
108+
In the directory where you ran `alias_agent`, you should find a `sessions_mount_dir` directory with subdirectories, each containing the content from `/workspace` of the sandboxes' mounted file systems. All generated files should be located there.
109+

0 commit comments

Comments
 (0)