mirror of
https://github.com/infiniflow/ragflow.git
synced 2025-12-08 20:42:30 +08:00
### What problem does this PR solve? Feat: Display file references for agent dialogues #3221 ### Type of change - [x] New Feature (non-breaking change which adds functionality)
This commit is contained in:
@ -1,4 +1,5 @@
|
||||
import { Authorization } from '@/constants/authorization';
|
||||
import { IReferenceObject } from '@/interfaces/database/chat';
|
||||
import { BeginQuery } from '@/pages/agent/interface';
|
||||
import api from '@/utils/api';
|
||||
import { getAuthorization } from '@/utils/authorization-util';
|
||||
@ -43,6 +44,10 @@ export interface IMessageData {
|
||||
content: string;
|
||||
}
|
||||
|
||||
export interface IMessageEndData {
|
||||
reference: IReferenceObject;
|
||||
}
|
||||
|
||||
export interface ILogData extends INodeData {
|
||||
logs: {
|
||||
name: string;
|
||||
@ -58,11 +63,13 @@ export type INodeEvent = IAnswerEvent<INodeData>;
|
||||
|
||||
export type IMessageEvent = IAnswerEvent<IMessageData>;
|
||||
|
||||
export type IMessageEndEvent = IAnswerEvent<IMessageEndData>;
|
||||
|
||||
export type IInputEvent = IAnswerEvent<IInputData>;
|
||||
|
||||
export type ILogEvent = IAnswerEvent<ILogData>;
|
||||
|
||||
export type IChatEvent = INodeEvent | IMessageEvent;
|
||||
export type IChatEvent = INodeEvent | IMessageEvent | IMessageEndEvent;
|
||||
|
||||
export type IEventList = Array<IChatEvent>;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user