SuperAPI AI 工具集

iblai-agent-tools

智能体与模型

查看项目

更新于 10-16 05:55

技能介绍

用途:通过 ibl.ai 平台 API 启用或禁用某个智能体的工具,包括列出该智能体可切换的工具、读取当前已启用的工具 slug,以及把启用集合写回智能体设置。适用于需要控制智能体可使用哪些工具的场景。

认证与约定:基础地址为 https://api.iblai.app;每个请求都需带请求头 Authorization: Api-Token $IBLAI_API_KEY。路径变量中 {org} 对应 $IBLAI_ORG,{username} 对应 $IBLAI_USERNAME,{mentor} 为智能体唯一 id(例如 d17dc729-60fd-4363-81a0-f67d9318b03e)。工具写入通过智能体设置端点 PUT …/mentors/{mentor}/settings/ 发送工具 slug 集合。若尚未连接,先运行 /iblai-login 以填充 IBLAI_ORG、IBLAI_USERNAME 和 IBLAI_API_KEY。

读取:GET https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/users/{username}/mentors/{mentor}/available-tools/ 获取可切换工具;GET https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/mentors/{mentor}/settings/ 获取当前已启用的工具 slug。

写入:PUT https://api.iblai.app/dm/api/ai-mentor/orgs/{org}/mentors/{mentor}/settings/,请求体包含 tool_slugs(字符串数组)与 can_use_tools(布尔值)。示例:curl -X PUT "https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/mentors/$MENTOR/settings/" -H "Authorization: Api-Token $IBLAI_API_KEY" -H "Content-Type: application/json" -d '{"tool_slugs": ["web_search", "calculator"], "can_use_tools": true}'。

限制与注意:tool_slugs 表示完整的启用集合,未包含在数组中的 slug 会被禁用;写入前应先从 available-tools/ 端点获取有效 slug;将 can_use_tools 设为 false 可完全关闭工具而不清空 slug 集合。其他功能、收费与平台支持情况暂未提供。