> ## Documentation Index
> Fetch the complete documentation index at: https://www.sapientpriors.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# A fact changes in conversation

> Let newer statements supersede older facts with accurate timestamps, or forget incorrect turns

## Example use case

Last month a prospect told your sales agent their budget was $40,000 and target launch was Q1. Today they say their budget rose to $65,000 and launch moved to Q2. Or on the team assistant, an engineer announces that the primary database moved from Region A to Region B.

## Setup

Choose between recording a timeline update or erasing a mistake:

* **For genuine changes over time:** send the update as a normal turn via [POST`.../observe`](https://www.sapientpriors.com/docs/api-reference/v2/threads/learn-messages-or-files), [POST`.../observe-and-respond`](https://www.sapientpriors.com/docs/api-reference/v2/threads/learn-and-answer), or [POST`.../observe-and-recall`](https://www.sapientpriors.com/docs/api-reference/v2/threads/learn-and-recall) with the current `timestamp` (or omit `timestamp` to use current UTC time). Priors anchors the new memory to the newer time and orders retrieved memories newest-first so the latest fact wins for current state while keeping history intact.
* **For mistakes that must disappear completely:** find the earlier turn with [GET`/v2/agents/{agent_id}/memories`](https://www.sapientpriors.com/docs/api-reference/v2/memories/list-memories) and erase its memories with [DELETE`/v2/agents/{agent_id}/memories/{turn_id}`](https://www.sapientpriors.com/docs/api-reference/v2/memories/forget-a-memory).

## Benefit with Priors

* **No manual overwrites:** changing business facts update naturally in conversation without schema edits or re-uploads.
* **Preserved timeline:** the agent knows both today's budget ($65,000) and when it changed from $40,000, which helps in deal reviews and incident retrospectives.

## What goes wrong

> [!WARNING]
>
> Sending updates with an outdated or missing historical `timestamp` during a backfill prevents Priors from ordering the newer statement ahead of the older one. Likewise, if a wrong statement must be erased completely (not merely superseded as history), stating the new fact alone leaves the old memory in place until you explicitly forget the original turn.

## Recommendation

Pass accurate UTC timestamps on every turn so real-world changes supersede older facts naturally. When a prior statement was a mistake or sensitive leak that should not remain even as history, forget that turn explicitly.

## Calls used

* Guides: [Learning](https://www.sapientpriors.com/docs/concepts/learning.md), [Memories](https://www.sapientpriors.com/docs/concepts/memories.md), [Answering](https://www.sapientpriors.com/docs/concepts/answering.md)
* API reference: [Learn and answer](https://www.sapientpriors.com/docs/api-reference/v2/threads/learn-and-answer.md), [Learn messages or a file](https://www.sapientpriors.com/docs/api-reference/v2/threads/learn-messages-or-files.md), [List memories](https://www.sapientpriors.com/docs/api-reference/v2/memories/list-memories.md), [Forget a memory](https://www.sapientpriors.com/docs/api-reference/v2/memories/forget-a-memory.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.