MCPcopy Create free account
hub / github.com/MemTensor/MemOS / insertChunk

Function insertChunk

apps/memos-local-openclaw/tests/task-processor.test.ts:371–393  ·  view source on GitHub ↗
(overrides: Partial<Chunk> & { id: string })

Source from the content-addressed store, hash-verified

369 });
370
371 function insertChunk(overrides: Partial<Chunk> & { id: string }): void {
372 store.insertChunk({
373 sessionKey: "s1",
374 turnId: "turn-1",
375 seq: 0,
376 role: "user",
377 content: "test content",
378 kind: "paragraph",
379 summary: "test summary",
380 embedding: null,
381 taskId: null,
382 skillId: null,
383 dedupStatus: "active",
384 dedupTarget: null,
385 dedupReason: null,
386 mergeCount: 0,
387 lastHitAt: null,
388 mergeHistory: "[]",
389 createdAt: Date.now(),
390 updatedAt: Date.now(),
391 ...overrides,
392 });
393 }
394
395 it("should split task when classifier judges NEW topic", async () => {
396 const ctx = makeCtx();

Callers 1

Calls 1

insertChunkMethod · 0.45

Tested by

no test coverage detected