Skip to main content

Module experience

Module experience 

Source
Expand description

The experience core: memory for tree-structured, highly repetitive observations such as agent trajectories over accessibility trees.

One observation step is interned into a hash-consed term arena, cut into regions that the existing lexical index searches, and compared with the previous step of its episode to update a table of what each action changes. Equal structure is stored once; every holder of a node is counted, so purging an episode frees exactly what no other episode shares.

Re-exports§

pub use self::form::Control;
pub use self::form::ControlOption;
pub use self::target::ActionRecord;
pub use self::target::ActionTarget;
pub use self::target::ActionTargets;
pub use self::target::OccurrenceNode;
pub use self::target::OccurrenceRef;
pub use self::target::Resolution;
pub use self::target::TargetRole;
pub use self::target::Unresolved;
pub use self::tree::parse_indented;
pub use self::tree::Action;
pub use self::tree::TreeNode;

Modules§

diff
Row-aware differences between two observations of one episode.
enablement
Conditions under which an action takes effect, learned as a version space.
form
Form state: the controls of one observation (text fields, selects, checkboxes, buttons) with their values and selected options, parsed at ingest from the accessibility-tree text of the step and rendered at query time as a compact table before the page text.
procedures
Reusable procedures learned from episodes, and their revision by later observations.
store
The durable experience store: one Experience with a write-ahead journal and a snapshot in a store directory (docs/file-format/index.md).
target
The authoritative record of an action and the occurrence it targeted.
tree
Input tree type, the accessibility-tree text parser, page templates and action labels.

Structs§

EffectHit
An action-effect row found by search. id is the stable index id, x{template}:{action}.
EffectView
EpisodeHit
EpisodeView
Experience
ExperienceConfig
Bounds on what one observation may contain; trees come from outside the process.
ExperienceStats
Observation
One observation step to ingest.
ObservationInput
An observation with the accessibility-tree text of its page, one [id] role 'name' props node per line. With ExperienceConfig::form_state the controls are parsed from the text at ingest and stored with the step; the text itself is not stored.
OwnedObservation
An owned observation, the form that arrives as JSON.
PathEntry
Provenance
PurgeReport
RegionHit
TemplateInfo

Enums§

ExperienceError
Ingested

Constants§

ACCESSIBILITY_TREE_KEY
The JSON key of an observation that carries the accessibility-tree text of its page.
SNAPSHOT_FILE

Functions§

check_observation_value
Checks the bounds of a JSON observation (depth, node count, string and id bytes) by walking the value, so an oversized tree is refused before it is copied into a TreeNode.
detect_observation
Recognizes a tree-structured observation by its shape: an object holding an episode string, a step number and a tree object. Anything else is an ordinary memory.
is_observation_object
is_observation_shape for an object already in hand.
is_observation_shape
Whether the value has the shape of an observation: an object holding an episode string, a step number and a tree object. It does not check the rest of the fields.
rank_fusion_score
The weight a result at 1-based rank carries when ranked lists are merged by reciprocal rank fusion: 1 / (60 + rank). The memory API and the MCP server merge region hits with document hits by this rule, since the two lists come from separate lexical indexes.

Type Aliases§

Result