pub trait AiExtension: Send + Sync {
// Required methods
fn name(&self) -> &str;
fn execute(&self, input: &str) -> Result<String, PluginError>;
}Expand description
AI 能力扩展点
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".