Skip to main content

Module handlers

Module handlers 

Source
Expand description

HTTP request handlers for the REST API. Axum handler functions for the MenteDB REST API.

Structs§

AdminListParams
Query params for GET /v1/admin/memories.

Functions§

admin_delete_memory
DELETE /v1/admin/memories/{id}: forget a memory from the console.
admin_list_memories
GET /v1/admin/memories: a bounded, paginated page of memories for the console.
admin_run_mql
POST /v1/admin/mql: run an MQL query, return the scored matches. Powers the console query box and the mentedb CLI’s remote mode.
create_edge
Creates a typed, weighted edge between two memories.
create_space
forget_memory
Deletes a memory from the database.
get_memory
Retrieves a single memory by its UUID.
grant_space_access
health
Health check endpoint. Returns server uptime and status.
ingest_conversation
Ingest a conversation: extract memories via LLM, filter, and store them.
list_spaces
recall_memories
Recalls memories matching an MQL query string.
search_similar
Searches for memories similar to a given embedding vector.
stats
Returns database statistics (memory count, index size, etc.).
store_memory
Stores a new memory node in the database.