Skip to main content

Crate agentrs_memory

Crate agentrs_memory 

Source
Expand description

Memory backends for agentrs.

Structs§

ApproximateTokenizer
Lightweight tokenizer approximation that avoids external dependencies.
InMemoryMemory
Default in-process memory backend.
InMemoryVectorStore
In-memory vector store with cosine similarity search.
SimpleEmbedder
Small deterministic embedder useful for tests and local demos.
SlidingWindowMemory
Memory backend that keeps a fixed number of recent non-system messages.
TokenAwareMemory
Memory backend that trims history to fit a token budget.
VectorMemory
Memory backend that combines recent history with semantic retrieval.
VectorSearchResult
Search result returned by a vector store.

Traits§

Embedder
Computes embeddings for messages.
SearchableMemory
Shared extension trait for memory utilities.
Tokenizer
Counts approximate tokens for a string.
VectorStore
Persists and searches embedding vectors.