I have an Array Aggregator (module 137) that collects 3 collections. Each collection contains JSON data like:
{
“input_tokens”: 12001,
“output_tokens”: 6386,
“chunk_cost_usd”: 0.0056175
}
In my JSON Creator module (138), I need to sum the values from all collections.
I tried:
{{sum(map(137.array; "input_tokens"))}}
→ Error: Property 137.array doesn’t exist{{sum(map(137; "input_tokens"))}}
→ Error: ‘137’ is not a valid array
How do I properly access and map the aggregated data? What’s the correct syntax to reference collections from an Array Aggregator?