IntentList - 查看意图列表
更新时间:2025-12-26
API访问域名
| 请求方式 | GET |
|---|---|
| base url | https://keyue.cloud.baidu.com |
| 后缀接口 | /open/v1/api/v3/intent/list |
| Authentication | token为API Key |
说明
无
请求参数
Header参数
| 名称 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|
| Content-Type | string | 是 | 内容类型 | 固定值:application/json |
| token | string | 是 | API KEY | 机器人API KEY。 详细获取方式参考:准备工作 |
| uid | string | 是 | 用户ID | 详细获取方式参考:准备工作 |
| username | string | 是 | 用户名 | 详细获取方式参考:准备工作 |
Parameter参数
| 名称 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|
| nameZh | string | 否 | 意图名称 | 根据意图名称模糊查询 |
Body参数
无
响应参数
| 名称 | 类型 | 必填 | 中文名 | 说明 |
|---|---|---|---|---|
| time | integer | 是 | 时间 | 1717036810964 |
| data | object | 是 | 数据 | 数据对象 ,详见data子数据 |
| code | integer | 是 | 状态码 | 200 |
| msg | string | 是 | 状态信息 | OK |
data子数据
| 名称 | 类型 | 必填 | 中文名 | 说明 |
|---|---|---|---|---|
| list | array | 是 | 列表 | 列表,详见list子数据 |
list子数据
| 名称 | 类型 | 必填 | 中文名 | 说明 |
|---|---|---|---|---|
| id | string | 是 | ID | 【用户意图】:6f4b1206-bdf6-42e0-94a8-bb57d2a5a4e6 【系统意图】:sys_intent_xxx |
| name | string | 是 | 意图英文名称 | |
| nameZh | string | 是 | 意图名称 | |
| description | string | 是 | 意图描述 | |
| type | int | 是 | 意图类型 | 1 :系统意图 0:用户意图 |
| updated | string | 是 | 更新时间 | 2024-06-12 17:37:24 |
| intro | string | 是 | 系统意图示例 | 类似这些对话会被识别为该意图,以“\x01”分割 |
| version | int | 是 | 当前版本号 | 1 |
| examples | array | 是 | 意图示例对象 | 详见examples子数据 |
| noResps | array | 是 | 意图负向示例集合 | 详见noResps子数据 |
| templates | array | 是 | 意图模板结合 | 详见templates子数据 |
examples子数据
| 名称 | 类型 | 必填 | 中文名 | 说明 |
|---|---|---|---|---|
| id | string | 是 | 意图示例ID | e3180789-42ad-4c74-9ea0-6a4421eb3810 |
| exampleValue | array | 是 | 意图示例对象 | 详见exampleValue子数据 |
| created | string | 否 | 意图示例创建时间 | 2024-05-30 10:37:08 |
| updated | string | 否 | 意图示例更新时间 | 2024-05-30 10:37:08 |
noResps子数据
| 名称 | 类型 | 必填 | 中文名 | 说明 |
|---|---|---|---|---|
| id | string | 是 | 意图负向示例ID | 299e0271-e669-4eac-a540-5b7e69eda1d5 |
| value | string | 是 | 意图负向示例文本 | 创建负向示例 |
| created | string | 是 | 意图负向示例创建时间 | 2024-05-30 10:37:08 |
| updated | string | 是 | 意图负向示例更新时间 | 2024-05-30 10:37:08 |
templates子数据
| 名称 | 类型 | 必填 | 中文名 | 说明 |
|---|---|---|---|---|
| id | string | 是 | 意图模板ID | 299e0271-e669-4eac-a540-5b7e69eda1d5 |
| template | array | 是 | 详见template子数据 | |
| updated | string | 是 | 意图负向示例更新时间 | 2024-05-30 10:37:08 |
exampleValue子数据
| 名称 | 类型 | 必填 | 中文名 | 说明 |
|---|---|---|---|---|
| text | string | 是 | 意图例句文本 | 创建意图例句 |
| id | string | 否 | 意图例句ID | null |
| name | string | 否 | 意图例句英文名称 | null |
| nameZh | string | 否 | 意图例句名称 | null |
| type | string | 否 | null |
template子数据
| 名称 | 类型 | 必填 | 中文名 | 说明 |
|---|---|---|---|---|
| text | string | 是 | 模板文本类型 | 非实体、专业词的文本 |
| id | string | 是 | 专业词库ID/实体ID | 专业词库:5ce5ab19-c6c6-4cb6-a6e3-f6b3cb5c82b5 实体:p2400677 |
| name | string | 是 | 专业词库名称/实体标识 | 实体:p2400677 词库:磁力 |
| nameZh | string | 是 | 实体名称 | 实体:手机号码 |
| type | string | 是 | 模板引用类型: | entity:实体 voca:词库 |
请求示例
Bash
1curl --location --request GET 'https://keyue.cloud.baidu.com/open/v1/api/v3/intent/list?nameZh=' \
2--header 'token: xxxx' \
3--header 'uid: xxxx' \
4--header 'username: xxxx' \
响应示例
1{
2 "time": 1719471243123,
3 "data": {
4 "list": [
5 {
6 "id": "c862eb72-344a-11ef-b06c-ae336b87017b",
7 "name": "gf41c0c2",
8 "nameZh": "创建意图",
9 "description": "",
10 "type": 0,
11 "updated": "2024-06-27 14:33:15",
12 "intro": "",
13 "version": 4,
14 "examples": [
15 {
16 "id": "e3180789-42ad-4c74-9ea0-6a4421eb3810",
17 "exampleValue": [
18 {
19 "text": "创建意图示例",
20 "id": null,
21 "name": null,
22 "nameZh": null,
23 "type": null
24 }
25 ],
26 "created": "2024-06-27 14:23:31",
27 "updated": "2024-06-27 14:23:31"
28 }
29 ],
30 "noResps": [
31 {
32 "id": "8becb5b2-4c15-4052-b883-cf41acd6f3f9",
33 "value": "负向示例1",
34 "created": "2024-06-27 14:28:17",
35 "updated": "2024-06-27 14:28:17"
36 }
37 ],
38 "templates": [
39 {
40 "id": "83a3d617-8694-4d22-9bd9-128f8d455162",
41 "template": [
42 {
43 "text": "[",
44 "id": null,
45 "name": null,
46 "nameZh": null,
47 "type": null
48 },
49 {
50 "text": "w7__4_i3_",
51 "id": "5ce5ab19-c6c6-4cb6-a6e3-f6b3cb5c82b5",
52 "name": "磁力",
53 "nameZh": null,
54 "type": "voca"
55 },
56 {
57 "text": "]",
58 "id": null,
59 "name": null,
60 "nameZh": null,
61 "type": null
62 }
63 ],
64 "updated": "2024-06-27 14:33:16"
65 },
66 {
67 "id": "9fbd1c37-eeda-4e2b-8a1a-22285c6a6391",
68 "template": [
69 {
70 "text": "[",
71 "id": null,
72 "name": null,
73 "nameZh": null,
74 "type": null
75 },
76 {
77 "text": "p2400677",
78 "id": "p2400677",
79 "name": "p2400677",
80 "nameZh": "手机号码",
81 "type": "entity"
82 },
83 {
84 "text": "]",
85 "id": null,
86 "name": null,
87 "nameZh": null,
88 "type": null
89 }
90 ],
91 "updated": "2024-06-27 14:33:15"
92 },
93 {
94 "id": "96735ca4-370a-4b0a-9925-f882a2d8857d",
95 "template": [
96 {
97 "text": "模板",
98 "id": null,
99 "name": null,
100 "nameZh": null,
101 "type": null
102 }
103 ],
104 "updated": "2024-06-27 14:28:17"
105 }
106 ]
107 }
108 ]
109 },
110 "code": 200,
111 "msg": "OK"
112}
1
