pub struct StopOnTool(pub String);Expand description
Stop when a specific tool is called by the LLM.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl StopPolicy for StopOnTool
impl StopPolicy for StopOnTool
Source§fn evaluate(&self, input: &StopPolicyInput<'_>) -> Option<StoppedReason>
fn evaluate(&self, input: &StopPolicyInput<'_>) -> Option<StoppedReason>
Evaluate stop decision. Return
Some(StoppedReason) to terminate.Auto Trait Implementations§
impl Freeze for StopOnTool
impl RefUnwindSafe for StopOnTool
impl Send for StopOnTool
impl Sync for StopOnTool
impl Unpin for StopOnTool
impl UnwindSafe for StopOnTool
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