diff --git a/manager_api_new/lib/model/ai_chat_request.dart b/manager_api_new/lib/model/ai_chat_request.dart index 5f1fd79..0b01b00 100644 --- a/manager_api_new/lib/model/ai_chat_request.dart +++ b/manager_api_new/lib/model/ai_chat_request.dart @@ -20,6 +20,7 @@ class AiChatRequest { this.language, this.history = const [], this.isVoice = false, + this.isAutoTriggered = false, }); String? message; @@ -43,6 +44,10 @@ class AiChatRequest { /// true = interaction vocale (lunettes) — prompt audio-friendly, pas de navigation bool? isVoice; + /// true = tour déclenché par le système (mode proactif), pas demandé par le visiteur. + /// Le backend compte les jetons mais ne journalise pas la question : elle n'en est pas une. + bool? isAutoTriggered; + @override bool operator ==(Object other) => identical(this, other) || @@ -101,6 +106,7 @@ class AiChatRequest { json[r'history'] = null; } json[r'isVoice'] = this.isVoice ?? false; + json[r'isAutoTriggered'] = this.isAutoTriggered ?? false; return json; }