Files
eggent/src/lib
ilya-bov 1d0fa74d4a perf(agent): optimize context for prompt caching and limit history
Round datetime in system prompt to the hour so the prefix stays
stable across requests, enabling provider-side prompt caching
(Anthropic ~5 min, OpenAI ~1 hr).

Trim chat history to 80 messages via the existing History class
to prevent context window overflow on long conversations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-28 15:21:01 +03:00
..
2026-02-25 16:14:15 +03:00
2026-02-25 16:14:15 +03:00
2026-02-25 16:14:15 +03:00
2026-02-25 16:14:15 +03:00
2026-02-25 16:14:15 +03:00
2026-02-25 16:14:15 +03:00
2026-02-25 16:14:15 +03:00
2026-02-25 16:14:15 +03:00
2026-02-25 16:14:15 +03:00
2026-02-25 16:14:15 +03:00
2026-02-25 16:14:15 +03:00