Your assistant contradicts what it said ten messages ago. What is happening?
IntermediateScenarioMemory & state
Answer
Earlier messages were probably trimmed or summarised badly, so the model no longer sees them. Keep key decisions in a pinned summary or state object that always goes into the context, and test long conversations explicitly.
More on Memory & state
Do LLMs remember previous conversations?BeginnerWhat is short-term memory for an agent?BeginnerWhat is long-term memory for an agent?BeginnerHow do you stop conversation history from overflowing the context window?IntermediateWhat should an agent store in long-term memory?IntermediateWhat is agent state, and why persist it?Intermediate