智能体
部分更新智能体
Changed on只修改请求中出现的字段,其余配置保持不变。 支持名称、描述、运行模式、系统提示词、对话模型、知识库、MCP、技能范围、联网搜索、多轮对话。 agent_mode 取 quick-answer 或 smart-reasoning。MCP 与技能只在 smart-reasoning 下运行,切到该模式会打开多轮对话。 传 knowledge_bases、mcp_services 或 selected_skills 而不传对应模式时,切换为 selected。 技能模式 all/none 清空技能列表;启用技能须先在编辑器选择沙箱,selected 名称须可用,否则返回 400。
patch/agents/{id}
Request
- Base URL/api/v1 (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/v1/agents/{id}
- Auth
- API key in header Authorization
- or API key in header X-API-Key
Path parameters
idstring required
智能体ID
Request body
Response
更新后的智能体
Example response
{
"success": true
}Changes
- info
endpoint added
- info