Skip to content

Combine Accumulation

Extracts and returns the accumulated items from an accumulation object as a plain list. If the input does not match the expected format, it safely returns an empty list.
Preview

Usage

Use this node after any node that builds up an accumulation (e.g., iterative/batch collectors) to convert the accumulated results into a simple list that downstream nodes can consume. Connect the output wherever a standard list of items is needed.

Inputs

FieldRequiredTypeDescriptionExample
accumulationTrueACCUMULATIONAn accumulation object produced by an upstream collector node. It should be a dictionary containing the key 'accum' mapped to a list of collected items.{"accum": ["seq1", "seq2", "seq3"]}

Outputs

FieldTypeDescriptionExample
combined_list*A plain list extracted from the accumulation input. If the input is invalid or missing, this will be an empty list.["seq1", "seq2", "seq3"]

Important Notes

  • Input format: The node expects a dictionary-like object with an 'accum' key containing a list. Any other structure results in an empty list output.
  • Graceful fallback: On errors or malformed inputs, the node returns an empty list instead of failing the workflow.
  • Type-agnostic output: The output type is a generic list (*). Items are passed through unchanged.
  • Single responsibility: This node does not modify items; it only unwraps the accumulation into a list.

Troubleshooting

  • Empty output list: Ensure the input is a valid accumulation object like {"accum": [...]} and that the upstream node producing it is correctly connected.
  • Unexpected item types: The node passes items through unchanged. Verify the upstream collector produced the expected item types.
  • Downstream type errors: Some nodes may expect a specific data type rather than a generic list. Confirm the downstream node accepts a list and the item types inside it.