pub struct PlanningView {Show 17 fields
pub goal: String,
pub budget: PlanningBudget,
pub screen: PlanningScreen,
pub elements: Vec<PlanningElement>,
pub adapter_facts: Vec<AdapterFactRef>,
pub adapter_actions: Vec<AdapterActionRef>,
pub capabilities: Vec<CapabilityRef>,
pub run_progress: RunProgress,
pub memories: Vec<MemoryRef>,
pub knowledge: Vec<KnowledgeRef>,
pub recent_events: Vec<EventRef>,
pub blockers: Vec<Blocker>,
pub anomalies: Vec<AnomalyRef>,
pub evidence: Vec<EvidenceRef>,
pub selection_rationale: Option<String>,
pub omitted_counts: OmittedCounts,
pub adapter_actions_prompt: Option<String>,
}Expand description
Compact, budgeted projection of CEL state for one planner call.
Built by a runtime or selector from current context, capabilities, memory, events, and adapter facts. Consumed by every planner instead of the full uncompressed context.
Fields§
§goal: StringThe natural-language goal the planner is working on.
budget: PlanningBudgetThe budget the caller asked the builder to respect.
screen: PlanningScreenCurrent screen / app / window summary.
elements: Vec<PlanningElement>Selected elements relevant to the goal, after budget compression.
adapter_facts: Vec<AdapterFactRef>Active adapter-backed facts (Numbers cells, browser DOM facts, etc.). Empty until adapters expose typed facts; in PR1a builders may leave this empty if no adapter contributed.
adapter_actions: Vec<AdapterActionRef>Active adapter-backed actions available for this turn. This is the structured, agent-agnostic contract; LLM planners may render it into prompt text, while non-LLM agents can inspect it directly.
capabilities: Vec<CapabilityRef>Capabilities currently wired up (CDP bound, native input enabled, …).
Folds in the boolean flags from the legacy RuntimeCaps.
run_progress: RunProgressWhere in the run the planner is. Lets the planner pace itself —
e.g. stop polishing extraction once most of the budget is spent.
Folds in the legacy RuntimeCaps::steps_used / max_steps.
memories: Vec<MemoryRef>Memories selected by the cognition layer (PR3).
knowledge: Vec<KnowledgeRef>Knowledge records selected by the cognition layer (PR3).
recent_events: Vec<EventRef>Recent events / actions / checkpoints relevant to the goal.
blockers: Vec<Blocker>Things actively blocking forward progress (consent walls, modal dialogs, missing capability, etc.). Promoted to first-class so the planner notices them even if elements are aggressively compressed.
anomalies: Vec<AnomalyRef>Anomalies the runtime flagged (stale state, unexpected window, etc.).
evidence: Vec<EvidenceRef>References back to source records that explain why selection picked what it picked. Filled when a memory / failure / prior outcome influenced the view.
selection_rationale: Option<String>One-sentence rationale explaining the selection. Optional — deterministic selectors may leave this absent.
omitted_counts: OmittedCountsWhat the builder dropped to fit the budget. Lets the planner know the view is compressed and how aggressively.
adapter_actions_prompt: Option<String>Transitional pre-rendered “App-Specific Actions” prompt fragment listing the
{"type": "custom", "adapter": "...", "action": "...", "params": {...}}
shapes for every currently-active adapter. A runtime can build this once
per turn from active adapter manifests and stamp it onto the view.
None means no adapter actions are available to the planner this
turn — empty equivalent. Prefer adapter_actions for new callers;
this field is retained while prompt-only clients migrate.
Trait Implementations§
Source§impl Clone for PlanningView
impl Clone for PlanningView
Source§fn clone(&self) -> PlanningView
fn clone(&self) -> PlanningView
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more