pub struct ConfidenceThresholds {
pub act_immediately: f64,
pub act_and_log: f64,
pub act_cautiously: f64,
}Expand description
Confidence thresholds for agent behavior.
Fields§
§act_immediately: f64Above this: act immediately (default 0.9).
act_and_log: f64Above this: act and log for review (default 0.7).
act_cautiously: f64Above this: act cautiously, verify result (default 0.5). Below this threshold: pause and notify user.
Implementations§
Source§impl ConfidenceThresholds
impl ConfidenceThresholds
Sourcepub fn behavior_for(&self, confidence: f64) -> ConfidenceBehavior
pub fn behavior_for(&self, confidence: f64) -> ConfidenceBehavior
Determine behavior for a given confidence score.
Trait Implementations§
Source§impl Clone for ConfidenceThresholds
impl Clone for ConfidenceThresholds
Source§fn clone(&self) -> ConfidenceThresholds
fn clone(&self) -> ConfidenceThresholds
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 moreSource§impl Debug for ConfidenceThresholds
impl Debug for ConfidenceThresholds
Source§impl Default for ConfidenceThresholds
impl Default for ConfidenceThresholds
Source§impl<'de> Deserialize<'de> for ConfidenceThresholds
impl<'de> Deserialize<'de> for ConfidenceThresholds
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
Auto Trait Implementations§
impl Freeze for ConfidenceThresholds
impl RefUnwindSafe for ConfidenceThresholds
impl Send for ConfidenceThresholds
impl Sync for ConfidenceThresholds
impl Unpin for ConfidenceThresholds
impl UnsafeUnpin for ConfidenceThresholds
impl UnwindSafe for ConfidenceThresholds
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