EngineSnapshot
Namespace: E2E.Engine
public sealed record EngineSnapshot : IEquatable<EngineSnapshot>Upstream’s EngineSnapshot (engine/index.ts): what an engine’s observe returns. A snapshot with
TreeUnavailable carries only the root reference and the pixels.
Inheritance: object
Implements: IEquatable<EngineSnapshot>
Constructors
Section titled “Constructors”EngineSnapshot(EngineNode, ViewportSize)
Section titled “EngineSnapshot(EngineNode, ViewportSize)”public EngineSnapshot(EngineNode Root, ViewportSize Viewport)Upstream’s EngineSnapshot (engine/index.ts): what an engine’s observe returns. A snapshot with
TreeUnavailable carries only the root reference and the pixels.
Parameters
| Name | Type | Description |
|---|---|---|
Root |
EngineNode | |
Viewport |
ViewportSize |
Properties
Section titled “Properties”KeyboardVisible
Section titled “KeyboardVisible”public bool? KeyboardVisible { get; init; }Whether an on-screen keyboard is showing, when the engine measured it.
Value: bool?
Location
Section titled “Location”public string? Location { get; init; }Where the surface was when captured, when the platform has a location.
Value: string
MaskedRegionCount
Section titled “MaskedRegionCount”public int? MaskedRegionCount { get; init; }How many regions the engine masked over the secure nodes it saw; the harness checks it covers every secure node. An engine asked for pixels (Pixels) that cannot mask every secure node on screen omits Pixels and still reports the regions it could mask, fewer than the secure nodes, so the session marks the observation MaskingUnproven instead of a missing screenshot.
Value: int?
Pixels
Section titled “Pixels”public ObservationPixels? Pixels { get; init; }The screen’s pixels, when the engine took them.
Value: ObservationPixels
public EngineNode Root { get; init; }Value: EngineNode
public EngineTabs? Tabs { get; init; }The tabs the surface has open, when it has more than one, such as a browser with a tab the app opened. The harness tells the model which tab it reads and how many there are, and the agent switches between them through SwitchTab and closes them through CloseTab. Null with one tab.
Value: EngineTabs
TreeUnavailable
Section titled “TreeUnavailable”public bool TreeUnavailable { get; init; }The semantic tree could not be read; Pixels are the only evidence of the screen.
Value: bool
Truncated
Section titled “Truncated”public bool Truncated { get; init; }True when the engine left nodes out of the tree to stay within its budget.
Value: bool
Viewport
Section titled “Viewport”public ViewportSize Viewport { get; init; }Value: ViewportSize