Class: RCrewAI::Memory::LongTermMemory

Inherits:
BaseMemory
  • Object
show all
Defined in:
lib/rcrewai/memory/long_term_memory.rb

Overview

Durable insights promoted from successful executions. Dedupes near-identical insights so the store doesn't fill with paraphrases.

Constant Summary collapse

DEDUPE_THRESHOLD =
0.92

Instance Method Summary collapse

Methods inherited from BaseMemory

#clear!, #count, #initialize, #recall

Constructor Details

This class inherits a constructor from RCrewAI::Memory::BaseMemory

Instance Method Details

#record(text, metadata = {}) ⇒ Object



12
13
14
15
16
# File 'lib/rcrewai/memory/long_term_memory.rb', line 12

def record(text,  = {})
  return nil if duplicate?(text)

  add(text, )
end