jan/web/app/_models/Conversation.ts
2023-10-20 11:29:10 +07:00

21 lines
391 B
TypeScript

export interface Conversation {
_id?: string
modelId?: string
name?: string
image?: string
message?: string
lastMessage?: string
summary?: string
createdAt?: string
updatedAt?: string
}
/**
* Store the state of conversation like fetching, waiting for response, etc.
*/
export type ConversationState = {
hasMore: boolean
waitingForResponse: boolean
error?: Error
}