pub struct Skill {
pub name: String,
pub description: String,
pub instructions: String,
pub resources: HashMap<String, String>,
}Expand description
A named, progressive-disclosure capability package.
descriptionis short and always visible to the model (viaSkillsProvider’s catalog), so the model can judge relevance without paying for the full detail.instructionsis the full guidance for actually using the skill; revealed only after the model callsload_skill(or if the skill was already loaded on a previous turn of the sameSkillsProvider).resourcesare additional named text blobs (reference docs, examples, schemas, …) revealed individually viaread_skill_resource, so a skill can carry more detail than is worth inlining intoinstructionsup front.
Fields§
§name: String§description: String§instructions: String§resources: HashMap<String, String>Implementations§
Source§impl Skill
impl Skill
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