Documentation Index
Fetch the complete documentation index at: https://mintlify.com/dallay/corvus/llms.txt
Use this file to discover all available pages before exploring further.
Memory Tools
Corvus provides three memory tools that enable the agent to maintain long-term context across sessions:memory_store— Save new memoriesmemory_recall— Search and retrieve memoriesmemory_forget— Delete specific memories
memory_store
Store a new memory entry with category and optional session scope.Parameters
Unique identifier for the memory (e.g.,
user_preference_theme)The memory content to store
Memory category:
core, daily, conversation, or customExample
memory_recall
Search memories using hybrid vector + keyword search.Parameters
Search query (natural language or keywords)
Maximum number of results to return
Search Algorithm
Fromsrc/memory/sqlite.rs and src/memory/vector.rs:
- Keyword Search: FTS5 full-text search with BM25 scoring
- Vector Search: Cosine similarity on embeddings
- Hybrid Merge: Weighted combination (default: 70% vector, 30% keyword)
Example
memory_forget
Delete a specific memory by key.Parameters
Key of the memory to delete
Example
Memory Categories
Fromsrc/memory/traits.rs:32-44:
Usage Guidelines
| Category | Use For | Retention |
|---|---|---|
| core | User preferences, long-term facts, decisions | Indefinite |
| daily | Session logs, temporary notes | Auto-pruned after 30 days |
| conversation | Current conversation context | Cleared per session |
| custom | Project-specific memories | User-managed |
Auto-Save Mode
When enabled, the agent automatically saves relevant context:- Store important facts mentioned by the user
- Save decisions and outcomes
- Log errors and learnings
Session Scoping
Memories can be scoped to a specific session:Backend Comparison
| Backend | Vector Search | Keyword Search | Performance |
|---|---|---|---|
| SQLite | ✅ (BLOB + cosine) | ✅ (FTS5 + BM25) | Fast (local) |
| SurrealDB | ✅ (native vectors) | ✅ (full-text) | Fast (local/remote) |
| Markdown | ❌ | ✅ (grep-based) | Slow (no indexing) |
Embedding Providers
Vector search requires an embedding provider:src/memory/embeddings.rs:13-20: