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