pub struct Skill {
pub name: String,
pub uri: String,
pub description: String,
pub source: SkillSource,
pub content: Option<String>,
pub tags: Vec<String>,
pub license: Option<String>,
pub compatibility: Option<String>,
pub metadata: Option<HashMap<String, String>>,
pub allowed_tools: Option<String>,
}Expand description
Unified skill type representing knowledge from any source.
Fields§
§name: StringDisplay name / identifier
uri: StringUnique identifier — API URI for remote, file path for local
description: StringWhen to use this skill
source: SkillSourceWhere this skill comes from
content: Option<String>None = metadata only; Some = full content loaded
Classification tags
license: Option<String>License name or reference to a bundled license file.
compatibility: Option<String>Environment requirements (intended product, system packages, network access, etc.).
metadata: Option<HashMap<String, String>>Arbitrary key-value mapping for additional metadata.
allowed_tools: Option<String>Space-delimited list of pre-approved tools the skill may use. (Experimental)
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
Source§impl From<ListRuleBook> for Skill
impl From<ListRuleBook> for Skill
Source§fn from(rb: ListRuleBook) -> Self
fn from(rb: ListRuleBook) -> Self
Converts to this type from the input type.
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> 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::Request