Store.Memories.Children (fnord v0.8.82)

View Source

Handles children.log file operations for memories. Format: newline-delimited list of child slugs (one per line).

Summary

Functions

Reads children.log from a memory directory. Returns list of child slugs.

Writes children.log for a memory using atomic write. Takes a memory struct.

Writes children.log to a specific path (used by parent operations).

Functions

read(memory_dir)

@spec read(String.t()) :: [String.t()]

Reads children.log from a memory directory. Returns list of child slugs.

write(memory, children)

@spec write(AI.Memory.t(), [String.t()]) :: :ok | {:error, term()}

Writes children.log for a memory using atomic write. Takes a memory struct.

write_path(memory_dir, children)

@spec write_path(String.t(), [String.t()]) :: :ok | {:error, term()}

Writes children.log to a specific path (used by parent operations).