(options: ChunkerOptions = {})
| 17 | private readonly minCharactersPerChunk: number |
| 18 | |
| 19 | constructor(options: ChunkerOptions = {}) { |
| 20 | const resolved = resolveChunkerOptions(options) |
| 21 | this.chunkSize = resolved.chunkSize |
| 22 | this.chunkOverlap = resolved.chunkOverlap |
| 23 | this.minCharactersPerChunk = resolved.minCharactersPerChunk |
| 24 | } |
| 25 | |
| 26 | async chunk(content: string): Promise<Chunk[]> { |
| 27 | if (!content?.trim()) { |
nothing calls this directly
no test coverage detected