mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Combine the output logs of the same operator together #3221 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
This commit is contained in:
@ -13,6 +13,7 @@ export enum MessageEventType {
|
||||
MessageEnd = 'message_end',
|
||||
WorkflowFinished = 'workflow_finished',
|
||||
UserInputs = 'user_inputs',
|
||||
NodeLogs = 'node_logs',
|
||||
}
|
||||
|
||||
export interface IAnswerEvent<T> {
|
||||
@ -42,12 +43,25 @@ export interface IMessageData {
|
||||
content: string;
|
||||
}
|
||||
|
||||
export interface ILogData extends INodeData {
|
||||
logs: {
|
||||
name: string;
|
||||
result: string;
|
||||
args: {
|
||||
query: string;
|
||||
topic: string;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
export type INodeEvent = IAnswerEvent<INodeData>;
|
||||
|
||||
export type IMessageEvent = IAnswerEvent<IMessageData>;
|
||||
|
||||
export type IInputEvent = IAnswerEvent<IInputData>;
|
||||
|
||||
export type ILogEvent = IAnswerEvent<ILogData>;
|
||||
|
||||
export type IChatEvent = INodeEvent | IMessageEvent;
|
||||
|
||||
export type IEventList = Array<IChatEvent>;
|
||||
|
||||
Reference in New Issue
Block a user