Skip to main content

NativeSkill

Trait NativeSkill 

Source
pub trait NativeSkill: Send + Sync {
    // Required method
    fn execute<'life0, 'async_trait>(
        &'life0 self,
        invocation: SkillInvocation,
    ) -> Pin<Box<dyn Future<Output = Result<Value, SkillExecutionError>> + Send + 'async_trait>>
       where 'life0: 'async_trait,
             Self: 'async_trait;

    // Provided methods
    fn requires_human_approval(&self) -> bool { ... }
    fn executor_kind(&self) -> &'static str { ... }
}

Required Methods§

Source

fn execute<'life0, 'async_trait>( &'life0 self, invocation: SkillInvocation, ) -> Pin<Box<dyn Future<Output = Result<Value, SkillExecutionError>> + Send + 'async_trait>>
where 'life0: 'async_trait, Self: 'async_trait,

Provided Methods§

Source

fn requires_human_approval(&self) -> bool

Source

fn executor_kind(&self) -> &'static str

Implementors§