Skip to main content

Module adaptor

Module adaptor 

Source

Structs§

PackSelection

Functions§

prepare
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.
select_packs
Convenience wrapper — returns only the packs, without trigger evidence.
select_packs_with_evidence
Return packs whose triggers appear in input, together with the matched trigger strings.