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;
|
||||
}
|
||||
};
|
||||
let (system_prompt, personality) = match crate::config::reload_for_model(&app, &app.prompts.other) {
|
||||
Ok(r) => r,
|
||||
Err(e) => {
|
||||
dbglog!("[unconscious] config: {}", e);
|
||||
auto.steps = orig_steps;
|
||||
self.agents[idx].auto = auto;
|
||||
return;
|
||||
}
|
||||
};
|
||||
// Unconscious agents have self-contained prompts — no standard context.
|
||||
let system_prompt = String::new();
|
||||
let personality = Vec::new();
|
||||
|
||||
let client = crate::agent::api::ApiClient::new(base_url, api_key, model);
|
||||
let agent = crate::agent::Agent::new(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue