addContextMemory method

void addContextMemory(
  1. String text
)

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);
}