pub struct BundledSkill {
pub files: Vec<SkillFile>,
}Expand description
A skill bundled inside a tool binary (via include_str! or similar).
Fields§
§files: Vec<SkillFile>Implementations§
Source§impl BundledSkill
impl BundledSkill
Sourcepub fn from_files(files: Vec<SkillFile>) -> Self
pub fn from_files(files: Vec<SkillFile>) -> Self
Construct from a list of files (e.g. assembled by the embedding tool from
include_str! or include_bytes! calls).
Sourcepub fn single_md(content: &str) -> Self
pub fn single_md(content: &str) -> Self
Convenience constructor for the common single-SKILL.md case.
Builds a bundle containing exactly one file at path SKILL.md with the
given content. Use from_files when the skill includes additional files.
Sourcepub fn has_skill_md(&self) -> bool
pub fn has_skill_md(&self) -> bool
Returns true when the bundle contains a SKILL.md at the root level
(i.e. rel_path == "SKILL.md").
Auto Trait Implementations§
impl Freeze for BundledSkill
impl RefUnwindSafe for BundledSkill
impl Send for BundledSkill
impl Sync for BundledSkill
impl Unpin for BundledSkill
impl UnsafeUnpin for BundledSkill
impl UnwindSafe for BundledSkill
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