Skip to content

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

Merged
merged 2 commits into from
Apr 22, 2025

Conversation

njhale
Copy link
Member

@njhale njhale commented Apr 22, 2025

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

return apierrors.NewBadRequest("id should not be provided")
}

if memory.CreatedAt != (types.Time{}) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if memory.CreatedAt != (types.Time{}) {
if memory.CreatedAt != types.Time{} {

Copy link
Member Author

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

Comment on lines 191 to 192
var updatedMemory types.Memory
memoryFound := false
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit:

Suggested change
var updatedMemory types.Memory
memoryFound := false
var (
updatedMemory types.Memory
memoryFound bool
)

njhale added 2 commits April 22, 2025 11:23
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]>
@njhale njhale force-pushed the enhance-memory-rm-update branch from 7025c3a to e4160d1 Compare April 22, 2025 15:23
@njhale njhale requested a review from thedadams April 22, 2025 15:23
@njhale njhale merged commit 12f8c1f into obot-platform:main Apr 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants