Files
pixel/backend/服务架构图.md
张鹏 f9f4560459 Initial commit: Pixel AI comic/video creation platform
- FastAPI backend with SQLModel, Alembic migrations, AgentScope agents
- Next.js 15 frontend with React 19, Tailwind, Zustand, React Flow
- Multi-provider AI system (DashScope, Kling, MiniMax, Volcengine, OpenAI, etc.)
- All HTTP clients migrated from sync requests to async httpx
- Admin-managed API keys via environment variables
- SSRF vulnerability fixed in ensure_url()
2026-04-29 01:20:12 +08:00

50 lines
3.1 KiB
Markdown
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 服务架构图
## 概览
```
┌─────────────────────────────────────────────────────────────────────┐
│ API 控制器 │
│ (src/controllers/projects.py, skills.py, generations/script.py) │
└────────────────┬────────────────────────────────┬───────────────────┘
│ │
▼ ▼
┌────────────────────────┐ ┌────────────────────────┐
│ script_service │ │ AgentScopeService │
│ (script/service.py) │ │ (agents/service.py) │
└────────────┬───────────┘ └────────────┬───────────┘
│ │
▼ ▼
┌────────────────────────┐ ┌────────────────────────┐
│ ScriptAnalysisPipeline │ │ AgentsToolkit │
│ (script/pipeline.py) │ │ (agents/toolkit_mgr) │
└────────────────────────┘ └────────────┬───────────┘
┌────────────────────────┐
│ 技能共10个
│ - general/ (3个) │
│ - film_production/ (7)│
└────────────────────────┘
```
## 服务对比矩阵
| 特性 | script_service | script_agent | agents |
|---------|---------------|--------------|--------|
| **用途** | 小说分析 | 影视制作 | 通用智能体 |
| **架构** | Map-Reduce | 多智能体 | Toolkit + Skills |
| **速度** | ⚡⚡⚡ 快 | 🐌 慢 | ⚡⚡ 中等 |
| **输出质量** | ⭐⭐ 良好 | ⭐⭐⭐ 优秀 | ⭐⭐ 良好 |
| **复杂度** | 低 | 高 | 中等 |
| **Token 使用** | 中等 | 高 | 低(按需) |
| **生产使用** | ✅ 是 | ❌ 否(仅测试) | ✅ 是 |
| **AgentScope** | ❌ 否 | ✅ 是(官方) | ✅ 是(官方) |
| **技能** | 无 | 7个影视 | 10个通用+影视) |
| **智能体** | 通用 | 9个专业 | 可配置 |
---
**最后更新**: 2026-02-09
**状态**: 当前架构已记录 ✅