Skip to main content

Module memory_parser

Module memory_parser 

Source
Expand description

Markdown parser for the memories file format.

Parses .ralph/agent/memories.md into a vector of Memory structs. The format uses:

  • ## Section headers to denote memory types
  • ### mem-{id} headers for individual memories
  • > content blockquotes for memory content
  • <!-- tags: ... | created: ... --> HTML comments for metadata

Functionsยง

parse_memories
Parse a memories markdown file into a vector of Memory structs.