Function build_system_prompt_with_mode_and_autonomy
pub fn build_system_prompt_with_mode_and_autonomy(
workspace_dir: &Path,
model_name: &str,
tools: &[(&str, &str)],
skills: &[Skill],
identity_config: Option<&IdentityConfig>,
bootstrap_max_chars: Option<usize>,
autonomy_config: Option<&RiskProfileConfig>,
native_tool_specs_present: bool,
skills_prompt_mode: SkillsPromptInjectionMode,
compact_context: bool,
max_system_prompt_chars: usize,
inject_memory: bool,
show_tool_calls: bool,
) -> String