Skip to main content

General Agent Framework by LinXueyuan

Project description

AgentLin

通用 Agent 架构

开始使用

1. 安装

pip install agentlin

本地安装

pip install -e .

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_agent/chart_o3.py

注意:如果你不是在交互式建模的容器里运行的,需要挂一个代理服务将本地请求转发到北美:

cd tool_server
bash run_aime_proxy_server.sh

目录结构

agentlin/
├── core/                 # 核心架构组件   ├── agent_schema.py   # Agent 模式定义   ├── simulator.py      # 仿真器   └── types.py          # 数据类型定义
├── route/                # 路由和代理管理   ├── client.py         # 客户端   ├── mcp_proxy_*.py    # MCP 代理相关   └── *_task_manager.py # 任务管理器
└── tools/                # 工具集合
    ├── tool_aime.py      # AIME 工具
    ├── tool_calendar.py  # 日历工具
    ├── tool_code_interpreter.py # 代码解释器
    └── ...               # 其他工具

chart_agent/              # 图表 Agent
table_agent/              # 表格 Agent
tool_server/              # 工具服务器
docs/                     # 项目文档
data/                     # 数据文件,软链接到 /mnt/aime/datasets/agent/agent_data
├── aime/                 # AIME 相关数据
└── wencai/               # 问财相关数据

Project details


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.14.tar.gz (85.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

agentlin-0.0.14-py2.py3-none-any.whl (99.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file agentlin-0.0.14.tar.gz.

File metadata

  • Download URL: agentlin-0.0.14.tar.gz
  • Upload date:
  • Size: 85.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/2.1.1 CPython/3.10.9 Darwin/24.5.0

File hashes

Hashes for agentlin-0.0.14.tar.gz
Algorithm Hash digest
SHA256 59f036e51c240ea03c61da70f55e244c1afe860b8159e6fd5c2f19ac226e8ebc
MD5 58c6a49620509f5027d66d962523ddab
BLAKE2b-256 513c2842fed5cdaedba36ae1bdc68a1b8399f2fd0af47289c67c17894c73e7fe

See more details on using hashes here.

File details

Details for the file agentlin-0.0.14-py2.py3-none-any.whl.

File metadata

  • Download URL: agentlin-0.0.14-py2.py3-none-any.whl
  • Upload date:
  • Size: 99.9 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

Hashes for agentlin-0.0.14-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 fa240d972ed625f2539dff6e4006f3e58108924e6f54fa9797776a1c48c878d5
MD5 5df29f83591ef1c0e054d9491aaf50dc
BLAKE2b-256 7c917824376a7bb6ee14db45b9c9bfd4d8cf4f08b288306eb707e0370e597da0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page