Picks
Namespace: E2E.Decision
public static class PicksUpstream’s picks.ts.
Inheritance: object
Methods
Section titled “Methods”Describe(Decision)
Section titled “Describe(Decision)”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
Gated(Decision, Gates)
Section titled “Gated(Decision, Gates)”public static bool Gated(Decision decision, Gates gates)Upstream’s gated.
Parameters
| Name | Type | Description |
|---|---|---|
decision |
Decision | |
gates |
Gates |
Returns: bool
Invalid(string)
Section titled “Invalid(string)”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
Need(Decision?, string)
Section titled “Need(Decision?, string)”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<T>
VerdictOf(Decision?, Gates)
Section titled “VerdictOf(Decision?, Gates)”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