SuperAPI AI 工具集

iblai-agent-disclaimers

智能体与模型

查看项目

更新于 10-15 22:16

技能介绍

用途:通过 ibl.ai 平台 API 管理智能体的免责声明,包括 Advisory 提示文本(保存在智能体 settings/ 的 disclaimer 字段)和用户协议(User Agreement,拥有独立的创建、更新、激活生命周期)。适用于需要向用户展示法律或提示性声明、或要求用户接受的场景。

认证与约定:基础地址为 https://api.iblai.app;每个请求需带请求头 Authorization: Api-Token $IBLAI_API_KEY。路径变量中 {org} 对应 $IBLAI_ORG,{username} 对应 $IBLAI_USERNAME,{mentor} 为智能体唯一 id。若尚未连接,先运行 /iblai-login 以填充 IBLAI_ORG、IBLAI_USERNAME 和 IBLAI_API_KEY。

读取:GET …/mentors/{mentor}/settings/ 可读取 Advisory 文本(位于 disclaimer 字段);GET …/disclaimers/?mentor_id={mentor}&scope=mentor 可列出用户协议,results[0] 为当前生效协议。

写入:PUT …/mentors/{mentor}/settings/ 保存 Advisory 文本,请求体仅含 {"disclaimer": "string"};POST …/disclaimers/ 创建用户协议,字段包括 content(必填)、mentors、scope、active;PATCH …/disclaimers/{id}/ 可更新 content 或切换 active。

限制与注意:Advisory 只是 settings/ 上的一个字段,PUT 时只发送该键,其他设置保持不变;用户协议是需用户单独接受的对象,每个智能体应仅激活一个(active: true),其余用 PATCH active: false 停用;列表接口需用 mentor_id 加 scope=mentor 过滤,当前协议为 results 第一项。资料未提供更多收费、平台或效果信息。