letta-ai / letta

Letta (formerly MemGPT) is a framework for creating LLM services with memory.
https://letta.com
Apache License 2.0
12.98k stars 1.42k forks source link

feat: refactor agent memory representation and modify routes for editing blocks #2094

Open sarahwooders opened 3 days ago

sarahwooders commented 3 days ago

Please describe the purpose of this pull request. This PR aims to resolve bugs resulting from inconsistent agent state and blocks, as well as simplifying the agent creation REST API route.

This PR refactors the schemas related to the agent's state:

This PR also cleans up the routes related to blocks:

How to test How can we test your PR during review? What commands should we run? What outcomes should we expect?

Have you tested this PR? Have you tested the latest commit on the PR? If so please provide outputs from your tests.

Related issues or PRs Please link any related GitHub issues or PRs.

Is your PR over 500 lines of code? If so, please break up your PR into multiple smaller PRs so that we can review them quickly, or provide justification for its length.

Additional context Add any other context or screenshots about the PR here.