知识库
获取知识库列表
Changed on获取当前空间的所有知识库;或当传入 agent_id(共享智能体)时,校验权限后返回该智能体配置的知识库范围(用于 @ 提及)
get/knowledge-bases
Request
- Base URL/api/v1 (relative, and the document was published on a file host, not at the API’s origin)
- URL/api/v1/knowledge-bases
- Auth
- API key in header Authorization
- or API key in header X-API-Key
Query parameters
agent_idstring
共享智能体 ID(传入时返回该智能体可用的知识库)
creator'mine' | 'others'
按创建者过滤,仅 mine 与 others 生效
Response
知识库列表
Example response
{
"success": true
}Changes
- info
added the new optional
queryrequest parametercreator - info
added the non-success response with the status
- info
- info
added the new optional
queryrequest parameteragent_id
- info