Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/memory / / normalizeInducedProcedure

Function: normalizeInducedProcedure()

ts
function normalizeInducedProcedure(raw): 
  | InducedProcedure
  | null;

Defined in: packages/memory/src/consolidator/phases/induce.ts:197

Internal

Normalize a raw induced procedure: trim + drop empty entries, cap step count, and reconcile the variable list with the placeholders actually used in the steps. Returns null when no usable steps remain (nothing to induce).

Parameters

ParameterType
raw{ steps: readonly string[]; successCriteria: readonly string[]; title: string; variables: readonly string[]; }
raw.stepsreadonly string[]
raw.successCriteriareadonly string[]
raw.titlestring
raw.variablesreadonly string[]

Returns

| InducedProcedure | null