Skip to content

Graphorin API reference v0.4.0


Graphorin API reference / @graphorin/memory / / createFactSearchTool

Function: createFactSearchTool()

ts
function createFactSearchTool(deps): Tool<{
  asOf?: string;
  query: string;
  tags?: string[];
  topK?: number;
}, {
  hits: {
     factId: string;
     provenance?: "user" | "tool" | "extraction" | "reflection" | "induction" | "imported";
     score: number;
     sensitivity: "public" | "internal" | "secret";
     text: string;
  }[];
}>;

Defined in: packages/memory/src/tools/fact-tools.ts:151

fact_search — hybrid (vector + FTS5) search over the user's semantic memory. Results merged through the configured reranker.

Parameters

ParameterType
depsMemoryToolDeps

Returns

Tool<{ asOf?: string; query: string; tags?: string[]; topK?: number; }, { hits: { factId: string; provenance?: "user" | "tool" | "extraction" | "reflection" | "induction" | "imported"; score: number; sensitivity: "public" | "internal" | "secret"; text: string; }[]; }>

Stable