pub struct SkillRevision {
pub name: String,
pub description: String,
pub body: String,
pub rationale: String,
pub description_changed: bool,
pub ledger: RevisionLedger,
pub metadata: BTreeMap<String, Value>,
}Expand description
A proposed replacement for a skill. Not written anywhere until the caller says so.
Fields§
§name: StringUnchanged from the original, always. See the module docs.
description: StringUnchanged unless description_changed.
body: StringThe revised markdown body.
rationale: StringOne sentence from the model on what it changed and why. Show this to whoever approves the revision.
description_changed: boolTrue when the model justified a new description.
ledger: RevisionLedgerThe bumped ledger, already reflecting this revision.
metadata: BTreeMap<String, Value>Full frontmatter metadata, with every pre-existing key preserved and
experience updated.
Implementations§
Source§impl SkillRevision
impl SkillRevision
pub fn manifest(&self) -> SkillManifest
pub fn to_skill_md(&self) -> String
pub fn validate(&self) -> Result<(), ReviseError>
Trait Implementations§
Source§impl Clone for SkillRevision
impl Clone for SkillRevision
Source§impl Debug for SkillRevision
impl Debug for SkillRevision
Source§impl PartialEq for SkillRevision
impl PartialEq for SkillRevision
impl StructuralPartialEq for SkillRevision
Auto Trait Implementations§
impl Forget for SkillRevision
impl Freeze for SkillRevision
impl RefUnwindSafe for SkillRevision
impl Send for SkillRevision
impl Sync for SkillRevision
impl Unpin for SkillRevision
impl UnsafeUnpin for SkillRevision
impl UnwindSafe for SkillRevision
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