Accumulate¶
Collects values into a growing list-like accumulation container across node executions. It appends the provided value to an existing accumulation or starts a new one. None inputs are safely ignored, preserving the current accumulation.

Usage¶
Use this node when you need to build up a sequence of values over time, such as collecting items across branches, iterations, or conditional flows. Feed the previous accumulation back into this node along with the next value to add. Downstream accumulation utility nodes (e.g., head, tail, to-list) can then consume or transform the accumulated data.
Inputs¶
| Field | Required | Type | Description | Example |
|---|---|---|---|---|
| to_add | True | WILDCARD | The value to append to the accumulation. Accepts any type. If the value is None, it will be skipped. | 42 |
| accumulation | False | ACCUMULATION | An existing accumulation container to append to. If not provided, a new accumulation is created. |
Outputs¶
| Field | Type | Description | Example |
|---|---|---|---|
| accumulation | ACCUMULATION | The updated accumulation container including the newly added value (if provided). |
Important Notes¶
- None values are skipped: If the input to_add is None, the node returns the existing accumulation unchanged (or an empty accumulation if none exists).
- Type flexibility: The node accepts any type for to_add; mixed types can coexist in the same accumulation.
- Optional prior accumulation: If no accumulation is provided, the node initializes a new one with the provided value (unless the value is None).
- Error safety: On unexpected errors, the node returns a valid but empty accumulation to prevent pipeline failures.
Troubleshooting¶
- Items not appearing in results: Ensure to_add is not None; None values are intentionally ignored.
- Downstream nodes cannot read the accumulation: Confirm that downstream nodes expect an ACCUMULATION type rather than a plain list or single value.
- Accumulation unexpectedly resets: Make sure the prior accumulation output is correctly connected back into the accumulation input of the next Accumulate node call.
- Mixed or unexpected item types: Validate inputs to_add if consumers require homogeneous types; this node does not enforce type consistency.