pub struct ExitLoopTool;Expand description
Tool that signals a loop agent to exit its loop.
When the model calls this tool, the loop agent’s escalate flag is set, causing it to break out of the current iteration.
Implementations§
Source§impl ExitLoopTool
impl ExitLoopTool
Trait Implementations§
Source§impl Clone for ExitLoopTool
impl Clone for ExitLoopTool
Source§fn clone(&self) -> ExitLoopTool
fn clone(&self) -> ExitLoopTool
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ExitLoopTool
impl Debug for ExitLoopTool
Source§impl Default for ExitLoopTool
impl Default for ExitLoopTool
Source§fn default() -> ExitLoopTool
fn default() -> ExitLoopTool
Returns the “default value” for a type. Read more
Source§impl ToolFunction for ExitLoopTool
impl ToolFunction for ExitLoopTool
Source§fn description(&self) -> &str
fn description(&self) -> &str
Human-readable description of what this tool does.
Source§fn parameters(&self) -> Option<Value>
fn parameters(&self) -> Option<Value>
JSON Schema for the tool’s input parameters, or
None if parameterless.Auto Trait Implementations§
impl Freeze for ExitLoopTool
impl RefUnwindSafe for ExitLoopTool
impl Send for ExitLoopTool
impl Sync for ExitLoopTool
impl Unpin for ExitLoopTool
impl UnsafeUnpin for ExitLoopTool
impl UnwindSafe for ExitLoopTool
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