File size: 543 Bytes
0c4cf03
 
 
 
 
e943a05
 
0c4cf03
 
 
 
ebac87f
 
 
0c4cf03
 
e943a05
 
 
 
 
0c4cf03
ebac87f
 
 
 
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
import type { ObjectId } from "mongodb";
import type { Conversation } from "./Conversation";
import type { Timestamps } from "./Timestamps";

export interface WebSearch extends Timestamps {
	_id?: ObjectId;
	convId?: Conversation["_id"];

	prompt: string;

	searchQuery: string;
	results: WebSearchSource[];
	context: string;
	contextSources: WebSearchSource[];
}

export interface WebSearchSource {
	title: string;
	link: string;
	hostname: string;
}

export type WebSearchMessageSources = {
	type: "sources";
	sources: WebSearchSource[];
};