defs.rs: remove store/graph params, use typed memory API
resolve_placeholders() and run_agent() no longer take &Store. All placeholders now use async memory_render/memory_links/memory_query directly. The "siblings" placeholder uses Vec<LinkInfo> for ranking neighbors by link_strength * node_weight. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
598f0112a4
commit
419bb222b5
4 changed files with 19 additions and 26 deletions
|
|
@ -405,7 +405,7 @@ pub async fn run_one_agent(
|
|||
let mut all_keys: Vec<String> = keys.to_vec();
|
||||
for step in &def.steps {
|
||||
let (prompt, extra_keys) = defs::resolve_placeholders(
|
||||
&step.prompt, store, keys, count,
|
||||
&step.prompt, keys, count,
|
||||
).await;
|
||||
all_keys.extend(extra_keys);
|
||||
resolved_steps.push(prompts::ResolvedStep {
|
||||
|
|
@ -420,7 +420,7 @@ pub async fn run_one_agent(
|
|||
batch
|
||||
} else {
|
||||
let effective_count = def.count.unwrap_or(count);
|
||||
defs::run_agent(store, &def, effective_count, &Default::default()).await?
|
||||
defs::run_agent(&def, effective_count, &Default::default()).await?
|
||||
};
|
||||
|
||||
// Base memory tools + extras from agent def (matching unconscious.rs pattern)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue