CodeSplitter
定义于:.build/typescript/packages/node-parser/src/code/index.ts:18
TextSplitter
代码分割器<
Options>(nodes,options?):TextNode<Metadata>[]
定义于:.build/typescript/packages/node-parser/src/code/index.ts:18
Options extends Record<string, unknown>
BaseNode<Metadata>[]
Options
TextNode<Metadata>[]
new CodeSplitter(
params):CodeSplitter
定义于:.build/typescript/packages/node-parser/src/code/index.ts:23
CodeSplitter
TextSplitter.constructor
maxChars
Section titled “maxChars”maxChars:
number=DEFAULT_MAX_CHARS
定义于:.build/typescript/packages/node-parser/src/code/index.ts:19
splitText()
Section titled “splitText()”splitText(
text):string[]
定义于:.build/typescript/packages/node-parser/src/code/index.ts:63
string
string[]
TextSplitter.splitText