Skip to content

Rulvar API reference


Rulvar API reference / @rulvar/planner / extractScript

Function: extractScript()

ts
function extractScript(reply): string;

Defined in: packages/planner/src/plan.ts:95

The model may fence the script; the extractor takes the first fenced block when one exists, else the whole reply, and is deterministic.

Parameters

ParameterType
replystring

Returns

string