pub struct RetrievalWindowCandidatePlan {Show 25 fields
pub message_ids_to_archive: Vec<String>,
pub archive_message_count: usize,
pub archive_group_count: usize,
pub archive_user_turn_count: usize,
pub archive_message_tokens: u32,
pub active_message_count: usize,
pub active_state_sha256: String,
pub token_accounting_sha256: String,
pub active_tokens_before: u32,
pub projected_active_tokens_after: u32,
pub context_window_tokens: u32,
pub request_input_limit_tokens: u32,
pub target_tokens: u32,
pub target_usage_percent: u8,
pub min_recent_user_turns: usize,
pub fixed_prompt_tokens: u32,
pub boundary_reclaimable_tokens: u32,
pub system_message_tokens: u32,
pub provider_message_token_override_count: usize,
pub protected_active_tokens: u32,
pub retained_recent_user_turn_count: usize,
pub retained_user_turn_count: usize,
pub oldest_retained_message_id: Option<String>,
pub oldest_retained_user_message_id: Option<String>,
pub incomplete_protocol_group_count: usize,
/* private fields */
}Expand description
Immutable evidence describing a safe retrieval-window archive candidate set.
Fields§
§message_ids_to_archive: Vec<String>Message IDs to archive, in authoritative session order.
archive_message_count: usizeNumber of messages selected for archival.
archive_group_count: usizeNumber of complete logical groups selected, including a preamble group.
archive_user_turn_count: usizeNumber of selected groups anchored by a user message.
archive_message_tokens: u32Tokens represented by message_ids_to_archive.
active_message_count: usizeNumber of active messages observed before candidate selection.
active_state_sha256: StringVersioned digest of every token-relevant active message field and its order at planning time.
token_accounting_sha256: StringVersioned digest of the fixed prompt cost and provider-prepared message token estimate overrides used by this plan.
active_tokens_before: u32Active message plus fixed prompt tokens before candidate selection.
projected_active_tokens_after: u32Projected active tokens after the candidate messages are removed.
context_window_tokens: u32Provider context-window size used for the plan.
request_input_limit_tokens: u32Effective provider request-input limit after output and safety reserves.
target_tokens: u32Effective token target after output/safety reserves are respected.
target_usage_percent: u8Requested target percentage retained for observability.
min_recent_user_turns: usizeConfigured minimum number of newest user turns that must remain active.
fixed_prompt_tokens: u32Provider-visible prompt/tool tokens outside Session.messages.
boundary_reclaimable_tokens: u32Provider-visible tokens reclaimed once by the committed model-context boundary, independently of which ordinary message groups are archived.
system_message_tokens: u32Tokens contributed by active system messages.
provider_message_token_override_count: usizeActive messages whose cost came from provider-prepared estimates.
protected_active_tokens: u32Active message tokens that cannot be selected by this plan.
retained_recent_user_turn_count: usizeNumber of groups retained specifically by the recent-turn floor.
retained_user_turn_count: usizeTotal user-anchored groups projected to remain active.
oldest_retained_message_id: Option<String>Oldest projected retained non-system message, if one remains.
oldest_retained_user_message_id: Option<String>User anchor of the oldest projected retained user turn, if one remains.
incomplete_protocol_group_count: usizeUnsafe protocol groups that constrained selection.
Trait Implementations§
Source§impl Clone for RetrievalWindowCandidatePlan
impl Clone for RetrievalWindowCandidatePlan
Source§impl Debug for RetrievalWindowCandidatePlan
impl Debug for RetrievalWindowCandidatePlan
impl Eq for RetrievalWindowCandidatePlan
impl StructuralPartialEq for RetrievalWindowCandidatePlan
Auto Trait Implementations§
impl Freeze for RetrievalWindowCandidatePlan
impl RefUnwindSafe for RetrievalWindowCandidatePlan
impl Send for RetrievalWindowCandidatePlan
impl Sync for RetrievalWindowCandidatePlan
impl Unpin for RetrievalWindowCandidatePlan
impl UnsafeUnpin for RetrievalWindowCandidatePlan
impl UnwindSafe for RetrievalWindowCandidatePlan
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,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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.