pub struct SkillRegistry {
pub skills: Vec<Skill>,
}Expand description
A registry of discovered skills, used by the agent loop and commands.
Fields§
§skills: Vec<Skill>Implementations§
Source§impl SkillRegistry
impl SkillRegistry
Sourcepub fn discover() -> Self
pub fn discover() -> Self
Discover and build a registry of all available skills.
Resolved from the ambient environment — use SkillRegistry::discover_in
when the caller has a Paths.
Sourcepub fn discover_in(paths: &Paths) -> Self
pub fn discover_in(paths: &Paths) -> Self
Discover and build a registry for an injected set of paths.
Sourcepub fn auto_invocable_skills(&self) -> Vec<&Skill>
pub fn auto_invocable_skills(&self) -> Vec<&Skill>
Get all skills that can be auto-invoked by the model.
Sourcepub fn format_index_for_prompt(&self) -> String
pub fn format_index_for_prompt(&self) -> String
Format the skill index for injection into the system prompt.
Returns a string listing all available skills with names and descriptions, and compatibility/argument hints for auto-invocable skills.
Sourcepub fn format_skill_content(&self, skill: &Skill) -> String
pub fn format_skill_content(&self, skill: &Skill) -> String
Format the full content of a skill for injection into the system prompt when the skill is active.
Trait Implementations§
Source§impl Clone for SkillRegistry
impl Clone for SkillRegistry
Source§impl Debug for SkillRegistry
impl Debug for SkillRegistry
Source§impl<'de> Deserialize<'de> for SkillRegistry
impl<'de> Deserialize<'de> for SkillRegistry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for SkillRegistry
impl RefUnwindSafe for SkillRegistry
impl Send for SkillRegistry
impl Sync for SkillRegistry
impl Unpin for SkillRegistry
impl UnsafeUnpin for SkillRegistry
impl UnwindSafe for SkillRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more