mirror of
https://github.com/arc53/DocsGPT.git
synced 2025-11-30 09:03:15 +00:00
Adds mock conversation api layer, adds reducers to handle various asyc
state and wires it with conversation UI
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
export type MESSAGE_TYPE = 'QUESTION' | 'ANSWER';
|
||||
export type Status = 'idle' | 'loading' | 'failed';
|
||||
|
||||
export interface Message {
|
||||
text: string;
|
||||
@@ -7,4 +8,11 @@ export interface Message {
|
||||
|
||||
export interface ConversationState {
|
||||
conversation: Message[];
|
||||
status: Status;
|
||||
}
|
||||
|
||||
export interface Answer {
|
||||
answer: string;
|
||||
query: string;
|
||||
result: string;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user