types.ChunkLike
Structural type for any chunk raghilda can consume.
Usage
types.ChunkLike()A ChunkLike is any object that exposes a chunk’s essential fields, whether it comes from raghilda, chonkie, or your own code. raghilda accepts such objects wherever a chunk is expected and normalizes them with Chunk.from_any(). The required fields are text, start_index, and end_index; char_count, context, origin, and attributes are read when present.