Skip to main content

Crate mem7_core

Crate mem7_core 

Source

Structs§

AddOptions
Options for the MemoryEngine::add() method.
AddResult
Aggregated result of a full add() call.
ChatMessage
A chat message in the conversation.
Fact
A fact extracted by the LLM from a conversation.
GraphRelation
A graph relation (subject-predicate-object triple).
MemoryActionResult
Result of an add() operation for a single memory.
MemoryEvent
A single entry in the memory audit trail.
MemoryEventMetadata
Optional audit metadata attached to a history event.
MemoryFilter
Filter criteria for querying memories.
MemoryItem
A single memory item stored in the system.
SearchOptions
Options for the MemoryEngine::search() method.
SearchResult
Result of a search() call.

Enums§

MemoryAction
The type of memory event recorded in the audit trail.
MemoryType
Category of a stored memory, assigned during fact extraction.
TaskType
Task type detected from a search query, used for context-aware scoring.

Functions§

new_memory_id
Generate a new UUIDv7 memory ID (time-sortable, RFC 9562).
parse_json_response
Strip markdown code fences from an LLM response and deserialize as JSON.
sort_by_score_desc
Sort a slice in-place by a score function, descending (highest first). NaN values are treated as less than any number.