overstringobrigatórioUn template nomeando una lista.
bodystringobrigatórioId del pas a replicare.
maxinteger100Quanti items. 1 a 500.
concurrencyinteger1Quantes a la volta. 1 a 10.
{ id: "each", type: "loop", config: {
over: "{{steps.inbox.output.messages}}", body: "triage", max: 50, concurrency: 4 } }
{ id: "triage", type: "model.generate", config: {
model: "gemini-3.5-flash",
inputs: [{ type: "text", content: "Classify: {{item.subject}}" }] } }{"id": "each", "type": "loop", "config": {
"over": "{{steps.inbox.output.messages}}", "body": "triage", "max": 50, "concurrency": 4}}
{"id": "triage", "type": "model.generate", "config": {
"model": "gemini-3.5-flash",
"inputs": [{"type": "text", "content": "Classify: {{item.subject}}"}]}}Il corpo non porta bords
Un passo nominato come un corpo non deve avere una connessione propria, e nessun altro loop puès reclamar. Itè che mantiene il grafo acíclico mentre la repetizione ocurre dentro un passo.
Un loop non può ripetersi, e non può ripetere un human, condition, switch, merge, wait u altro loop.
Il corpo vee ítem e indice
{{item}} e {{index}}, al lado del contexto del run.
concurency is 1 per default
Deliberatamente: un flusso di lavoro salvato prima deve costar lo stesso e mantenere l'ordine di suoi effetti. Aumentar il cambia quanta durata dura il loop e se si adatta a n'importe — ma il plafond è 10, perché al di là di che un provider comincia a negar.
I risultati sono ordinati per indice
{{steps.each.output.count}} // processed
{{steps.each.output.failed}} // how many failed
{{steps.each.output.total}} // how many the list held
{{steps.each.output.results}} // [{ index, ok, output } | { index, ok: false, error }]"{{steps.each.output.count}}" # processed
"{{steps.each.output.failed}}" # how many failed
"{{steps.each.output.total}}" # how many the list held
"{{steps.each.output.results}}" # [{"index", "ok", "output"} | {"index", "ok": False, "error"}]Per indice, mai per ordine di completamento — con concurrence l'ordine di finitura non è del list, e un output cui ordine dipende da tempo non può essere utilizzato in aval.
Un fallimento non ferma il resto
Un item fallit è registrat con il suo erro e il loop continua. failed è la condizione dopo il test — perdere il lavoro fatto su 49 items perché il cinquantesimo era malformat sarebbe il trade errone.
Piu items que max
I extras non sono processati, e un advertit dice quantes arrivati contro quantes si manejava.