Skip to main content

system_prompt_path

Function system_prompt_path 

Source
pub fn system_prompt_path(
    compose: &Compose,
    h: AgentHandle<'_>,
) -> Option<PathBuf>
Expand description

Resolve the absolute path that SYSTEM_PROMPT_PATH will point at.

  • None role_prompt → None (env line renders as blank).
  • Single source file → <root>/<source> (back-compat, no concat file is written — the operator’s source is the prompt).
  • List form → the materialized concat path under <root>/state/role_prompts/<project>-<agent>.md. The file at that path is produced by write_role_prompt_concat; this helper is pure and only computes the destination.