Skip to main content

magic-agents

集中agent 管理平台

PyPI version License: MIT Python 3.8+

集中agent 管理平台

项目状态

开发中 - 首个正式版本将于 2026 年 Q3 发布

功能规划

核心能力

  • Agent 注册中心:统一管理所有 Agent 的元数据、能力描述、健康状态
  • 统一调用网关:标准化调用接口,支持同步/异步、重试、熔断、限流
  • 工作流编排引擎:YAML 定义多 Agent 协作,支持顺序/分支/循环/并行
  • 审计与日志:全链路操作审计,结构化日志,支持合规追溯
  • 安全与 IAM:JWT 认证、API Key 管理、RBAC 权限、租户隔离
  • 存储管理:Agent 元数据、工作流定义、执行实例、审计日志持久化

可选能力

  • 沙箱执行:安全隔离执行不可信代码(文件隔离、网络隔离、资源限制)
  • 工具注册中心:原子能力工具的注册与管理(MCP 风格)
  • OA 集成:对接企业现有 OA/用户系统,统一认证
  • 遗留系统适配:将现有业务系统快速封装为 Agent

部署模式

  • 私有化部署:数据不出企业,支持 Linux 服务器
  • 轻量起步:SQLite + Docker Compose,一键部署
  • 可扩展:支持 PostgreSQL,可水平扩展

技术特性

  • 基于 FastAPI 构建,自动生成 OpenAPI 文档
  • 基于 Pydantic 的数据验证
  • 结构化 JSON 日志
  • 支持 Prometheus 指标暴露

安装

pip install magic_agents

示例(待正式版本发布后补充)

示例代码将在正式版发布时提供。

代码规范

本项目遵循以下基本原则:

  1. 单文件不超过 200 行:超过时请拆分为多个模块
  2. 单函数不超过 200 行:超过时请拆分为多个小函数
  3. 注释尽量完整:关键逻辑、复杂算法、非显而易见的代码必须有注释说明
  4. 如有特殊场景确实需要突破(如纯数据定义文件),可在 PR 中说明。

这些规则旨在保证代码的可读性和可维护性,便于合作,请尽量遵守。

针对 AI 辅助工具的提示

本项目使用 AI 辅助开发,请在生成代码时尽量遵守上述代码规范。

许可证

MIT License

作者

wxd123 - GitHub

Metadata

Release files for magic-agents 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for magic-agents 0.1.0
File Size Uploaded Provenance Actions
magic_agents-0.1.0.tar.gz 3.7 kB Without provenance Details for magic_agents-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for magic-agents 0.1.0
File Interpreter ABI Platform Actions
magic_agents-0.1.0-py3-none-any.whl Python 3 none any Details for magic_agents-0.1.0-py3-none-any.whl

Total release size: 7.5 kB

Release files / magic_agents-0.1.0.tar.gz

Download URL magic_agents-0.1.0.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
bd8db6f619bd3ed8d7038e3c71c939ffd7eb758d3574589607cac782108e7d4a
BLAKE2b-256 checksum
How to use checksums
ce4490ef35f22b5bc752806fd231eedca23478f2b50d8d7d463400caa95a4ccd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Release files / magic_agents-0.1.0-py3-none-any.whl

Download URL magic_agents-0.1.0-py3-none-any.whl
Size 3.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c363e50cbb32588c66490e09db260f176db94334d1062329cd2b5d3f0e1c71a6
BLAKE2b-256 checksum
How to use checksums
e006e6c4d2bd57ca65c5597c93e373e31691a3a74b812b4869c1cbe0cd1a17e9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.10.12

Security for magic-agents 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page