pub struct SkillSource { /* private fields */ }skills only.Expand description
One directory whose subdirectories are skills.
Only the directory’s own children are examined (<dir>/<name>/SKILL.md),
not deeper; names that start with a dot are skipped.
Implementations§
Source§impl SkillSource
impl SkillSource
Sourcepub fn operator(path: impl Into<PathBuf>) -> SkillSource
pub fn operator(path: impl Into<PathBuf>) -> SkillSource
A directory the operator configured. Trusted: its skills’ text is the operator’s own.
Sourcepub fn project(path: impl Into<PathBuf>) -> SkillSource
pub fn project(path: impl Into<PathBuf>) -> SkillSource
A project’s skills directory.
Not read until the operator says so with
with_trusted(true): a skill’s description goes
into the model’s system prompt and its body into the conversation, so a
directory anyone can write to is an instruction channel
(docs/injection-containment.md). Marking it trusted is the operator’s
statement that they accept that. Even then a project’s skill never
replaces an operator’s of the same name, its description is marked as
the project’s in the prompt, and it gets no capability the operator’s
skills lack: allowed-tools is never honoured and scripts/ are
never run.
Sourcepub const fn with_trusted(self, trusted: bool) -> SkillSource
pub const fn with_trusted(self, trusted: bool) -> SkillSource
Whether this directory is read. Operator directories are trusted from the start and project directories are not.
Sourcepub const fn with_follow_symlinks(self, follow: bool) -> SkillSource
pub const fn with_follow_symlinks(self, follow: bool) -> SkillSource
Whether a symbolic link in this directory that leads to a skill directory is followed. Off by default: a link is how a directory someone else controls gets into this one. A followed link still cannot take a file read outside the skill’s own directory.
Sourcepub const fn scope(&self) -> SkillScope
pub const fn scope(&self) -> SkillScope
Where it comes from.
Trait Implementations§
Source§impl Clone for SkillSource
impl Clone for SkillSource
Source§fn clone(&self) -> SkillSource
fn clone(&self) -> SkillSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SkillSource
impl Debug for SkillSource
impl Eq for SkillSource
Source§impl PartialEq for SkillSource
impl PartialEq for SkillSource
impl StructuralPartialEq for SkillSource
Auto Trait Implementations§
impl Forget for SkillSource
impl Freeze for SkillSource
impl Move for SkillSource
impl RefUnwindSafe for SkillSource
impl Send for SkillSource
impl Sync for SkillSource
impl Unpin for SkillSource
impl UnsafeUnpin for SkillSource
impl UnwindSafe for SkillSource
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
fn with_context(self, otel_cx: Context) -> WithContext<Self> ⓘ
§fn with_current_context(self) -> WithContext<Self> ⓘ
fn with_current_context(self) -> WithContext<Self> ⓘ
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
§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> ⓘ
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> ⓘ
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 more§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request§impl<L> LayerExt<L> for L
impl<L> LayerExt<L> for L
§fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
fn named_layer<S>(&self, service: S) -> Layered<<L as Layer<S>>::Service, S>where
L: Layer<S>,
Layered].