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§
Sourcefn invoke(&self, name: &str, input: Value) -> Result<Value>
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.
Sourcefn list_skills(&self) -> Vec<SkillDescriptor>
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".