forked from kent/consciousness
delete rename agent and related code
The organize agents handle renaming as part of their normal work now. Also simplified resolve_placeholders to build graph internally. Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
bd9ce3ed09
commit
7476e9d0db
4 changed files with 5 additions and 191 deletions
|
|
@ -401,12 +401,11 @@ pub fn run_one_agent(
|
|||
// Build prompt batch — either from explicit keys or the agent's query
|
||||
let agent_batch = if let Some(keys) = keys {
|
||||
dbglog!("[{}] targeting: {}", agent_name, keys.join(", "));
|
||||
let graph = store.build_graph();
|
||||
let mut resolved_steps = Vec::new();
|
||||
let mut all_keys: Vec<String> = keys.to_vec();
|
||||
for step in &def.steps {
|
||||
let (prompt, extra_keys) = defs::resolve_placeholders(
|
||||
&step.prompt, store, &graph, keys, count,
|
||||
&step.prompt, store, keys, count,
|
||||
);
|
||||
all_keys.extend(extra_keys);
|
||||
resolved_steps.push(prompts::ResolvedStep {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue