690525:2327 ADR-023-229 dynamic prompt #01

This commit is contained in:
2026-05-25 23:27:33 +07:00
parent 1139e54086
commit 82a0444013
29 changed files with 2468 additions and 770 deletions
+29
View File
@@ -0,0 +1,29 @@
// File: frontend/types/ai-prompts.ts
// Change Log
// - 2026-05-25: Created types for dynamic prompt management (ADR-029)
/**
* Interface สำหรับข้อมูล Prompt Version แต่ละรายการ
*/
export interface AiPrompt {
promptType: string;
versionNumber: number;
template: string;
isActive: boolean;
testResultJson: Record<string, unknown> | null;
manualNote: string | null;
lastTestedAt: string | null;
activatedAt: string | null;
createdAt: string;
}
/**
* Interface สำหรับผลการทดสอบ Sandbox OCR
*/
export interface SandboxResult {
requestPublicId: string;
status: 'processing' | 'completed' | 'failed';
answer?: string;
errorMessage?: string;
completedAt?: string;
}