File size: 557 Bytes
5da61b4
 
82fcab7
2e28042
992a8de
cad3e14
82fcab7
cad3e14
1a14c61
2e28042
 
cad3e14
06e879d
3a01622
06e879d
cad3e14
e6addfc
cad3e14
 
0bfcf81
 
 
af58e08
 
992a8de
d196c64
 
cad3e14
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
import type { ObjectId } from "mongodb";
import type { Message } from "./Message";
import type { Timestamps } from "./Timestamps";
import type { User } from "./User";
import type { Assistant } from "./Assistant";

export interface Conversation extends Timestamps {
	_id: ObjectId;

	sessionId?: string;
	userId?: User["_id"];

	model: string;
	embeddingModel: string;

	title: string;
	rootMessageId?: Message["id"];
	messages: Message[];

	meta?: {
		fromShareId?: string;
	};

	preprompt?: string;
	assistantId?: Assistant["_id"];

	userAgent?: string;
}