* @janhq/plugin-core module * refactor web to use exported services from module * refactor data-plugin to provide DAL & move model logics to model management plugin * model-management in TS * add ci auto package, increate version, and publish to npm repository * chore: storage operations * chore: hybrid data-plugin esm & cjs module * chore: PouchDB Driver * chore: documentation --------- Co-authored-by: Hien To <hien@jan.ai> Co-authored-by: Service Account <service@jan.ai>
19 lines
360 B
TypeScript
19 lines
360 B
TypeScript
export interface Conversation {
|
|
_id?: string;
|
|
modelId?: string;
|
|
name?: string;
|
|
image?: string;
|
|
message?: 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;
|
|
};
|