# `LlmCall.Excerpt`
[🔗](https://github.com/gilbertwong96/llm_call/blob/main/lib/llm_call/excerpt.ex#L1)

A short, quoted slice of a payload for an error message.

A provider that answers with HTML, plain text, or a truncated body gives the
library nothing it can decode, and neither `Error.raw` (a map or `nil`) nor
`Error.reason` can carry it. The excerpt keeps that failure diagnosable without
widening either public type.

The text is trimmed and truncated so a large body does not become an error
message of the same size.

# `of`

```elixir
@spec of(term()) :: String.t()
```

Returns `": <excerpt>"`, or `""` when there is nothing worth quoting.

The leading colon is part of the value so a caller can append it to a message
without branching.

---

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