union-app-chat-stream 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,305 +1,377 @@
1
1
  tools:
2
- - name: "knowledge_search"
3
- display_name: "查询联合运维知识库"
4
- description: "根据完整、独立的检索问题查询联合运维知识库,返回制度规范、场景说明、操作说明、关联能力提示和来源。多轮追问时必须结合历史上下文改写 query,不能只传“第7点”“继续解释”“刚才那个”等省略表达。知识库里的关联函数只作为推荐能力提示,真正可执行工具以当前 tool definitions 为准。"
5
- trigger: "当用户询问联合运维规范、机制说明、业务场景、操作方法、名词解释、知识依据,或需要解释上一轮回答中的某一点时调用。"
6
- input_schema:
7
- type: "object"
8
- properties:
9
- query:
10
- type: "string"
11
- description: "完整、独立的知识库检索问题。多轮追问时应结合历史回答补全指代,例如将“解释第7点”改写为“解释上一轮回答中第7项‘联合运维机制说明’”。"
12
- topK:
13
- type: "integer"
14
- description: "可选,返回知识片段数量。"
15
- required: ["query"]
16
- output_schema:
17
- type: "object"
18
- description: "知识库检索结果。"
19
- properties:
20
- query:
21
- type: "string"
22
- description: "实际用于检索的完整问题。"
23
- context:
24
- type: "string"
25
- description: "拼接后的知识库证据上下文。"
26
- sources:
27
- type: "array"
28
- description: "命中的知识来源列表。"
29
- related_tools:
30
- type: "array"
31
- description: "知识库提示的关联工具名称,仅作为路由参考,是否可执行以当前 tool definitions 为准。"
32
- backend:
33
- service: "rag_service"
34
- method: "knowledge_search"
35
- description: "查询联合运维知识库"
2
+ - name: knowledge_search
3
+ display_name: 查询联合运维知识库
4
+ description: 根据完整、独立的检索问题查询联合运维知识库,返回制度规范、场景说明、操作说明、关联能力提示和来源。多轮追问时必须结合历史上下文改写 query,不能只传“第7点”“继续解释”“刚才那个”等省略表达。知识库里的关联函数只作为推荐能力提示,真正可执行工具以当前
5
+ tool definitions 为准。
6
+ trigger: 当用户询问联合运维规范、机制说明、业务场景、操作方法、名词解释、知识依据,或需要解释上一轮回答中的某一点时调用。
7
+ input_schema:
8
+ type: object
9
+ properties:
10
+ query:
11
+ type: string
12
+ description: 完整、独立的知识库检索问题。多轮追问时应结合历史回答补全指代,例如将“解释第7点”改写为“解释上一轮回答中第7项‘联合运维机制说明’”。
13
+ topK:
14
+ type: integer
15
+ description: 可选,返回知识片段数量。
16
+ required:
17
+ - query
18
+ output_schema:
19
+ type: object
20
+ description: 知识库检索结果。
21
+ properties:
22
+ query:
23
+ type: string
24
+ description: 实际用于检索的完整问题。
25
+ context:
26
+ type: string
27
+ description: 拼接后的知识库证据上下文。
28
+ sources:
29
+ type: array
30
+ description: 命中的知识来源列表。
31
+ related_tools:
32
+ type: array
33
+ description: 知识库提示的关联工具名称,仅作为路由参考,是否可执行以当前 tool definitions 为准。
34
+ backend:
35
+ service: rag_service
36
+ method: knowledge_search
37
+ description: 查询联合运维知识库
38
+ params:
39
+ query: '{query}'
40
+ topK: '{topK}'
41
+ - name: resolve_member_org
42
+ display_name: 识别成员机构
43
+ description: 根据用户输入的成员机构名称、简称或别名查询标准机构信息,获取后续工具所需的 orgCode。
44
+ trigger: 当用户问题中出现成员机构名称、简称或别名,但缺少明确 orgCode 时优先调用。
45
+ input_schema:
46
+ type: object
47
+ properties:
48
+ orgName:
49
+ type: string
50
+ description: 成员机构名称、简称或别名,例如中国银行、中行、BOC。
51
+ required:
52
+ - orgName
53
+ output_schema:
54
+ type: object
55
+ description: 匹配到的成员机构列表。
56
+ properties:
57
+ success:
58
+ type: boolean
59
+ description: 接口是否调用成功。
60
+ code:
61
+ type: integer
62
+ description: 接口状态码,200 表示成功。
63
+ message:
64
+ type: string
65
+ description: 接口返回消息。
66
+ data:
67
+ type: array
68
+ description: 匹配到的成员机构列表。
69
+ items:
70
+ type: object
71
+ properties:
72
+ orgCode:
73
+ type: string
74
+ description: 成员机构金融编码,后续运行、变更、故障查询使用。
75
+ orgName:
76
+ type: string
77
+ description: 标准成员机构名称。
78
+ aliases:
79
+ type: array
80
+ description: 常见简称或别名。
81
+ backend:
82
+ service: union_service
83
+ method: query_union
84
+ description: 识别成员机构
85
+ path: /api/getOrgInfo
86
+ params:
87
+ orgName: '{orgName}'
88
+ - name: query_member_runtime_metrics
89
+ display_name: 查询成员机构运行指标
90
+ description: 按成员机构和日期范围查询每日运行质量指标,包括系统成功率、平均耗时、交易笔数、失败笔数、失败率。
91
+ trigger: 当用户询问某家成员机构运行质量、运行表现、成功率、耗时、交易量、失败情况时调用。
92
+ input_schema:
93
+ type: object
94
+ properties:
95
+ orgCode:
96
+ type: string
97
+ description: 成员机构金融编码,通常由 resolve_member_org 工具获得。
98
+ startDate:
99
+ type: string
100
+ description: 开始日期,格式 yyyyMMdd,例如 20260513。
101
+ endDate:
102
+ type: string
103
+ description: 结束日期,格式 yyyyMMdd,例如 20260612。
104
+ required:
105
+ - orgCode
106
+ - startDate
107
+ - endDate
108
+ output_schema:
109
+ type: object
110
+ description: 成员机构每日运行指标列表。
111
+ properties:
112
+ success:
113
+ type: boolean
114
+ description: 接口是否调用成功。
115
+ code:
116
+ type: integer
117
+ description: 接口状态码,200 表示成功。
118
+ message:
119
+ type: string
120
+ description: 接口返回消息。
121
+ data:
122
+ type: array
123
+ description: 成员机构每日运行指标列表。
124
+ items:
125
+ type: object
126
+ properties:
127
+ statDate:
128
+ type: string
129
+ description: 统计日期,格式 yyyyMMdd。
130
+ orgCode:
131
+ type: string
132
+ description: 成员机构金融编码。
133
+ orgName:
134
+ type: string
135
+ description: 成员机构名称。
136
+ sysSuccessPercent:
137
+ type: string
138
+ description: 系统成功率,百分比字符串。
139
+ avgCostMs:
140
+ type: number
141
+ description: 平均处理耗时,单位毫秒。
142
+ totalTxnCnt:
143
+ type: integer
144
+ description: 交易总笔数。
145
+ failTxnCnt:
146
+ type: integer
147
+ description: 失败交易笔数。
148
+ failRate:
149
+ type: string
150
+ description: 失败率,百分比字符串。
151
+ backend:
152
+ service: union_service
153
+ method: query_union
154
+ description: 查询成员机构运行指标
155
+ path: /api/queryBigData
156
+ params:
157
+ interfaceName: runing_cnt.bank
36
158
  params:
37
- query: "{query}"
38
- topK: "{topK}"
39
-
40
- - name: "resolve_member_org"
41
- display_name: "识别成员机构"
42
- description: "根据用户输入的成员机构名称、简称或别名查询标准机构信息,获取后续工具所需的 orgCode。"
43
- trigger: "当用户问题中出现成员机构名称、简称或别名,但缺少明确 orgCode 时优先调用。"
44
- input_schema:
45
- type: "object"
46
- properties:
47
- orgName:
48
- type: "string"
49
- description: "成员机构名称、简称或别名,例如中国银行、中行、BOC"
50
- required: ["orgName"]
51
- output_schema:
52
- type: "array"
53
- description: "匹配到的成员机构列表。"
54
- items:
55
- type: "object"
56
- properties:
57
- orgCode:
58
- type: "string"
59
- description: "成员机构金融编码,后续运行、变更、故障查询使用。"
60
- orgName:
61
- type: "string"
62
- description: "标准成员机构名称。"
63
- aliases:
64
- type: "array"
65
- description: "常见简称或别名。"
66
- backend:
67
- service: "union_service"
68
- method: "query_union"
69
- description: "识别成员机构"
70
- path: "/api/getOrgInfo"
159
+ orgCode: '{orgCode}'
160
+ startDate: '{startDate}'
161
+ endDate: '{endDate}'
162
+ - name: query_full_link_runtime_metrics
163
+ display_name: 查询全链路运行指标
164
+ description: 按日期范围查询全链路每日运行质量指标,用于和单个成员机构运行表现进行对照。
165
+ trigger: 当用户询问全链路运行质量,或需要对某家成员机构运行表现做全链路基准对照时调用。
166
+ input_schema:
167
+ type: object
168
+ properties:
169
+ startDate:
170
+ type: string
171
+ description: 开始日期,格式 yyyyMMdd,例如 20260513
172
+ endDate:
173
+ type: string
174
+ description: 结束日期,格式 yyyyMMdd,例如 20260612。
175
+ required:
176
+ - startDate
177
+ - endDate
178
+ output_schema:
179
+ type: object
180
+ description: 全链路每日运行指标列表。
181
+ properties:
182
+ success:
183
+ type: boolean
184
+ description: 接口是否调用成功。
185
+ code:
186
+ type: integer
187
+ description: 接口状态码,200 表示成功。
188
+ message:
189
+ type: string
190
+ description: 接口返回消息。
191
+ data:
192
+ type: array
193
+ description: 全链路每日运行指标列表。
194
+ items:
195
+ type: object
196
+ properties:
197
+ statDate:
198
+ type: string
199
+ description: 统计日期,格式 yyyyMMdd。
200
+ sysSuccessPercent:
201
+ type: string
202
+ description: 全链路系统成功率,百分比字符串。
203
+ avgCostMs:
204
+ type: number
205
+ description: 全链路平均处理耗时,单位毫秒。
206
+ totalTxnCnt:
207
+ type: integer
208
+ description: 全链路交易总笔数。
209
+ failTxnCnt:
210
+ type: integer
211
+ description: 全链路失败交易笔数。
212
+ failRate:
213
+ type: string
214
+ description: 全链路失败率,百分比字符串。
215
+ backend:
216
+ service: union_service
217
+ method: query_union
218
+ description: 查询全链路运行指标
219
+ path: /api/queryBigData
220
+ params:
221
+ interfaceName: runing_cnt.full_link
71
222
  params:
72
- orgName: "{orgName}"
73
-
74
- - name: "query_member_runtime_metrics"
75
- display_name: "查询成员机构运行指标"
76
- description: "按成员机构和日期范围查询每日运行质量指标,包括系统成功率、平均耗时、交易笔数、失败笔数、失败率。"
77
- trigger: "当用户询问某家成员机构运行质量、运行表现、成功率、耗时、交易量、失败情况时调用。"
78
- input_schema:
79
- type: "object"
80
- properties:
81
- orgCode:
82
- type: "string"
83
- description: "成员机构金融编码,通常由 resolve_member_org 工具获得。"
84
- startDate:
85
- type: "string"
86
- description: "开始日期,格式 yyyyMMdd,例如 20260513"
87
- endDate:
88
- type: "string"
89
- description: "结束日期,格式 yyyyMMdd,例如 20260612"
90
- required: ["orgCode", "startDate", "endDate"]
91
- output_schema:
92
- type: "array"
93
- description: "成员机构每日运行指标列表。"
94
- items:
95
- type: "object"
96
- properties:
97
- statDate:
98
- type: "string"
99
- description: "统计日期,格式 yyyyMMdd。"
100
- orgCode:
101
- type: "string"
102
- description: "成员机构金融编码。"
103
- orgName:
104
- type: "string"
105
- description: "成员机构名称。"
106
- sysSuccessPercent:
107
- type: "string"
108
- description: "系统成功率,百分比字符串。"
109
- avgCostMs:
110
- type: "number"
111
- description: "平均处理耗时,单位毫秒。"
112
- totalTxnCnt:
113
- type: "integer"
114
- description: "交易总笔数。"
115
- failTxnCnt:
116
- type: "integer"
117
- description: "失败交易笔数。"
118
- failRate:
119
- type: "string"
120
- description: "失败率,百分比字符串。"
121
- backend:
122
- service: "union_service"
123
- method: "query_union"
124
- description: "查询成员机构运行指标"
125
- path: "/api/queryBigData"
126
- timeout: 300
127
- params:
128
- interfaceName: "runing_cnt.bank"
129
- params:
130
- orgCode: "{orgCode}"
131
- startDate: "{startDate}"
132
- endDate: "{endDate}"
133
-
134
- - name: "query_full_link_runtime_metrics"
135
- display_name: "查询全链路运行指标"
136
- description: "按日期范围查询全链路每日运行质量指标,用于和单个成员机构运行表现进行对照。"
137
- trigger: "当用户询问全链路运行质量,或需要对某家成员机构运行表现做全链路基准对照时调用。"
138
- input_schema:
139
- type: "object"
140
- properties:
141
- startDate:
142
- type: "string"
143
- description: "开始日期,格式 yyyyMMdd,例如 20260513。"
144
- endDate:
145
- type: "string"
146
- description: "结束日期,格式 yyyyMMdd,例如 20260612。"
147
- required: ["startDate", "endDate"]
148
- output_schema:
149
- type: "array"
150
- description: "全链路每日运行指标列表。"
151
- items:
152
- type: "object"
153
- properties:
154
- statDate:
155
- type: "string"
156
- description: "统计日期,格式 yyyyMMdd。"
157
- sysSuccessPercent:
158
- type: "string"
159
- description: "全链路系统成功率,百分比字符串。"
160
- avgCostMs:
161
- type: "number"
162
- description: "全链路平均处理耗时,单位毫秒。"
163
- totalTxnCnt:
164
- type: "integer"
165
- description: "全链路交易总笔数。"
166
- failTxnCnt:
167
- type: "integer"
168
- description: "全链路失败交易笔数。"
169
- failRate:
170
- type: "string"
171
- description: "全链路失败率,百分比字符串。"
172
- backend:
173
- service: "union_service"
174
- method: "query_union"
175
- description: "查询全链路运行指标"
176
- path: "/api/queryBigData"
177
- timeout: 300
178
- params:
179
- interfaceName: "runing_cnt.full_link"
180
- params:
181
- startDate: "{startDate}"
182
- endDate: "{endDate}"
183
-
184
- - name: "query_member_change_announcements"
185
- display_name: "查询成员机构变更通知"
186
- description: "按成员机构和时间范围查询联合运维平台报备的变更通知,包含计划开始时间、状态、执行评价、影响范围等。"
187
- trigger: "当用户询问某家机构近期变更、变更报备、计划变更、执行评价,或分析运行质量可能受变更影响时调用。"
188
- input_schema:
189
- type: "object"
190
- properties:
191
- orgCode:
192
- type: "string"
193
- description: "成员机构金融编码,通常由 resolve_member_org 工具获得。"
194
- startDate:
195
- type: "string"
196
- description: "查询开始日期,格式 yyyyMMdd。"
197
- endDate:
198
- type: "string"
199
- description: "查询结束日期,格式 yyyyMMdd。"
200
- required: ["orgCode", "startDate", "endDate"]
201
- output_schema:
202
- type: "array"
203
- description: "成员机构变更通知列表。"
204
- items:
205
- type: "object"
206
- properties:
207
- announcementId:
208
- type: "string"
209
- description: "变更通知编号。"
210
- orgCode:
211
- type: "string"
212
- description: "成员机构金融编码。"
213
- orgName:
214
- type: "string"
215
- description: "成员机构名称。"
216
- changeTitle:
217
- type: "string"
218
- description: "变更标题。"
219
- plannedStartTime:
220
- type: "string"
221
- description: "计划开始时间。"
222
- plannedEndTime:
223
- type: "string"
224
- description: "计划结束时间。"
225
- status:
226
- type: "string"
227
- description: "变更报备或执行状态。"
228
- executionEvaluation:
229
- type: "string"
230
- description: "变更执行评价。"
231
- impactScope:
232
- type: "string"
233
- description: "变更影响范围。"
234
- backend:
235
- service: "union_service"
236
- method: "query_union"
237
- description: "查询成员机构变更通知"
238
- path: "/api/announceList"
239
- params:
240
- org_code: "{orgCode}"
241
- planned_start_time: "{startDate}"
242
- planned_start_time_end: "{endDate}"
243
-
244
- - name: "query_member_jira_faults"
245
- display_name: "查询成员机构故障工单"
246
- description: "按成员机构和时间范围查询 Jira 故障工单,包含故障时间、恢复时间、故障等级、影响范围、原因和状态。"
247
- trigger: "当用户询问某家机构近期故障、故障影响、运行质量可能受故障影响,或需要结合 Jira 故障分析运行质量时调用。"
248
- input_schema:
249
- type: "object"
250
- properties:
251
- orgCode:
252
- type: "string"
253
- description: "成员机构金融编码,通常由 resolve_member_org 工具获得。"
254
- startDate:
255
- type: "string"
256
- description: "查询开始日期,格式 yyyyMMdd。"
257
- endDate:
258
- type: "string"
259
- description: "查询结束日期,格式 yyyyMMdd。"
260
- required: ["orgCode", "startDate", "endDate"]
261
- output_schema:
262
- type: "array"
263
- description: "成员机构故障工单列表。"
264
- items:
265
- type: "object"
266
- properties:
267
- issueKey:
268
- type: "string"
269
- description: "Jira 工单号。"
270
- orgCode:
271
- type: "string"
272
- description: "成员机构金融编码。"
273
- orgName:
274
- type: "string"
275
- description: "成员机构名称。"
276
- faultTime:
277
- type: "string"
278
- description: "故障发生时间。"
279
- recoverTime:
280
- type: "string"
281
- description: "故障恢复时间。"
282
- faultLevel:
283
- type: "string"
284
- description: "故障等级。"
285
- impactScope:
286
- type: "string"
287
- description: "故障影响范围。"
288
- impactDescription:
289
- type: "string"
290
- description: "故障影响描述。"
291
- faultCause:
292
- type: "string"
293
- description: "故障原因。"
294
- status:
295
- type: "string"
296
- description: "工单状态。"
297
- backend:
298
- service: "union_service"
299
- method: "query_union"
300
- description: "查询成员机构故障工单"
301
- path: "/api/getJiraInfo"
302
- params:
303
- orgCode: "{orgCode}"
304
- startDate: "{startDate}"
305
- endDate: "{endDate}"
223
+ startDate: '{startDate}'
224
+ endDate: '{endDate}'
225
+ - name: query_member_change_announcements
226
+ display_name: 查询成员机构变更通知
227
+ description: 按成员机构和时间范围查询联合运维平台报备的变更通知,包含计划开始时间、状态、执行评价、影响范围等。
228
+ trigger: 当用户询问某家机构近期变更、变更报备、计划变更、执行评价,或分析运行质量可能受变更影响时调用。
229
+ input_schema:
230
+ type: object
231
+ properties:
232
+ orgCode:
233
+ type: string
234
+ description: 成员机构金融编码,通常由 resolve_member_org 工具获得。
235
+ startDate:
236
+ type: string
237
+ description: 查询开始日期,格式 yyyyMMdd。
238
+ endDate:
239
+ type: string
240
+ description: 查询结束日期,格式 yyyyMMdd。
241
+ required:
242
+ - orgCode
243
+ - startDate
244
+ - endDate
245
+ output_schema:
246
+ type: object
247
+ description: 成员机构变更通知列表。
248
+ properties:
249
+ success:
250
+ type: boolean
251
+ description: 接口是否调用成功。
252
+ code:
253
+ type: integer
254
+ description: 接口状态码,200 表示成功。
255
+ message:
256
+ type: string
257
+ description: 接口返回消息。
258
+ data:
259
+ type: array
260
+ description: 成员机构变更通知列表。
261
+ items:
262
+ type: object
263
+ properties:
264
+ announcementId:
265
+ type: string
266
+ description: 变更通知编号。
267
+ orgCode:
268
+ type: string
269
+ description: 成员机构金融编码。
270
+ orgName:
271
+ type: string
272
+ description: 成员机构名称。
273
+ changeTitle:
274
+ type: string
275
+ description: 变更标题。
276
+ plannedStartTime:
277
+ type: string
278
+ description: 计划开始时间。
279
+ plannedEndTime:
280
+ type: string
281
+ description: 计划结束时间。
282
+ status:
283
+ type: string
284
+ description: 变更报备或执行状态。
285
+ executionEvaluation:
286
+ type: string
287
+ description: 变更执行评价。
288
+ impactScope:
289
+ type: string
290
+ description: 变更影响范围。
291
+ backend:
292
+ service: union_service
293
+ method: query_union
294
+ description: 查询成员机构变更通知
295
+ path: /api/announceList
296
+ params:
297
+ org_code: '{orgCode}'
298
+ planned_start_time: '{startDate}'
299
+ planned_start_time_end: '{endDate}'
300
+ - name: query_member_jira_faults
301
+ display_name: 查询成员机构故障工单
302
+ description: 按成员机构和时间范围查询 Jira 故障工单,包含故障时间、恢复时间、故障等级、影响范围、原因和状态。
303
+ trigger: 当用户询问某家机构近期故障、故障影响、运行质量可能受故障影响,或需要结合 Jira 故障分析运行质量时调用。
304
+ input_schema:
305
+ type: object
306
+ properties:
307
+ orgCode:
308
+ type: string
309
+ description: 成员机构金融编码,通常由 resolve_member_org 工具获得。
310
+ startDate:
311
+ type: string
312
+ description: 查询开始日期,格式 yyyyMMdd。
313
+ endDate:
314
+ type: string
315
+ description: 查询结束日期,格式 yyyyMMdd。
316
+ required:
317
+ - orgCode
318
+ - startDate
319
+ - endDate
320
+ output_schema:
321
+ type: object
322
+ description: 成员机构故障工单列表。
323
+ properties:
324
+ success:
325
+ type: boolean
326
+ description: 接口是否调用成功。
327
+ code:
328
+ type: integer
329
+ description: 接口状态码,200 表示成功。
330
+ message:
331
+ type: string
332
+ description: 接口返回消息。
333
+ data:
334
+ type: array
335
+ description: 成员机构故障工单列表。
336
+ items:
337
+ type: object
338
+ properties:
339
+ issueKey:
340
+ type: string
341
+ description: Jira 工单号。
342
+ orgCode:
343
+ type: string
344
+ description: 成员机构金融编码。
345
+ orgName:
346
+ type: string
347
+ description: 成员机构名称。
348
+ faultTime:
349
+ type: string
350
+ description: 故障发生时间。
351
+ recoverTime:
352
+ type: string
353
+ description: 故障恢复时间。
354
+ faultLevel:
355
+ type: string
356
+ description: 故障等级。
357
+ impactScope:
358
+ type: string
359
+ description: 故障影响范围。
360
+ impactDescription:
361
+ type: string
362
+ description: 故障影响描述。
363
+ faultCause:
364
+ type: string
365
+ description: 故障原因。
366
+ status:
367
+ type: string
368
+ description: 工单状态。
369
+ backend:
370
+ service: union_service
371
+ method: query_union
372
+ description: 查询成员机构故障工单
373
+ path: /api/getJiraInfo
374
+ params:
375
+ orgCode: '{orgCode}'
376
+ startDate: '{startDate}'
377
+ endDate: '{endDate}'