Skip to main content

SkillHandler

Trait SkillHandler 

Source
pub trait SkillHandler: Send + Sync {
    // Required method
    fn invoke(&self, input: Value) -> Result<Value>;
}
Expand description

Handler invoked after input schema validation succeeds.

Required Methods§

Source

fn invoke(&self, input: Value) -> Result<Value>

Run the skill with validated input JSON.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§