Skip to main content

SkillPort

Trait SkillPort 

Source
pub trait SkillPort: Send + Sync {
    // Required methods
    fn invoke(&self, name: &str, input: Value) -> Result<Value>;
    fn list_skills(&self) -> Vec<SkillDescriptor>;
}
Expand description

Invoke registered skills and list available capabilities.

Required Methods§

Source

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

Invoke name with input. Implementations MUST validate input against the skill’s input_schema before calling the handler.

Source

fn list_skills(&self) -> Vec<SkillDescriptor>

Return descriptors for all registered skills.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§