import_memory
Import external memory exports from JSON/JSONL files into cambium's local knowledge base, preserving provenance and avoiding duplicates.
Instructions
Ingest an external memory export into cambium as LOCAL-scope, provenance- tagged knowledge items — a source adapter alongside distill's substrate readers. Import/ingest only: it reads the source READ-ONLY and never writes back to it.
source : adapter name. 'json' = a generic JSON/JSONL export — a list of records (or an object wrapping one under memories/items/records), each with a text body (content/text/body/memory/note) plus optional title, why, kind, tags, id, timestamp. It's the extension point: new formats are new adapters, no core changes. path : local file path to read (no network, no external auth).
Every item is stamped with provenance (source.imported=True, the origin system, original id + timestamp) so imports never masquerade as native capture. Idempotent — re-importing the same records adds nothing (dedupe by source id, or content hash when no id). Imported items are NOT auto-promoted; they earn team/org the normal way, through recall usage and endorsement.
Returns a summary: imported / skipped / duplicates.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| source | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |