@myun/gimi-chat 0.9.74 → 0.9.76

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.
@@ -8,7 +8,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
8
8
  function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
9
9
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
10
10
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
11
- import React, { useMemo, useState } from "react";
11
+ import React, { useEffect, useMemo, useState } from "react";
12
12
  import { MMarkdown } from '@myun/gimi-design';
13
13
  import IconFont from "../../../iconfont-com";
14
14
  import FileUpload from "../../../file-upload";
@@ -24,12 +24,28 @@ var ThinkingToolItem = function ThinkingToolItem(_ref) {
24
24
  _useState2 = _slicedToArray(_useState, 2),
25
25
  showContent = _useState2[0],
26
26
  setShowContent = _useState2[1];
27
+ var _useState3 = useState(false),
28
+ _useState4 = _slicedToArray(_useState3, 2),
29
+ manual = _useState4[0],
30
+ setManual = _useState4[1]; // 用户是否手动操作过,手动后不再被状态覆盖
31
+
32
+ useEffect(function () {
33
+ if (!manual) {
34
+ setShowContent(item.status !== "COMPLETED");
35
+ }
36
+ }, [item.status, manual]);
37
+ var handleToggle = function handleToggle() {
38
+ setManual(true);
39
+ setShowContent(function (v) {
40
+ return !v;
41
+ });
42
+ };
27
43
  return /*#__PURE__*/React.createElement("div", {
28
44
  className: styles.toolItem
29
45
  }, /*#__PURE__*/React.createElement("div", {
30
46
  className: styles.toolItemLabel,
31
47
  onClick: function onClick() {
32
- return item.content && setShowContent(!showContent);
48
+ return item.content && handleToggle();
33
49
  }
34
50
  }, item.status === "COMPLETED" && /*#__PURE__*/React.createElement("img", {
35
51
  className: styles.toolIcon,
@@ -54,10 +70,10 @@ var ThinkingToolItem = function ThinkingToolItem(_ref) {
54
70
  var ToolItemCom = function ToolItemCom(_ref2) {
55
71
  var item = _ref2.item,
56
72
  customRender = _ref2.customRender;
57
- var _useState3 = useState(false),
58
- _useState4 = _slicedToArray(_useState3, 2),
59
- showContent = _useState4[0],
60
- setShowContent = _useState4[1];
73
+ var _useState5 = useState(false),
74
+ _useState6 = _slicedToArray(_useState5, 2),
75
+ showContent = _useState6[0],
76
+ setShowContent = _useState6[1];
61
77
  var content = useMemo(function () {
62
78
  var result = item.content || '';
63
79
  for (var depth = 0; depth < 2 && typeof result === 'string'; depth++) {
@@ -78,7 +94,7 @@ var ToolItemCom = function ToolItemCom(_ref2) {
78
94
  onClick: function onClick() {
79
95
  return item.content && setShowContent(!showContent);
80
96
  }
81
- }, item.status === "COMPLETED" && /*#__PURE__*/React.createElement("img", {
97
+ }, (item.status === "COMPLETED" || item.status === "FAILED") && /*#__PURE__*/React.createElement("img", {
82
98
  className: styles.toolIcon,
83
99
  src: "https://simg01.gaodunwangxiao.com/uploadfiles/tmp/upload/202609/07/e5347_20260907085700.png"
84
100
  }), /*#__PURE__*/React.createElement("div", {
@@ -142,19 +158,15 @@ var AskToolItem = function AskToolItem(_ref4) {
142
158
  _React$useState2 = _slicedToArray(_React$useState, 2),
143
159
  disabled = _React$useState2[0],
144
160
  setDisabled = _React$useState2[1];
145
- var _React$useState3 = React.useState(''),
146
- _React$useState4 = _slicedToArray(_React$useState3, 2),
147
- inputValue = _React$useState4[0],
148
- setInputValue = _React$useState4[1];
149
- var _useState5 = useState(false),
150
- _useState6 = _slicedToArray(_useState5, 2),
151
- showContent = _useState6[0],
152
- setShowContent = _useState6[1];
161
+ var _useState7 = useState(false),
162
+ _useState8 = _slicedToArray(_useState7, 2),
163
+ showContent = _useState8[0],
164
+ setShowContent = _useState8[1];
153
165
  var _useTranslation = useTranslation(),
154
166
  t = _useTranslation.t;
155
167
  var askTextMap = {
156
- RUNNING: "等待用户回答",
157
- COMPLETED: "用户已回答"
168
+ RUNNING: "等待人工确认",
169
+ COMPLETED: "用户已确认"
158
170
  };
159
171
  var _React$useMemo = React.useMemo(function () {
160
172
  var _item$data2, _detailInfo$questionC, _item$data3;
@@ -21,18 +21,22 @@ import DocumentList from "./documentList";
21
21
  import AiLoading from "../ai-loading";
22
22
  import TryWatch from "./tryWatch";
23
23
  import InformationList from "./information";
24
- var Empty = function Empty() {
24
+ var Empty = function Empty(_ref) {
25
+ var type = _ref.type;
26
+ var _useTranslation = useTranslation(),
27
+ t = _useTranslation.t;
25
28
  return /*#__PURE__*/React.createElement("div", {
26
29
  style: {
27
- margin: '30px auto',
30
+ margin: '20px auto',
31
+ paddingBottom: 16,
28
32
  textAlign: 'center'
29
33
  }
30
- }, "\u6682\u65E0\u6570\u636E");
34
+ }, type === 'information' ? t('trace.information.empty') : t('trace.empty.noReference'));
31
35
  };
32
- var KnowledgeIcon = function KnowledgeIcon(_ref) {
33
- var url = _ref.url;
34
- var _useTranslation = useTranslation(),
35
- t = _useTranslation.t;
36
+ var KnowledgeIcon = function KnowledgeIcon(_ref2) {
37
+ var url = _ref2.url;
38
+ var _useTranslation2 = useTranslation(),
39
+ t = _useTranslation2.t;
36
40
  return /*#__PURE__*/React.createElement("img", {
37
41
  style: {
38
42
  width: '12px',
@@ -42,12 +46,12 @@ var KnowledgeIcon = function KnowledgeIcon(_ref) {
42
46
  src: url
43
47
  });
44
48
  };
45
- export var KnowledgeIconComponent = function KnowledgeIconComponent(_ref2) {
46
- var type = _ref2.type,
47
- resources = _ref2.resources,
48
- messageId = _ref2.messageId,
49
- onCurrentTraceVideoClick = _ref2.onCurrentTraceVideoClick,
50
- curPlayer = _ref2.curPlayer;
49
+ export var KnowledgeIconComponent = function KnowledgeIconComponent(_ref3) {
50
+ var type = _ref3.type,
51
+ resources = _ref3.resources,
52
+ messageId = _ref3.messageId,
53
+ onCurrentTraceVideoClick = _ref3.onCurrentTraceVideoClick,
54
+ curPlayer = _ref3.curPlayer;
51
55
  var _useState = useState(false),
52
56
  _useState2 = _slicedToArray(_useState, 2),
53
57
  showPanel = _useState2[0],
@@ -60,8 +64,8 @@ export var KnowledgeIconComponent = function KnowledgeIconComponent(_ref2) {
60
64
  _useState6 = _slicedToArray(_useState5, 2),
61
65
  curTrace = _useState6[0],
62
66
  setCurTrace = _useState6[1];
63
- var _useTranslation2 = useTranslation(),
64
- t = _useTranslation2.t;
67
+ var _useTranslation3 = useTranslation(),
68
+ t = _useTranslation3.t;
65
69
  var dispatch = useAppDispatch();
66
70
  var lastMessageId = useAppSelector(function (state) {
67
71
  var list = state.gimiMenu.messageList;
@@ -119,23 +123,31 @@ export var KnowledgeIconComponent = function KnowledgeIconComponent(_ref2) {
119
123
  list: videoSliceList,
120
124
  hiddenTitle: true,
121
125
  handleCurrentTrace: handleCurrentTrace
122
- }) : /*#__PURE__*/React.createElement(Empty, null);
126
+ }) : /*#__PURE__*/React.createElement(Empty, {
127
+ type: type
128
+ });
123
129
  case 'product':
124
130
  return productList !== null && productList !== void 0 && productList.length ? /*#__PURE__*/React.createElement(ClassList, {
125
131
  list: productList,
126
132
  hiddenTitle: true
127
- }) : /*#__PURE__*/React.createElement(Empty, null);
133
+ }) : /*#__PURE__*/React.createElement(Empty, {
134
+ type: type
135
+ });
128
136
  case 'document':
129
137
  return documentList !== null && documentList !== void 0 && documentList.length ? /*#__PURE__*/React.createElement(DocumentList, {
130
138
  list: documentList,
131
139
  hiddenTitle: true,
132
140
  handleCurrentTrace: handleCurrentTrace
133
- }) : /*#__PURE__*/React.createElement(Empty, null);
141
+ }) : /*#__PURE__*/React.createElement(Empty, {
142
+ type: type
143
+ });
134
144
  case "information":
135
145
  return informationList !== null && informationList !== void 0 && informationList.length ? /*#__PURE__*/React.createElement(InformationList, {
136
146
  list: informationList,
137
147
  handleCurrentTrace: handleCurrentTrace
138
- }) : /*#__PURE__*/React.createElement(Empty, null);
148
+ }) : /*#__PURE__*/React.createElement(Empty, {
149
+ type: type
150
+ });
139
151
  default:
140
152
  return null;
141
153
  }
@@ -182,11 +194,11 @@ export var KnowledgeIconComponent = function KnowledgeIconComponent(_ref2) {
182
194
  onCurrentTraceVideoClick: onCurrentTraceVideoClick
183
195
  }));
184
196
  };
185
- var KnowledgeIconGroup = function KnowledgeIconGroup(_ref3) {
186
- var content = _ref3.content,
187
- messageId = _ref3.messageId,
188
- onCurrentTraceVideoClick = _ref3.onCurrentTraceVideoClick,
189
- curPlayer = _ref3.curPlayer;
197
+ var KnowledgeIconGroup = function KnowledgeIconGroup(_ref4) {
198
+ var content = _ref4.content,
199
+ messageId = _ref4.messageId,
200
+ onCurrentTraceVideoClick = _ref4.onCurrentTraceVideoClick,
201
+ curPlayer = _ref4.curPlayer;
190
202
  var parseArr = [];
191
203
  var knowledgeMap = React.useMemo(function () {
192
204
  var returnMap = new Map();
@@ -5,7 +5,7 @@ import classNames from 'classnames';
5
5
  import { documentConstants } from "../../constants";
6
6
  import { useAppSelector } from "../../store/hooks";
7
7
  var FileItem = function FileItem(_ref) {
8
- var _konwledgeTraceState$;
8
+ var _konwledgeTraceState$, _item$name;
9
9
  var item = _ref.item,
10
10
  handleCurrentTrace = _ref.handleCurrentTrace;
11
11
  var _useTranslation = useTranslation(),
@@ -16,6 +16,8 @@ var FileItem = function FileItem(_ref) {
16
16
  var isActive = (_konwledgeTraceState$ = konwledgeTraceState.resources) === null || _konwledgeTraceState$ === void 0 || (_konwledgeTraceState$ = _konwledgeTraceState$.map(function (item) {
17
17
  return item.id;
18
18
  })) === null || _konwledgeTraceState$ === void 0 ? void 0 : _konwledgeTraceState$.includes("".concat(item.hostId));
19
+ var title = (_item$name = item.name) === null || _item$name === void 0 ? void 0 : _item$name.trim();
20
+ var subInfo = [item.suffix, item.sizeUnit].filter(Boolean).join(' | ');
19
21
  return /*#__PURE__*/React.createElement("div", {
20
22
  className: classNames(styles.knowledge, item.isDelete === 1 ? styles.resource_deactive : isActive ? styles.active : ''),
21
23
  onClick: function onClick() {
@@ -29,9 +31,9 @@ var FileItem = function FileItem(_ref) {
29
31
  className: styles.description
30
32
  }, /*#__PURE__*/React.createElement("div", {
31
33
  className: styles.text
32
- }, item.name), /*#__PURE__*/React.createElement("div", {
34
+ }, title || t('trace.card.noTitle')), subInfo && /*#__PURE__*/React.createElement("div", {
33
35
  className: styles.timeTrace
34
- }, "".concat(item.suffix, " | ").concat(item.sizeUnit)), item.isDelete === 1 && /*#__PURE__*/React.createElement("div", {
36
+ }, subInfo), item.isDelete === 1 && title && /*#__PURE__*/React.createElement("div", {
35
37
  className: styles.knowledge_trace_deactive
36
38
  }, t('trace.document.invalid'))));
37
39
  };
@@ -354,6 +354,7 @@
354
354
  .knowledgeList .knowledge .description {
355
355
  display: flex;
356
356
  flex-direction: column;
357
+ justify-content: center;
357
358
  gap: 5px;
358
359
  }
359
360
  .knowledgeList .knowledge .description .text {
@@ -436,7 +437,6 @@
436
437
  -webkit-line-clamp: 2;
437
438
  -webkit-box-orient: vertical;
438
439
  overflow: hidden;
439
- width: 170px;
440
440
  max-height: 63px;
441
441
  overflow: hidden;
442
442
  font-family: "PingFang SC";
@@ -453,12 +453,12 @@
453
453
  -webkit-box-orient: vertical;
454
454
  overflow: hidden;
455
455
  color: var(--theme-dustyNeutral, #717F94);
456
- width: 150px;
457
456
  font-family: "PingFang SC";
458
457
  font-weight: 400;
459
458
  font-size: 12px;
460
459
  line-height: 150%;
461
460
  letter-spacing: 0px;
461
+ margin-top: 8px;
462
462
  }
463
463
  .knowledgeList .active {
464
464
  border: 1px solid #0073e6;
@@ -13,6 +13,8 @@ var InformationList = function InformationList(_ref) {
13
13
  return /*#__PURE__*/React.createElement("div", {
14
14
  className: styles.knowledgeList
15
15
  }, list.map(function (item) {
16
+ var _item$title;
17
+ var title = (_item$title = item.title) === null || _item$title === void 0 ? void 0 : _item$title.trim();
16
18
  return /*#__PURE__*/React.createElement("div", {
17
19
  className: classNames(styles.knowledge, item.isDelete === 1 ? styles.resource_deactive : ''),
18
20
  onClick: function onClick() {
@@ -25,7 +27,7 @@ var InformationList = function InformationList(_ref) {
25
27
  className: styles.description
26
28
  }, /*#__PURE__*/React.createElement("div", {
27
29
  className: styles.text
28
- }, item.title), item.isDelete === 1 && /*#__PURE__*/React.createElement("div", {
30
+ }, title || t('trace.card.noTitle')), item.isDelete === 1 && title && /*#__PURE__*/React.createElement("div", {
29
31
  className: styles.knowledge_trace_deactive
30
32
  }, t('trace.information.invalid'))));
31
33
  }));
@@ -5,7 +5,7 @@ import classNames from 'classnames';
5
5
  import { knowledgeConstants } from "../../constants";
6
6
  import { useAppSelector } from "../../store/hooks";
7
7
  var VideoItem = function VideoItem(_ref) {
8
- var _konwledgeTraceState$;
8
+ var _konwledgeTraceState$, _item$name;
9
9
  var item = _ref.item,
10
10
  _onClick = _ref.onClick;
11
11
  var _useTranslation = useTranslation(),
@@ -16,6 +16,8 @@ var VideoItem = function VideoItem(_ref) {
16
16
  var isActive = (_konwledgeTraceState$ = konwledgeTraceState.resources) === null || _konwledgeTraceState$ === void 0 || (_konwledgeTraceState$ = _konwledgeTraceState$.map(function (item) {
17
17
  return item.id;
18
18
  })) === null || _konwledgeTraceState$ === void 0 ? void 0 : _konwledgeTraceState$.includes("".concat(item.sliceId));
19
+ var title = (_item$name = item.name) === null || _item$name === void 0 ? void 0 : _item$name.trim();
20
+ var hasSegment = !!(item.startedAt || item.endedAt);
19
21
  return /*#__PURE__*/React.createElement("div", {
20
22
  className: classNames(styles.knowledge, item.isDelete === 1 ? styles.resource_deactive : isActive ? styles.active : ''),
21
23
  onClick: function onClick() {
@@ -37,12 +39,12 @@ var VideoItem = function VideoItem(_ref) {
37
39
  className: styles.class_description
38
40
  }, /*#__PURE__*/React.createElement("div", {
39
41
  className: styles.text
40
- }, item.name), /*#__PURE__*/React.createElement("div", {
42
+ }, title || t('trace.card.noTitle')), hasSegment && /*#__PURE__*/React.createElement("div", {
41
43
  className: styles.timeTrace
42
44
  }, t('trace.video.segment', {
43
45
  start: item.startedAt || "0'0\"",
44
46
  end: item.endedAt || "0'0\""
45
- })), item.isDelete === 1 && /*#__PURE__*/React.createElement("div", {
47
+ })), item.isDelete === 1 && title && /*#__PURE__*/React.createElement("div", {
46
48
  className: styles.knowledge_trace_deactive
47
49
  }, t('trace.video.invalid'))));
48
50
  };
@@ -21,17 +21,20 @@ import ClassList from "../knowledge-trace/classList";
21
21
  import AiLoading from "../ai-loading";
22
22
  import ShadowLoading from "../shadow-loading";
23
23
  var Empty = function Empty() {
24
+ var _useTranslation = useTranslation(),
25
+ t = _useTranslation.t;
24
26
  return /*#__PURE__*/React.createElement("div", {
25
27
  style: {
26
- margin: '30px auto',
28
+ margin: '20px auto',
29
+ paddingBottom: 16,
27
30
  textAlign: 'center'
28
31
  }
29
- }, "\u6682\u65E0\u6570\u636E");
32
+ }, t('trace.empty.noReference'));
30
33
  };
31
34
  var ProductTag = function ProductTag(_ref) {
32
35
  var value = _ref.value;
33
- var _useTranslation = useTranslation(),
34
- t = _useTranslation.t;
36
+ var _useTranslation2 = useTranslation(),
37
+ t = _useTranslation2.t;
35
38
  var _useState = useState(false),
36
39
  _useState2 = _slicedToArray(_useState, 2),
37
40
  showPanel = _useState2[0],
@@ -57,67 +57,80 @@ var NODE_STATUS_TEXTS = {
57
57
  'thinking': {
58
58
  'STARTED': '开始分析问题',
59
59
  'RUNNING': '正在分析问题',
60
- 'COMPLETED': '已完成分析'
60
+ 'COMPLETED': '已完成分析',
61
+ 'FAILED': '分析问题失败'
61
62
  },
62
63
  'knowledge': {
63
64
  'STARTED': '开始调用知识库检索',
64
65
  'RUNNING': '正在调用知识库检索',
65
- 'COMPLETED': '已调用知识库检索'
66
+ 'COMPLETED': '已调用知识库检索',
67
+ 'FAILED': '调用知识库检索失败'
66
68
  },
67
69
  "esKnowledge": {
68
70
  'STARTED': '开始调用知识库检索',
69
71
  'RUNNING': '正在调用知识库检索',
70
- 'COMPLETED': '已调用知识库检索'
72
+ 'COMPLETED': '已调用知识库检索',
73
+ 'FAILED': '调用知识库检索失败'
71
74
  },
72
75
  "mcp": {
73
76
  'STARTED': '开始调用技能',
74
77
  'RUNNING': '正在调用技能',
75
- 'COMPLETED': '已调用技能'
78
+ 'COMPLETED': '已调用技能',
79
+ 'FAILED': '调用技能失败'
76
80
  },
77
81
  "skillBase": {
78
82
  'STARTED': '开始调用技能',
79
83
  'RUNNING': '正在调用技能',
80
- 'COMPLETED': '已调用技能'
84
+ 'COMPLETED': '已调用技能',
85
+ 'FAILED': '调用技能失败'
81
86
  },
82
87
  "http": {
83
88
  'STARTED': '开始调用处理数据',
84
89
  'RUNNING': '正在调用处理数据',
85
- 'COMPLETED': '已调用处理数据'
90
+ 'COMPLETED': '已调用处理数据',
91
+ 'FAILED': '调用处理数据失败'
86
92
  },
87
93
  "loop": {
88
94
  'STARTED': '开始处理任务',
89
95
  'RUNNING': '正在处理任务',
90
- 'COMPLETED': '已处理任务'
96
+ 'COMPLETED': '已处理任务',
97
+ 'FAILED': '处理任务失败'
91
98
  },
92
99
  "intent": {
93
100
  'STARTED': '开始规划下一步处理方式',
94
101
  'RUNNING': '正在规划下一步处理方式',
95
- 'COMPLETED': '已规划下一步处理方式'
102
+ 'COMPLETED': '已规划下一步处理方式',
103
+ 'FAILED': '规划下一步处理方式失败'
96
104
  },
97
105
  "video": {
98
106
  'STARTED': '开始处理任务',
99
107
  'RUNNING': '正在处理任务',
100
- 'COMPLETED': '已处理任务'
108
+ 'COMPLETED': '已处理任务',
109
+ 'FAILED': '处理任务失败'
101
110
  },
102
111
  "talk": {
103
112
  'STARTED': '开始处理任务',
104
113
  'RUNNING': '正在处理任务',
105
- 'COMPLETED': '已处理任务'
114
+ 'COMPLETED': '已处理任务',
115
+ 'FAILED': '处理任务失败'
106
116
  },
107
117
  "image-text": {
108
118
  'STARTED': '开始处理任务',
109
119
  'RUNNING': '正在处理任务',
110
- 'COMPLETED': '已处理任务'
120
+ 'COMPLETED': '已处理任务',
121
+ 'FAILED': '处理任务失败'
111
122
  },
112
123
  "text": {
113
124
  'STARTED': '开始调用处理数据',
114
125
  'RUNNING': '正在调用处理数据',
115
- 'COMPLETED': '已调用处理数据'
126
+ 'COMPLETED': '已调用处理数据',
127
+ 'FAILED': '调用处理数据失败'
116
128
  },
117
129
  "llm": {
118
130
  'STARTED': '开始分析问题',
119
131
  'RUNNING': '正在分析问题',
120
- 'COMPLETED': '已完成分析'
132
+ 'COMPLETED': '已完成分析',
133
+ 'FAILED': '分析问题失败'
121
134
  }
122
135
 
123
136
  // 其他节点可继续添加自定义文案
@@ -557,7 +557,7 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
557
557
  var lastToolList = _toConsumableArray(currentMessageList[currentMessageList.length - 1].toolList || []);
558
558
  if (lastToolList.findIndex(function (v) {
559
559
  return v.moduleType === 'end';
560
- }) < 0) {
560
+ }) < 0 && type === 'content') {
561
561
  lastToolList.push({
562
562
  moduleType: 'end',
563
563
  content: '',
@@ -1357,7 +1357,6 @@ var useCommonChatAPI = function useCommonChatAPI(props) {
1357
1357
  var uploadFile = fileList[0];
1358
1358
  var isLastMessageEmptyUserChat = (lastMessage === null || lastMessage === void 0 ? void 0 : lastMessage.moduleType) === 'ask'; // 空内容
1359
1359
  if (!isLastMessageEmptyUserChat) {
1360
- console.log('isLastMessageEmptyUserChat', isLastMessageEmptyUserChat);
1361
1360
  var shouldEnableUpload = uploadFile.status === FileStatus.UPLOAD_FAILED || uploadFile.status === FileStatus.ANALYSE_FAILED;
1362
1361
  var newMessageList = [].concat(_toConsumableArray(messageList.slice(0, -2)), [_objectSpread(_objectSpread({}, messageList[messageList.length - 2]), {}, {
1363
1362
  disableUploadFile: !shouldEnableUpload
@@ -42,6 +42,9 @@ declare const enUS: {
42
42
  'trace.document.coverAlt': string;
43
43
  'trace.document.invalid': string;
44
44
  'trace.information.invalid': string;
45
+ 'trace.information.empty': string;
46
+ 'trace.empty.noReference': string;
47
+ 'trace.card.noTitle': string;
45
48
  'trace.document.total': string;
46
49
  'trace.document.unsupported': string;
47
50
  'trace.document.unsupportedTips': string;
@@ -42,6 +42,9 @@ var enUS = {
42
42
  'trace.document.coverAlt': 'Document image',
43
43
  'trace.document.invalid': 'Invalid',
44
44
  'trace.information.invalid': 'Invalid',
45
+ 'trace.information.empty': 'This article is no longer available',
46
+ 'trace.empty.noReference': 'The original reference is currently unavailable. Please search again for related content.',
47
+ 'trace.card.noTitle': 'Unable to view this reference. Please search again for related content.',
45
48
  'trace.document.total': '{{count}} documents in this conversation',
46
49
  'trace.document.unsupported': 'This file type cannot be previewed',
47
50
  'trace.document.unsupportedTips': 'This file format does not support trial preview. You can download it and view it with other software.\nTo view the full document, click the "View" button.',
@@ -42,6 +42,9 @@ declare const zhCN: {
42
42
  'trace.document.coverAlt': string;
43
43
  'trace.document.invalid': string;
44
44
  'trace.information.invalid': string;
45
+ 'trace.information.empty': string;
46
+ 'trace.empty.noReference': string;
47
+ 'trace.card.noTitle': string;
45
48
  'trace.document.total': string;
46
49
  'trace.document.unsupported': string;
47
50
  'trace.document.unsupportedTips': string;
@@ -42,6 +42,9 @@ var zhCN = {
42
42
  'trace.document.coverAlt': '文档图片',
43
43
  'trace.document.invalid': '已失效',
44
44
  'trace.information.invalid': '已失效',
45
+ 'trace.information.empty': '该资讯已失效',
46
+ 'trace.empty.noReference': '当前无法查看原引用片段,可重新检索相关内容。',
47
+ 'trace.card.noTitle': '无法查看该引用片段,可重新检索相关内容。',
45
48
  'trace.document.total': '本对话共{{count}}个文档',
46
49
  'trace.document.unsupported': '当前文件不支持预览',
47
50
  'trace.document.unsupportedTips': '文件格式不支持在线试看,您可以下载后用其他软件查看。\n如需查看完整文档,请点击“去查看”按钮。',
@@ -24,7 +24,6 @@ export interface ToolItem {
24
24
  * PARTIAL:部分同意;
25
25
  */
26
26
  confirmStatus?: "PENDING" | "CONFIRMED" | "REJECTED" | "PARTIAL";
27
- workflowAskResult?: any;
28
27
  }
29
28
  /**
30
29
  * 聊天消息主接口