gemini_memory_rs/core/
mod.rs

1//! Domain vocabulary, policy and the event log.
2//!
3//! Nothing in `core` performs I/O, calls a model, or knows about Gemini Live.
4//! It is the part of the memory engine that can be reasoned about — and tested
5//! — entirely on its own.
6
7pub mod domain;
8pub mod error;
9pub mod events;
10pub mod ids;
11pub mod policy;
12
13pub use domain::{
14    CanonicalMemory, CanonicalPredicate, EntityRef, EvidenceCounters, Explicitness,
15    FactFingerprint, MemoryKind, MemoryObservation, MemorySource, MemoryStatus, MemoryValue,
16    MutationIntent, PrivacyMetadata, ProposedPersistence, RetrievalMetadata, SensitivityClass,
17    SpeakerAttribution, TemporalMetadata, TemporalScope, TranscriptEvidence, normalize_token,
18    stable_hash,
19};
20pub use error::MemoryError;
21pub use events::{
22    CommitReceipt, EVENT_SCHEMA_VERSION, InMemoryEventLog, MemoryEvent, MemoryEventEnvelope,
23    MemoryEventLog, SessionEventWriter,
24};
25pub use ids::{
26    ConnectionId, EntityId, EventId, MemoryId, ObservationId, PlanId, SessionId, SnapshotId,
27    TurnId, UserId,
28};
29pub use policy::{
30    AdmissionVerdict, CadenceConfig, DiscardReason, IngestionConfig, MemoryRuntimeConfig,
31    PromotionConfig, PromotionEvidence, RetrievalConfig, SessionConfig, TranscriptConfig,
32    admit_observation, aggregate_confidence, contains_instruction_shaped_content,
33    default_episodic_ttl, meets_promotion_criteria, resolve_expiry, speaker_is_admissible,
34};