pub struct SkillEngine { /* private fields */ }Implementations§
Source§impl SkillEngine
impl SkillEngine
pub fn new() -> Self
pub async fn register_skill(&self, skill: Skill) -> Result<(), Error>
pub async fn get_skill(&self, skill_id: &str) -> Option<Skill>
pub async fn list_skills( &self, category: Option<SkillCategory>, tags: Option<Vec<String>>, ) -> Vec<Skill>
pub async fn search_skills(&self, query: &str) -> Vec<Skill>
pub async fn execute_skill( &self, skill_id: &str, agent_id: String, session_id: String, parameters: HashMap<String, Value>, ) -> Result<String, Error>
pub async fn get_execution(&self, execution_id: &str) -> Option<SkillExecution>
pub async fn cancel_execution(&self, execution_id: &str) -> Result<(), Error>
pub async fn list_executions( &self, agent_id: Option<&str>, ) -> Vec<SkillExecution>
pub async fn get_skill_stats(&self) -> SkillStats
pub async fn init_default_skills(&self) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for SkillEngine
impl !RefUnwindSafe for SkillEngine
impl Send for SkillEngine
impl Sync for SkillEngine
impl Unpin for SkillEngine
impl UnsafeUnpin for SkillEngine
impl !UnwindSafe for SkillEngine
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 more