move render_node() to memory.rs
This commit is contained in:
parent
4b4271f618
commit
3e0c6b039f
2 changed files with 7 additions and 8 deletions
|
|
@ -91,3 +91,10 @@ impl MemoryNode {
|
|||
out
|
||||
}
|
||||
}
|
||||
|
||||
/// Render a node to a string: content + deduped footer links.
|
||||
/// Used by both the CLI command and agent placeholders.
|
||||
pub fn render_node(store: &Store, key: &str) -> Option<String> {
|
||||
crate::hippocampus::memory::MemoryNode::from_store(store, key)
|
||||
.map(|node| node.render())
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue