Skip to main content

reattach_skills

Function reattach_skills 

Source
pub fn reattach_skills(
    history: &[Message],
    active: &[ActivatedSkill],
    model: &str,
    context_limit: usize,
    budget: SkillReattachmentBudget,
    options: RenderOptions,
) -> (Vec<Message>, Vec<PromptFragment>)
Expand description

Attach to a request copy only. Persistent history remains body-free, so subsequent compaction cannot summarize obsolete copies of a skill body. Reattachment follows the leading system prompt and any summary messages.