Skip to main content

Crate punch_memory

Crate punch_memory 

Source
Expand description

§punch-memory

Persistence layer for the Punch Agent Combat System.

All storage is backed by SQLite via rusqlite. The MemorySubstrate wraps a connection behind a tokio::sync::Mutex so it can be shared safely across async tasks.

Re-exports§

pub use backup::BackupInfo;
pub use backup::BackupManager;
pub use bouts::BoutId;
pub use bouts::BoutSummary;
pub use consolidation::ConsolidationConfig;
pub use consolidation::ConsolidationResult;
pub use consolidation::MemoryConsolidator;
pub use embeddings::cosine_similarity;
pub use embeddings::top_k_similar;
pub use embeddings::BuiltInEmbedder;
pub use embeddings::Embedder;
pub use embeddings::Embedding;
pub use embeddings::EmbeddingConfig;
pub use embeddings::EmbeddingProvider;
pub use embeddings::EmbeddingStore;
pub use embeddings::OpenAiEmbedder;
pub use knowledge::KnowledgeEntity;
pub use knowledge::KnowledgeRelation;
pub use memories::MemoryEntry;
pub use substrate::MemorySubstrate;
pub use migrations::Migration;
pub use migrations::MigrationEngine;
pub use migrations::MigrationStatus;
pub use usage::UsageEvent;
pub use usage::UsageSummary;

Modules§

backup
Database backup and restore for the SQLite-backed memory substrate.
bouts
consolidation
Memory Consolidation
creed
Creed persistence — stores and loads fighter identity documents.
embeddings
Vector embedding support for semantic recall in the Punch memory system.
fighters
knowledge
maintenance
Maintenance operations for the memory substrate.
memories
migrations
Database migration engine for the Punch memory substrate.
substrate
usage