Skip to main content

Module compression_tooling

Module compression_tooling 

Source

Structs§

CompressionPlan
A compression plan describing which active historical messages should be archived and summarized.
ContextCompressionExposure
Metadata about current context pressure, used to decide when compression should be requested by host-side control flow.

Enums§

CompressionPlanError
Structured reason why a compression plan could not be built.

Functions§

active_messages_for_budget
apply_compression_plan
build_compression_plan_with_summary
Build a compression plan that archives older active messages and replaces them with a caller-provided summary.
build_forced_compression_plan_with_summary
Build a compression plan while bypassing “tool exposure” gating.
build_summary_prompt
compression_summary_message
context_window_usage_percent
estimate_context_compression_exposure
Estimate whether context pressure has crossed the configured threshold for compression eligibility.
normalized_trigger_percent
summary_source_messages