pub struct VerificationChain {
pub max_retries: usize,
}Expand description
A verification chain: generate with one agent, verify with another.
If verification fails, the generation is retried with feedback.
Fields§
§max_retries: usizeMaximum number of generate-verify cycles.
Implementations§
Source§impl VerificationChain
impl VerificationChain
Sourcepub fn with_max_retries(self, n: usize) -> Self
pub fn with_max_retries(self, n: usize) -> Self
Set the maximum number of retries.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for VerificationChain
impl RefUnwindSafe for VerificationChain
impl Send for VerificationChain
impl Sync for VerificationChain
impl Unpin for VerificationChain
impl UnsafeUnpin for VerificationChain
impl UnwindSafe for VerificationChain
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