-
Notifications
You must be signed in to change notification settings - Fork 37
Add ability to update memories from the user UI and memory tools. #2666
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
c8f7ca6
to
7025c3a
Compare
return apierrors.NewBadRequest("id should not be provided") | ||
} | ||
|
||
if memory.CreatedAt != (types.Time{}) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if memory.CreatedAt != (types.Time{}) { | |
if memory.CreatedAt != types.Time{} { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change doesn't compile
pkg/api/handlers/memories.go
Outdated
var updatedMemory types.Memory | ||
memoryFound := false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit:
var updatedMemory types.Memory | |
memoryFound := false | |
var ( | |
updatedMemory types.Memory | |
memoryFound bool | |
) |
Redesign the memories API to hide the memory set abstraction from clients. This also adds an update endpoint for memories and changes memory IDs from a hash of the content to UUIDs. Signed-off-by: Nick Hale <[email protected]>
Signed-off-by: Nick Hale <[email protected]>
7025c3a
to
e4160d1
Compare
Add the ability to update memories from the user UI and API/client.
This change also refactors the API to hide
MemorySets
from clients. They are an implementation detail of how memories are stored in the backend and don't need to be exposed to clients.e.g. Editing a memory via the UI
Screen.Recording.2025-04-21.at.11.23.41.PM.mov
e.g. Editing a memory via chat
Screen.Recording.2025-04-21.at.11.25.39.PM.mov
e.g. Deleting a memory via chat
Screen.Recording.2025-04-21.at.11.41.18.PM.mov
Addresses part of #2612