# `Omni.Content.Text`
[🔗](https://github.com/aaronrussell/omni/blob/v2.0.0/lib/omni/content/text.ex#L1)

A text content block.

The most common block: text written by a user or by the model. A plain
string becomes one wherever message content is built, so you rarely call
`new/1` yourself.

## Struct fields

- `:text` - the text
- `:signature` - a token some providers attach to their output and expect
  back on later turns. Omni handles it

# `t`

```elixir
@type t() :: %Omni.Content.Text{signature: String.t() | nil, text: String.t()}
```

Text content with an optional integrity signature.

# `new`

```elixir
@spec new(String.t() | Enumerable.t()) :: t()
```

Creates a new text content block from a string, keyword list, or map.

---

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