What and how it can be used:
The Loop component iterates over a list of Data objects, outputting one item at a time and aggregating results from loop inputs. It processes each item in a collection sequentially or in parallel, executes workflow steps for each item, and collects the results into an aggregated output.

When/how the component should be used:
- When you need to iterate over a list of data items.
- When processing CSV files row by row.
- When you need to process each item in a DataFrame individually.
- When you want to aggregate results after processing all items.
- Input a list of Data or DataFrame objects.
- Each item is extracted and passed to the Item output port.
- Connect one or more components to the Item port to process each item.
- The Loop component iterates over a list of input by passing individual items to other components attached at the Item output port until there are no items left to process. • Then, the Loop component passes the aggregated result of all looping to the component connected to the Done port.
Connections with other components:
- Chat Output
- Batch Run
- Data Operations
- DataFrame Operations
- Parser
- Save File
- Smart Function
- Split Text
- Type Convert
- Notify
- ChromaDB
Configurable settings:
- Inputs
Default settings:
- Inputs
Control Section:
- Inputs
Desired Behaviour:
- Executes repeatedly up to a limit.
- Always exit safely.
