pub struct PlanningRecoverySnapshot {Show 18 fields
pub outcome: PlanningOutcome,
pub request_id: Option<String>,
pub request_fingerprint: Option<u64>,
pub research_closed: bool,
pub requests_used: u8,
pub cycle: u32,
pub latest_request: String,
pub evidence: Vec<String>,
pub best_draft: Option<String>,
pub best_draft_defects: Option<usize>,
pub validation_report: Option<String>,
pub response_class: Option<PlanningResponseClass>,
pub guard_reason: Option<String>,
pub provider: String,
pub model: String,
pub input_prompt_shown: bool,
pub model_selection_pending: bool,
pub targeted_research: Option<String>,
}Expand description
Complete bounded checkpoint for one planning request and its explicit retry cycles.
Fields§
§outcome: PlanningOutcome§request_id: Option<String>Headless task identity prevents replaying another request’s draft or allowance.
request_fingerprint: Option<u64>Full headless prompt/instructions identity; bounded display text is not sufficient.
research_closed: boolOnce closed, automatic continuations cannot reopen research.
requests_used: u8Model requests admitted in this cycle: one synthesis and two corrections.
cycle: u32Increased only by an explicit human retry, clarification, or model selection.
latest_request: String§evidence: Vec<String>Bounded public tool evidence; private reasoning is never stored here.
best_draft: Option<String>§best_draft_defects: Option<usize>§validation_report: Option<String>§response_class: Option<PlanningResponseClass>§guard_reason: Option<String>Runtime-owned guard cause retained independently of concise human summaries.
provider: String§model: String§input_prompt_shown: boolPrevents repeated automatic presentation of the same exhausted incident.
model_selection_pending: boolOpens the existing picker at the next idle interaction boundary.
targeted_research: Option<String>One explicitly requested research batch for newly missing clarification facts.
Implementations§
Source§impl PlanningRecoverySnapshot
impl PlanningRecoverySnapshot
Sourcepub const MAX_REQUESTS: u8 = 3
pub const MAX_REQUESTS: u8 = 3
One synthesis and at most two corrections, shared across continuations.
Sourcepub fn admit_request(&mut self) -> bool
pub fn admit_request(&mut self) -> bool
Admit one tool-free request without reopening research or replenishing allowance.
Sourcepub fn begin_explicit_cycle(&mut self)
pub fn begin_explicit_cycle(&mut self)
Called only after an explicit human retry, clarification, or model selection.
Trait Implementations§
Source§impl Clone for PlanningRecoverySnapshot
impl Clone for PlanningRecoverySnapshot
Source§impl Debug for PlanningRecoverySnapshot
impl Debug for PlanningRecoverySnapshot
Source§impl Default for PlanningRecoverySnapshot
impl Default for PlanningRecoverySnapshot
Source§impl<'de> Deserialize<'de> for PlanningRecoverySnapshotwhere
PlanningRecoverySnapshot: Default,
impl<'de> Deserialize<'de> for PlanningRecoverySnapshotwhere
PlanningRecoverySnapshot: Default,
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>,
impl Eq for PlanningRecoverySnapshot
Source§impl JsonSchema for PlanningRecoverySnapshot
impl JsonSchema for PlanningRecoverySnapshot
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreSource§impl PartialEq for PlanningRecoverySnapshot
impl PartialEq for PlanningRecoverySnapshot
Source§impl Serialize for PlanningRecoverySnapshot
impl Serialize for PlanningRecoverySnapshot
impl StructuralPartialEq for PlanningRecoverySnapshot
Auto Trait Implementations§
impl Freeze for PlanningRecoverySnapshot
impl RefUnwindSafe for PlanningRecoverySnapshot
impl Send for PlanningRecoverySnapshot
impl Sync for PlanningRecoverySnapshot
impl Unpin for PlanningRecoverySnapshot
impl UnsafeUnpin for PlanningRecoverySnapshot
impl UnwindSafe for PlanningRecoverySnapshot
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.