Graphorin API reference v0.4.0
Graphorin API reference / @graphorin/memory / / createFactHistoryTool
Function: createFactHistoryTool()
ts
function createFactHistoryTool(deps): Tool<{
factId: string;
}, {
chain: {
factId: string;
sensitivity: "public" | "internal" | "secret";
supersededBy?: string;
supersedes?: string;
text: string;
validFrom?: string;
validTo?: string;
}[];
}>;Defined in: packages/memory/src/tools/fact-tools.ts:255
fact_history — trace how a fact changed over time. Returns the full bi-temporal supersede chain the given fact belongs to, oldest → newest, including superseded entries, so the agent can answer "what did the user say before" / "how did this change". Read-only. P0-2.
Parameters
| Parameter | Type |
|---|---|
deps | MemoryToolDeps |
Returns
Tool<{ factId: string; }, { chain: { factId: string; sensitivity: "public" | "internal" | "secret"; supersededBy?: string; supersedes?: string; text: string; validFrom?: string; validTo?: string; }[]; }>