The target Brain to import into.
Read and merge a JSON export file into the target brain.
Validation:
traces array.Deduplication:
memory_traces: inside the trace's scope and scope id, a row whose
content is the record's, or whose metadata names the SHA-256 of that
text as import_hash or content_hash, makes the record a duplicate,
and it is skipped; a row of another scope id is not a duplicate.knowledge_nodes: SHA-256 of label + type. A memory-graph node
(type memory_graph) is its trace's node instead: it is written
under its trace's id for a trace the import wrote or matched under that
id, is the duplicate of the node the brain holds under that id, or is
skipped (see memoryGraphNodeImport).knowledge_edges: SHA-256 of source_id + target_id + type. An
edge that names a memory-graph node the import skipped is skipped.Absolute path to the JSON file to import.
Optional options: Pick<ImportOptions, "dedup">ImportResult with counts of imported, skipped, and errored items.
Import a JSON string directly into the target brain without filesystem access.
The JSON string to parse and import.
Optional options: Pick<ImportOptions, "dedup">ImportResult with counts of imported, skipped, and errored items.
Imports a
JsonExporter-compatible JSON file into aBrain.Usage: