Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/memory / / parseInducedProcedure

Function: parseInducedProcedure()

ts
function parseInducedProcedure(text): 
  | InducedProcedure
  | null;

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

Internal

Parse the induction response into an InducedProcedure, tolerating chatty / fenced output. Returns null when absent / unparseable / it yields no steps. Never throws on model output — only normalizes.

The returned variables are reconciled with the steps: every {name} placeholder actually present in the steps is guaranteed to appear, so the abstraction is grounded in the procedure rather than in a model-declared list that may drift from it.

Parameters

ParameterType
textstring | undefined

Returns

| InducedProcedure | null