pub enum CorrectionStrategy {
Retry {
max_attempts: u32,
},
Skip,
Alternative {
replacement_subtask: String,
},
Decompose {
new_subtasks: Vec<String>,
},
UserIntervention {
action: String,
},
AdjustParameters {
new_params: Value,
},
}Expand description
纠错策略
Variants§
Implementations§
Source§impl CorrectionStrategy
impl CorrectionStrategy
Sourcepub fn debug_name(&self) -> &'static str
pub fn debug_name(&self) -> &'static str
获取策略名称(用于调试输出)
Trait Implementations§
Source§impl Clone for CorrectionStrategy
impl Clone for CorrectionStrategy
Source§fn clone(&self) -> CorrectionStrategy
fn clone(&self) -> CorrectionStrategy
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 CorrectionStrategy
impl Debug for CorrectionStrategy
Source§impl<'de> Deserialize<'de> for CorrectionStrategy
impl<'de> Deserialize<'de> for CorrectionStrategy
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 CorrectionStrategy
impl RefUnwindSafe for CorrectionStrategy
impl Send for CorrectionStrategy
impl Sync for CorrectionStrategy
impl Unpin for CorrectionStrategy
impl UnsafeUnpin for CorrectionStrategy
impl UnwindSafe for CorrectionStrategy
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