Skip to content

Add ChatMessage-Based Memory Storage and Retrieval for Agent #380

@Amnah199

Description

@Amnah199

Context

Currently, there is no way to persist or retrieve chat messages from an Agent once a session ends. This makes it difficult to maintain context across interactions or to restore an Agent’s state. To enable context continuity, we need a simple way to write and retrieve past Agent interactions from memory.

After discussions, its suggested that the first step toward simplifying memory writing and retrieval for Agents is to leverage the existing ChatMessage Writer and Retriever components.

Solution
Implement a SuperComponent that integrates the Agent with the ChatMessage Writer/Retriever to handle the storage and retrieval of agent chat messages in memory.

The new ChatMessageRetriever will be able to take incoming new messages as well. E.g. In a second user message of the same session that new user message should be appended to the end of the list of the retrieved conversation history from the ChatMessageRetriever.

Steps for Adding a new Experiment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions