pub struct RevertTool { /* private fields */ }Expand description
Model-invocable tool that enqueues a revert request between turns.
Construction is gated by BasicAgent::with_revert_tool;
the tool struct itself is pub so that custom agents (e.g. embedded
downstream wrappers) can wire it manually if they share the same
Arc<Mutex<Vec<RevertRequest>>> with AgentLoopConfig::revert_pending.
Implementations§
Source§impl RevertTool
impl RevertTool
Trait Implementations§
Source§impl AgentTool for RevertTool
impl AgentTool for RevertTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
Description for the LLM
Source§fn parameters_schema(&self) -> Value
fn parameters_schema(&self) -> Value
JSON Schema for parameters
Auto Trait Implementations§
impl Freeze for RevertTool
impl RefUnwindSafe for RevertTool
impl Send for RevertTool
impl Sync for RevertTool
impl Unpin for RevertTool
impl UnsafeUnpin for RevertTool
impl UnwindSafe for RevertTool
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