-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
50 lines (46 loc) · 1.06 KB
/
types.ts
File metadata and controls
50 lines (46 loc) · 1.06 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
export interface BioAsset {
id: string;
name: string;
sector: string;
sub_sector: string;
city: string;
state: string;
zip_code: string;
lat: number;
lng: number;
waste_tons_yr: number;
search_index: string;
}
export interface ChatMessage {
id: string;
role: 'user' | 'model';
text: string;
isThinking?: boolean;
groundingMetadata?: GroundingMetadata;
}
// Simplified Grounding Metadata types based on API response structure
export interface GroundingMetadata {
groundingChunks?: GroundingChunk[];
}
export interface GroundingChunk {
web?: {
uri: string;
title: string;
};
maps?: {
uri: string;
title: string;
placeAnswerSources?: {
reviewSnippets?: unknown[];
};
};
}
export enum SectorColor {
"Food Manufacturers/Processors" = "#3b82f6", // Blue
"Food Wholesale/Retail" = "#10b981", // Emerald
"Farm" = "#eab308", // Yellow
"Educational Institutions" = "#a855f7", // Purple
"Hospitality" = "#f43f5e", // Rose
"Correctional Facilities" = "#64748b", // Slate
"Healthcare" = "#06b6d4" // Cyan
}