replace hardcoded personal names with config values
User and assistant names now come from config.user_name and
config.assistant_name throughout: system prompt, DMN prompts,
debug screen, and all agent files. Agent templates use
{user_name} and {assistant_name} placeholders.
Co-Authored-By: Proof of Concept <poc@bcachefs.org>
This commit is contained in:
parent
1fd4ce05c1
commit
33e45f6ce8
21 changed files with 75 additions and 63 deletions
|
|
@ -809,7 +809,11 @@ pub fn run_agent(
|
|||
let mut all_keys = keys;
|
||||
let mut resolved_steps = Vec::new();
|
||||
for step in &def.steps {
|
||||
let template = step.prompt.replace("{agent_name}", &def.agent);
|
||||
let cfg = crate::config::get();
|
||||
let template = step.prompt
|
||||
.replace("{agent_name}", &def.agent)
|
||||
.replace("{user_name}", &cfg.user_name)
|
||||
.replace("{assistant_name}", &cfg.assistant_name);
|
||||
let (prompt, extra_keys) = resolve_placeholders(&template, store, &graph, &all_keys, count);
|
||||
all_keys.extend(extra_keys);
|
||||
resolved_steps.push(super::prompts::ResolvedStep {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue