Skip to main content

consolidate

Function consolidate 

Source
pub async fn consolidate(
    agent: Option<Extension<AuthenticatedAgent>>,
    db: Db,
    __arg2: Json<Value>,
) -> Result<impl IntoResponse, ApiError>
Expand description

Merge exactly the given memories. Body: ids (two or more). The sources are closed, not deleted, and a new semantic memory links back to them.