pub struct SkillsConfig { /* private fields */ }skills only.Expand description
What SkillCatalog::discover scans and
the bounds it keeps to.
Sources are read operator directories first, then project directories, each in the order given and each directory’s skills in name order, so the catalog does not depend on the file system’s listing order. When two skills share a name the first is kept.
Implementations§
Source§impl SkillsConfig
impl SkillsConfig
Sourcepub const fn new() -> SkillsConfig
pub const fn new() -> SkillsConfig
No sources, and the default bounds.
Sourcepub fn with_source(self, source: SkillSource) -> SkillsConfig
pub fn with_source(self, source: SkillSource) -> SkillsConfig
Adds a directory to scan.
Sourcepub const fn with_max_skills(self, max: usize) -> SkillsConfig
pub const fn with_max_skills(self, max: usize) -> SkillsConfig
Sets how many skills the catalog holds. Skills past it are not read
and one diagnostic says how many were left. Default
DEFAULT_MAX_SKILLS.
Sourcepub const fn with_max_description_chars(self, max: usize) -> SkillsConfig
pub const fn with_max_description_chars(self, max: usize) -> SkillsConfig
Sets how many characters of a description the prompt’s catalog shows.
0 is taken as 1. Default DEFAULT_MAX_DESCRIPTION_CHARS.
Sourcepub const fn with_max_body_bytes(self, max: usize) -> SkillsConfig
pub const fn with_max_body_bytes(self, max: usize) -> SkillsConfig
Sets the largest body kept, in bytes; a skill with a larger one is
skipped. Default DEFAULT_MAX_BODY_BYTES.
Sourcepub const fn with_max_resource_bytes(self, max: usize) -> SkillsConfig
pub const fn with_max_resource_bytes(self, max: usize) -> SkillsConfig
Sets the largest file read_skill_file returns, in bytes. Default
DEFAULT_MAX_RESOURCE_BYTES.
Trait Implementations§
Source§impl Clone for SkillsConfig
impl Clone for SkillsConfig
Source§fn clone(&self) -> SkillsConfig
fn clone(&self) -> SkillsConfig
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 SkillsConfig
impl Debug for SkillsConfig
Source§impl Default for SkillsConfig
impl Default for SkillsConfig
Source§fn default() -> SkillsConfig
fn default() -> SkillsConfig
impl Eq for SkillsConfig
Source§impl PartialEq for SkillsConfig
impl PartialEq for SkillsConfig
impl StructuralPartialEq for SkillsConfig
Auto Trait Implementations§
impl Forget for SkillsConfig
impl Freeze for SkillsConfig
impl Move for SkillsConfig
impl RefUnwindSafe for SkillsConfig
impl Send for SkillsConfig
impl Sync for SkillsConfig
impl Unpin for SkillsConfig
impl UnsafeUnpin for SkillsConfig
impl UnwindSafe for SkillsConfig
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].