defs.rs: convert seed placeholder to use resolve_tool

Uses the existing tool infrastructure instead of direct store access.

Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
Kent Overstreet 2026-04-13 01:49:22 -04:00
parent c688b812ef
commit b863f77998

View file

@ -224,9 +224,9 @@ fn resolve(
let mut text = String::new(); let mut text = String::new();
let mut result_keys = Vec::new(); let mut result_keys = Vec::new();
for key in keys { for key in keys {
if let Some(rendered) = crate::hippocampus::memory::render_node(store, key) { if let Some(r) = resolve_tool(&format!("memory_render {}", key)) {
if !text.is_empty() { text.push_str("\n\n---\n\n"); } if !text.is_empty() { text.push_str("\n\n---\n\n"); }
text.push_str(&format!("## {}\n\n{}", key, rendered)); text.push_str(&format!("## {}\n\n{}", key, r.text));
result_keys.push(key.clone()); result_keys.push(key.clone());
} }
} }