composeContext
function omits memories when exceeding 50 items with SQLite adapter, leading to incorrect state data
#1971
Labels
bug
Something isn't working
Describe the bug
When more than 50-54 memory items are created within the same room ID, the
composeContext
function occasionally omits certain memories, leading to incomplete state data. This issue occurs when using the SQLite adapter. Note that I have not tested this with the other database adapters available, but I would be surprised if an SQLite database cannot handle more than 50 records within the memories table.To Reproduce
Steps to reproduce the behavior:
Clone the repository:
Checkout the branch
realitySpiral/testUsefulWorkflows
(based on thedevelop
branch from the upstream eliza repository):Set the following
.env
variables:Refer to this guide for generating and using the GitHub API token.
Install dependencies and start the agent:
Observe the logs. At some point, you will notice the following:
The repository information (
realityspiral/test
) is incorrect.Update the
.env
file to reduce memory storage limits:Restart the agent:
Observe the logs again. This time, the correct repository information is used:
Expected behavior
The
composeContext
function should include all relevant memories without omitting any, regardless of the number of items stored in memory. Additionally, the correct repository information should always be used.Screenshots
N/A
Additional context
.env
file mitigates the issue but does not resolve the underlying problem.composeContext
function if memory limits are exceeded.The text was updated successfully, but these errors were encountered: