Skip to content

Picks

Namespace: E2E.Decision

public static class Picks

Upstream’s picks.ts.

Inheritance: object

View source

public static string Describe(Decision decision)

Upstream’s describe. How an answer reads in a verdict or a turn: p=0.950, confidence 0.930.

Parameters

Name Type Description
decision Decision

Returns: string

public static bool Gated(Decision decision, Gates gates)

Upstream’s gated.

Parameters

Name Type Description
decision Decision
gates Gates

Returns: bool

public static AgentException Invalid(string message)

Upstream’s invalid. A model answer the request never offered: our validation, never the provider’s text.

Parameters

Name Type Description
message string

Returns: AgentException

public static Decision Need(Decision? answer, string what)

Upstream’s need. Requires an answer the model returned; its absence is our bug or a broken transport.

Parameters

Name Type Description
answer Decision
what string

Returns: Decision

Pick<T>(Decision?, IReadOnlyDictionary<string, T>, Gates, string, string)

Section titled “Pick<T>(Decision?, IReadOnlyDictionary<string, T>, Gates, string, string)”
public static Chosen<T> Pick<T>(Decision? answer, IReadOnlyDictionary<string, T> offered, Gates gates, string what, string operation)

Upstream’s pick. Resolves a target answer against what was offered. A lone offer needs no answer: the request never asked. The model’s none, and an answer under the gates, block the step. Anything the request never offered is MODEL_OUTPUT_INVALID: our validation, never the provider’s text.

Type parameters

Name Description
T

Parameters

Name Type Description
answer Decision
offered IReadOnlyDictionary<string, T>
gates Gates
what string
operation string

Returns: Chosen&lt;T&gt;

public static Verdict VerdictOf(Decision? answer, Gates gates)

Upstream’s verdictOf. The verdict answer, typed, or BelowGate when it fails the gates; a verdict never offered is MODEL_OUTPUT_INVALID.

Parameters

Name Type Description
answer Decision
gates Gates

Returns: Verdict