| E2.S1 | Prompt engineering | System prompt + user prompt templates, evidence-based mapping

| E2.S2 | Generate endpoint | `POST /api/behandelplan/generate` retourneert JSON, < 8 sec response
| E2.S3 | AI event logging | Calls loggen naar `ai_events` tabel

new file:   app/api/behandelplan/generate/route.ts
modified:   docs/specs/behandelplan/bouwplan-behandelplan-v1.md
modified:   docs/templates/bouwplan_template.md
new file:   lib/ai/behandelplan-prompt.ts
new file:   lib/ai/intervention-mapping.ts
modified:   lib/supabase/database.types.ts
This commit is contained in:
colinislit
2025-12-04 09:27:12 +01:00
parent 621e1c90f9
commit ac98070fe4
6 changed files with 810 additions and 22 deletions

View File

@@ -655,6 +655,7 @@ export type Database = {
end_date: string | null
id: string
kindcheck_data: Json | null
life_domains: Json | null
notes: string | null
patient_id: string
psychologist_id: string | null
@@ -670,6 +671,7 @@ export type Database = {
end_date?: string | null
id?: string
kindcheck_data?: Json | null
life_domains?: Json | null
notes?: string | null
patient_id: string
psychologist_id?: string | null
@@ -685,6 +687,7 @@ export type Database = {
end_date?: string | null
id?: string
kindcheck_data?: Json | null
life_domains?: Json | null
notes?: string | null
patient_id?: string
psychologist_id?: string | null