pub struct SkillManager { /* private fields */ }Expand description
Skill manager instance (convenience wrapper around SkillStore).
Implementations§
Source§impl SkillManager
impl SkillManager
Sourcepub fn with_config(config: SkillStoreConfig) -> Self
pub fn with_config(config: SkillStoreConfig) -> Self
Create a new skill manager with custom configuration.
Sourcepub async fn initialize(&self) -> SkillResult<()>
pub async fn initialize(&self) -> SkillResult<()>
Initialize the manager.
Sourcepub fn store(&self) -> &SkillStore
pub fn store(&self) -> &SkillStore
Get the underlying store.
Sourcepub async fn build_skill_context(&self, _chat_id: Option<&str>) -> String
pub async fn build_skill_context(&self, _chat_id: Option<&str>) -> String
Build system prompt context from all skills.
Trait Implementations§
Source§impl Clone for SkillManager
impl Clone for SkillManager
Source§fn clone(&self) -> SkillManager
fn clone(&self) -> SkillManager
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SkillManager
impl !RefUnwindSafe for SkillManager
impl Send for SkillManager
impl Sync for SkillManager
impl Unpin for SkillManager
impl UnsafeUnpin for SkillManager
impl !UnwindSafe for SkillManager
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