pub struct McpPromptHandle { /* private fields */ }Expand description
Adapter that exposes a single MCP prompt as a PromptProvider.
Created automatically by McpCapabilityProvider::from_snapshot for each
prompt discovered on the server.
Trait Implementations§
Source§impl PromptProvider for McpPromptHandle
impl PromptProvider for McpPromptHandle
Source§fn list_prompts<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<PromptDescriptor>, CapabilityError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn list_prompts<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = Result<Vec<PromptDescriptor>, CapabilityError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Lists all prompt templates currently available from this provider. Read more
Source§fn get_prompt<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
id: &'life1 PromptId,
args: Value,
_ctx: &'life2 mut CapabilityContext<'life3>,
) -> Pin<Box<dyn Future<Output = Result<PromptContents, CapabilityError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
fn get_prompt<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
id: &'life1 PromptId,
args: Value,
_ctx: &'life2 mut CapabilityContext<'life3>,
) -> Pin<Box<dyn Future<Output = Result<PromptContents, CapabilityError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Renders a prompt template with the given arguments. Read more
Auto Trait Implementations§
impl Freeze for McpPromptHandle
impl !RefUnwindSafe for McpPromptHandle
impl Send for McpPromptHandle
impl Sync for McpPromptHandle
impl Unpin for McpPromptHandle
impl UnsafeUnpin for McpPromptHandle
impl !UnwindSafe for McpPromptHandle
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more