# types.ChunkLike


Structural type for any chunk raghilda can consume.


Usage

``` python
types.ChunkLike()
```


A [ChunkLike](types.ChunkLike.md#raghilda.types.ChunkLike) is any object that exposes a chunk's essential fields, whether it comes from raghilda, [chonkie](https://github.com/chonkie-inc/chonkie), or your own code. raghilda accepts such objects wherever a chunk is expected and normalizes them with [Chunk.from_any()](chunk.Chunk.md#raghilda.chunk.Chunk.from_any). The required fields are `text`, `start_index`, and `end_index`; `char_count`, `context`, `origin`, and `attributes` are read when present.
