# `LangExtract.Extraction`
[🔗](https://github.com/mdepolli/lang_extract/blob/v0.10.0/lib/lang_extract/extraction.ex#L1)

A single extraction: an entity class, its verbatim source text, and
arbitrary attributes.

Appears on both sides of the LLM exchange: as expected output inside
few-shot examples (`LangExtract.Template.Example`) and as parsed output
from the model's reply. Positional information is added later by the
aligner on `%LangExtract.Span{}`.

# `t`

```elixir
@type t() :: %LangExtract.Extraction{
  attributes: map(),
  class: String.t(),
  text: String.t()
}
```

---

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