Skip to documentation
Docs navigation
Docs/ingestText()
MemoGrafterAgent

ingestText()

Ingest raw text into the current session.

What it does

Ingest raw text into the current session.

Raw text ingestion is useful for notes, documents, and external knowledge. The text is segmented and extracted into the same graph model used for conversational memory.

Signature

TypeScript
ingestText(text: string, options?: IngestTextOptions): Promise<void>

Parameters

text (string) — Raw text to analyze and convert into memories.
options? (IngestTextOptions) — Optional limits, filters, tags, or operation-specific behavior.

Result

The requested identifier or text value.

Example

example.ts
await agent.ingestText(releaseNotes, { label: "Release notes" });