Skip to main content
Text aggregator node for combining multiple text inputs. This node collects and concatenates text inputs over time, useful for building complete responses from streaming or fragmented text sources. Input: String - The data type that TextAggregatorNode accepts as input Output: String - The data type that TextAggregatorNode outputs Example:
const textAggregatorNode = new TextAggregatorNode({
  id: 'my-text-aggregator-node',
  separator: ' ',
  maxLength: 1000
});

Constructor

new TextAggregatorNode(props?: TextAggregatorNodeProps): TextAggregatorNode
Creates a new TextAggregatorNode instance.

Parameters

props (TextAggregatorNodeProps) = {} Optional configuration for the text aggregator node

Returns

TextAggregatorNode