Add knowledge records
add_recordsValidate and store extracted facts as ontology records, rejecting the entire batch if any entry is invalid and updating or skipping duplicates by key.
Instructions
Store facts you extracted from what the user shared (receipts, statements, reading notes, logs). All records are validated first; if any is wrong nothing is written and every problem is listed. Records matching existing ones by key (or identical ones) update or are skipped instead of duplicating.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| entity | Yes | Entity name, e.g. 'Receipt'. | |
| source | No | Where this came from: an existing source id, or a new source to register (deduplicated by uri or title). | |
| records | Yes | Objects of column values. Strings like '12,000원' or '2026/10/03' are normalized. Ref columns accept an id, a name (created when missing) or an object. Optional per record: id (update that row), _locator, _evidence, _note, _source. | |
| on_conflict | No | When a record matches an existing one by keys (or is identical). | update |
| create_missing_refs | No | Create referenced records (a new merchant, author) by name. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||