paul-ai-assistant 1.0.3 → 1.0.4
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.
- package/es/AssistantChat/AssistantChatApp/const.js +1 -1
- package/es/AssistantChat/AssistantChatApp/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.js +4 -4
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.js +4 -5
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.js +2 -2
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.js +1 -1
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.js +3 -3
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.js +5 -5
- package/es/AssistantChat/AssistantChatInput/index.js +7 -5
- package/es/common/registerAssistChatForm.js +8 -5
- package/es/components/AgentCardSubmit/index.js +0 -1
- package/es/components/AgentResult/index.js +1 -1
- package/es/components/AgentSchemaForm/ScreenshotView.js +1 -1
- package/es/components/AgentSchemaForm/index.js +5 -5
- package/es/components/ArrayInput/index.js +1 -1
- package/es/components/InspectionCard/index.js +1 -1
- package/es/components/LlmMarkDown/MdAmarkGuess/index.js +1 -1
- package/es/components/LlmMarkDown/MdAmarkReference/index.js +3 -3
- package/es/components/LlmMarkDown/index.js +1 -1
- package/es/components/LlmModelChange/index.js +2 -2
- package/es/components/LlmReference/index.js +9 -9
- package/es/components/LlmTraceComponents/Disassemble/index.js +2 -2
- package/es/components/LlmTraceComponents/Rewrite/index.js +2 -2
- package/es/components/MarkDown/index.js +42 -13
- package/es/components/ModelSelect/ModeDropdown.js +1 -1
- package/es/components/ModelSelect/const.js +3 -3
- package/es/components/PaulButtonGroup/Select.js +1 -1
- package/es/components/PaulButtonGroup/index.js +1 -1
- package/es/components/PopAuth/index.js +1 -1
- package/es/components/SchemaInput/SchemaInputCore/index.js +1 -1
- package/es/components/SchemaInput/SimpleJSONEditor/index.js +1 -1
- package/es/components/SelectBlurry/index.js +1 -1
- package/es/components/ShareModal/index.js +1 -1
- package/es/components/ShareOperationBar/index.js +1 -1
- package/es/components/TextContent/index.js +3 -3
- package/es/components/TraceWithAgent/index.js +4 -9
- package/es/context/index.js +2 -1
- package/es/context/utils/messages.js +1 -1
- package/es/context/utils/send.js +2 -2
- package/es/context/utils/tool.js +1 -1
- package/es/utils/CSEIconTool.js +1 -1
- package/es/utils/apushAssistant.js +1 -2
- package/es/utils/common.js +17 -0
- package/es/utils/event.js +87 -0
- package/es/utils/formDataFormat.js +1 -1
- package/es/utils/formatData.js +1 -1
- package/es/utils/helpers.js +78 -0
- package/es/utils/log.js +1 -1
- package/package.json +6 -16
- package/es/AssistantChat/AssistantChatApp/CardMatchRender/index.d.ts +0 -8
- package/es/AssistantChat/AssistantChatApp/OperationMatchRender/index.d.ts +0 -9
- package/es/AssistantChat/AssistantChatApp/const.d.ts +0 -51
- package/es/AssistantChat/AssistantChatApp/index.d.ts +0 -4
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/TemplateCard.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/common/types.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHeader.d.ts +0 -5
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateHtml.d.ts +0 -7
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateParagraph.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TemplateTitle.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/component/TraceComponent.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/context/index.d.ts +0 -29
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/index.d.ts +0 -4
- package/es/AssistantChat/AssistantChatCard/AgentCardRender/utils.d.ts +0 -2
- package/es/AssistantChat/AssistantChatCard/AgentCommonCard/index.d.ts +0 -4
- package/es/AssistantChat/AssistantChatCard/AgentExecutionCard/index.d.ts +0 -16
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCard/index.d.ts +0 -14
- package/es/AssistantChat/AssistantChatCard/LlmGenerateCardV5/index.d.ts +0 -78
- package/es/AssistantChat/AssistantChatCard/OperationCard/AigcTipsRender/index.d.ts +0 -7
- package/es/AssistantChat/AssistantChatCard/OperationCard/Copy/index.d.ts +0 -7
- package/es/AssistantChat/AssistantChatCard/OperationCard/CopyRequestId/index.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/OperationCard/FeedBack/index.d.ts +0 -11
- package/es/AssistantChat/AssistantChatCard/OperationCard/ShareButton/index.d.ts +0 -3
- package/es/AssistantChat/AssistantChatCard/OperationCard/index.d.ts +0 -4
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/AttachmentsRender.d.ts +0 -21
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/ImageRender.d.ts +0 -7
- package/es/AssistantChat/AssistantChatCard/UserQueryCardRender/index.d.ts +0 -8
- package/es/AssistantChat/AssistantChatCard/index.d.ts +0 -5
- package/es/AssistantChat/AssistantChatInput/index.d.ts +0 -5
- package/es/AssistantChat/AssistantToolApp/const.d.ts +0 -12
- package/es/AssistantChat/AssistantToolApp/index.d.ts +0 -4
- package/es/AssistantChat/AssistantToolExecutionApp/const.d.ts +0 -7
- package/es/AssistantChat/AssistantToolExecutionApp/index.d.ts +0 -4
- package/es/AssistantChat/AssistentError/index.d.ts +0 -5
- package/es/AssistantChat/index.d.ts +0 -6
- package/es/AssistantChat/logCallback/aTagLog.d.ts +0 -1
- package/es/AssistantChat/logCallback/copyLog.d.ts +0 -3
- package/es/ErrorBoundary/ErrorBoundaryFallback/index.d.ts +0 -5
- package/es/ErrorBoundary/index.d.ts +0 -22
- package/es/common/registerAssistChatForm.d.ts +0 -2
- package/es/components/AgentCardSubmit/index.d.ts +0 -20
- package/es/components/AgentResult/index.d.ts +0 -8
- package/es/components/AgentSchemaForm/ScreenshotView.d.ts +0 -12
- package/es/components/AgentSchemaForm/_interface.d.ts +0 -37
- package/es/components/AgentSchemaForm/index.d.ts +0 -9
- package/es/components/AgentText/index.d.ts +0 -4
- package/es/components/AigcTips/index.d.ts +0 -9
- package/es/components/ArrayInput/index.d.ts +0 -3
- package/es/components/AssistantDrawer/index.d.ts +0 -22
- package/es/components/EmptyIcon/index.d.ts +0 -3
- package/es/components/HeaderSvgIcon/index.d.ts +0 -3
- package/es/components/InspectionCard/index.d.ts +0 -66
- package/es/components/InspectionCard/result.d.ts +0 -13
- package/es/components/LlmMarkDown/MdAmarkGuess/index.d.ts +0 -16
- package/es/components/LlmMarkDown/MdAmarkReference/index.d.ts +0 -21
- package/es/components/LlmMarkDown/index.d.ts +0 -30
- package/es/components/LlmModelChange/index.d.ts +0 -57
- package/es/components/LlmReference/index.d.ts +0 -25
- package/es/components/LlmTitle/index.d.ts +0 -14
- package/es/components/LlmTrace/index.d.ts +0 -17
- package/es/components/LlmTraceComponents/Disassemble/index.d.ts +0 -24
- package/es/components/LlmTraceComponents/ReadResource/index.d.ts +0 -24
- package/es/components/LlmTraceComponents/Rewrite/index.d.ts +0 -23
- package/es/components/LlmTraceComponents/TraceMarkDown/index.d.ts +0 -22
- package/es/components/LlmTraceComponents/const.d.ts +0 -25
- package/es/components/LlmTraceV2/index.d.ts +0 -56
- package/es/components/LlmTraceV3/components/TraceContentComponents/BusinessFlow/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/CodeBlock/index.d.ts +0 -18
- package/es/components/LlmTraceV3/components/TraceContentComponents/DeepThinking/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/InfoMissing/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/LinkList/index.d.ts +0 -20
- package/es/components/LlmTraceV3/components/TraceContentComponents/SearchResults/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/TaskPlanning/index.d.ts +0 -12
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolCall/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/ToolResult/index.d.ts +0 -13
- package/es/components/LlmTraceV3/components/TraceContentComponents/const.d.ts +0 -32
- package/es/components/LlmTraceV3/components/TraceGroup/index.d.ts +0 -8
- package/es/components/LlmTraceV3/components/TraceHeader/index.d.ts +0 -8
- package/es/components/LlmTraceV3/components/TraceItem/index.d.ts +0 -8
- package/es/components/LlmTraceV3/components/TraceSlide/index.d.ts +0 -30
- package/es/components/LlmTraceV3/components/TraceStatusIcon/index.d.ts +0 -8
- package/es/components/LlmTraceV3/hooks/useGroupCollapse.d.ts +0 -18
- package/es/components/LlmTraceV3/hooks/useItemCollapse.d.ts +0 -18
- package/es/components/LlmTraceV3/hooks/useTraceAnimation.d.ts +0 -15
- package/es/components/LlmTraceV3/hooks/useTraceCollapse.d.ts +0 -17
- package/es/components/LlmTraceV3/index.d.ts +0 -11
- package/es/components/LlmTraceV3/types.d.ts +0 -263
- package/es/components/LlmTraceV3/utils/collapseLogic.d.ts +0 -26
- package/es/components/LlmTraceV3/utils/traceHelpers.d.ts +0 -42
- package/es/components/MarkDown/index.d.ts +0 -11
- package/es/components/ModelSelect/ModeDropdown.d.ts +0 -8
- package/es/components/ModelSelect/const.d.ts +0 -30
- package/es/components/ModelSelect/index.d.ts +0 -4
- package/es/components/PaulButtonGroup/Select.d.ts +0 -3
- package/es/components/PaulButtonGroup/index.d.ts +0 -16
- package/es/components/PopAuth/index.d.ts +0 -4
- package/es/components/ReferenceInfoItem/index.d.ts +0 -49
- package/es/components/ReferenceTag/index.d.ts +0 -11
- package/es/components/SchemaInput/SchemaInputCore/index.d.ts +0 -4
- package/es/components/SchemaInput/SchemaInputCore/utils.d.ts +0 -1
- package/es/components/SchemaInput/SimpleJSONEditor/index.d.ts +0 -4
- package/es/components/SchemaInput/index.d.ts +0 -8
- package/es/components/SelectBlurry/index.d.ts +0 -3
- package/es/components/SendMessageSvgIcon/index.d.ts +0 -3
- package/es/components/ShareContent/index.d.ts +0 -21
- package/es/components/ShareModal/index.d.ts +0 -15
- package/es/components/ShareOperationBar/index.d.ts +0 -4
- package/es/components/TextContent/index.d.ts +0 -14
- package/es/components/TraceMarkdownWithCard/index.d.ts +0 -6
- package/es/components/TraceWithAgent/index.d.ts +0 -23
- package/es/constants/assistChatEvent.d.ts +0 -33
- package/es/constants/common.d.ts +0 -71
- package/es/constants/logTrace.d.ts +0 -3
- package/es/constants/reference.d.ts +0 -109
- package/es/constants/traceDataStatus.d.ts +0 -34
- package/es/context/index.d.ts +0 -13
- package/es/context/utils/messages.d.ts +0 -33
- package/es/context/utils/send.d.ts +0 -29
- package/es/context/utils/tool.d.ts +0 -19
- package/es/index.d.ts +0 -37
- package/es/interface/IAgent.d.ts +0 -12
- package/es/interface/IChatBottom.d.ts +0 -69
- package/es/interface/IChatCard.d.ts +0 -40
- package/es/interface/IChatContext.d.ts +0 -59
- package/es/interface/IChatRef.d.ts +0 -75
- package/es/interface/IGuessQuestion.d.ts +0 -43
- package/es/interface/IMessage.d.ts +0 -17
- package/es/interface/ISend.d.ts +0 -19
- package/es/interface/index.d.ts +0 -272
- package/es/utils/CSEIconTool.d.ts +0 -8
- package/es/utils/apushAssistant.d.ts +0 -73
- package/es/utils/clientPlugin.d.ts +0 -3
- package/es/utils/common.d.ts +0 -10
- package/es/utils/copyToClipboard.d.ts +0 -2
- package/es/utils/formDataFormat.d.ts +0 -3
- package/es/utils/formatData.d.ts +0 -14
- package/es/utils/log.d.ts +0 -18
- package/es/utils/parseUrl.d.ts +0 -9
- package/es/utils/request.d.ts +0 -15
- package/es/utils/screenshot.d.ts +0 -45
- package/es/utils/send.d.ts +0 -10
- package/es/utils/uploadImage.d.ts +0 -9
- package/es/utils/websocketLogger.d.ts +0 -176
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface ILlmTitleProps {
|
|
4
|
-
title?: string;
|
|
5
|
-
icon?: string;
|
|
6
|
-
className?: string;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* 标题组件
|
|
10
|
-
* @param props
|
|
11
|
-
* @returns
|
|
12
|
-
*/
|
|
13
|
-
declare const LlmTitle: (props: ILlmTitleProps) => React.JSX.Element;
|
|
14
|
-
export default LlmTitle;
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface ILlmTraceProps {
|
|
4
|
-
headTitle?: React.ReactNode;
|
|
5
|
-
trace?: any;
|
|
6
|
-
ticketId?: string;
|
|
7
|
-
dialogId?: string;
|
|
8
|
-
originData?: any;
|
|
9
|
-
finished?: boolean;
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* LLM 链路组件
|
|
13
|
-
* @param props
|
|
14
|
-
* @returns
|
|
15
|
-
*/
|
|
16
|
-
declare const LlmTrace: (props: ILlmTraceProps) => React.JSX.Element;
|
|
17
|
-
export default LlmTrace;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TRACE_STATUS_ENUM } from '../../../constants/traceDataStatus';
|
|
3
|
-
import './index.scss';
|
|
4
|
-
export interface IDisassembleResult {
|
|
5
|
-
/** 搜索结果文本 */
|
|
6
|
-
data?: string[];
|
|
7
|
-
}
|
|
8
|
-
export interface IDisassembleProps {
|
|
9
|
-
data: {
|
|
10
|
-
/** 组件 数据 */
|
|
11
|
-
result?: IDisassembleResult;
|
|
12
|
-
status?: TRACE_STATUS_ENUM;
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
};
|
|
15
|
-
/** 搜索点击事件 */
|
|
16
|
-
onClick?: (params: any) => void;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 子问题拆解
|
|
20
|
-
* @param props
|
|
21
|
-
* @returns
|
|
22
|
-
*/
|
|
23
|
-
declare const Disassemble: (props: IDisassembleProps) => React.JSX.Element;
|
|
24
|
-
export default Disassemble;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TRACE_STATUS_ENUM } from '../../../constants/traceDataStatus';
|
|
3
|
-
import './index.scss';
|
|
4
|
-
export interface IReadResourceResult {
|
|
5
|
-
/** 标题 */
|
|
6
|
-
title?: string;
|
|
7
|
-
/** 链接 */
|
|
8
|
-
utl?: string;
|
|
9
|
-
}
|
|
10
|
-
export interface ITraceMarkDownProps {
|
|
11
|
-
data: {
|
|
12
|
-
/** 组件 数据 */
|
|
13
|
-
result?: IReadResourceResult[];
|
|
14
|
-
status?: TRACE_STATUS_ENUM;
|
|
15
|
-
[key: string]: any;
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* 资源阅读
|
|
20
|
-
* @param props
|
|
21
|
-
* @returns
|
|
22
|
-
*/
|
|
23
|
-
declare const ReadResource: (props: ITraceMarkDownProps) => React.JSX.Element;
|
|
24
|
-
export default ReadResource;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export interface IRewriteResult {
|
|
4
|
-
/** 改写后的问题 */
|
|
5
|
-
rewrite?: string;
|
|
6
|
-
/** 原问题 */
|
|
7
|
-
orgQuery?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface IRewriteProps {
|
|
10
|
-
data?: {
|
|
11
|
-
/** 组件 数据 */
|
|
12
|
-
result?: IRewriteResult;
|
|
13
|
-
[key: string]: any;
|
|
14
|
-
};
|
|
15
|
-
onClick?: (params: any) => void;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* 问题改写
|
|
19
|
-
* @param props
|
|
20
|
-
* @returns
|
|
21
|
-
*/
|
|
22
|
-
declare const Rewrite: (props: IRewriteProps) => React.JSX.Element;
|
|
23
|
-
export default Rewrite;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import './index.scss';
|
|
3
|
-
export type ITraceMarkDownResult = string;
|
|
4
|
-
export interface ITraceMarkDownProps {
|
|
5
|
-
data: {
|
|
6
|
-
/** 组件 数据 */
|
|
7
|
-
result?: ITraceMarkDownResult;
|
|
8
|
-
[key: string]: any;
|
|
9
|
-
};
|
|
10
|
-
originData?: any;
|
|
11
|
-
/** 是否是当前消息 */
|
|
12
|
-
isCurrentMessage?: boolean;
|
|
13
|
-
/** 获取API主机地址的方法 */
|
|
14
|
-
getApiHost?: () => string;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* trace 组件 markdown 展示
|
|
18
|
-
* @param props
|
|
19
|
-
* @returns
|
|
20
|
-
*/
|
|
21
|
-
declare const TraceMarkDown: (props: ITraceMarkDownProps) => React.JSX.Element;
|
|
22
|
-
export default TraceMarkDown;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
export declare enum TRACE_TYPE_COMPONENT_ENUM {
|
|
3
|
-
rewrite = "rewrite",
|
|
4
|
-
questionDisassemble = "questionDisassemble",
|
|
5
|
-
markdown = "markdown",
|
|
6
|
-
readResource = "readResource",
|
|
7
|
-
traceMarkdownWithCard = "TraceMarkdownWithCard",
|
|
8
|
-
traceWithAgent = "TraceWithAgent",
|
|
9
|
-
inspectionCard = "InspectionCard"
|
|
10
|
-
}
|
|
11
|
-
/**
|
|
12
|
-
* trace组件类型映射
|
|
13
|
-
*/
|
|
14
|
-
export declare const TRACE_TYPE_COMPONENT_MAP: {
|
|
15
|
-
rewrite: (props: import("./Rewrite").IRewriteProps) => import("react").JSX.Element;
|
|
16
|
-
questionDisassemble: (props: import("./Disassemble").IDisassembleProps) => import("react").JSX.Element;
|
|
17
|
-
markdown: (props: import("./TraceMarkDown").ITraceMarkDownProps) => import("react").JSX.Element;
|
|
18
|
-
readResource: (props: import("./ReadResource").ITraceMarkDownProps) => import("react").JSX.Element;
|
|
19
|
-
TraceMarkdownWithCard: ({ title, result }: {
|
|
20
|
-
title?: string;
|
|
21
|
-
result?: string;
|
|
22
|
-
}) => import("react").JSX.Element;
|
|
23
|
-
TraceWithAgent: import("react").FC<import("../TraceWithAgent").TraceWithAgentProps>;
|
|
24
|
-
InspectionCard: import("react").FC<import("../InspectionCard").InspectionCardProps>;
|
|
25
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { TRACE_STATUS_ENUM } from '../../constants/traceDataStatus';
|
|
3
|
-
import type { TRACE_TYPE_COMPONENT_ENUM } from '../LlmTraceComponents/const';
|
|
4
|
-
import './index.scss';
|
|
5
|
-
export interface ITraceThirdItem {
|
|
6
|
-
/** 展示标题 存在则展示 */
|
|
7
|
-
showTitle?: string;
|
|
8
|
-
/** 组件类型 */
|
|
9
|
-
type?: TRACE_TYPE_COMPONENT_ENUM | string;
|
|
10
|
-
/** 组件入参 */
|
|
11
|
-
result?: any;
|
|
12
|
-
/** 没有对应组件时,展示默认内容 */
|
|
13
|
-
defaultContent?: string;
|
|
14
|
-
/** 内层执行状态 */
|
|
15
|
-
status?: TRACE_STATUS_ENUM;
|
|
16
|
-
[key: string]: any;
|
|
17
|
-
}
|
|
18
|
-
/** 思考过程 第二层,单节点 有透出状态 */
|
|
19
|
-
export interface ITraceSecondItem {
|
|
20
|
-
/** 展示标题 存在则展示 */
|
|
21
|
-
showTitle?: string;
|
|
22
|
-
/** 节点执行状态 */
|
|
23
|
-
status?: TRACE_STATUS_ENUM;
|
|
24
|
-
/** 节点执行内容,组件展示 */
|
|
25
|
-
result?: ITraceThirdItem[];
|
|
26
|
-
[key: string]: any;
|
|
27
|
-
}
|
|
28
|
-
/** 思考过程 最外层,折叠层 */
|
|
29
|
-
export interface ITrace {
|
|
30
|
-
/** 思考数据 */
|
|
31
|
-
data?: ITraceSecondItem[];
|
|
32
|
-
/** 思考状态 */
|
|
33
|
-
status?: TRACE_STATUS_ENUM;
|
|
34
|
-
/** 思考名称 */
|
|
35
|
-
traceName?: string;
|
|
36
|
-
/** 思考耗时 ms */
|
|
37
|
-
cost?: string | number;
|
|
38
|
-
/** 思考是否默认折叠 */
|
|
39
|
-
collapse?: boolean;
|
|
40
|
-
}
|
|
41
|
-
export interface ILlmTraceProps {
|
|
42
|
-
trace?: ITrace;
|
|
43
|
-
ticketId?: string;
|
|
44
|
-
dialogId?: string;
|
|
45
|
-
originData?: any;
|
|
46
|
-
traceExternalRenderType?: {
|
|
47
|
-
[key: string]: React.ComponentType<any>;
|
|
48
|
-
};
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* LLM 链路组件
|
|
52
|
-
* @param props
|
|
53
|
-
* @returns
|
|
54
|
-
*/
|
|
55
|
-
declare const LlmTraceV2: (props: ILlmTraceProps) => React.JSX.Element;
|
|
56
|
-
export default LlmTraceV2;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* BusinessFlow 业务流组件
|
|
3
|
-
* 展示业务流程,支持点击查看详情
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { IBusinessFlowResult } from '../../../types';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface IBusinessFlowProps extends IBusinessFlowResult {
|
|
9
|
-
dialogId?: string;
|
|
10
|
-
ctx?: any;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: React.NamedExoticComponent<IBusinessFlowProps>;
|
|
13
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CodeBlock 通用代码块组件
|
|
3
|
-
* 支持语法高亮(可选)和折叠功能
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import './index.scss';
|
|
7
|
-
export interface ICodeBlockProps {
|
|
8
|
-
code: string;
|
|
9
|
-
language?: string;
|
|
10
|
-
collapsed?: boolean;
|
|
11
|
-
collapsible?: boolean;
|
|
12
|
-
showLineNumbers?: boolean;
|
|
13
|
-
maxHeight?: number;
|
|
14
|
-
dialogId?: string;
|
|
15
|
-
ctx?: any;
|
|
16
|
-
}
|
|
17
|
-
declare const _default: React.NamedExoticComponent<ICodeBlockProps>;
|
|
18
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* DeepThinking 深度思考组件
|
|
3
|
-
* 展示 AI 的深度思考过程和推理结果
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { IDeepThinkingResult } from '../../../types';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface IDeepThinkingProps extends IDeepThinkingResult {
|
|
9
|
-
dialogId?: string;
|
|
10
|
-
ctx?: any;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: React.NamedExoticComponent<IDeepThinkingProps>;
|
|
13
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* InfoMissing 信息缺失组件
|
|
3
|
-
* 提示缺少必要信息,需要用户补充
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { IInfoMissingResult } from '../../../types';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface IInfoMissingProps extends IInfoMissingResult {
|
|
9
|
-
dialogId?: string;
|
|
10
|
-
ctx?: any;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: React.NamedExoticComponent<IInfoMissingProps>;
|
|
13
|
-
export default _default;
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LinkList 链接列表组件
|
|
3
|
-
* 支持有序编号和点击跳转
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import './index.scss';
|
|
7
|
-
export interface ILinkListProps {
|
|
8
|
-
links: Array<{
|
|
9
|
-
id: string;
|
|
10
|
-
title: string;
|
|
11
|
-
url: string;
|
|
12
|
-
description?: string;
|
|
13
|
-
}>;
|
|
14
|
-
ordered?: boolean;
|
|
15
|
-
openInNewTab?: boolean;
|
|
16
|
-
dialogId?: string;
|
|
17
|
-
ctx?: any;
|
|
18
|
-
}
|
|
19
|
-
declare const _default: React.NamedExoticComponent<ILinkListProps>;
|
|
20
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SearchResults 搜索结果组件
|
|
3
|
-
* 展示联网搜索的结果列表
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { ISearchResultsResult } from '../../../types';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface ISearchResultsProps extends ISearchResultsResult {
|
|
9
|
-
dialogId?: string;
|
|
10
|
-
ctx?: any;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: React.NamedExoticComponent<ISearchResultsProps>;
|
|
13
|
-
export default _default;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TaskPlanning 任务规划组件
|
|
3
|
-
* 展示有序的任务计划列表
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { ITaskPlanningResult } from '../../../types';
|
|
7
|
-
export interface ITaskPlanningProps extends ITaskPlanningResult {
|
|
8
|
-
dialogId?: string;
|
|
9
|
-
ctx?: any;
|
|
10
|
-
}
|
|
11
|
-
declare const _default: React.NamedExoticComponent<ITaskPlanningProps>;
|
|
12
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ToolCall 工具调用组件
|
|
3
|
-
* 展示工具调用的代码和参数
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { IToolCallResult } from '../../../types';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface IToolCallProps extends IToolCallResult {
|
|
9
|
-
dialogId?: string;
|
|
10
|
-
ctx?: any;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: React.NamedExoticComponent<IToolCallProps>;
|
|
13
|
-
export default _default;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ToolResult 工具结果组件
|
|
3
|
-
* 展示工具调用的返回结果
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { IToolResultResult } from '../../../types';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export interface IToolResultProps extends IToolResultResult {
|
|
9
|
-
dialogId?: string;
|
|
10
|
-
ctx?: any;
|
|
11
|
-
}
|
|
12
|
-
declare const _default: React.NamedExoticComponent<IToolResultProps>;
|
|
13
|
-
export default _default;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TraceV3 组件类型映射配置
|
|
3
|
-
* 将组件类型枚举映射到具体的 React 组件
|
|
4
|
-
*/
|
|
5
|
-
/// <reference types="react" />
|
|
6
|
-
import { TRACE_V3_TYPE_COMPONENT_ENUM } from '../../types';
|
|
7
|
-
/**
|
|
8
|
-
* TraceV3 组件类型映射
|
|
9
|
-
* 包含 V2 的所有组件 + V3 新增组件
|
|
10
|
-
*/
|
|
11
|
-
export declare const TRACE_V3_COMPONENT_MAP: {
|
|
12
|
-
deepThinking: import("react").NamedExoticComponent<import("./DeepThinking").IDeepThinkingProps>;
|
|
13
|
-
taskPlanning: import("react").NamedExoticComponent<import("./TaskPlanning").ITaskPlanningProps>;
|
|
14
|
-
searchResults: import("react").NamedExoticComponent<import("./SearchResults").ISearchResultsProps>;
|
|
15
|
-
toolCall: import("react").NamedExoticComponent<import("./ToolCall").IToolCallProps>;
|
|
16
|
-
toolResult: import("react").NamedExoticComponent<import("./ToolResult").IToolResultProps>;
|
|
17
|
-
businessFlow: import("react").NamedExoticComponent<import("./BusinessFlow").IBusinessFlowProps>;
|
|
18
|
-
infoMissing: import("react").NamedExoticComponent<import("./InfoMissing").IInfoMissingProps>;
|
|
19
|
-
codeBlock: import("react").NamedExoticComponent<import("./CodeBlock").ICodeBlockProps>;
|
|
20
|
-
linkList: import("react").NamedExoticComponent<import("./LinkList").ILinkListProps>;
|
|
21
|
-
rewrite: (props: import("../../../LlmTraceComponents/Rewrite").IRewriteProps) => import("react").JSX.Element;
|
|
22
|
-
questionDisassemble: (props: import("../../../LlmTraceComponents/Disassemble").IDisassembleProps) => import("react").JSX.Element;
|
|
23
|
-
markdown: (props: import("../../../LlmTraceComponents/TraceMarkDown").ITraceMarkDownProps) => import("react").JSX.Element;
|
|
24
|
-
readResource: (props: import("../../../LlmTraceComponents/ReadResource").ITraceMarkDownProps) => import("react").JSX.Element;
|
|
25
|
-
TraceMarkdownWithCard: ({ title, result }: {
|
|
26
|
-
title?: string;
|
|
27
|
-
result?: string;
|
|
28
|
-
}) => import("react").JSX.Element;
|
|
29
|
-
TraceWithAgent: import("react").FC<import("../../../TraceWithAgent").TraceWithAgentProps>;
|
|
30
|
-
InspectionCard: import("react").FC<import("../../../InspectionCard").InspectionCardProps>;
|
|
31
|
-
};
|
|
32
|
-
export { TRACE_V3_TYPE_COMPONENT_ENUM };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* TraceSlide 滑动展示组件
|
|
3
|
-
* 横向布局展示 AI 解读状态
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { TRACE_STATUS_ENUM } from '../../../../constants/traceDataStatus';
|
|
7
|
-
import type { TraceSlideContentItem } from '../../types';
|
|
8
|
-
import './index.scss';
|
|
9
|
-
export interface ITraceSlideProps {
|
|
10
|
-
/** 思考状态 */
|
|
11
|
-
status?: TRACE_STATUS_ENUM;
|
|
12
|
-
/** 思考名称/标题 */
|
|
13
|
-
traceName?: string;
|
|
14
|
-
/** 状态文本 */
|
|
15
|
-
statusText?: string;
|
|
16
|
-
/** 思考过程的详细内容数组(支持 markdown 字符串或复杂组件对象) */
|
|
17
|
-
content?: TraceSlideContentItem[];
|
|
18
|
-
/** 对话 ID */
|
|
19
|
-
dialogId?: string;
|
|
20
|
-
/** 原始数据 */
|
|
21
|
-
originData?: any;
|
|
22
|
-
/** 外部组件注入 */
|
|
23
|
-
traceExternalRenderType?: {
|
|
24
|
-
[key: string]: React.ComponentType<any>;
|
|
25
|
-
};
|
|
26
|
-
/** 是否包含 InspectionCard */
|
|
27
|
-
hasInspectionCard?: boolean;
|
|
28
|
-
}
|
|
29
|
-
declare const _default: React.NamedExoticComponent<ITraceSlideProps>;
|
|
30
|
-
export default _default;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 管理所有 Group 的折叠状态
|
|
3
|
-
*/
|
|
4
|
-
import type { ITraceSecondItem } from '../types';
|
|
5
|
-
interface UseGroupCollapseReturn {
|
|
6
|
-
groupCollapseMap: Record<string, boolean>;
|
|
7
|
-
toggleGroup: (key: string) => void;
|
|
8
|
-
expandAll: () => void;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* useGroupCollapse Hook
|
|
12
|
-
* @param traceData Trace 数据
|
|
13
|
-
* @param traceFinished 整体 trace 是否已完成
|
|
14
|
-
* @param hasInspectionCard 是否包含巡检卡片
|
|
15
|
-
* @returns Group 折叠状态和切换函数
|
|
16
|
-
*/
|
|
17
|
-
export declare const useGroupCollapse: (traceData: ITraceSecondItem[], traceFinished: boolean, hasInspectionCard?: boolean) => UseGroupCollapseReturn;
|
|
18
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 管理所有 Item 的折叠状态
|
|
3
|
-
*/
|
|
4
|
-
import type { ITraceSecondItem } from '../types';
|
|
5
|
-
interface UseItemCollapseReturn {
|
|
6
|
-
itemCollapseMap: Record<string, boolean>;
|
|
7
|
-
toggleItem: (key: string) => void;
|
|
8
|
-
userToggledItems: Set<string>;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* useItemCollapse Hook
|
|
12
|
-
* @param traceData Trace 数据
|
|
13
|
-
* @param traceFinished 整体 trace 是否已完成
|
|
14
|
-
* @param hasInspectionCard 是否包含 InspectionCard
|
|
15
|
-
* @returns Item 折叠状态和切换函数
|
|
16
|
-
*/
|
|
17
|
-
export declare const useItemCollapse: (traceData: ITraceSecondItem[], traceFinished: boolean, hasInspectionCard: boolean) => UseItemCollapseReturn;
|
|
18
|
-
export {};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 管理折叠/展开动画
|
|
3
|
-
*/
|
|
4
|
-
interface UseTraceAnimationReturn {
|
|
5
|
-
animationClass: string;
|
|
6
|
-
shouldRender: boolean;
|
|
7
|
-
}
|
|
8
|
-
/**
|
|
9
|
-
* useTraceAnimation Hook
|
|
10
|
-
* @param collapsed 是否折叠
|
|
11
|
-
* @param duration 动画时长(ms)
|
|
12
|
-
* @returns 动画类名和是否应该渲染
|
|
13
|
-
*/
|
|
14
|
-
export declare const useTraceAnimation: (collapsed: boolean, duration?: number) => UseTraceAnimationReturn;
|
|
15
|
-
export {};
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 管理整体 Trace 的折叠状态
|
|
3
|
-
*/
|
|
4
|
-
import type { ITrace } from '../types';
|
|
5
|
-
interface UseTraceCollapseReturn {
|
|
6
|
-
collapsed: boolean;
|
|
7
|
-
toggle: () => void;
|
|
8
|
-
setCollapsed: (collapsed: boolean) => void;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* useTraceCollapse Hook
|
|
12
|
-
* @param trace Trace 数据
|
|
13
|
-
* @param hasInspectionCard 是否包含 InspectionCard
|
|
14
|
-
* @returns 折叠状态和切换函数
|
|
15
|
-
*/
|
|
16
|
-
export declare const useTraceCollapse: (trace?: ITrace, hasInspectionCard?: boolean) => UseTraceCollapseReturn;
|
|
17
|
-
export {};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* LlmTraceV3 主组件
|
|
3
|
-
* 思考链路展示组件 V3 版本
|
|
4
|
-
*/
|
|
5
|
-
import React from 'react';
|
|
6
|
-
import type { ILlmTraceV3Props } from './types';
|
|
7
|
-
import './index.scss';
|
|
8
|
-
export type { ITrace, ITraceSecondItem, ITraceThirdItem, ILlmTraceV3Props, ITraceHeaderProps, ITraceGroupProps, ITraceItemProps, ITraceStatusIconProps, TraceRenderMode, } from './types';
|
|
9
|
-
export { TRACE_V3_TYPE_COMPONENT_ENUM } from './types';
|
|
10
|
-
declare const _default: React.NamedExoticComponent<ILlmTraceV3Props>;
|
|
11
|
-
export default _default;
|