Skip to main content

Skill

Trait Skill 

Source
pub trait Skill: Send + Sync {
    // Required methods
    fn name(&self) -> &'static str;
    fn brief_description(&self) -> String;
    fn detailed_description(&self) -> String;
    fn tools(&self) -> Vec<Arc<dyn Tool>>;

    // Provided methods
    fn version(&self) -> &'static str { ... }
    fn tags(&self) -> &[&'static str] { ... }
    fn author(&self) -> &'static str { ... }
}
Expand description

Skill - a reusable capability unit

Each Skill declares:

  • Brief description (resident in system prompt)
  • Detailed description (loaded on demand)
  • Tool collection (auto-registered)

Required Methods§

Source

fn name(&self) -> &'static str

Source

fn brief_description(&self) -> String

Source

fn detailed_description(&self) -> String

Source

fn tools(&self) -> Vec<Arc<dyn Tool>>

Provided Methods§

Source

fn version(&self) -> &'static str

Source

fn tags(&self) -> &[&'static str]

Source

fn author(&self) -> &'static str

Implementors§