Skip to main content

prepare

Function prepare 

Source
pub fn prepare(
    system_prompt: &str,
    input: &str,
    packs: &[&'static ContextPack],
) -> (String, String)
Expand description

Augment system_prompt with selected context packs and wrap input in payload tags. Returns (augmented_system_prompt, payload). If no packs are active the system prompt is returned unchanged — output is identical to the pre-adaptor path.