Skip to main content

Agent Memory Node

DB-backed agent memory using DocumentStore + IndexStore. Reads agent context from flow headers (agent_id). Provides context-window management with compression-on-retrieval, JSONL session logging, and transcript finalization.

Properties

LabelPropertyTypeDescriptionDefault ValueIs Required
Memory KeymemoryKeybotdojo/types/stringagent_memory
Max Context Window (tokens)maxContextWindowbotdojo/types/numberMaximum tokens before pruning oldest messages128000
Model Context Window %modelContextWindowPercentbotdojo/types/numberLimit context to this fraction of the model max (0.0-1.0). Effective limit uses the lower value between this cap and Max Context Window.0.9
Compress PercentagecompressPercentagebotdojo/types/numberStart compressing older messages at this fraction of the context window (0.0-1.0)0.8
Compression Window (chars)maxDefaultWindowbotdojo/types/numberCharacters preserved on each side when compressing a message (middle is truncated)1000
Max Tool Output (chars)maxToolOutputCharsbotdojo/types/numberAuto-compress tool outputs exceeding this character limit on ingest5000
Enable Token CountingenableTokenCountingbotdojo/types/booleanUse tiktoken for accurate token counts (false = char/4 estimate, faster but less precise)false

Output

LabelPropertyTypeDescriptionDefault Value
Memorymemorybotdojo/interface/memoryAgent memory instance backed by DocumentStorenull