Expand description
The data steps: array and text operations that need no model —
map, filter, reduce, sort, dedupe, chunk, parse — as pure
functions over JSON values. Element expressions are CEL (item, index,
acc, plus the run data) or {{template}} strings; by keys are dotted
paths. Being pure and model-free, these steps cost nothing to replay, so
the runtime may re-run them after a crash instead of checkpointing each one.
Functions§
- chunk
chunk: split text bychars|lines|tokens(approximate) or an array into slices ofsize, withoverlapelements/chars carried over.- cmp_
values - A total order over JSON values: null < bool < number < string < array < object.
- dedupe
dedupe: keep the first occurrence per key (bypath) / value.- filter
filter: keep the elements whoseexpris true.- map
map:exprover every element.- parse
parse: text → JSON (json|yaml|csv|lines|auto).- path_of
- A dotted path inside a value.
- reduce
reduce: foldexprover the elements withacc(starting atinitial).- sort
sort: by a dotted path (or the element itself),asc|desc; stable.