Skip to content

Text

Namespace: E2E.Decision

public static class Text

Upstream’s text.ts.

Inheritance: object

View source

public static Ask<DrawnFieldAnswer> DrawnField { get; }

The drawn field to fill next and the exact string to enter, in one ask: the field as a short visual description the point questions locate, the text as TextAsk takes it from the goal (upstream’s DRAWN_FIELD).

Value: Ask&lt;DrawnFieldAnswer&gt;

public static Ask<PathsAnswer> Paths { get; }

The project-relative paths to attach to a file input; empty when the goal supplies none (upstream’s PATHS).

Value: Ask&lt;PathsAnswer&gt;

public static Ask<TargetAnswer> Target { get; }

The drawn control to tap next, as a short visual description the point questions then locate (upstream’s TARGET). A decision model picks among offered choices; which key of a drawn keypad comes next is the text model’s call.

Value: Ask&lt;TargetAnswer&gt;

public static Ask<TextAnswer> TextAsk { get; }

The exact string to enter in a field; empty or null when the goal supplies none (upstream’s TEXT).

Value: Ask&lt;TextAnswer&gt;

AskTextAsync<T>(StepExecutorContext, IAgentModel, Ask<T>, FieldInput, CancellationToken)

Section titled “AskTextAsync<T>(StepExecutorContext, IAgentModel, Ask<T>, FieldInput, CancellationToken)”
public static Task<T> AskTextAsync<T>(StepExecutorContext ctx, IAgentModel model, Ask<T> spec, FieldInput input, CancellationToken cancellationToken = default)

Upstream’s askText. One structured call to the text model, recorded against the step budget and mapped onto the runner’s error codes. Never called for password fields; the harness still authorizes every path an upload names.

Type parameters

Name Description
T

Parameters

Name Type Description
ctx StepExecutorContext
model IAgentModel
spec Ask&lt;T&gt;
input FieldInput
cancellationToken CancellationToken

Returns: Task<T>