# `Sake.Sampling.Result`
[🔗](https://github.com/hattoriai/sake/blob/v0.4.3/lib/sake/sampling.ex#L45)

The client's answer to `Sake.Sampling.create_message/4`: the `role` of
the message (`"assistant"`), its `content` as `Sake.Content` blocks,
`text` (every text block joined), the `model` that produced it, the
`stop_reason`, and the `raw` result map, which also holds content Sake
has no struct for (such as tool use).

# `t`

```elixir
@type t() :: %Sake.Sampling.Result{
  content: [Sake.Content.t()],
  model: String.t() | nil,
  raw: map(),
  role: String.t() | nil,
  stop_reason: String.t() | nil,
  text: String.t()
}
```

---

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