Skip to main content

ai_agents_runtime/optimization/
skill.rs

1use ai_agents_skills::SkillDefinition;
2
3/// Skill selected by a speculative routing branch before execution commits.
4#[derive(Debug, Clone)]
5pub struct SkillCandidate {
6    pub skill_id: String,
7    pub skill: SkillDefinition,
8}
9
10impl SkillCandidate {
11    pub fn new(skill_id: impl Into<String>, skill: SkillDefinition) -> Self {
12        Self {
13            skill_id: skill_id.into(),
14            skill,
15        }
16    }
17}