generated from google-gemini/aistudio-repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
35 lines (32 loc) · 761 Bytes
/
types.ts
File metadata and controls
35 lines (32 loc) · 761 Bytes
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
export interface IkeaSuggestion {
productName: string;
reason: string;
}
export interface ClutterItem {
item: string;
value: string;
suggestion: 'Keep' | 'Sell' | 'Trash' | 'Donate';
}
export interface RoomAnalysis {
cleanliness: number;
clutter: number;
damage: number;
totalScore: number;
bluntComment: string;
cleanlinessFeedback: string;
clutterFeedback: string;
damageFeedback: string;
tidyingInstructions: string[];
ikeaSuggestions?: IkeaSuggestion[];
clutterBreakdown?: ClutterItem[];
}
export interface AnalysisResult {
analysis: RoomAnalysis;
originalImage: string;
generatedImage?: string;
usageMetadata?: {
promptTokenCount: number;
candidatesTokenCount: number;
totalTokenCount: number;
};
}