@redocly/theme 0.62.0-custom.1 → 0.62.0-custom.2
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.
|
@@ -100,11 +100,15 @@ function SearchAiMessageComponent({ role, content, isThinking, resources, classN
|
|
|
100
100
|
react_1.default.createElement(MessageContentWrapper, null, role === constants_2.AiSearchConversationRole.ASSISTANT ? (react_1.default.createElement(react_1.default.Fragment, null,
|
|
101
101
|
react_1.default.createElement(MessageWrapper, { role: role },
|
|
102
102
|
contentSegments.map((segment, index) => {
|
|
103
|
-
var _a, _b, _c, _d
|
|
103
|
+
var _a, _b, _c, _d;
|
|
104
104
|
if (segment.type === 'tool') {
|
|
105
105
|
const toolCallCompleted = Boolean(segment.toolCall.result);
|
|
106
|
-
const toolCallCompletedText = (_b = (_a = constants_1.TOOL_CALL_DISPLAY_TEXT[segment.toolCall.name]) === null || _a === void 0 ? void 0 : _a.completedText) !== null && _b !== void 0 ? _b :
|
|
107
|
-
|
|
106
|
+
const toolCallCompletedText = (_b = (_a = constants_1.TOOL_CALL_DISPLAY_TEXT[segment.toolCall.name]) === null || _a === void 0 ? void 0 : _a.completedText) !== null && _b !== void 0 ? _b :
|
|
107
|
+
// `${translate('search.ai.toolResult.found', 'Found')} ${segment.toolCall.result?.documentCount ?? 0} ${translate('search.ai.toolResult.found.documents', 'documents')}`;
|
|
108
|
+
`Executed "${segment.toolCall.name}" tool`;
|
|
109
|
+
const toolCallInProgressText = (_d = (_c = constants_1.TOOL_CALL_DISPLAY_TEXT[segment.toolCall.name]) === null || _c === void 0 ? void 0 : _c.inProgressText) !== null && _d !== void 0 ? _d :
|
|
110
|
+
// translate('search.ai.toolCall.searching', 'Searching...');
|
|
111
|
+
`Executing "${segment.toolCall.name}" tool...`;
|
|
108
112
|
const toolCallDisplayText = toolCallCompleted
|
|
109
113
|
? toolCallCompletedText
|
|
110
114
|
: toolCallInProgressText;
|
package/package.json
CHANGED
|
@@ -123,11 +123,13 @@ function SearchAiMessageComponent({
|
|
|
123
123
|
|
|
124
124
|
const toolCallCompletedText =
|
|
125
125
|
TOOL_CALL_DISPLAY_TEXT[segment.toolCall.name]?.completedText ??
|
|
126
|
-
`${translate('search.ai.toolResult.found', 'Found')} ${segment.toolCall.result?.documentCount ?? 0} ${translate('search.ai.toolResult.found.documents', 'documents')}`;
|
|
126
|
+
// `${translate('search.ai.toolResult.found', 'Found')} ${segment.toolCall.result?.documentCount ?? 0} ${translate('search.ai.toolResult.found.documents', 'documents')}`;
|
|
127
|
+
`Executed "${segment.toolCall.name}" tool`;
|
|
127
128
|
|
|
128
129
|
const toolCallInProgressText =
|
|
129
130
|
TOOL_CALL_DISPLAY_TEXT[segment.toolCall.name]?.inProgressText ??
|
|
130
|
-
translate('search.ai.toolCall.searching', 'Searching...');
|
|
131
|
+
// translate('search.ai.toolCall.searching', 'Searching...');
|
|
132
|
+
`Executing "${segment.toolCall.name}" tool...`;
|
|
131
133
|
|
|
132
134
|
const toolCallDisplayText = toolCallCompleted
|
|
133
135
|
? toolCallCompletedText
|