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