API Reference
Resolve Decision
Record which side of a detected contradiction wins, so retrieval stops presenting both as equally valid.
Endpoint and request fields
POST/memory/decision/resolve
200 OK
| Field | Type | Contract |
|---|---|---|
decision_id | string | Identifier from the decision panel. |
winning_memory_id | integer | The memory that should prevail. |
resolution | string | Optional label for how it was resolved. |
note | string | Optional free-text rationale. |
Resolve a contradiction
import osfrom memorysync import MemorySyncClientclient = MemorySyncClient(api_key=os.environ["MEMORYSYNC_API_KEY"],base_url="https://api.memorysync.io",project_id=os.environ["MEMORYSYNC_PROJECT_ID"],end_user_id="usr_7f3a9c2e",)result = client.resolve_decision(decision_id="dec_8f21", winning_memory_id=142, note="Confirmed with the customer")
Result handling
Returns the resolved decision. The losing memory is not deleted; the resolution records which one to prefer.
Errors and next action
An unknown decision_id or a winning_memory_id outside the pair is a 4xx. Re-read the decision panel before retrying.