Skip to main content

Agent Memory Node

warning

This node is in beta and may not be fully tested or documented. Use with caution.

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. Compressed messages include a source reference to the raw JSONL log.

Properties

LabelPropertyTypeDescriptionDefault ValueIs Required
Memory KeymemoryKeybotdojo/types/stringagent_memory
Max Context Window (tokens)maxContextWindowbotdojo/types/numberMaximum tokens before pruning oldest messages128000
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