mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 00:53:14 +00:00
19 lines
347 B
TypeScript
19 lines
347 B
TypeScript
export type MESSAGE_TYPE = 'QUESTION' | 'ANSWER' | 'ERROR';
|
|
export type Status = 'idle' | 'loading' | 'failed';
|
|
|
|
export interface Message {
|
|
text: string;
|
|
type: MESSAGE_TYPE;
|
|
}
|
|
|
|
export interface ConversationState {
|
|
conversation: Message[];
|
|
status: Status;
|
|
}
|
|
|
|
export interface Answer {
|
|
answer: string;
|
|
query: string;
|
|
result: string;
|
|
}
|