Skip to main content

update

Function update 

Source
pub async fn update(
    memory: Option<&Arc<MemoryService>>,
    id: &str,
    content: String,
) -> Result<Memory>
Expand description

Replace a memory’s content.

The service records a history entry, so an edit is auditable rather than destructive — a user can see what a memory used to say.