MCPcopy
hub / github.com/CaviraOSS/OpenMemory / ExtractionResult

Interface ExtractionResult

backend/src/ops/extract.ts:13–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

11const execAsync = promisify(exec);
12
13export interface ExtractionResult {
14 text: string;
15 metadata: {
16 content_type: string;
17 char_count: number;
18 estimated_tokens: number;
19 extraction_method: string;
20 [key: string]: any;
21 };
22}
23
24function estimateTokens(text: string): number {
25 return Math.ceil(text.length / 4);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected