pub struct ContextRecoveryPolicy {
pub max_attempts: u32,
pub budget: Duration,
}Expand description
Opt-in limits for transcript recovery after confirmed context rejection. Zero attempts or a zero budget disables recovery. The budget begins at the first rejection, not at the start of an ordinary model request.
Fields§
§max_attempts: u32Maximum mutation/retry attempts per inference boundary.
budget: DurationTotal time allowed for mutation and replacement model generation.
Trait Implementations§
Source§impl Clone for ContextRecoveryPolicy
impl Clone for ContextRecoveryPolicy
impl Copy for ContextRecoveryPolicy
Auto Trait Implementations§
impl Freeze for ContextRecoveryPolicy
impl RefUnwindSafe for ContextRecoveryPolicy
impl Send for ContextRecoveryPolicy
impl Sync for ContextRecoveryPolicy
impl Unpin for ContextRecoveryPolicy
impl UnsafeUnpin for ContextRecoveryPolicy
impl UnwindSafe for ContextRecoveryPolicy
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