后端拆分风险规则生成为解释器、语义分析、本体对齐等子模块, 优化模板执行和流程图生成,完善员工种子数据和导入逻辑,增强 报销单权限策略和草稿持久化,前端新增预算中心视图和趋势图 组件,重构审计页面和风险规则测试对话框交互,完善文档中心 和报销创建页面细节,补充单元测试覆盖。
73 lines
1.3 KiB
Python
73 lines
1.3 KiB
Python
from __future__ import annotations
|
|
|
|
from enum import StrEnum
|
|
|
|
|
|
class AgentAssetType(StrEnum):
|
|
RULE = "rule"
|
|
SKILL = "skill"
|
|
MCP = "mcp"
|
|
TASK = "task"
|
|
|
|
|
|
class AgentAssetStatus(StrEnum):
|
|
GENERATING = "generating"
|
|
DRAFT = "draft"
|
|
REVIEW = "review"
|
|
ACTIVE = "active"
|
|
DISABLED = "disabled"
|
|
FAILED = "failed"
|
|
|
|
|
|
class AgentReviewStatus(StrEnum):
|
|
PENDING = "pending"
|
|
APPROVED = "approved"
|
|
REJECTED = "rejected"
|
|
|
|
|
|
class AgentName(StrEnum):
|
|
ORCHESTRATOR = "orchestrator"
|
|
USER_AGENT = "user_agent"
|
|
HERMES = "hermes"
|
|
|
|
|
|
class AgentRunSource(StrEnum):
|
|
USER_MESSAGE = "user_message"
|
|
SCHEDULE = "schedule"
|
|
SYSTEM_EVENT = "system_event"
|
|
|
|
|
|
class AgentPermissionLevel(StrEnum):
|
|
READ = "read"
|
|
DRAFT_WRITE = "draft_write"
|
|
APPROVAL_REQUIRED = "approval_required"
|
|
FORBIDDEN = "forbidden"
|
|
|
|
|
|
class AgentAssetContentType(StrEnum):
|
|
MARKDOWN = "markdown"
|
|
JSON = "json"
|
|
|
|
|
|
class AgentRunStatus(StrEnum):
|
|
RUNNING = "running"
|
|
SUCCEEDED = "succeeded"
|
|
FAILED = "failed"
|
|
BLOCKED = "blocked"
|
|
|
|
|
|
class AgentToolType(StrEnum):
|
|
MCP = "mcp"
|
|
DATABASE = "database"
|
|
LLM = "llm"
|
|
OCR = "ocr"
|
|
RULE_ENGINE = "rule_engine"
|
|
|
|
|
|
class AgentAssetDomain(StrEnum):
|
|
EXPENSE = "expense"
|
|
AR = "ar"
|
|
AP = "ap"
|
|
KNOWLEDGE = "knowledge"
|
|
SYSTEM = "system"
|