Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/memory / / defineAutoRecallStrategy

Function: defineAutoRecallStrategy()

ts
function defineAutoRecallStrategy(opts): AutoRecallStrategy & {
  id: string;
};

Defined in: packages/memory/src/context-engine/auto-recall.ts:79

Builder for application-supplied custom strategies. Accepts a raw function and returns a tagged version so the engine can surface the strategy name on spans.

Parameters

ParameterType
opts{ evaluate: AutoRecallStrategy; id: string; }
opts.evaluateAutoRecallStrategy
opts.idstring

Returns

AutoRecallStrategy & { id: string; }

Stable