# `Tinkex.Types.StopReason`
[🔗](https://github.com/North-Shore-AI/tinkex/blob/v0.4.0/lib/tinkex/types/stop_reason.ex#L1)

Stop reason for sampling completion.

Mirrors Python tinker.types.stop_reason.StopReason.
Wire format: `"length"` | `"stop"`

# `t`

```elixir
@type t() :: :length | :stop
```

# `parse`

```elixir
@spec parse(String.t() | nil) :: t() | nil
```

Parse wire format string to atom.

# `to_string`

```elixir
@spec to_string(t()) :: String.t()
```

Convert atom to wire format string.

---

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