Map Node
vellum.workflows.nodes.MapNode
Used to map over a list of items and execute a Subworkflow for each item. This enables parallel processing of multiple items through the same workflow logic.
Attributes
items
The list of items to map over. Each item will be processed by the subworkflow.
subworkflow
The Subworkflow class to execute for each item
max_concurrency
The maximum number of concurrent subworkflow executions.
Outputs
The outputs are determined by the subworkflow’s outputs, with each output field becoming a list containing results from all iterations.