memory_upsert_fact
Record structured entity-relationship facts with automatic bi-temporal conflict detection, superseding stale data to keep a persistent knowledge graph memory accurate over time.
Instructions
Record a structured entity-relationship fact (subject_id, predicate, object) with automatic bi-temporal conflict detection and supersession of stale facts.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"subject_id": "<subject_id>",
"predicate": "<predicate>"
},
"name": "memory_upsert_fact"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| singular | No | If true, supersedes any prior active fact with the same (subject_id, predicate). | |
| object_id | No | Target entity identifier (if relational). | |
| predicate | Yes | Relationship or attribute predicate. | |
| confidence | No | Confidence score in [0.0, 1.0]. | |
| subject_id | Yes | Source entity identifier. | |
| valid_from | No | Optional ISO-8601 UTC timestamp when fact became true. | |
| object_value | No | Target literal value (if attribute). | |
| source_episode_id | No | Optional episode ID that established this fact. |