/** * memory-classify MCP tool — classifies an unstructured document into typed * sections via Claude Haiku, ready for memory-ingest to write as typed * graph nodes. * * Pairs with memory-ingest-extract (which produces the text) and memory-ingest * (which consumes the typed structure). The classifier output is a deterministic * JSON shape — every `kind` is verified against the live ontology label set * before reaching this tool's caller, so a hallucinated label can never reach * the graph writer. */ import { type ClassifyResult } from "../lib/llm-classifier.js"; import type { LiveSchemaSource } from "../lib/live-schema-source.js"; export interface MemoryClassifyParams { accountId: string; /** * The attachmentId from memory-ingest-extract — its cache holds the * extracted text. The classifier never re-reads the file from disk. */ attachmentId: string; /** * Anchor description — a short human sentence the classifier reads to * decide which ontology edges fit. Examples: * "subject = UserProfile (the account owner)" * "subject = LocalBusiness (the operator's business)" * "subject = Person {name: 'Jane Smith'} (a third party)" */ anchorDescription: string; /** Live ∪ declared label source — used to verify every classifier `kind`. */ liveSchemaSource: LiveSchemaSource; } export type MemoryClassifyResult = ClassifyResult; export declare function memoryClassify(params: MemoryClassifyParams): Promise; //# sourceMappingURL=memory-classify.d.ts.map