MCPcopy Index your code
hub / github.com/simstudioai/sim / constructor

Method constructor

apps/sim/lib/chunkers/token-chunker.ts:19–24  ·  view source on GitHub ↗
(options: ChunkerOptions = {})

Source from the content-addressed store, hash-verified

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()) {

Callers

nothing calls this directly

Calls 1

resolveChunkerOptionsFunction · 0.90

Tested by

no test coverage detected