> This page is for version Latest (v0.4.0) (default).
> For other versions, use one of these documentation indexes:
> - Latest (v0.4.0) (default): https://docs.nvidia.com/nemo/switchyard/latest/llms.txt
> - Dev: https://docs.nvidia.com/nemo/switchyard/dev/llms.txt

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.nvidia.com/nemo/switchyard/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.nvidia.com/nemo/switchyard/_mcp/server.

# Decision Questions

For the integration flow and a request example, read **[Decision Model-Related Protocols](/nemo/switchyard/integrate-switchyard/switchyard-protocols/decision-model-related-protocols)**.
For result interpretation and provider response mappings, continue to
**[Decision Answers](/nemo/switchyard/reference/protocols/decision-models/answers)**.

System One is a common API for open decision models, including Jev.
[`SystemOneClient`](https://docs.rs/switchyard-llm-client/0.4.0/switchyard_llm_client/struct.SystemOneClient.html) uses `/v1/systemone`; [`OpenAiDecisionClient`](https://docs.rs/switchyard-llm-client/0.4.0/switchyard_llm_client/struct.OpenAiDecisionClient.html) uses
[`/v1/decisions`](https://developers.openai.com/api/reference/resources/decisions/methods/create).
Both accept [`DecisionRequest`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.DecisionRequest.html).

## Request fields \[#request-fields]

| Protocol field and type                                                                                                                                                                     | Meaning                                                                | System One                      | OpenAI Decisions                                                   |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- | ------------------------------- | ------------------------------------------------------------------ |
| [`DecisionRequest.model: Option<ModelId>`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.DecisionRequest.html#structfield.model)                            | Selected decision model. The HTTP adapters require it before sending.  | `model`                         | `model`                                                            |
| [`DecisionRequest.input: Value`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.DecisionRequest.html#structfield.input)                                      | Shared conversation, application state, or other material to evaluate. | JSON-valued `state`             | Text-valued `input`; structured values are serialized as JSON text |
| [`DecisionRequest.questions: BTreeMap<String, DecisionQuestion>`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.DecisionRequest.html#structfield.questions) | Independent questions keyed by stable IDs.                             | `questions` object, keyed by ID | `questions[]`, with each ID in `name`                              |
| [`DecisionQuestion.instructions: Value`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.DecisionQuestion.html#structfield.instructions)                      | Instructions for one question.                                         | JSON-valued `instructions`      | Text-valued `instructions`; structured values become JSON text     |
| [`DecisionQuestion.kind: DecisionKind`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.DecisionQuestion.html#structfield.kind)                               | Expected Boolean, choice, or rubric-score answer.                      | Question `type` and `criteria`  | Question `type`, with `choices` or `levels` where applicable       |

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 \[#question-kinds]

| Kind and fields                                                                                                                                                                                                                                                             | Contract                                                                                            | System One                                                           | OpenAI Decisions                                                                                        |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
| [`DecisionKind::Boolean`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/enum.DecisionKind.html#variant.Boolean) with `true_description: Option<Value>` and `false_description: Option<Value>`                                                      | Ask for a Boolean judgment or probability of true. Descriptions define the two answers when needed. | `type: "noul"`; descriptions in `criteria.true` and `criteria.false` | `type: "predicate"`; descriptions are included in instruction text because there are no separate fields |
| [`DecisionKind::Choice`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/enum.DecisionKind.html#variant.Choice) with [`options: Vec<ChoiceOption>`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.ChoiceOption.html) | Declare a nonempty list of options with unique IDs, preserving their order in the protocol.         | `type: "choice"`; `criteria` maps option IDs to descriptions         | `type: "choice"`; `choices[]` carries `value` and optional `description`                                |
| [`DecisionKind::Score`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/enum.DecisionKind.html#variant.Score) with `levels: Vec<Value>`                                                                                                              | Declare at least two levels, ordered low to high and indexed from zero.                             | `type: "score"`; `criteria` is the level array                       | `type: "score"`; `levels[].label` carries each level's text                                             |
| [`ChoiceOption.id: String`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.ChoiceOption.html#structfield.id)                                                                                                                                 | Stable ID used by the selected answer and any distribution.                                         | Key in `criteria`                                                    | `choices[].value`                                                                                       |
| [`ChoiceOption.description: Option<Value>`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.ChoiceOption.html#structfield.description)                                                                                                        | Optional meaning when the ID alone is insufficient.                                                 | JSON-valued description; absent description becomes null             | Text description when supplied; structured values become JSON text                                      |

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 \[#construction-and-validation]

The fields are public. Constructing or deserializing a [`DecisionRequest`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.DecisionRequest.html) 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 \[#provider-adapters]

The [System One implementation](https://github.com/NVIDIA-NeMo/Switchyard/blob/v0.4.0/crates/libsy-llm-client/src/system_one.rs)
and [OpenAI Decisions implementation](https://github.com/NVIDIA-NeMo/Switchyard/blob/v0.4.0/crates/libsy-llm-client/src/openai_decisions.rs)
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`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/client/trait.RoutedDecisionClient.html) is an optional shared client interface. The
**[guide's direct call handling](/nemo/switchyard/integrate-switchyard/switchyard-protocols/decision-model-related-protocols#own-the-conversion)**
shows the application boundary; **[Decision Answers](/nemo/switchyard/reference/protocols/decision-models/answers)** covers
the response contract.