> 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 Answers

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

## Response fields \[#response-fields]

[`DecisionResponse.answers`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.DecisionResponse.html#structfield.answers) maps the request's question IDs to [`DecisionAnswer`](https://docs.rs/switchyard-protocol/0.4.0/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://docs.rs/switchyard-protocol/0.4.0/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://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.DecisionResponse.html#structfield.model)                                    | Provider-reported model identifier.                          | Optional `model`                                                                                                 | `model`                                                                                                                                                                       |
| [`DecisionResponse.answers: BTreeMap<String, DecisionAnswer>`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.DecisionResponse.html#structfield.answers)               | Answers matched by question ID.                              | `answers` object                                                                                                 | `answers[]`, identified by `name`                                                                                                                                             |
| [`DecisionAnswer.value: DecisionValue`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.DecisionAnswer.html#structfield.value)                                          | Typed estimate matching the question's kind.                 | `noul`, `choice`, or `score`                                                                                     | `probability`, `choice`, or `score`                                                                                                                                           |
| [`DecisionAnswer.provider_confidence: Option<ProviderConfidence>`](https://docs.rs/switchyard-protocol/0.4.0/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://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.DecisionResponse.html#structfield.usage)                                              | Available token counts; absent counts remain unknown.        | Deserialized into [`Usage`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/llm/struct.Usage.html) | Counts normalized into [`Usage`](https://docs.rs/switchyard-protocol/0.4.0/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                                                                      |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------- |
| [`BooleanEstimate::Value(bool)`](https://docs.rs/switchyard-protocol/0.4.0/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://docs.rs/switchyard-protocol/0.4.0/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://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/enum.DecisionValue.html#variant.Choice) with `selected: String` and [`probabilities: Option<BTreeMap<String, Probability>>`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.Probability.html)                                                                                    | Select a declared ID. When supplied, the distribution covers every declared option.  | `choice`; optional ID-keyed `probabilities`                                    | `choice`; `probabilities[]` with option `value` and `probability`, converted to a map |
| [`DecisionValue::Score`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/enum.DecisionValue.html#variant.Score) with [`value: ScoreValue`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.ScoreValue.html) and [`probabilities: Option<Vec<Probability>>`](https://docs.rs/switchyard-protocol/0.4.0/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://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/enum.DecisionValue.html#variant.Boolean) wraps a [`BooleanEstimate`](https://docs.rs/switchyard-protocol/0.4.0/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://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.Probability.html), [`ScoreValue`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/struct.ScoreValue.html), and [`ProviderConfidence`](https://docs.rs/switchyard-protocol/0.4.0/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://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/client/enum.LlmClientError.html#variant.ResponseTranslation).

The OpenAI adapter treats a refusal as an error because [`DecisionValue`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/decision/enum.DecisionValue.html) has no
refusal variant. Transport failures and upstream HTTP errors also surface through
[`LlmClientError`](https://docs.rs/switchyard-protocol/0.4.0/switchyard_protocol/client/enum.LlmClientError.html). A host converts its work result to [`libsy::Result<DecisionResponse>`](https://docs.rs/switchyard-libsy/0.4.0/switchyard_libsy/type.Result.html)
when replying through [`CallDecision::respond`](https://docs.rs/switchyard-libsy/0.4.0/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/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/reference/protocols/llm/responses-and-streams#usage)**.

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