pub struct EngineHitlPolicy {
pub confidence_threshold: Option<f64>,
pub gated_keys: Vec<ContextKey>,
pub timeout: TimeoutPolicy,
}Expand description
Engine-level HITL policy for gating proposals.
Simpler than gates::hitl::HitlPolicy — works directly with ProposedFact
in the engine’s merge loop. The richer HitlPolicy in the gates module
works with the type-state Proposal<Draft> for the full types layer.
Fields§
§confidence_threshold: Option<f64>Confidence threshold: proposals at or below this trigger HITL.
None means no confidence-based gating.
gated_keys: Vec<ContextKey>ContextKeys whose proposals require HITL approval. Empty means no key-based gating.
timeout: TimeoutPolicyTimeout behavior when human doesn’t respond.
Implementations§
Source§impl EngineHitlPolicy
impl EngineHitlPolicy
Sourcepub fn requires_approval(&self, proposal: &ProposedFact) -> bool
pub fn requires_approval(&self, proposal: &ProposedFact) -> bool
Check if a proposal requires HITL approval.
Trait Implementations§
Source§impl Clone for EngineHitlPolicy
impl Clone for EngineHitlPolicy
Source§fn clone(&self) -> EngineHitlPolicy
fn clone(&self) -> EngineHitlPolicy
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for EngineHitlPolicy
impl RefUnwindSafe for EngineHitlPolicy
impl Send for EngineHitlPolicy
impl Sync for EngineHitlPolicy
impl Unpin for EngineHitlPolicy
impl UnsafeUnpin for EngineHitlPolicy
impl UnwindSafe for EngineHitlPolicy
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