Skip to content

bug: Conversation memory doesn’t retain multi-turn context #19

@ManojRamani

Description

@ManojRamani

Where: labs/module3/notebooks/2_agent_memory.ipynb

See issue in the cell output

Conversation upserted: session_id='36797271-eedf-4da5-a6a8-e2eaffe5557f' user_id=None agent_id=None messages=[Message(role='user', content=[TextContent(type='text', text='Hello, can you quickly tell me why the sky is blue? One sentence is fine.')], tool_calls=[], tool_results=[], timestamp=1767825670.081044), Message(role='assistant', content=[TextContent(type='text', text="The sky appears blue due to the scattering of sunlight by the gases in the Earth's atmosphere, a phenomenon known as Rayleigh scattering.")], tool_calls=[], tool_results=[], timestamp=1767825671.099216), Message(role='user', content=[TextContent(type='text', 

**_text='What were we talking about again?'_**)],

 tool_calls=[], tool_results=[], timestamp=1767825671.124531), Message(role='assistant', content=[TextContent(type='text', text="I'm afraid I don't have enough context to recall what the previous topic of conversation was. As an AI assistant, I don't have a persistent memory of our full conversation history. I can only respond based on the most recent prompt or question you provide me.")], tool_calls=[], tool_results=[], timestamp=1767825672.969939)] system_prompt=None session_metadata=None
--- Models response ---
{
  "message": {
    "role": "assistant",
    "content": [
      {
        "type": "text",
        "text": "I'm afraid I don't have enough context to recall what the previous topic of conversation was. As an AI assistant, I don't have a persistent memory of our full conversation history. I can only respond based on the most recent prompt or question you provide me."
      }
    ],
    "tool_calls": [],
    "tool_results": [],
    "timestamp": 1767825672.969939
  },
  "session_id": "36797271-eedf-4da5-a6a8-e2eaffe5557f",
  "metadata": {}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions