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

Reference to a pre-uploaded image asset.

Mirrors Python tinker.types.ImageAssetPointerChunk.

CRITICAL: Field name is `location`, NOT `asset_id`.

The `expected_tokens` field is advisory. The backend computes the real token
count and will reject mismatches. Calling `length/1` will raise if
`expected_tokens` is `nil`.

# `format`

```elixir
@type format() :: :png | :jpeg
```

# `t`

```elixir
@type t() :: %Tinkex.Types.ImageAssetPointerChunk{
  expected_tokens: non_neg_integer() | nil,
  format: format(),
  location: String.t(),
  type: String.t()
}
```

# `length`

```elixir
@spec length(t()) :: non_neg_integer()
```

Get the length (number of tokens) consumed by this image reference.

---

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