Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/memory / / createRecallEpisodesTool
Function: createRecallEpisodesTool()
ts
function createRecallEpisodesTool(deps): Tool<{
dateRange?: {
from?: string;
to?: string;
};
query: string;
topK?: number;
}, {
episodes: {
endedAt: string;
episodeId: string;
score: number;
startedAt: string;
summary: string;
}[];
}>;Defined in: packages/memory/src/tools/recall-tools.ts:53
recall_episodes — triple-signal episode retrieval (recency × relevance × importance).
Parameters
| Parameter | Type |
|---|---|
deps | MemoryToolDeps |
Returns
Tool<{ dateRange?: { from?: string; to?: string; }; query: string; topK?: number; }, { episodes: { endedAt: string; episodeId: string; score: number; startedAt: string; summary: string; }[]; }>