Imroved the ChatData
This commit is contained in:
parent
f870481a7d
commit
04773bb28a
@ -1,14 +1,23 @@
|
||||
import type { RoleDefinition } from "./Roles";
|
||||
|
||||
export interface ChatAttachment {
|
||||
file_name: string;
|
||||
ext: string;
|
||||
base64: string;
|
||||
type?: string;
|
||||
title?: string;
|
||||
category?: string;
|
||||
note?: string;
|
||||
}
|
||||
|
||||
export interface ChatData {
|
||||
type: string;
|
||||
content: string;
|
||||
metadata: {
|
||||
createdAt: string;
|
||||
lastModified: string;
|
||||
sender: string;
|
||||
recipient: string;
|
||||
};
|
||||
timestamp: number;
|
||||
receiver: string;
|
||||
messages: [string];
|
||||
data?: ChatAttachment[];
|
||||
role?: string;
|
||||
ia?: boolean;
|
||||
title?: string;
|
||||
}
|
||||
|
||||
export function isChatData(data: any): data is ChatData {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user