pub enum MagenticPlanReviewDecision {
Approve {
edited_plan: Option<String>,
comments: Option<String>,
},
Revise {
edited_plan: Option<String>,
comments: Option<String>,
},
}Expand description
A human’s decision on a MagenticPlanReviewRequest. Rust analogue of
Python’s _MagenticHumanInterventionReply narrowed to plan review, with
MagenticHumanInterventionDecision.{APPROVE,REVISE} as the two variants.
Both variants accept an optional edited_plan and/or comments, mirroring
Python exactly: either decision may carry a direct plan edit (applied
verbatim, no LLM call) or free-text feedback (fed to
MagenticManager::replan); edited_plan wins if both are set. See the
module-level docs for the full loop semantics.
Variants§
Approve
Accept the plan and proceed into the coordination round loop.
Revise
Ask for another round of planning; the orchestrator re-sends a
MagenticPlanReviewRequest (unless the round limit is exceeded, in
which case it force-proceeds instead).
Implementations§
Source§impl MagenticPlanReviewDecision
impl MagenticPlanReviewDecision
Sourcepub fn approve() -> MagenticPlanReviewDecision
pub fn approve() -> MagenticPlanReviewDecision
Approve the plan as-is.
Sourcepub fn approve_with_edited_plan(
edited_plan: impl Into<String>,
) -> MagenticPlanReviewDecision
pub fn approve_with_edited_plan( edited_plan: impl Into<String>, ) -> MagenticPlanReviewDecision
Approve, replacing the plan text directly (no LLM call).
Sourcepub fn approve_with_comments(
comments: impl Into<String>,
) -> MagenticPlanReviewDecision
pub fn approve_with_comments( comments: impl Into<String>, ) -> MagenticPlanReviewDecision
Approve, first asking the manager to replan with this feedback.
Sourcepub fn revise_with_edited_plan(
edited_plan: impl Into<String>,
) -> MagenticPlanReviewDecision
pub fn revise_with_edited_plan( edited_plan: impl Into<String>, ) -> MagenticPlanReviewDecision
Ask for a revision, replacing the plan text directly (no LLM call) and re-requesting review.
Sourcepub fn revise_with_comments(
comments: impl Into<String>,
) -> MagenticPlanReviewDecision
pub fn revise_with_comments( comments: impl Into<String>, ) -> MagenticPlanReviewDecision
Ask for a revision, having the manager replan with this feedback before re-requesting review.
Trait Implementations§
Source§impl Clone for MagenticPlanReviewDecision
impl Clone for MagenticPlanReviewDecision
Source§fn clone(&self) -> MagenticPlanReviewDecision
fn clone(&self) -> MagenticPlanReviewDecision
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more