storeRawEpisode method

Memory storeRawEpisode(
  1. String content, {
  2. MemoryType type = MemoryType.episodic,
  3. double strength = 1.0,
  4. List<String>? associatedConceptIds,
})

Stores an arbitrary string as an episodic memory.

Implementation

Memory storeRawEpisode(
  String content, {
  MemoryType type = MemoryType.episodic,
  double strength = 1.0,
  List<String>? associatedConceptIds,
}) {
  final memory = Memory(
    id: _uuid.v4(),
    content: content,
    type: type,
    strength: strength,
    associatedConceptIds: associatedConceptIds ?? [],
  );
  episodic.storeMemory(memory);
  return memory;
}