addContextMemory method
Add a text snippet to context memory
Implementation
void addContextMemory(String text) {
if (text.trim().isEmpty) {
throw Exception("❌ Context text cannot be empty.");
}
_contextMemory.add(text);
}
Add a text snippet to context memory
void addContextMemory(String text) {
if (text.trim().isEmpty) {
throw Exception("❌ Context text cannot be empty.");
}
_contextMemory.add(text);
}