latent.context¶
Context analysis, compaction, and engineering checks for LLM agents.
Provides:
- Token estimation and budget breakdowns
- Message compaction strategies (observation masking, history compaction)
- @context_check decorator for composable context engineering checks
- ContextCheckViolation / ContextCheckEvent for distinct tracing
Submodules are loaded lazily via latent._lazy.lazy_getattr.