Skip to documentation
Docs navigation
Docs/ingestNow()
MemoGrafter

ingestNow()

Force immediate conversation ingestion.

What it does

Force immediate conversation ingestion.

This lower-level API keeps session selection explicit, which is useful for services that manage many users or conversations through one instance.

Signature

TypeScript
ingestNow(messages: Message[], sessionId: string, options?: IngestOptions): Promise<TopicNode[]>

Parameters

messages (Message[]) — Ordered conversation messages to extract memory from.
sessionId (string) — The application-owned session whose memory should be read or changed.
options? (IngestOptions) — Optional limits, filters, tags, or operation-specific behavior.

Result

The topic nodes created, selected, or copied by the operation.

Example

example.ts
const nodes = await memo.ingestNow(messages, "user-42");