save_to_layer
Save memory to a specific layer with full metadata control; include session_id or derived_from so semantic and procedural entries are accepted with verifiable provenance.
Instructions
Save memory to a specific layer with full control over metadata. PASS session_id - your transcript session from emet_session_open - on every save made inside a session: the server stamps derived_from with the exchange in progress. Semantic and procedural entries are REFUSED without a source (session_id, or metadata.derived_from); nothing is written when refused.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| layer | Yes | Target memory layer | |
| content | Yes | Memory content to save | |
| exchange | No | The exchange (turn) this write belongs to, counting from 1. A write for exchange n while exchange n-1 was never appended is refused by the session graph until n-1 is appended. | |
| metadata | No | Full metadata control | |
| session_id | No | Your transcript session id (from emet_session_open). The server reads that session's counter and stamps derived_from {session_id, exchange_start, exchange_end} with the exchange in progress. Ignored when metadata.derived_from is given. Required in practice for semantic and procedural saves made in a session. |