architecture.mmd 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. graph TD
  2. User[用户 (Browser)]
  3. subgraph Frontend [前端 (Vue 3 + Vite)]
  4. UI[界面组件 (Ant Design Vue)]
  5. Store[状态管理 (Pinia)]
  6. WS_Client[WebSocket 客户端]
  7. end
  8. subgraph Backend [后端 (FastAPI)]
  9. API[API 网关 / 路由]
  10. Auth[认证与权限 (OAuth2/JWT)]
  11. subgraph Services [核心服务层]
  12. Scheduler[论坛调度器 (ForumScheduler)]
  13. GodAgent[角色生成 (God Agent)]
  14. Moderator[主持人代理]
  15. Participant[嘉宾代理]
  16. end
  17. WS_Server[WebSocket 服务端]
  18. Agent_Runtime[HelloAgents Runtime]
  19. end
  20. subgraph Data [数据层]
  21. SQLite[(SQLite/PostgreSQL)]
  22. Redis[(Redis 缓存/消息队列)]
  23. end
  24. subgraph External [外部服务]
  25. StepFun[StepFun step-3.7-flash]
  26. StepSearch[StepSearch MCP]
  27. end
  28. User <-->|HTTP/WebSocket| Frontend
  29. Frontend <-->|REST API| API
  30. Frontend <-->|WebSocket| WS_Server
  31. API --> Services
  32. WS_Server <--> Scheduler
  33. Scheduler --> Agent_Runtime
  34. GodAgent --> Agent_Runtime
  35. GodAgent --> StepSearch
  36. Agent_Runtime --> StepFun
  37. Services --> SQLite
  38. Services --> Redis
  39. classDef box fill:#f9f,stroke:#333,stroke-width:2px;
  40. class Frontend,Backend,Data,External box;