# echo-state
[](https://crates.io/crates/echo_state)
[](https://docs.rs/echo_state)
[](LICENSE)
[](https://www.rust-lang.org/)
State management layer for the [echo-agent](https://crates.io/crates/echo_agent) framework.
## Quickstart
```toml
[dependencies]
echo_state = "0.1"
```
```rust
use echo_state::memory::InMemoryStore;
use echo_state::compression::SlidingWindowCompressor;
use echo_state::audit::InMemoryAuditLogger;
// Persistent key-value memory
let store = InMemoryStore::new();
// Context window compression
let compressor = SlidingWindowCompressor::new(4096);
```
## Contents
- **Memory**: Dual-layer memory — `Store` (long-term KV) + `Checkpointer` (session persistence)
- **Context Compression**: SlidingWindow, LLM Summary, and Hybrid compressors
- **Audit Logging**: Structured event logging with pluggable backends
## Feature Flags
| `sqlite` | Enable `SqliteStore` for disk-backed persistent memory |
## License
MIT