pub enum MagenticStallInterventionDecision {
Continue,
Replan {
guidance: Option<String>,
},
Abort,
}Expand description
A human’s decision on a MagenticStallInterventionRequest. Rust analogue
of Python’s _MagenticHumanInterventionReply narrowed to the stall subset
of MagenticHumanInterventionDecision (CONTINUE / REPLAN / GUIDANCE).
Python exposes three stall decisions; this port folds REPLAN and
GUIDANCE into Replan { guidance } — a forced replan
that optionally carries the human’s free-text guidance — and adds an
explicit Abort (which Python’s stall decisions lack). See
the module-level docs for the exact wiring.
Variants§
Continue
Proceed as-is: clear the stall counter and resume the round loop
(Python’s CONTINUE).
Replan
Force a replan via the existing reset path (Python’s REPLAN);
guidance, if present, is appended to the history after the fresh task
ledger as "Human guidance to help with stall: …" (Python’s
GUIDANCE).
Abort
Stop coordinating and synthesize the final answer from the current history.
Implementations§
Source§impl MagenticStallInterventionDecision
impl MagenticStallInterventionDecision
Sourcepub fn continue_as_is() -> MagenticStallInterventionDecision
pub fn continue_as_is() -> MagenticStallInterventionDecision
Continue as-is (clear the stall counter and proceed).
Sourcepub fn replan() -> MagenticStallInterventionDecision
pub fn replan() -> MagenticStallInterventionDecision
Force a replan with no extra guidance.
Sourcepub fn replan_with_guidance(
guidance: impl Into<String>,
) -> MagenticStallInterventionDecision
pub fn replan_with_guidance( guidance: impl Into<String>, ) -> MagenticStallInterventionDecision
Force a replan, appending the given human guidance to the history.
Sourcepub fn abort() -> MagenticStallInterventionDecision
pub fn abort() -> MagenticStallInterventionDecision
Abort and produce the final answer from the current history.
Trait Implementations§
Source§impl Clone for MagenticStallInterventionDecision
impl Clone for MagenticStallInterventionDecision
Source§fn clone(&self) -> MagenticStallInterventionDecision
fn clone(&self) -> MagenticStallInterventionDecision
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more