pub struct DebugProtocolErrorPrompt;Expand description
Protocol error debugging steps.
Trait Implementations§
Source§impl PromptHandler for DebugProtocolErrorPrompt
impl PromptHandler for DebugProtocolErrorPrompt
Source§fn handle<'life0, 'async_trait>(
&'life0 self,
args: HashMap<String, String>,
_extra: RequestHandlerExtra,
) -> Pin<Box<dyn Future<Output = Result<GetPromptResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn handle<'life0, 'async_trait>(
&'life0 self,
args: HashMap<String, String>,
_extra: RequestHandlerExtra,
) -> Pin<Box<dyn Future<Output = Result<GetPromptResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Generate a prompt with the given arguments.
Source§fn metadata(&self) -> Option<PromptInfo>
fn metadata(&self) -> Option<PromptInfo>
Get prompt metadata including description and arguments schema.
Returns None to use default empty metadata.
Auto Trait Implementations§
impl Freeze for DebugProtocolErrorPrompt
impl RefUnwindSafe for DebugProtocolErrorPrompt
impl Send for DebugProtocolErrorPrompt
impl Sync for DebugProtocolErrorPrompt
impl Unpin for DebugProtocolErrorPrompt
impl UnsafeUnpin for DebugProtocolErrorPrompt
impl UnwindSafe for DebugProtocolErrorPrompt
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