Interface: MemoryPolicy
Defined in: packages/agentos/src/orchestration/ir/types.ts:287
Controls how a node reads from and writes to the agent's memory subsystem.
Properties
consistency
consistency:
MemoryConsistencyMode
Defined in: packages/agentos/src/orchestration/ir/types.ts:288
Isolation mode applied for all memory I/O in this node.
read?
optionalread:object
Defined in: packages/agentos/src/orchestration/ir/types.ts:289
Optional filter applied when loading traces before execution.
maxTraces?
optionalmaxTraces:number
Maximum number of traces to surface into GraphState.memory.
minStrength?
optionalminStrength:number
Minimum consolidation strength (0–1) for a trace to be returned.
scope?
optionalscope:GraphMemoryScope
Restrict loaded traces to this scope.
semanticQuery?
optionalsemanticQuery:string
Free-text semantic query used for vector-similarity retrieval.
types?
optionaltypes:MemoryTraceType[]
Restrict loaded traces to these memory types.
write?
optionalwrite:object
Defined in: packages/agentos/src/orchestration/ir/types.ts:301
Optional encoding settings applied when persisting after execution.
autoEncode?
optionalautoEncode:boolean
When true, the runtime auto-encodes node output into a new trace.
scope?
optionalscope:GraphMemoryScope
Scope applied to auto-encoded output.
type?
optionaltype:MemoryTraceType
Trace category applied to auto-encoded output.