Documentation
Table of Contents

Namespace IntentSharp.Memory

Classes

InMemorySemanticMemory

Thread-safe in-process memory with an optional size cap (oldest entries evicted first). Embeds intents when an embedding-capable provider is supplied. A failed embedding is logged at Warning and the entry is kept without one, so recall falls back to word overlap for it; only the caller's cancellation propagates.

MemoryEntry

One recorded operation.

MemoryMatch

A recalled entry with its similarity to the query (1.0 is identical).

MemoryStats

Counts over every entry a memory holds.

SqliteSemanticMemory

SQLite-backed memory that survives restarts. Embeddings are stored as little-endian float32 blobs. Recall ranks the most recent RecallCandidateLimit entries in process. A failed embedding is logged at Warning and the entry is kept without one; only the caller's cancellation propagates.

Interfaces

ISemanticMemory

Stores completed operations and recalls similar ones. Recall uses embedding cosine similarity when entries carry embeddings, and token overlap otherwise. Implementations must be thread-safe.