File size: 1,049 Bytes
676fc08 | 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 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | interface Resource {
id: string;
name: string;
type: string;
size: number;
status: "unprocessed" | "processing" | "completed" | "failed";
}
interface FileMeta {
name: string;
size: number;
type: string;
lastModified: number;
}
interface Knowledge {
id: string;
title: string;
content: string;
type: "file" | "url" | "knowledge";
fileMeta?: FileMeta;
url?: string;
createdAt: number;
updatedAt: number;
}
interface ImageSource {
url: string;
description?: string;
}
interface Source {
title?: string;
content?: string;
url: string;
images?: ImageSource[];
}
interface SearchTask {
state: "unprocessed" | "processing" | "completed" | "failed";
query: string;
researchGoal: string;
learning: string;
sources: Source[];
images: ImageSource[];
}
interface PartialJson {
value: JSONValue | undefined;
state:
| "undefined-input"
| "successful-parse"
| "repaired-parse"
| "failed-parse";
}
interface WebSearchResult {
content: string;
url: string;
title?: string;
}
|