Skip to main content

Module decision

Module decision 

Source
Expand description

Provider-neutral decision questions and answers, separate from LLM messages.

Enums use snake-case type tags and a data payload in serialized form. Fields are public; providers and callers are responsible for valid values.

Structs§

ChoiceOption
An identified choice with an optional structured description.
DecisionAnswer
An answer and separate, optional provider confidence.
DecisionQuestion
Instructions and the expected answer shape for one question.
DecisionRequest
Shared context evaluated against independent, named questions.
DecisionResponse
Answers keyed by the matching request’s question IDs.
Probability
Answer probability on a [0, 1] scale.
ProviderConfidence
Provider confidence; its scale and meaning are provider-specific.
ScoreValue
Position in the request’s rubric, including fractional positions.

Enums§

BooleanEstimate
Preserves Boolean-only answers without inventing probability or certainty.
DecisionKind
The answer shape and any options or ordered rubric levels.
DecisionValue
A typed estimate; missing distributions remain unknown.