Skip to content

E2E.Decision

API reference

Public types in the E2E.Decision namespace.

Type Summary
ActionSpace The element table and the targets bound to it (upstream’s ActionSpace).
Ask<T> One structured ask (upstream’s Ask): the system prompt, how the input is introduced, the answer’s shape, and how far back it reads. Schema is the closed JSON schema the provider is asked to fill, and Parse is what upstream’s zod schema does with the answer: it returns null for one that does not match.
BooleanAnswers One call’s boolean answers and what it spent (upstream’s BooleanAnswers).
Budget Upstream’s budget.ts.
Chosen<T> What a target question settled (upstream’s Chosen): the offered value, with the answer that chose it when one was asked, or why the step cannot go on (Blocked).
Decide Upstream’s decide.ts.
Decision One gated answer: the chosen option, its probability, and the provider confidence. A score answer reads its most probable level as the choice, carries the probability-weighted level as Score, and its probability is the mass on the levels within half a level of that score: a spread over two adjacent columns is a precise position, not an uncertain one.
DecisionAction One action the loop dispatches, with everything its operation needs (upstream’s Action).
DecisionExecutorOptions Options for an executor that acts through a decision model and writes field text with a language model (upstream’s DecisionExecutorOptions).
DecisionFilterOptions Options for a test filter that asks a decision model which tests a change can affect (upstream’s DecisionFilterOptions).
DecisionRequest One decide call’s input (upstream’s DecisionRequest in questions.ts).
Destination One drop destination for drag, keyed like an element (upstream’s Destination).
Dispatch Upstream’s dispatch.ts.
DrawnFieldAnswer The answer of DrawnField: the drawn field and the string to enter in it.
Element One row of the element table the decision model reads (upstream’s Element).
Elements Upstream’s elements.ts. Its free functions live here as members (the class carries the module’s name, as Model and Budget do).
Executor Upstream’s executor.ts.
FieldDescription The field a text ask describes: the element’s label, role, and value (upstream’s FieldInput[‘field’], an inline type there).
FieldInput What the text helpers read: the goal, the page, recent actions, and for a fill, the field (upstream’s FieldInput).
Filter Upstream’s filter.ts.
Gates The gates every answer passes: the selected option’s probability and the provider’s confidence (upstream’s Gates).
Grid A grid over an image: at most ten columns and rows, one score level per column and row (upstream’s Grid). Sizes are in the CSS pixels of the image’s coordinates.
HistoryEntry One step of history the decision model reads (upstream’s HistoryEntry).
Located Where a drawn control is, or why the looks could not say (upstream’s Located): a point, or an uncertainty.
Model Upstream’s model.ts.
ModelNeeds What a factory needs from its decision model, and how its errors name the fix (upstream’s ModelNeeds).
Overlay Upstream’s overlay.ts. A viewport point is an Point, in CSS pixels.
PathsAnswer The answer of Paths: the project-relative paths to attach.
Picks Upstream’s picks.ts.
PointLocator Locates drawn controls on the screenshot and remembers the ones a tap found: three looks per control, the column and row on the plain full screenshot, then again on two ever tighter zoomed crops with a grid drawn on them; a field takes the first look alone. A tap that changed the pixels around it found its control; the same control on the same page is tapped there again with no new looks (upstream’s PointLocator).
Questions Upstream’s questions.ts.
Recorded<T> What one model call came back with: its value, the tokens it used, and the model id the response named (upstream’s Recorded).
Screenshot Pixels as the decision model receives them: the runner’s capture without its masking count (upstream’s Screenshot, Omit<ExecutorPixels, ‘maskedRegionCount’>).
SpaceObservation What the action space reads of the screen (upstream’s SpaceObservation).
Target One target of an operation: the node it acts on, as data. The model only ever names the key (upstream’s Target).
TargetAnswer The answer of Target: a short visual description of the control.
Text Upstream’s text.ts.
TextAnswer The answer of TextAsk: the string to enter, or null when the goal supplies none.
WireNames The names an operation, a control, and a terminal carry in a question and an answer. .NET-only: upstream’s are string unions.
Zoom A zoomed crop: the image, and where its top-left corner sits in the screenshot’s CSS pixels (upstream’s Zoom).
Type Summary
Aim What a point look is after: a control to tap, or a field to type into (upstream’s Aim).
Control Viewport, history, and keyboard controls, offered when the engine declares the verb; dismiss_keyboard only while an on-screen keyboard is showing (upstream’s Control).
Operation Operations the executor offers on elements (upstream’s Operation).
Terminal Terminal choices: the step claims completion, reports a product failure, or gives up (upstream’s Terminal).
Verdict What a verdict question can settle on (upstream’s Verdict).
Type Summary
AskDecision Asks the decision model one request, or nothing once the step budget is spent (upstream’s AskDecision).