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:
parent
1e1f17f775
commit
7c0c376e0f
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue