pub struct SkillLoader { /* private fields */ }Implementations§
Source§impl SkillLoader
impl SkillLoader
pub fn new() -> SkillLoader
pub fn with_base_dir(self, dir: impl Into<PathBuf>) -> SkillLoader
pub fn set_base_dir(&mut self, dir: impl Into<PathBuf>)
pub fn add_search_path(&mut self, path: impl Into<PathBuf>)
pub fn load_refs( &mut self, refs: &[SkillRef], ) -> Result<Vec<SkillDefinition>, AgentError>
pub fn load_ref( &mut self, skill_ref: &SkillRef, ) -> Result<SkillDefinition, AgentError>
pub fn load_by_name( &mut self, name: &str, ) -> Result<SkillDefinition, AgentError>
pub fn load_from_path( &mut self, path: &Path, ) -> Result<SkillDefinition, AgentError>
pub fn get_cached(&self, id: &str) -> Option<&SkillDefinition>
pub fn clear_cache(&mut self)
Trait Implementations§
Source§impl Default for SkillLoader
impl Default for SkillLoader
Source§fn default() -> SkillLoader
fn default() -> SkillLoader
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for SkillLoader
impl RefUnwindSafe for SkillLoader
impl Send for SkillLoader
impl Sync for SkillLoader
impl Unpin for SkillLoader
impl UnsafeUnpin for SkillLoader
impl UnwindSafe for SkillLoader
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> 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 moreCreates a shared type from an unshared type.