forked from kent/consciousness
unconscious: don't load standard context — prompts are self-contained
Unconscious agent definitions already include {{tool: memory_render
core-personality}} etc. Loading standard context via reload_for_model
duplicated those nodes. Now they get empty system_prompt and
personality — everything comes from the agent definition.
Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
bc73ccc1da
commit
b646221787
1 changed files with 3 additions and 9 deletions
|
|
@ -273,15 +273,9 @@ impl Unconscious {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
let (system_prompt, personality) = match crate::config::reload_for_model(&app, &app.prompts.other) {
|
// Unconscious agents have self-contained prompts — no standard context.
|
||||||
Ok(r) => r,
|
let system_prompt = String::new();
|
||||||
Err(e) => {
|
let personality = Vec::new();
|
||||||
dbglog!("[unconscious] config: {}", e);
|
|
||||||
auto.steps = orig_steps;
|
|
||||||
self.agents[idx].auto = auto;
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
};
|
|
||||||
|
|
||||||
let client = crate::agent::api::ApiClient::new(base_url, api_key, model);
|
let client = crate::agent::api::ApiClient::new(base_url, api_key, model);
|
||||||
let agent = crate::agent::Agent::new(
|
let agent = crate::agent::Agent::new(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue