General Agent Framework by LinXueyuan
Project description
AgentLin
通用 Agent 架构,支持多Agent协作和RPC远程调用。
主要特性
- 🤖 多Agent系统: 基于RabbitMQ的消息队列支持多Agent协作
- 🔗 RPC远程调用: 像本地函数一样调用远程Agent方法
- ⏰ 时间同步: 分布式时间协调机制
- 🛠️ 工具集成: 丰富的工具生态系统
- 📊 数据处理: 内置数据分析和可视化工具
- 🔄 自动重连: 健壮的连接管理和故障恢复
开始使用
1. 安装
pip install agentlin
本地安装
pip install -e .
# plotly 需要额外下载 chrome 内核用于渲染图表
plotly_get_chrome
2. 创建 .env 文件
复制 .env.example 文件为 .env 并填写所需的环境变量。
环境变量定义了访问 o3 模型的 API 密钥和其他配置。
3. 创建软链接
将公共数据目录 /mnt/aime/datasets/agent/agent_data 软链接到你本地项目的 data 目录下
ln -s /mnt/aime/datasets/agent/agent_data data
4. 运行应用程序
streamlit run chart_o3_toolcall.py
注意:如果你不是在交互式建模的容器里运行的,需要挂一个代理服务将本地请求转发到北美:
cd tool_server
bash run_aime_proxy_server.sh
5. 运行 MCP 服务器
agentlin launch --mcp-server file_system --host localhost --port 9999 --path /file_system_mcp --debug HOME_DIR=<your_home_directory> agentlin launch --mcp-server bash --host localhost --port 9999 --path /bash_mcp --debug
agentlin launch --mcp-server memory --host localhost --port 9999 --path /memory_mcp --debug
agentlin launch --mcp-server web --host localhost --port 9999 --path /web_mcp --debug
TODO_FILE_PATH=<your_todo_file_path> agentlin launch --mcp-server todo --host localhost --port 7780 --path /todo_mcp --debug
详细文档
参见 RPC消息队列使用指南
目录结构
agentlin/
├── core/ # 核心架构组件
│ ├── agent_schema.py # Agent 模式定义
│ ├── simulator.py # 仿真器
│ ├── multimodal.py # 多模态支持
│ └── types.py # 数据类型定义
├── route/ # 路由和代理管理
│ ├── client.py # 客户端
│ ├── mcp_proxy_*.py # MCP 代理相关
│ ├── session_manager.py # 会话管理
│ └── *_task_manager.py # 任务管理器
├── code_interpreter/ # 代码解释器
│ ├── client.py # 解释器客户端
│ ├── jupyter_*.py # Jupyter 集成
│ ├── tool_call_display.py # 工具调用显示
│ └── ... # 其他组件
└── tools/ # 工具集合
├── tool_aime.py # AIME 工具
├── tool_code_interpreter.py # 代码解释器工具
├── tool_chart.py # 图表工具
└── tool_*.py # 其他工具
chart_agent/ # 图表 Agent
table_agent/ # 表格 Agent
tool_server/ # 工具服务器
docs/ # 项目文档
assets/ # 配置文件
data/ # 数据文件,软链接到 /mnt/aime/datasets/agent/agent_data
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
agentlin-0.0.20.tar.gz
(183.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
agentlin-0.0.20-py2.py3-none-any.whl
(213.7 kB
view details)
File details
Details for the file agentlin-0.0.20.tar.gz.
File metadata
- Download URL: agentlin-0.0.20.tar.gz
- Upload date:
- Size: 183.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.10.9 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
98cce03bf1dd1b0824c338ed49672000c9e99bdbf0dff5fdebcff7fc31749a8a
|
|
| MD5 |
eb11c81466480d6d29562bde6597408e
|
|
| BLAKE2b-256 |
d25c5c487c7176ab2c50ed4dc5843485df2a423939f0530136dc1a57c914e2b0
|
File details
Details for the file agentlin-0.0.20-py2.py3-none-any.whl.
File metadata
- Download URL: agentlin-0.0.20-py2.py3-none-any.whl
- Upload date:
- Size: 213.7 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/2.1.1 CPython/3.10.9 Darwin/24.5.0
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1c52df7e83600ca9630e17a9c773df7b855e74b21808eb36e38ae2817f63f653
|
|
| MD5 |
39b34b8c9b05f74403302a0097e5ce43
|
|
| BLAKE2b-256 |
8d0fdf6a0d9a9b2570f38867bb487c360aca00f8f2e6ea999f6a32a237e2e217
|