Skip to content

Graphorin API reference v0.12.1


Graphorin API reference / @graphorin/memory / tools / buildMemoryTools

Function: buildMemoryTools()

ts
function buildMemoryTools(deps, options?): readonly Tool<unknown, unknown, unknown>[];

Defined in: packages/memory/src/tools/index.ts:122

Build the canonical memory-tool array for a profile. Order is stable for 'full' / 'reviser' - consumers can rely on the indices for snapshot tests. fact_history (P0-2) and fact_validate (P1-4) are appended last so the original nine indices are unchanged. With { includeDeepRecall: true } the gated deep_recall tool (P2-4) is appended after the stable eleven; runbook_search after it. Both gated appendices are reads, so they appear in every profile.

'interactive' returns ONLY the read tools, preserving their relative order from the canonical set.

Parameters

ParameterType
depsMemoryToolDeps
optionsBuildMemoryToolsOptions

Returns

readonly Tool&lt;unknown, unknown, unknown&gt;[]

Stable