Decision Questions
For the integration flow and a request example, read Decision Model-Related Protocols. For result interpretation and provider response mappings, continue to Decision Answers.
System One is a common API for open decision models, including Jev.
SystemOneClient uses /v1/systemone; OpenAiDecisionClient uses
/v1/decisions.
Both accept DecisionRequest.
Request fields
Question IDs identify the answers. Preserve them through conversion; an array position alone is not a replacement for an ID. Input is shared across the request, while each question has its own instructions.
Question kinds
Choice questions can contain more than two options. A score is a position on the declared rubric, including fractional positions; it is not an arbitrary numeric measurement. Keep the question’s levels when interpreting the answer.
Construction and validation
The fields are public. Constructing or deserializing a DecisionRequest does
not enforce all question contracts. Supply a selected model for HTTP calls,
valid option IDs, and a correctly ordered rubric. The adapters apply their
format-specific checks; they are not a general validation layer for every
possible backend.
Enums in the protocol’s own serialized form use snake-case type tags with a
data payload. Provider payloads use the mappings above. Serializing the protocol
value directly is therefore not a substitute for a provider adapter.
Provider adapters
The System One implementation and OpenAI Decisions implementation are reference examples of request encoding and response conversion. Both supplied clients make one attempt per call, with a timeout covering the request and reading the body.
You can use either supplied client, or convert an existing client’s data yourself.
RoutedDecisionClient is an optional shared client interface. The
guide’s direct call handling
shows the application boundary; Decision Answers covers
the response contract.