mellea.stdlib.context
Concrete Context implementations and the Compactor protocol.
Provides:
- :class:
ChatContext— accumulates all turns in a chat history (with an optional sliding window). - :class:
SimpleContext— stateless, single-turn exchange (no prior history is passed to the model). - :class:
Compactor— generic protocol for shrinking anyContextsubtype.
The names :class:Context, :class:ContextTurn, :class:CBlock, and
:class:Component are re-exported from :mod:mellea.core for the convenience
of callers that import them via mellea.stdlib.context.