Skip to content

Questions

Namespace: E2E.Decision

public static class Questions

Upstream’s questions.ts.

Inheritance: object

View source

public const string None = "none"

The fallback every target question carries (upstream’s NONE). A provider that finds no applicable target for an operation the step will not take (OpenAI refuses such a question outright) chooses this instead, and the step reads it as “not this operation”.

Value: string

AssertionRequest(string, string, ActionSpace?, Screenshot?)

Section titled “AssertionRequest(string, string, ActionSpace?, Screenshot?)”
public static DecisionRequest AssertionRequest(string goal, string path, ActionSpace? space, Screenshot? screenshot)

Upstream’s assertionRequest. Builds an assertion verdict request: the goal, the page, and the element table. The screen alone, no history.

Parameters

Name Type Description
goal string
path string
space ActionSpace
screenshot Screenshot

Returns: DecisionRequest

CompletionRequest(StepExecutorContext, ActionSpace, IReadOnlyList<HistoryEntry>, string, Screenshot?, string?)

Section titled “CompletionRequest(StepExecutorContext, ActionSpace, IReadOnlyList<HistoryEntry>, string, Screenshot?, string?)”
public static DecisionRequest CompletionRequest(StepExecutorContext ctx, ActionSpace space, IReadOnlyList<HistoryEntry> history, string path, Screenshot? screenshot, string? origin = null)

Upstream’s completionRequest. Builds a completion-check request: the goal with its non-secret params, the page, and the element table in the state; the actions the step took, with the values it typed, in the question only. The same list in the state was measured on gpt-6-luna to pull a verdict toward inconclusive (holds 0.17 with it, 0.51 without, on a checked checkbox). Rejected done/failed claims are left out (they are not actions), and so is any model reasoning.

Parameters

Name Type Description
ctx StepExecutorContext
space ActionSpace
history IReadOnlyList<HistoryEntry>
path string
screenshot Screenshot
origin string

Returns: DecisionRequest

OperationRequest(StepExecutorContext, ActionSpace, IReadOnlyList<HistoryEntry>, string)

Section titled “OperationRequest(StepExecutorContext, ActionSpace, IReadOnlyList<HistoryEntry>, string)”
public static DecisionRequest OperationRequest(StepExecutorContext ctx, ActionSpace space, IReadOnlyList<HistoryEntry> history, string path)

Upstream’s operationRequest. Builds the operation request: one choice over the operations the screen offers, the controls, and the terminals. Every question states the goal and the recent actions in its own instructions: a classifier reads the question before the evidence.

Parameters

Name Type Description
ctx StepExecutorContext
space ActionSpace
history IReadOnlyList<HistoryEntry>
path string

Returns: DecisionRequest

PointRequest(StepExecutorContext, string, Screenshot, Grid, string, string)

Section titled “PointRequest(StepExecutorContext, string, Screenshot, Grid, string, string)”
public static DecisionRequest PointRequest(StepExecutorContext ctx, string path, Screenshot image, Grid grid, string framing, string target)

Upstream’s pointRequest. Builds a point request: two score questions over the grid on the image, one for the column and one for the row of the control the goal needs (<code class=“paramref”>target</code>, as the text model named it). The probability-weighted means give a point finer than any one cell. The state is the goal alone: the element table adds nothing to where a drawn control sits, and measured on gpt-6-luna it pulls the estimate off. A dependent decision goes in its own request, as the Decisions API asks. Sizes are in the pixels of the image the model sees: the runner hands over a downscaled capture, and a model told CSS sizes for a smaller image lands its estimate short.

Parameters

Name Type Description
ctx StepExecutorContext
path string
image Screenshot
grid Grid
framing string
target string

Returns: DecisionRequest

TargetRequest(StepExecutorContext, ActionSpace, Operation, IReadOnlyList<HistoryEntry>, string)

Section titled “TargetRequest(StepExecutorContext, ActionSpace, Operation, IReadOnlyList<HistoryEntry>, string)”
public static DecisionRequest TargetRequest(StepExecutorContext ctx, ActionSpace space, Operation operation, IReadOnlyList<HistoryEntry> history, string path)

Upstream’s targetRequest. Builds the target request that follows a chosen operation: its target question, the destination question for a drag, and the secret question for a secret fill with two or more secrets declared. A lone target is asked too: its none is how a wrong operation stops, where dispatching it would act on the one element the operation happened to fit. Every target question carries the none fallback, so a provider never has to refuse one. A dependent decision goes in its own request, as the Decisions API asks.

Parameters

Name Type Description
ctx StepExecutorContext
space ActionSpace
operation Operation
history IReadOnlyList<HistoryEntry>
path string

Returns: DecisionRequest