> This page is for version Dev.
> 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 Answers

For the integration flow, read **[Decision Model-Related Protocols](/nemo/switchyard/dev/integrate-switchyard/switchyard-protocols/decision-model-related-protocols)**.
For question IDs, options, and rubric definitions, use **[Decision Questions](/nemo/switchyard/dev/reference/protocols/decision-models/questions)**.

## Response fields \[#response-fields]

[`DecisionResponse.answers`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/struct.DecisionResponse.html#structfield.answers) maps the request's question IDs to [`DecisionAnswer`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/struct.DecisionAnswer.html)
values. Each answer separates its value from optional provider confidence.

| Protocol field and type                                                                                                                                                                                   | Meaning                                                      | System One                                                                                                           | OpenAI Decisions                                                                                                                                                                  |
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [`DecisionResponse.id: Option<String>`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/struct.DecisionResponse.html#structfield.id)                                           | Provider response identifier, when available.                | Optional `id`                                                                                                        | The current adapter reads no response ID and returns none                                                                                                                         |
| [`DecisionResponse.model: Option<ModelId>`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/struct.DecisionResponse.html#structfield.model)                                    | Provider-reported model identifier.                          | Optional `model`                                                                                                     | `model`                                                                                                                                                                           |
| [`DecisionResponse.answers: BTreeMap<String, DecisionAnswer>`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/struct.DecisionResponse.html#structfield.answers)               | Answers matched by question ID.                              | `answers` object                                                                                                     | `answers[]`, identified by `name`                                                                                                                                                 |
| [`DecisionAnswer.value: DecisionValue`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/struct.DecisionAnswer.html#structfield.value)                                          | Typed estimate or refusal.                                   | `noul`, `choice`, `score`, or `refusal`                                                                              | `predicate`, `choice`, `score`, or `refusal`                                                                                                                                      |
| [`DecisionAnswer.provider_confidence: Option<ProviderConfidence>`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/struct.DecisionAnswer.html#structfield.provider_confidence) | Provider-specific confidence with its own scale and meaning. | Optional `confidence`                                                                                                | Optional `confidence`                                                                                                                                                             |
| [`DecisionResponse.usage: Usage`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/struct.DecisionResponse.html#structfield.usage)                                              | Available token counts; absent counts remain unknown.        | Deserialized into [`Usage`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/llm/struct.Usage.html) | Counts normalized into [`Usage`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/llm/struct.Usage.html), separating cache reads and writes from aggregate input |

## Answer values \[#answer-values]

| Variant and fields                                                                                                                                                                                                                                                                                                                                                                                                           | Contract                                                                             | System One                                                                     | OpenAI Decisions                                                              |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ----------------------------------------------------------------------------- |
| [`DecisionValue::Refusal`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/enum.DecisionValue.html#variant.Refusal)                                                                                                                                                                                                                                                                               | The provider declined this question. Sibling answers remain available.               | `type: "refusal"`                                                              | `type: "refusal"`                                                             |
| [`BooleanEstimate::Value(bool)`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/enum.BooleanEstimate.html#variant.Value)                                                                                                                                                                                                                                                                         | A Boolean-only judgment with no implied certainty.                                   | The supplied adapter returns a probability instead                             | The supplied adapter returns a probability instead                            |
| [`BooleanEstimate::ProbabilityTrue(Probability)`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/enum.BooleanEstimate.html#variant.ProbabilityTrue)                                                                                                                                                                                                                                              | Probability of true on a `[0, 1]` scale. The algorithm chooses any threshold.        | `type: "noul"`, field `noul`                                                   | `type: "predicate"`, field `probability`                                      |
| [`DecisionValue::Choice`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/enum.DecisionValue.html#variant.Choice) with `selected: String` and [`probabilities: Option<BTreeMap<String, Probability>>`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/struct.Probability.html)                                                                                        | Select a declared ID.                                                                | `choice`; optional `probabilities` keyed by option ID; some IDs may be absent  | `choice`; `probabilities[]` with a `value` and `probability` for every option |
| [`DecisionValue::Score`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/enum.DecisionValue.html#variant.Score) with [`value: ScoreValue`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/struct.ScoreValue.html) and [`probabilities: Option<Vec<Probability>>`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/struct.Probability.html) | Position in `0..=N-1`; the optional distribution follows the question's level order. | `score`; optional `probabilities` keyed by numeric strings, reordered by level | `score`; numeric `value` / `probability` entries, reordered by level          |

[`DecisionValue::Boolean`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/enum.DecisionValue.html#variant.Boolean) wraps a [`BooleanEstimate`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/enum.BooleanEstimate.html). An absent distribution stays
unknown; it does not become a one-hot distribution. Likewise, a Boolean-only
answer does not imply probability zero or one.

[`Probability`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/struct.Probability.html), [`ScoreValue`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/struct.ScoreValue.html), and [`ProviderConfidence`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/decision/struct.ProviderConfidence.html) are public numeric wrappers.
Their stated ranges and meanings are contracts, not validation performed by
their constructors. Keep answer probability separate from provider confidence.

## Matching and errors \[#matching-and-errors]

Retain the request when converting a response. Question IDs identify the expected
kind; choice IDs identify valid selections; rubric order gives scores meaning.
Both clients match responses against the request and perform format-specific
checks. An unexpected ID, kind, or malformed supported response can produce
[`LlmClientError::ResponseTranslation`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/client/enum.LlmClientError.html#variant.ResponseTranslation).

If the route question was refused or its `apply_cutoff_to` probability is missing,
the cutoff classifier uses its fallback when `fail_open` is enabled. Otherwise it
returns an error identifying the refusal or the missing probability.

Transport failures and upstream HTTP errors surface through
[`LlmClientError`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_protocol/client/enum.LlmClientError.html). A host converts its work result to [`libsy::Result<DecisionResponse>`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_libsy/type.Result.html)
when replying through [`CallDecision::respond`](https://nvidia-nemo.github.io/Switchyard/rust/switchyard_libsy/struct.CallDecision.html#method.respond).

These clients do not retry automatically. Their constructors accept a timeout
covering the HTTP request and reading the body. See the
**[question reference's adapter links](/nemo/switchyard/dev/reference/protocols/decision-models/questions#provider-adapters)**
for the exact conversion and error paths.

## Conversion guarantees \[#conversion-guarantees]

Supported decision fields map directly while retaining question IDs, answer
probabilities, rubric positions, and confidence. OpenAI text-only fields carry
structured protocol values as JSON text. This preserves content, rather than
making the wire formats identical or guaranteeing arbitrary JSON round trips.

The provider must actually report a field for it to be available. Keep missing
IDs, confidence, distributions, and usage unknown. For cache and reasoning token
semantics, see **[LLM usage](/nemo/switchyard/dev/reference/protocols/llm/responses-and-streams#usage)**.

Return to **[the decision protocol guide](/nemo/switchyard/dev/integrate-switchyard/switchyard-protocols/decision-model-related-protocols#own-the-conversion)**
to connect the response to your application's execution loop.