pub enum SkillMode {
Always,
Trigger,
Manual,
Globs,
}Expand description
Injection mode for a skill.
Variants§
Always
Inject into system prompt at session start.
Trigger
Auto-load when trigger words appear in the user goal.
Manual
Agent must explicitly call load_skill (current behavior).
Globs
Auto-inject when a tool result references a file path matching one of
the skill’s globs patterns (Goal 318). Each skill is injected at most
once per agent run, tracked by [SkillInjector].
Trait Implementations§
impl StructuralPartialEq for SkillMode
Auto Trait Implementations§
impl Freeze for SkillMode
impl RefUnwindSafe for SkillMode
impl Send for SkillMode
impl Sync for SkillMode
impl Unpin for SkillMode
impl UnsafeUnpin for SkillMode
impl UnwindSafe for SkillMode
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,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.