用途:通过 ibl.ai 平台 API 读取某个智能体(mentor)的审计日志,即谁对智能体做了什么变更的记录,用于排查配置变更。该技能为只读,不暴露任何创建、更新、删除端点。
主要能力:审计条目可按 action(操作代码)、actor_email(操作者邮箱)、from_date / to_date(ISO 日期,如 2026-06-12)过滤,并用 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-api-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"。
适用场景:调查智能体的配置变更,按操作者或时间窗口定位变更记录。
限制:只读,不能修改状态;资料未提供返回字段结构、速率限制、错误码与权限要求等细节。