pub struct ContentMatch(pub String);Expand description
Stop when LLM output text contains a literal pattern.
Tuple Fields§
§0: StringTrait Implementations§
Source§impl StopPolicy for ContentMatch
impl StopPolicy for ContentMatch
Source§fn evaluate(&self, input: &StopPolicyInput<'_>) -> Option<StopReason>
fn evaluate(&self, input: &StopPolicyInput<'_>) -> Option<StopReason>
Evaluate stop decision from canonical input.
Auto Trait Implementations§
impl Freeze for ContentMatch
impl RefUnwindSafe for ContentMatch
impl Send for ContentMatch
impl Sync for ContentMatch
impl Unpin for ContentMatch
impl UnsafeUnpin for ContentMatch
impl UnwindSafe for ContentMatch
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