zeroclaw/src/agent
argenis de la rosa 18cb38b09e
feat(cache): wire two-tier response cache, multi-provider token tracking, and cache analytics
- Two-tier response cache: in-memory LRU (hot) + SQLite (warm) with TTL-aware eviction
- Wire response cache into agent turn loop (temp==0.0, text-only responses only)
- Parse Anthropic cache_creation_input_tokens/cache_read_input_tokens
- Parse OpenAI prompt_tokens_details.cached_tokens
- Add cached_input_tokens to TokenUsage, prompt_caching to ProviderCapabilities
- Add CacheHit/CacheMiss observer events with Prometheus counters
- Add response_cache_hot_entries config field (default: 256)
2026-03-24 15:17:14 +03:00
..
agent.rs feat(cache): wire two-tier response cache, multi-provider token tracking, and cache analytics 2026-03-24 15:17:14 +03:00
classifier.rs feat(agent): log query classification route decisions 2026-02-24 16:02:59 +08:00
dispatcher.rs style: fix cargo fmt violations blocking CI lint (#3244) 2026-03-11 21:53:25 -04:00
loop_.rs feat(cache): wire two-tier response cache, multi-provider token tracking, and cache analytics 2026-03-24 15:17:14 +03:00
memory_loader.rs fix(memory): stop autosaving assistant summaries and filter legacy entries 2026-02-20 01:14:08 +08:00
mod.rs feat(agent): add rule-based query classification for automatic model routing 2026-02-18 14:41:58 +08:00
prompt.rs fix(agent): add channel media markers to system prompt (#3459) 2026-03-14 06:58:40 -04:00
tests.rs fix(provider): preserve reasoning_content in tool-call conversation history 2026-02-22 17:40:48 +08:00