Skip to content

Conversation

@Mritunjay2103
Copy link
Contributor

  • Add ContextCache with append-only optimization for context reuse.
  • Implement LRU eviction and TTL-based expiration.
  • Add ContextCacheManager for high-level cache operations.
  • Integrate caching into Agent and Chat classes.
  • Add comprehensive test suite with 17 test cases.
  • Support environment-variable configuration.
  • Add cache statistics and health monitoring.
  • Maintain backward compatibility with existing APIs.

Closes #81

- Add ContextCache with append-only optimization for context reuse
- Implement LRU eviction and TTL-based expiration
- Add ContextCacheManager for high-level cache operations
- Integrate caching into Agent and Chat classes
- Add comprehensive test suite with 17 test cases
- Support environment variable configuration
- Add cache statistics and health monitoring
- Maintain backward compatibility with existing APIs
@Mritunjay2103 Mritunjay2103 requested a review from a team as a code owner September 12, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Enhancement][Agent] Prompt / Context caching with append-only if possible (TBD)

1 participant