Skip to main content

Skill

Struct Skill 

Source
pub struct Skill {
    pub id: String,
    pub name: String,
    pub description: String,
    pub tags: Vec<String>,
    pub tools: Vec<String>,
    pub metadata: HashMap<String, Vec<String>>,
    pub body: String,
}
Expand description

A skill registered for retrieval — the on-demand analog of a crate::Tool.

name, description, and tags drive ranking (see [crate::skill_indexing]). tags are author-declared labels and task phrases (“frontend”, “login form”) folded into the BM25 text so a terse intent prompt matches the skill. tools are the ids of tools the body’s instructions call — an explicit dependency edge, not indexed; the gateway pulls them into the search_capabilities tools bucket so the agent gets a skill and the tools it needs in one turn instead of a second search. metadata is free-form, non-indexed context for higher layers — e.g. {"stacks": ["react"]} for the push-path ranker to boost/filter by project context, deliberately not matched as query terms. body is the dispatch payload and is also not indexed, so a long body never skews relevance.

Fields§

§id: String§name: String§description: String§tags: Vec<String>§tools: Vec<String>§metadata: HashMap<String, Vec<String>>§body: String

Auto Trait Implementations§

§

impl Freeze for Skill

§

impl RefUnwindSafe for Skill

§

impl Send for Skill

§

impl Sync for Skill

§

impl Unpin for Skill

§

impl UnsafeUnpin for Skill

§

impl UnwindSafe for Skill

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.