Skip to main content

Module decision

Module decision 

Source
Expand description

Provider-independent typed decision requests and validated answers.

Structs§

DecisionRequest
A bounded, provider-neutral decision request.
DecisionResponse
Complete decision response with one answer per requested question.
DecisionUsage
Token usage reported by a provider, without request or response content.

Enums§

DecisionError
A safe, content-free decision error.
Question
A typed question, independent of any provider wire protocol.
TypedAnswer
Validated answer returned by a decision provider.

Constants§

MAX_CHOICE_OPTIONS
Maximum number of Choice options (lower than the provider’s 255 limit).
MAX_QUESTIONS
Maximum number of independent questions in one request.
MAX_REQUEST_BYTES
Maximum serialized size of the complete request before provider wrapping.
MAX_SCORE_LEVELS
Maximum number of ordered Score levels.
MAX_STATE_BYTES
Maximum serialized state size sent to a decision provider.

Traits§

DecisionEngine
Provider-independent asynchronous decision engine.