pub struct HotCache {
pub plan: Option<ExecutionPlan>,
pub trie: Option<PredictionTrieNode>,
pub agent_hints_default: Option<AgentHints>,
pub acg_profiles: HashMap<String, StabilityAnalysisResult>,
pub acg_profile_observation_counts: HashMap<String, u32>,
pub acg_stability: Option<StabilityAnalysisResult>,
pub acg_observation_count: u32,
}Expand description
In-memory cache of adaptive artifacts needed on the hot path.
The adaptive runtime keeps this structure in an std::sync::RwLock so
intercepts and event-processing tasks can exchange recently learned plans,
trie state, and Adaptive Cache Governor (ACG) summaries without hitting the
configured backend on every request.
Fields§
§plan: Option<ExecutionPlan>Current execution plan used for tool parallelism hints.
trie: Option<PredictionTrieNode>Prediction trie used to derive default latency sensitivity hints.
agent_hints_default: Option<AgentHints>Default agent-level hints computed from the prediction trie.
acg_profiles: HashMap<String, StabilityAnalysisResult>Per-profile ACG stability results keyed by derived profile identifier.
acg_profile_observation_counts: HashMap<String, u32>Observation counts corresponding to entries in Self::acg_profiles.
acg_stability: Option<StabilityAnalysisResult>Aggregate ACG stability result used for warm-first eligibility checks.
acg_observation_count: u32Observation count associated with Self::acg_stability.