pub struct TurnReviewPolicy { /* private fields */ }Expand description
Bounded policy for reviewing internal model turns before side effects.
The repair limit is cumulative across one Agent execution. Repairs consume ordinary model turns and the shared run-tree budget.
Implementations§
Source§impl TurnReviewPolicy
impl TurnReviewPolicy
Sourcepub const fn new(max_repairs: u32) -> Self
pub const fn new(max_repairs: u32) -> Self
Creates an intermediate-only policy with a total repair limit.
Sourcepub const fn with_scope(self, scope: TurnReviewScope) -> Self
pub const fn with_scope(self, scope: TurnReviewScope) -> Self
Selects which model responses enter turn review.
Sourcepub const fn max_repairs(self) -> u32
pub const fn max_repairs(self) -> u32
Returns the maximum number of review-triggered replacement turns.
Sourcepub const fn scope(self) -> TurnReviewScope
pub const fn scope(self) -> TurnReviewScope
Returns the selected internal review scope.
Trait Implementations§
Source§impl Clone for TurnReviewPolicy
impl Clone for TurnReviewPolicy
Source§fn clone(&self) -> TurnReviewPolicy
fn clone(&self) -> TurnReviewPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TurnReviewPolicy
Source§impl Debug for TurnReviewPolicy
impl Debug for TurnReviewPolicy
Source§impl Default for TurnReviewPolicy
impl Default for TurnReviewPolicy
Source§fn default() -> TurnReviewPolicy
fn default() -> TurnReviewPolicy
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TurnReviewPolicy
impl<'de> Deserialize<'de> for TurnReviewPolicy
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for TurnReviewPolicy
Source§impl PartialEq for TurnReviewPolicy
impl PartialEq for TurnReviewPolicy
Source§impl Serialize for TurnReviewPolicy
impl Serialize for TurnReviewPolicy
impl StructuralPartialEq for TurnReviewPolicy
Auto Trait Implementations§
impl Freeze for TurnReviewPolicy
impl RefUnwindSafe for TurnReviewPolicy
impl Send for TurnReviewPolicy
impl Sync for TurnReviewPolicy
impl Unpin for TurnReviewPolicy
impl UnsafeUnpin for TurnReviewPolicy
impl UnwindSafe for TurnReviewPolicy
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.