refactors the conversation model from singular messages to queries

consisting of prompt and response
This commit is contained in:
ajaythapliyal
2023-03-05 16:29:10 +05:30
parent 780f5893de
commit 19f807b6c4
5 changed files with 64 additions and 36 deletions

View File

@@ -8,7 +8,7 @@ export interface Message {
}
export interface ConversationState {
conversation: Message[];
queries: Query[];
status: Status;
}
@@ -22,4 +22,5 @@ export interface Query {
prompt: string;
response?: string;
feedback?: FEEDBACK;
error?: string;
}