Skip to main content

assemble

Function assemble 

Source
pub fn assemble(base: &str, ctx: &Context, fragments: &[String]) -> String
Expand description

The system prompt: the configured base, then the instruction files, then plugin prompt fragments, then the user model, then memory, then the skills index.

Every file layer is labelled ## <file> (<path>) so the model can tell a project rule from a global one, and so a bad rule is traceable to the path it came from.