You need to enable JavaScript to run this app.
文档中心
数据智能体 DataAgent(私有化)

数据智能体 DataAgent(私有化)

复制全文
下载 pdf
数据问答
智能体知识相关
复制全文
下载 pdf
智能体知识相关

添加知识
  • 请求POST {domain}/dataAgent/llm/openApi/v2/deepresearch/docKnowledge

参数

类型

必填

说明

agentId

number

智能体 ID。

name

string

知识名(智能体下不可重复)。

docSource

string

lark 飞书文档/表格/多维表格;local 本地文件。

larkUrl

string

飞书文档 URL(docSource=lark 时)。

imageExtraction

bool

是否提取图片。

markSceneType

int

0=自动分类;1=自定义分类。

applyScene

List[string]

deep_research / knowledge_qa,默认深度研究。

updateFrequency

string

day=每日更新;不传=不更新。

curl 'https://{domain}/dataAgent/llm/openApi/v2/deepresearch/docKnowledge' \
  --header 'Authorization: Bearer <jwt>' \
  --header 'Content-Type: application/json' \
  --data-raw '{"name":"销售知识","docSource":"lark","larkUrl":"https://bytedance.larkoffice.com/wiki/Bs0t...","imageExtraction":false,"markSceneType":0,"applyScene":["knowledge_qa"],"updateFrequency":"day","agentId":22834}'
  • 返回
{ "code": "llm/ok", "data": { "filename": "...", "id": 18701 }, "msg": {} }

删除知识
  • 请求DELETE {domain}/dataAgent/llm/openApi/v2/deepresearch/docKnowledge

参数

类型

必填

说明

id

number

知识 ID。

curl 'https://{domain}/dataAgent/llm/openApi/v2/deepresearch/docKnowledge' \
  -X 'DELETE' \
  --header 'Authorization: Bearer <jwt>' \
  --header 'X-request-id: <uuid>' \
  --header 'Content-Type: application/json' \
  --data-raw '{"id":15877}'

更新知识
  • 请求PUT {domain}/dataAgent/llm/openApi/v2/deepresearch/docKnowledge
  • 参数同「添加知识」,另需 id(知识 ID)和可选 needReparseDocScene
curl 'https://{domain}/dataAgent/llm/openApi/v2/deepresearch/docKnowledge' \
  -X 'PUT' \
  -H 'content-type: application/json' \
  --header 'Authorization: Bearer <jwt>' \
  --data-raw '{"name":"销售知识v2","docSource":"lark","larkUrl":"https://...","imageExtraction":false,"markSceneType":0,"updateFrequency":"None","id":15877,"needReparseDocScene":false}'

读取智能体列表
  • 请求GET {domain}/dataAgent/llm/openApi/v2/signed/agent/getAgentList

参数

类型

必填

默认

说明

kw

string

关键字。

page

number

1

页码。

perPage

number

16

分页大小。

curl -X GET 'https://{domain}/dataAgent/llm/openApi/v2/signed/agent/getAgentList' \
  -H 'Authorization: Bearer <jwt>'
最近更新时间:2026.05.22 16:22:12
这个页面对您有帮助吗?
有用
有用
无用
无用