pub struct SkillExecutor { /* private fields */ }Implementations§
Source§impl SkillExecutor
impl SkillExecutor
pub fn new(skills_base_dir: PathBuf) -> Self
pub fn with_timeout(self, secs: u64) -> Self
pub async fn execute_skill( &self, skill: &Skill, input: Option<&str>, context: &ExecutionContext, ) -> Result<SkillResult, ExecutorError>
pub async fn get_skill_instructions( &self, skill: &Skill, ) -> Result<String, ExecutorError>
pub async fn get_resource_content( &self, resource_path: &PathBuf, ) -> Result<String, ExecutorError>
Auto Trait Implementations§
impl Freeze for SkillExecutor
impl RefUnwindSafe for SkillExecutor
impl Send for SkillExecutor
impl Sync for SkillExecutor
impl Unpin for SkillExecutor
impl UnsafeUnpin for SkillExecutor
impl UnwindSafe for SkillExecutor
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