{
  "$schema": "https://www.ai-dc.ai/developer/schemas/aidc-ui.schema.json",
  "aidcUi": "1.0",
  "title": "智能体运行台",
  "body": [
    {
      "type": "PageHeader",
      "title": "智能体运行台",
      "description": "今天 9 个数字员工跑了 126 个任务。",
      "actions": [
        {
          "label": "新任务",
          "name": "run.create"
        }
      ]
    },
    {
      "type": "Stats",
      "items": [
        {
          "label": "今天完成",
          "value": 118,
          "delta": "+12",
          "tone": "good",
          "hint": "比昨天"
        },
        {
          "label": "进行中",
          "value": 5
        },
        {
          "label": "等人确认",
          "value": 2,
          "hint": "平均等 18 分钟"
        },
        {
          "label": "失败",
          "value": 1,
          "tone": "bad",
          "hint": "已重试 2 次"
        }
      ]
    },
    {
      "type": "Grid",
      "children": [
        {
          "type": "Card",
          "title": "正在跑",
          "children": [
            {
              "type": "List",
              "items": [
                {
                  "title": "比价：涤纶长丝 3 家供应商",
                  "subtitle": "第 4 步 / 共 4 步",
                  "who": {
                    "name": "采购智能体",
                    "kind": "agent"
                  },
                  "badge": {
                    "text": "等你确认",
                    "tone": "signal"
                  },
                  "actions": [
                    {
                      "label": "去确认",
                      "name": "run.open",
                      "payload": {
                        "id": "R-88"
                      }
                    }
                  ]
                },
                {
                  "title": "核对 9 月进项发票",
                  "subtitle": "第 3 步 / 共 5 步 · 已核 412 张",
                  "who": {
                    "name": "财务智能体",
                    "kind": "agent"
                  },
                  "badge": {
                    "text": "进行中",
                    "tone": "neutral"
                  }
                },
                {
                  "title": "整理产销周会纪要",
                  "subtitle": "第 2 步 / 共 3 步",
                  "who": {
                    "name": "会议智能体",
                    "kind": "agent"
                  },
                  "badge": {
                    "text": "进行中",
                    "tone": "neutral"
                  }
                },
                {
                  "title": "同步 ERP 订单",
                  "subtitle": "ERP 接口超时，已重试 2 次",
                  "who": {
                    "name": "数据智能体",
                    "kind": "agent"
                  },
                  "badge": {
                    "text": "失败",
                    "tone": "bad"
                  },
                  "actions": [
                    {
                      "label": "看原因",
                      "name": "run.open",
                      "payload": {
                        "id": "R-86"
                      }
                    }
                  ]
                }
              ]
            }
          ]
        },
        {
          "type": "Card",
          "title": "选中：比价 涤纶长丝",
          "children": [
            {
              "type": "Timeline",
              "items": [
                {
                  "time": "09:02",
                  "title": "读需求：20 吨，10-20 前到货",
                  "who": {
                    "name": "采购智能体",
                    "kind": "agent"
                  },
                  "tone": "good"
                },
                {
                  "time": "09:03",
                  "title": "向 3 家供应商询价",
                  "tone": "good"
                },
                {
                  "time": "09:41",
                  "title": "收到 3 份报价，最低 ¥12,400 / 吨",
                  "tone": "good"
                },
                {
                  "time": "09:42",
                  "title": "金额超过授权，等你确认",
                  "tone": "signal"
                }
              ]
            }
          ]
        }
      ]
    },
    {
      "type": "Grid",
      "children": [
        {
          "type": "Card",
          "title": "对话",
          "children": [
            {
              "type": "Message",
              "role": "user",
              "text": "比价结果怎么样？"
            },
            {
              "type": "Message",
              "role": "agent",
              "name": "采购智能体",
              "text": "3 家里 Demo 供应商甲最低：¥12,400 / 吨，10-18 到货。比上次中标价高 3%，原因是原料涨价。要我按这家下单吗？"
            }
          ]
        },
        {
          "type": "Proposal",
          "kind": "等你确认",
          "title": "向 Demo 供应商甲下单 20 吨涤纶长丝",
          "items": [
            {
              "label": "金额",
              "value": "¥248,000"
            },
            {
              "label": "到货",
              "value": "10-18"
            },
            {
              "label": "依据",
              "value": "3 家比价最低"
            }
          ],
          "confirm": {
            "label": "确认下单",
            "name": "run.confirm",
            "payload": {
              "id": "R-88"
            }
          },
          "cancel": {
            "label": "再比一家",
            "name": "run.retry",
            "payload": {
              "id": "R-88"
            }
          }
        }
      ]
    },
    {
      "type": "AskBar",
      "name": "run.ask",
      "placeholder": "给智能体派个任务…",
      "voice": true
    }
  ]
}
