Skip to content

Graphorin API reference v0.1.0


Graphorin API reference / @graphorin/memory / / createBlockReplaceTool

Function: createBlockReplaceTool()

ts
function createBlockReplaceTool(deps): Tool<{
  label: string;
  newText: string;
  oldUnique: string;
}, {
  label: string;
  length: number;
}>;

Defined in: packages/memory/src/tools/block-tools.ts:78

block_replace — replace a unique substring inside a working memory block. Throws when the substring is missing or appears more than once.

Parameters

ParameterType
depsMemoryToolDeps

Returns

Tool<{ label: string; newText: string; oldUnique: string; }, { label: string; length: number; }>

Stable