refactor: 重构 Agent 模块为 AgentScope,删除旧版 CrewAI/LiteLLM 实现

This commit is contained in:
qzl
2026-03-11 20:51:56 +08:00
parent 177ed616bf
commit 145e3dc615
149 changed files with 5120 additions and 11356 deletions
@@ -12,6 +12,7 @@ from core.db.base import Base, TimestampMixin
class SubscriptionStatus(str, Enum):
ACTIVE = "active"
PENDING = "pending"
PAUSED = "paused"
UNSUBSCRIBED = "unsubscribed"
@@ -22,6 +23,13 @@ class NotifyLevel(str, Enum):
NONE = "none"
class SubscriptionPermission(int, Enum):
VIEW = 1 # 001 - 可查看
INVITE = 2 # 010 - 可邀请
EDIT = 4 # 100 - 可编辑
OWNER = 7 # 111 - 所有者(VIEW + INVITE + EDIT
class ScheduleSubscription(TimestampMixin, Base):
__tablename__: str = "schedule_subscriptions"
__table_args__ = {"extend_existing": True}