# `MingaClaudeBridge.Wire.StopReason`
[🔗](https://github.com/jsmestad/minga-claude-bridge/blob/main/lib/minga_claude_bridge/wire/stop_reason.ex#L1)

Anthropic `stop_reason` values.

Known values decode to atoms. A value this module does not know decodes to `{:other, string}` instead of failing, because the API adds stop reasons over time.

# `t`

```elixir
@type t() ::
  :end_turn
  | :max_tokens
  | :stop_sequence
  | :tool_use
  | :pause_turn
  | :refusal
  | :model_context_window_exceeded
  | {:other, String.t()}
```

# `field`

```elixir
@spec field(MingaClaudeBridge.Wire.Field.json_map(), String.t()) ::
  {:ok, t() | nil} | :error
```

Reads an optional `stop_reason` field.

---

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