pub trait PromptHandler:
Send
+ Sync
+ 'static {
// Required methods
fn list(&self) -> Pin<Box<dyn Future<Output = Vec<PromptDef>> + Send + '_>>;
fn get(
&self,
name: &str,
args: HashMap<String, String>,
) -> Pin<Box<dyn Future<Output = Result<Vec<PromptMessage>, String>> + Send + '_>>;
}Expand description
Prompt handler trait
Implement this trait to handle prompt operations.
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".