ai insight rework #1
This commit is contained in:
1 parent
0d960c8153
commit
9d76f54d33
13 files changed
+730
-299
No files matched your search
+15
-7
@@ -228,13 +228,7 @@ export type AIInsight = {
|
||||
export type InsightReportType = 'page' | 'daily' | 'weekly' | 'end_cycle';
|
||||
|
||||
export type InsightTopic =
|
||||
| 'hitung_ayam'
|
||||
| 'berat_ayam'
|
||||
| 'fcr'
|
||||
| 'eef'
|
||||
| 'iot_panel'
|
||||
| 'hitung_karung'
|
||||
| 'dashboard';
|
||||
'hitung_ayam' | 'berat_ayam' | 'fcr' | 'eef' | 'iot_panel' | 'hitung_karung' | 'dashboard';
|
||||
|
||||
export type InsightCitation = {
|
||||
id?: string;
|
||||
@@ -276,6 +270,20 @@ export type InsightCachedParams = {
|
||||
report_period?: string | null;
|
||||
};
|
||||
|
||||
export type InsightJobStage =
|
||||
'queued' | 'starting' | 'grading' | 'retrieving' | 'synthesizing' | 'saving' | 'done' | 'error';
|
||||
|
||||
export type InsightGenerateJob = {
|
||||
job_id: string;
|
||||
status: 'queued' | 'running' | 'done' | 'error';
|
||||
};
|
||||
|
||||
export type InsightJobStatus = InsightGenerateJob & {
|
||||
stage: InsightJobStage;
|
||||
result: InsightApiResponse | null;
|
||||
error: string | null;
|
||||
};
|
||||
|
||||
export type InsightStatusLabel = 'ok' | 'warning' | 'critical' | 'unknown';
|
||||
|
||||
export type InsightStructuredSection = {
|
||||
|
||||
Reference in new issue
Block a user