Skip to main content

sequenceDiagram title 数据权限智能Agent - 接口交互时序图 actor User as 用户 participant Agent as Agent Controller participant Meta as Metadata Service participant LLM as LLM Service participant Perm as Permission Service (MCP/API) participant Apply as Apply Permission Service (MCP/API) User->>Agent: 输入 "2024年手机销量数据" Agent->>Meta: 获取元数据资产列表(JSON/标签) Meta-->>Agent: 返回元数据JSON Agent->>LLM: 解析需求 + 元数据上下文 LLM-->>Agent: 返回所需数据资产列表 Agent->>Perm: 查询用户已有权限(user_id) Perm-->>Agent: 返回权限列表 Agent->>Agent: 对比所需数据资产和已有权限 Agent-->>User: 提示缺失权限清单 Agent->>Apply: 提交缺失权限申请 Apply-->>Agent: 返回申请结果/申请ID Agent-->>User: 确认申请已提交,等待审批/直接可用

  1. sequenceDiagram
    title 数据权限智能Agent - 接口交互时序图

    actor User as 用户
    participant Agent as Agent Controller
    participant Meta as Metadata Service
    participant LLM as LLM Service
    participant Perm as Permission Service (MCP/API)
    participant Apply as Apply Permission Service (MCP/API)

    User->>Agent: 输入 "2024年手机销量数据"

    Agent->>Meta: 获取元数据资产列表(JSON/标签)
    Meta-->>Agent: 返回元数据JSON

    Agent->>LLM: 解析需求 + 元数据上下文
    LLM-->>Agent: 返回所需数据资产列表

    Agent->>Perm: 查询用户已有权限(user_id)
    Perm-->>Agent: 返回权限列表

    Agent->>Agent: 对比所需数据资产和已有权限
    Agent-->>User: 提示缺失权限清单

    Agent->>Apply: 提交缺失权限申请
    Apply-->>Agent: 返回申请结果/申请ID

    Agent-->>User: 确认申请已提交,等待审批/直接可用