Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/memory / / composeLayer2

Function: composeLayer2()

ts
function composeLayer2(instructions): string;

Defined in: packages/memory/src/context-engine/templates/composer.ts:37

Render the optional Layer 2 (agent_instructions) wrapper. Returns the empty string when instructions is empty so the layer is dropped from the assembled prompt.

Parameters

ParameterType
instructionsstring | undefined

Returns

string

Stable