poll_memory_events
Poll memory events since a sequence number to see what changed in the store, returning event details and a new tip to pass back as the next since_seq.
Instructions
What changed in the store since since_seq, from the memory_events table the row writer
appends to INSIDE its own transaction: {events: [...], tip: }. Each event is
{seq, ts, type, memory_id, agent, tenant, payload}; the automatic ones (record.added,
record.changed, record.removed) carry only id, key, status and mtype, never text, so tail
them and fetch the record with get/recall where the grants apply. Another process's write
is visible on the next call, no reload. Keep tip and pass it back as since_seq. event_type
"*" (or empty) means every type. A JSON-format store (INSPEXIMUS_STORE_FORMAT=json, an encrypted
store) has no event table, and the call is an error there rather than an empty feed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | ||
| agent_id | No | ||
| since_seq | No | ||
| event_type | No |