ChunkingService class

Service for splitting text into chunks

Constructors

ChunkingService({int maxChars = ChunkingConstants.maxChars, int overlapChars = ChunkingConstants.overlapChars, int maxSingleChunk = ChunkingConstants.maxSingleChunk})

Properties

hashCode int
The hash code for this object.
no setterinherited
maxChars int
Maximum chunk size in characters
final
maxSingleChunk int
Maximum text length for a single chunk
final
overlapChars int
Overlap size between chunks in characters
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

chunkText(String text) List<TextChunk>
Splits text into chunks according to rules from AGENT_GUIDE.md
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited