render: show plain node keys in link footer, not CLI commands
Links now show just the key name instead of `poc-memory render KEY`. The agent uses memory_render tool calls, not bash commands. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
9127e61c69
commit
9a09a665fb
1 changed files with 2 additions and 2 deletions
|
|
@ -66,10 +66,10 @@ impl MemoryNode {
|
||||||
let total = footer.len();
|
let total = footer.len();
|
||||||
out.push_str("\n\n---\nLinks:");
|
out.push_str("\n\n---\nLinks:");
|
||||||
for (target, strength) in footer.iter().take(15) {
|
for (target, strength) in footer.iter().take(15) {
|
||||||
out.push_str(&format!("\n ({:.2}) `poc-memory render {}`", strength, target));
|
out.push_str(&format!("\n ({:.2}) {}", strength, target));
|
||||||
}
|
}
|
||||||
if total > 15 {
|
if total > 15 {
|
||||||
out.push_str(&format!("\n ... and {} more (`poc-memory graph link {}`)",
|
out.push_str(&format!("\n ... and {} more (memory_links key={})",
|
||||||
total - 15, self.key));
|
total - 15, self.key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue