pub struct ControlTool;Expand description
Agent-callable system control tool. Allows the model to manage session behavior (steering, style, undo) through natural language rather than requiring users to know slash-command syntax.
Actions that mutate agent state return a CMD: prefixed string that the
chat loop intercepts and executes. Read-only actions return results directly.
Trait Implementations§
Source§impl Tool for ControlTool
impl Tool for ControlTool
fn name(&self) -> &str
fn description(&self) -> &str
fn parameters(&self) -> Value
fn execute<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
args: Value,
_ctx: &'life1 ToolContext<'life2>,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Auto Trait Implementations§
impl Freeze for ControlTool
impl RefUnwindSafe for ControlTool
impl Send for ControlTool
impl Sync for ControlTool
impl Unpin for ControlTool
impl UnsafeUnpin for ControlTool
impl UnwindSafe for ControlTool
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