forked from kent/consciousness
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:
parent
c688b812ef
commit
b863f77998
1 changed files with 2 additions and 2 deletions
|
|
@ -224,9 +224,9 @@ fn resolve(
|
|||
let mut text = String::new();
|
||||
let mut result_keys = Vec::new();
|
||||
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"); }
|
||||
text.push_str(&format!("## {}\n\n{}", key, rendered));
|
||||
text.push_str(&format!("## {}\n\n{}", key, r.text));
|
||||
result_keys.push(key.clone());
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue