-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
74 lines (65 loc) · 1.58 KB
/
types.ts
File metadata and controls
74 lines (65 loc) · 1.58 KB
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
63
64
65
66
67
68
69
70
71
72
73
74
export enum Role {
USER = 'user',
MODEL = 'model',
SYSTEM = 'system'
}
export enum ResearchTier {
ASSOCIATE = 'Associate/Entry',
EXPERIENCED = 'Experienced/Manager',
PARTNER = 'Partner/Executive',
GENERAL = 'General/Firm-wide'
}
export type ModelId = 'gemini-2.5-flash' | 'gemini-3-pro-preview';
export type SynthesisMode = 'query' | 'user_note' | 'assistant_note';
export type ExportFormat = 'markdown' | 'txt' | 'json';
export type InferenceLevel = 'strict' | 'cautious' | 'moderate' | 'bold';
export interface GroundingSource {
title: string;
uri: string;
}
export interface Message {
id: string;
role: Role;
text: string;
timestamp: Date;
isThinking?: boolean;
sources?: GroundingSource[];
suggestedActions?: string[];
action?: 'calibrate';
}
export interface ResearchItem {
id: string;
refId: number;
title?: string;
content: string;
sourceUrl?: string;
sourceTitle?: string;
sources?: GroundingSource[];
actor: 'user' | 'model';
respondsToRefId?: number;
tier: ResearchTier;
timestamp: Date;
notes?: string;
type: 'question' | 'insight' | 'user_note';
}
export interface UserIdentity {
firstName: string;
lastName: string;
}
export interface GuidanceConfig {
inferenceLevel: InferenceLevel;
customInstructions: string;
formatPreference: string;
depthPreference: string;
}
export interface SessionData {
version: string;
timestamp: string;
sessionStartTime: string;
userIdentity: UserIdentity;
messages: Message[];
researchItems: ResearchItem[];
modelId: ModelId;
nextRefId: number;
guidanceConfig?: GuidanceConfig;
}