Interfaces

DecisionNode

Interface: DecisionNode

Defined in: src/lib/injection-engine/skillGraph.ts:158

A decision-tree node (v3): a predicate that branches to a subtree (or a skill LEAF) on each side. The tree compiles to per-skill triggers — each leaf's trigger is the conjunction of the predicates on its root→leaf path (with earlier-sibling negation for if/else exclusivity), evaluated per iteration. So "predicate nodes that route" needs NO engine change — same evaluator.

Properties

kind

readonly kind: "decision"

Defined in: src/lib/injection-engine/skillGraph.ts:159


label?

readonly optional label?: string

Defined in: src/lib/injection-engine/skillGraph.ts:164

Caption for the predicate node when drawn (e.g. "io intent?").


predicate

readonly predicate: (ctx) => boolean

Defined in: src/lib/injection-engine/skillGraph.ts:160

Parameters

ctx

InjectionContext

Returns

boolean


whenFalse

readonly whenFalse: Injection | DecisionNode

Defined in: src/lib/injection-engine/skillGraph.ts:162


whenTrue

readonly whenTrue: Injection | DecisionNode

Defined in: src/lib/injection-engine/skillGraph.ts:161

On this page