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
| Parameter | Type |
|---|---|
opts | { evaluate: AutoRecallStrategy; id: string; } |
opts.evaluate | AutoRecallStrategy |
opts.id | string |
Returns
AutoRecallStrategy & { id: string; }