addMemory method

bool addMemory(
  1. String source,
  2. String content
)

Add memory content.

Implementation

bool addMemory(String source, String content) {
  if (content.trim().isEmpty) return false;
  return add(MemoryContext(source: source, memoryContent: content));
}