pub struct ReplanContext {
pub proposal_id: String,
pub attempt: u32,
pub failed_actions: Vec<FailedActionSummary>,
pub completed_action_ids: Vec<String>,
pub state_snapshot: HashMap<String, Value>,
pub replans_remaining: u32,
pub original_source: String,
pub original_action_count: usize,
pub original_context: HashMap<String, Value>,
}Expand description
Context provided to the replan callback so the model can generate an alternative.
Fields§
§proposal_id: StringOriginal proposal ID.
attempt: u32Which replan attempt this is (1-indexed; attempt 1 = first replan after initial failure).
failed_actions: Vec<FailedActionSummary>Actions that failed and caused the abort.
completed_action_ids: Vec<String>Action IDs that succeeded before the abort (now rolled back).
state_snapshot: HashMap<String, Value>State snapshot after rollback.
replans_remaining: u32How many replans remain.
original_source: StringOriginal proposal source (model name, agent, etc.).
original_action_count: usizeTotal actions in the original proposal.
original_context: HashMap<String, Value>The original goal/context from the proposal (for generating alternatives).
Trait Implementations§
Source§impl Clone for ReplanContext
impl Clone for ReplanContext
Source§fn clone(&self) -> ReplanContext
fn clone(&self) -> ReplanContext
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 ReplanContext
impl Debug for ReplanContext
Source§impl<'de> Deserialize<'de> for ReplanContext
impl<'de> Deserialize<'de> for ReplanContext
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 ReplanContext
impl RefUnwindSafe for ReplanContext
impl Send for ReplanContext
impl Sync for ReplanContext
impl Unpin for ReplanContext
impl UnsafeUnpin for ReplanContext
impl UnwindSafe for ReplanContext
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more