jan/web/app/_models/Conversation.ts
Louis 5fc1ba7067
feature: @janhq/plugin-core module & plugins update (#321)
* @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>
2023-10-14 15:59:28 +07:00

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;
};