Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/memory / / createFactSupersedeTool

Function: createFactSupersedeTool()

ts
function createFactSupersedeTool(deps): Tool<{
  newText: string;
  oldId: string;
  reason?: string;
}, {
  newId: string;
  oldId: string;
}>;

Defined in: packages/memory/src/tools/fact-tools.ts:148

fact_supersede — soft-supersede an old fact by storing a new one that replaces it. The old fact is kept for replay but ranked below the new one.

Parameters

ParameterType
depsMemoryToolDeps

Returns

Tool<{ newText: string; oldId: string; reason?: string; }, { newId: string; oldId: string; }>

Stable