mirror of
https://github.com/farcasclaudiu/Flowise.git
synced 2026-06-28 13:00:56 +03:00
Add database entity for chat message feedback
This commit is contained in:
@@ -6,6 +6,11 @@ export enum chatType {
|
||||
INTERNAL = 'INTERNAL',
|
||||
EXTERNAL = 'EXTERNAL'
|
||||
}
|
||||
|
||||
export enum ChatMessageRatingType {
|
||||
THUMBS_UP = 'THUMBS_UP',
|
||||
THUMBS_DOWN = 'THUMBS_DOWN'
|
||||
}
|
||||
/**
|
||||
* Databases
|
||||
*/
|
||||
@@ -38,6 +43,16 @@ export interface IChatMessage {
|
||||
createdDate: Date
|
||||
}
|
||||
|
||||
export interface IChatMessageFeedback {
|
||||
id: string
|
||||
content?: string
|
||||
chatflowid: string
|
||||
chatId: string
|
||||
messageId: string
|
||||
rating: ChatMessageRatingType
|
||||
createdDate: Date
|
||||
}
|
||||
|
||||
export interface ITool {
|
||||
id: string
|
||||
name: string
|
||||
|
||||
Reference in New Issue
Block a user