pub struct Skill {
pub name: String,
pub description: String,
pub dir: PathBuf,
pub body: String,
pub source_file: PathBuf,
}Expand description
A loaded skill ready to be advertised to the model.
Fields§
§name: StringCanonical identifier, taken from frontmatter name or file name.
Used as the argument to the skill tool.
description: StringShort one-line description shown in the system prompt.
dir: PathBufAbsolute path to the skill directory.
body: StringFull markdown body (without frontmatter).
source_file: PathBufThe source .md file path (SKILL.md or other .md file).
Implementations§
Trait Implementations§
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> 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