From e59dbfd557ea0d11d476281f9d86406374d11240 Mon Sep 17 00:00:00 2001 From: Ishita Date: Fri, 25 Jul 2025 11:10:41 +0530 Subject: [PATCH 1/3] Update MemoryFact.kt --- .../com/example/aisecretary/data/model/MemoryFact.kt | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/app/src/main/kotlin/com/example/aisecretary/data/model/MemoryFact.kt b/app/src/main/kotlin/com/example/aisecretary/data/model/MemoryFact.kt index a18b53d..c565bd7 100644 --- a/app/src/main/kotlin/com/example/aisecretary/data/model/MemoryFact.kt +++ b/app/src/main/kotlin/com/example/aisecretary/data/model/MemoryFact.kt @@ -14,5 +14,9 @@ data class MemoryFact( val id: Long = 0, val key: String, val value: String, - val timestamp: Long = System.currentTimeMillis() -) \ No newline at end of file + val timestamp: Long = System.currentTimeMillis(), + val isReminder: Boolean = false, + val reminderTime: Long? = null, + val isCompleted: Boolean = false, + val reminderType: String? = null +) From 44f1932e5f29257f8ed9cd842ba080fc76339b48 Mon Sep 17 00:00:00 2001 From: Ishita Date: Fri, 25 Jul 2025 11:11:15 +0530 Subject: [PATCH 2/3] Update MemoryManager.kt --- .../example/aisecretary/ai/memory/MemoryManager.kt | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/example/aisecretary/ai/memory/MemoryManager.kt b/app/src/main/kotlin/com/example/aisecretary/ai/memory/MemoryManager.kt index 53efbc1..17db15d 100644 --- a/app/src/main/kotlin/com/example/aisecretary/ai/memory/MemoryManager.kt +++ b/app/src/main/kotlin/com/example/aisecretary/ai/memory/MemoryManager.kt @@ -25,6 +25,15 @@ class MemoryManager( Pattern.compile("(?i)my (.+?) (?:is|are) (.+)") ) + // Patterns to detect reminder statements + private val reminderPatterns = listOf( + Pattern.compile("(?i)remind me (?:at|in) (.+?) to (.+)"), + Pattern.compile("(?i)set reminder (?:for|at) (.+?) (?:to|for) (.+)"), + Pattern.compile("(?i)alert me (?:at|in) (.+?) about (.+)"), + Pattern.compile("(?i)remind me (.+?) (?:to|for) (.+)"), + Pattern.compile("(?i)can you remind me (?:at|in) (.+?) to (.+)") + ) + // Pattern to detect JSON objects in text private val jsonPattern = Pattern.compile("\\{(?:[^{}]|\\{[^{}]*\\})*\\}") @@ -201,4 +210,4 @@ data class MemoryDetectionResult( val memoryKey: String = "", val memoryValue: String = "", val isFromJson: Boolean = false -) \ No newline at end of file +) From e9b1a17d52f5c6022413b580b9866e7384b6b270 Mon Sep 17 00:00:00 2001 From: Ishita Date: Fri, 25 Jul 2025 11:11:39 +0530 Subject: [PATCH 3/3] Update AndroidManifest.xml --- app/src/main/AndroidManifest.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/AndroidManifest.xml b/app/src/main/AndroidManifest.xml index 4c506d4..116c71b 100644 --- a/app/src/main/AndroidManifest.xml +++ b/app/src/main/AndroidManifest.xml @@ -16,10 +16,14 @@ + + - \ No newline at end of file + + +