pub struct WriteExtension { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Extension for WriteExtension
impl Extension for WriteExtension
fn name(&self) -> Cow<'static, str>
Source§fn commands(&self) -> Vec<SlashCommand>
fn commands(&self) -> Vec<SlashCommand>
Slash commands this extension provides (e.g.
/quit, /model).
Built-in commands and extension commands use the same interface.Source§fn before_tool_call<'life0, 'life1, 'async_trait>(
&'life0 self,
_tc: &'life1 ToolCall,
) -> Pin<Box<dyn Future<Output = Option<BlockReason>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn before_tool_call<'life0, 'life1, 'async_trait>(
&'life0 self,
_tc: &'life1 ToolCall,
) -> Pin<Box<dyn Future<Output = Option<BlockReason>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
Called before any tool executes. Return Some(reason) to block.
Source§fn after_tool_call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_tc: &'life1 ToolCall,
_result: &'life2 str,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn after_tool_call<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
_tc: &'life1 ToolCall,
_result: &'life2 str,
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Called after a tool executes. Return Some(text) to replace result.
Auto Trait Implementations§
impl Freeze for WriteExtension
impl RefUnwindSafe for WriteExtension
impl Send for WriteExtension
impl Sync for WriteExtension
impl Unpin for WriteExtension
impl UnsafeUnpin for WriteExtension
impl UnwindSafe for WriteExtension
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