Skip to content

Ask<T>

Namespace: E2E.Decision

public sealed class 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.

Type parameters

Name Description
T

Inheritance: object

View source

public required int History { get; init; }

Recent actions the ask sees: a few for a field value, the whole step for a drawn control the model must count taps to.

Value: int

public required string Lead { get; init; }

Value: string

public required Func<JsonElement, T?> Parse { get; init; }

Value: Func<JsonElement, T>

public required JsonElement Schema { get; init; }

Value: JsonElement

public required string System { get; init; }

Value: string