Function build_system_prompt_with_mode_and_effective_tools
pub fn build_system_prompt_with_mode_and_effective_tools(
workspace_dir: &Path,
model_name: &str,
tools: &[(&str, &str)],
is_tool_available: impl Fn(&str) -> bool,
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,
shell_profile: Option<&ShellProfile>,
) -> StringExpand description
Build the system prompt with the effective callable tool names supplied by the turn’s assembled registry. The tool descriptions remain separately filtered for the prompt surface, while skill callable metadata uses this name set as its availability source of truth.