pub struct Skill {
pub name: String,
pub description: String,
pub prompt: String,
pub arguments: Vec<SkillArgument>,
pub config: Option<SlotConfig>,
pub scope: SkillScope,
}Expand description
A reusable skill template.
Fields§
§name: StringUnique skill name (e.g. “code_review”, “write_tests”).
description: StringHuman-readable description of what this skill does.
prompt: StringPrompt template. Use {arg_name} placeholders for arguments.
arguments: Vec<SkillArgument>Argument definitions (name -> description).
config: Option<SlotConfig>Per-skill config overrides (model, effort, etc.).
scope: SkillScopeWhere this skill is intended to run (advisory).
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Skill
impl<'de> Deserialize<'de> for Skill
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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