render: use backtick-quoted keys and tool call format in link footer

Links now display as \`key\` instead of bare text, and overflow
shows memory_links() tool call format instead of CLI command.

Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
ProofOfConcept 2026-03-26 14:22:21 -04:00
parent 1e1f17f775
commit 7c0c376e0f

View file

@ -66,10 +66,10 @@ impl MemoryNode {
let total = footer.len();
out.push_str("\n\n---\nLinks:");
for (target, strength) in footer.iter().take(15) {
out.push_str(&format!("\n ({:.2}) {}", strength, target));
out.push_str(&format!("\n ({:.2}) `{}`", strength, target));
}
if total > 15 {
out.push_str(&format!("\n ... and {} more (memory_links key={})",
out.push_str(&format!("\n ... and {} more (memory_links({{\"{}\"}}))",
total - 15, self.key));
}
}