pub struct SkillManifest {
pub name: String,
pub description: String,
pub disable_model_invocation: bool,
}Expand description
Parsed skill manifest from SKILL.md frontmatter.
Fields§
§name: StringSkill name. Required, non-empty. Lowercase ASCII letters, digits, and hyphens. Maximum 64 characters.
description: StringHuman-readable description. Required, non-empty. Maximum 1024 characters.
disable_model_invocation: boolWhen true, the model should not automatically invoke this skill.
The skill is still available for human-triggered use. Defaults to
false.
Implementations§
Source§impl SkillManifest
impl SkillManifest
Sourcepub fn from_skill_md(
content: &str,
path: &Path,
) -> Result<Self, SkillDiscoveryError>
pub fn from_skill_md( content: &str, path: &Path, ) -> Result<Self, SkillDiscoveryError>
Parse a manifest from the full content of a SKILL.md file.
The content must contain YAML frontmatter between --- delimiters.
Only the frontmatter is parsed; the body is ignored.
Trait Implementations§
Source§impl Clone for SkillManifest
impl Clone for SkillManifest
Source§fn clone(&self) -> SkillManifest
fn clone(&self) -> SkillManifest
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SkillManifest
impl Debug for SkillManifest
Source§impl PartialEq for SkillManifest
impl PartialEq for SkillManifest
Source§fn eq(&self, other: &SkillManifest) -> bool
fn eq(&self, other: &SkillManifest) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SkillManifest
Auto Trait Implementations§
impl Freeze for SkillManifest
impl RefUnwindSafe for SkillManifest
impl Send for SkillManifest
impl Sync for SkillManifest
impl Unpin for SkillManifest
impl UnsafeUnpin for SkillManifest
impl UnwindSafe for SkillManifest
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more