用途:读取 ibl.ai 智能体的审计日志,即“谁改了什么”的变更记录,用于排查智能体的配置变更。该技能为只读,不提供创建、更新或删除接口。
主要能力:通过 API 获取审计条目,支持按操作代码(action)、操作者邮箱(actor_email)和日期范围(from_date、to_date)筛选,并可用 limit 与 offset 分页,示例默认每页 20 条。
使用方式:基础地址为 https://api.iblai.app,每个请求需带请求头 Authorization: Api-Token $IBLAI_API_KEY。路径变量中 {org} 对应 $IBLAI_ORG,{username} 对应 $IBLAI_USERNAME,{mentor} 为智能体唯一 id(如 d17dc729-60fd-4363-81a0-f67d9318b03e)。若尚未连接,先运行 /iblai-login 以填充 IBLAI_ORG、IBLAI_USERNAME 和 IBLAI_API_KEY。读取端点:GET https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/users/{username}/mentors/audit-logs/?limit=20&offset={n}&mentor={mentor}&action={code}&actor_email={e}&from_date={d}&to_date={d}。
示例:curl -s "https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mentors/audit-logs/?limit=20&offset=0&mentor=$MENTOR&actor_email=jane@example.com&from_date=2026-01-01&to_date=2026-06-12" -H "Authorization: Api-Token $IBLAI_API_KEY"。
限制:action、actor_email、from_date、to_date 均为可选筛选,可省略;日期使用 ISO 格式(如 2026-06-12)。该技能只读,查询审计轨迹不会改变智能体状态。其他细节暂未提供。