pub struct ParsedSkill {Show 13 fields
pub name: String,
pub description: String,
pub version: Option<String>,
pub license: Option<String>,
pub compatibility: Option<String>,
pub tags: Vec<String>,
pub allowed_tools: Vec<String>,
pub references: Vec<String>,
pub trigger: bool,
pub hint: Option<String>,
pub metadata: HashMap<String, Value>,
pub triggers: Vec<String>,
pub body: String,
}Available on crate feature
skills only.Expand description
A parsed skill before it is assigned an ID and indexed.
Fields§
§name: StringThe unique identifier from the frontmatter or filename.
description: StringDescription of the skill’s purpose.
version: Option<String>Optional versioning string.
license: Option<String>Optional license information.
compatibility: Option<String>Optional compatibility requirements.
Discovery tags.
allowed_tools: Vec<String>Pre-approved tool names.
references: Vec<String>Supporting resource paths.
trigger: boolWhether the skill requires explicit invocation.
hint: Option<String>Guided input hint.
metadata: HashMap<String, Value>Extension metadata.
triggers: Vec<String>File glob patterns for activation triggers.
body: StringThe raw Markdown body content (instructions).
Trait Implementations§
Source§impl Clone for ParsedSkill
impl Clone for ParsedSkill
Source§fn clone(&self) -> ParsedSkill
fn clone(&self) -> ParsedSkill
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ParsedSkill
impl RefUnwindSafe for ParsedSkill
impl Send for ParsedSkill
impl Sync for ParsedSkill
impl Unpin for ParsedSkill
impl UnsafeUnpin for ParsedSkill
impl UnwindSafe for ParsedSkill
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> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message
T in a tonic::RequestCreates a shared type from an unshared type.