alice-core
Core domain types and port traits for the Alice AI agent.
Overview
This crate provides the innermost layer of the Alice hexagonal architecture with zero adapter dependencies:
- Memory domain types —
MemoryEntry,RecallQuery,RecallHit,HybridWeights,MemoryImportance - Memory port trait —
MemoryStorePortfor pluggable persistence backends - Memory service — recall, persist, and render memory context
- Hybrid scoring — BM25 + vector similarity fusion, FTS query sanitization
Usage
use ;
// Create a memory service with any MemoryStorePort implementation
let service = new?;
// Recall relevant memories for a turn
let hits = service.recall_for_turn?;
// Persist a conversation turn
service.persist_turn?;
License
Apache-2.0