pub enum ContextSource {
AccessibilityTree,
NativeApi,
Vision,
Cdp,
Ocr,
External,
Merged,
}Expand description
The source that provided a context element.
Variants§
AccessibilityTree
From the accessibility tree (UIA / AXUIElement).
NativeApi
From a native API adapter (SAP, Excel COM, etc.).
Vision
From vision model analysis.
Cdp
From the Chrome DevTools Protocol DOM walk (the Rust browser
adapter or any future browser-DOM-backed source). Distinguished
from NativeApi so downstream consumers (SourceSummary
telemetry, eval scoring, planner prompt) can tell when the
element is browser-DOM-backed and routes through the
dom:*-id JS-click dispatch path rather than native macOS
input.
Ocr
From on-device OCR (macOS Vision VNRecognizeText). A local,
deterministic text-recognition fallback for screen regions with no
accessibility tree (canvas, games, image-only documents) — distinct
from Vision (the slower, non-deterministic VLM) so consumers know the
element came from pixel OCR, not a model’s semantic read.
External
From an arbitrary external stream such as logs, traces, metrics, tickets, database rows, application events, or domain APIs.
Merged
Merged from multiple sources.
Trait Implementations§
Source§impl Clone for ContextSource
impl Clone for ContextSource
Source§fn clone(&self) -> ContextSource
fn clone(&self) -> ContextSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ContextSource
impl Debug for ContextSource
Source§impl<'de> Deserialize<'de> for ContextSource
impl<'de> Deserialize<'de> for ContextSource
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>,
Source§impl PartialEq for ContextSource
impl PartialEq for ContextSource
Source§fn eq(&self, other: &ContextSource) -> bool
fn eq(&self, other: &ContextSource) -> bool
self and other values to be equal, and is used by ==.