pub trait McpPromptsProvider {
// Required methods
fn get_available_prompts(&self) -> Vec<Prompt>;
fn get_prompt_impl(
&self,
request: GetPromptRequestParam,
) -> impl Future<Output = Result<GetPromptResult, Error>> + Send;
}
Expand description
Helper trait for servers with prompts
Required Methods§
fn get_available_prompts(&self) -> Vec<Prompt>
fn get_prompt_impl( &self, request: GetPromptRequestParam, ) -> impl Future<Output = Result<GetPromptResult, Error>> + Send
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.