pub struct EditExtension { /* private fields */ }Implementations§
Trait Implementations§
Source§impl Extension for EditExtension
impl Extension for EditExtension
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 EditExtension
impl RefUnwindSafe for EditExtension
impl Send for EditExtension
impl Sync for EditExtension
impl Unpin for EditExtension
impl UnsafeUnpin for EditExtension
impl UnwindSafe for EditExtension
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