Add context management feature with automatic condensation
- Add context_size, condense_context, and condense_method fields to Model class - Create new context.py module with ContextManager and condensation methods - Implement hierarchical, conversational, semantic, and algoritmic condensation - Calculate and report effective_context for all requests - Update handlers.py to apply context condensation when configured - Update providers.json and rotations.json with example context configurations - Update README.md and DOCUMENTATION.md with context management documentation - Export context module and utilities in __init__.py
Showing
aisbf/context.py
0 → 100644
This diff is collapsed.
This diff is collapsed.
Please
register
or
sign in
to comment