Skip to main content

build_skills_injection

Function build_skills_injection 

Source
pub fn build_skills_injection(skills: &[Skill], threshold: usize) -> String
Expand description

Build the skills injection for the system prompt.

Decides between full content and catalog mode based on the number of instruction-kind skills relative to the threshold.

  • instruction_count <= threshold → full content (existing behavior)
  • instruction_count > threshold → lightweight catalog