> ## Documentation Index
> Fetch the complete documentation index at: https://docs.inworld.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# TextChunkingNode

> Text chunking node for breaking large text into smaller pieces (a stream of token chunks). This node processes streaming text data and converts it into discrete text chunks.

## Input

**Type:** `TextStream` | `ContentStream`

The data type that TextChunkingNode accepts as input. See `TextStream` and `ContentStream` for more details.

## Output

**Type:** `GraphTypes.TextStream`

The data type that TextChunkingNode outputs

## Examples

```typescript theme={"system"}
const chunkingNode = new TextChunkingNode({
id: 'my-chunking-node',
reportToClient: true,
minChunkLength: 100
});
```

## Constructors

* [constructor](#constructor)

## Interfaces

* [TextChunkingNodeProps](#textchunkingnodeprops)

***

## Constructors

### constructor

```typescript theme={"system"}
new TextChunkingNode(props?: TextChunkingNodeProps): TextChunkingNode
```

Creates a new TextChunkingNode instance.

#### Parameters

<ParamField body="props" type="TextChunkingNodeProps">
  Configuration for the text chunking node.
</ParamField>

#### Returns

`TextChunkingNode`

## Interfaces

### TextChunkingNodeProps

Configuration properties for TextChunkingNode.

#### Properties

**minChunkLength**?: `number`

Optional minimum chunk length (in bytes) for sentence splitting. If not provided, the default value is 80.
