Memory
Create a history for your agents
Memory plays a vital role in helping agents understand the sequence of events and their causes. If you want your agent to stay informed about the general progress of the application, which can be helpful in some scenarios, you can enable Memory. Additionally, if you wish for your agent to maintain context continuity even when the application is closed and reopened, persistent memory is the solution.
When you activate Memory, it stores the conversation history in the current directory under your agent’s ID. This allows you to continue the session by providing the same agent ID when creating a new agent.
Enabling Memory
To enable Memory, simply set the memory parameter to True in the AgentConfiguration
class and provide an agent ID. This ensures that the agent saves its history persistently and is able to view events from a broader perspective.
Last updated