entity_record
Records a user's verbatim words about an entity, merges repeated facts, and logs name, alias, statement, and support updates to keep user-owned context accurate across assistants.
Instructions
Record words about an Entity together with what they change: name, aliases (the complete new list), add (new Statements; may supersede or conflict with existing ones), update (status, reason, sensitivity, inSummary of existing Statements) and support (existing Statements these words also support). Saying the same thing again is merged into the existing Statement as more evidence. A Statement resting on the user's words can be superseded, or its status changed, only by the user's own words (USER_WORDS_PROTECTED): add your version with conflictsWith instead. A disputed Statement becomes current again only by the user's words (USER_CONFIRMATION_REQUIRED). Carry expectedVersion (the Entity's). Verbatim rule: the words (text, accountText) are the user's actual words, trimmed and otherwise unchanged, never a summary or a third-person paraphrase; pass the part about this Entity. Statements are your one-fact interpretation; mark an inference with basis. Returns {entityId, version, accountId, added?, merged?, changed?, supported?}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| add | No | ||
| via | No | Where the words came from when they were not said in this conversation, e.g. "example-export". | |
| name | No | ||
| text | Yes | The user's actual words, verbatim. Never a summary or a third-person paraphrase. | |
| actor | Yes | Who is writing: your own identity, e.g. {"kind": "agent", "id": "laptop"}. Never the owner or another writer. | |
| update | No | ||
| aliases | No | The complete new list of aliases. | |
| support | No | Existing Statements these words also support. | |
| entityId | Yes | An Entity id, or "current_user" for the owner. | |
| accountSource | No | Whose words they are: user (default), agent_response (your own sentence, such as an inference) or authorized_external (relayed from an application the user authorized). | |
| expectedVersion | No | The Entity's version from your last read or write. |