Skip to content
1 min read · 74 words

Type Alias: StructuredPredicate

ts
type StructuredPredicate =
  | PredicateLeaf
  | AllPredicate
  | AnyPredicate
  | NotPredicate;

Defined in: src/batteries/orchestration/predicates.ts:67

The structured predicate IR — the value a branch/select node's predicate field holds when the structured cell interprets it.

A discriminated union of four shapes: a leaf ({path, op, value?}), and the three combinators {all}, {any}, {not}. The combinator shapes are discriminated by their single key, and a leaf by the presence of path/op. parseStructuredPredicate is the single authority that turns an untrusted EncodableValue into this IR.