# `TypeSafeSDK.Answer.Choice`
[🔗](https://github.com/nshkrdotcom/typesafe_sdk/blob/v0.4.1/lib/typesafe_sdk/answer/choice.ex#L1)

Read a Choice distribution without imposing routing policy.

# `margin`

```elixir
@spec margin(TypeSafeSDK.ChoiceAnswer.t()) :: number()
```

Difference between the top two probabilities (0 for an empty distribution).

# `ranked`

```elixir
@spec ranked(TypeSafeSDK.ChoiceAnswer.t()) :: [{atom() | String.t(), number()}]
```

Descending probabilities; ties follow caller order, then deterministic key order.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
