Class: CodeSplitter()
Extends
CodeSplitter<
Options
>(nodes
,options
?):BaseNode
<Metadata
>[]
Type Parameters
• Options extends Record
<string
, unknown
>
Parameters
• options?: Options
Returns
Defined in
packages/node-parser/code/dist/index.d.ts:11
Constructors
new CodeSplitter()
new CodeSplitter(
params
):CodeSplitter
Parameters
• params: CodeSplitterParam
Returns
Overrides
Defined in
packages/node-parser/code/dist/index.d.ts:14
Properties
id
id:
string
Inherited from
Defined in
packages/core/schema/dist/index.d.ts:172
includeMetadata
includeMetadata:
boolean
Inherited from
Defined in
packages/core/node-parser/dist/index.d.ts:6
includePrevNextRel
includePrevNextRel:
boolean
Inherited from
TextSplitter
.includePrevNextRel
Defined in
packages/core/node-parser/dist/index.d.ts:7
maxChars
maxChars:
number
Defined in
packages/node-parser/code/dist/index.d.ts:13
Methods
getNodesFromDocuments()
Parameters
• documents: TextNode
<Metadata
>[]